/* ================================================================
   SinoSource Command — "mission control" design system
   Dark neon HUD: glass panels, aurora field, gradient signals.
   ================================================================ */

/* Palette matched to getsinosource.com brand CSS:
   red #D42B1E · gold #F0A51E · slate #5B7E99 · bg #09090C */
:root {
  --bg: #09090C;
  --bg-2: #111116;
  --glass: rgba(26, 26, 34, 0.55);
  --glass-2: rgba(31, 31, 42, 0.6);
  --ink: #F0F0F5;
  --ink-2: #9A9AAE;
  --ink-3: #5A5A72;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --accent: #D42B1E;
  --accent-deep: #B82216;
  --accent-soft: rgba(212, 43, 30, 0.10);
  --accent-glow: rgba(212, 43, 30, 0.38);

  --gold: #F0A51E;
  --gold-2: #D08C14;
  --gold-text: #F5BC45;
  --gold-soft: rgba(240, 165, 30, 0.12);
  --gold-glow: rgba(240, 165, 30, 0.35);

  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.13);
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, 0.12);
  --slate: #5B7E99;
  --slate-soft: rgba(91, 126, 153, 0.14);

  --grad-signal: linear-gradient(135deg, #E23A2A, #B82216);
  --grad-gold: linear-gradient(135deg, #F0A51E, #D08C14);
  --grad-brand: linear-gradient(135deg, #E23A2A, #F0A51E);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 70px rgba(0, 0, 0, 0.6);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #F5F5F8;
  --bg-2: #EBEBF1;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.88);
  --ink: #111116;
  --ink-2: #3A3A4E;
  --ink-3: #6A6A82;
  --line: rgba(17, 17, 22, 0.09);
  --line-strong: rgba(17, 17, 22, 0.2);

  --accent: #D42B1E;
  --accent-deep: #B82216;
  --accent-soft: rgba(212, 43, 30, 0.08);
  --accent-glow: rgba(212, 43, 30, 0.25);

  --gold: #D08C14;
  --gold-2: #B87708;
  --gold-text: #9A6607;
  --gold-soft: rgba(208, 140, 20, 0.12);
  --gold-glow: rgba(208, 140, 20, 0.3);

  --amber: #B45309;
  --amber-soft: rgba(180, 83, 9, 0.12);
  --green: #15803D;
  --green-soft: rgba(21, 128, 61, 0.1);
  --slate: #48708C;
  --slate-soft: rgba(72, 112, 140, 0.12);

  --grad-signal: linear-gradient(135deg, #D42B1E, #B82216);
  --grad-gold: linear-gradient(135deg, #D08C14, #B87708);
  --grad-brand: linear-gradient(135deg, #D42B1E, #D08C14);

  --shadow-sm: 0 1px 3px rgba(20, 30, 60, 0.08), 0 4px 14px rgba(20, 30, 60, 0.08);
  --shadow-md: 0 4px 12px rgba(20, 30, 60, 0.10), 0 14px 40px rgba(20, 30, 60, 0.12);
  --shadow-lg: 0 12px 40px rgba(20, 30, 60, 0.18), 0 30px 80px rgba(20, 30, 60, 0.2);
}

/* ================= base ================= */

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

html { height: 100%; }

body {
  height: 100%;
  display: flex;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s, color 0.35s;
  overflow: hidden;
}

::selection { background: var(--accent-glow); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(154, 154, 174, 0.07);
  color: var(--ink-3);
}

/* ---- ambient background layers ---- */

.bg-aurora {
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 22%, rgba(212, 43, 30, 0.09), transparent 70%),
    radial-gradient(30% 30% at 82% 12%, rgba(240, 165, 30, 0.07), transparent 70%),
    radial-gradient(36% 36% at 68% 84%, rgba(240, 165, 30, 0.08), transparent 70%),
    radial-gradient(26% 26% at 30% 88%, rgba(91, 126, 153, 0.07), transparent 70%);
  filter: blur(50px);
  animation: aurora-drift 30s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(2.5%, -2%) rotate(2deg) scale(1.06); }
  100% { transform: translate(-2%, 2.5%) rotate(-2deg) scale(1.03); }
}
[data-theme="light"] .bg-aurora { opacity: 0.55; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 25%, transparent 80%);
}
[data-theme="light"] .bg-grid { opacity: 0.7; }

#confetti-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ================= sidebar ================= */

.sidebar {
  width: 236px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 22px;
}

.brand-mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  transition: transform 0.3s var(--ease-spring), filter 0.3s;
}
.brand:hover .brand-mark img {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 18px var(--gold-glow));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  font-weight: 550;
  font-size: 14px;
  color: var(--ink-3);
  transition: all 0.18s var(--ease-out);
  text-align: left;
  overflow: hidden;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: 0; top: 22%;
  height: 56%;
  width: 3px;
  border-radius: 99px;
  background: var(--grad-signal);
  box-shadow: 0 0 10px var(--accent-glow);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.22s var(--ease-out);
}
.nav-item svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item svg .fill { fill: currentColor; stroke: none; }
.nav-item span { flex: 1; }
.nav-item kbd { opacity: 0; transition: opacity 0.18s; }
.nav-item:hover { color: var(--ink); background: rgba(154, 154, 174, 0.06); }
.nav-item:hover kbd { opacity: 1; }
.nav-item.active {
  color: var(--ink);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
.nav-item.active::before { opacity: 1; transform: none; }
.nav-item.active svg { color: var(--accent); }

.sidebar-stats {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px 14px;
}

/* XP */
.xp-card {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.xp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.xp-level {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.xp-pts {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.xp-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(154, 154, 174, 0.12);
  overflow: hidden;
}
.xp-bar div {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad-signal);
  box-shadow: 0 0 10px var(--accent-glow);
  position: relative;
  transition: width 0.7s var(--ease-out);
  overflow: hidden;
}
.xp-bar div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 160% 0; }
  100% { background-position: -160% 0; }
}
.xp-next {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.streak-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.streak-flame { font-size: 21px; filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.55)); }
.streak-card.cold .streak-flame { filter: grayscale(1); opacity: 0.4; }
.streak-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}
.streak-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mini-progress { padding: 0 3px; }
.mini-progress-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.mini-progress-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(154, 154, 174, 0.12);
  overflow: hidden;
}
.mini-progress-bar div {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad-gold);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.6s var(--ease-out);
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.ghost-btn.muted { opacity: 0.45; }

.ghost-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-3);
  transition: all 0.15s;
}
.ghost-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.ghost-btn:hover { color: var(--accent); background: var(--accent-soft); }

/* ================= main / views ================= */

.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.view {
  display: none;
  min-height: 100%;
  padding: 40px 48px 60px;
  max-width: 1500px;
  margin: 0 auto;
}
.view.active {
  display: block;
  animation: view-in 0.35s var(--ease-out);
}
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}
.view-header h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.view-sub {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  background: var(--grad-signal);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.2s;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 0 32px var(--accent-glow); }
.primary-btn:active { transform: translateY(0) scale(0.98); }
.primary-btn span { font-size: 16px; line-height: 1; }
.primary-btn kbd { background: rgba(255, 255, 255, 0.16); border-color: transparent; color: rgba(255, 255, 255, 0.85); }

.text-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.15s;
}
.text-btn:hover { background: var(--accent-soft); }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--ink-3);
  transition: all 0.15s;
}
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.icon-btn:hover { background: rgba(154, 154, 174, 0.1); color: var(--ink); }

.danger-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  transition: all 0.15s;
}
.danger-btn:hover { background: var(--accent-soft); box-shadow: 0 0 14px var(--accent-glow); }

/* ================= FOCUS view ================= */

.view-focus { max-width: 880px; }

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
  gap: 20px;
}
.focus-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 12px var(--accent-glow);
}
.focus-greeting {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.focus-hud {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.clock-block { text-align: right; }
.clock {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.clock-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.day-ring { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.day-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(154, 154, 174, 0.14); stroke-width: 7; }
.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 0.8s var(--ease-out);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}
.day-ring-text {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.focus-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* ================= STRATEGIC OVERVIEW ================= */

#strategy-overview { display: grid; gap: 18px; margin: -6px 0 32px; }
.strategy-brief,
.evidence-panel,
.goal-section {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.strategy-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .8fr);
  gap: 24px;
  padding: 25px;
  background:
    radial-gradient(circle at 4% 4%, var(--accent-soft), transparent 38%),
    var(--glass);
}
.strategy-eyebrow,
.section-kicker,
.goal-kicker {
  color: var(--accent);
  font: 700 10px/1.3 var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.strategy-brief h2,
.overview-head h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
.strategy-brief h2 { max-width: 590px; margin: 9px 0 9px; font-size: 24px; line-height: 1.16; }
.strategy-brief-copy > p { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; max-width: 650px; }
.gate-status {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(4, 4, 8, .18);
}
.gate-status > span { color: var(--ink-3); font: 650 9.5px/1.2 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
.gate-status strong { font-size: 15px; }
.gate-status p { color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
.gate-status.risk { border-color: rgba(212, 43, 30, .35); }
.gate-status.testing { border-color: rgba(240, 165, 30, .45); }
.gate-status.good,
.gate-status.strong { border-color: rgba(49, 188, 134, .45); }
.gate-status.good strong,
.gate-status.strong strong { color: var(--green); }

.evidence-panel,
.goal-section { padding: 23px; }
.overview-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 17px; }
.overview-head h2 { font-size: 19px; margin-top: 6px; }
.evidence-score {
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  font: 650 10px/1 var(--font-mono);
}
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.evidence-metric {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 4, 8, .16);
}
.evidence-metric-head { min-height: 27px; display: flex; align-items: baseline; gap: 5px; color: var(--ink-2); font-size: 10.5px; }
.evidence-metric-head > span:first-child { flex: 1; }
.evidence-metric-head strong { color: var(--ink); font: 700 18px/1 var(--font-mono); }
.metric-target { flex: none !important; color: var(--ink-3); font: 10px/1 var(--font-mono); }
.strategy-number {
  width: 49px;
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: var(--bg-2);
  color: var(--ink);
  font: 700 15px/1 var(--font-mono);
  text-align: right;
}
.strategy-number:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.evidence-bar,
.goal-progress { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(154, 154, 174, .12); }
.evidence-bar { margin: 9px 0 8px; }
.evidence-bar i,
.goal-progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad-warm); }
.evidence-metric small { display: block; min-height: 28px; color: var(--ink-3); font-size: 9.5px; line-height: 1.45; }
.guardrail-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.guardrail-row label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: 10px; }
.strategy-number.wide { width: 68px; }
.guardrail-row p { color: var(--ink-3); font-size: 9.5px; line-height: 1.5; }

.strategy-goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.strategy-goal {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(4, 4, 8, .13);
}
.strategy-goal h3 { margin: 7px 0; font-size: 14px; line-height: 1.3; }
.strategy-goal p { min-height: 47px; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.goal-progress { margin-top: 14px; }
.goal-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--ink-3); font: 9px/1.3 var(--font-mono); }
.goal-foot span:last-child { text-align: right; }

.decision-path { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 0; overflow-x: auto; padding: 2px 1px 8px; }
.decision-step { position: relative; min-width: 155px; padding: 27px 15px 15px; border-top: 1px solid var(--line-strong); }
.decision-step:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.decision-step:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.decision-marker { position: absolute; top: -5px; left: 17px; width: 11px; height: 11px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.decision-marker i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.decision-step.active .decision-marker { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.decision-step.active .decision-marker i { background: var(--accent); }
.decision-step.done .decision-marker i { background: var(--green); }
.decision-date { color: var(--accent); font: 650 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.decision-step h3 { margin: 7px 0 6px; font-size: 12.5px; }
.decision-step p { min-height: 50px; color: var(--ink-2); font-size: 10px; line-height: 1.45; }
.decision-step > span { color: var(--ink-3); font: 9px/1 var(--font-mono); }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 0 10px var(--accent); }
  50% { box-shadow: 0 0 0 8px transparent, 0 0 10px var(--accent); }
}

/* hero card */
.hero-card {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, rgba(212, 43, 30, 0.5), rgba(240, 165, 30, 0.25) 45%, rgba(240, 165, 30, 0.4)) border-box;
  backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
  padding: 30px 34px 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: hero-in 0.5s var(--ease-out);
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}
.hero-card:hover { transition: transform 0.06s linear; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
/* scan sweep */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(212, 43, 30, 0.055) 50%, transparent 58%);
  background-size: 230% 100%;
  animation: sweep 6s linear infinite;
}
@keyframes sweep {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}
/* cursor spotlight (vars set by JS) */
.hero-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 30%), rgba(212, 43, 30, 0.08), transparent 65%);
}
/* HUD corner brackets */
.hud-c {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(212, 43, 30, 0.55);
  pointer-events: none;
}
.hud-c.tl { top: 9px; left: 9px; border-right: none; border-bottom: none; }
.hud-c.tr { top: 9px; right: 9px; border-left: none; border-bottom: none; }
.hud-c.bl { bottom: 9px; left: 9px; border-right: none; border-top: none; }
.hud-c.br { bottom: 9px; right: 9px; border-left: none; border-top: none; }

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.hero-desc {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 62ch;
  white-space: pre-wrap;
}

.hero-checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.hero-checklist-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-checklist-label .frac { font-size: 11px; color: var(--accent); }

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  align-items: center;
}
.complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: #1A0D02;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  animation: breathe 3s ease-in-out infinite;
  transition: transform 0.16s var(--ease-spring);
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 18px var(--gold-glow); }
  50% { box-shadow: 0 0 34px var(--gold-glow); }
}
.complete-btn:hover { transform: translateY(-1.5px) scale(1.02); }
.complete-btn:active { transform: scale(0.97); }
.complete-btn svg { width: 16px; height: 16px; stroke: #1A0D02; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .complete-btn { color: #fff; }
[data-theme="light"] .complete-btn svg { stroke: #fff; }

.secondary-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(154, 154, 174, 0.05);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all 0.15s;
}
.secondary-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }

/* all-clear state */
.all-clear {
  text-align: center;
  padding: 70px 30px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.all-clear .big { font-size: 44px; margin-bottom: 14px; }
.all-clear h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.all-clear p { color: var(--ink-3); margin-bottom: 20px; }

/* next up */
.next-up { margin-top: 42px; }
.next-up-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.next-up-head h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.next-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  animation: item-in 0.4s var(--ease-out) backwards;
}
.next-item:nth-child(2) { animation-delay: 0.05s; }
.next-item:nth-child(3) { animation-delay: 0.1s; }
@keyframes item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.next-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-glow);
  box-shadow: 0 0 18px rgba(212, 43, 30, 0.1), var(--shadow-sm);
}
.next-item .t { flex: 1; font-weight: 550; font-size: 14px; }
.next-item .meta { display: flex; gap: 8px; align-items: center; }

/* ================= badges & pills ================= */

.prio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}
.prio-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.prio-pill.high { color: var(--accent); background: var(--accent-soft); }
.prio-pill.medium { color: var(--amber); background: var(--amber-soft); }
.prio-pill.low { color: var(--slate); background: var(--slate-soft); }

.due-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--ink-2);
  background: rgba(154, 154, 174, 0.09);
}
.due-pill.overdue { color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 10px var(--accent-glow); }
.due-pill.today { color: var(--amber); background: var(--amber-soft); }
.due-pill svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--ink-2);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 43, 30, 0.14);
}

/* ================= checkbox ================= */

.check {
  position: relative;
  width: 21px; height: 21px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1.8px solid var(--line-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
  background: rgba(154, 154, 174, 0.04);
}
.check:hover {
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--accent-glow);
}
.check svg {
  width: 12px; height: 12px;
  stroke: #fff; stroke-width: 3.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.25s var(--ease-out) 0.05s;
}
.check.on {
  background: var(--grad-signal);
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: check-pop 0.3s var(--ease-spring);
}
@keyframes check-pop {
  0% { transform: scale(0.8); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.check.on svg { stroke-dashoffset: 0; }
.check.sm { width: 18px; height: 18px; border-radius: 6px; }
.check.sm svg { width: 10px; height: 10px; }

/* ================= subtasks ================= */

.subtask {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 9px;
  transition: background 0.15s;
}
.subtask:hover { background: rgba(154, 154, 174, 0.06); }
.subtask .st-text {
  flex: 1;
  font-size: 14px;
  transition: color 0.2s, opacity 0.2s;
}
.subtask.done .st-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}
.subtask .st-del {
  opacity: 0;
  font-size: 15px;
  color: var(--ink-3);
  padding: 2px 6px;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.subtask:hover .st-del { opacity: 1; }
.subtask .st-del:hover { color: var(--accent); background: var(--accent-soft); }

.subtask-add {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  color: var(--ink-3);
}
.subtask-add span { width: 18px; text-align: center; font-size: 15px; color: var(--accent); }
.subtask-add input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}
.subtask-add input::placeholder { color: var(--ink-3); }

/* ================= BOARD ================= */

.view-board { display: none; max-width: none; }
.view-board.active { display: flex; flex-direction: column; }
.view-board .board { flex: 1; }

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
}

.col {
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.col.drag-over {
  background: var(--accent-soft);
  border-color: var(--accent);
  border-style: dashed;
  box-shadow: 0 0 24px rgba(212, 43, 30, 0.15), inset 0 0 30px rgba(212, 43, 30, 0.05);
}

.col-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 6px 12px;
}
.col-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  flex: 1;
}
.col-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: rgba(154, 154, 174, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
}

.col-cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 50px;
  flex: 1;
}

.card {
  background: var(--glass-2);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, border-color 0.18s, opacity 0.18s;
  animation: card-in 0.3s var(--ease-out) backwards;
}
@keyframes card-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-glow);
  box-shadow: 0 0 18px rgba(212, 43, 30, 0.12), var(--shadow-md);
}
.card.dragging {
  opacity: 0.35;
  transform: scale(0.97) rotate(1.5deg);
  cursor: grabbing;
}
.card.done-card .card-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.card-title {
  font-weight: 570;
  font-size: 13.8px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.card-meta:empty { display: none; }
.card-sub-frac {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.card-sub-frac svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.col-add {
  margin-top: 9px;
  padding: 9px;
  border-radius: var(--r-sm);
  border: 1px dashed transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  transition: all 0.15s;
}
.col-add:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(212, 43, 30, 0.3);
}

/* ================= TASKS view ================= */

.tasks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
}

.quick-add {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-2);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quick-add:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 22px rgba(212, 43, 30, 0.12);
}
.quick-add-plus { color: var(--accent); font-size: 18px; font-weight: 600; }
.quick-add input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14.5px;
}
.quick-add input::placeholder { color: var(--ink-3); }

.filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(154, 154, 174, 0.04);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.active {
  background: var(--grad-signal);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px var(--accent-glow);
}

.task-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  background: var(--glass-2);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  animation: item-in 0.3s var(--ease-out) backwards;
}
.task-row:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 16px rgba(212, 43, 30, 0.1), var(--shadow-sm);
  transform: translateX(3px);
}
.task-row.completing {
  animation: complete-flash 0.5s var(--ease-out);
}
@keyframes complete-flash {
  0% { background: var(--green-soft); transform: scale(1.01); box-shadow: 0 0 24px rgba(34, 197, 94, 0.25); }
  100% { background: var(--glass-2); transform: scale(1); }
}
.task-row .tr-title {
  flex: 1;
  font-weight: 550;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.task-row.done .tr-title {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}
.task-row .tr-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}

.empty-list {
  text-align: center;
  padding: 46px 20px;
  color: var(--ink-3);
  font-size: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.empty-list .em { font-size: 28px; display: block; margin-bottom: 10px; }

/* ================= notes ================= */

.notes-col {
  position: sticky;
  top: 0;
}
.notes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.notes-head h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.note {
  background: var(--glass-2);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 14px 16px 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: item-in 0.3s var(--ease-out) backwards;
}
.note:focus-within {
  box-shadow: 0 0 18px var(--gold-soft), var(--shadow-md);
  border-color: var(--gold);
  border-left-color: var(--gold);
}
.note textarea {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  resize: none;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  min-height: 20px;
  overflow: hidden;
  font-family: var(--font-ui);
}
.note-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.note-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-3);
}
.note-del {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.note-del:hover { color: var(--accent); background: var(--accent-soft); }

/* ================= modal ================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.65);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 30px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(600px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, rgba(212, 43, 30, 0.4), rgba(154, 154, 174, 0.12) 40%, rgba(240, 165, 30, 0.3)) border-box;
  border-radius: var(--r-lg);
  padding: 24px 28px 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s var(--ease-spring);
}
.modal-backdrop.open .modal { transform: none; }

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-status-row { display: flex; gap: 6px; flex-wrap: wrap; }
.status-opt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.15s;
}
.status-opt:hover { border-color: var(--line-strong); color: var(--ink); }
.status-opt.active {
  color: #fff;
  background: var(--grad-signal);
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-glow);
}

.modal-title {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.modal-title::placeholder { color: var(--ink-3); }

.modal-desc {
  width: 100%;
  border: none;
  background: rgba(154, 154, 174, 0.07);
  border-radius: var(--r-sm);
  outline: none;
  resize: vertical;
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.modal-desc:focus { box-shadow: 0 0 0 2px var(--accent-soft); color: var(--ink); }

.modal-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-meta > .meta-field:nth-child(3) { grid-column: 1; }
.meta-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.meta-field .hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.meta-field input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(154, 154, 174, 0.05);
  outline: none;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color-scheme: dark;
}
[data-theme="light"] .meta-field input { color-scheme: light; }
.meta-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.prio-picker { display: flex; gap: 5px; }
.prio-opt {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.15s;
}
.prio-opt:hover { border-color: var(--line-strong); }
.prio-opt.active.prio-high { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.prio-opt.active.prio-medium { color: var(--amber); background: var(--amber-soft); border-color: var(--amber); }
.prio-opt.active.prio-low { color: var(--slate); background: var(--slate-soft); border-color: var(--slate); }

.modal-subtasks label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ================= INVESTMENTS view ================= */

.inv-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.inv-tile {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
  overflow: hidden;
  animation: item-in 0.35s var(--ease-out) backwards;
}
.inv-tile:nth-child(2) { animation-delay: 0.04s; }
.inv-tile:nth-child(3) { animation-delay: 0.08s; }
.inv-tile:nth-child(4) { animation-delay: 0.12s; }
.inv-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-signal);
  opacity: 0.6;
}
.inv-tile:first-child::before { background: var(--grad-gold); }
.inv-tile-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.inv-tile-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.inv-tile-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.inv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.inv-gap { margin-top: 28px; }

.inv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--glass-2);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  animation: item-in 0.3s var(--ease-out) backwards;
}
.inv-row:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 16px rgba(212, 43, 30, 0.1), var(--shadow-sm);
  transform: translateX(3px);
}
.inv-row.inactive { opacity: 0.55; }
.inv-row.inactive:hover { opacity: 0.8; }

.inv-main { flex: 1; min-width: 0; }
.inv-name {
  font-weight: 570;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.inv-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--ink-3);
  background: rgba(154, 154, 174, 0.1);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.inv-badge.est { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.inv-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* on/off switch */
.inv-toggle {
  position: relative;
  width: 34px; height: 19px;
  border-radius: 99px;
  background: rgba(154, 154, 174, 0.15);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: all 0.2s var(--ease-out);
}
.inv-toggle span {
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: all 0.22s var(--ease-spring);
}
.inv-toggle.on {
  background: var(--grad-signal);
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-glow);
}
.inv-toggle.on span {
  left: 17px;
  background: #fff;
}

/* payments stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  flex-shrink: 0;
  background: rgba(154, 154, 174, 0.05);
}
.stepper button {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  font-size: 14px;
  color: var(--ink-3);
  transition: all 0.12s;
}
.stepper button:hover { color: var(--accent); background: var(--accent-soft); }
.stepper .stepper-n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  min-width: 26px;
  text-align: center;
  color: var(--ink-2);
}

.inv-total { text-align: right; flex-shrink: 0; min-width: 76px; }
.inv-total-num {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.inv-total-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

/* spend bars */
.inv-bars {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 14px;
}
.bar-row {
  padding: 7px 0 9px;
  cursor: pointer;
  border-radius: 8px;
}
.bar-row.static { cursor: default; }
.bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}
.bar-name {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-row:hover .bar-name { color: var(--ink); }
.bar-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.bar-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(154, 154, 174, 0.1);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--grad-signal);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.7s var(--ease-out);
}

.fx-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  margin-top: 12px;
  padding: 0 4px;
  line-height: 1.7;
}

/* ================= GROWTH view ================= */

.header-btns { display: flex; gap: 10px; align-items: center; }

.growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 30px;
  align-items: start;
}

.be-bar { margin-top: 10px; }
.be-bar div { background: var(--grad-gold); box-shadow: 0 0 8px var(--gold-glow); }
.inv-tile.break-even-hit .inv-tile-num { color: var(--green); }

.stage-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.lead-row.churned { opacity: 0.5; }
.lead-row.churned .inv-name { text-decoration: line-through; text-decoration-color: var(--line-strong); }

.stage-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(154, 154, 174, 0.09);
  flex-shrink: 0;
}

.advance-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.advance-btn:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
  transform: translateX(2px);
}

.marketer-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  animation: item-in 0.3s var(--ease-out) backwards;
}
.marketer-card:hover {
  border-color: var(--gold-glow);
  box-shadow: 0 0 18px rgba(240, 165, 30, 0.12), var(--shadow-sm);
}
.mk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mk-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.mk-card-subs {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.mk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mk-stat .n {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mk-stat .l {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.mk-stat.owed .n { color: var(--gold-text); text-shadow: 0 0 12px var(--gold-glow); }

.tier-row { display: flex; gap: 5px; }
.tier-btn {
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.15s;
}
.tier-btn:hover, .tier-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tier-row input { width: 74px; }
.lead-meta { grid-template-columns: 1fr 1.4fr; }
.lead-note-field { margin-bottom: 18px; }
.mk-hint {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: -4px;
}
.modal-sm { width: min(430px, 100%); }

/* ================= CONTENT engine ================= */

.gen-panel {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gen-panel .meta-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.gen-panel .meta-field input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(154, 154, 174, 0.05);
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.gen-panel .meta-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gen-btn { justify-content: center; width: 100%; display: flex; align-items: center; gap: 8px; }
.gen-btn.busy { opacity: 0.6; pointer-events: none; }

.gen-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.gen-divider::before, .gen-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.key-row { display: flex; gap: 6px; }
.key-row input {
  flex: 1;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(154, 154, 174, 0.05);
  outline: none;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink);
}
.key-row button {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.15s;
}
.key-row button:hover { border-color: var(--accent); color: var(--accent); }
.key-saved {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  padding: 6px 2px;
}
.key-saved button { color: var(--ink-3); font-size: 11px; }
.key-saved button:hover { color: var(--accent); }

/* post rows */
.post-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: var(--glass-2);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  animation: item-in 0.3s var(--ease-out) backwards;
}
.post-row:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 16px rgba(212, 43, 30, 0.1), var(--shadow-sm);
  transform: translateX(3px);
}
.post-row.due { border-color: var(--gold); box-shadow: 0 0 16px var(--gold-glow); }
.post-row.posted { opacity: 0.55; }
.post-main { flex: 1; min-width: 0; }
.post-preview {
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.post-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  flex-shrink: 0;
}
.post-status.draft { color: var(--ink-2); background: rgba(154, 154, 174, 0.12); }
.post-status.queued { color: var(--slate); background: var(--slate-soft); }
.post-status.due { color: var(--gold-text); background: var(--gold-soft); }
.post-status.posted { color: var(--green); background: var(--green-soft); }
.post-now-btn {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  background: var(--grad-gold);
  color: #1A0D02;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-spring);
}
.post-now-btn:hover { transform: translateY(-1px); box-shadow: 0 0 14px var(--gold-glow); }

/* post modal */
.po-text {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(154, 154, 174, 0.05);
  border-radius: var(--r-sm);
  outline: none;
  resize: vertical;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-ui);
  min-height: 220px;
}
.po-text:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.po-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 16px;
}
.po-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.po-count.over { color: var(--accent); font-weight: 700; }
.po-hook { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.po-hook.good { color: var(--green); }
.po-hook.bad { color: var(--amber); }
.po-meta { grid-template-columns: 1fr 1fr; }
.po-actions { align-items: center; }
.po-action-group { display: flex; gap: 10px; }

/* due-post strip on Focus */
.post-due-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    var(--grad-gold) border-box;
  backdrop-filter: blur(10px);
  cursor: pointer;
  animation: item-in 0.35s var(--ease-out) backwards;
}
.post-due-banner:hover { box-shadow: 0 0 18px var(--gold-glow); }
.post-due-banner .em { font-size: 18px; }
.post-due-banner .t { flex: 1; font-weight: 600; font-size: 13.5px; }
.post-due-banner .sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }

/* ================= heatmap ================= */

.heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 13px);
  grid-auto-columns: 13px;
  gap: 3px;
  padding: 14px 16px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.hm-cell { width: 13px; height: 13px; border-radius: 3.5px; background: rgba(154, 154, 174, 0.1); }
.hm-cell.l1 { background: rgba(212, 43, 30, 0.35); }
.hm-cell.l2 { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.hm-cell.l3 { background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }

/* ================= command palette ================= */

.palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 6, 0.6);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14vh 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out);
}
.palette-backdrop.open { opacity: 1; pointer-events: auto; }
.palette {
  width: min(560px, 100%);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, rgba(212, 43, 30, 0.45), rgba(240, 165, 30, 0.3)) border-box;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.22s var(--ease-spring);
}
.palette-backdrop.open .palette { transform: none; }
.palette input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  padding: 17px 20px;
  font-size: 15.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.palette input::placeholder { color: var(--ink-3); }
#palette-results { max-height: 46vh; overflow-y: auto; padding: 7px; }
.p-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13.5px;
}
.p-item .p-icon { width: 20px; text-align: center; flex-shrink: 0; }
.p-item .p-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.p-item .p-kind {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.p-item.sel, .p-item:hover { background: var(--accent-soft); }
.p-item.sel .p-kind { color: var(--accent); }
.p-empty {
  padding: 22px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* invest modal extras */
.modal-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.inv-meta { grid-template-columns: 1fr 1fr 1fr; }
.meta-field select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--ink);
  outline: none;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.meta-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.inv-status-opt {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: all 0.15s;
}
.inv-status-opt:hover { border-color: var(--line-strong); }
.inv-status-opt.active.is-active { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.inv-status-opt.active.is-canceled { color: var(--ink-2); background: rgba(154, 154, 174, 0.1); border-color: var(--line-strong); }

@media (max-width: 1150px) {
  .inv-tiles { grid-template-columns: repeat(2, 1fr); }
  .inv-layout { grid-template-columns: 1fr; }
  .growth-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .inv-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .inv-tile-num { font-size: 24px; }
  .inv-meta { grid-template-columns: 1fr 1fr; }
  .inv-row { flex-wrap: wrap; }
}

/* ================= toast ================= */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid rgba(212, 43, 30, 0.35);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(212, 43, 30, 0.18), var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ================= scrollbars ================= */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(154, 154, 174, 0.22);
  border-radius: 99px;
  border: 2.5px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(154, 154, 174, 0.4); }

/* ================= responsive ================= */

@media (max-width: 1150px) {
  .board { grid-template-columns: repeat(2, 1fr); }
  .tasks-layout { grid-template-columns: 1fr; }
  .notes-col { position: static; }
}
@media (max-width: 760px) {
  body { flex-direction: column; overflow: auto; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0 8px 0 0; }
  .brand-text { display: none; }
  .nav { flex-direction: row; flex: 1; }
  .nav-item span { display: none; }
  .nav-item kbd { display: none; }
  .nav-item::before { display: none; }
  .sidebar-stats, .sidebar-footer { display: none; }
  .view { padding: 22px 18px 40px; }
  .board { grid-template-columns: 1fr; }
  .focus-greeting { font-size: 25px; }
  .focus-hud { display: none; }
  .strategy-brief { grid-template-columns: 1fr; padding: 18px; }
  .strategy-brief h2 { font-size: 21px; }
  .evidence-panel, .goal-section { padding: 16px; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .strategy-goal-grid { grid-template-columns: 1fr; }
  .guardrail-row { grid-template-columns: 1fr; }
  .overview-head { align-items: flex-start; flex-direction: column; }
  .modal-meta { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

/* reduced motion: kill the ambience, keep the app */
@media (prefers-reduced-motion: reduce) {
  .bg-aurora, .pulse-dot, .hero-card::after, .xp-bar div::after, .complete-btn { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
/* Shared portal navigation */
.master-home-link{position:fixed;right:18px;bottom:18px;z-index:9999;padding:10px 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(9,9,12,.88);color:#fff1d4;text-decoration:none;font:700 12px/1 system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 10px 30px rgba(0,0,0,.3);backdrop-filter:blur(12px);transition:transform .2s ease,border-color .2s ease}
.master-home-link:hover{transform:translateY(-2px);border-color:rgba(244,184,96,.55)}
