/* SPYN Team Navigator — brand theme matched to the SPYN prototype (slate-900 / teal / amber).
   BrainID: Claude Opus 5.5 | Date: 2026-09-28 | Action: Brand retheme + guided-flow components */
:root {
  color-scheme: dark;
  /* surfaces (Tailwind slate scale, as in the prototype's spyn-slate-*) */
  --bg: #0f172a;            /* slate-900 */
  --surface: #1e293b;       /* slate-800 */
  --surface-2: #334155;     /* slate-700: inputs, secondary buttons */
  --surface-3: #475569;     /* slate-600: chips */
  --border: #334155;
  --border-strong: #475569;
  /* text */
  --text: #f1f5f9;          /* slate-100 */
  --text-2: #cbd5e1;        /* slate-300 */
  --muted: #94a3b8;         /* slate-400 */
  /* brand */
  --accent: #0d9488;        /* teal-600 — primary actions */
  --accent-hover: #0f766e;  /* teal-700 */
  --accent-text: #2dd4bf;   /* teal-400 — links, highlighted names */
  --accent-soft: rgba(20, 184, 166, .14);
  --amber: #fbbf24;         /* amber-400 — section accents */
  --logo: #3b82f6;          /* blue-500 — mark */
  --logo-2: #22c55e;        /* green-500 — second mark */
  --series-1: #0d9488;      /* funnel bars: validated vs slate-800 */
  --heading: #fff;          /* headings and strong text */
  --on-accent: #fff;        /* text on accent fills */
  --accent-line: #14b8a6;   /* focus rings, selected borders */
  --accent-ring: rgba(20, 184, 166, .35);
  --accent-glow: rgba(13, 148, 136, .16);
  --topbar: rgba(30, 41, 59, .85);
  --surface-soft: rgba(30, 41, 59, .5);
  --inset: rgba(15, 23, 42, .45);
  --notice-bg: rgba(51, 65, 85, .45);
  --shadow: rgba(0, 0, 0, .25);
  /* status pills (tinted fill + light text) */
  --ok: #86efac; --ok-soft: rgba(34, 197, 94, .18);
  --warn: #fcd34d; --warn-soft: rgba(245, 158, 11, .16);
  --danger: #fca5a5; --danger-soft: rgba(239, 68, 68, .18);
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; color: var(--heading); }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; } h2 { font-size: 1.25rem; font-weight: 700; } h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
code { background: var(--surface-2); padding: .05rem .3rem; border-radius: 4px; font-size: .88em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .78rem; }
.amber { color: var(--amber); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* top bar */
.topbar { background: var(--topbar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; color: var(--heading); text-decoration: none; display: flex; gap: .55rem; align-items: center; font-size: 1.1rem; }
.brand svg { width: 28px; height: 28px; color: var(--logo); flex: none; }
.brand span { font-weight: 500; color: var(--muted); font-size: .82rem; }
.nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a, .linkbtn { color: var(--text-2); text-decoration: none; padding: .35rem .7rem; border-radius: 6px; background: none; border: 0; font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; }
.nav a:hover, .linkbtn:hover { background: var(--surface-2); color: var(--heading); }
.nav a.on { background: var(--accent); color: var(--on-accent); }
.envbadge { font-size: .7rem; padding: .12rem .5rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; letter-spacing: .03em; }

main { padding: 1.75rem 0 4rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 10px 15px -3px var(--shadow); }
.card.tight { padding: .9rem 1rem; }
.card.soft { background: var(--surface-soft); box-shadow: none; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.eyebrow { color: var(--amber); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--text); }
label .req { color: var(--amber); }
.help { font-weight: 400; color: var(--muted); font-size: .82rem; margin: -.1rem 0 .35rem; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface-2); color: var(--heading); font: inherit; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 88px; resize: vertical; }
textarea.tall { min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-ring); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
input[disabled] { opacity: .6; }
.field { margin-bottom: 1.1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-bottom: .7rem; }
.check input { margin-top: .3rem; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pills label { font-weight: 500; display: inline-flex; gap: .45rem; align-items: center; border: 1px solid var(--border-strong); background: var(--surface-2); padding: .38rem .75rem; border-radius: 999px; cursor: pointer; margin: 0; font-size: .88rem; }
.pills label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--heading); }
.pills input { margin: 0; accent-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.05rem; border-radius: 7px; border: 0;
  background: var(--surface-2); color: var(--heading); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--heading); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(239, 68, 68, .5); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: .35rem .7rem; font-size: .82rem; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* notices + pills */
.notice { border-radius: 8px; padding: .75rem .95rem; font-size: .9rem; border: 1px solid var(--border); background: var(--notice-bg); color: var(--text-2); }
.notice strong { color: var(--heading); }
.notice.warn { background: var(--warn-soft); border-color: rgba(245, 158, 11, .35); }
.notice.warn strong { color: var(--warn); }
.notice.info { background: var(--accent-soft); border-color: var(--accent-ring); }
.notice.ok { background: var(--ok-soft); border-color: rgba(34, 197, 94, .35); }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.chip { display: inline-block; background: var(--surface-3); color: var(--text-2); font-size: .72rem; padding: .12rem .45rem; border-radius: 5px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100% - 32px));
  background: #0b1220; border: 1px solid var(--accent); color: #fff; padding: .75rem 1rem; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,.45); font-size: .9rem; }
.toast.error { border-color: #ef4444; background: #2a1215; }

/* landing */
.hero { padding: 3.5rem 1.5rem 3rem; text-align: center; border-radius: 14px; margin-bottom: 2rem;
  background: radial-gradient(ellipse at top, var(--accent-glow), transparent 65%), var(--surface-soft); border: 1px solid var(--border); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 20ch; margin: 0 auto .8rem; }
.hero p.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; margin: 0 auto 1.5rem; }
.hero .row { justify-content: center; }
.section-title { text-align: center; margin: 2.5rem 0 1.25rem; }
.section-title h2 { font-size: 1.6rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; color: var(--text-2); }
.steps li strong { color: var(--heading); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.notlist { padding-left: 1.1rem; margin: 0; color: var(--text-2); }
.notlist li { margin-bottom: .45rem; }

/* workspace: journey stepper (prototype roadmap style) */
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0 1rem; }
@media (max-width: 860px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jstep { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: .6rem .7rem .7rem; color: var(--text-2); min-width: 0; }
.jstep:hover { border-color: var(--border-strong); }
.jstep .jn { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; }
.jstep .jt { font-weight: 700; color: var(--heading); font-size: .86rem; margin: .15rem 0 .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jstep .jbar { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.jstep .jbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.jstep.on { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-glow), var(--surface)); }
.jstep.done .jn::after { content: "✓"; color: var(--accent-text); font-weight: 700; }
.nextbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft);
  border: 1px solid var(--accent-ring); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.25rem; }
.nextbar .nl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.nextbar .nt { color: var(--heading); font-weight: 600; }
.nextbar .nd { color: var(--text-2); font-size: .85rem; }

.progressbar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progressbar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .2s; }
.stepper { display: flex; gap: .35rem; flex-wrap: wrap; margin: .8rem 0 1.1rem; }
.stepper button { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: .28rem .75rem; font: inherit; font-size: .8rem; cursor: pointer; }
.stepper button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.stepper button.done::after { content: " ✓"; color: var(--accent-text); }
.stepper button.on.done::after { color: var(--on-accent); }

/* question guidance */
.guide { margin: -.1rem 0 .45rem; }
.guide summary { cursor: pointer; font-size: .8rem; color: var(--accent-text); list-style: none; display: inline-flex; gap: .35rem; align-items: center; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::before { content: "?"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor; font-size: .68rem; font-weight: 700; }
.guide[open] summary { margin-bottom: .4rem; }
.guide .gbody { background: var(--inset); border: 1px solid var(--border); border-radius: 8px; padding: .65rem .8rem; font-size: .84rem; color: var(--text-2); }
.guide .gbody ul { margin: .2rem 0 .4rem; padding-left: 1.1rem; }
.guide .gex { border-left: 2px solid var(--amber); padding-left: .6rem; margin-top: .4rem; font-style: italic; }
.guide .gex b { font-style: normal; color: var(--amber); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; display: block; }

/* documents */
.docgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .docgrid { grid-template-columns: 1fr; } }
.docbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--border); }
.docsec { padding: .95rem 0; border-top: 1px solid var(--border); }
.docsec:first-child { border-top: 0; padding-top: 0; }
.docsec h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: .45rem; }
.docsec ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); }
.docsec p { color: var(--text-2); }
.docsec li { margin-bottom: .25rem; }
.gaprow { border: 1px solid var(--border); background: var(--inset); border-radius: 8px; padding: .75rem .85rem; margin-bottom: .6rem; }
.gaprow strong { color: var(--accent-text); }
.meta dl { margin: 0; font-size: .85rem; }
.meta dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; margin-top: .75rem; }
.meta dd { margin: .15rem 0 0; color: var(--text-2); }
.meta ul { margin: .2rem 0 0; padding-left: 1rem; }
.versions { display: flex; flex-direction: column; gap: 4px; margin-top: .3rem; }
.verbtn { text-align: left; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); border-radius: 6px; padding: .32rem .55rem; font: inherit; font-size: .8rem; cursor: pointer; }
.verbtn:hover { color: var(--heading); }
.verbtn.on { border-color: var(--accent-line); color: var(--accent-text); font-weight: 600; }
.checkitem { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: .75rem; padding: .8rem 0; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .checkitem { grid-template-columns: 1fr; } }
.checkitem.hl { border-left: 3px solid var(--amber); padding-left: .75rem; }
.vcard { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.vcard:hover { border-color: var(--accent-line); }
.vcard h3 { color: var(--accent-text); }
.dots { display: flex; gap: 4px; }
.dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.dots i.on { background: var(--accent); }
.linkbox { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; word-break: break-all; background: var(--bg); border: 1px solid var(--border); padding: .5rem .6rem; border-radius: 6px; }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
td select { min-width: 140px; }
td strong { color: var(--heading); }

/* stat tiles (prototype dashboard style) + funnel */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; display: flex; gap: .8rem; align-items: center; box-shadow: 0 10px 15px -3px var(--shadow); }
.tile .ti { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: .9rem; }
.tile .tl { font-size: .78rem; color: var(--muted); }
.tile .tv { font-size: 1.35rem; font-weight: 800; color: var(--heading); line-height: 1.2; }
.tile .tt { font-size: .72rem; color: var(--muted); }
.funnel { position: relative; }
.frow { display: grid; grid-template-columns: minmax(150px, 290px) minmax(0, 1fr) 56px; gap: .75rem; align-items: center; padding: 6px 0; cursor: default; }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr 48px; } .frow .ftrack { grid-column: 1 / -1; order: 3; } }
.frow .fl { font-size: .86rem; color: var(--text-2); }
.frow .fv { font-size: .9rem; font-weight: 700; text-align: right; color: var(--heading); }
.ftrack { height: 14px; position: relative; }
.fbar { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.frow:hover .fbar, .frow:focus-within .fbar { filter: brightness(1.15); }
.ftip { position: absolute; z-index: 5; background: #0b1220; border: 1px solid var(--border-strong); color: #fff; font-size: .8rem; padding: .35rem .55rem; border-radius: 6px; pointer-events: none; white-space: nowrap; top: -32px; left: 0; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin: 1rem 0 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem .85rem; text-decoration: none; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a.on { color: var(--accent-text); border-bottom-color: var(--accent-line); }

footer.foot { border-top: 1px solid var(--border); padding: 1.25rem 0 2rem; color: var(--muted); font-size: .8rem; }

/* component 2: role choice + Quick Start + first map */
.onb { max-width: 680px; margin: 1.5rem auto 0; }
.rolecards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.2rem; }
@media (max-width: 560px) { .rolecards { grid-template-columns: 1fr; } }
.rolecard { text-align: left; display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.1rem; min-height: 132px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rolecard:hover { border-color: var(--accent-line); }
.rolecard.on { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-ring); background: linear-gradient(180deg, var(--accent-glow), var(--surface)); }
.rolecard .rc-t { font-weight: 800; font-size: 1.05rem; color: var(--heading); }
.rolecard .rc-d { color: var(--text-2); font-size: .88rem; }
.qdots { display: flex; gap: 5px; }
.qdots i { width: 26px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.qdots i.on { background: var(--accent); }
.qcard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qcard legend { padding: 0; margin-bottom: .8rem; }
.qcard legend h2 { font-size: 1.3rem; }
.qcard input[type=text] { font-size: 1rem; padding: .75rem .85rem; }
.qnav { margin-top: 1.4rem; }
@media (max-width: 560px) { .qnav { position: sticky; bottom: 0; background: var(--surface); padding: .6rem 0; } }
.mapgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .mapgrid { grid-template-columns: 1fr; } }
.mapbig { font-size: 1.2rem; font-weight: 800; color: var(--accent-text); margin: 0 0 .4rem; }
.teammap { list-style: none; padding: 0; margin: 0; }
.teammap li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid var(--border); color: var(--text-2); font-size: .88rem; }
.teammap li:first-child { border-top: 0; }
.tm { flex: none; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .12rem .45rem; border-radius: 5px; margin-top: .1rem; }
.tm.ok { background: var(--ok-soft); color: var(--ok); }
.tm.gap { background: var(--warn-soft); color: var(--warn); }
.tm.later { background: var(--surface-3); color: var(--text-2); }

/* UX review fixes (component 2) */
.pills label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.rolecard[aria-disabled="true"] { cursor: progress; }
.qcard legend h2:focus { outline: none; }
@media (max-width: 560px) {
  .brand span, .envbadge { display: none; }   /* keep the sticky top bar compact */
  .topbar .wrap { gap: .4rem; min-height: 48px; }
  .nav a, .linkbtn { padding: .3rem .45rem; font-size: .82rem; }
  .pills label { min-height: 44px; }           /* touch targets */
  .rolecard { min-height: 108px; }
}

/* component 3: map */
.mapcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .mapcols { grid-template-columns: 1fr; } }
.colh { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: .6rem; }
.colh.ok { color: var(--ok); } .colh.gap { color: var(--warn); }
.nextcard { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-color: var(--accent-ring); background: linear-gradient(180deg, var(--accent-glow), var(--surface)); }
.nextcard .nl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.used summary { cursor: pointer; color: var(--text-2); }
.used ul { padding-left: 1rem; margin: .2rem 0 0; color: var(--text-2); }

/* component 4: coach drawer (desktop) / bottom sheet (mobile) */
.coachfab { position: fixed; right: 18px; bottom: 18px; z-index: 30; height: 56px; padding: 0 1.2rem; border-radius: 28px;
  border: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,.45); cursor: pointer; }
.coachfab:hover { background: var(--accent-hover); }
.coachwrap { position: fixed; inset: 0; z-index: 40; }
.coachback { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); }
.coach { position: absolute; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; background: var(--surface);
  border-left: 1px solid var(--border-strong); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.4); }
@media (max-width: 560px) { .coach { top: 8vh; width: 100%; border-left: 0; border-top: 1px solid var(--border-strong); border-radius: 16px 16px 0 0; } }
.coachhead { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.coachhead h2 { margin: 0; font-size: 1.05rem; color: var(--accent-text); }
.coachhead h2:focus { outline: none; }
.coachbody { padding: .9rem 1rem 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.coachstep .why { color: var(--text-2); margin: .3rem 0 .6rem; }
.coachstep textarea { min-height: 90px; }
.coachqa { display: flex; flex-wrap: wrap; gap: .35rem; }
.coachqa .btn { font-weight: 600; }
.coachmsgs { display: flex; flex-direction: column; gap: .4rem; }
.coachchat { position: sticky; bottom: -1rem; gap: .4rem; margin: 0 -1rem -1rem; padding: .6rem 1rem 1rem; background: var(--surface); border-top: 1px solid var(--border); z-index: 1; }
.coachchat input { flex: 1; }
.coachfold { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.coachfold .linkish { color: var(--accent); }
.cmsg.thinking { display: inline-flex; align-items: center; gap: .4rem; font-style: italic; }
.cmsg.thinking .dots { display: inline-flex; gap: 3px; }
.cmsg.thinking .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .3; animation: coachdot 1.2s infinite; }
.cmsg.thinking .dots i:nth-child(2) { animation-delay: .2s; } .cmsg.thinking .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes coachdot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cmsg.thinking .dots i { animation: none; opacity: .7; } }
.cmsg { font-size: .85rem; padding: .5rem .65rem; border-radius: 8px; white-space: pre-wrap; max-width: 92%; }
/* Bubbles use from-* classes: a plain .coach class would inherit the panel's absolute positioning (the 2026-10-04
   "replies stuck at the top" bug). */
.cmsg.from-user { align-self: flex-end; background: var(--accent-soft); color: var(--heading); }
.cmsg.from-coach { align-self: flex-start; background: var(--surface-2); color: var(--text-2); }
/* "Complete my profile with the agent" (interview mode in the coach panel) */
.ivbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ivwrap { display: flex; flex-direction: column; gap: .6rem; }
.ivwrap .cmsg, .cmsg.ivrich { white-space: normal; }
.cmsg .ivq { color: var(--heading); font-weight: 600; margin: .15rem 0 .3rem; }
.cmsg .ivwhy { margin-top: .25rem; }
.cmsg .ivsum { margin: .35rem 0 0; padding-left: 1.1rem; }
.cmsg.ivconfirm { max-width: 100%; width: 100%; border: 1px solid var(--accent-line); }
.cmsg.ivconfirm textarea { width: 100%; margin-top: .3rem; }
.ivbtns { gap: .35rem; margin-top: .5rem; flex-wrap: wrap; }
.ivchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ivchip { font: inherit; font-size: .85rem; font-weight: 500; padding: .38rem .75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); min-height: 36px; }
.ivchip:hover { border-color: var(--accent-line); }
.ivchip[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--heading); }
.ivcv textarea { width: 100%; }
@media (max-width: 560px) { .ivchip { min-height: 44px; } }
.suggest { margin-top: .4rem; padding: .5rem; border-radius: 6px; background: var(--bg); color: var(--heading); white-space: pre-wrap; }

/* component 6: governance */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: .75rem; }
@media (max-width: 760px) { .kpis { display: flex; overflow-x: auto; } .kpis .tile { min-width: 170px; } }
.govlist { list-style: none; padding: 0; margin: 0; }
.govlist li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--border); }
.govlist li:first-child { border-top: 0; }
.gstat { font-size: .72rem; font-weight: 700; }
.gstat.you, .gstat.partner { color: var(--ok); } .gstat.open { color: var(--warn); } .gstat.later { color: var(--muted); }
.gname { color: var(--text-2); font-size: .88rem; }
.pipestage { margin-top: .6rem; }
.pipeentry { padding: .4rem 0; border-top: 1px solid var(--border); }
.timeline { margin: .9rem 0 1.1rem; }
.tlbar { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; }
.tlfill { height: 100%; background: var(--accent); border-radius: 999px; }
.tltoday { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--amber); }
.tltoday span { position: absolute; top: 18px; left: -14px; font-size: .68rem; color: var(--amber); }
.objgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; margin-top: .6rem; }
.objcard { border: 1px solid var(--border); border-radius: 9px; padding: .6rem .7rem; background: var(--inset); }
.objcard.doing { border-color: var(--accent-line); } .objcard.done { opacity: .75; }
.actlist { list-style: none; padding: 0; margin: 0; color: var(--text-2); }
.actlist li { padding: .25rem 0; }
/* component 5: deepen cards */
.deepgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.deepcard { text-align: left; display: flex; flex-direction: column; gap: .3rem; padding: .75rem .8rem; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); font: inherit; cursor: pointer; }
.deepcard:hover { border-color: var(--accent-line); } .deepcard.done { opacity: .7; }
.deepcard .dq { font-weight: 700; font-size: .9rem; color: var(--heading); }
.okt { color: var(--ok); }
/* component 7: explore cards */
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .xgrid { grid-template-columns: 1fr; } }
.xcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.aligns { list-style: none; padding: 0; margin: .2rem 0; font-size: .84rem; }
.aligns li { display: flex; gap: .45rem; padding: .15rem 0; color: var(--text-2); }
.aicon { width: 1.1rem; text-align: center; font-weight: 800; }
.aligns li.aligned .aicon { color: var(--ok); } .aligns li.partly .aicon { color: var(--warn); }
.aligns li.differs .aicon { color: var(--danger); } .aligns li.not_stated .aicon { color: var(--muted); }

/* component 8: investor readiness */
.irlist { list-style: none; padding: 0; margin: .8rem 0; }
.irlist li { padding: .5rem 0; border-top: 1px solid var(--border); }
/* component 9: trust center */
.trustgrp summary { cursor: pointer; list-style: none; }
.trustgrp summary::-webkit-details-marker { display: none; }
.trustgrp summary h2 { display: inline; font-size: 1.05rem; }
.trustgrp summary::after { content: " ▸"; color: var(--muted); }
.trustgrp[open] summary::after { content: " ▾"; }
.trustgrp[open] summary { margin-bottom: .8rem; }
.trustrow { display: flex; flex-direction: column; gap: .45rem; padding: .6rem 0; border-top: 1px solid var(--border); }
.trustrow.row { flex-direction: row; }
.switch { min-width: 64px; height: 30px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.switch[disabled] { opacity: .45; cursor: not-allowed; }
/* D11: brief as cards */
.briefcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.briefcards .docsec { border: 1px solid var(--border); border-radius: 10px; padding: .8rem .9rem; background: var(--inset); }
.briefcards .docsec:first-child { padding-top: .8rem; }
.briefcards > .row { grid-column: 1 / -1; }

/* review fixes */
main { padding-bottom: 6.5rem; }                       /* coach button never covers the last CTA */
.preview { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin: .5rem 0 0; font-size: .82rem; }
.preview dt { color: var(--muted); } .preview dd { margin: 0; color: var(--text-2); }
.suggest.before { color: var(--text-2); background: transparent; border: 1px dashed var(--border-strong); }
.holder { width: 90px !important; padding: .2rem .4rem !important; margin-left: .4rem; font-size: .8rem !important; }

input[type=month], input[type=date], select { color-scheme: dark; }  /* native pickers match the dark theme */

/* Walkthrough feedback 2026-09-30: who-it's-for cards, third role card, browse-before-sign-up examples */
.whofor { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.whofor h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--heading); }
.whofor p { margin: 0 0 .6rem; color: var(--text-2); }
/* landing doors: whole card is the link */
.whocard { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.whocard:hover { border-color: var(--accent); box-shadow: 0 6px 18px var(--accent-soft); transform: translateY(-2px); }
.whocard:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.whocard .go { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--accent-text); }
.honest { margin: -1rem 0 2rem; }
.hero .tagline { font-weight: 600; color: var(--text-2); margin-top: -.25rem; }
.intentnote { background: var(--accent-soft); border-radius: 8px; padding: .5rem .7rem; }
.intentnote .linkbtn { padding: 0 .3rem; text-decoration: underline; }
.rolecard.suggested { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rolecards .rolecard:nth-child(3) { grid-column: 1 / -1; }
.exfacts { list-style: none; padding: 0; margin: .5rem 0 0; color: var(--text-2); }
.exfacts li { margin-bottom: .25rem; }
.exfacts strong { color: var(--heading); font-weight: 600; }

/* Mobile + accessibility pass (2026-10-01, 375px headless audit) */
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; flex: none; }  /* 13px native boxes were hard to tap */
.tm, .jstep .jn, .nextbar .nl, .nextcard .nl, .meta dt { font-size: .75rem; }              /* nothing under 12px */
@media (max-width: 560px) { .tabs { flex-wrap: wrap; } }                                    /* admin tabs no longer hide off-screen */
.seeline { margin: .1rem 0 .4rem; font-size: .8rem; color: var(--muted); }           /* "Who sees this" (finding F) */
.reveal summary { cursor: pointer; font-weight: 600; }
.reveal ol { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--text-2); }
.reveal li { margin-bottom: .35rem; }
.followup { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }  /* fast path (finding C) */
.beginner .warnline { margin: .45rem 0 0; color: var(--warn); }   /* beginner offer (2026-10-01) */
.beginner .echo { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
.beginner .echo .muted { display: block; margin-top: .25rem; font-size: .8rem; }
.beginnerintro { margin: 0 0 .6rem; color: var(--text-2); }
.xfilters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }   /* Explore filters (2026-10-02) */
.xfilters input[type=search] { flex: 1 1 220px; }
.xfilters select { flex: 1 1 180px; }
.msglist { display: flex; flex-direction: column; gap: .5rem; max-height: 360px; overflow-y: auto; }   /* room messages */
.msg { background: var(--surface-3); border-radius: 10px; padding: .45rem .7rem; max-width: 85%; }
.msg.mine { align-self: flex-end; background: var(--accent-soft); }
.msg p { margin: .15rem 0 0; white-space: pre-wrap; }
.pricegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }   /* pricing */
.pricecard h3 { margin: 0 0 .3rem; }
.pricecard .price strong { font-size: 1.5rem; }
.pricecard ul { padding-left: 1.1rem; margin: .6rem 0; color: var(--text-2); }
.agreements { margin-top: 1.4rem; }   /* agreement checklists (2026-10-02) */
.agreement { margin-top: .5rem; }
.agreement ul { margin: .3rem 0 .6rem; padding-left: 1.1rem; }
.pricecard .badge { white-space: normal; line-height: 1.35; }
.pricecard .price strong.wordy { font-size: 1.1rem; }

/* ---------- Reveal steps (both looks) ---------- */
.revealrow { display: flex; align-items: center; gap: .8rem; margin: .7rem 0; }
.revealsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; flex: 1; }
.revealsteps li { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: .2rem .6rem .2rem .25rem; }
.revealsteps .n { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--surface-2); font-weight: 700; font-size: .72rem; }
.revealsteps li.done { color: var(--text-2); border-color: var(--accent); }
.revealsteps li.done .n { background: var(--accent); color: var(--heading); }
.revealsteps li.now { color: var(--text); border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.revealsteps li.now .n { background: var(--accent-text); color: #06201d; }
.gearbox { display: none; }

/* ---------- Foundry look (Hextech-inspired, 2026-10-02). Visual only: same words, same features. ---------- */
/* SPYN look (default, 2026-10-02): blue / green / white from the logo. Small text uses blue-700 (#1d4ed8, 6.7:1)
   and green-700 (#15803d, 5.0:1) on white; lighter green (#22c55e) is used only for fills, borders and marks. */
html[data-look="spyn"] {
  color-scheme: light;
  --bg: #f5f8fd; --surface: #ffffff; --surface-2: #eaf1fb; --surface-3: #d9e6f7;
  --border: #d6e0ee; --border-strong: #b4c4dc;
  --text: #0f1e4a; --text-2: #334366; --muted: #55668a;
  --heading: #0b1b4d; --on-accent: #ffffff;
  --accent: #1d4ed8; --accent-hover: #1e40af; --accent-text: #1d4ed8; --accent-soft: rgba(29, 78, 216, .09);
  --accent-line: #2563eb; --accent-ring: rgba(37, 99, 235, .28); --accent-glow: rgba(34, 197, 94, .10);
  --amber: #15803d; --logo: #1d4ed8; --logo-2: #22c55e; --series-1: #16a34a;
  --topbar: rgba(255, 255, 255, .92); --surface-soft: #ffffff; --inset: #f3f7fd; --notice-bg: #f1f5fb;
  --shadow: rgba(15, 30, 74, .08);
  --ok: #166534; --ok-soft: rgba(34, 197, 94, .14);
  --warn: #92400e; --warn-soft: rgba(245, 158, 11, .14);
  --danger: #b91c1c; --danger-soft: rgba(239, 68, 68, .10);
}
html[data-look="spyn"] body { background: var(--bg); }
html[data-look="spyn"] .card.soft { box-shadow: 0 1px 2px var(--shadow); }
html[data-look="spyn"] .hero h1 { background: linear-gradient(90deg, #1d4ed8, #15803d); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
html[data-look="spyn"] .eyebrow { color: #15803d; }
html[data-look="spyn"] .whocard:hover { border-color: #22c55e; box-shadow: 0 8px 22px rgba(34, 197, 94, .16); }
html[data-look="foundry"] {
  --bg: #0b0907; --surface: #17110d; --surface-2: #241b14; --surface-3: #33281d;
  --border: #5a421b; --border-strong: #9e7834;
  --text: #f0e6d2; --text-2: #dccdae; --muted: #ad9c7e;
  --accent: #0ac8b9; --accent-hover: #0397ab; --accent-text: #3fe0d2; --accent-soft: rgba(10, 200, 185, .14);
  --amber: #c8aa6e; --logo: #c8aa6e; --logo-2: #0ac8b9; --series-1: #0ac8b9;
  --radius: 4px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
html[data-look="foundry"] body { background: radial-gradient(ellipse at 50% -10%, #241a12 0%, #0b0907 55%) fixed; }
html[data-look="foundry"] h1, html[data-look="foundry"] h2, html[data-look="foundry"] h3,
html[data-look="foundry"] .brand, html[data-look="foundry"] .eyebrow, html[data-look="foundry"] .nl {
  font-family: var(--serif); letter-spacing: .03em; }
html[data-look="foundry"] h1 { font-weight: 700; color: #f0e6d2;
  background: linear-gradient(180deg, #f0e6d2 0%, #c8aa6e 55%, #9e7834 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
html[data-look="foundry"] h2, html[data-look="foundry"] h3 { color: #e7d6b2; }
html[data-look="foundry"] .topbar { background: linear-gradient(180deg, #17110d, #0f0b08); border-bottom: 1px solid #5a421b;
  box-shadow: 0 1px 0 rgba(200, 170, 110, .25); }
/* riveted brass plates */
html[data-look="foundry"] .card, html[data-look="foundry"] .xcard {
  border: 1px solid #5a421b;
  background:
    radial-gradient(circle, #e0c78f 0 1.6px, #6b5024 2.2px, transparent 2.8px) 7px 7px / 6px 6px no-repeat,
    radial-gradient(circle, #e0c78f 0 1.6px, #6b5024 2.2px, transparent 2.8px) calc(100% - 7px) 7px / 6px 6px no-repeat,
    radial-gradient(circle, #e0c78f 0 1.6px, #6b5024 2.2px, transparent 2.8px) 7px calc(100% - 7px) / 6px 6px no-repeat,
    radial-gradient(circle, #e0c78f 0 1.6px, #6b5024 2.2px, transparent 2.8px) calc(100% - 7px) calc(100% - 7px) / 6px 6px no-repeat,
    linear-gradient(180deg, #1b140f, #130e0b);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 110, .12), 0 12px 24px rgba(0, 0, 0, .5);
  transition: box-shadow .2s, border-color .2s; }
html[data-look="foundry"] .xcard:hover, html[data-look="foundry"] .rolecard:hover, html[data-look="foundry"] .nextcard:hover {
  border-color: #9e7834; box-shadow: inset 0 0 0 1px rgba(10, 200, 185, .35), 0 0 14px rgba(10, 200, 185, .18), 0 12px 24px rgba(0, 0, 0, .5); }
html[data-look="foundry"] .btn { border-radius: 3px; }
html[data-look="foundry"] .btn.primary { color: #06201d; font-weight: 700; box-shadow: 0 0 10px rgba(10, 200, 185, .35); }
html[data-look="foundry"] .btn.primary:hover { color: #06201d; }
html[data-look="foundry"] .btn:not(.primary):not(.danger) { background: transparent; border: 1px solid #9e7834; color: #f0e6d2; }
html[data-look="foundry"] .nav a.on { color: #06201d; font-weight: 700; }
html[data-look="foundry"] input, html[data-look="foundry"] select, html[data-look="foundry"] textarea { background: #0f0b08; border-color: #5a421b; }
html[data-look="foundry"] .badge.ok { color: #7ef0e5; background: rgba(10, 200, 185, .14); }
html[data-look="foundry"] .gearbox { display: block; width: 84px; flex: none; }
.gears .teeth { fill: none; stroke: #9e7834; stroke-width: 6; stroke-dasharray: 4.45 4.45; }   /* 12 teeth */
.gears .body { fill: #241b14; stroke: #c8aa6e; stroke-width: 2.5; }
.gears .hub { fill: #c8aa6e; }
.gears .g1 { transform-origin: 38px 30px; } .gears .g2 { transform-origin: 81px 30px; transform: rotate(15deg); }
.gearbox.meshed .gears .teeth { stroke: #0ac8b9; }
.gearbox.meshed .gears .body { stroke: #3fe0d2; }
.gearbox.meshed .g1 { animation: gearspin 6s linear infinite; }
.gearbox.meshed .g2 { animation: gearspin2 6s linear infinite; }
@keyframes gearspin2 { from { transform: rotate(15deg); } to { transform: rotate(-345deg); } }
@keyframes gearspin { to { transform: rotate(360deg); } }
/* portal flash on page change (pointer-events: none, so it never blocks a click) */
.portal { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0; transform-origin: var(--px, 50%) var(--py, 30%);
  background: radial-gradient(circle at var(--px, 50%) var(--py, 30%), rgba(0, 240, 255, .55) 0, rgba(10, 200, 185, .28) 6%,
    rgba(168, 85, 247, .16) 13%, transparent 26%); }
.portal.go { animation: portal .45s ease-out; }
@keyframes portal { 0% { opacity: .95; transform: scale(.25); } 100% { opacity: 0; transform: scale(2.4); } }
@media (prefers-reduced-motion: reduce) { .gearbox.meshed .g1, .gearbox.meshed .g2, .portal.go { animation: none; } }
@media (max-width: 560px) { html[data-look="foundry"] .gearbox { display: none; } .revealsteps li { font-size: .74rem; } }
.looktoggle { display: inline-grid; place-items: center; padding: .3rem .45rem; }   /* look toggle icon */
.looktoggle svg { width: 20px; height: 20px; }
.looktoggle .t { fill: none; stroke: var(--muted); stroke-width: 3; stroke-dasharray: 2.6 2.3; }
.looktoggle .b { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.looktoggle .h { fill: var(--muted); }
html[data-look="foundry"] .looktoggle .t { stroke: #c8aa6e; } html[data-look="foundry"] .looktoggle .b { stroke: #0ac8b9; }
html[data-look="foundry"] .looktoggle .h { fill: #0ac8b9; }

/* ---------- ECHO workshop (step 1, 2026-10-02): plain markup for theming ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.echoready { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .25rem; }
.echoready li { color: var(--muted); } .echoready li.done { color: var(--text); }
.echosample { display: grid; gap: .4rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.echoanswer { border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; display: grid; gap: .5rem; }
.echotext { white-space: pre-wrap; margin: 0; }
.echoruns { padding-left: 1.1rem; margin: .4rem 0; }
fieldset.field { border: 0; padding: 0; margin: 0; } fieldset.field legend { font-weight: 600; margin-bottom: .3rem; }

/* ---------- ECHO step 2 (D15) ---------- */
.echomode { display: grid; gap: .5rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.echomode.on { border-top-color: var(--accent); }
.echocard .btn { margin-top: .4rem; }
.echocall { border-top: 1px solid var(--border); padding-top: .8rem; }
/* look picker */
.lookpick select { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); border-radius: 6px;
  font: inherit; font-size: .82rem; padding: .25rem .4rem; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* landing hero field (decorative canvas behind the hero) */
.hero { position: relative; overflow: hidden; }
.hero > :not(.herofield) { position: relative; z-index: 1; }
.herofield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html[data-look="foundry"] .herofield { opacity: .5; }
/* profile source badges (who stands behind a profile) */
.srcbadge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); margin-left: .35rem; white-space: nowrap; }
.srcbadge.verified { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.srcbadge.verified::before { content: '\2713  '; }
.srcbadge.ai_generated { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.srcbadge.backer { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-ring); }
.srcbadge.backer::before { content: '\2605  '; }
/* PHASE 4: backers */
.fbother { margin-top: .5rem; max-width: 24rem; }
details.fbmore { margin: 1rem 0; border-top: 1px solid var(--border); padding-top: .75rem; }
details.fbmore > summary { cursor: pointer; font-weight: 600; color: var(--heading); margin-bottom: .5rem; }
.pledgebox { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--surface-2); }
.pledgebox.lit { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.pledgebox h2 { margin-top: 0; }
.pledgego { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.pledgego .btn { flex: none; }
.pledgenote { flex: 1 1 18rem; margin: 0; padding: .6rem .8rem; border-radius: 8px; border: 1px solid var(--accent-line);
  background: var(--accent-soft); color: var(--heading); font-size: .9rem; }
.backersadmin { margin-top: 1rem; }
.backerdl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0 0 1rem; }
.backerdl dt { color: var(--muted); font-size: .85rem; }
.backerdl dd { margin: 0; }

/* PHASE 2: ECHO chat */
.echochat { min-width: 0; }
.echoask { display: grid; gap: .5rem; }
.echoask textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 3.2rem; }
.echothread { display: grid; gap: 1.2rem; }
.echoturn { display: grid; gap: .7rem; min-width: 0; }
.echobubble { border-radius: var(--radius); padding: .7rem .85rem; max-width: 46rem; display: grid; gap: .45rem;
  overflow-wrap: anywhere; min-width: 0; }
.echobubble.me { justify-self: end; background: var(--accent-soft); color: var(--text); max-width: 85%; white-space: pre-wrap; }
.echobubble.them { justify-self: start; background: var(--surface); border: 1px solid var(--border); width: 100%; box-sizing: border-box; }
.echobubble.them.general { border: 2px solid var(--warn); }
.echochat .badge { white-space: normal; }
.echowarn { display: grid; gap: .2rem; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: .5rem .65rem; }
.echowarn strong { font-size: 1rem; }
.echohelp { border: 1px dashed var(--border); border-radius: var(--radius); padding: .7rem .85rem; display: grid; gap: .5rem; }
.echohelp-h { font-size: .95rem; margin: 0; }
.echosuggest { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.echosug { border: 1px solid var(--border); border-radius: 8px; padding: .6rem .7rem; display: grid; gap: .2rem; min-width: 0; }
.echosug p { margin: 0; overflow-wrap: anywhere; }
.echonote { color: var(--warn); }
.echoaibtn { padding-top: .2rem; }
.echobrowse summary { cursor: pointer; }
.echochat .xgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: .5rem; }
@media (max-width: 480px) {
  .echobubble.me { max-width: 92%; }
  .echochat .card.tight { padding: .75rem; }
}
/* PHASE 3: survey */
.survey { max-width: 640px; margin: 0 auto; }
.survey fieldset.sq { border: 0; padding: 0; margin: 0; min-width: 0; }
.survey fieldset.sq legend { font-weight: 600; color: var(--heading); margin-bottom: .55rem; padding: 0; }
.survey .pills.sbig label { padding: .65rem .95rem; font-size: .95rem; min-height: 44px; }
.survey .pills.scol { flex-direction: column; }
.survey .pills.scol label { border-radius: 10px; }
.survey .srate { padding: .5rem 0; border-top: 1px solid var(--border); }
.survey .srate .small { margin-bottom: .35rem; }
.survey .pills.srow { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.survey .pills.srow label { justify-content: center; min-height: 44px; padding: .4rem 0; border-radius: 8px; font-size: 1rem; }
.survey .sbigcheck { font-weight: 600; font-size: 1rem; }
.survey .sbtn { width: 100%; min-height: 48px; font-size: 1rem; }
.survey .ssol h2 { margin: .35rem 0 .3rem; font-size: 1.15rem; }
.survey .ssol.first { border-color: var(--accent-line); }
.surveyadmin .surveylink { flex: 1 1 260px; min-width: 0; }
.surveyadmin .sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.surveyadmin .scounts { list-style: none; padding: 0; margin: 0; }
.surveyadmin .scounts li { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; border-top: 1px solid var(--border); }
@media (max-width: 420px) { .survey .pills.sbig label { flex: 1 1 100%; } }
.surveyadmin, .backersadmin { margin-top: 1rem; }
/* splash readiness check (2026-10-03): first screen on #/, SPYN look tokens */
.splash { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--text); overflow-y: auto;
  display: flex; flex-direction: column; }
.splash > .herofield { position: fixed; }
.splash-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 960px; width: 100%; margin: 0 auto; padding: 1rem 16px; }
.splash-brand { font-weight: 700; color: var(--heading); display: inline-flex; align-items: center; gap: .5rem; }
.splash-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--logo-2); box-shadow: 0 0 0 4px var(--accent-glow); }
.splash-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 1.25rem; max-width: 720px; width: 100%; margin: 0 auto; padding: 1rem 16px 2.5rem; }
.splash-hook { text-align: center; }
.splash-hook h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 .6rem; color: var(--heading); }
.splash-hook .grad { background: linear-gradient(90deg, var(--logo), var(--logo-2)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.splash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem;
  box-shadow: 0 10px 30px var(--shadow); }
.splash-card h2 { margin: .2rem 0 .9rem; font-size: 1.3rem; color: var(--heading); }
.splash-progress { display: flex; gap: .35rem; margin-bottom: .5rem; }
.splash-progress span { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); }
.splash-progress span.done { background: var(--logo-2); }
.splash-progress span.now { background: var(--accent); }
.splash-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .55rem; margin-bottom: .8rem; }
.splash-opt { font: inherit; text-align: left; min-height: 48px; padding: .7rem .9rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.splash-opt:hover { border-color: var(--accent-line); }
.splash-opt:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.splash-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--heading); font-weight: 600;
  box-shadow: 0 0 0 2px var(--accent-ring); }
.splash-feedback { min-height: 3.2rem; }
.splash-feedback p { margin: 0 0 .8rem; padding: .7rem .9rem; border-radius: 10px; background: var(--ok-soft); color: var(--text);
  border-left: 4px solid var(--logo-2); }
.splash-summary { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.splash-summary li { display: grid; gap: .1rem; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); }
.splash-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
/* 2026-10-04 role-branching splash: meta row, fake doors, scripted "Guide me" chat bubbles (same data as the cards) */
.splash-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.splash-meta p { margin: 0; }
.splash-doors { display: grid; gap: .5rem; margin: 0 0 1rem; }
.splash-doors .btn { text-align: left; }
.splash-doors .notice { margin: 0; }
.splash-chat { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.splash-chat li { display: grid; gap: .4rem; }
.bubble { margin: 0; padding: .6rem .85rem; border-radius: 14px; max-width: 88%; line-height: 1.4; }
.bubble.bot { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.bot.fb { background: var(--ok-soft); }
.bubble.me { justify-self: end; background: var(--accent-soft); color: var(--heading); font-weight: 600; border-bottom-right-radius: 4px; }
.splash-card.guided h2.bubble { font-size: 1.1rem; margin: .4rem 0 .9rem; display: block; width: fit-content; }
.splash-card.guided .splash-feedback p.bubble { margin: 0 0 .8rem; }
.splash-card.guided .splash-options { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.splash-card.guided .splash-opt { border-radius: 99px; min-height: 44px; }
@media (max-width: 480px) { .splash-actions .btn { flex: 1 1 100%; } .splash-options, .splash-card.guided .splash-options { grid-template-columns: 1fr; } }
/* admin visitors */
.funnel { list-style: none; padding: 0; margin: .5rem 0 0; }
.funnel li { display: flex; justify-content: space-between; padding: .35rem 0; border-top: 1px solid var(--border); }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: .5rem; }
.vbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.vbar span { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.vbar em { font-style: normal; font-size: .62rem; color: var(--muted); margin-top: 2px; }
html.splash-lock, html.splash-lock body { overflow: hidden; }  /* page behind the splash doesn't scroll */
/* ECHO preview (muted until signed in), notice modal, ratings, disabled attach (2026-10-03) */
.echoprev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.echoprev { font: inherit; text-align: left; display: grid; gap: .35rem; padding: 1rem; border-radius: 12px; cursor: pointer;
  border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text); }
.echoprev.muted-card { opacity: .72; filter: saturate(.6); }
.echoprev:hover, .echoprev:focus-visible { opacity: 1; filter: none; border-color: var(--accent-line); outline: none; }
.echoprev .lockline { font-size: .8rem; font-weight: 600; color: var(--accent-text); }
.modalback { position: fixed; inset: 0; z-index: 70; background: rgba(15, 30, 74, .45); display: flex; align-items: center;
  justify-content: center; padding: 16px; }
.modal { max-width: 520px; width: 100%; }
.modal h2 { margin-top: 0; }
.stars { display: inline-flex; gap: .1rem; }
.star { font: inherit; font-size: 1.15rem; line-height: 1; background: none; border: 0; padding: .15rem; cursor: pointer; color: var(--border-strong); }
.star.on { color: #f59e0b; }
.star:focus-visible { outline: 2px solid var(--accent-ring); border-radius: 4px; }
.attachoff[disabled] { opacity: .5; cursor: not-allowed; }
/* Phase A: ECHOs inside the gap map (2026-10-03) */
.teammap li { flex-wrap: wrap; }
.gapecho { flex-basis: 100%; display: grid; gap: .35rem; margin: .45rem 0 .2rem; padding: .55rem .65rem;
  border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.gapecho.mate { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; border-style: solid; border-color: var(--accent-ring);
  background: var(--accent-soft); }
.gapecho-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem; }
.tm.ai { background: var(--accent-soft); color: var(--accent-text); }
.aiteam-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.aiteam-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
/* Phase B: ECHO drafts (2026-10-03) */
.draftchips { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .35rem 0; }
/* Polish: dashboard + Explore (2026-10-03) */
/* Visual only. Scoped to the founder home (.polish-home) and Explore (.polish-explore) so the contributor home,
   ECHO chat and venture workspace keep their own layout. Tokens only, so spyn, Night and foundry all follow. */
.polish-home, .polish-explore { --gap: 1rem; }
.polish-home.stack > * + *, .polish-explore.stack > * + * { margin-top: 1.25rem; }
/* page header: title block left, actions right, aligned to the title's baseline row */
.polish-home .phead, .polish-explore .phead { align-items: flex-end; gap: .75rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.polish-home .phead-main, .polish-explore .phead-main { min-width: 0; flex: 1 1 420px; }
.polish-home .phead h1, .polish-explore .phead h1 { margin: 0; overflow-wrap: anywhere; }
.polish-home .ptitle { gap: .6rem; }
.polish-home .pdesc { margin: .3rem 0 0; }
.polish-home .pprov { margin: .5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.polish-home .phead-actions { flex: none; gap: .5rem; }
.polish-explore .psort { flex: none; max-width: 100%; }
/* KPI row: four equal tiles, icon + label header, one large value */
.polish-home .kpirow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.polish-home .kpi { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem; margin: 0; min-width: 0; }
.polish-home .kpi-head { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.polish-home .kpi-ico { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  font-weight: 800; font-size: .95rem; background: var(--accent-soft); color: var(--accent-text); }
.polish-home .kpi.ok .kpi-ico { background: var(--ok-soft); color: var(--ok); }
.polish-home .kpi.gap .kpi-ico { background: var(--warn-soft); color: var(--warn); }
.polish-home .kpi.later .kpi-ico { background: var(--surface-2); color: var(--text-2); }
.polish-home .kpi-label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.polish-home .kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--heading); font-variant-numeric: tabular-nums; }
.polish-home .kpi .progressbar { margin-top: auto; }
/* next-action cards: text left, actions right; actions drop below on narrow screens */
.polish-home .nextcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.5rem; }
.polish-home .nextcard > .row { justify-content: flex-end; gap: .5rem; }
/* map columns: equal-height cards, header row with a rule under it */
.polish-home .mapcols { gap: var(--gap); align-items: stretch; }
.polish-home .mapcols > .card { display: flex; flex-direction: column; min-width: 0; }
.polish-home .mapcols .colh { display: flex; align-items: center; gap: .5rem; padding-bottom: .65rem; margin: 0 0 .5rem;
  border-bottom: 1px solid var(--border); }
.polish-home .mapcols .colh::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; flex: none; background: var(--border-strong); }
.polish-home .mapcols .colh.ok::before { background: var(--ok); }
.polish-home .mapcols .colh.gap::before { background: var(--warn); }
.polish-home .mapbig { font-size: 1.02rem; line-height: 1.4; margin: .2rem 0 .5rem; }
.polish-home .teammap li { align-items: baseline; }
.polish-home .mapcols .colh ~ template + .teammap > li:first-of-type { border-top: 0; }
.polish-home .teammap .tm { min-width: 5.6rem; text-align: center; }
.polish-home .used .grid3 { gap: var(--gap); }
/* Explore: discovery bar */
.polish-explore .xdisc { gap: .75rem 1.25rem; flex-wrap: nowrap; }
.polish-explore .xdisc-text { flex: 1 1 auto; min-width: 0; }
.polish-explore .xdisc-ctl { flex: none; gap: .5rem; flex-wrap: nowrap; }
.polish-explore .xdisc-ctl input { width: 260px; max-width: 100%; margin: 0; }
.polish-explore .xdisc-ctl .btn { white-space: nowrap; }
/* Explore: filters as a grid; search wide, two selects; checkbox and count on the second line */
.polish-explore .xfilters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 1rem; align-items: center; }
.polish-explore .xfilters > input, .polish-explore .xfilters > select { width: 100%; min-width: 0; margin: 0; }
.polish-explore .xfilters .check { grid-column: 1 / 2; margin: 0; align-items: center; }
.polish-explore .xfilters .check input { margin-top: 0; }
.polish-explore .xfmeta { grid-column: 2 / -1; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
/* Explore cards: even grid, fixed header shape, actions aligned to the bottom of each row */
.polish-explore .xgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--gap); align-items: stretch; }
.polish-explore .xcard { padding: 1.1rem 1.15rem; gap: .6rem; min-width: 0; box-shadow: 0 1px 2px var(--shadow); }
.polish-explore .xhead { gap: .35rem .4rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--border); min-height: 3.6rem; align-content: flex-start; }
.polish-explore .xtitle { flex: 1 1 100%; color: var(--heading); line-height: 1.35; overflow-wrap: anywhere; }
.polish-explore .xsum { margin: 0; color: var(--text-2); }
.polish-explore .aligns { margin: 0; }
.polish-explore .aligns li { align-items: baseline; padding: .18rem 0; }
.polish-explore .aicon { flex: none; }
.polish-explore .xcard details summary { cursor: pointer; color: var(--text-2); }
.polish-explore .xside { margin-top: .4rem; }
.polish-explore .xwhy { margin: 0; }
.polish-explore .xactions { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); gap: .5rem; }
.polish-explore .xactions .btn { flex: 1 1 0; }
.polish-explore .xactions + p { margin: 0; }
@media (max-width: 860px) {
  .polish-home .kpirow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .polish-explore .xdisc { flex-wrap: wrap; }
  .polish-explore .xdisc-ctl { flex: 1 1 100%; }
  .polish-explore .xdisc-ctl input { flex: 1 1 auto; width: auto; }
}
@media (max-width: 640px) {
  .polish-home .phead, .polish-explore .phead { align-items: flex-start; }
  .polish-home .phead-main, .polish-explore .phead-main { flex-basis: 100%; }
  .polish-home .nextcard { grid-template-columns: minmax(0, 1fr); }
  .polish-home .nextcard > .row { justify-content: flex-start; }
  .polish-home .kpi { padding: .85rem .9rem; }
  .polish-home .kpi-value { font-size: 1.1rem; }
  .polish-explore .xfilters { grid-template-columns: minmax(0, 1fr); }
  .polish-explore .xfilters .check, .polish-explore .xfmeta { grid-column: 1; }
  .polish-explore .xfmeta { justify-content: space-between; }
  .polish-explore .xdisc-ctl { flex-wrap: wrap; }
  .polish-explore .xhead { min-height: 0; }
}
.gapecho .btn:not(.ghost) { background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-text); }

/* Google sign-in (Google's brand guidance: white button, dark text, full-colour G) */
.oauth { margin: 1.1rem 0 .25rem; }
.btn.google { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 500; }
.btn.google:hover { background: #f2f2f2; }
.btn.google:disabled { opacity: .6; }
.oauth .divider { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.oauth .divider::before, .oauth .divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* Explore cards, visual pass (2026-10-04): initials avatar, skill chips, aligned-count dot meter (counts, never %). */
.xtop { display: flex; gap: .7rem; align-items: center; }
.xtopmain { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.xtopmain .xtitle { overflow-wrap: anywhere; }
.xbadges { display: flex; flex-wrap: wrap; gap: .3rem; }
.xavatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  font-size: .95rem; letter-spacing: .02em; color: #fff; }
.xavatar.t0 { background: #0f766e; } .xavatar.t1 { background: #1d4ed8; } .xavatar.t2 { background: #7c3aed; }
.xavatar.t3 { background: #b45309; } .xavatar.t4 { background: #be185d; } .xavatar.t5 { background: #15803d; }
.xmeter { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: 8px; background: var(--accent-soft); }
.xmeter .dots { display: inline-flex; gap: 3px; }
.xmeter .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent-line); background: transparent; }
.xmeter .dots i.on { background: var(--accent-line); }
.xmeter .dots i.half { background: linear-gradient(90deg, var(--accent-line) 50%, transparent 50%); }
.xchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.xchip { font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.xdetails summary { cursor: pointer; color: var(--accent-text); }
.xdetails[open] summary { margin-bottom: .3rem; }
.xcard .xactions { margin-top: auto; padding-top: .3rem; }
.topaligned .tagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .6rem; margin-top: .6rem; }
.tacard { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem; border: 1px solid var(--border); border-radius: 10px; color: inherit; text-decoration: none; }
.tacard:hover { border-color: var(--accent-line); }
.tacard .xavatar { width: 36px; height: 36px; font-size: .8rem; }
.tacard .tamain { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.tacard .tamain .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 2026-10-04: OG-style footer, centred pilot application, pricing discovery (basis list, name-your-price sliders) */
footer.foot { padding: 2.25rem 0 1.5rem; background: var(--surface); }  /* its own band, as in the OG */
/* 2026-10-05: keep the footer at the bottom of short pages instead of floating mid-screen */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > footer.foot { flex-shrink: 0; }
.footcols { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 1.75rem; align-items: start; }
.footcols h2 { font-size: .9rem; margin: 0 0 .5rem; color: var(--text); }
.footcols nav h2 + ul + h2 { margin-top: 1rem; }
.footcols p { margin: 0; line-height: 1.55; max-width: 34rem; }
.footcols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footcols a { color: var(--muted); text-decoration: none; }
.footcols a:hover, .footcols a:focus-visible { color: var(--accent-text); text-decoration: underline; }
.footcontact li { display: grid; gap: .05rem; }
.footcontact span { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.footcontact a { color: var(--accent-text); }
.footbase { border-top: 1px solid var(--border); margin: 1.5rem 0 0; padding-top: 1rem; text-align: center; font-size: .75rem; }
@media (max-width: 760px) { .footcols { grid-template-columns: 1fr; gap: 1.25rem; } }

.pilotapply { margin: 2rem auto 0; scroll-margin-top: 5.5rem; }  /* clear the sticky header on #/waitlist */
.pilotapply h2 { text-align: center; }
.pilotapply > p { text-align: center; }

.joincard { margin: 1rem auto 0; max-width: 620px; }
.joinchoice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .9rem 0 .4rem; }
.joinopt { display: grid; gap: .3rem; text-align: left; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.joinopt:hover { border-color: var(--accent-line); }
.joinopt.on { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.joinopt:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.joinsub { font-size: 1.1rem; margin: 1.1rem 0 .6rem; }
@media (max-width: 560px) { .joinchoice { grid-template-columns: 1fr; } }

/* 2026-10-05: on phones the Coach pill covered text and form controls. Compact round button, clear of the home bar,
   and hidden while someone is typing (any focused field). The accessible name stays "Open SPYN Coach". */
@media (max-width: 600px) {
  .coachfab { width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0;
    right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; }
  .coachfab::before { content: "✦"; font-size: 1.35rem; line-height: 1; }
  body.typing .coachfab { display: none; }  /* set by app.js while a field has focus */
}

/* 2026-10-05: the look picker moved from the top bar to the footer */
.footbase { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem; }
.footbase p { margin: 0; }
.footbase .lookpick { display: inline-flex; align-items: center; gap: .4rem; }
.footlook { font-size: .75rem; }
/* 2026-10-05: a hired ECHO's session greeting (knows the venture) */
.echobubble.greeting { border-left: 3px solid var(--accent-line); background: var(--accent-soft); }
