/* Strangers to Clients Sprint. Black and white editorial. One restrained accent (green) for progress and approval. */
:root {
  --black: #0B0B0B; --char: #242424; --dim: #5F5F5C; --gray: #8a8984;
  --off: #F3F2EF; --white: #fff; --line: #D9D7D1; --soft: #EAE8E3;
  --ok: #1F6B4E; --ok-bg: #E4F0EA; --warn: #8A4B00; --warn-bg: #FBF0DC; --bad: #A12B2B; --bad-bg: #F9E5E5;
  --f-disp: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --r: 14px; --gutter: 16px; --max: 700px; --wide: 1040px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--off); color: var(--black); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.center { text-align: center; } .pad { padding: 40px 0; }

/* Layout */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--off); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--wide); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { font-family: var(--f-disp); font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.strip { background: var(--black); color: var(--white); padding: 0 .2em; }
.badge-mock { font: 700 10px var(--f-disp); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--black); border-radius: 99px; padding: 2px 8px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a, .nav button { font-family: var(--f-disp); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: none; border: 0; padding: 10px 10px; border-radius: 99px; cursor: pointer; min-height: 40px; }
.nav a[aria-current="page"] { background: var(--black); color: var(--white); }
main:focus, main:focus-visible { outline: none; }
main { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 96px; outline: none; }
main.wide { max-width: var(--wide); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
@media (max-width: 719px) {
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; background: var(--off); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .nav a, .nav button { flex: 1; text-align: center; padding: 10px 4px; }
  .badge-mock { margin-left: auto; }
}

/* Type */
.eyebrow { font: 600 11px var(--f-disp); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--f-disp); text-transform: uppercase; letter-spacing: -.015em; line-height: 1.08; margin: 0 0 12px; overflow-wrap: anywhere; }
h1 { font-weight: 800; font-size: clamp(28px, 8vw, 42px); }
h2 { font-weight: 800; font-size: clamp(20px, 5.5vw, 26px); }
h3 { font-weight: 700; font-size: 15px; letter-spacing: 0; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--char); }
.muted { color: var(--dim); } .small { font-size: 13px; }
a.link, .linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 99px; border: 1.5px solid var(--black); background: var(--black); color: var(--white); font: 700 14px var(--f-disp); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; max-width: 100%; }
.btn:active { transform: scale(.98); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--black); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn.is-blocked { background: var(--gray); border-color: var(--gray); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards and forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.card.dark .muted, .card.dark .eyebrow { color: #bdbbb5; }
.card + .card { margin-top: 16px; }
label.fl { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
.field .hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.field .nudge { font-size: 13px; color: var(--warn); margin-top: 6px; }
.field.err input, .field.err textarea, .field.err select { border-color: var(--bad); }
.field .errmsg { color: var(--bad); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: 16px; }
textarea { min-height: 72px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(11,11,11,.12); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--black); }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
details > summary { cursor: pointer; padding: 14px 18px; font-family: var(--f-disp); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: '+'; font-size: 18px; line-height: 1; }
details[open] > summary::after { content: '\2212'; }
details > .body { padding: 0 18px 18px; }

/* Badges */
.badge { display: inline-block; font: 700 11px var(--f-disp); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--char); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.dark { background: var(--black); color: var(--white); }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; background: var(--soft); }
.alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.bad { background: var(--bad-bg); color: var(--bad); } .alert.ok { background: var(--ok-bg); color: var(--ok); }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--black); border-radius: 99px; transition: width .4s; }
.progress.ok > i { background: var(--ok); }

/* Home */
.continue { padding: 22px; }
.continue h2 { font-size: clamp(20px, 6vw, 28px); text-transform: none; letter-spacing: -.01em; margin-bottom: 6px; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mile { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.mile .dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 800 13px var(--f-disp); flex: none; }
.mile.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.mile.cur { border-color: var(--black); border-width: 2px; }
.mile.cur .dot { border-color: var(--black); }
.mile.lock { opacity: .7; }
.mile b { font-family: var(--f-disp); font-size: 15px; display: block; }
.endstate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.es { background: var(--white); border: 1px dashed var(--line); border-radius: 12px; padding: 10px; min-height: 108px; font-size: 12px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.es.on { border-style: solid; border-color: var(--black); }
.es .t { font: 700 10px var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.es .v { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.es.empty .v { color: var(--gray); font-weight: 400; }
@media (max-width: 519px) { .endstate { grid-template-columns: 1fr 1fr; } }

/* Room + step list */
.steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.srow { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; min-height: 60px; }
.srow .n { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font: 800 12px var(--f-disp); flex: none; }
.srow.approved .n { background: var(--ok); color: #fff; }
.srow.current { border: 2px solid var(--black); }
.srow.locked { opacity: .55; pointer-events: none; }
.srow .t { font-weight: 600; line-height: 1.3; }
.layout { display: block; }
.side { display: none; }
@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
  .side { display: block; position: sticky; top: 84px; }
  .side .srow { padding: 10px 12px; min-height: 0; }
  .topprog { display: none; }
}
.topprog { margin-bottom: 18px; }

/* Output rendering */
.env .sec { margin-top: 22px; }
.env .sec h3 { margin-bottom: 8px; }
.env ul.bul { margin: 0; padding-left: 20px; } .env ul.bul li { margin: 6px 0; }
.env .quote { border-left: 3px solid var(--black); padding: 4px 0 4px 14px; margin: 10px 0; font-size: 17px; font-weight: 500; }
.env .use { font-size: 13px; color: var(--dim); margin-top: 8px; font-style: italic; }
.env .callout { background: var(--black); color: var(--white); border-radius: var(--r); padding: 18px; margin-top: 18px; }
.env .callout .eyebrow { color: #bdbbb5; margin-bottom: 6px; }
.env .callout .txt { font: 700 clamp(17px, 4.6vw, 21px)/1.3 var(--f-disp); }
.env .title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(22px, 6vw, 30px); text-transform: uppercase; line-height: 1.05; }
.env .kv { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 6px 14px; margin: 0; }
.env .kv dt { font-weight: 700; font-size: 13px; color: var(--dim); } .env .kv dd { margin: 0; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.env table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 320px; }
.env th, .env td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.env th { background: var(--soft); font: 700 11px var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.env tr:last-child td { border-bottom: 0; }
.optcard { display: block; width: 100%; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin: 8px 0; cursor: pointer; }
.optcard.sel { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.optcard .o-top { display: flex; gap: 10px; align-items: flex-start; }
.optcard .radio { width: 20px; height: 20px; border: 2px solid var(--black); border-radius: 50%; flex: none; margin-top: 2px; display: grid; place-items: center; }
.optcard.sel .radio::after { content: ''; width: 10px; height: 10px; background: var(--black); border-radius: 50%; }
.optcard .o-t { font-weight: 700; } .optcard .o-d { color: var(--dim); font-size: 14px; margin-top: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ed { border-radius: 4px; outline: 0; cursor: text; min-width: 1ch; display: inline; }
.ed:hover { background: rgba(11,11,11,.06); box-shadow: 0 0 0 2px rgba(11,11,11,.06); }
.ed:focus { background: #fffbe6; box-shadow: 0 0 0 2px var(--black); }
.ed.block { display: block; }
.flag { display: flex; gap: 8px; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--soft); margin-top: 10px; }
.flag.warn { background: var(--warn-bg); color: var(--warn); }
.readonly .ed { cursor: default; } .readonly .ed:hover { background: none; box-shadow: none; }

/* Generating */
.gen { text-align: left; }
.gen .bar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 14px 0 10px; }
.gen .bar i { display: block; height: 100%; width: 30%; background: var(--black); border-radius: 99px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .gen .bar i { animation: none; width: 60%; } .screen, * { transition: none !important; } }

/* Previews */
.pv { margin-top: 22px; }
.pv-label { font: 700 11px var(--f-disp); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.fb { background: #fff; border: 1px solid #dcdcdc; border-radius: 10px; max-width: 420px; margin: 0 auto; overflow: hidden; font-family: Inter, Arial, sans-serif; color: #111; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.fb-h { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.fb-av { width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font: 800 16px var(--f-disp); flex: none; }
.fb-pn { font-weight: 700; font-size: 14px; line-height: 1.2; } .fb-sp { font-size: 12px; color: #65676b; }
.fb-pt { padding: 0 12px 10px; font-size: 14px; line-height: 1.4; }
.fb-img { background: var(--black); color: #fff; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 8%; gap: 12px; }
.fb-img .ih { font: 800 clamp(24px, 8vw, 36px)/1.05 var(--f-disp); text-transform: uppercase; }
.fb-img .is { font-size: 15px; color: #d6d4cf; }
.fb-img .rule { width: 56px; height: 4px; background: #fff; }
.fb-f { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f0f2f5; }
.fb-f .hl { font-weight: 700; font-size: 14px; line-height: 1.2; flex: 1; }
.fb-f .cta { background: #e4e6eb; border-radius: 6px; padding: 8px 12px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tp { background: var(--black); color: var(--white); border-radius: var(--r); overflow: hidden; }
.tp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; }
.tp-tabs button { background: #1c1c1c; color: #cfcdc7; border: 0; border-radius: 99px; padding: 8px 14px; font: 600 12px var(--f-body); cursor: pointer; white-space: nowrap; min-height: 36px; }
.tp-tabs button[aria-selected="true"] { background: #fff; color: #000; }
.tp-body { max-height: 52vh; overflow-y: auto; padding: 18px 16px; scroll-behavior: smooth; }
.tp-body p { font: 700 var(--tp, 28px)/1.3 var(--f-disp); margin: 0 0 .7em; }
.tp-ctl { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #2a2a2a; flex-wrap: wrap; align-items: center; }
.tp-ctl button { background: #fff; color: #000; border: 0; border-radius: 99px; padding: 8px 14px; font: 700 12px var(--f-disp); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; min-height: 40px; }
.tp-ctl label { font-size: 12px; color: #cfcdc7; display: flex; gap: 6px; align-items: center; }
.tp-ctl input[type=range] { width: 90px; accent-color: #fff; min-height: 0; }
.tp.full { position: fixed; inset: 0; z-index: 80; border-radius: 0; display: flex; flex-direction: column; }
.tp.full .tp-body { max-height: none; flex: 1; }
.inbox { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.mail { border-bottom: 1px solid var(--line); } .mail:last-child { border-bottom: 0; }
.mail > button { width: 100%; text-align: left; background: none; border: 0; padding: 12px 14px; cursor: pointer; display: block; }
.mail .m1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); }
.mail .m2 { font-weight: 700; } .mail .m3 { font-size: 14px; color: var(--dim); }
.mail .mbody { padding: 0 14px 14px; white-space: pre-wrap; font-size: 15px; }
.formpv, .bookpv { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-width: 460px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.formpv h4, .bookpv h4 { font-family: var(--f-disp); font-size: 20px; margin: 0 0 8px; }
.q { margin-top: 16px; } .q .qq { font-weight: 600; margin-bottom: 8px; }
.q .op { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0; font-size: 15px; }
.q .op i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--black); flex: none; }
.q .op.dq { border-style: dashed; }
.fakebtn { margin-top: 18px; text-align: center; background: var(--black); color: #fff; border-radius: 99px; padding: 14px; font: 700 13px var(--f-disp); letter-spacing: .08em; text-transform: uppercase; }
.fakeinput { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; color: var(--gray); margin-top: 6px; }
.chip { display: inline-block; background: var(--soft); border-radius: 99px; padding: 4px 12px; font: 600 12px var(--f-body); margin-bottom: 10px; }

/* Clients group */
.client { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.client > summary { padding: 14px 16px; }
.client .body { padding: 4px 16px 8px; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* Tables for admin */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 700 11px var(--f-disp); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover { background: var(--soft); }
.admin-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .admin-grid.two { grid-template-columns: 1fr 1fr; } }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.savechip { font-size: 12px; color: var(--dim); }
.done-hero { text-align: center; padding: 8px 0 4px; }
.mile-big { font: 800 clamp(34px, 11vw, 60px)/1 var(--f-disp); text-transform: uppercase; }
.minicard { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.minicard:last-child { border-bottom: 0; }

/* Playbook + print */
.pb-room { margin-top: 28px; }
.pb-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 12px; break-inside: avoid-page; }
@media print {
  body { background: #fff; }
  .topbar, .nav, .toast, .noprint, .skip { display: none !important; }
  main { max-width: none; padding: 0; }
  .pb-step { border: 0; border-top: 1px solid #999; border-radius: 0; padding: 12px 0; }
  .env .callout { background: #fff; color: #000; border: 2px solid #000; }
  details { border: 0; } details > summary { display: none; } details > .body { display: block; padding: 0; }
}

/* Blue Williams idea cards: the problem leads */
.optcard .o-prob { margin: 8px 0 6px; padding: 10px 12px; background: var(--off); border-left: 3px solid var(--black); border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.5; }
.optcard .o-lab { display: block; font: 700 10px var(--f-disp); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.optcard .o-more { margin-top: 10px; font-size: 14px; }
.optcard .o-more summary { cursor: pointer; font-weight: 600; color: var(--char); }
.optcard .o-kv { margin-top: 8px; }
.optcard .o-kv dt { font: 700 11px var(--f-disp); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }
.optcard .o-kv dd { margin: 2px 0 0; }

/* Mind File: late-night diary page */
.diary { position: relative; background: #fffdf6; border: 1px solid #e8e1cf; border-radius: 6px; padding: 26px 22px 26px 56px; box-shadow: 0 10px 24px -18px rgba(0,0,0,.45);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #d9e3ef 31px, #d9e3ef 32px); background-position: 0 18px; }
.diary-margin { position: absolute; top: 0; bottom: 0; left: 40px; width: 1.5px; background: #e9a7a7; }
.diary .ed { font: 20px/32px 'Kalam', 'Bradley Hand', 'Segoe Print', cursive; color: #1c2a4a; white-space: pre-wrap; }

/* Mind File: incognito tab */
.ig { background: #202124; color: #e8eaed; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -20px rgba(0,0,0,.6); }
.ig-bar { display: flex; align-items: center; gap: 14px; background: #35363a; padding: 8px 12px 0; }
.ig-dots { display: flex; gap: 6px; padding-bottom: 8px; } .ig-dots i { width: 11px; height: 11px; border-radius: 50%; background: #5f6368; display: block; }
.ig-tab { display: flex; align-items: center; gap: 8px; background: #202124; padding: 8px 14px; border-radius: 10px 10px 0 0; font-size: 13px; color: #e8eaed; }
.ig-head { padding: 18px 20px 6px; } .ig-title { font: 600 18px var(--f-body); } .ig-sub { font-size: 13px; color: #9aa0a6; margin-top: 4px; }
.ig-list { list-style: none; margin: 8px 0 14px; padding: 0 8px; }
.ig-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 8px; font-size: 15px; }
.ig-list li:hover { background: #2d2e31; }
.ig-g { color: #9aa0a6; display: grid; place-items: center; } .ig-t { color: #9aa0a6; font-size: 12px; white-space: nowrap; }
.ig .ed:hover { background: rgba(255,255,255,.08); box-shadow: none; } .ig .ed:focus { background: #3c4043; color: #fff; box-shadow: 0 0 0 2px #8ab4f8; }

/* Mind File: anonymous forum post */
.rd { display: flex; background: var(--white); border: 1px solid #ccc; border-radius: 8px; overflow: hidden; font-family: var(--f-body); }
.rd-vote { width: 44px; flex: none; background: #f8f9fa; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; color: #878a8c; font-size: 13px; }
.rd-vote svg:first-child { color: #ff4500; } .rd-vote b { color: #1a1a1b; }
.rd-main { padding: 10px 14px 8px; min-width: 0; flex: 1; }
.rd-meta { font-size: 12px; color: #787c7e; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .rd-meta b { color: #1a1a1b; }
.rd-av { width: 20px; height: 20px; border-radius: 50%; background: #ff4500; display: inline-block; }
.rd-title { font: 600 19px/1.3 var(--f-body); color: #1a1a1b; margin: 8px 0 10px; }
.rd-body .ed { font-size: 15px; line-height: 1.55; color: #1a1a1b; white-space: pre-wrap; }
.rd-foot { display: flex; gap: 18px; font: 700 12px var(--f-body); color: #878a8c; margin-top: 12px; padding-top: 6px; }

/* Step lists grouped by training */
.steplist .sgroup { list-style: none; font: 700 10px var(--f-disp); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px 4px; }
.steplist .sgroup:first-child { margin-top: 4px; }

/* PDF export sheet */
.pdfsheet { width: 720px; padding: 8px; background: #fff; color: #0B0B0B; font: 13px/1.55 var(--f-body); }
.pdfsheet .sec { break-inside: auto; } .pdfsheet h3 { break-after: avoid; }
.trainlink { margin: -4px 0 12px; font-size: 14px; color: var(--char); } .trainlink a { font-weight: 600; }

/* Results that read like a finished product */
.env .hero-card { background: var(--soft); color: var(--black); border-radius: var(--r); padding: 18px 20px; margin-top: 18px; }
.env .hero-card .eyebrow { color: var(--dim); margin-bottom: 6px; }
.env .hero-card .hero-txt { font: 400 clamp(15.5px, 4vw, 17px)/1.6 var(--f-body); }
.env .grid-h { margin: 26px 0 10px; }
.env .trait-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.env .trait { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; min-width: 0; }
.env .trait .tn { position: absolute; top: 12px; right: 14px; font: 800 13px var(--f-disp); color: var(--gray); }
.env .trait h4 { margin: 0 24px 6px 0; font: 700 13px var(--f-body); text-transform: uppercase; letter-spacing: .06em; }
.env .trait .tt { font-size: 14.5px; line-height: 1.5; }
.env details.chapter { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.env details.chapter > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font: 700 15px var(--f-body); list-style: none; }
.env details.chapter > summary::-webkit-details-marker { display: none; }
.env details.chapter > summary::after { content: '+'; font-weight: 700; color: var(--dim); }
.env details.chapter[open] > summary::after { content: '–'; }
.env details.chapter > .body { padding: 0 16px 16px; }
.env details.chapter .sec:first-child { margin-top: 4px; }
.traincard { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 4px 0 16px; text-decoration: none; }
.traincard .play { flex: none; width: 54px; height: 40px; border-radius: 8px; background: var(--black); display: grid; place-items: center; }
.traincard .play::after { content: ''; border-left: 12px solid var(--white); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.traincard.soon .play { background: var(--gray); }
.traincard .tc-t { font-weight: 600; font-size: 15px; } .traincard .tc-s { font-size: 13px; color: var(--dim); }
.youget { background: var(--soft); border-radius: var(--r); padding: 14px 16px; font-size: 15px; }
.youget b { display: block; font: 700 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.puttowork { margin-top: 22px; }
.puttowork h2 { margin: 0 0 4px; }
.ptw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 560px) { .ptw-grid { grid-template-columns: 1fr; } }
.ptw { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.ptw .q { display: flex; align-items: center; gap: 8px; font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.ptw .q i { width: 22px; height: 22px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font: 800 11px var(--f-disp); font-style: normal; }
.ptw p { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Calmer results: short by default, tap to read more */
.env .clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.env .trait .tt.clamp { -webkit-line-clamp: 2; color: var(--char); }
.env .trait { cursor: pointer; transition: border-color .15s; }
.env .trait:hover { border-color: var(--gray); }
.env .trait .more { display: inline-block; margin-top: 6px; font: 600 12px var(--f-body); color: var(--dim); }
.env .trait.open { cursor: default; grid-column: 1 / -1; }
.env .readmore { background: none; border: 0; padding: 0; margin-top: 8px; font: 600 13px var(--f-body); text-decoration: underline; cursor: pointer; color: inherit; }
/* No dead space at the bottom of open dropdowns */
details > .body > :last-child, details > .body .sec:last-child, details > .body p:last-child { margin-bottom: 0; }
.env details.chapter > .body { padding-bottom: 14px; }
details.client > summary { justify-content: flex-start; }
details.client > summary > span:first-child { flex: 1; }
details.client > summary .badge { margin-right: 10px; }

/* Ask about this step */
.askbox { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 8px; }
.askhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.askrow { display: flex; gap: 8px; align-items: flex-end; }
.askrow textarea { flex: 1; min-width: 0; min-height: 44px; resize: vertical; }
.asklog { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.asklog:empty { display: none; }
.askmsg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.askmsg.user { align-self: flex-end; background: var(--black); color: var(--white); }
.askmsg.assistant { align-self: flex-start; background: var(--soft); }
.askmsg.err { background: var(--warn-bg); color: var(--warn); }
