/* =====================================================
   客资统一 — Modern Eastern Luxury
   FLORASIS-inspired · cream + ink + gold
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600&family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Paper / Background */
  --paper:        #F4EEE0;
  --paper-2:      #EBE3CF;
  --paper-card:   #FBF7EC;
  --paper-pure:   #FEFCF6;
  --paper-deep:   #E3D9BF;

  /* Ink */
  --ink:    #1A1612;
  --ink-2:  #3A2F23;
  --ink-3:  #6B5C45;
  --ink-4:  #998A70;
  --ink-5:  #C0B49A;
  --ink-6:  #DDD3BB;

  /* Gold — accent (refined warm) */
  --gold:       #B08148;
  --gold-deep:  #8A6034;
  --gold-soft:  #D4B589;
  --gold-pale:  #EFE0C8;
  --gold-leaf:  #C9A45A;

  /* Secondary tones (used very sparingly) */
  --jade:    #5F6D58;
  --plum:    #7A4642;

  /* Lines */
  --line:        #D3C8AB;
  --line-soft:   #E0D5B9;
  --line-strong: #A8997A;

  /* Status colors */
  --st-lead:    #8A6034;
  --st-online:  #1A1612;
  --st-visit:   #5F6D58;
  --st-cold:    #998A70;

  /* Typography */
  --font-display-cn: 'Noto Serif SC', serif;
  --font-cn:         'Noto Sans SC', sans-serif;
  --font-display:    'Cormorant', 'Noto Serif SC', serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Rhythm */
  --pad-x: 40px;
  --pad-y: 32px;
  --gap-s: 8px;
  --gap-m: 16px;
  --gap-l: 24px;
  --gap-xl: 40px;
}

/* ============ Reset ============ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    radial-gradient(at 0% 0%, rgba(176, 129, 72, 0.04) 0%, transparent 40%),
    radial-gradient(at 100% 100%, rgba(176, 129, 72, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  background: transparent; border: none; outline: none;
}
img, svg { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--paper-pure); }

/* ============ App Shell ============ */

.app {
  min-height: 100vh;
}

/* ============ Top Bar ============ */

.topbar {
  background: var(--paper-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  position: relative;
}

.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-soft) 18%,
    var(--gold) 50%,
    var(--gold-soft) 82%,
    transparent 100%);
  opacity: 0.4;
}

.topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap-xl);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
  height: 100%;
}

.brand-seal {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper-pure);
  font-family: var(--font-display-cn);
  font-size: 18px;
  font-weight: 500;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.brand-seal::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold-leaf);
  pointer-events: none;
  border-radius: 1px;
}

.brand-seal::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text .zh {
  font-family: var(--font-display-cn);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.brand-text .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: stretch;
}

.nav .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s ease;
}

.nav .item:hover { color: var(--ink); }

.nav .item .ico {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.nav .item.active {
  color: var(--ink);
  font-weight: 600;
}

.nav .item.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--gap-l);
}

.topbar-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

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

.user-chip .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-pure);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.user-chip .info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-chip .info .nm {
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.user-chip .info .role {
  font-family: var(--font-cn);
  font-size: 10px;
  color: var(--ink-3);
}

/* ============ Main ============ */

.main {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) 80px;
}

/* Sub-header / page top */
.page-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-bottom: var(--gap-l);
  margin-bottom: var(--gap-xl);
  border-bottom: 1px solid var(--line);
  gap: var(--gap-l);
}

.page-top .crumb {
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.page-top .crumb .sep {
  margin: 0 8px;
  color: var(--ink-4);
}

.page-top h1 {
  font-family: var(--font-display-cn);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.page-top h1 .count {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-3);
}

.page-top .head-meta {
  display: flex;
  gap: var(--gap-l);
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
  align-items: baseline;
}

.page-top .head-meta .em {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-mono);
}

.page-top .head-meta .v {
  width: 1px;
  height: 14px;
  background: var(--line);
}

/* ============ KPI cards ============ */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-m);
  margin-bottom: var(--gap-xl);
}

.kpi {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 22px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px rgba(26, 22, 18, 0.12);
}

.kpi .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.kpi .label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi .label .zh {
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.kpi .label .en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.kpi .ico-bg {
  width: 34px;
  height: 34px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.kpi:hover .ico-bg {
  background: var(--gold);
  color: var(--paper-pure);
  border-color: var(--gold);
}

.kpi .value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.kpi .value .num {
  font-family: var(--font-display-cn);
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}

.kpi .value .u {
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.kpi .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--ink-3);
}

.kpi .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delta.up { color: var(--jade); }
.delta.down { color: var(--plum); }
.delta.flat { color: var(--ink-3); }

/* ============ Section heads ============ */

.section {
  margin-bottom: 48px;
}

.s-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--gap-l);
  gap: var(--gap-l);
}

.s-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.s-title h2 {
  font-family: var(--font-display-cn);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  position: relative;
  padding-left: 22px;
}

.s-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.s-title h2::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 4px;
  height: 4px;
  background: var(--paper-card);
}

.s-title .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}

.s-title .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border: 1px solid var(--gold-soft);
  background: var(--gold-pale);
}

.s-head .right {
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
}

/* ============ 客资 Feature Block ============ */

.kezi {
  background: var(--paper-card);
  border: 1px solid var(--line);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.kezi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background:
    linear-gradient(135deg, var(--gold) 0%, transparent 50%);
  opacity: 0.18;
  pointer-events: none;
}

.kezi::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background:
    linear-gradient(315deg, var(--gold) 0%, transparent 50%);
  opacity: 0.12;
  pointer-events: none;
}

.kezi-side {
  padding: 32px 32px 28px;
  position: relative;
}

.kezi-side + .kezi-side {
  border-left: 1px solid var(--line);
}

.kezi-side .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.kezi-side .top .zh {
  font-family: var(--font-display-cn);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.kezi-side .top .zh::after {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.kezi-side .top .en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}

.kezi-side .v {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.kezi-side .v .big {
  font-family: var(--font-display-cn);
  font-size: 76px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.kezi-side .v .delta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--gold-pale);
  color: var(--gold-deep);
  border: 1px solid var(--gold-soft);
}

.kezi-side .desc {
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
}

.kezi-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.kz-row {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  align-items: center;
  gap: var(--gap-m);
  font-family: var(--font-cn);
  font-size: 13px;
}

.kz-row .lbl {
  color: var(--ink-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kz-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.kz-row .dot.gold { background: var(--gold); }
.kz-row .dot.jade { background: var(--jade); }
.kz-row .dot.plum { background: var(--plum); }
.kz-row .dot.line { background: transparent; border: 1px solid var(--ink-3); }

.kz-row .bar {
  height: 6px;
  background: var(--paper-deep);
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.kz-row .bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  border-radius: 3px;
}

.kz-row .bar .fill.gold { background: var(--gold); }
.kz-row .bar .fill.jade { background: var(--jade); }
.kz-row .bar .fill.plum { background: var(--plum); }

.kz-row .v {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* ============ Charts ============ */

.charts-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--gap-m);
}

.chart-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 24px 28px;
}

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

.chart-head h3 {
  font-family: var(--font-display-cn);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.chart-head .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 8px;
}

.chart-head-r {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-tabs {
  display: flex;
  gap: 4px;
  background: var(--paper);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.chart-tabs .tab {
  padding: 5px 10px;
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.chart-tabs .tab.active {
  background: var(--ink);
  color: var(--paper-pure);
}

.chart-svg {
  width: 100%;
  height: 220px;
}

.chart-legend {
  display: flex;
  gap: var(--gap-l);
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
  align-items: center;
}

.chart-legend .swatch {
  display: inline-block;
  width: 12px;
  height: 2px;
  vertical-align: middle;
  margin-right: 8px;
}

/* ============ Funnel ============ */

.funnel-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}

.funnel-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(225deg, var(--gold) 0%, transparent 55%);
  opacity: 0.12;
  pointer-events: none;
}

.funnel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.fn {
  padding: 0 24px;
  border-right: 1px dashed var(--line);
  position: relative;
}

.fn:last-child { border-right: none; }
.fn:first-child { padding-left: 0; }

.fn .stage {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fn .stage .drop {
  color: var(--plum);
  margin-left: 4px;
}

.fn .zh {
  font-family: var(--font-display-cn);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.fn .num {
  font-family: var(--font-display-cn);
  font-size: 48px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.fn .pct {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

.fn .pct .bar {
  flex: 1;
  height: 3px;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.fn .pct .bar .f {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--gold);
  border-radius: 2px;
}

.fn-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.fnc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.fnc-head .zh {
  font-family: var(--font-display-cn);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.fnc-head .lat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
}

.fnc-step {
  display: grid;
  grid-template-columns: 60px 1fr 50px 50px;
  gap: var(--gap-m);
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-family: var(--font-cn);
  font-size: 12px;
}

.fnc-step:last-child { border-bottom: none; }

.fnc-step .l {
  font-family: var(--font-display-cn);
  color: var(--ink-2);
  font-weight: 500;
}

.fnc-step .b {
  height: 4px;
  background: var(--paper-deep);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.fnc-step .b .f {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  border-radius: 2px;
}

.fnc-step .pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}

.fnc-step .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* ============ Two-col layouts ============ */

.duo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-m);
}

/* Venue performance */
.venue-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 24px 28px;
}

.venue {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.venue:first-of-type { padding-top: 0; }
.venue:last-child { border-bottom: none; padding-bottom: 0; }

.venue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.venue-head .l {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.venue-head .l .zh {
  font-family: var(--font-display-cn);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.venue-head .l .role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.venue-head .r {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.venue-bars {
  display: flex;
  height: 8px;
  background: var(--paper-deep);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.venue-bars span {
  height: 100%;
  display: block;
}

.venue-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--ink-3);
}

.venue-foot .rate {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

.venue-legend {
  display: flex;
  gap: var(--gap-l);
  padding-top: 14px;
  margin-top: var(--gap-m);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--ink-3);
}

.venue-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.venue-legend .sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* VX rows */
.vx-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: var(--gap-m);
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.vx-row:first-of-type { padding-top: 0; }
.vx-row:last-child { border-bottom: none; padding-bottom: 0; }

.vx-row .rank {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-deep);
  text-align: center;
}

.vx-row .info .nm {
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.vx-row .info .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.vx-row .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.vx-row .pct-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold-pale);
  padding: 4px 10px;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  min-width: 50px;
  text-align: center;
}

/* Heatmap */
.heatmap {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
}

.heatmap .cell {
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  border-radius: 3px;
  position: relative;
  transition: transform 0.15s ease;
}

.heatmap .cell:hover { transform: scale(1.08); }

.heatmap .cell.h0 { background: var(--paper-2); }
.heatmap .cell.h1 { background: #E0D5B9; }
.heatmap .cell.h2 { background: #D4B589; }
.heatmap .cell.h3 { background: #C9A45A; }
.heatmap .cell.h4 { background: var(--gold); }
.heatmap .cell.h5 { background: var(--gold-deep); }
.heatmap .cell.h6 { background: var(--ink-2); }
.heatmap .cell.h7 { background: var(--ink); }

.heatmap-axis {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  text-align: center;
}

.peaks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-l);
  margin-top: var(--gap-l);
  padding-top: var(--gap-l);
  border-top: 1px solid var(--line-soft);
}

.peak {
  padding: 0;
}

.peak .l {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.peak .v {
  font-family: var(--font-display-cn);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.peak .v .u {
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
}

/* Channel quality */
.chan-row {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.chan-row:first-of-type { padding-top: 0; }
.chan-row:last-child { border-bottom: none; padding-bottom: 0; }

.chan-row .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.chan-row .zh {
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.chan-row .val {
  font-family: var(--font-display-cn);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.chan-row .val .u {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 2px;
}

.chan-row .bar {
  height: 4px;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 6px;
}

.chan-row .bar .f {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  border-radius: 2px;
}

.chan-row .bar .f.gold { background: var(--gold); }
.chan-row .bar .f.jade { background: var(--jade); }
.chan-row .bar .f.plum { background: var(--plum); }

.chan-row .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.chan-row .meta .up { color: var(--jade); font-weight: 600; }

/* Tip note */
.tip {
  margin-top: var(--gap-l);
  padding: 14px 18px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  display: flex;
  gap: 12px;
}

.tip .ico {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 600;
  flex-shrink: 0;
}

/* ============ Donut center ============ */

.donut-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  font-family: var(--font-cn);
  font-size: 12px;
}

.donut-list .ln {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.donut-list .ln .l {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-list .ln .l .sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.donut-list .ln .v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

/* ============ Buttons ============ */

.btn {
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper-pure);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-pure);
}

.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-2);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--paper-card);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper-pure);
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ============ Table ============ */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-l);
  margin-bottom: var(--gap-l);
  padding-bottom: var(--gap-l);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.toolbar-l {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  flex-wrap: wrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 240px;
}

.search:focus-within { border-color: var(--gold); }

.search input {
  width: 100%;
  font-family: var(--font-cn);
  font-size: 13px;
}

.search input::placeholder { color: var(--ink-4); }

.chip {
  font-family: var(--font-cn);
  font-size: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.chip:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.chip.active {
  background: var(--ink);
  color: var(--paper-pure);
  border-color: var(--ink);
}

.chip .n {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.chip.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper-pure);
}

/* Quick stats strip */
.qs-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper-card);
  border: 1px solid var(--line);
  margin-bottom: var(--gap-l);
  border-radius: 4px;
  overflow: hidden;
}

.qs {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}

.qs:last-child { border-right: none; }

.qs .l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qs .l .zh {
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.qs .l .en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.qs .v {
  font-family: var(--font-display-cn);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Table */
.tbl-wrap {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

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

table.tbl thead {
  background: var(--paper);
}

table.tbl thead th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

table.tbl thead th .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-top: 2px;
}

table.tbl tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-cn);
  font-size: 13px;
  color: var(--ink-2);
  vertical-align: middle;
}

table.tbl tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

table.tbl tbody tr:hover {
  background: var(--paper);
}

table.tbl tbody tr:last-child td { border-bottom: none; }

.cell-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-name .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.cell-name .info .nm {
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.cell-name .info .ph {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
}

.mono { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.mono-strong { font-family: var(--font-mono); font-size: 12px; color: var(--ink); letter-spacing: 0.04em; font-weight: 500; }
.italic { font-family: var(--font-display); font-style: italic; color: var(--ink-3); font-size: 13px; }

/* Tag — service type */
.tag-svc {
  font-family: var(--font-display-cn);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-block;
}

.tag-svc.wenfa {
  background: var(--ink);
  color: var(--paper-pure);
  border-color: var(--ink);
}

.tag-svc.peixun {
  background: var(--gold-pale);
  color: var(--gold-deep);
  border-color: var(--gold-soft);
}

/* Status pills */
.pill {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pill.lead {
  background: var(--gold-pale);
  color: var(--gold-deep);
}
.pill.lead::before { background: var(--gold); }

.pill.online {
  background: var(--ink);
  color: var(--paper-pure);
}
.pill.online::before { background: var(--gold-leaf); }

.pill.success {
  background: rgba(95, 109, 88, 0.12);
  color: var(--jade);
}
.pill.success::before { background: var(--jade); }

.pill.cold {
  background: var(--paper);
  color: var(--ink-3);
  border: 1px dashed var(--line);
}
.pill.cold::before { background: var(--ink-4); }

.row-actions { text-align: right; }

.icon-btn {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  border-radius: 4px;
  transition: all 0.15s;
}

.icon-btn:hover { background: var(--paper); color: var(--ink); }

/* Pagination */
.pagn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--gap-l);
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
}

.pagn .pages {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.pagn .page {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
  cursor: pointer;
  background: var(--paper-card);
  letter-spacing: 0.04em;
  min-width: 32px;
  text-align: center;
}

.pagn .page:last-child { border-right: none; }
.pagn .page:hover { background: var(--paper); color: var(--ink); }
.pagn .page.active { background: var(--ink); color: var(--paper-pure); }

/* ============ Form ============ */

.form-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap-xl);
}

.form-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}

.form-aside .head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-aside .head .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-aside .head .zh {
  font-family: var(--font-display-cn);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.stepper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  padding: 12px 14px;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.step:hover { background: var(--paper-card); }

.step .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  flex-shrink: 0;
}

.step.done .dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-pure);
}

.step.active {
  background: var(--paper-card);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}

.step.active .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper-pure);
}

.step .info {
  display: flex;
  flex-direction: column;
}

.step .info .num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.step .info .zh {
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.step.active .info .zh,
.step.done .info .zh { color: var(--ink); }

.form-body {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 40px;
}

.form-banner {
  background: var(--ink);
  color: var(--paper-pure);
  padding: 20px 28px;
  border-radius: 4px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.form-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.form-banner .lt {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-banner .arr {
  font-family: var(--font-display-cn);
  font-size: 28px;
  color: var(--gold-leaf);
  font-weight: 400;
}

.form-banner .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-banner .ttl {
  font-family: var(--font-display-cn);
  font-size: 18px;
  font-weight: 500;
  color: var(--paper-pure);
  letter-spacing: 0.06em;
}

.form-banner .rt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-5);
  max-width: 320px;
  line-height: 1.5;
  text-align: right;
}

.f-section {
  margin-bottom: 36px;
}

.f-section:last-child { margin-bottom: 0; }

.f-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.f-section-head .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
  background: var(--gold-pale);
  padding: 3px 8px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
}

.f-section-head h3 {
  font-family: var(--font-display-cn);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.f-section-head .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-l);
}

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

.field { display: flex; flex-direction: column; gap: 6px; }
.field.span2 { grid-column: span 2; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.field-label .name {
  font-family: var(--font-display-cn);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.field-label .name .req { color: var(--plum); margin-left: 2px; }

.field-label .hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-4);
}

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-cn);
  font-size: 13px;
  color: var(--ink);
  transition: all 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--paper-card);
}

.field textarea { min-height: 90px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231A1612' stroke-width='1.2' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.opt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.opt {
  position: relative;
  padding: 14px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.opt:hover { border-color: var(--ink-3); }

.opt input { position: absolute; opacity: 0; }

.opt .zh {
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.opt .lat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-4);
}

.opt.sel {
  background: var(--ink);
  border-color: var(--ink);
}

.opt.sel .zh { color: var(--paper-pure); }
.opt.sel .lat { color: var(--ink-5); }

.opt.sel::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-leaf);
}

.opt.gold-sel {
  background: var(--gold);
  border-color: var(--gold);
}
.opt.gold-sel .zh { color: var(--paper-pure); }
.opt.gold-sel .lat { color: var(--paper-pure); opacity: 0.8; }
.opt.gold-sel::after { background: var(--ink); }

.f-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.f-actions .l {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
}

.f-actions .r { display: flex; gap: 10px; }

/* ============ Detail page ============ */

.detail-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap-l);
  padding-bottom: var(--gap-l);
  margin-bottom: var(--gap-xl);
  border-bottom: 1px solid var(--line);
}

.d-av {
  width: 80px;
  height: 80px;
  background: var(--ink);
  color: var(--paper-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-cn);
  font-size: 36px;
  font-weight: 500;
  position: relative;
  border-radius: 4px;
}

.d-av::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold-leaf);
  pointer-events: none;
  border-radius: 2px;
}

.d-name h1 {
  font-family: var(--font-display-cn);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.d-name h1 .lat {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-3);
}

.d-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-m);
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
}

.d-meta .strong {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.d-meta .gold {
  font-family: var(--font-display-cn);
  font-weight: 600;
  color: var(--gold-deep);
}

.d-meta .v {
  width: 1px;
  height: 12px;
  background: var(--line);
}

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

/* Timeline */
.tl {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 36px;
  margin-bottom: var(--gap-xl);
  position: relative;
  overflow: hidden;
}

.tl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 50%);
  opacity: 0.15;
  pointer-events: none;
}

.tl::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(315deg, var(--gold) 0%, transparent 50%);
  opacity: 0.12;
  pointer-events: none;
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.tl-head h3 {
  font-family: var(--font-display-cn);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.tl-head .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 8px;
}

.tl-head .now {
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-head .now .em {
  font-family: var(--font-display-cn);
  font-weight: 600;
  color: var(--gold-deep);
  padding: 3px 8px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
}

.tl-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

.tl-track::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: var(--line);
}

.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  gap: 10px;
}

.tl-step .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  position: relative;
  z-index: 1;
}

.tl-step.done .dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-pure);
}

.tl-step.now .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper-pure);
  box-shadow: 0 0 0 4px var(--gold-pale);
}

.tl-step .zh {
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.tl-step.done .zh { color: var(--ink); }
.tl-step.now .zh { color: var(--gold-deep); }

.tl-step .t {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}

/* Detail cards */
.d-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-l);
}

.d-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 28px;
}

.d-card + .d-card { margin-top: var(--gap-l); }

.d-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.d-card-head h3 {
  font-family: var(--font-display-cn);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.d-card-head h3 .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-3);
}

.d-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  gap: var(--gap-m);
  align-items: baseline;
}

.d-row:last-child { border-bottom: none; }

.d-row .lbl {
  font-family: var(--font-display-cn);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.d-row .val {
  font-family: var(--font-cn);
  font-size: 13px;
  color: var(--ink);
}

.d-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  margin-top: var(--gap-s);
}

.d-metric {
  padding: 16px 18px;
  background: var(--paper);
}

.d-metric .l {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.d-metric .v {
  font-family: var(--font-display-cn);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.d-metric .v .u {
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
}

/* Activity */
.act { display: flex; flex-direction: column; }

.act-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--gap-m);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.act-item:last-child { border-bottom: none; }

.act-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.act-time .hr {
  display: block;
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

.act-text {
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}

.act-text .who {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display-cn);
}

.act-text .ev {
  color: var(--gold-deep);
  font-weight: 600;
}

/* ============ Misc ============ */

.crumb-bar {
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: var(--gap-l);
}

.crumb-bar a { color: var(--ink-3); }
.crumb-bar a:hover { color: var(--ink); }
.crumb-bar .sep { margin: 0 8px; color: var(--ink-4); }

/* Page entrance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.main > * {
  animation: fadeIn 0.5s ease-out backwards;
  animation-fill-mode: both;
}

.main > *:nth-child(1) { animation-delay: 0.02s; }
.main > *:nth-child(2) { animation-delay: 0.08s; }
.main > *:nth-child(3) { animation-delay: 0.14s; }
.main > *:nth-child(4) { animation-delay: 0.20s; }
.main > *:nth-child(5) { animation-delay: 0.26s; }
.main > *:nth-child(6) { animation-delay: 0.32s; }
.main > *:nth-child(7) { animation-delay: 0.38s; }

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .topbar-inner { padding: 0 20px; }
  .main { padding: 24px 20px 80px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kezi { grid-template-columns: 1fr; }
  .kezi-side + .kezi-side {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .charts-row, .duo { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .d-grid { grid-template-columns: 1fr; }
}
