:root {
	--bg: #0f1219;
	--bg-soft: #141824;
	--panel: #181e2b;
	--panel-2: #1c2333;
	--line: #2a3346;
	--line-soft: #232b3d;
	--text: #e7ebf4;
	--muted: #8b95ab;
	--faint: #6b758a;
	--accent: #e8a54b;
	--accent-dim: rgba(232, 165, 75, 0.14);
	--accent2: #5b8cff;
	--ok: #3dd68c;
	--ok-bg: rgba(61, 214, 140, 0.12);
	--err: #ff6b7a;
	--err-bg: rgba(255, 107, 122, 0.12);
	--warn: #e8a54b;
	--side: #0c0f16;
	--side-w: 248px;
	--radius: 10px;
	--radius-sm: 8px;
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.18);
	--pad: clamp(12px, 1.6vw, 20px);
	--content: min(100%, 1680px);
	--font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--mono: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body {
	margin: 0;
	width: 100%;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
}
html { -webkit-text-size-adjust: 100%; }
img, video, audio, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre {
	font-family: var(--mono);
	font-size: 12.5px;
	word-break: break-word;
}
code {
	background: #10151f;
	border: 1px solid var(--line-soft);
	padding: 1px 6px;
	border-radius: 5px;
	color: #c9d4ea;
}
pre {
	background: #10151f;
	border: 1px solid var(--line-soft);
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	overflow: auto;
	color: #d7e0f2;
	max-width: 100%;
	line-height: 1.5;
}

/* —— App shell —— */
.app {
	display: flex;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: 100%;
}
.shell {
	flex: 1;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(900px 420px at 100% -10%, rgba(232, 165, 75, 0.06), transparent 55%),
		radial-gradient(700px 380px at 0% 100%, rgba(91, 140, 255, 0.05), transparent 50%),
		var(--bg);
}

.side {
	width: var(--side-w);
	flex-shrink: 0;
	background: var(--side);
	border-right: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	padding: 18px 12px calc(16px + env(safe-area-inset-bottom));
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100dvh;
	z-index: 40;
}
.brand {
	display: flex;
	gap: 11px;
	align-items: center;
	color: var(--text);
	margin: 0 4px 20px;
	min-width: 0;
	padding: 4px;
}
.brand:hover { text-decoration: none; }
.brand-text { min-width: 0; }
.brand-text strong {
	display: block;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.logo {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 11px;
	background: linear-gradient(145deg, #f0b45a, #c46b2b);
	display: grid;
	place-items: center;
	font-weight: 750;
	font-size: 13px;
	color: #1a1208;
	box-shadow: 0 4px 12px rgba(196, 107, 43, 0.28);
}
.brand small {
	display: block;
	color: var(--faint);
	font-size: 11px;
	margin-top: 1px;
	letter-spacing: 0.04em;
}

.side nav {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	overflow-y: auto;
	padding: 0 4px;
	scrollbar-width: thin;
}
.nav-group {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-group:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.nav-label {
	font-size: 10.5px;
	font-weight: 650;
	letter-spacing: 0.12em;
	color: #5d677c;
	padding: 2px 10px 6px;
	user-select: none;
}
.side nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #a7b0c2;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 13.5px;
	line-height: 1.2;
	border: 1px solid transparent;
	transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.nav-ico {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.85;
}
.side nav a.on,
.side nav a:hover {
	background: #161c28;
	color: var(--text);
	text-decoration: none;
}
.side nav a:hover .nav-ico { opacity: 1; }
.side nav a.on {
	border-color: rgba(232, 165, 75, 0.22);
	background: linear-gradient(90deg, rgba(232, 165, 75, 0.16), rgba(22, 28, 40, 0.2));
	color: #fff;
	box-shadow: inset 3px 0 0 var(--accent);
}
.side nav a.on .nav-ico { opacity: 1; color: var(--accent); }

.side-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 8px 2px;
	border-top: 1px solid var(--line-soft);
}
.side-user {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
}
.side-user:hover { text-decoration: none; color: #fff; }
.side-user-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.side-avatar {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: #1c2433;
	border: 1px solid var(--line);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}
.side-logout {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--muted);
	padding: 5px 8px;
	border-radius: 7px;
	border: 1px solid transparent;
}
.side-logout:hover {
	color: var(--text);
	text-decoration: none;
	border-color: var(--line);
	background: #161c28;
}
.side-mask { display: none; }

.topbar {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px var(--pad);
	padding-top: calc(10px + env(safe-area-inset-top));
	border-bottom: 1px solid var(--line);
	background: rgba(12, 15, 22, 0.92);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 20;
}
.menu-btn {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--panel);
	color: var(--text);
	font-size: 18px;
	cursor: pointer;
}
.topbar-title {
	flex: 1;
	min-width: 0;
	font-weight: 650;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.top-user {
	color: var(--muted);
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 99px;
	border: 1px solid var(--line-soft);
	background: var(--panel);
}
.top-user:hover { color: var(--text); text-decoration: none; }

.main {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 20px var(--pad) calc(36px + env(safe-area-inset-bottom));
}
.main-inner {
	width: 100%;
	max-width: var(--content);
	margin: 0 auto;
}

/* 宽屏尽量铺满侧栏右侧，避免中间一条内容、两边大空档 */
@media (min-width: 1400px) {
	.main-inner { max-width: none; }
}

/* —— Page chrome —— */
.page-head {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line-soft);
}
.page-head h1 {
	margin: 0 0 6px;
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}
.page-head p {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 13.5px;
	max-width: 72ch;
}
.page-head p:last-child { margin-bottom: 0; }
.page-head .muted { color: var(--faint); }
.page-head a { font-weight: 500; }

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 16px 14px;
	min-width: 0;
	box-shadow: var(--shadow);
}
.card em {
	color: var(--faint);
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
}
.card b {
	display: block;
	font-size: clamp(18px, 2vw, 22px);
	margin-top: 8px;
	font-weight: 700;
	letter-spacing: -0.02em;
	word-break: break-all;
}

.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(16px, 2vw, 22px);
	margin-bottom: 16px;
	min-width: 0;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.panel h2 {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.01em;
}
.panel > h2:first-child { margin-top: 0; }
.panel .muted { font-size: 13px; }
.stack .panel { margin-bottom: 14px; }
.stack .panel:last-child { margin-bottom: 0; }

.grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	align-items: start;
}
.grid-2 > .panel { margin-bottom: 0; height: 100%; }

.docs h3 {
	margin: 18px 0 8px;
	font-size: 13px;
	color: var(--muted);
	font-weight: 600;
}
.docs p { margin: 8px 0; color: var(--text); }
.docs .kv {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 8px 16px;
	font-size: 13px;
	margin: 10px 0 16px;
	padding: 12px 14px;
	background: var(--bg-soft);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
}
.docs .kv div { min-width: 0; overflow-wrap: anywhere; }
.docs .kv > div:nth-child(odd) {
	color: var(--faint);
	font-weight: 500;
}

/* —— Forms —— */
label {
	display: block;
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	min-width: 0;
}
label:last-child { margin-bottom: 0; }
input, select, textarea {
	width: 100%;
	max-width: 100%;
	margin-top: 6px;
	background: #10151f;
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 9px 11px;
	font: inherit;
	transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: rgba(232, 165, 75, 0.55);
	box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { min-height: 84px; resize: vertical; }
.row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 14px;
	margin-bottom: 4px;
}
.row > label { margin-bottom: 0; }
.inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	color: var(--muted);
}
.inline input { width: auto; margin-top: 0; }
.type-row {
	align-items: end;
	grid-template-columns: 64px minmax(88px, auto) minmax(120px, .9fr) minmax(90px, .6fr) minmax(0, 1.4fr);
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
	margin: 0;
}
.type-row:last-of-type { border-bottom: 0; }
.type-row strong {
	align-self: center;
	font-size: 13px;
	padding-bottom: 2px;
}

/* —— Buttons —— */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--panel-2);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 8px 14px;
	cursor: pointer;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	min-height: 38px;
	transition: filter .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; border-color: #3a455c; }
.btn.primary {
	background: linear-gradient(180deg, #f0b45a, var(--accent));
	color: #1a1208;
	border-color: transparent;
	font-weight: 650;
	box-shadow: 0 4px 12px rgba(196, 107, 43, 0.22);
}
.btn.primary:hover { filter: brightness(1.04); }
.btn.block { width: 100%; }
.btn.link, button.link {
	background: none;
	border: 0;
	color: var(--accent2);
	cursor: pointer;
	padding: 0;
	font: inherit;
	min-height: 0;
	font-weight: 500;
}
button.link.danger { color: var(--err); }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }

.toolbar {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 12px 0 0;
	flex-wrap: wrap;
}
.panel > .toolbar:first-child,
.panel form > .toolbar:first-child { margin-top: 0; }

.filter {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, .85fr)) auto;
	gap: 10px;
	margin-bottom: 16px;
	align-items: stretch;
	padding: 12px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.filter input, .filter select { width: 100%; min-width: 0; margin: 0; }
.filter .btn { width: auto; white-space: nowrap; }

/* —— Tables —— */
.table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	box-shadow: var(--shadow);
}
.panel .table-wrap {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	margin: 0 -4px;
}
.table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
}
.table th, .table td {
	text-align: left;
	padding: 11px 12px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
}
.table th {
	color: var(--faint);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.18);
	white-space: nowrap;
}
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.table .toolbar { margin: 0; gap: 6px; }
.table .btn { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }
.links-cell a { margin-right: 8px; }
.links-cell code { font-size: 12px; }

/* —— Misc —— */
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.alert {
	padding: 11px 14px;
	border-radius: var(--radius-sm);
	margin-bottom: 14px;
	border: 1px solid transparent;
	font-size: 13.5px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.alert.err { background: var(--err-bg); color: #ffb3bb; border-color: rgba(255, 107, 122, 0.25); }
.alert.ok { background: var(--ok-bg); color: #b6f0d2; border-color: rgba(61, 214, 140, 0.25); }
form.inline { display: inline; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line-soft);
	overflow-wrap: anywhere;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: baseline;
}
.plain li:last-child { border-bottom: 0; }
.plain small { color: var(--faint); margin-left: auto; font-size: 12px; }
.tag {
	font-size: 11px;
	font-weight: 600;
	background: #242c3e;
	border: 1px solid var(--line-soft);
	padding: 2px 7px;
	border-radius: 99px;
	color: var(--muted);
}
.tag.muted { opacity: 0.85; }
.pager {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.pager a {
	padding: 7px 11px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	min-width: 36px;
	text-align: center;
	background: var(--panel);
	font-size: 13px;
}
.pager a:hover { text-decoration: none; border-color: #3a455c; }
.pager a.on {
	background: var(--accent);
	color: #1a1208;
	border-color: transparent;
	font-weight: 650;
}

.drop {
	border: 1.5px dashed #3d4a66;
	border-radius: var(--radius);
	padding: clamp(22px, 4vw, 36px);
	text-align: center;
	color: var(--muted);
	margin: 14px 0;
	background: linear-gradient(180deg, #141a26, #10151f);
	position: relative;
	transition: border-color .15s ease, background .15s ease;
}
.drop.over {
	border-color: var(--accent);
	background: var(--accent-dim);
	color: var(--text);
}
.drop input[type=file] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	padding: 0;
}
.progress-box { margin: 12px 0 8px; }
.progress-meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}
.progress-meta span:first-child { color: var(--accent); font-weight: 650; }
.progress-wrap {
	height: 10px;
	background: #10151f;
	border-radius: 99px;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--line);
}
.bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #c46b2b, var(--accent));
	transition: width .15s ease;
	border-radius: 99px;
}
.bar.indeterminate {
	width: 40% !important;
	animation: barSlide 1.1s ease-in-out infinite;
}
@keyframes barSlide {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(280%); }
}
.row-progress { min-width: 140px; }
.row-progress .progress-wrap { height: 8px; margin-top: 4px; }
.row-progress .pct { font-size: 12px; color: var(--muted); }

.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 14px;
}
.media-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	min-width: 0;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.thumb {
	height: clamp(110px, 22vw, 148px);
	background: #10151f;
	display: grid;
	place-items: center;
	color: var(--muted);
	border-bottom: 1px solid var(--line-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card h3 {
	margin: 12px 14px 0;
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
	line-height: 1.35;
}
.media-card .muted { margin: 6px 14px; font-size: 12.5px; }
.card-act {
	padding: 8px 14px 14px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: auto;
}
.card-act audio { width: 100%; }

.form-narrow { max-width: 420px; }

.key-table td { vertical-align: middle; }
.key-name { font-weight: 650; white-space: nowrap; }
.key-prefix { white-space: nowrap; }
.key-domain { width: 34%; min-width: 260px; }
.key-domain-form {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
}
.key-domain-form textarea {
	flex: 1;
	min-height: 0;
	height: auto;
	margin: 0;
	resize: vertical;
	line-height: 1.4;
	padding: 7px 10px;
}
.key-domain-form .btn { flex-shrink: 0; margin-top: 1px; }
.key-perms { white-space: nowrap; }
.key-perms .tag { margin: 0 4px 0 0; }
.key-actions {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: flex-end;
}
.key-actions form { margin: 0; }
.btn.danger {
	color: #ffb3bb;
	border-color: rgba(255, 107, 122, 0.35);
	background: var(--err-bg);
}
.tag-ok {
	color: var(--ok);
	border-color: rgba(61, 214, 140, 0.35);
	background: var(--ok-bg);
}
.tag-off { color: var(--faint); }

/* —— Login —— */
.login-body {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 24px;
	background:
		radial-gradient(1000px 480px at 18% -8%, rgba(232, 165, 75, 0.16), transparent 55%),
		radial-gradient(800px 400px at 90% 110%, rgba(91, 140, 255, 0.1), transparent 50%),
		var(--bg);
}
.login-card {
	width: min(400px, 100%);
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: clamp(22px, 4vw, 30px);
	box-shadow: var(--shadow), 0 24px 48px rgba(0, 0, 0, 0.28);
}
.brand-row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 22px;
}
.brand-row strong { display: block; font-size: 16px; font-weight: 700; }
.brand-row small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.login-card label { margin-bottom: 14px; }
.login-card .btn { margin-top: 6px; }
.center { text-align: center; }
.login-card .center { margin-top: 16px; margin-bottom: 0; }

.status-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 14px;
	margin-bottom: 16px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 13px;
	color: var(--muted);
	box-shadow: var(--shadow);
}
.status-strip code { font-size: 12px; }

@media (max-width: 1100px) {
	.side {
		position: fixed;
		left: 0;
		top: 0;
		transform: translateX(-105%);
		transition: transform .22s ease;
		box-shadow: none;
	}
	.app.nav-open .side {
		transform: translateX(0);
		box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
	}
	.side-mask {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 30;
		backdrop-filter: blur(2px);
	}
	.side-mask[hidden] { display: none; }
	.topbar { display: flex; }
	.main { padding-top: 18px; }
	.type-row { grid-template-columns: 1fr 1fr; }
	.type-row strong { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	.filter { grid-template-columns: 1fr; }
	.filter .btn { width: 100%; }
	.cards { grid-template-columns: 1fr 1fr; }
	.table { min-width: 860px; }
	.type-row { grid-template-columns: 1fr; }
	.nowrap {
		white-space: normal;
		display: flex;
		flex-wrap: wrap;
		gap: 8px 10px;
		align-items: center;
	}
	input, select, textarea, .btn { font-size: 16px; }
	.side nav a { padding: 11px 12px; }
	.drop { min-height: 120px; }
	.page-head h1 { display: none; }
	.page-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
	.docs .kv { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
	.cards { grid-template-columns: 1fr; }
	.toolbar .btn { flex: 1 1 calc(50% - 8px); }
}
