/* Continuum BCMS — Dual-Brand Enterprise Design System
   Themes: [data-theme="obita"] (Obita Brand Blue #0072F7) | [data-theme="didi"] (DiDi Signature Orange #FF6B00) */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e5e9f0;
  --border-strong: #cbd5e1;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #64748b;
  --subtle: #94a3b8;

  /* Default: Obita Official Brand Blue (#0072F7) */
  --brand: #0072f7;
  --brand-hover: #005fcc;
  --brand-soft: #eef5ff;
  --brand-border: #bfdbfe;
  --brand-ring: rgba(0, 114, 247, 0.16);
  --brand-grad: linear-gradient(135deg, #1b84ff 0%, #005fcc 100%);
  --hero-grad: linear-gradient(155deg, #06183d 0%, #0a2d73 56%, #0060d6 100%);
  --root-grad: linear-gradient(145deg, #071e4c 0%, #0d3a91 100%);
  --root-accent: #7dd3fc;
  --canvas-bg: #f4f7fc;
  --canvas-dot: #d2dceb;

  /* Restrained Semantic Accents */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-bd: #fecaca;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-bd: #fde68a;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --ok-bd: #bbf7d0;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --info-bd: #bfdbfe;

  --t0: #dc2626; --t0-bg: #fef2f2; --t0-bd: #fecaca;
  --t1: #d97706; --t1-bg: #fffbeb; --t1-bd: #fde68a;
  --t2: #0284c7; --t2-bg: #f0f9ff; --t2-bd: #bae6fd;
  --t3: #475569; --t3-bg: #f8fafc; --t3-bd: #e2e8f0;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* DiDi Official Orange-Gold Theme */
body[data-theme="didi"] {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #fcfaf7;
  --surface-3: #f5f0e8;
  --border: #ede6dc;
  --border-strong: #d9cfc2;
  --ink: #1f1b18;
  --ink-2: #443c35;
  --muted: #786e65;
  --subtle: #a3988e;

  --brand: #ff6b00;
  --brand-hover: #e55a00;
  --brand-soft: #fff6ed;
  --brand-border: #ffd3ad;
  --brand-ring: rgba(255, 107, 0, 0.18);
  --brand-grad: linear-gradient(135deg, #ff8c1a 0%, #ff5e00 100%);
  --hero-grad: linear-gradient(150deg, #1f1713 0%, #3d210f 55%, #d95200 100%);
  --root-grad: linear-gradient(145deg, #241b16 0%, #4d2810 100%);
  --root-accent: #ffba75;
  --canvas-bg: #faf8f4;
  --canvas-dot: #e2d8cb;

  --info: #c2410c;
  --info-bg: #fff7ed;
  --info-bd: #fed7aa;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

/* Boot */
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.boot-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: all 140ms ease;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px var(--brand-ring);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-danger { background: var(--danger-bg); border-color: var(--danger-bd); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #fee2e2; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field .hint { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.textarea { min-height: 78px; resize: vertical; line-height: 1.55; }
.textarea.sm { min-height: 60px; }
.textarea.lg { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* Badges — strictly clean, compact, never overflowing */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid transparent;
  max-width: 100%;
  white-space: nowrap;
}
.badge-t0, .badge-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bd); }
.badge-t1, .badge-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.badge-t2 { background: var(--t2-bg); color: var(--t2); border-color: var(--t2-bd); }
.badge-t3 { background: var(--surface-3); color: var(--ink-2); border-color: var(--border); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.badge-info { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-border); }
.badge-draft { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border-strong); }

.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  flex: none;
}
.dept-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }

.entity-pill, .zone-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--ink-2);
  border: 1px solid var(--border);
}
.zone-pill.zone-hybrid_link { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bd); }
.zone-pill.zone-mx_idc { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-border); }
.zone-pill.zone-aws { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.zone-pill.zone-vendor { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }

/* ==================== REDESIGNED LOGIN PORTAL (ZERO OVERFLOW) ==================== */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.15fr);
  background: var(--bg);
}
.login-hero {
  background: var(--hero-grad);
  color: #fff;
  padding: 52px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex: none;
  box-shadow: 0 4px 14px var(--brand-ring);
}
.login-hero h1 {
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 700;
}
.login-hero p.lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  max-width: 440px;
  margin: 0 0 28px;
  line-height: 1.65;
}
.hero-pillars { display: grid; gap: 12px; max-width: 440px; }
.hero-pillar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 16px;
}
.hero-pillar strong { display: block; font-size: 13.5px; color: #fff; margin-bottom: 2px; }
.hero-pillar span { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.hero-foot { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  min-width: 0;
}
.login-card {
  width: 100%;
  max-width: 588px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 16px;
}
.login-card h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -0.02em; }
.login-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

/* Dual Entry Cards (DiDi Regigold vs JP Sofiexpress) & Clean Single Card (Obita) */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.entry-grid.single { grid-template-columns: minmax(0, 1fr); }

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 16px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  min-width: 0;
  width: 100%;
  transition: all 160ms var(--ease-spring);
}
.entry-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.entry-card.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.entry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.entry-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface-3);
  color: var(--ink-2);
}
.entry-card.active .entry-icon {
  background: var(--brand);
  color: #fff;
}
.entry-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  flex: none;
}
.entry-card.active .entry-check {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.entry-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-legal {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
}
.entry-tag {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}
.demo-pw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ==================== CALM TWO-ROW HEADER & APP SHELL (ZERO OVERLAP) ==================== */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.topbar-row1 {
  min-height: 54px;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.topbar-row2 {
  min-height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: none;
}
.top-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.divider-v { width: 1px; height: 20px; background: var(--border); flex: none; }

.entity-switch-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
  flex: none;
}
.entity-switch-btn {
  height: 28px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: all 140ms ease;
}
.entity-switch-btn:hover { color: var(--ink); background: rgba(0, 0, 0, 0.03); }
.entity-switch-btn.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px var(--brand-ring);
}

.org-switcher {
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  max-width: 240px;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  height: 44px;
  padding: 0 14px;
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex: none;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 650;
}
.nav-dot {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
}

.topbar-entity-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.role-switcher {
  height: 32px;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0 26px 0 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 224px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  display: none;
  animation: fadeUp 160ms var(--ease-spring);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dropdown-item:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-sep { height: 1px; background: var(--border); margin: 5px 4px; }

/* Main area & Page Header */
.main-wrap { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 99px); }
.page-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.page-head .sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* Clean 3-Card Focus Strip */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-card .m-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.metric-card .m-val { font-size: 26px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; }
.metric-card .m-sub { font-size: 12px; color: var(--muted); }
.metric-card.alert { border-color: var(--danger-bd); background: linear-gradient(180deg, #fff 0%, #fff8f8 100%); }

/* Sub-tabs bar (clean underline tabs — zero heavy box clutter) */
.subtabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.subtab {
  padding: 9px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  margin-bottom: -1px;
  transition: all 140ms ease;
}
.subtab:hover { color: var(--ink); }
.subtab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 650; }

/* Segmented control */
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
}
.seg-btn {
  height: 28px;
  padding: 0 11px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: all 140ms ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-xs); }

/* ==================== XMIND MIND-MAP WORKSPACE ==================== */
.bia-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 99px);
  overflow: hidden;
}
.bia-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.filter-pill {
  height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 140ms ease;
}
.filter-pill:hover { border-color: var(--border-strong); background: var(--surface-2); }
.filter-pill.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.search-box { position: relative; width: 200px; }
.search-box input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
}
.search-box input:focus { outline: none; background: var(--surface); border-color: var(--brand); }
.search-box .search-ic {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}

.mm-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--canvas-bg);
  background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  cursor: grab;
  user-select: none;
}
.mm-viewport.is-panning { cursor: grabbing; }
.mm-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition: transform 280ms var(--ease-spring);
  will-change: transform;
}
.mm-viewport.is-panning .mm-stage { transition: none; }

.mm-edges { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.mm-edge { fill: none; stroke: #cbd5e1; stroke-width: 2; stroke-linecap: round; transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease; }
.mm-edge.branch-edge { stroke-width: 2.4; }
.mm-edge.is-active { stroke: var(--brand) !important; stroke-width: 3; opacity: 1 !important; }
.mm-edge.is-hover { stroke: var(--brand) !important; stroke-width: 2.8; opacity: 0.9 !important; }
.mm-edge.is-dimmed { opacity: 0.18; }

.mm-tree {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 88px;
  padding: 96px 140px 140px 96px;
}

.mm-root-node {
  position: relative;
  width: 256px;
  flex: none;
  background: var(--root-grad);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 220ms var(--ease-spring);
}
.mm-root-node:hover { transform: translateY(-2px); }
.mm-root-industry {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--root-accent);
  margin-bottom: 5px;
}
.mm-root-title { font-size: 17px; font-weight: 750; line-height: 1.32; margin-bottom: 14px; }
.mm-root-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.mm-root-stats b { color: #fff; font-size: 15px; display: block; }
.mm-root-add {
  margin-top: 14px;
  width: 100%;
  height: 32px;
  border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 550;
  transition: all 150ms ease;
}
.mm-root-add:hover { background: var(--brand); border-color: var(--brand); }

.mm-branches { display: flex; flex-direction: column; gap: 24px; }
.mm-branch-row { display: flex; align-items: center; gap: 76px; }

.mm-proc-node {
  position: relative;
  width: 246px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 180ms var(--ease-spring);
}
.mm-proc-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mm-proc-node.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring), var(--shadow-md); }
.mm-proc-node.is-dimmed { opacity: 0.35; }
.mm-proc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.mm-proc-domain { font-size: 11.5px; color: var(--muted); font-weight: 550; }
.mm-proc-title { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.38; margin-bottom: 8px; }
.mm-proc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }

.mm-node-toggle {
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
  z-index: 4;
  transition: all 160ms var(--ease-spring);
}
.mm-node-toggle:hover { transform: translateY(-50%) scale(1.12); border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.mm-node-toggle.collapsed { background: var(--brand); border-color: var(--brand); color: #fff; }

.mm-sprout-btn {
  position: absolute;
  right: 14px;
  bottom: -11px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  box-shadow: var(--shadow-xs);
  transition: all 160ms var(--ease-spring);
  z-index: 4;
}
.mm-proc-node:hover .mm-sprout-btn, .mm-proc-node.is-selected .mm-sprout-btn { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mm-sprout-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.mm-leaves { display: flex; flex-direction: column; gap: 11px; transform-origin: left center; }
.mm-leaves.is-collapsed { display: none; }
.mm-leaves.just-expanded .mm-act-node { animation: nodePopIn 260ms var(--ease-spring) backwards; }
@keyframes nodePopIn {
  0% { opacity: 0; transform: translateX(-14px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.mm-act-node {
  position: relative;
  width: 306px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 160ms var(--ease-spring);
}
.mm-act-node.status-ai_draft { border-style: dashed; border-color: var(--border-strong); background: var(--surface-2); }
.mm-act-node.status-clarify_needed { border-color: var(--danger-bd); background: #fffafb; }
.mm-act-node.is-reg-breach { border-color: var(--danger); border-left: 3.5px solid var(--danger); background: #fff9f9; }
.mm-act-node:hover { transform: translateY(-2px) translateX(2px); border-color: var(--brand); border-style: solid; box-shadow: var(--shadow-md); }
.mm-act-node.is-selected { border-color: var(--brand); border-style: solid; box-shadow: 0 0 0 3px var(--brand-ring), var(--shadow-md); }
.mm-act-node.is-dimmed { opacity: 0.3; }
.mm-act-node.is-match { box-shadow: 0 0 0 2.5px var(--warn), var(--shadow-sm); }

.mm-act-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.mm-act-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-act-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-act-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); display: inline-block; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16); }

.mm-dock {
  position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 11px; padding: 5px 6px; box-shadow: var(--shadow-md); z-index: 15;
}
.mm-dock button { height: 28px; min-width: 28px; padding: 0 8px; border: none; background: transparent; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mm-dock button:hover { background: var(--surface-3); color: var(--ink); }
.mm-dock .zoom-readout { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 44px; text-align: center; }

.mm-legend {
  position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 10px; padding: 7px 13px; font-size: 11.5px; color: var(--muted); box-shadow: var(--shadow-sm); z-index: 15;
}
.mm-legend span { display: inline-flex; align-items: center; gap: 5px; }

.table-scroll-wrap { flex: 1; overflow: auto; padding: 20px 28px 48px; }

/* ==================== CLEAN CARDS & AIRY TABLES ==================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 18px;
}
.card-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px; }

.table-wrap { width: 100%; overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data-table tbody tr { transition: background 120ms ease; }
table.data-table tbody tr:hover { background: var(--surface-2); }
table.data-table tbody tr.clickable { cursor: pointer; }
table.data-table tr:last-child td { border-bottom: none; }

/* ==================== MASTER-DETAIL DRILLS LAYOUT ==================== */
.drill-split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.drill-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.drill-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 140ms ease;
}
.drill-item:last-child { border-bottom: none; }
.drill-item:hover { background: var(--surface-2); }
.drill-item.active {
  background: var(--brand-soft);
  border-left-color: var(--brand);
}
.drill-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.drill-item-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-dot.planned { background: var(--warn); }
.status-dot.completed { background: var(--ok); }

.detail-section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.detail-section:first-child { padding-top: 0; border-top: none; }
.detail-label { font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ==================== ZONE CARDS & SPOF ==================== */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.zone-card {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  transition: all 140ms ease;
}
.zone-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.zone-card.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-ring); }
.zone-card .z-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.zone-card .z-num { font-size: 20px; font-weight: 750; color: var(--ink); }
.zone-card .z-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.spof-list { display: grid; gap: 12px; }
.spof-row { display: grid; grid-template-columns: 270px 1fr 110px; align-items: center; gap: 16px; }
.spof-bar-track { height: 9px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.spof-bar-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width 360ms var(--ease-spring); }
.spof-bar-fill.high { background: var(--danger); }
.spof-bar-fill.med { background: var(--warn); }

/* ==================== SLIDE-OVER NODE INSPECTOR DRAWER ==================== */
.drawer-root { position: fixed; inset: 0; z-index: 80; pointer-events: none; visibility: hidden; }
.drawer-root.open { pointer-events: auto; visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.28); backdrop-filter: blur(2px); opacity: 0; transition: opacity 220ms ease; }
.drawer-root.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 580px; max-width: 96vw;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateX(104%); transition: transform 300ms var(--ease-spring);
}
.drawer-root.open .drawer-panel { transform: translateX(0); }
.drawer-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-header h2 { margin: 5px 0 0; font-size: 16.5px; line-height: 1.35; }
.drawer-crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.drawer-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 20px; background: var(--surface-2); }
.drawer-tab { padding: 10px 12px; border: none; border-bottom: 2px solid transparent; background: transparent; font-size: 13px; font-weight: 550; color: var(--muted); margin-bottom: -1px; }
.drawer-tab:hover { color: var(--ink); }
.drawer-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 650; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }

.ai-panel {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 14px 15px;
  margin-bottom: 16px;
}
.ai-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ai-panel-title { font-weight: 650; font-size: 13.5px; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.ai-dim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.ai-dim-card { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; }
.ai-dim-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.ai-dim-card .quote { font-size: 11.5px; color: var(--muted); margin-top: 4px; border-left: 2px solid var(--border-strong); padding-left: 7px; }
.ai-dim-card .reason { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }

.reg-cap-box { background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.reg-cap-box.breach { background: var(--danger-bg); border-color: var(--danger-bd); }
.clarify-box { background: var(--danger-bg); border: 1px solid var(--danger-bd); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.clarify-box .q-title { font-size: 12px; font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.clarify-box .q-text { font-size: 13.5px; color: var(--ink); font-weight: 500; margin-bottom: 8px; }

.missing-q-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-top: 6px;
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--ink-2); transition: all 130ms ease;
}
.chip-toggle:hover { border-color: var(--border-strong); }
.chip-toggle.selected { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }

.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tier-card { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); transition: all 140ms ease; }
.tier-card:hover { border-color: var(--border-strong); }
.tier-card.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-ring); }
.tier-card.reg-blocked { opacity: 0.52; border-style: dashed; }
.tier-card strong { display: block; font-size: 13px; }
.tier-card span { font-size: 11.5px; color: var(--muted); }

/* ==================== 90-MINUTE WORKSHOP MODE ==================== */
.workshop-shell { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.workshop-banner {
  background: var(--hero-grad); color: #fff; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.workshop-timer {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 8px 14px;
}
.workshop-clock { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.workshop-steps { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-bottom: 1px solid var(--border); }
.ws-step { padding: 10px 10px; border: none; border-bottom: 2.5px solid transparent; background: transparent; text-align: left; color: var(--muted); transition: all 140ms ease; min-width: 0; }
.ws-step:hover { background: var(--surface-2); color: var(--ink); }
.ws-step.active { color: var(--brand); border-bottom-color: var(--brand); background: var(--brand-soft); }
.ws-step strong { display: block; font-size: 12.5px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-step span { font-size: 11px; white-space: nowrap; }
.workshop-body { padding: 22px 24px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; background: var(--bg); }
.redline-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 8px; cursor: pointer; }
.redline-item input { margin-top: 3px; accent-color: var(--brand); }

/* ==================== AI STUDIO ==================== */
.studio-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: start; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 18px; text-align: center; background: var(--surface-2); transition: all 160ms ease; margin-bottom: 14px; }
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.preview-tree { display: grid; gap: 10px; }
.preview-proc { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: var(--surface-2); }
.preview-acts { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--brand); display: grid; gap: 6px; }
.preview-act { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; }
.warn-strip { background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn); border-radius: 10px; padding: 10px 13px; font-size: 12.5px; margin-bottom: 12px; }

/* ==================== MODAL & TOAST ==================== */
.modal-root { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(2px); }
.modal-root.open { display: flex; }
.modal-card { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: fadeUp 200ms var(--ease-spring); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.toast-root { position: fixed; right: 20px; top: 108px; z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #111827; color: #fff; padding: 10px 15px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-md); animation: fadeUp 180ms var(--ease-spring); }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--brand); }
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }

/* ==================== PRINT ==================== */
.print-root { display: none; }
@media print {
  #app, #drawer-root, #modal-root, #toast-root { display: none !important; }
  body { background: #fff !important; font-size: 11.5px; }
  .print-root { display: block !important; padding: 0; color: #0f172a; }
  .print-doc h1 { font-size: 19px; margin: 0 0 6px; }
  .print-doc .meta { font-size: 11px; color: #475569; margin-bottom: 14px; border-bottom: 1.5px solid #0f172a; padding-bottom: 8px; }
  .print-doc h2 { font-size: 14px; margin: 16px 0 8px; border-left: 3px solid var(--brand); padding-left: 8px; }
  .print-doc table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
  .print-doc th, .print-doc td { border: 1px solid #cbd5e1; padding: 6px 8px; text-align: left; vertical-align: top; }
  .print-doc th { background: #f1f5f9; }
  .sig-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
  .sig-box { border-top: 1px solid #334155; padding-top: 6px; font-size: 11px; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-mobile-brand { display: flex; }
}
@media (max-width: 900px) {
  .topbar-entity-meta { display: none; }
  .drill-split, .studio-grid, .workshop-body { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spof-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 760px) {
  .topbar-row1, .topbar-row2 { padding-left: 14px; padding-right: 14px; }
  .metric-strip, .entry-grid, .field-row, .field-row-3, .ai-dim-grid, .tier-grid { grid-template-columns: 1fr; }
  .workshop-steps { grid-template-columns: repeat(2, 1fr); }
  .mm-legend { display: none; }
}
