/* ============================================================
   门窗 O2O 平台 · 静态原型
   设计语言沿用建设方案：暖白底 / 墨绿主色 / 铁锈色强调
   ============================================================ */

:root {
  --bg: #FBFAF8;
  --bg2: #F3F0EA;
  --bg3: #EAE5DC;
  --ink: #1B1A18;
  --muted: #6C6861;
  --rule: #DCD6CB;
  --accent: #0E5A68;
  --accent2: #B4643A;
  --accent-soft: #E4EDEF;
  --accent2-soft: #F6E9E1;
  --good: #2F6B4F;
  --warn: #A9771F;
  --bad: #A23B2A;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', system-ui, sans-serif;
  --mono: 'GeistMono', 'SFMono-Regular', Consolas, monospace;
  --r: 12px;
  --shadow: 0 24px 70px rgba(27, 26, 24, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg2);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- 移动端外壳 ---------------- */
.mobile-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 90, 104, .09), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(180, 100, 58, .10), transparent 46%),
    var(--bg2);
  min-height: 100vh;
}
.phone {
  width: min(420px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 560px) {
  .phone {
    margin: 32px auto;
    min-height: calc(100vh - 64px);
    border: 1px solid rgba(27, 26, 24, .07);
    border-radius: 34px;
    overflow: clip;
    box-shadow: var(--shadow);
  }
}

/* ---------------- 顶部 ---------------- */
.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(251, 250, 248, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-bar .back {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 15px;
  color: var(--muted);
  flex: none;
}
.app-bar .title { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.app-bar .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.app-bar .spacer { margin-left: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 6px 9px;
  background: var(--bg);
  box-shadow: 7px 0 0 var(--bg);
}

.store-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}
.store-strip strong { font-weight: 700; }
.store-strip .sep { width: 1px; height: 11px; background: rgba(255, 255, 255, .35); }
.store-strip .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 20px;
}

/* ---------------- 通用内容 ---------------- */
.page { padding: 16px 18px 24px; }
.section { margin-top: 26px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.section-head span { font-size: 11px; color: var(--muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent2);
}

.hero {
  position: relative;
  margin: 16px 18px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #14110F;
  min-height: 232px;
  display: flex;
  align-items: flex-end;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, .05) 18%, rgba(20, 17, 15, .82) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 20px; color: #fff; width: 100%; }
.hero-copy .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .8;
  margin-bottom: 8px;
}
.hero-copy h1 { font-size: 24px; line-height: 1.28; letter-spacing: -.01em; font-weight: 700; }
.hero-copy p { font-size: 12.5px; opacity: .82; margin-top: 6px; }
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}
.hero-price b { font-size: 26px; letter-spacing: -.02em; }
.hero-price small { font-size: 12px; opacity: .78; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
}
.trust-row div {
  background: var(--bg);
  padding: 12px 8px;
  text-align: center;
}
.trust-row b { display: block; font-size: 13px; }
.trust-row span { font-size: 10.5px; color: var(--muted); }

.product-list { display: grid; gap: 12px; }
.product-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  padding: 10px;
  align-items: center;
}
.product-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 9px; background: var(--bg3); }
.product-card h3 { font-size: 14px; font-weight: 700; }
.product-card p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.product-card .price { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent2); }
.product-card .price small { font-size: 10.5px; color: var(--muted); font-weight: 400; }

.steps { display: grid; gap: 0; margin-top: 4px; }
.step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.step h4 { font-size: 13px; font-weight: 700; }
.step p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); }
.btn.block { width: 100%; }
.btn.rust { background: var(--accent2); }
.btn.ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn:focus-visible, .opt:focus-within, .tab:focus-visible, .nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note {
  background: var(--accent2-soft);
  border-left: 3px solid var(--accent2);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 12px;
  color: #6b3b23;
}
.note.teal { background: var(--accent-soft); border-left-color: var(--accent); color: #0b4650; }
.note b { font-weight: 700; }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.meta-grid div { background: var(--bg); padding: 11px 13px; }
.meta-grid dt { font-size: 10.5px; color: var(--muted); }
.meta-grid dd { margin: 3px 0 0; font-size: 12.5px; font-weight: 700; }

.timeline { margin-top: 4px; }
.tl-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 20px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--bg);
  position: relative;
  z-index: 2;
  margin-top: 2px;
}
.tl-item.done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-item.done .tl-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.tl-item.now .tl-dot { border-color: var(--accent2); box-shadow: 0 0 0 4px var(--accent2-soft); }
.tl-item h4 { font-size: 13px; font-weight: 700; }
.tl-item p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tl-item .time { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ---------------- 选配表单 ---------------- */
.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  color: var(--muted);
}
.progress span { display: flex; align-items: center; gap: 6px; }
.progress i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
}
.progress span.on { color: var(--accent); font-weight: 700; }
.progress span.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress .line { flex: 1; height: 1px; background: var(--rule); }

.field { margin-top: 16px; }
.field > label, .field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  height: 46px;
}
.input-wrap input, .input-wrap select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
}
.input-wrap span { font-size: 11px; color: var(--muted); flex: none; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.opt-group { display: grid; gap: 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font-size: 13px;
  cursor: pointer;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  flex: none;
  position: relative;
}
.opt .name { flex: 1; font-weight: 600; }
.opt .delta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.opt:has(input:checked) .tick { border-color: var(--accent); }
.opt:has(input:checked) .tick::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.opt:has(input:checked) .delta { color: var(--accent); font-weight: 700; }

.price-box {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 18px;
}
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.price-line b { color: var(--ink); font-family: var(--mono); font-weight: 700; }
.price-line.total {
  border-top: 1px solid var(--rule);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 14px;
  color: var(--ink);
}
.price-line.total b { font-size: 19px; color: var(--accent2); }

.summary-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: auto;
  background: rgba(251, 250, 248, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  padding: 12px 18px 16px;
}
.summary-bar .row { display: flex; align-items: center; gap: 14px; }
.summary-bar .amount { flex: 1; }
.summary-bar .amount small { display: block; font-size: 10.5px; color: var(--muted); }
.summary-bar .amount b { font-size: 22px; letter-spacing: -.02em; color: var(--accent2); }
.summary-bar .btn { min-width: 132px; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field-box { display: grid; gap: 6px; }
.field-box label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.field-box input, .field-box textarea, .field-box select {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 13.5px;
  outline: 0;
}
.field-box textarea { min-height: 72px; resize: vertical; }
.field-box input:focus, .field-box textarea:focus, .field-box select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}
.check input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.check b { color: var(--ink); }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(251, 250, 248, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  padding: 7px 4px 10px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px;
  font-size: 10.5px;
  color: var(--muted);
  position: relative;
}
.tab .dot {
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: transparent;
}
.tab.active { color: var(--accent); font-weight: 700; }
.tab.active .dot { background: var(--accent); }

/* ---------------- 成功浮层 ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(27, 26, 24, .48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.show { display: flex; }
.overlay-card {
  width: min(360px, 100%);
  background: var(--bg);
  border-radius: 18px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.overlay-card .ok {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}
.overlay-card h3 { font-size: 18px; }
.overlay-card p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.overlay-card .btn { margin-top: 18px; }

/* ---------------- 入口页 ---------------- */
.launch { max-width: 1080px; margin: 0 auto; padding: 52px 24px 80px; }
.launch-top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.launch-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
}
.launch h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -.02em;
  max-width: 16em;
}
.launch .lead { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 46em; }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.launch-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.launch-card .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--accent2);
}
.launch-card h2 { font-size: 22px; letter-spacing: -.01em; }
.launch-card p { font-size: 12.5px; color: var(--muted); }
.launch-card ul { display: grid; gap: 6px; }
.launch-card li { font-size: 12px; color: var(--muted); padding-left: 12px; position: relative; }
.launch-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.launch-card .btn { margin-top: auto; }
.launch-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 11.5px;
  color: var(--muted);
}
.launch-foot code {
  font-family: var(--mono);
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------------- 后台 ---------------- */
.admin { display: flex; min-height: 100vh; background: var(--bg2); }
.sidebar {
  width: 238px;
  flex: none;
  background: var(--ink);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand { font-size: 14px; }
.sidebar .brand .mark { background: var(--accent2); }
.sidebar .brand .mark::after { background: var(--ink); box-shadow: 7px 0 0 var(--ink); }
.sidebar .sub { font-size: 10px; letter-spacing: .14em; color: rgba(255, 255, 255, .45); font-family: var(--mono); }
.side-nav { display: grid; gap: 3px; }
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: 0;
  width: 100%;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 700; }
.nav-item .badge-dot {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--accent2);
  color: #fff;
  padding: 1px 6px;
  border-radius: 20px;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 14px;
}
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar h1 { font-size: 19px; letter-spacing: -.01em; }
.topbar .path { font-size: 10.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.proto-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  padding: 3px 8px;
  border: 1px solid var(--accent2);
  color: var(--accent2);
  border-radius: 20px;
  white-space: nowrap;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.content { padding: 22px 28px 60px; }
.panel { display: none; }
.panel.active { display: block; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-head h2 { font-size: 16px; }
.panel-head p { font-size: 11.5px; color: var(--muted); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 16px 14px;
}
.kpi .k { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.kpi .v { font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.kpi .v small { font-size: 12px; font-weight: 400; color: var(--muted); }
.kpi .d { font-size: 10.5px; margin-top: 6px; color: var(--good); }
.kpi .d.down { color: var(--bad); }

.grid-2 { display: grid; grid-template-columns: 1.35fr .9fr; gap: 14px; margin-top: 14px; }
.panel-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px;
}
.panel-card h3 { font-size: 13.5px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.panel-card h3 span { font-size: 10.5px; color: var(--muted); font-weight: 400; }

.funnel-row {
  display: grid;
  grid-template-columns: 78px 1fr 52px;
  gap: 12px;
  align-items: center;
  margin-bottom: 11px;
  font-size: 11.5px;
}
.funnel-row .bar { height: 9px; border-radius: 20px; background: var(--accent); opacity: .9; }
.funnel-row .bar.alt { background: var(--accent2); }
.funnel-row b { font-family: var(--mono); font-size: 11px; text-align: right; }

.rank-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row .no { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.rank-row b { font-family: var(--mono); font-size: 11.5px; }

.todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.todo-row:last-child { border-bottom: 0; }
.todo-row b { font-family: var(--mono); }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
tbody td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FCFBF9; }
td.mono, th.mono { font-family: var(--mono); white-space: nowrap; }
.badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--accent2-soft); color: var(--accent2); }
.badge.mute { background: var(--bg3); color: var(--muted); }
.badge.bad { background: #F6E3DF; color: var(--bad); }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

@media (max-width: 960px) {
  .admin { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 14px 18px;
    gap: 12px;
  }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 12px; }
  .sidebar .sub, .sidebar-foot { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .topbar { padding: 14px 18px; }
  .topbar h1 { font-size: 16px; }
  .topbar-right .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .launch { padding: 30px 18px 60px; }
  .launch-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi .v { font-size: 22px; }
  .funnel-row { grid-template-columns: 62px 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
