:root {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --ink: #1c1917;
  --ink-2: #44403c;
  --mute: #8a817a;
  --line: #ece8e2;
  --line-2: #f3f0eb;
  --side: #17130f;
  --side-2: #241e18;
  --side-ink: #d6cfc6;
  --gold: #d97706;
  --gold-2: #b45309;
  --gold-soft: #fff4e2;
  --ok: #059669;
  --ok-soft: #e7f7f0;
  --bad: #dc2626;
  --bad-soft: #fdecec;
  --warn: #ea580c;
  --warn-soft: #fff1e7;
  --info: #2563eb;
  --info-soft: #eaf1fe;
  --violet: #7c3aed;
  --r: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }

/* ===== 布局 ===== */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--side); color: var(--side-ink); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; font-weight: 800; font-size: 16px; }
.logo i {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fbbf24, #d97706); color: #1c1917; font-style: normal; font-size: 16px;
  box-shadow: 0 6px 16px rgba(217, 119, 6, .35);
}
.logo small { display: block; font-size: 11px; font-weight: 600; color: #8a817a; letter-spacing: .04em; }
.site-switch {
  margin: 0 4px 16px; padding: 10px 12px; border-radius: 12px; background: var(--side-2);
  display: flex; align-items: center; gap: 10px; border: 1px solid #2f2820;
}
.site-switch .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px #34d39922; }
.site-switch b { color: #fff; font-size: 13px; display: block; }
.site-switch span { font-size: 11px; color: #8a817a; }
.site-switch em { margin-left: auto; font-style: normal; color: #8a817a; }
.nav-title { font-size: 11px; color: #6b625a; font-weight: 700; letter-spacing: .08em; padding: 12px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; color: var(--side-ink);
}
.nav-item svg { width: 18px; height: 18px; opacity: .8; }
.nav-item.active { background: linear-gradient(90deg, #d9770633, #d9770608); color: #fff; box-shadow: inset 2px 0 0 #f59e0b; }
.nav-item.active svg { color: #fbbf24; opacity: 1; }
.nav-item .tag { margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: #dc2626; color: #fff; font-weight: 700; }
.nav-item .tag.new { background: #f59e0b; color: #1c1917; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--side-2); font-size: 12px; }
.side-foot .row-s { display: flex; justify-content: space-between; color: #8a817a; margin-top: 4px; }
.side-foot .row-s b { color: #d6cfc6; font-weight: 600; }

.main { display: flex; flex-direction: column; min-width: 0; }
.top {
  height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(255, 255, 255, .7); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.crumb { color: var(--mute); font-size: 13px; }
.crumb b { color: var(--ink); }
.search {
  margin-left: auto; width: 260px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--mute); font-size: 13px;
}
.search kbd { margin-left: auto; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: var(--line-2); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; position: relative; color: var(--ink-2);
}
.icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
.user { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #fde68a, #f59e0b); display: grid; place-items: center; font-weight: 800; color: #78350f; }
.user b { display: block; font-size: 13px; }
.user span { font-size: 11px; color: var(--mute); }

.content { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.page-hd { display: flex; align-items: flex-end; gap: 16px; }
.page-hd h1 { font-size: 22px; letter-spacing: -.02em; }
.page-hd p { color: var(--mute); font-size: 13px; margin-top: 2px; }
.page-hd .actions { margin-left: auto; display: flex; gap: 8px; }

/* ===== 组件 ===== */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-hd h3 { font-size: 15px; }
.card-hd .sub { color: var(--mute); font-size: 12px; }
.card-hd .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-bd { padding: 16px 18px 18px; }
.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-21 { grid-template-columns: 2fr 1fr; }
.g-12 { grid-template-columns: 1fr 1.25fr; }
.g-32 { grid-template-columns: 1.55fr 1fr; }

.btn {
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: #fff; box-shadow: 0 4px 12px rgba(217, 119, 6, .25); white-space: nowrap; flex: none;
}
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.danger-ghost { background: #fff; color: var(--bad); border-color: #f5c9c9; box-shadow: none; }
.btn svg { width: 15px; height: 15px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line-2); color: var(--mute); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.gold { background: var(--gold-soft); color: var(--gold-2); }

/* KPI */
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .lb { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.kpi .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi .val { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.kpi .val small { font-size: 14px; color: var(--mute); font-weight: 700; margin-left: 2px; }
.kpi .delta { font-size: 12px; font-weight: 700; margin-top: 2px; color: var(--mute); }
.kpi .delta .up { color: var(--ok); }
.kpi .delta .down { color: var(--bad); }
.kpi .spark { position: absolute; right: 14px; bottom: 14px; width: 96px; height: 36px; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.field label .opt { font-weight: 600; color: var(--mute); }
.input {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff;
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink);
}
.input.focus { border-color: #f59e0b; box-shadow: 0 0 0 4px #f59e0b1f; }
.input .pre { color: var(--mute); font-size: 12px; border-right: 1px solid var(--line); padding-right: 10px; }
.input .suf { margin-left: auto; }
.textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfaf8;
  font-family: "Cascadia Mono", Consolas, monospace; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); white-space: pre; overflow: hidden;
}
.help { font-size: 12px; color: var(--mute); }
.check-row { display: flex; gap: 8px; flex-wrap: wrap; }
.check-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--line-2); font-weight: 600; color: var(--ink-2); }
.check-chip.ok { background: var(--ok-soft); color: #047857; }
.check-chip svg { width: 14px; height: 14px; }

.switch { display: inline-block; vertical-align: middle; width: 36px; height: 20px; border-radius: 999px; background: #d6d3d1; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--gold); }
.switch.on::after { left: 18px; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--line-2); border: 1px solid var(--line); }
.seg span { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.seg span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 700; padding: 10px 18px; background: #faf8f5; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.ell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 10px; font-weight: 800; margin-right: 10px; vertical-align: middle; }

/* 状态条 */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 13px; }
.banner.ok { background: var(--ok-soft); color: #065f46; border: 1px solid #bfe9d6; }
.banner.warn { background: var(--warn-soft); color: #9a3412; border: 1px solid #fed7aa; }
.banner .bi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; flex: none; }
.banner .act { margin-left: auto; display: flex; gap: 8px; }

/* 时间线 */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.tl-item:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 38px; bottom: -4px; width: 2px; background: var(--line-2); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tl-dot svg { width: 14px; height: 14px; }
.tl-item b { font-size: 13px; }
.tl-item p { font-size: 12px; color: var(--mute); }
.tl-item time { margin-left: auto; font-size: 11.5px; color: var(--mute); white-space: nowrap; }

.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mute); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.bar-row { display: grid; grid-template-columns: 90px 1fr 56px; gap: 10px; align-items: center; font-size: 12.5px; padding: 6px 0; }
.bar-row .track { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 999px; }
.bar-row b { text-align: right; font-size: 12.5px; }

.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn-step { display: flex; align-items: center; gap: 12px; }
.fn-bar { height: 38px; border-radius: 10px; display: flex; align-items: center; padding: 0 14px; color: #fff; font-weight: 700; font-size: 13px; }
.fn-step .rate { font-size: 12px; color: var(--mute); font-weight: 700; white-space: nowrap; }

.diff { font-family: "Cascadia Mono", Consolas, monospace; font-size: 11.5px; line-height: 1.75; background: #1c1917; color: #d6d3d1; border-radius: 10px; padding: 12px 14px; overflow: hidden; }
.diff .h { color: #a8a29e; }
.diff .del { background: #7f1d1d55; color: #fca5a5; display: block; margin: 0 -14px; padding: 0 14px; }
.diff .add { background: #14532d66; color: #86efac; display: block; margin: 0 -14px; padding: 0 14px; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--mute); }
.kv dd { font-weight: 600; word-break: break-all; }

.steps { display: flex; gap: 0; align-items: center; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-style: normal; font-size: 11px; }
.step.done { color: var(--ok); } .step.done i { background: var(--ok); color: #fff; }
.step.cur { color: var(--ink); } .step.cur i { background: var(--gold); color: #fff; }
.step-line { width: 40px; height: 2px; background: var(--line); margin: 0 10px; }
.step-line.done { background: var(--ok); }

/* 超级管理员 */
body.sa { --gold: #4f46e5; --gold-2: #4338ca; --gold-soft: #eef2ff; }
body.sa .btn:not(.ghost):not(.dark):not(.danger-ghost) { box-shadow: 0 4px 12px rgba(79, 70, 229, .25); }
body.sa .side { background: #0f1022; }
body.sa .site-switch, body.sa .side-foot { background: #1a1c36; border-color: #26294a; }
body.sa .logo i { background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .4); }
body.sa .nav-item.active { background: linear-gradient(90deg, #6366f133, #6366f108); box-shadow: inset 2px 0 0 #818cf8; }
body.sa .nav-item.active svg { color: #a5b4fc; }
body.sa .avatar { background: linear-gradient(135deg, #c7d2fe, #6366f1); color: #1e1b4b; }
body.sa .switch.on { background: #4f46e5; }
body.sa .input.focus { border-color: #6366f1; box-shadow: 0 0 0 4px #6366f11f; }
.period { height: 6px; border-radius: 9px; background: var(--line-2); overflow: hidden; width: 120px; }
.period i { display: block; height: 100%; border-radius: 9px; }
.chk { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #d6d3d1; display: inline-block; vertical-align: middle; background: #fff; }
.chk.on { background: #4f46e5; border-color: #4f46e5; position: relative; }
.chk.on::after { content: "✓"; color: #fff; font-size: 11px; position: absolute; left: 2px; top: -2px; font-weight: 800; }
.site-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.modal-mask { position: fixed; inset: 0; background: rgba(15, 16, 34, .45); }
.modal .chips span { padding: 6px 9px; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; background: #fff; border-radius: 18px; box-shadow: 0 40px 80px rgba(15, 16, 34, .35); overflow: hidden; }
.modal-hd { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-bd { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.modal-ft { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafaf9; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #fff; }
.chips span.on { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.opt-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.opt-card.on { border-color: #6366f1; background: #f7f7ff; }
.opt-card .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d6d3d1; flex: none; }
.opt-card.on .radio { border: 5px solid #4f46e5; }

/* 链接卡片 */
.link-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; position: relative; }
.link-card.active { border-color: #f4c27a; background: #fffaf0; box-shadow: inset 3px 0 0 #f59e0b; }
.link-card .lc-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.link-card .lc-url { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; margin-top: 8px; word-break: break-all; }
.link-card .lc-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--mute); }

/* 浏览器 */
.br { display: flex; align-items: center; gap: 10px; }
.br-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; flex: none; }
.br b { font-size: 13px; display: block; }
.br span { font-size: 11.5px; color: var(--mute); }
.ok-ic { color: var(--ok); font-weight: 800; }
.bad-ic { color: var(--bad); font-weight: 800; }
.thumb { width: 44px; height: 30px; border-radius: 5px; border: 1px solid var(--line); background: linear-gradient(180deg, #1c1917 0 30%, #f59e0b 30% 46%, #f5f3ef 46%); }
.thumb.blank { background: repeating-linear-gradient(45deg, #fdecec 0 4px, #fff 4px 8px); border-color: #f5c9c9; }

.uptime { display: flex; gap: 3px; margin-top: 10px; }
.uptime i { flex: 1; height: 26px; border-radius: 3px; background: #34d399; }
.uptime i.w { background: #fb923c; }
.uptime i.b { background: #f87171; }

/* TG 消息 */
.tg-chat { background: #c9dcc0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffffff55'/%3E%3C/svg%3E"); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tg-msg { background: #fff; border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tg-msg .from { color: #2481cc; font-weight: 700; font-size: 12px; }
.tg-msg time { display: block; text-align: right; font-size: 10.5px; color: #9ca3af; }
.tg-btns { display: flex; gap: 6px; max-width: 92%; }
.tg-btns span { flex: 1; text-align: center; padding: 7px; border-radius: 8px; background: #ffffffaa; color: #2481cc; font-size: 12px; font-weight: 700; }

input.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); outline: none; }
input.input, select.input { height: 40px; padding: 0 12px; display: block; }
textarea.input { min-height: 96px; padding: 10px 12px; resize: vertical; font-family: Consolas, monospace; font-size: 12px; }
input.input:focus, select.input:focus, textarea.input:focus { border-color: #6366f1; box-shadow: 0 0 0 4px #6366f11f; }
.seg label, .seg a { display: flex; cursor: pointer; position: relative; }
.seg input { display: none; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chips button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.opt-card { cursor: pointer; position: relative; }
.opt-card input[type=radio] { position: absolute; opacity: 0; }
.opt-card:has(input:checked) { border-color: #6366f1; background: #f7f7ff; }
.switch-label { position: relative; display: inline-flex; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; width: 0; height: 0; }
body.sa .switch-label input:checked + .switch { background: #4f46e5; }
body.sa .switch-label input:checked + .switch::after { left: 18px; }
.flash { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: #065f46; border: 1px solid #bfe9d6; font-weight: 700; }
.flash.bad { background: var(--bad-soft); color: #991b1b; border-color: #fecaca; }
.site b, .site span, .time b, .time span { display: block; }
.site { display: flex; align-items: center; gap: 10px; }
.site span, .time span { font-size: 11.5px; color: var(--mute); }
.ops { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
tr.dim td { color: var(--mute); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.flow .st { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fafaf9; border: 1px solid var(--line); }
.flow .st.me { background: #f7f7ff; border-color: #c7d2fe; }
.flow .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex: none; }
.tree { font-family: Consolas, monospace; font-size: 12.5px; line-height: 2; padding: 12px 16px; border-radius: 12px; background: #fafaf9; border: 1px solid var(--line); }
.empty { padding: 28px; text-align: center; color: var(--mute); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-page .card { width: min(420px, 100%); }
.auth-page .btn { width: 100%; justify-content: center; height: 42px; }
@media (max-width: 1100px) {
  .app, .flow, .g-4, .g-2, .g-3 { grid-template-columns: 1fr !important; }
  .side { position: sticky; top: 0; z-index: 5; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .side-foot, .site-switch, .nav-title { display: none; }
  .flow .arrow { display: none; }
  .content { padding: 18px; }
  .grid[style*="repeat(5"] { grid-template-columns: 1fr 1fr !important; }
}
