:root {
	--bg: #f3ede2;
	--surface: rgba(255, 250, 244, 0.86);
	--surface-strong: rgba(255, 247, 236, 0.98);
	--line: rgba(95, 64, 35, 0.16);
	--text: #2f2419;
	--muted: #7b6855;
	--accent: #c85d26;
	--accent-strong: #a5471b;
	--teal: #0f7f74;
	--sun: #ffb349;
	--danger: #a8382b;
	--success: #1f7a48;
	--shadow: 0 18px 45px rgba(61, 34, 15, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at 10% 10%, rgba(255, 179, 73, 0.32), transparent 28%),
		radial-gradient(circle at 100% 0%, rgba(15, 127, 116, 0.22), transparent 32%),
		linear-gradient(180deg, #f6efe3 0%, #efe4d1 100%);
	color: var(--text);
	font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body::before,
body::after {
	content: "";
	position: fixed;
	border-radius: 999px;
	filter: blur(24px);
	opacity: 0.7;
	pointer-events: none;
}

body::before {
	width: 16rem;
	height: 16rem;
	top: -4rem;
	right: -4rem;
	background: rgba(255, 179, 73, 0.3);
}

body::after {
	width: 20rem;
	height: 20rem;
	bottom: -6rem;
	left: -6rem;
	background: rgba(15, 127, 116, 0.22);
}

#app {
	position: relative;
	z-index: 1;
}

.shell {
	max-width: 1380px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
	gap: 18px;
	margin-bottom: 20px;
}

.hero-card,
.panel,
.auth-card {
	border: 1px solid var(--line);
	background: var(--surface);
	backdrop-filter: blur(14px);
	border-radius: 26px;
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 30px;
	position: relative;
	overflow: hidden;
}

.hero-card::after {
	content: "";
	position: absolute;
	inset: auto -4rem -6rem auto;
	width: 14rem;
	height: 14rem;
	background: radial-gradient(circle, rgba(255, 179, 73, 0.28), transparent 70%);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.65);
	color: var(--accent-strong);
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero h1,
.auth-card h1 {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1;
	margin: 14px 0 10px;
	letter-spacing: -0.04em;
}

.hero p,
.support-text {
	color: var(--muted);
	line-height: 1.75;
	margin: 0;
}

.hero-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 26px;
}

.metric {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid rgba(95, 64, 35, 0.08);
}

.metric strong {
	display: block;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.5rem;
	margin-bottom: 6px;
}

.metric span {
	color: var(--muted);
	font-size: 0.92rem;
}

.hero-side {
	display: grid;
	gap: 18px;
}

.notice {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 18px;
	border: 1px solid rgba(200, 93, 38, 0.2);
	background: rgba(255, 245, 238, 0.9);
	color: var(--accent-strong);
	font-size: 0.95rem;
}

.notice.error {
	border-color: rgba(168, 56, 43, 0.26);
	background: rgba(255, 240, 238, 0.95);
	color: var(--danger);
}

.toast-viewport {
	position: fixed;
	top: 18px;
	right: 18px;
	width: min(360px, calc(100vw - 28px));
	display: grid;
	gap: 10px;
	z-index: 50;
	pointer-events: none;
}

.toast {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 20px;
	border: 1px solid rgba(95, 64, 35, 0.12);
	background: rgba(255, 250, 244, 0.97);
	box-shadow: 0 18px 40px rgba(47, 36, 25, 0.16);
	backdrop-filter: blur(16px);
	pointer-events: auto;
	animation: toast-in 180ms ease;
}

.toast-success {
	border-color: rgba(31, 122, 72, 0.18);
	background: rgba(243, 255, 248, 0.98);
}

.toast-error {
	border-color: rgba(168, 56, 43, 0.18);
	background: rgba(255, 243, 241, 0.98);
}

.toast-warn {
	border-color: rgba(200, 93, 38, 0.18);
	background: rgba(255, 248, 240, 0.98);
}

.toast-mark {
	min-width: 38px;
	height: 38px;
	display: inline-grid;
	place-items: center;
	border-radius: 14px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.86);
	color: var(--accent-strong);
}

.toast-success .toast-mark {
	color: var(--success);
}

.toast-error .toast-mark {
	color: var(--danger);
}

.toast-warn .toast-mark {
	color: var(--accent-strong);
}

.toast-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.toast-copy strong {
	font-size: 0.94rem;
}

.toast-copy div {
	color: var(--muted);
	line-height: 1.5;
	word-break: break-word;
	font-size: 0.92rem;
}

.toast-close {
	background: transparent;
	color: var(--muted);
	padding: 4px;
	border-radius: 10px;
	line-height: 1;
}

.toast-close:hover {
	background: rgba(95, 64, 35, 0.08);
	transform: none;
}

.grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.9fr);
	gap: 18px;
}

.stack {
	display: grid;
	gap: 14px;
}

.panel {
	padding: 18px;
}

.panel h2,
.panel h3 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	letter-spacing: -0.03em;
}

.panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.panel-head p {
	margin: 8px 0 0;
	color: var(--muted);
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.btn,
button,
.pill {
	border: none;
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition:
		transform 120ms ease,
		box-shadow 120ms ease,
		background 120ms ease;
}

.btn:hover,
button:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent), #ed8244);
	color: #fffaf6;
	box-shadow: 0 8px 20px rgba(200, 93, 38, 0.2);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.76);
	color: var(--text);
	border: 1px solid rgba(95, 64, 35, 0.12);
}

.btn-ghost {
	background: rgba(15, 127, 116, 0.1);
	color: var(--teal);
}

.btn-danger {
	background: rgba(168, 56, 43, 0.12);
	color: var(--danger);
}

.btn-small {
	padding: 6px 11px;
	font-size: 0.85rem;
}

button:disabled,
.btn:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.is-busy {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--muted);
	border: 1px solid rgba(95, 64, 35, 0.1);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.74);
	border: 1px solid rgba(95, 64, 35, 0.1);
}

.badge.ok {
	color: var(--success);
}

.badge.fail {
	color: var(--danger);
}

.badge.warn {
	color: var(--accent-strong);
}

.input-grid,
.settings-grid,
.preview-grid {
	display: grid;
	gap: 10px;
}

.input-grid.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
	display: grid;
	gap: 5px;
}

.card > .field + .toolbar {
	margin-top: 10px;
}

.field label,
.mini-label {
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

input,
textarea,
select {
	width: 100%;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(95, 64, 35, 0.14);
	background: rgba(255, 255, 255, 0.88);
	font: inherit;
	font-size: 0.95rem;
	color: var(--text);
	outline: none;
}

input:focus,
textarea:focus,
select:focus {
	border-color: rgba(200, 93, 38, 0.5);
	box-shadow: 0 0 0 3px rgba(200, 93, 38, 0.12);
}

textarea {
	min-height: 96px;
	resize: vertical;
}

input[type="checkbox"] {
	width: 16px;
	height: 16px;
	padding: 0;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
	flex: 0 0 auto;
}

.toggle-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-list {
	display: grid;
	gap: 10px;
}

.item-card {
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(95, 64, 35, 0.11);
	background: var(--surface-strong);
}

.template-option {
	cursor: pointer;
	transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.template-option:hover {
	border-color: rgba(200, 93, 38, 0.26);
}

.template-option.active {
	border-color: rgba(66, 98, 255, 0.45);
	box-shadow: 0 0 0 2px rgba(66, 98, 255, 0.14);
	background: rgba(250, 252, 255, 0.7);
}

.template-option-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.template-option-head input[type="radio"] {
	margin-top: 4px;
}

.template-order-panel {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(95, 64, 35, 0.1);
}

.template-order-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.template-order-head h3 {
	margin: 0 0 4px;
}

.template-order-head p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.template-group-order-list {
	display: grid;
	gap: 8px;
}

.template-group-order-item {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid rgba(95, 64, 35, 0.1);
	background: rgba(255, 255, 255, 0.62);
	user-select: none;
}

.template-group-move-actions {
	display: inline-flex;
	gap: 4px;
}

.template-group-move-btn {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(95, 64, 35, 0.12);
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
}

.template-group-move-btn:disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.template-layout {
	display: grid;
	grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.template-layout-left,
.template-layout-right {
	min-width: 0;
}

.template-option-list {
	max-height: calc(100vh - 250px);
	overflow: auto;
	padding-right: 4px;
}

.template-metrics {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.item-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.item-index {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	display: inline-grid;
	place-items: center;
	background: rgba(200, 93, 38, 0.1);
	color: var(--accent-strong);
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	font-size: 0.88rem;
}

.muted {
	color: var(--muted);
}

.empty-state {
	padding: 18px;
	border-radius: 20px;
	border: 1px dashed rgba(95, 64, 35, 0.2);
	color: var(--muted);
	background: rgba(255, 255, 255, 0.42);
	text-align: center;
}

.inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.preview-batch-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(95, 64, 35, 0.12);
	border-radius: 12px;
	background: rgba(255, 246, 230, 0.6);
}

.preview-batch-toolbar .field {
	margin: 0;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	grid-template-columns: initial;
}

.preview-batch-toolbar .field label {
	margin: 0;
	font-size: 0.74rem;
	color: var(--muted);
	white-space: nowrap;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.preview-batch-toolbar .field select,
.preview-batch-toolbar .field input {
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 0.88rem;
	height: 32px;
	width: auto;
	min-width: 120px;
}

.preview-batch-toolbar .field[data-size="sm"] input {
	min-width: 96px;
}

.preview-batch-info {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin-right: 4px;
}

.preview-batch-info strong {
	font-size: 0.88rem;
	letter-spacing: -0.01em;
}

.preview-batch-info .muted {
	font-size: 0.78rem;
}

.preview-batch-actions {
	margin-left: auto;
	gap: 6px;
}

@media (max-width: 900px) {
	.preview-batch-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.preview-batch-toolbar .field {
		width: 100%;
	}
	.preview-batch-toolbar .field select,
	.preview-batch-toolbar .field input {
		flex: 1;
		width: 100%;
	}
	.preview-batch-actions {
		margin-left: 0;
		justify-content: flex-start;
	}
}

.preview-table {
	width: 100%;
	border-collapse: collapse;
}

.preview-table th,
.preview-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(95, 64, 35, 0.08);
	vertical-align: middle;
	font-size: 0.88rem;
}

.preview-table th {
	color: var(--muted);
	font-weight: 700;
	font-size: 0.76rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.32);
}

.preview-table th:first-child,
.preview-table td:first-child {
	width: 32px;
	padding-left: 10px;
	padding-right: 4px;
	text-align: center;
}

.preview-table td .inline-actions {
	gap: 6px;
	flex-wrap: nowrap;
	align-items: center;
}

.preview-table td input[data-alias-input] {
	height: 32px;
	padding: 5px 10px;
	min-width: 150px;
}

.code-block {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	word-break: break-all;
	padding: 14px;
	border-radius: 18px;
	background: rgba(48, 35, 24, 0.94);
	color: #f8efe5;
	max-height: 260px;
	overflow: auto;
}

.auth-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 42px 20px;
}

.auth-card {
	width: 100%;
	max-width: 980px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
	overflow: hidden;
}

.auth-hero {
	padding: 26px 28px;
	background:
		linear-gradient(145deg, rgba(200, 93, 38, 0.92), rgba(114, 52, 25, 0.92)),
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 35%);
	color: #fffaf6;
}

.auth-hero p,
.auth-hero li {
	color: rgba(255, 250, 246, 0.82);
	line-height: 1.65;
	font-size: 0.92rem;
}

.auth-panel {
	padding: 24px;
}

.tabs {
	display: inline-flex;
	gap: 6px;
	padding: 5px;
	background: rgba(255, 255, 255, 0.78);
	border-radius: 999px;
	border: 1px solid rgba(95, 64, 35, 0.1);
	margin-bottom: 16px;
}

.tab {
	padding: 7px 14px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: var(--muted);
	font-weight: 700;
	font-size: 0.88rem;
}

.tab.active {
	background: rgba(200, 93, 38, 0.14);
	color: var(--accent-strong);
}

.footer-note {
	margin-top: 14px;
	color: var(--muted);
	font-size: 0.92rem;
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 1080px) {
	.hero,
	.grid,
	.auth-card {
		grid-template-columns: 1fr;
	}

	.hero-metrics,
	.settings-grid,
	.input-grid.two {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.shell,
	.auth-wrap {
		padding-inline: 14px;
	}

	.hero-card,
	.panel,
	.auth-panel,
	.auth-hero {
		padding: 22px;
	}

	.preview-table {
		display: block;
		overflow-x: auto;
	}
}

/* ===== Dashboard (sidebar + workspace, matches auth theme) ===== */

.app-dashboard {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px 12px 14px;
	background: rgba(255, 250, 244, 0.92);
	border-right: 1px solid var(--line);
	backdrop-filter: blur(16px);
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 2px 8px;
}

.brand-mark {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), #ed8244);
	color: #fffaf6;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: -0.02em;
	box-shadow: 0 8px 18px rgba(200, 93, 38, 0.22);
}

.brand-meta {
	display: grid;
	gap: 1px;
}

.brand-meta strong {
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.94rem;
	letter-spacing: -0.02em;
	color: var(--text);
}

.brand-meta small {
	color: var(--muted);
	font-size: 0.72rem;
}

.sidebar-nav {
	display: grid;
	gap: 2px;
	flex: 1;
	align-content: start;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 120ms ease, color 120ms ease;
}

.nav-item:hover {
	background: rgba(255, 255, 255, 0.6);
	color: var(--text);
	transform: none;
}

.nav-item.active {
	background: rgba(200, 93, 38, 0.14);
	color: var(--accent-strong);
}

.nav-icon {
	width: 16px;
	height: 16px;
	display: inline-grid;
	place-items: center;
	opacity: 0.85;
}

.nav-item.active .nav-icon {
	opacity: 1;
}

.sidebar-footer {
	border-top: 1px solid var(--line);
	padding: 14px 4px 0;
	display: grid;
	gap: 10px;
}

.user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 6px;
}

.avatar {
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--sun), var(--accent));
	color: #fffaf6;
	display: grid;
	place-items: center;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	font-size: 0.82rem;
	box-shadow: 0 6px 14px rgba(200, 93, 38, 0.2);
}

.user-meta {
	display: grid;
	min-width: 0;
}

.user-meta strong {
	font-size: 0.9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
}

.user-meta small {
	color: var(--muted);
	font-size: 0.76rem;
}

.btn-block {
	display: block;
	width: 100%;
	text-align: center;
}

.workspace {
	padding: 24px 32px 40px;
	min-width: 0;
	overflow-x: hidden;
}

.workspace-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.workspace-head-text {
	display: grid;
	gap: 4px;
}

.breadcrumb {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.workspace-head h1 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.5rem;
	letter-spacing: -0.025em;
	color: var(--text);
}

.workspace-head .muted {
	color: var(--muted);
	font-size: 0.88rem;
	margin: 0;
	line-height: 1.55;
}

.head-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.workspace-body {
	display: grid;
	gap: 14px;
}

.hello-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	border-radius: 16px;
	background:
		radial-gradient(circle at top right, rgba(255, 179, 73, 0.26), transparent 55%),
		linear-gradient(135deg, rgba(200, 93, 38, 0.1), rgba(255, 247, 236, 0.7));
	border: 1px solid rgba(200, 93, 38, 0.22);
	box-shadow: var(--shadow);
	flex-wrap: wrap;
}

.hello-card h2 {
	margin: 6px 0 4px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--text);
}

.hello-card p {
	margin: 0;
	font-size: 0.88rem;
}

.eyebrow-dim {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

.metrics-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.metric-card {
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(95, 64, 35, 0.1);
	display: grid;
	gap: 4px;
}

.metric-card small {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.metric-card strong {
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--text);
}

.metric-card span.muted {
	color: var(--muted);
	font-size: 0.78rem;
}

.card {
	border: 1px solid var(--line);
	background: var(--surface);
	backdrop-filter: blur(14px);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 18px 20px;
}

.card-head {
	margin-bottom: 14px;
}

.card-head h2,
.card-head h3 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	letter-spacing: -0.02em;
	color: var(--text);
}

.card-head h3 {
	font-size: 1rem;
}

.card-head p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.55;
}

@media (max-width: 1180px) {
	.template-layout {
		grid-template-columns: 1fr;
	}

	.template-option-list {
		max-height: none;
	}
}

@media (max-width: 900px) {
	.app-dashboard {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
		height: auto;
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 12px 14px;
		border-right: none;
		border-bottom: 1px solid var(--line);
		overflow-x: auto;
	}

	.sidebar-brand {
		flex: 0 0 auto;
	}

	.sidebar-nav {
		display: flex;
		flex: 1;
		gap: 4px;
	}

	.nav-item {
		flex: 0 0 auto;
		padding: 8px 10px;
		font-size: 0.88rem;
	}

	.sidebar-footer {
		flex: 0 0 auto;
		border-top: none;
		border-left: 1px solid var(--line);
		padding: 0 0 0 14px;
		grid-auto-flow: column;
		align-items: center;
	}

	.workspace {
		padding: 22px;
	}

	.metrics-row {
		grid-template-columns: 1fr;
	}
}
