/* DecidePile — Executive Resolution Center */
:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #1E293B;
  --muted: #64748B;
  --muted-light: #94A3B8;
  --secondary: #2563EB;
  --high-impact: #7C3AED;
  --urgent: #DC2626;
  --resolved: #16A34A;
  --pending: #F59E0B;
  --border: #E7E5E4;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(30,41,59,0.06), 0 8px 24px rgba(30,41,59,0.06);
  --max: 1200px;
  --strip-h: 36px;
  --header-h: 56px;
  --top-h: calc(var(--strip-h) + var(--header-h));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 0.9375rem; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--top-h); }
main { flex: 1; }
.container { width: min(var(--max), 92vw); margin: 0 auto; }

.kicker {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary);
}
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.65; max-width: 52ch; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius); font-size: 0.84rem; font-weight: 600;
  border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-lg { padding: 13px 22px; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #334155; color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #1D4ED8; color: #fff; }
.btn-accent { background: var(--high-impact); color: #fff; border-color: var(--high-impact); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-neutral { background: #F1F5F9; color: var(--muted); }
.tag-urgent { background: #FEE2E2; color: var(--urgent); }
.tag-pending { background: #FEF3C7; color: #B45309; }
.tag-resolved { background: #DCFCE7; color: var(--resolved); }
.tag-high-impact { background: #EDE9FE; color: var(--high-impact); }

/* Header */
[data-site-header] { flex-shrink: 0; }
.queue-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  min-height: var(--strip-h); background: var(--ink); color: rgba(255,255,255,0.85);
  font-size: 0.75rem; display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; padding: 6px 16px;
}
.queue-strip a { color: #93C5FD; font-weight: 600; }
.site-header {
  position: fixed; top: var(--strip-h); left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: nowrap; min-height: var(--header-h);
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); opacity: 0.9; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.logo-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-text span { font-size: 0.68rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav-main {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: 2px; flex: 1; min-width: 0;
}
.nav-link {
  display: inline-flex; align-items: center; flex-shrink: 0;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  padding: 6px 10px; border-radius: var(--radius); white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: #F1F5F9; }
.nav-link--muted { color: var(--muted-light); }
.header-actions {
  display: flex; gap: 6px; align-items: center; flex-shrink: 0;
  flex-wrap: nowrap; justify-content: flex-end;
}
.header-actions .btn-sm { padding: 6px 12px; font-size: 0.76rem; white-space: nowrap; }
.header-actions .nav-link--muted { padding: 6px 8px; font-size: 0.8125rem; }
.nav-toggle { display: none; font-size: 1.1rem; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); }

@media (min-width: 769px) and (max-width: 1100px) {
  .nav-link { font-size: 0.76rem; padding: 6px 8px; }
  .brand-text span { display: none; }
  .header-actions .btn-sm { padding: 6px 10px; font-size: 0.72rem; }
}

/* Homepage — Resolution Console */
.resolution-hero { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 5vw, 56px); background: var(--bg); }
.resolution-intro {
  margin-bottom: 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.resolution-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0 14px; max-width: 20ch;
}
.resolution-intro h1 em { font-style: normal; color: var(--secondary); }
.resolution-intro .lead { margin-bottom: 20px; text-align: center; max-width: 58ch; }
.resolution-intro .btn-row { justify-content: center; }
.resolution-metrics {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; width: 100%;
}
.metric-tile {
  flex: 1; min-width: 140px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.metric-tile strong {
  display: block; font-family: var(--mono); font-size: 1.35rem; font-weight: 600; color: var(--ink);
}
.metric-tile span {
  font-size: 0.68rem; font-weight: 600; color: var(--muted-light);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.resolution-console {
  display: grid; grid-template-columns: 1fr 320px; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.console-main { border-right: 1px solid var(--border); }
.console-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--ink); color: rgba(255,255,255,0.9);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
}
.console-head .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--resolved);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.25); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.decision-wall-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px;
  transition: opacity 0.6s;
}
.decision-wall-grid.is-sorting { opacity: 0.5; }
.decision-wall-grid.is-sorted .wall-tile:nth-child(n+4) { opacity: 0.35; transform: scale(0.96); }

.wall-tile {
  padding: 12px; background: #F8FAFC; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.78rem; transition: opacity 0.5s, transform 0.5s;
}
.wall-tile strong { display: block; font-size: 0.82rem; margin-bottom: 4px; line-height: 1.3; }
.wall-tile span { font-size: 0.68rem; color: var(--muted); font-family: var(--mono); }
.wall-tile--urgent { border-left: 3px solid var(--urgent); }
.wall-tile--impact { border-left: 3px solid var(--high-impact); }
.wall-tile--pending { border-left: 3px solid var(--pending); }

.priority-queue {
  padding: 16px; background: #F8FAFC;
  opacity: 0.5; transition: opacity 0.6s;
}
.priority-queue.is-live { opacity: 1; }
.priority-queue h3 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 12px;
}
.queue-item {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.78rem;
}
.queue-item:last-child { border-bottom: none; }
.queue-rank {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700; color: var(--secondary);
}
.queue-item strong { display: block; font-size: 0.8rem; line-height: 1.3; }
.queue-item em { font-style: normal; font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin-top: 8px; }

.flow-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.flow-step {
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); opacity: 0.55; transition: opacity 0.3s, border-color 0.3s;
}
.flow-step.is-active { opacity: 1; border-color: var(--secondary); box-shadow: var(--shadow); }
.flow-step span {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--secondary);
}
.flow-step strong { display: block; font-size: 0.82rem; margin: 6px 0 4px; font-family: var(--sans); }
.flow-step p { font-size: 0.74rem; color: var(--muted); }

.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.problem-card {
  padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.problem-card h3 { font-family: var(--sans); font-size: 0.92rem; margin-bottom: 8px; }
.problem-card p { font-size: 0.82rem; color: var(--muted); }

.team-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team-rail a {
  padding: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--ink); transition: border-color 0.15s;
}
.team-rail a:hover { border-color: var(--secondary); color: var(--ink); }
.team-rail strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.team-rail span { font-size: 0.78rem; color: var(--muted); }

/* Page templates */
.page-hero {
  padding: clamp(32px, 5vw, 48px) 0 clamp(24px, 4vw, 32px);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.page-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 8px 0 12px; }
.page-body { padding: clamp(32px, 5vw, 48px) 0; }
.page-section { margin-bottom: 32px; }

.board-frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.frame-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: #F8FAFC; border-bottom: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
}
.frame-body { padding: 16px; }
.board-table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.board-table th, .data-table th {
  text-align: left; padding: 10px 12px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light);
  border-bottom: 1px solid var(--border); background: #FAFAF9;
}
.board-table td, .data-table td {
  padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.board-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; }
.wait-time { font-family: var(--mono); font-size: 0.78rem; color: var(--urgent); font-weight: 600; }
.rank-badge {
  font-family: var(--mono); font-weight: 700; color: var(--secondary);
  background: #EFF6FF; padding: 2px 8px; border-radius: 4px;
}
.impact-score { font-family: var(--mono); font-weight: 700; }

.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tags .tag { cursor: pointer; }
.filter-tags .tag.is-active { outline: 2px solid var(--secondary); outline-offset: 1px; }

.decision-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.wall-card {
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
}
.wall-count { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 4px; }
.wall-card strong { display: block; font-size: 0.82rem; margin-bottom: 4px; }
.wall-card p { font-size: 0.72rem; color: var(--muted); }
.wall-card--urgent .wall-count { color: var(--urgent); }
.wall-card--impact .wall-count { color: var(--high-impact); }
.wall-card--pending .wall-count { color: var(--pending); }
.wall-card--blocked .wall-count { color: var(--muted); }
.wall-card--resolved .wall-count { color: var(--resolved); }

.stakeholder-map-viz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.stakeholder-svg { width: 100%; height: auto; }
.stakeholder-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 0.78rem; color: var(--muted); }

.resolution-plan, .exec-brief, .dossier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
}
.plan-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.plan-section { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.plan-recommended { border-color: var(--secondary); background: #EFF6FF; }
.mini-list { font-size: 0.82rem; color: var(--muted); padding-left: 18px; line-height: 1.65; }
.mini-list li { margin-bottom: 6px; }

.brief-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.brief-stat {
  padding: 14px; background: #F8FAFC; border-radius: var(--radius); text-align: center;
}
.brief-stat strong { display: block; font-family: var(--mono); font-size: 1.25rem; }
.brief-stat span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; }
.brief-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.brief-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.brief-item-head span { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

.aging-bucket { margin-bottom: 14px; }
.aging-bucket-head { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 6px; }
.aging-bar { height: 8px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.aging-bar i { display: block; height: 100%; border-radius: 999px; }
.aging-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.delay-cost-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.delay-cost-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.delay-cost-amount { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; margin: 8px 0; }
.delay-cost-total { padding: 20px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }

.integration-pipeline {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.integration-source, .integration-output {
  padding: 10px 14px; background: #F8FAFC; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.82rem; margin-bottom: 8px; font-weight: 600;
}
.integration-engine {
  padding: 20px; background: var(--ink); color: #fff; border-radius: var(--radius);
  text-align: center; font-weight: 700; min-width: 180px;
}
.integration-engine span { display: block; font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.6); margin-top: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.pricing-card {
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pricing-card.is-featured { border-color: var(--secondary); box-shadow: var(--shadow); }
.pricing-price { font-family: var(--mono); font-size: 2rem; font-weight: 700; margin: 12px 0; }
.delay-calculator, .calc-row { margin-top: 24px; }
.calc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.calc-result { margin-top: 16px; padding: 16px; background: #EFF6FF; border-radius: var(--radius); }
.calc-result strong { font-family: var(--mono); font-size: 1.5rem; color: var(--secondary); }

.committee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.committee-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value-list { font-size: 0.86rem; color: var(--muted); padding-left: 18px; line-height: 1.7; }
.ui-alert { padding: 16px; border-radius: var(--radius); font-size: 0.84rem; }
.ui-alert-ok { background: #EFF6FF; border: 1px solid #BFDBFE; color: var(--ink); }

.signup-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--ink); color: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg); margin-top: 32px;
}
.signup-strip strong { color: #fff; }

.scenario-workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.scenario-step { padding: 14px; background: #F8FAFC; border-radius: var(--radius); font-size: 0.82rem; }
.scenario-step-num { font-family: var(--mono); font-size: 0.65rem; color: var(--secondary); font-weight: 700; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; background: var(--surface);
}
.form-field textarea { resize: vertical; min-height: 96px; }

/* Footer */
.site-footer { margin-top: auto; }
.footer-cta-band { background: var(--ink); color: #fff; padding: clamp(40px, 5vw, 56px) 0; }
.footer-cta-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.footer-cta-copy h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); color: #fff; margin: 8px 0 10px; max-width: 28ch; }
.footer-cta-copy p { font-size: 0.9rem; color: rgba(255,255,255,0.65); max-width: 42ch; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px);
  margin: clamp(32px, 4vw, 48px) auto; box-shadow: var(--shadow);
}
.footer-brand-row { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.footer-tagline { font-size: 0.88rem; color: var(--muted); margin-top: 10px; max-width: 42ch; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 20px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-light); margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: 0.82rem; color: var(--muted); }
.footer-col a:hover { color: var(--secondary); }
.footer-disclaimer {
  font-size: 0.76rem; color: var(--muted-light); line-height: 1.55;
  padding: 14px 16px; background: #FAFAF9; border-radius: var(--radius); margin-bottom: 16px;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.76rem; color: var(--muted-light);
}
.footer-bottom-links { display: flex; gap: 14px; }
.footer-bottom-links a { color: var(--muted); font-size: 0.76rem; }

/* Auth */
html:has(.auth-page) { height: 100%; }
.auth-page { min-height: 100dvh; height: 100dvh; overflow: hidden; background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; height: 100%; }
.auth-queue-panel {
  padding: clamp(24px, 4vw, 36px); background: var(--ink); color: rgba(255,255,255,0.9);
  display: flex; flex-direction: column; overflow-y: auto;
}
.auth-queue-panel .brand { color: #fff; margin-bottom: 24px; }
.auth-queue-panel .brand-text span { color: rgba(255,255,255,0.55); }
.auth-panel-label {
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #93C5FD; margin-bottom: 12px;
}
.auth-queue-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}
.auth-queue-list em { font-style: normal; font-family: var(--mono); font-size: 0.68rem; color: #FCD34D; }
.auth-panel-foot { margin-top: auto; padding-top: 20px; font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.auth-main {
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(28px, 5vw, 48px); overflow-y: auto; background: var(--bg);
}
.auth-card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 36px); box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin: 8px 0 10px; }
.auth-lead { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; text-align: center; }

.tag-primary { background: #EFF6FF; color: var(--secondary); }
.ui-alert-warn { background: #FEF3C7; border: 1px solid #FDE68A; color: var(--ink); }

.review-queue { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}

.leadership-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.leadership-role {
  padding: 16px; background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius);
}
.leadership-role h4 { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.leadership-role p { font-size: 0.78rem; color: var(--muted); }

.chaos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chaos-card {
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.82rem;
}
.chaos-card strong { display: block; margin-bottom: 4px; }
.chaos-card span { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }

.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.about-values h3 { font-family: var(--sans); font-size: 0.95rem; margin-bottom: 8px; }
.about-values p { font-size: 0.84rem; color: var(--muted); line-height: 1.65; }

.unknown-list { font-size: 0.88rem; color: var(--muted); padding-left: 18px; line-height: 1.75; margin-bottom: 12px; }
.waste-stat-panel {
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.waste-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.waste-stat-row div { padding: 12px; background: #F8FAFC; border-radius: var(--radius); }
.waste-stat-row strong { display: block; font-family: var(--mono); font-size: 1.2rem; }
.waste-stat-row span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.committee-card blockquote { font-size: 0.9rem; font-style: italic; margin-bottom: 10px; line-height: 1.55; }
.committee-card cite { font-size: 0.76rem; color: var(--muted); font-style: normal; }
.committee-card h4 { font-family: var(--sans); font-size: 0.95rem; margin-bottom: 6px; }

.plan-alternative, .plan-risks { background: #FAFAF9; }
.alt-option { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.alt-option:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.alt-option strong { display: block; font-size: 0.82rem; margin-bottom: 4px; }
.alt-option p { font-size: 0.78rem; color: var(--muted); }

.pricing-card ul { font-size: 0.82rem; color: var(--muted); padding-left: 18px; margin: 16px 0; line-height: 1.65; }
.pricing-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.delay-cost-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.delay-cost--high-impact { border-left: 3px solid var(--high-impact); }
.delay-cost--urgent { border-left: 3px solid var(--urgent); }
.delay-cost--pending { border-left: 3px solid var(--pending); }

.brief-item--critical { border-left: 3px solid var(--urgent); padding-left: 12px; }
.brief-action { font-size: 0.78rem; margin-top: 8px; padding: 8px 10px; background: #F8FAFC; border-radius: var(--radius); color: var(--muted); }

.tag-secondary { background: #EFF6FF; color: var(--secondary); }

/* Filters */
.filter-panel { margin-bottom: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-light); min-width: 88px; }
.filter-tags--sub .tag { font-size: 0.62rem; }

/* Decision types */
.decision-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-card {
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); border-left: 3px solid var(--secondary);
}
.type-card strong { display: block; font-size: 0.86rem; margin-bottom: 4px; }
.type-card span { font-size: 0.74rem; color: var(--muted); }

/* AI engine */
.ai-engine-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; }
.ai-col { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ai-col h3 { font-family: var(--sans); font-size: 0.88rem; margin-bottom: 14px; }
.ai-col--engine { display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; }
.ai-list { font-size: 0.82rem; color: var(--muted); padding-left: 18px; line-height: 1.75; }
.ai-list li { margin-bottom: 4px; }

/* Console visuals */
.console-visuals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.approval-path, .decision-lifecycle, .decision-heatmap {
  padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.path-track { display: flex; flex-direction: column; gap: 8px; }
.path-step {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  padding: 10px; border-radius: var(--radius); font-size: 0.78rem;
}
.path-step--resolved { background: #F0FDF4; border-left: 3px solid var(--resolved); }
.path-step--pending { background: #FFFBEB; border-left: 3px solid var(--pending); }
.path-step--urgent { background: #FEF2F2; border-left: 3px solid var(--urgent); }
.path-step--neutral { background: #F8FAFC; border-left: 3px solid var(--border); }
.path-num { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.path-step strong { display: block; font-size: 0.82rem; }
.path-step span { display: block; font-size: 0.72rem; color: var(--muted); }
.path-step em { font-style: normal; font-family: var(--mono); font-size: 0.65rem; color: var(--muted-light); }

.lifecycle-track { display: flex; flex-direction: column; gap: 10px; }
.lifecycle-stage { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; }
.lifecycle-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.lifecycle-stage--resolved .lifecycle-dot { background: var(--resolved); }
.lifecycle-stage--pending .lifecycle-dot { background: var(--pending); }
.lifecycle-stage--neutral .lifecycle-dot { background: var(--border); }
.lifecycle-stage strong { display: block; font-size: 0.82rem; }
.lifecycle-stage p { font-size: 0.72rem; color: var(--muted); }

.heatmap-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.heatmap-table th, .heatmap-table td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.heatmap-table th:first-child { text-align: left; font-weight: 600; }
.heat-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; border-radius: 4px; font-family: var(--mono); font-weight: 600;
}
.heat-cell--low { background: #DCFCE7; color: var(--resolved); }
.heat-cell--mid { background: #FEF3C7; color: #B45309; }
.heat-cell--high { background: #EDE9FE; color: var(--high-impact); }
.heat-cell--critical { background: #FEE2E2; color: var(--urgent); }
.heatmap-legend { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Intelligence preview */
.intel-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.intel-card {
  padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--ink); transition: border-color 0.15s;
}
.intel-card:hover { border-color: var(--secondary); color: var(--ink); }
.intel-card .tag { margin-bottom: 10px; }
.intel-card strong { display: block; font-family: var(--sans); font-size: 0.92rem; margin-bottom: 8px; }
.intel-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* About brand */
.brand-etymology { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.brand-slogans { display: flex; flex-direction: column; gap: 10px; }

.plan-inputs { border-color: var(--pending); background: #FFFBEB; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .resolution-console { grid-template-columns: 1fr; }
  .console-main { border-right: none; border-bottom: 1px solid var(--border); }
  .decision-wall-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps, .problem-grid, .team-rail { grid-template-columns: repeat(2, 1fr); }
  .decision-types-grid, .intel-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .console-visuals-grid, .ai-engine-grid { grid-template-columns: 1fr; }
  .brand-etymology { grid-template-columns: 1fr; }
  .plan-sections, .aging-overview, .integration-pipeline, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .auth-shell { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .auth-page { height: auto; overflow: auto; }
}

@media (max-width: 768px) {
  .nav-main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 16px; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); min-height: auto;
  }
  .nav-main.is-open { display: flex; }
  .nav-main .nav-link { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
  .site-header { position: fixed; }
  .header-inner { position: relative; }
  .decision-wall-grid, .flow-steps, .problem-grid, .team-rail, .decision-wall, .decision-types-grid, .intel-preview-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-row { grid-template-columns: 1fr 1fr; }
  .leadership-roles, .about-values, .chaos-grid { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
}
