/* =========================================================
   商衢同传 · 管理后台样式
   设计取向：中性灰底 + 近黑主色，数据密集但要透气；
   与小程序端「黑白极简」保持一致，不引入第三方 UI 库。
   ========================================================= */

:root {
  --ink: #14161a;
  --ink-2: #33373f;
  --muted: #7a818c;
  --muted-2: #9aa1ab;
  --line: #e7e9ed;
  --line-2: #f0f2f5;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ok: #067a4b;
  --ok-bg: #e7f6ee;
  --warn: #9a5b00;
  --warn-bg: #fdf3e2;
  --info: #1f4f9a;
  --info-bg: #eaf1fb;
  --live: #0b6b6b;
  --live-bg: #e6f4f4;
  --danger: #a8200d;
  --danger-bg: #fdeceb;
  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 8px 24px -18px rgba(16, 18, 22, .35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #000; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
pre, code, .mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }

.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  background: #101216;
  color: #cfd4dc;
  z-index: 20;
}

.brand { padding: 20px 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-logo-img { display: block; height: 24px; width: auto; }
.brand-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.brand-sub { margin-top: 9px; font-size: 10.5px; color: #7d858f; letter-spacing: .06em; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; padding: 14px 10px 20px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 0; }
.nav-label { padding: 0 10px 6px; font-size: 10.5px; letter-spacing: .14em; color: #616a75; font-weight: 600; }

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; margin: 1px 0;
  border-radius: 8px;
  font-size: 13px; color: #b8bfc9;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.is-active { background: #fff; color: #101216; font-weight: 600; }
.nav-item .ico { width: 16px; height: 16px; flex: none; opacity: .8; }
.nav-item.is-active .ico { opacity: 1; }
.nav-item .count {
  margin-left: auto; font-size: 11px; padding: 0 6px; height: 17px; line-height: 17px;
  border-radius: 20px; background: rgba(255,255,255,.1); color: #cfd4dc;
  font-variant-numeric: tabular-nums;
}
.nav-item.is-active .count { background: #eceef1; color: #14161a; }
.nav-sub { margin: 2px 0 4px 26px; border-left: 1px solid rgba(255,255,255,.1); padding-left: 10px; }
.nav-sub .nav-item { font-size: 12.5px; padding: 6px 8px; }

.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; }
.side-user { display: flex; align-items: center; gap: 9px; }
.side-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #2a2e36;
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.side-user-name { color: #eef0f3; font-weight: 600; }
.side-user-role { color: #7d858f; font-size: 11px; }
.logout-btn {
  margin-top: 10px; width: 100%; padding: 6px 10px; border-radius: 7px;
  background: rgba(255,255,255,.06); color: #cfd4dc; border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}
.logout-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.main { flex: 1; min-width: 0; margin-left: 236px; display: flex; flex-direction: column; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  height: 56px; padding: 0 26px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.crumb .sep { color: #c9ced6; }
.crumb strong { color: var(--ink); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.top-date { font-variant-numeric: tabular-nums; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; display: inline-block; margin-right: 5px; }

.page { padding: 22px 26px 44px; max-width: 1440px; width: 100%; }

/* ---------------- 页头 ---------------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.page-head > div:first-child { flex: 1; min-width: 0; }
.page-head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-bottom: 2px; flex: none; }
.page-title { font-size: 21px; line-height: 1.3; }
.page-desc { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.card-title { font-size: 14px; font-weight: 650; }
.card-desc { font-size: 12px; color: var(--muted); }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 0; }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px 13px; box-shadow: var(--shadow);
}
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi-foot { margin-top: 7px; font-size: 11.5px; color: var(--muted-2); }
.kpi-foot b { color: var(--ok); font-weight: 600; }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { font-size: 13px; }
.table th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase;
  padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover td { background: #fafbfd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table .nowrap { white-space: nowrap; }
.table .muted { color: var(--muted); }
.table .strong { font-weight: 600; }
.table a.strong:hover { text-decoration: underline; }
.table tr.is-clickable { cursor: pointer; }

/* ---------------- 会员单元格 ---------------- */
.person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 600;
}
.person-name { font-weight: 600; line-height: 1.35; }
.person-meta { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 5px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: #f1f3f6; color: #4b525c;
}
.badge.is-ok { background: var(--ok-bg); color: var(--ok); }
.badge.is-warn { background: var(--warn-bg); color: var(--warn); }
.badge.is-info { background: var(--info-bg); color: var(--info); }
.badge.is-live { background: var(--live-bg); color: var(--live); }
.badge.is-mute { background: #f1f3f6; color: #8b929c; }
.badge.is-sim { background: #eef0fb; color: #3f4394; }
.badge.is-escort { background: #f0f4f8; color: #3a5670; }
.badge.is-danger { background: var(--danger-bg); color: var(--danger); }
.dot-badge { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: #f7f8fa; border-color: #d9dde3; }
.btn-primary { background: #14161a; border-color: #14161a; color: #fff; }
.btn-primary:hover { background: #000; border-color: #000; color: #fff; }
.btn-danger { color: var(--danger); border-color: #f3d5d2; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: #e9bdb7; }
.btn-sm { height: 27px; padding: 0 9px; font-size: 12px; }
.btn-icon { width: 27px; height: 27px; padding: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 筛选栏 ---------------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fff;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field > span:first-child { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.input, .select, .textarea {
  height: 32px; padding: 0 10px;
  border: 1px solid #dfe3e9; border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-size: 13px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 74px; padding: 9px 10px; line-height: 1.65; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #9aa3ae; box-shadow: 0 0 0 3px rgba(20, 22, 26, .06);
}
.input.w-sm { width: 120px; }
.input.w-md { width: 190px; }
.input.w-lg { width: 260px; }
.select { padding-right: 26px; }
.filters .spacer { margin-left: auto; }

/* ---------------- 分页 ---------------- */
.pager {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-top: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--muted);
}
.pager .spacer { margin-left: auto; }
.pager a, .pager span.pg {
  min-width: 28px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.pager a:hover { background: #f6f7f9; }
.pager .is-current { background: #14161a; border-color: #14161a; color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: transparent; color: var(--muted-2); }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--r) var(--r) 0 0; }
.tab {
  position: relative; padding: 12px 12px 11px; font-size: 13px; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: #14161a; }
.tab .n { font-size: 11.5px; font-weight: 600; color: var(--muted-2); margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ---------------- 进度条 ---------------- */
.bar { height: 5px; border-radius: 3px; background: #eef0f3; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: #14161a; border-radius: 3px; }
.bar.soft > i { background: #9aa3ae; }

/* ---------------- 空状态 ---------------- */
.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }

/* ---------------- 提示条 ---------------- */
.flashes { margin-bottom: 14px; display: grid; gap: 8px; }
.flash {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 8px; font-size: 13px;
  border: 1px solid transparent;
}
.flash.is-ok { background: var(--ok-bg); color: var(--ok); border-color: #c7e9d5; }
.flash.is-error { background: var(--danger-bg); color: var(--danger); border-color: #f2cfcb; }

/* ---------------- 详情栅格 ---------------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }

.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-all; }

/* 会员详情头部 */
.profile { display: flex; align-items: center; gap: 16px; padding: 18px; }
.profile .avatar { width: 52px; height: 52px; font-size: 19px; border-radius: 14px; }
.profile-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.profile-actions { margin-left: auto; display: flex; gap: 8px; }

.mini-stat { display: flex; gap: 22px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.mini-stat div { min-width: 64px; }
.mini-stat b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mini-stat span { font-size: 11.5px; color: var(--muted); }

/* 城市列表（会员详情） */
.city-list { display: grid; gap: 2px; }
.city-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.city-row:last-child { border-bottom: 0; }
.city-row:hover { background: #fafbfd; }
.city-row.is-active { background: #eef1f5; box-shadow: inset 3px 0 0 #14161a; }
.city-row.is-active .name { color: #000; }
.city-row .name { font-weight: 600; }
.city-row .orders { color: var(--muted); font-size: 12px; }
.city-row .last { margin-left: auto; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* 排行榜 */
.rank-no {
  width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 700; background: #f1f3f6; color: #6b7280; font-variant-numeric: tabular-nums;
}
.rank-no.top { background: #14161a; color: #fff; }
.city-link { font-weight: 650; }
.city-link:hover { text-decoration: underline; }

/* 趋势图 */
.trend { display: flex; align-items: flex-end; gap: 5px; height: 132px; padding: 6px 2px 0; }
.trend .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; position: relative; }
.trend .col i {
  display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #2b2f36, #14161a); min-height: 2px;
  transition: background .12s;
}
.trend .col:hover i { background: #4b525c; }
.trend .col span { font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend .col b {
  position: absolute; top: -2px; font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  opacity: 0; transition: opacity .12s;
}
.trend .col:hover b { opacity: 1; }

/* 编辑器 */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.editor-pane { min-width: 0; }
.editor-pane + .editor-pane { border-left: 1px solid var(--line-2); background: #fbfcfd; }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); background: #fafbfc; }
.editor-bar .tbtn { height: 26px; min-width: 26px; padding: 0 8px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.editor-bar .tbtn:hover { background: #eef0f3; }
.editor-bar .divider { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.editor-bar .hint { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.code-area {
  width: 100%; min-height: 460px; border: 0; outline: none; resize: vertical;
  padding: 14px 16px; font: 12.5px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #2a2f37; background: #fff;
}
.preview { padding: 18px 20px; min-height: 460px; max-height: 640px; overflow: auto; font-size: 13.5px; line-height: 1.85; color: #2a2f37; }
.preview h2 { font-size: 14.5px; margin: 20px 0 8px; padding-left: 9px; border-left: 3px solid #14161a; }
.preview h2:first-child { margin-top: 0; }
.preview p { margin: 0 0 9px; }
.preview p.lead { color: #4b525c; background: #f7f8fa; padding: 10px 12px; border-radius: 8px; }
.preview ul { margin: 0 0 10px 18px; padding: 0; }

/* 语言管理 */
.switch { position: relative; display: inline-block; width: 34px; height: 19px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d7dbe1; transition: background .16s; }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: transform .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + span { background: #14161a; }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20,22,26,.15); }

/* 表单弹层（简单区块，非模态） */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.form-foot .spacer { margin-left: auto; }
.help { font-size: 11.5px; color: var(--muted-2); }

/* 可折叠卡片（会员编辑资料） */
details.card > summary { cursor: pointer; list-style: none; border-radius: var(--r); }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { border-bottom: 1px solid var(--line-2); }

/* 语言管理：按钮式开关 */
.switch-btn {
  position: relative; width: 34px; height: 19px; padding: 0; border: 0;
  border-radius: 20px; background: #d7dbe1; transition: background .16s;
}
.switch-btn i {
  position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.22);
  transition: transform .16s;
}
.switch-btn.is-on { background: #14161a; }
.switch-btn.is-on i { transform: translateX(15px); }
.switch-btn:focus-visible { outline: 2px solid #14161a; outline-offset: 2px; }

/* 常见问题：正在编辑行 */
tr.is-editing td { background: #fbfaf3 !important; }
tr.is-editing td:first-child { box-shadow: inset 3px 0 0 #b08968; }

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 20% 0%, #1b1e24 0%, #0d0f12 55%, #08090b 100%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 30px 28px 26px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.login-logo { display: block; height: 30px; width: auto; }
.login-title { margin-top: 18px; font-size: 20px; font-weight: 700; }
.login-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.login-form { margin-top: 22px; display: grid; gap: 12px; }
.login-form .input { height: 40px; font-size: 14px; }
.login-btn { height: 42px; border-radius: 9px; background: #14161a; color: #fff; border: 0; font-size: 14px; font-weight: 600; margin-top: 4px; }
.login-btn:hover { background: #000; }
.login-err { background: var(--danger-bg); color: var(--danger); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; }
.login-tip { margin-top: 18px; padding: 10px 12px; background: #f6f7f9; border-radius: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.login-foot { margin-top: 16px; text-align: center; font-size: 11px; color: var(--muted-2); }

/* 响应式：≤1200 收窄 KPI；≤900 侧栏转顶部横向 */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .split { grid-template-columns: minmax(0, 1fr); }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-pane + .editor-pane { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 900px) {
  .side { position: static; width: 100%; inset: auto; }
  .app { flex-direction: column; }
  .main { margin-left: 0; }
  .nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; }
  .nav-group { margin: 0; display: flex; gap: 4px; }
  .nav-label, .nav-sub, .side-foot { display: none; }
  .nav-item { white-space: nowrap; }
  .page { padding: 16px 14px 32px; }
  .top { padding: 0 14px; }
  .kpi-grid, .form-grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
