/* ============================================================
   33CRM / Macrobase System — shared site stylesheet (dark HUD)
   Tokens derived from MacroBase logo v2: charcoal #231f20,
   brand red #c6161d. Token + craft contract per brand-spec.md
   ============================================================ */

:root {
  --bg: oklch(20% 0.005 355);
  --surface: oklch(24.4% 0.006 1);
  --surface-2: oklch(27.3% 0.006 0);
  --fg: oklch(93.2% 0.006 31);
  --muted: oklch(67.2% 0.009 37);
  --border: oklch(93.2% 0.006 31 / 0.12);
  --border-strong: oklch(93.2% 0.006 31 / 0.24);
  --accent: oklch(52.7% 0.205 27);
  --accent-hover: oklch(56.5% 0.205 26);
  --accent-active: oklch(46% 0.19 26);
  --on-accent: oklch(96% 0.006 31);
  --accent-strong: oklch(67.9% 0.209 23);
  --accent-surface: oklch(52.7% 0.205 27 / 0.16);
  --glow: oklch(67.9% 0.209 23 / 0.32);
  --danger: oklch(66% 0.2 27);
  --success: oklch(68% 0.16 155);
  --success-text: oklch(78% 0.12 155);
  --warn: oklch(76% 0.15 80);
  --warn-text: oklch(84% 0.11 80);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;

  --container: 1200px;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 0 oklch(0% 0 0 / 0.25), 0 12px 26px -18px oklch(0% 0 0 / 0.55);
  --shadow-md: 0 1px 0 oklch(0% 0 0 / 0.3), 0 24px 52px -24px oklch(0% 0 0 / 0.7);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { max-width: 65ch; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt {
  background: color-mix(in oklch, var(--surface) 50%, var(--bg));
  border-block: 1px solid var(--border);
}
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head .lead { margin-top: 16px; color: var(--muted); font-size: 17px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--stack { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--stack::before { content: ""; width: 22px; height: 1px; background: var(--border-strong); }

/* ---------- type ---------- */
.display-title {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.display-title strong { color: var(--fg); font-weight: 700; }
.lead { font-size: 17.5px; line-height: 1.65; color: var(--muted); max-width: 60ch; }
.kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

.h3 { font-size: 22px; }
.small { font-size: 13.5px; }
.caption { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent-surface), 0 0 26px -6px var(--glow);
}
.btn-primary:active { background: var(--accent-active); box-shadow: none; }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--fg); background: var(--surface-2); }
.btn-ghost:active { background: color-mix(in oklch, var(--surface-2) 82%, var(--bg)); }

.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: oklch(88% 0.006 31); }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* text link */
.link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px;
  color: var(--accent-strong);
}
.link .arr { transition: transform 0.18s ease; }
.link:hover .arr { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-surface); color: var(--accent-strong);
}
.pill--neutral { background: oklch(93.2% 0.006 31 / 0.06); color: var(--muted); border: 1px solid var(--border); }
.pill--dark { background: var(--fg); color: var(--bg); }
.pill--success { background: oklch(68% 0.16 155 / 0.14); color: var(--success-text); }
.pill--warn { background: oklch(76% 0.15 80 / 0.14); color: var(--warn-text); }
.pill--danger { background: oklch(66% 0.2 27 / 0.16); color: oklch(80% 0.16 27); }

/* status dot */
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--bg) 76%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); }
.brand-logo {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--fg);
  border-radius: 8px 8px 8px 3px;
  box-shadow: 0 0 18px -4px var(--glow);
}
.brand-logo img { display: block; width: auto; height: 32px; }
.brand-word { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link, .nav-cta-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  font-size: 14.5px; font-weight: 500; color: var(--fg);
  border-radius: 6px;
}
.nav-link:hover { background: var(--surface-2); }
.nav-cta-link { color: var(--accent-strong); font-weight: 600; }

.nav-item { position: relative; }
.nav-chev { width: 10px; height: 10px; transition: transform 0.2s ease; }
.nav-item.open .nav-chev { transform: rotate(180deg); }

.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 250px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 70;
}
.nav-item.open .nav-panel, .nav-item:focus-within .nav-panel, .nav-item:hover .nav-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 12px; border-radius: 6px;
}
.nav-sub:hover { background: var(--bg); }
.nav-sub--active { background: var(--accent-surface); box-shadow: inset 2px 0 0 var(--accent-strong); }
.nav-sub--active:hover { background: var(--accent-surface); }
.nav-sub--active code { color: var(--accent-strong); }
.nav-sub--active span { color: var(--fg); }
.nav-sub code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-strong); letter-spacing: 0.06em; }
.nav-sub span { font-size: 14px; font-weight: 500; }
.nav-sub small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.nav-cta { display: flex; align-items: center; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute;
  width: 640px; height: 640px;
  right: clamp(-180px, -8vw, -60px); top: -220px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(93.2% 0.006 31 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(93.2% 0.006 31 / 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 85% at 50% 20%, black 0%, transparent 100%);
  mask-image: radial-gradient(80% 85% at 50% 20%, black 0%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .display-title { margin-top: 0; }
.hero-copy .lead { margin-top: 22px; }
.hero-copy .btn-row { margin-top: 34px; }
.hero-proof { margin-top: 30px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card--hover { transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.card--hover:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--accent-surface), 0 0 32px -14px var(--glow), var(--shadow-md);
  transform: translateY(-3px);
}

.icon-tile {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2);
  color: var(--fg);
  margin-bottom: 18px;
}
.icon-tile svg { width: 22px; height: 22px; }

.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card .card-link { margin-top: 18px; }

/* product card */
.product-card { display: flex; flex-direction: column; padding: 28px; }
.product-card .code-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.product-card .code-row code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.product-card h3 { font-size: 23px; margin-bottom: 10px; }
.product-card p { font-size: 15px; }
.product-card .card-link { margin-top: auto; padding-top: 22px; }
.product-card .tags,
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* product card visuals */
.card-visual { margin-top: 18px; }
.card-visual .pipe-step { padding: 11px 12px; }
.card-visual .stat-row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.card-visual .stat { padding: 9px 10px; }
.card-visual .stat .lbl { font-size: 10px; }
.card-visual .stat .val { font-size: 17px; margin-top: 2px; }
.card-visual .stat .sub { font-size: 10px; margin-top: 1px; }
.card-visual .bars .bar { cursor: pointer; transition: filter 0.16s ease, box-shadow 0.16s ease; }
.card-visual .bars .bar:hover { filter: brightness(1.2); box-shadow: 0 0 14px -4px var(--glow); }
.card-visual .donut-legend span { cursor: default; }
.card-visual .donut-legend span:hover b { color: var(--accent-strong); }
a.pill--neutral { text-decoration: none; cursor: pointer; }
a.pill--neutral:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- feature row (alternating) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: clamp(32px, 5vw, 56px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row .eyebrow { display: block; margin-bottom: 14px; }
.feature-row h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.feature-row p { color: var(--muted); }
.feature-list { margin-top: 20px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feature-list li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent-strong); }

/* ---------- suite stack (home hero) ---------- */
.suite { padding: 20px; }
.suite-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.suite-rows { display: grid; }
.suite-row {
  display: grid; grid-template-columns: 46px 1fr auto; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center;
  padding: 13px 10px; border-top: 1px solid var(--border);
  transition: background 0.18s ease;
}
.suite-row:hover { background: var(--surface-2); }
.suite-row code { grid-row: 1 / 3; grid-column: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: color 0.18s ease; }
.suite-row:hover code { color: var(--accent-strong); }
.suite-name { font-weight: 600; font-size: 14.5px; }
.suite-desc { grid-column: 2; font-size: 12px; color: var(--muted); }
.suite-arr { grid-row: 1 / 3; grid-column: 3; width: 16px; height: 16px; color: var(--muted); }
.suite-row:hover .suite-arr { color: var(--accent-strong); transform: translateX(2px); transition: transform 0.18s ease; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 14px; }
.contact-item .icon-tile { margin-bottom: 0; flex: none; }
.contact-item h3 { font-size: 17px; margin-bottom: 2px; }
.contact-item a { font-weight: 600; color: var(--accent-strong); }
.contact-item p { color: var(--muted); font-size: 14px; }

/* ---------- product UI mock ---------- */
.mock { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-md); overflow: hidden; }
.mock::before {
  content: ""; position: absolute; top: 0; right: 14px;
  width: 26px; height: 2px; background: var(--accent);
  box-shadow: 0 0 12px var(--glow); z-index: 2; pointer-events: none;
}
.mock-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mock-chrome .dots { display: flex; gap: 6px; }
.mock-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: oklch(93.2% 0.006 31 / 0.16); }
.mock-chrome .dots i:first-child { background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.mock-chrome .mock-url { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.mock-body { display: flex; min-height: 360px; }
.mock-side { width: 168px; flex: none; border-right: 1px solid var(--border); padding: 14px 10px; background: var(--bg); }
.mock-side .side-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); }
.mock-side .side-item--active { background: var(--accent-surface); color: var(--accent-strong); font-weight: 600; }
.mock-main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: var(--surface-2); }
.stat .lbl { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.stat .val { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.panel { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.panel-head .t { font-size: 13px; font-weight: 600; }
.panel-body { padding: 14px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.bar-col { flex: 1; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar { width: 100%; border-radius: 3px 3px 0 0; background: oklch(93.2% 0.006 31 / 0.14); }
.bars .bar--a { background: var(--accent); box-shadow: 0 0 14px -4px var(--glow); }
.bar-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); letter-spacing: 0.03em; }

.mtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mtable th { text-align: left; font-weight: 600; color: var(--muted); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.mtable td { padding: 9px 10px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .amt { font-family: var(--font-mono); font-weight: 500; }

/* BI dashboard extras */
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut {
  --d1: var(--accent); --d2: oklch(93.2% 0.006 31 / 0.22); --d3: oklch(93.2% 0.006 31 / 0.12); --d4: oklch(93.2% 0.006 31 / 0.3);
  width: 96px; height: 96px; flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--d1) 0 38%, var(--d2) 38% 62%, var(--d3) 62% 82%, var(--d4) 82% 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 24px -8px var(--glow);
}
.donut::after { content: ""; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); }
.donut-legend { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.donut-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; }
.donut-legend b { color: var(--fg); font-weight: 600; }
.kpi-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--surface-2); }
.kpi .lbl { font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.kpi .val { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-family: var(--font-mono); font-size: 11px; color: var(--success-text); margin-top: 2px; }
.kpi .delta.neg { color: var(--danger); }
.pipeline { display: flex; align-items: stretch; gap: 0; font-family: var(--font-mono); font-size: 12.5px; }
.pipe-step { flex: 1; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 14px; }
.pipe-step + .pipe-step { margin-left: -1px; border-left: 0; }
.pipe-step .pipe-n { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 8px; }
.pipe-step .pipe-t { font-weight: 600; color: var(--fg); }
.pipe-step small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* ---------- BI live dashboard wall (drill-down showcase) ---------- */
.biwall { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--bg); }
.biwall-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.biwall-head .t { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.biwall-crumb { border: 0; background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; padding: 4px 2px; }
.biwall-crumb::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.biwall-crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.bi-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.biwall .bars { height: 150px; }
.biwall .bars .bar { cursor: pointer; transition: filter 0.16s ease, box-shadow 0.16s ease; }
.biwall .bars .bar:hover { filter: brightness(1.2); box-shadow: 0 0 14px -4px var(--glow); }
.biwall .bars .bar.drill-on { filter: brightness(1.2); box-shadow: 0 0 0 2px var(--on-accent), 0 0 16px -3px var(--glow); }
.biwall .donut-legend { width: 100%; }
.biwall .dl-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid transparent; background: transparent; color: var(--muted); font-family: var(--font-body); font-size: 12px; text-align: left; padding: 5px 7px; border-radius: 6px; cursor: pointer; transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease; }
.biwall .dl-row:hover { color: var(--fg); border-color: var(--border-strong); background: oklch(93.2% 0.006 31 / 0.05); }
.biwall .dl-row.drill-on { color: var(--fg); border-color: var(--accent); background: var(--accent-surface); }
.biwall .dl-row i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: none; }
.biwall .dl-row b { color: var(--fg); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }
.biwall .pipeline { font-size: 12px; }
.biwall .pipeline .pipe-step { font-family: var(--font-mono); text-align: left; cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease; }
.biwall .pipeline .pipe-step:hover { border-color: var(--accent); }
.biwall .pipeline .pipe-step.drill-on { border-color: var(--accent); background: var(--accent-surface); }
.biwall .pipeline .pipe-step.drill-on .pipe-n { color: var(--accent-strong); }
.biwall-hint { font-size: 11.5px; color: var(--muted); margin: 0; }
.biwall-mock .mock-chrome .pill { margin-left: auto; }
@media (max-width: 980px) {
  .bi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .biwall { padding: 14px; }
  .biwall .pipeline { flex-direction: column; gap: 8px; }
  .biwall .pipe-step + .pipe-step { margin-left: 0; border-left: 1px solid var(--border); }
}

/* ---------- showcase image band ---------- */
.showcase { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.showcase img, .showcase svg { width: 100%; height: auto; }
.showcase .showcase-cap {
  position: absolute; left: 18px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg); background: color-mix(in oklab, var(--bg) 72%, transparent);
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 7px 11px; backdrop-filter: blur(6px);
}
.showcase .showcase-cap code { color: var(--accent-strong); }
.showcase--tall { aspect-ratio: 16 / 10; }
.showcase .sc-veg {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, oklch(24.4% 0.006 1), oklch(20% 0.005 355));
}

/* board (APS gantt) */
.board { display: flex; flex-direction: column; gap: 0; font-family: var(--font-mono); }
.board-row { display: grid; grid-template-columns: 132px 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.board-row:last-child { border-bottom: 0; }
.board-cell { padding: 10px 12px; display: flex; align-items: center; }
.board-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.03em; border-right: 1px solid var(--border); justify-content: space-between; }
.board-track { position: relative; height: 44px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--border) calc(100% / 6 - 1px) calc(100% / 6)); }
.board-bar { position: absolute; top: 8px; bottom: 8px; border-radius: 4px; background: oklch(93.2% 0.006 31 / 0.18); }
.board-bar--load { background: var(--accent); box-shadow: 0 0 12px -4px var(--glow); }
.board-bar--ok { background: var(--success); }
.board-bar--warn { background: var(--warn); }
.board-bar--planned { background: oklch(93.2% 0.006 31 / 0.18); }
.board-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 14px; font-size: 11.5px; color: var(--muted); }
.board-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.06em;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 30px; }
.price-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-surface), 0 0 40px -16px var(--glow), var(--shadow-md); position: relative; }
.price-card--featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 30px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 999px;
}
.price-card .plan { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.price-card h3 { font-size: 26px; margin: 8px 0 2px; }
.price-card .unit { font-size: 13px; color: var(--muted); }
.price-card ul { margin: 22px 0 26px; display: grid; gap: 11px; }
.price-card ul li { display: flex; gap: 9px; font-size: 14px; }
.price-card ul li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent-strong); }
.price-card .btn-row { margin-top: auto; }

/* ---------- quotes / logos ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; padding: 28px; }
.quote blockquote { font-size: 15px; line-height: 1.65; color: var(--fg); flex: 1; }
.quote footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.quote .who { font-weight: 600; font-size: 14px; }
.quote .org { font-size: 12.5px; color: var(--muted); }

.logo-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: oklch(78% 0.006 31); white-space: nowrap; }
.logo-name em { font-style: normal; color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; font-weight: 600; font-size: 16px; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-x { font-family: var(--font-mono); color: var(--muted); font-size: 16px; transition: transform 0.2s ease; }
.faq-item[open] summary .faq-x { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--muted); max-width: 72ch; }
.faq-wrap { max-width: 820px; }

/* ---------- cta band ---------- */
.cta-band {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px);
  display: grid; gap: 8px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cta-band::before {
  content: ""; position: absolute;
  width: 420px; height: 420px; right: -140px; top: -160px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
}
.cta-band .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(93.2% 0.006 31 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(93.2% 0.006 31 / 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-band h2 { color: var(--fg); font-size: clamp(26px, 3vw, 36px); max-width: 26ch; }
.cta-band p { color: var(--muted); margin-top: 10px; }
.cta-band .btn-row { margin-top: 26px; }

/* HUD corner frame — one decisive flourish */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 0 solid var(--accent-strong); opacity: 0.9;
  z-index: 3; pointer-events: none;
}
.hud-frame::before { top: 9px; left: 9px; border-top-width: 2px; border-left-width: 2px; }
.hud-frame::after { bottom: 9px; right: 9px; border-bottom-width: 2px; border-right-width: 2px; }

/* USP highlight band */
.usp-band {
  display: flex; gap: 28px; align-items: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-surface) 100%);
}
.usp-icon {
  flex: 0 0 72px; display: grid; place-items: center;
  width: 72px; height: 72px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent-strong);
}
.usp-icon svg { width: 34px; height: 34px; }
.usp-copy h2 { font-size: 28px; margin: 4px 0 10px; }
.usp-copy p:not(.usp-stats) { color: var(--muted); max-width: 640px; }
.usp-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.usp-stats span { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.usp-stats strong { font-family: var(--font-display); font-size: 16px; color: var(--fg); }
@media (max-width: 820px) {
  .usp-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .usp-icon { width: 56px; height: 56px; flex-basis: 56px; }
}

/* ---------- form ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); font: inherit; font-size: 15px; color: var(--fg);
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: transparent;
  box-shadow: 0 0 0 3px var(--accent-surface);
}
.field input::placeholder, .field textarea::placeholder { color: oklch(67.2% 0.009 37 / 0.7); }
.field select option { background: var(--surface-2); color: var(--fg); }
.form-note { font-size: 12.5px; color: var(--muted); }
.form-success {
  display: none; border: 1px solid oklch(68% 0.16 155 / 0.4);
  background: oklch(68% 0.16 155 / 0.12); color: var(--success-text);
  padding: 14px 16px; border-radius: 8px; font-size: 14px;
}
.form-success.show { display: block; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.footer ul { display: grid; gap: 9px; }
.footer a { font-size: 14px; color: var(--fg); }
.footer a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.footer .blurb { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 34ch; }
.footer .contact li { font-size: 14px; color: var(--fg); display: flex; gap: 8px; }
.footer .contact li .mono { color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 12.5px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .link { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .feature-row { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid, .steps, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock-side { display: none; }

  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface-2); border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { min-height: 48px; }
  .nav-item { display: flex; flex-direction: column; }
  .nav-panel { position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-item.open .nav-panel { display: block; }
  .nav-cta { margin-top: 10px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 18px; }
  .board-row { grid-template-columns: 100px 1fr; }
}

/* ---------- interactive module explorer (33 CRM) ---------- */
.module-panel { display: none; }
.module-panel.active { display: flex; flex-direction: column; gap: 16px; animation: modFade 0.28s ease; }
@keyframes modFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* mobile module tab strip inside mock */
.mock-tabs { display: none; gap: 4px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); scrollbar-width: none; }
.mock-tabs::-webkit-scrollbar { display: none; }
.mock-tab { flex: none; padding: 8px 12px; border-radius: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; font-family: var(--font-body); }
.mock-tab.active, .mock-tab:hover { color: var(--accent-strong); background: var(--accent-surface); font-weight: 600; }

/* interactive sidebar as buttons */
.mock-side .side-item { width: 100%; text-align: left; font-family: var(--font-body); }
.mock-side .side-item:hover { color: var(--fg); background: oklch(93.2% 0.006 31 / 0.06); }
.mock-side .side-item code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.mock-side .side-item--active code { color: var(--accent-strong); }
.side-item svg { width: 13px; height: 13px; flex: none; color: var(--muted); }
.side-item--active svg { color: var(--accent-strong); }

/* in-page module explorer (tabs) */
.mtab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.mtab { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); font-family: var(--font-body); transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease; }
.mtab:hover { color: var(--fg); border-color: var(--border-strong); }
.mtab.active { color: var(--accent-strong); background: var(--accent-surface); border-color: transparent; font-weight: 600; }
.mpanel { display: none; }
.mpanel.active { display: block; animation: modFade 0.28s ease; }
.mpanel .feature-row:first-child { padding-top: 0; }
.mpanel-copy h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.mpanel-copy p { color: var(--muted); }
.mpanel-copy .feature-list { margin-top: 18px; }
.mpanel-mock .panel { box-shadow: var(--shadow-sm); }

/* mini stat + bar blocks for module mocks */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stat { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--surface-2); }
.mini-stat .v { font-family: var(--font-display); font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-stat .l { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 3px; }
.mini-bars { display: grid; gap: 10px; }
.mini-bar-row { display: grid; grid-template-columns: 150px 1fr 56px; gap: 12px; align-items: center; font-size: 12.5px; }
.mini-bar-row .k { color: var(--muted); }
.mini-bar-track { height: 10px; background: oklch(93.2% 0.006 31 / 0.08); border-radius: 999px; overflow: hidden; }
.mini-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; box-shadow: 0 0 10px -2px var(--glow); }
.mini-bar--ok { background: linear-gradient(90deg, oklch(68% 0.16 155 / 0.75), var(--success)); box-shadow: 0 0 10px -2px oklch(68% 0.16 155 / 0.4); }
.mini-bar--warn { background: linear-gradient(90deg, oklch(76% 0.15 80 / 0.75), var(--warn)); box-shadow: 0 0 10px -2px oklch(76% 0.15 80 / 0.4); }
.mini-bar--bad { background: linear-gradient(90deg, oklch(66% 0.2 27 / 0.75), var(--danger)); box-shadow: 0 0 10px -2px oklch(66% 0.2 27 / 0.4); }
.mini-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 10.5px; color: var(--muted); letter-spacing: 0.03em; }
.mini-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.mini-key .k-ok { background: var(--success); }
.mini-key .k-warn { background: var(--warn); }
.mini-key .k-bad { background: var(--danger); }
.mini-bar-row .v { text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--fg); }

/* iCASE design / preview builder */
.icase-designer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.icase-side { display: flex; flex-direction: column; gap: 8px; }
.icase-sec { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.icase-frow, .icase-wrow { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-size: 12.5px; color: var(--fg); cursor: pointer; transition: border-color 0.16s ease, opacity 0.16s ease; }
.icase-frow[hidden], .icase-wrow[hidden], .icase-form label[hidden] { display: none; }
.icase-frow:hover, .icase-wrow:hover { border-color: var(--border-strong); }
.icase-frow input, .icase-wrow input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; cursor: pointer; }
.icase-frow .fn { flex: 1; min-width: 0; }
.icase-frow .ft, .icase-wrow .ft { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; flex: none; }
.icase-frow.off, .icase-wrow.off { opacity: 0.42; }
.icase-side .btn { align-self: flex-start; }
.icase-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.icase-form label { display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.icase-form input { border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); font-family: var(--font-body); font-size: 12.5px; padding: 8px 10px; border-radius: 6px; transition: border-color 0.16s ease; }
.icase-form input:focus { outline: none; border-color: var(--accent); }
.icase-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.icase-flow .step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.icase-flow .step::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.icase-flow .step.on { color: var(--fg); font-weight: 600; }
.icase-flow .step.on::before { background: var(--accent-strong); box-shadow: 0 0 6px var(--glow); }
.icase-flow .step.off::before { background: oklch(93.2% 0.006 31 / 0.2); }
.icase-flow .arr { color: var(--border-strong); font-style: normal; }

/* iCASE database schema designer */
.schema-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.schema-hint { font-size: 11.5px; color: var(--muted); }
.schema-canvas { position: relative; min-height: 560px; border: 1px solid var(--border); border-radius: 10px; background: oklch(20% 0.005 355 / 0.55); overflow: hidden; }
.schema-canvas::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(oklch(93.2% 0.006 31 / 0.05) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.schema-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.schema-links path { fill: none; stroke: var(--accent-strong); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: 0.85; filter: drop-shadow(0 0 6px var(--glow)); }
.schema-tab { position: absolute; width: 216px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2); box-shadow: var(--shadow-sm); z-index: 2; user-select: none; }
.schema-tab.dragging { z-index: 5; box-shadow: var(--shadow-md); border-color: var(--accent); }
.schema-tab-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg); border-radius: 9px 9px 0 0; cursor: grab; }
.schema-tab.dragging .schema-tab-head { cursor: grabbing; }
.schema-tab-title { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 0; }
.schema-tab-title:focus { outline: none; color: var(--accent-strong); }
.schema-tab input, .schema-tab select { user-select: text; }
.schema-del, .schema-fdel { border: 0; background: transparent; color: var(--muted); font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px; cursor: pointer; flex: none; }
.schema-del:hover, .schema-fdel:hover { color: var(--danger); background: oklch(42% 0.16 25 / 0.14); }
.schema-tab-body { display: grid; gap: 0; padding: 4px; }
.schema-field { display: flex; align-items: center; gap: 7px; padding: 4px 4px 4px 6px; border-radius: 6px; }
.schema-field:hover { background: oklch(93.2% 0.006 31 / 0.06); }
.schema-field.linked { background: var(--accent-surface); }
.schema-port { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); background: transparent; padding: 0; cursor: crosshair; transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease; }
.schema-field:hover .schema-port, .schema-field.linked .schema-port { border-color: var(--accent); }
.schema-port:hover { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.schema-field.armed .schema-port { background: var(--accent); border-color: var(--accent-strong); box-shadow: 0 0 8px var(--glow); }
.schema-fname { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; color: var(--fg); font-family: var(--font-mono); font-size: 12px; padding: 3px 6px; border-radius: 5px; }
.schema-fname:hover { border-color: var(--border); }
.schema-fname:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.schema-ftype { flex: none; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-family: var(--font-mono); font-size: 10px; padding: 3px 4px; border-radius: 5px; cursor: pointer; }
.schema-ftype:focus { outline: none; border-color: var(--accent); }
.schema-add-field { align-self: flex-start; border: 1px dashed var(--border-strong); background: transparent; color: var(--muted); font-size: 11px; font-family: var(--font-body); padding: 4px 10px; border-radius: 6px; margin: 4px 4px 4px 6px; cursor: pointer; transition: color 0.16s ease, border-color 0.16s ease; }
.schema-add-field:hover { color: var(--accent-strong); border-color: var(--accent); }
@media (max-width: 620px) {
  .schema-canvas { overflow-x: auto; }
  .schema-links { display: none; }
}

/* pipeline steps for workflows */
.mpipe { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.mpipe .step { flex: 1; min-width: 148px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--surface-2); }
.mpipe .step .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); letter-spacing: 0.08em; }
.mpipe .step .t { font-size: 13px; font-weight: 600; margin-top: 4px; }
.mpipe .step .d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.mpipe .arr { align-self: center; color: var(--border-strong); flex: none; }
.explorer-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* three-level architecture flow diagram (DMS) */
.arch-flow { display: block; width: 100%; height: auto; margin-bottom: 36px; }
.af-box { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1; }
.af-tick { fill: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }
.af-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; fill: var(--accent-strong); }
.af-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; fill: var(--fg); }
.af-sub { font-family: var(--font-body); font-size: 13.5px; fill: var(--muted); }
.af-line { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
.af-chev { fill: var(--fg); opacity: 0.8; }
.af-pill { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1; }
.af-pill-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--fg); }

/* SVG line charts (dashboard + sales vs target) */
.chart { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: oklch(93.2% 0.006 31 / 0.1); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-area { fill: oklch(52.7% 0.205 27 / 0.14); }
.chart-line { fill: none; stroke: var(--accent-strong); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--glow)); }
.chart-line--target { stroke: oklch(93.2% 0.006 31 / 0.45); stroke-width: 2; stroke-dasharray: 6 5; filter: none; }
.chart-dots circle { fill: var(--surface-2); stroke: var(--accent-strong); stroke-width: 2; }
.chart-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--muted); letter-spacing: 0.05em; font-family: var(--font-mono); }
.chart-key { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.chart-key .kk { display: inline-flex; align-items: center; gap: 6px; }
.chart-key .kk::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.chart-key .kk--a::before { background: var(--accent-strong); box-shadow: 0 0 6px var(--glow); }
.chart-key .kk--t::before { background: oklch(93.2% 0.006 31 / 0.45); }

/* range switcher (segmented buttons) */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--bg); }
.seg-btn { border: 0; background: transparent; color: var(--muted); font-family: var(--font-body); font-size: 11.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: color 0.18s ease, background 0.18s ease; }
.seg-btn:hover { color: var(--fg); }
.seg-btn.active { color: var(--accent-strong); background: var(--accent-surface); font-weight: 600; }

/* interactive POS register */
.pos-register { display: flex; flex-direction: column; gap: 12px; }
.pos-pick { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--bg); display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pos-pick-head { grid-column: 1 / -1; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 2px 4px 6px; }
.pos-pick-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); font-family: var(--font-body); font-size: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease; }
.pos-pick-item:hover { border-color: var(--accent); color: var(--accent-strong); }
.pos-pick-item .pr { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); flex: none; }
.pos-cart { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pos-row .qty { display: inline-flex; align-items: center; gap: 2px; }
.qty-btn { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); border-radius: 5px; font-size: 13px; line-height: 1; cursor: pointer; transition: border-color 0.16s ease, color 0.16s ease; }
.qty-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.qty-v { min-width: 26px; text-align: center; font-family: var(--font-mono); font-size: 12.5px; }
.pos-del { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; border-radius: 5px; transition: color 0.16s ease, background 0.16s ease; }
.pos-del:hover { color: var(--danger); background: oklch(42% 0.16 25 / 0.14); }
.pos-empty { display: none; text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; }
.pos-empty.show { display: block; }
.pos-row[data-row-tpl] { display: none; }
.pos-totals { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg); display: grid; gap: 6px; }
.pos-total-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.pos-total-row .amt { font-family: var(--font-mono); color: var(--fg); }
.pos-total-row--main { border-top: 1px solid var(--border); padding-top: 8px; font-size: 14px; color: var(--fg); font-weight: 600; }
.pos-total-row--main .amt { color: var(--accent-strong); font-size: 16px; }
.pos-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-status { font-size: 11.5px; color: var(--success-text); }

/* interactive package configurator */
.pkg { display: grid; gap: 12px; }
.pkg-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-mode { border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease; }
.pkg-mode:hover { color: var(--fg); border-color: var(--border-strong); }
.pkg-mode.active { color: var(--accent-strong); background: var(--accent-surface); border-color: transparent; font-weight: 600; }
.pkg-hint { font-size: 12px; color: var(--muted); margin: 0; }
.pkg-list { display: grid; gap: 6px; }
.pkg-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; background: var(--bg); font-size: 12.5px; color: var(--fg); cursor: pointer; transition: border-color 0.16s ease; }
.pkg-item:hover { border-color: var(--border-strong); }
.pkg-item:has(input:checked) { border-color: var(--accent); background: var(--accent-surface); }
.pkg-item input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.pkg-item .pk { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pkg-sum { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--bg); display: grid; gap: 8px; }
.pkg-sum > div { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.pkg-sum .ps-l { color: var(--muted); }
.pkg-sum .ps-v { font-family: var(--font-display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-bar { height: 8px; background: oklch(93.2% 0.006 31 / 0.08); border-radius: 999px; overflow: hidden; }
.ps-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; box-shadow: 0 0 10px -2px var(--glow); transition: width 0.3s ease; }
.ps-note { font-size: 11.5px; color: var(--muted); margin: 0; }

/* employee portal */
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-id { display: flex; align-items: center; gap: 12px; }
.portal-ava { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-surface); color: var(--accent-strong); font-weight: 600; font-size: 15px; border: 1px solid var(--accent); flex: none; }
.portal-name { font-size: 15px; font-weight: 600; }
.portal-role { font-size: 12px; color: var(--muted); }
.portal-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-log { display: grid; gap: 6px; min-width: 150px; }
.pl-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.pl-row .mono { color: var(--fg); }

@media (max-width: 980px) {
  .mock-tabs { display: flex; }
}
@media (max-width: 620px) {
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .mini-bar-row { grid-template-columns: 96px 1fr 44px; }
  .chart-x { font-size: 9px; }
  .icase-designer { grid-template-columns: 1fr; gap: 14px; }
  .icase-form { grid-template-columns: 1fr; }
}

/* ---------- interactive gantt (33 APS) ---------- */
.igantt { position: relative; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: hidden; font-family: var(--font-mono); }
.igantt-head { display: grid; grid-template-columns: 132px 1fr; border-bottom: 1px solid var(--border); background: var(--bg); }
.igantt-corner { padding: 9px 12px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--border); display: flex; align-items: center; }
.igantt-days { display: grid; grid-template-columns: repeat(6, 1fr); }
.igantt-days span { padding: 9px 4px; font-size: 9.5px; letter-spacing: 0.05em; color: var(--muted); text-align: center; border-left: 1px solid var(--border); }
.igantt-row { display: grid; grid-template-columns: 132px 1fr; border-top: 1px solid var(--border); }
.igantt-row:first-of-type { border-top: 0; }
.igantt-label { padding: 8px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 1px; font-size: 10.5px; color: var(--muted); }
.igantt-label b { color: var(--fg); font-weight: 600; font-size: 11.5px; }
.igantt-label .u { font-size: 9.5px; color: var(--muted); }
.igantt-track { position: relative; height: 46px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--border) calc(100% / 6 - 1px) calc(100% / 6)); }
.igantt-bar { position: absolute; top: 9px; bottom: 9px; min-width: 0; border-radius: 4px; padding: 0 7px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; overflow: hidden; cursor: pointer; transition: filter 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease; }
.igantt-bar .tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igantt-bar:hover { filter: brightness(1.15); box-shadow: 0 0 0 2px var(--on-accent), 0 0 14px -3px var(--glow); z-index: 3; }
.igantt--dim .igantt-bar { opacity: 0.26; }
.igantt--dim .igantt-bar.igantt-on { opacity: 1; filter: brightness(1.15); box-shadow: 0 0 0 2px var(--on-accent), 0 0 14px -3px var(--glow); z-index: 3; }
.gc-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 12px -4px var(--glow); }
.gc-ok { background: var(--success); color: var(--bg); }
.gc-warn { background: var(--warn); color: var(--bg); }
.gc-blue { background: oklch(64% 0.15 250); color: var(--on-accent); }
.gc-cyan { background: oklch(70% 0.11 190); color: var(--bg); }
.gc-violet { background: oklch(64% 0.16 302); color: var(--on-accent); }
.igantt-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.igantt-links path { fill: none; stroke: oklch(93.2% 0.006 31 / 0.55); stroke-width: 1.5; stroke-dasharray: 4 3; }
.igantt-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 12px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--muted); letter-spacing: 0.03em; }
.igantt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.igantt-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.igantt-hint svg { width: 13px; height: 13px; flex: none; color: var(--border-strong); }
.igantt-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 12px; min-width: 208px; font-family: var(--font-body); font-size: 12px; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(5px); transition: opacity 0.12s ease, transform 0.12s ease; }
.igantt-tip.show { opacity: 1; transform: none; }
.igantt-tip .tip-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--accent-strong); margin-bottom: 8px; }
.igantt-tip .tip-t .phase { font-size: 9px; letter-spacing: 0.08em; padding: 1px 7px; border-radius: 999px; background: var(--accent-surface); color: var(--accent-strong); }
.igantt-tip .tip-grid { display: grid; gap: 4px; }
.igantt-tip .tip-grid > div { display: flex; justify-content: space-between; gap: 16px; }
.igantt-tip .tip-grid .k { color: var(--muted); }
.igantt-tip .tip-grid .v { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* plan A / B scenario switch */
.plan-switch { display: grid; gap: 12px; }
.plan-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan { display: none; }
.plan.active { display: grid; gap: 12px; animation: modFade 0.28s ease; }
.plan-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plan-stat { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg); }
.plan-stat .l { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.plan-stat .v { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.plan-stat .v.ok { color: var(--success-text); }
.plan-stat .v.bad { color: var(--danger); }

/* phone mock (CTP) */
.phone { width: 330px; max-width: 100%; margin: 0 auto; border-radius: 30px; border: 1px solid var(--border-strong); background: var(--bg); padding: 10px; box-shadow: var(--shadow-md); }
.phone-screen { border-radius: 22px; background: var(--surface-2); padding: 16px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.phone-notch { width: 88px; height: 20px; margin: 0 auto; border-radius: 0 0 12px 12px; background: var(--bg); position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.phone-app { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg); }
.phone-field { display: grid; gap: 5px; }
.phone-field .l { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.phone-field .v { font-size: 15px; font-weight: 600; }
.phone-seg { display: flex; gap: 6px; }
.phone-seg button { flex: 1; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-family: var(--font-body); font-size: 11.5px; font-weight: 500; padding: 7px 0; border-radius: 999px; cursor: pointer; transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease; }
.phone-seg button:hover { color: var(--fg); border-color: var(--border-strong); }
.phone-seg button.active { color: var(--accent-strong); background: var(--accent-surface); border-color: transparent; font-weight: 600; }
.phone-promise { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg); display: grid; gap: 5px; }
.phone-promise .l { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.phone-promise .phone-date { font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-promise .phone-gap { font-size: 12px; color: var(--success-text); font-family: var(--font-mono); }
.phone-bar { height: 7px; background: oklch(93.2% 0.006 31 / 0.08); border-radius: 999px; overflow: hidden; }
.phone-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; box-shadow: 0 0 10px -2px var(--glow); transition: width 0.3s ease; }
.phone-sub { font-size: 10.5px; color: var(--muted); }
.phone-actions { display: flex; gap: 8px; }
.phone-status { font-size: 11.5px; color: var(--success-text); min-height: 16px; }

/* BOM chips */
.bom { display: grid; gap: 8px; }
.bom-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; background: var(--surface-2); font-size: 12px; }
.bom-row .bc { font-family: var(--font-mono); font-weight: 600; }
.bom-row .bd { color: var(--muted); font-size: 11px; }
.bom-row .bq { font-family: var(--font-mono); font-size: 12px; text-align: right; }

@media (max-width: 980px) {
  .igantt-head, .igantt-row { grid-template-columns: 96px 1fr; }
  .plan-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .igantt-head, .igantt-row { grid-template-columns: 84px 1fr; }
  .igantt-bar .tag { font-size: 9px; }
}

/* ---------- promo fund utilization (33 SFA) ---------- */
.util { display: inline-block; width: 88px; height: 8px; background: oklch(93.2% 0.006 31 / 0.08); border-radius: 999px; overflow: hidden; vertical-align: -1px; }
.util-fill { display: block; height: 100%; border-radius: 999px; }
.util-fill--ok { background: var(--success); }
.util-fill--hot { background: var(--warn); }
.util-fill--over { background: var(--danger); box-shadow: 0 0 8px -2px var(--glow); }
.promo-txt--hot { color: var(--warn-text); font-weight: 600; }
.promo-txt--over { color: var(--danger); font-weight: 600; }
.util-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.util-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.util-dot--ok { background: var(--success); }
.util-dot--hot { background: var(--warn); }
.util-dot--over { background: var(--danger); }

/* ---------- interactive field dashboard (33 SFA) ---------- */
.dash-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.dash-col { display: flex; flex-direction: column; gap: 16px; }
.visit-map { display: block; width: 100%; height: auto; }
.map-grid line { stroke: oklch(93.2% 0.006 31 / 0.07); stroke-width: 1; }
.map-road { fill: none; stroke-linecap: round; }
.map-road--a { stroke: oklch(93.2% 0.006 31 / 0.3); stroke-width: 2.5; }
.map-road--b { stroke: oklch(93.2% 0.006 31 / 0.18); stroke-width: 1.5; stroke-dasharray: 5 5; }
.map-road--c { stroke: oklch(52.7% 0.205 27 / 0.3); stroke-width: 2; }
.map-pin { cursor: pointer; }
.map-pin-ring { fill: oklch(20% 0.005 355); stroke: var(--accent-strong); stroke-width: 2; transition: filter 0.16s ease; }
.map-pin-core { fill: var(--accent); box-shadow: 0 0 10px -2px var(--glow); }
.map-pin:hover .map-pin-ring, .map-pin:focus .map-pin-ring { filter: brightness(1.4); }
.map-pin:hover .map-pin-core, .map-pin:focus .map-pin-core { filter: brightness(1.3); }
.map-pin:focus { outline: none; }
.map-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.map-hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent-strong); background: var(--accent); box-shadow: 0 0 8px -2px var(--glow); flex: none; }
.chan-panel { display: none; }
.chan-panel.active { display: flex; flex-direction: column; gap: 14px; animation: modFade 0.28s ease; }
.chan-stat { display: grid; grid-template-columns: 108px 1fr 46px; gap: 10px; align-items: center; font-size: 12.5px; }
.chan-stat .k { color: var(--muted); }
.chan-stat .v { font-family: var(--font-mono); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.chan-stat .bar { height: 8px; background: oklch(93.2% 0.006 31 / 0.08); border-radius: 999px; overflow: hidden; }
.chan-stat .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: 999px; box-shadow: 0 0 10px -2px var(--glow); }
.chan-foot { display: flex; flex-wrap: wrap; gap: 8px; }

/* sales volume heat map */
.heat-grid { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 5px; }
.hm-lbl { display: flex; align-items: center; font-size: 10px; letter-spacing: 0.06em; color: var(--muted); font-family: var(--font-mono); }
.hm-cell { height: 26px; border-radius: 5px; cursor: help; transition: filter 0.16s ease, transform 0.16s ease; }
.hm-cell:hover { filter: brightness(1.25); transform: scale(1.04); }
.hm-0 { background: oklch(93.2% 0.006 31 / 0.06); }
.hm-1 { background: oklch(52.7% 0.205 27 / 0.22); }
.hm-2 { background: oklch(52.7% 0.205 27 / 0.42); }
.hm-3 { background: oklch(52.7% 0.205 27 / 0.66); }
.hm-4 { background: var(--accent); box-shadow: 0 0 12px -3px var(--glow); }
.heat-scale { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.heat-scale .hs-cell { width: 18px; height: 12px; border-radius: 3px; }
.heat-scale .hs-0 { background: oklch(93.2% 0.006 31 / 0.06); }
.heat-scale .hs-1 { background: oklch(52.7% 0.205 27 / 0.22); }
.heat-scale .hs-2 { background: oklch(52.7% 0.205 27 / 0.42); }
.heat-scale .hs-3 { background: oklch(52.7% 0.205 27 / 0.66); }
.heat-scale .hs-4 { background: var(--accent); }
.heat-scale .hs-l { margin-right: 2px; }
.heat-scale .hs-r { margin-left: 4px; }

@media (max-width: 980px) {
  .dash-split { grid-template-columns: 1fr; }
}
