/* Meridian — design system. Theme-aware (light default, dark via OS or
   the toggle). Palette derived from the validated data-viz reference. */

:root {
  --page:       #eef1f5;
  --surface:    #ffffff;
  --surface-2:  #f6f8fb;
  --surface-3:  #eef2f7;
  --ink:        #0f1720;
  --ink-2:      #4a5a6a;
  --muted:      #5c6875;
  --border:     rgba(15,23,32,0.10);
  --border-2:   rgba(15,23,32,0.16);
  --grid:       #e6ebf1;
  --axis:       #cdd6df;
  --accent:     #2563c9;
  --accent-ink: #ffffff;
  --accent-wash:#e8f0fc;

  --good:  #0ca30c;  --good-ink:#0a7d0a;  --good-wash:#e4f6e4;
  --warn:  #b7791f;  --warn-ink:#8a5b12;  --warn-wash:#fbf1dc;
  --serious:#c05a2e; --serious-wash:#fbe9df;
  --bad:   #d03b3b;  --bad-ink:#b02a2a;   --bad-wash:#fbe4e4;

  --series-1:#2a78d6; --series-2:#eb6834; --series-3:#1baf7a;
  --up:#0a7d0a; --down:#c0392b;

  --shadow: 0 1px 2px rgba(15,23,32,.06), 0 2px 8px rgba(15,23,32,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page:#0c0f14; --surface:#151a21; --surface-2:#1b212b; --surface-3:#212a36;
    --ink:#eef2f6; --ink-2:#aab6c3; --muted:#7c8b99;
    --border:rgba(255,255,255,0.10); --border-2:rgba(255,255,255,0.16);
    --grid:#222b36; --axis:#333e4b;
    --accent:#3d8bef; --accent-ink:#ffffff; --accent-wash:#16283f;
    --good:#25b825; --good-ink:#4cd24c; --good-wash:#123016;
    --warn:#fab219; --warn-ink:#f0c14b; --warn-wash:#33290f;
    --serious:#ec835a; --serious-wash:#33210f;
    --bad:#ef5757; --bad-ink:#ff7a7a; --bad-wash:#331617;
    --series-1:#3987e5; --series-2:#e0703b; --series-3:#22b184;
    --up:#4cd24c; --down:#ef6b6b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --page:#0c0f14; --surface:#151a21; --surface-2:#1b212b; --surface-3:#212a36;
  --ink:#eef2f6; --ink-2:#aab6c3; --muted:#7c8b99;
  --border:rgba(255,255,255,0.10); --border-2:rgba(255,255,255,0.16);
  --grid:#222b36; --axis:#333e4b;
  --accent:#3d8bef; --accent-ink:#ffffff; --accent-wash:#16283f;
  --good:#25b825; --good-ink:#4cd24c; --good-wash:#123016;
  --warn:#fab219; --warn-ink:#f0c14b; --warn-wash:#33290f;
  --serious:#ec835a; --serious-wash:#33210f;
  --bad:#ef5757; --bad-ink:#ff7a7a; --bad-wash:#331617;
  --series-1:#3987e5; --series-2:#e0703b; --series-3:#22b184;
  --up:#4cd24c; --down:#ef6b6b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { margin: 0 0 .4em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small { color: var(--muted); }

/* ---- Top bar / nav ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0 1.2rem; height: 56px;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.logo-mark { display: block; flex: none; }
.brand-name { display: inline-block; line-height: 1.05; font-size: 1.05rem; }
.brand small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: .2rem; margin-left: .8rem; flex: 1; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2); padding: .45rem .7rem; border-radius: var(--radius-sm);
  font-weight: 550; font-size: 13.5px;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a.active { background: var(--accent-wash); color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 15px;
  display: grid; place-items: center;
}
.icon-btn:hover { color: var(--ink); border-color: var(--border-2); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 860px){ .grid-2,.grid-3 { grid-template-columns: 1fr; } }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.card > h2, .card > h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.8rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card .hint { color: var(--muted); font-size: 12px; font-weight: 400; }

/* ---- Stat tiles ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 960px){ .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .stat-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1rem; box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.7rem; font-weight: 700; margin-top: .15rem; letter-spacing: -.02em; }
.stat .value.sm { font-size: 1.3rem; }
.stat .delta { font-size: 12.5px; font-weight: 600; margin-top: .1rem; }
.delta.up, .up-text { color: var(--up); }
.delta.down, .down-text { color: var(--down); }
.delta.flat { color: var(--muted); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: .55rem .65rem; text-align: right; white-space: nowrap; }
table.data th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; font-weight: 650; border-bottom: 1px solid var(--border); }
table.data td { border-bottom: 1px solid var(--border); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums; }
table.data tr.total td { font-weight: 700; border-top: 2px solid var(--border-2); border-bottom: none; }
.t-name { font-weight: 600; color: var(--ink); }
.t-sub { color: var(--muted); font-size: 12px; font-weight: 400; }

/* ---- Badges / status ---- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .12rem .5rem; border-radius: 100px; font-size: 12px; font-weight: 650;
  border: 1px solid transparent; white-space: nowrap;
}
.badge .ico { font-size: 11px; }
.badge.good { background: var(--good-wash); color: var(--good-ink); }
.badge.ok   { background: var(--accent-wash); color: var(--accent); }
.badge.warn { background: var(--warn-wash); color: var(--warn-ink); }
.badge.bad  { background: var(--bad-wash); color: var(--bad-ink); }
.badge.muted{ background: var(--surface-3); color: var(--muted); }
.badge.owned { background: var(--accent-wash); color: var(--accent); }
.badge.prospect { background: var(--good-wash); color: var(--good-ink); }
.badge.passed { background: var(--surface-3); color: var(--muted); }

.tier { font-size:11px; font-weight:650; color:var(--muted); }

/* ---- Score pill / gauge ---- */
.score-pill {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 14px; font-weight: 800; font-size: 1.35rem;
  border: 2px solid; line-height: 1;
}
.score-pill small { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.score-pill.good { color: var(--good-ink); border-color: var(--good); background: var(--good-wash); }
.score-pill.ok   { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
.score-pill.warn { color: var(--warn-ink); border-color: var(--warn); background: var(--warn-wash); }
.score-pill.bad  { color: var(--bad-ink); border-color: var(--bad); background: var(--bad-wash); }

/* factor bars */
.factors { display: flex; flex-direction: column; gap: .5rem; }
.factor { display: grid; grid-template-columns: 190px 1fr 46px; align-items: center; gap: .7rem; }
.factor .fl { font-size: 12.5px; color: var(--ink-2); }
.factor .fl b { color: var(--muted); font-weight: 500; font-size: 11px; }
.factor .track { background: var(--surface-3); border-radius: 100px; height: 9px; position: relative; overflow: hidden; }
.factor .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 100px; background: var(--accent); }
.factor .fill.good { background: var(--good); } .factor .fill.ok { background: var(--accent); }
.factor .fill.warn { background: var(--warn); } .factor .fill.bad { background: var(--bad); }
.factor .fv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 12.5px; }
.factor .note { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; margin: -2px 0 2px; }

/* ---- Charts ---- */
.chart { width: 100%; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis { stroke: var(--axis); stroke-width: 1; }
.chart-svg .ytick { fill: var(--muted); font-size: 10px; text-anchor: end; font-variant-numeric: tabular-nums; }
.chart-svg .xtick { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.chart-svg .ser { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .s1 { stroke: var(--series-1); } .chart-svg .s2 { stroke: var(--series-2); } .chart-svg .s3 { stroke: var(--series-3); }
.chart-svg .dot { stroke: var(--surface); stroke-width: 1.5; transition: r .1s; }
.chart-svg .dot:hover { r: 5; }
.chart-svg .d1 { fill: var(--series-1); } .chart-svg .d2 { fill: var(--series-2); } .chart-svg .d3 { fill: var(--series-3); }
.chart-svg .ser-label { font-size: 11px; font-weight: 700; text-anchor: end; font-variant-numeric: tabular-nums; }
.chart-svg .l1 { fill: var(--series-1); } .chart-svg .l2 { fill: var(--series-2); } .chart-svg .l3 { fill: var(--series-3); }
.chart-legend { display: flex; gap: 1rem; margin-bottom: .3rem; font-size: 12px; color: var(--ink-2); }
.chart-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.chart-legend .sw.s1 { background: var(--series-1); } .chart-legend .sw.s2 { background: var(--series-2); } .chart-legend .sw.s3 { background: var(--series-3); }
.chart-empty { color: var(--muted); padding: 2rem; text-align: center; }
.spark { width: 120px; height: 26px; vertical-align: middle; }
.spark polyline { fill: none; stroke-width: 1.6; }
.spark.up polyline { stroke: var(--up); } .spark.down polyline { stroke: var(--down); }

/* ---- Heatmap tables (sensitivity) ---- */
table.heat td.heatcell { font-weight: 650; font-variant-numeric: tabular-nums; }
table.heat .heatcell.good { background: var(--good-wash); color: var(--good-ink); }
table.heat .heatcell.ok   { background: var(--accent-wash); color: var(--accent); }
table.heat .heatcell.warn { background: var(--warn-wash); color: var(--warn-ink); }
table.heat .heatcell.bad  { background: var(--bad-wash); color: var(--bad-ink); }
table.heat .heatcell.muted{ background: var(--surface-3); color: var(--muted); }
table.heat .heatcell.base { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---- Buttons / forms ---- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--ink);
  padding: .45rem .8rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px;
  font-family: var(--font);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { padding: .3rem .6rem; font-size: 12px; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; }
label.fld { display: block; margin-bottom: .8rem; }
label.fld span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; }
input, select, textarea {
  width: 100%; padding: .5rem .6rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 13.5px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 1rem; }
@media (max-width: 700px){ .form-grid { grid-template-columns: 1fr; } }

/* ---- Flash ---- */
.flash { padding: .6rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 550; border: 1px solid; }
.flash.success { background: var(--good-wash); color: var(--good-ink); border-color: var(--good); }
.flash.error { background: var(--bad-wash); color: var(--bad-ink); border-color: var(--bad); }
.flash.info { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }

/* ---- Misc ---- */
.muted { color: var(--muted); }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.4rem; }
.metric-list .m { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.metric-list .m .k { color: var(--ink-2); }
.metric-list .m .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.pill { display:inline-block; padding:.1rem .5rem; border-radius:100px; background:var(--surface-3); color:var(--ink-2); font-size:11.5px; font-weight:600; }
.flags { display: flex; flex-direction: column; gap: .5rem; }
.flag { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.flag.hard { border-left: 3px solid var(--bad); }
.flag.soft { border-left: 3px solid var(--warn); }
.flag .fh { font-weight: 650; font-size: 13px; }
.flag .fn { color: var(--ink-2); font-size: 12.5px; }
.callout { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: 13.5px; }
.callout.ai { border-left-color: var(--series-3); }
.narrative p { margin-bottom: .6rem; }
.footer { color: var(--muted); font-size: 12px; text-align: center; padding: 1.5rem 0; }
.value-band { display:flex; align-items:baseline; gap:.6rem; flex-wrap:wrap; }
.value-band .big { font-size: 2.1rem; font-weight: 750; letter-spacing:-.02em; }
.hero-split { display:grid; grid-template-columns: 1.4fr 1fr; gap:1rem; }
@media (max-width: 860px){ .hero-split { grid-template-columns:1fr; } }
.list-links { display:flex; flex-direction:column; }
.list-links a { padding:.35rem 0; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; color:var(--ink); }
.list-links a:hover { color:var(--accent); text-decoration:none; }

/* login */
.login-wrap { max-width: 380px; margin: 8vh auto; }
.login-wrap .card { padding: 1.6rem; }

/* ---- Sample-data banner ---- */
.sample-banner { background: var(--warn-wash); color: var(--warn-ink); border-bottom: 1px solid var(--warn); font-size: 12.5px; text-align: center; padding: .4rem 1rem; }

/* ---- Kanban (pipeline) ---- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px){ .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .kanban { grid-template-columns: 1fr; } }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem; }
.kcol-head { font-weight: 700; font-size: 13px; margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: center; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .7rem; margin-bottom: .6rem; box-shadow: var(--shadow); }

/* ---- Map ---- */
.chart-svg .map-bg { fill: var(--surface-2); stroke: var(--border); }
.chart-svg .mappt { stroke: var(--surface); stroke-width: 1.5; opacity: .92; }
.chart-svg .mappt.owned, .chart-svg .mappt.storage { fill: var(--accent); }
.chart-svg .mappt.mhc { fill: var(--warn); }
.chart-svg .mappt.prospect { fill: var(--good); }
.chart-svg .mappt.passed { fill: var(--muted); }
.chart-svg .mappt.comp { fill: var(--series-2); opacity: .6; }
.chart-legend .mapdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.chart-legend .mapdot.owned, .chart-legend .mapdot.storage { background: var(--accent); }
.chart-legend .mapdot.mhc { background: var(--warn); }
.chart-legend .mapdot.prospect { background: var(--good); }
.chart-legend .mapdot.comp { background: var(--series-2); }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ---- Print ---- */
@media print {
  .topbar, .topbar-actions, .no-print, .btn, .nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5px; }
  .container { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .stat, .factor, table.data tr { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .chart-svg .grid { stroke: #ddd; }
}
@page { margin: 1.4cm; }

/* ---- Portal launcher tiles ---- */
.tile-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%,260px), 1fr));gap:1rem}
.tile{display:flex;align-items:center;gap:.9rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.2rem;box-shadow:var(--shadow);color:var(--ink);transition:border-color .12s,transform .12s}
.tile:hover{border-color:var(--accent);text-decoration:none;transform:translateY(-1px)}
.tile-icon{font-size:1.7rem;width:50px;height:50px;display:grid;place-items:center;background:var(--accent-wash);border-radius:13px;flex:none}
.tile-body{flex:1;display:flex;flex-direction:column;gap:.15rem}
.tile-name{font-weight:700;font-size:1.05rem}
.tile-desc{color:var(--muted);font-size:12.5px}
.tile-go{color:var(--muted);font-size:1.3rem}

/* ---- Accessibility: visible keyboard focus + reduced motion ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---- RESPONSIVE overrides: nav + metric grids on small screens ---- */
@media (max-width: 820px){
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
  .nav { order: 3; width: 100%; margin: .2rem 0 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .nav a { white-space: nowrap; }
}
@media (max-width: 600px){ .metric-list { grid-template-columns: 1fr !important; } }

/* left-aligned data table (admin lists, non-numeric) */
table.data.text th, table.data.text td { text-align: left; }

/* ---- disabled controls + skip-to-content (a11y) ---- */
input:disabled, select:disabled, textarea:disabled, button:disabled, .btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .55rem .9rem; border-radius: 0 0 8px 0; z-index: 200; font-weight: 600; }
.skip:focus { left: 0; }

/* factor-responsive: stack label over bar on narrow screens */
@media (max-width: 560px){ .factor{ grid-template-columns: 1fr 44px; } .factor .fl{ grid-column: 1 / -1; margin-bottom: 2px; } }
/* zebra striping for scannability on wide data tables */
table.data.zebra tbody tr:nth-child(even){ background: var(--surface-2); }

/* ---- admin filter bars + tool-access grants ---- */
.filter-bar{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:.6rem; }
.filter-bar .fld-inline{ display:flex; flex-direction:column; gap:.2rem; }
.filter-bar .fld-inline-label{ font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:600; }
.filter-bar input, .filter-bar select{ min-width:150px; }
.tool-grant.is-off{ opacity:.6; }
.tool-grant.is-off strong{ font-weight:600; }
/* account pill: keep the topbar tidy on small screens */
@media (max-width:640px){ .topbar-actions .pill{ max-width:44vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }

/* ---- demo "Start here" guide (launcher, demo_mode only) ---- */
.demo-guide{ border-left:3px solid var(--accent); }
.demo-guide-head{ display:flex; align-items:center; gap:.6rem; font-size:1.02rem; }
.demo-pill{ font-size:.68rem; font-weight:800; letter-spacing:.08em; color:#fff; background:var(--accent); padding:.15rem .5rem; border-radius:999px; }
.demo-steps{ margin:.2rem 0 0; padding-left:1.2rem; display:grid; gap:.45rem; }
.demo-steps li{ line-height:1.5; }

/* demo accounts list inside the Start-here guide */
.demo-accounts{ margin-top:.9rem; padding-top:.8rem; border-top:1px dashed var(--line); }
.demo-accounts-head{ font-size:.9rem; font-weight:600; margin-bottom:.4rem; }
.demo-accounts ul{ margin:0; padding-left:1.1rem; display:grid; gap:.3rem; font-size:.9rem; }
.demo-accounts code{ background:var(--surface-2); padding:.05rem .35rem; border-radius:5px; font-size:.85em; }

/* ---- "Beyond the brief" roadmap tiles (demo homepage, not built) ---- */
.roadmap{ margin-top:2.2rem; }
.roadmap-head{ display:flex; align-items:baseline; gap:.7rem; flex-wrap:wrap; margin-bottom:.9rem; }
.roadmap-head h2{ margin:0; }
.roadmap-head .muted{ max-width:60ch; line-height:1.5; font-size:.9rem; }
.tile.planned{ cursor:default; opacity:.72; border-style:dashed; align-items:flex-start; }
.tile.planned:hover{ border-color:var(--border); transform:none; box-shadow:var(--shadow); }
.plan-pill{ font-size:.6rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:.05rem .4rem; margin-left:.35rem; vertical-align:middle; }
.tile.planned .biz-tag{ font-size:.66rem; font-weight:600; color:var(--muted); background:var(--surface-2); border-radius:5px; padding:.12rem .45rem; white-space:nowrap; }
.roadmap-foot{ margin:.9rem 0 0; font-size:.88rem; }

/* ---- roadmap "idea" cards (replaces the cramped horizontal tiles) ---- */
.roadmap-head{ display:block; margin-bottom:1rem; }
.roadmap-head h2{ margin:0 0 .3rem; }
.roadmap-head p{ margin:0; max-width:72ch; line-height:1.55; font-size:.92rem; }
.idea-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); gap:1rem; }
.idea{ display:flex; flex-direction:column; gap:.55rem; background:var(--surface); border:1px dashed var(--border); border-radius:var(--radius); padding:1.05rem 1.15rem; box-shadow:var(--shadow); }
.idea-top{ display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.idea-icon{ font-size:1.6rem; line-height:1; }
.idea-tag{ font-size:.66rem; font-weight:600; color:var(--muted); background:var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:.15rem .55rem; white-space:nowrap; }
.idea-name{ margin:0; font-size:1rem; line-height:1.3; font-weight:650; display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.idea-desc{ margin:0; color:var(--muted); font-size:.88rem; line-height:1.5; }

/* login-screen demo sign-in hint (demo mode) */
.demo-signins{ margin-top:1rem; font-size:.82rem; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:.7rem .9rem; }
.demo-signins-head{ font-weight:600; color:var(--ink); margin-bottom:.35rem; }
.demo-signins ul{ margin:0; padding-left:1.1rem; display:grid; gap:.2rem; }
.demo-signins code{ background:var(--surface-2); padding:.03rem .3rem; border-radius:4px; }
