:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #080b10;
  --panel: #10151d;
  --panel-2: #141b25;
  --line: #222b38;
  --muted: #8e9bad;
  --text: #f4f7fb;
  --accent: #78e7c0;
  --accent-2: #8c9eff;
  --warn: #f6c96f;
  --danger: #ff8f8f;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 70% -15%, #16253a 0, transparent 36%), var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { border-right: 1px solid var(--line); background: rgba(9,12,17,.92); padding: 24px 16px; display: flex; flex-direction: column; gap: 32px; position: sticky; top: 0; height: 100vh; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #091015; font-weight: 900; letter-spacing: -.03em; }
.brand-lockup div, .sidebar-foot div { display: grid; gap: 2px; }
.brand-lockup strong { font-size: 18px; }.brand-lockup small, .sidebar-foot small { color: var(--muted); }
nav { display: grid; gap: 6px; }
.nav-item { border: 0; background: transparent; color: #aab5c4; padding: 12px 13px; border-radius: 12px; text-align: left; display: flex; gap: 11px; align-items: center; }
.nav-item:hover, .nav-item.active { background: #151c26; color: white; }.nav-item.active { box-shadow: inset 2px 0 var(--accent); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 8px 0; display: flex; gap: 10px; align-items: center; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(246,201,111,.1); }
.main-stage { min-width: 0; padding: 0 34px 54px; }
.topbar { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
h1,h2,h3,p { margin-top: 0; }.topbar h1 { margin: 4px 0 0; font-size: 27px; }.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; font-size: 11px; margin-bottom: 7px; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.metric-chip { border: 1px solid var(--line); background: #0d1219; border-radius: 11px; padding: 9px 12px; color: var(--muted); font-size: 12px; }.metric-chip span { color: white; font-weight: 800; }
.primary-action { border: 0; background: var(--accent); color: #07100d; border-radius: 11px; padding: 11px 15px; font-weight: 800; }
.content-stack { display: grid; gap: 22px; max-width: 1450px; margin: 0 auto; }
.hero-panel { border: 1px solid #28384d; border-radius: 22px; padding: 34px; background: linear-gradient(135deg, #121a24 0%, #0d151f 55%, #10241f 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.hero-panel h2 { max-width: 900px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 14px; }.hero-panel p:not(.eyebrow) { color: #a7b4c4; max-width: 770px; line-height: 1.65; margin-bottom: 0; }
.hero-readiness { min-width: 190px; border: 1px solid #29453d; background: rgba(12,37,30,.65); border-radius: 18px; padding: 20px; display: grid; gap: 5px; }.hero-readiness span,.hero-readiness small { color: #93b8ac; }.hero-readiness strong { font-size: 29px; color: var(--accent); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 17px; padding: 19px; display: grid; gap: 7px; }.metric-card small,.metric-card span { color: var(--muted); }.metric-card strong { font-size: 29px; letter-spacing: -.03em; }.metric-card.signal-good strong { color: var(--accent); }.metric-card.signal-mid strong { color: var(--warn); }
.section-grid { display: grid; gap: 18px; }.two-up { grid-template-columns: repeat(2,minmax(0,1fr)); }.three-up { grid-template-columns: repeat(3,minmax(0,1fr)); }
.panel, .table-panel, .readiness-panel { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 22px; min-width: 0; }.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }.section-head h3 { margin-bottom: 0; }.text-action { border: 0; background: transparent; color: var(--accent); font-weight: 700; padding: 5px; }
.store-mini-list,.leader-list { display: grid; }.store-mini { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; text-align: left; padding: 13px 2px; align-items: center; }.store-mini:first-child,.leader-row:first-child { border-top: 0; }.store-mini span:nth-child(2),.leader-row div { display:grid; gap:3px; }.store-mini small,.leader-row small { color:var(--muted); }.palette-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 4px color-mix(in srgb, var(--swatch), transparent 82%); }.store-mini b { color: var(--accent); }
.leader-row { border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; }.leader-row > span { color: #66758a; font-weight: 800; }
.score { min-width: 40px; display: inline-grid; place-items: center; border-radius: 9px; padding: 5px 8px; font-weight: 900; }.score.signal-good { background: rgba(120,231,192,.12); color: var(--accent); }.score.signal-mid { background: rgba(246,201,111,.12); color: var(--warn); }.score.signal-watch { background: rgba(255,143,143,.1); color: #ffa5a5; }
.readiness-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.readiness-item { border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; gap: 10px; align-items: center; }.readiness-item > span { width: 9px; height: 9px; border-radius:50%; background:#546174; }.readiness-item.ready > span { background:var(--accent); }.readiness-item.next > span { background:var(--warn); }.readiness-item div { display:grid; gap:3px; }.readiness-item small { color:var(--muted); }
.section-intro { display:flex; justify-content:space-between; gap:20px; align-items:end; }.section-intro h2 { font-size:32px; margin-bottom:8px; }.section-intro p:not(.eyebrow) { color:var(--muted); max-width:760px; line-height:1.55; }
.brand-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.brand-card { position:relative; overflow:hidden; border:1px solid var(--line); background:linear-gradient(150deg,var(--panel-2),#0e131a); border-radius:19px; padding:21px; }.brand-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--brand-accent); }.brand-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; }.brand-monogram { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:color-mix(in srgb,var(--brand-accent),#10151d 75%); color:white; font-weight:900; }.status-badge { border:1px solid #314052; border-radius:999px; padding:5px 8px; color:#9fb0c4; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }.brand-card h3 { font-size:24px; margin-bottom:8px; }.brand-card > p:not(.eyebrow) { color:var(--muted); min-height:45px; line-height:1.45; }.brand-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:14px 0; margin:18px 0; }.brand-stats span { display:grid; gap:4px; }.brand-stats small { color:var(--muted); font-size:10px; }.brand-actions { display:flex; gap:9px; }.brand-actions button { flex:1; border:1px solid var(--line); background:#151c26; color:white; border-radius:10px; padding:10px; }.brand-actions button:first-child { border-color:color-mix(in srgb,var(--brand-accent),#253040 65%); }
.catalog-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:12px; }.search-box,.filter-box { display:grid; gap:6px; color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }.search-box input,.filter-box select { width:100%; border:1px solid var(--line); background:#0e141c; color:white; border-radius:12px; min-height:44px; padding:0 13px; outline:none; }.search-box input:focus,.filter-box select:focus { border-color:#4e718f; box-shadow:0 0 0 3px rgba(78,113,143,.16); }
.table-panel { padding:0; overflow:hidden; }.table-scroll { overflow:auto; }.table-panel table { border-collapse:collapse; width:100%; min-width:850px; }.table-panel th { text-align:left; color:#708096; text-transform:uppercase; font-size:10px; letter-spacing:.08em; padding:13px 16px; background:#0d1218; }.table-panel td { border-top:1px solid var(--line); padding:14px 16px; color:#ced6e1; }.table-panel td:first-child { color:white; }.table-panel td small { display:block; color:var(--muted); margin-top:4px; }.empty-cell { text-align:center; padding:40px !important; color:var(--muted) !important; }
.opportunity-grid { display:grid; gap:10px; }.opportunity-card { border:1px solid var(--line); background:var(--panel); border-radius:16px; padding:18px; display:grid; grid-template-columns:60px 1fr; gap:16px; }.rank-block { display:grid; align-content:start; gap:8px; text-align:center; }.rank-block small { color:var(--muted); }.opportunity-main h3 { margin-bottom:6px; }.opportunity-main > p:not(.eyebrow) { color:var(--muted); margin-bottom:14px; }.op-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,120px)); gap:10px; }.op-metrics span { display:grid; gap:3px; }.op-metrics small { color:var(--muted); font-size:10px; }.badge-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }.badge-row span { border:1px solid var(--line); background:#0c1118; border-radius:999px; padding:4px 8px; color:#93a2b5; font-size:10px; }
.op-panel { position:relative; min-height:190px; }.op-icon { color:#5c708a; font-size:12px; font-weight:900; }.op-panel h3 { margin-top:26px; font-size:23px; }.op-panel p { color:var(--muted); line-height:1.55; }.op-panel small { color:#718199; }
.toast { position:fixed; right:20px; bottom:20px; max-width:min(420px,calc(100vw - 40px)); border:1px solid #385247; background:#102019; color:#dffbef; padding:14px 16px; border-radius:12px; box-shadow:0 16px 50px rgba(0,0,0,.4); z-index:20; }
.boot-state { max-width:650px; margin:14vh auto; padding:40px; }.boot-state.error { border:1px solid #573636; background:#211414; border-radius:18px; }.boot-state p { color:var(--muted); line-height:1.6; }
code { color:var(--accent); }
@media (max-width:1100px) { .metric-grid { grid-template-columns:repeat(2,1fr); }.brand-grid { grid-template-columns:repeat(2,1fr); }.readiness-grid { grid-template-columns:repeat(2,1fr); }.three-up { grid-template-columns:1fr; } }
@media (max-width:820px) { .app-shell { grid-template-columns:1fr; }.sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid var(--line); padding:15px; gap:16px; }.sidebar nav { grid-template-columns:repeat(5,minmax(100px,1fr)); overflow:auto; }.sidebar-foot { display:none; }.main-stage { padding:0 16px 40px; }.topbar { align-items:flex-start; padding:20px 0; min-height:auto; flex-direction:column; }.top-actions { justify-content:flex-start; }.hero-panel { grid-template-columns:1fr; padding:25px; }.hero-readiness { min-width:0; }.two-up { grid-template-columns:1fr; }.brand-grid { grid-template-columns:1fr; }.catalog-toolbar { grid-template-columns:1fr; }.op-metrics { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px) { .metric-grid,.readiness-grid { grid-template-columns:1fr; }.top-actions .metric-chip { display:none; }.primary-action { width:100%; }.section-intro h2 { font-size:27px; }.opportunity-card { grid-template-columns:48px 1fr; padding:14px; }.brand-stats { gap:4px; }.brand-actions { flex-direction:column; } }
