.etmp-portal {
	--etmp-bg: #f5f7fb;
	--etmp-card: #ffffff;
	--etmp-card-2: #f8fafc;
	--etmp-text: #111827;
	--etmp-muted: #657089;
	--etmp-border: #e6ebf2;
	--etmp-blue: #2f86ff;
	--etmp-green: #2dbf82;
	--etmp-orange: #ff9f2d;
	--etmp-red: #ef4e45;
	--etmp-purple: #7048e8;
	background: var(--etmp-bg);
	border-radius: 8px;
	color: var(--etmp-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding: 22px;
}

.etmp-portal-header {
	align-items: center;
	background: linear-gradient(135deg, #111b31, #283a63);
	border-radius: 8px;
	color: #fff;
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
	padding: 22px;
}

.etmp-portal-header.compact {
	padding: 18px 22px;
}

.etmp-portal-header h2,
.etmp-portal-header p {
	margin: 0;
}

.etmp-portal-header p {
	color: #d7e0f4;
	margin-top: 4px;
}

.etmp-eyebrow {
	color: #93c5fd;
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.etmp-avatar-lg {
	border: 3px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	height: 74px;
	object-fit: cover;
	width: 74px;
}

.etmp-card-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 18px;
}

.etmp-metric,
.etmp-panel,
.etmp-task-card,
.etmp-login-card {
	background: var(--etmp-card);
	border: 1px solid var(--etmp-border);
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.etmp-metric {
	align-items: center;
	display: flex;
	gap: 14px;
	padding: 18px;
}

.etmp-metric .dashicons {
	align-items: center;
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.etmp-metric.color-blue .dashicons { background: linear-gradient(135deg, #4da3ff, #1d7ceb); }
.etmp-metric.color-red .dashicons { background: linear-gradient(135deg, #ff6b62, #e03131); }
.etmp-metric.color-green .dashicons { background: linear-gradient(135deg, #35c48f, #21a76e); }
.etmp-metric.color-purple .dashicons { background: linear-gradient(135deg, #8d4be8, #6938ef); }

.etmp-metric strong {
	display: block;
	font-size: 26px;
}

.etmp-metric p {
	color: var(--etmp-muted);
	margin: 2px 0 0;
}

.etmp-two-col {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.etmp-panel {
	padding: 20px;
}

.etmp-panel h3 {
	margin-top: 0;
}

.etmp-task-stack,
.etmp-feed {
	display: grid;
	gap: 14px;
}

.etmp-task-card {
	border-left: 4px solid var(--etmp-blue);
	padding: 18px;
}

.etmp-task-card.priority-high { border-left-color: var(--etmp-red); }
.etmp-task-card.priority-medium { border-left-color: var(--etmp-orange); }
.etmp-task-card.priority-low { border-left-color: var(--etmp-green); }

.etmp-task-main {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr auto;
}

.etmp-task-card h4 {
	margin: 0 0 8px;
}

.etmp-task-card p {
	color: var(--etmp-muted);
	margin: 0;
}

.etmp-task-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.etmp-badge {
	background: #eef2ff;
	border-radius: 6px;
	color: #4653c4;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 8px;
	white-space: nowrap;
}

.status-completed,
.status-approved { background: #dcfce7; color: #17834f; }
.status-in_progress,
.status-submitted { background: #dbeafe; color: #1d6fe9; }
.status-pending { background: #fff4db; color: #d97706; }
.status-on_hold { background: #fee2e2; color: #dc2626; }
.status-rejected { background: #f1f5f9; color: #64748b; }
.priority-high { background: #ffe5e5; color: #e03131; }
.priority-medium { background: #fff0d6; color: #e67700; }
.priority-low { background: #ddfbe9; color: #15803d; }

.etmp-progress-ring {
	align-items: center;
	background: conic-gradient(var(--etmp-blue) calc(var(--progress) * 1%), #e5eaf2 0);
	border-radius: 50%;
	display: flex;
	height: 72px;
	justify-content: center;
	width: 72px;
}

.etmp-progress-ring span {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	display: flex;
	font-weight: 800;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.etmp-task-controls,
.etmp-comment-form {
	align-items: center;
	border-top: 1px solid var(--etmp-border);
	display: grid;
	gap: 10px;
	grid-template-columns: 150px 90px 1fr auto;
	margin-top: 14px;
	padding-top: 14px;
}

.etmp-comment-form {
	grid-template-columns: 1fr 1fr auto;
}

.etmp-portal input,
.etmp-portal select,
.etmp-portal textarea {
	background: var(--etmp-card-2);
	border: 1px solid var(--etmp-border);
	border-radius: 8px;
	box-shadow: none;
	color: var(--etmp-text);
	min-height: 40px;
	padding: 8px 10px;
	width: 100%;
}

.etmp-portal label {
	color: var(--etmp-muted);
	display: grid;
	font-weight: 700;
	gap: 7px;
	margin-bottom: 12px;
}

.etmp-btn {
	background: linear-gradient(135deg, #635bff, #377dff);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 40px;
	padding: 10px 14px;
	text-decoration: none;
}

.etmp-btn.ghost {
	background: #eef4ff;
	color: #1d6fe9;
}

.etmp-form-message {
	color: var(--etmp-green);
	font-size: 13px;
	grid-column: 1 / -1;
}

.etmp-form-message.is-error {
	color: var(--etmp-red);
}

.etmp-feed-item {
	background: var(--etmp-card-2);
	border: 1px solid var(--etmp-border);
	border-radius: 8px;
	padding: 14px;
}

.etmp-feed-item.is-unread {
	border-color: #91c3ff;
	box-shadow: inset 4px 0 0 var(--etmp-blue);
}

.etmp-feed-item p {
	margin: 8px 0;
}

.etmp-feed-item time,
.etmp-muted {
	color: var(--etmp-muted);
}

.etmp-notice {
	display: grid;
	gap: 14px;
}

@media (max-width: 900px) {
	.etmp-card-grid,
	.etmp-two-col {
		grid-template-columns: 1fr;
	}
	.etmp-task-main,
	.etmp-task-controls,
	.etmp-comment-form {
		grid-template-columns: 1fr;
	}
}
