/* Flow page, layered on client-build.css tokens (--brand, --accent, --ink, --paper, --surface, --line). */
.top nav a { white-space: nowrap; }
.sub { color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.row.center { justify-content: center; margin-top: 32px; }
.meta { color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); }
.draft { margin: 14px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.linkish { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; min-height: auto; font-weight: 600; }
.footer a { color: #fff; }

.how { padding-block: 40px; }
.arc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: arc; }
.arc li { position: relative; padding: 18px 18px 18px 0; border-top: 3px solid var(--brand); }
.arc li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.arc b { display: block; font-size: 22px; color: var(--brand); }
.arc span { color: var(--muted); }

.discovery { background: var(--surface); border-block: 1px solid var(--line); }
.questions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.q label { display: flex; gap: 10px; font-weight: 800; font-size: 17px; line-height: 1.3; }
.q-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.q small { display: block; color: var(--muted); margin: 4px 0 8px 38px; font-size: 14px; }
.q textarea { min-height: 84px; font-size: 15px; }
#answered { display: block; margin-top: 10px; color: var(--ink); }

.barset { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.barset b { font-size: 20px; }
.bar-ctl { display: inline-flex; gap: 6px; }
.bar-ctl button { min-width: 44px; padding: 6px 12px; font-size: 20px; line-height: 1; }
.barset small { color: var(--muted); font-size: 14px; }

.area { margin-bottom: 36px; }
.area-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.area-head h3 { margin: 0; font-size: 28px; }
.area-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.total { text-align: right; flex: none; }
.total b { font-size: 56px; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.total span { margin-left: 6px; color: var(--muted); }
.total em { display: block; font-style: normal; font-weight: 700; font-size: 15px; }
.total em.ok { color: var(--ok); }
.total em.below { color: var(--warn); }
.meter { position: relative; height: 10px; margin: 16px 0 6px; background: #e4e2db; border-radius: 6px; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 6px; transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.meter s { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--ink); border-radius: 2px; }

.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.item-top { display: flex; justify-content: space-between; gap: 20px; }
.item-q { min-width: 0; }
.item-q strong { font-size: 18px; }
.item-q p { margin: 4px 0 0; color: var(--muted); }
.item-score { flex: none; text-align: right; }
.score-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.item.unrated .score-label { color: var(--muted); }
.pills { display: inline-flex; gap: 6px; }
.pill { min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 800; }
.pill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.why { margin: 10px 0 0; max-width: 80ch; }
.more { margin-top: 10px; }
.more summary, .worked summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.more h4 { margin: 14px 0 6px; font-size: 15px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.steps .meta { display: block; }
.chain { margin: 0; font-weight: 600; }
.fix { margin-top: 18px; padding: 18px 20px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-radius: 12px; }
.fix h4 { margin: 0 0 8px; }
.fix ol { margin: 0 0 8px; padding-left: 20px; }
.fix p { margin: 0; }

.worked { margin-top: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.walk { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 20px; margin: 14px 0 0; }
.walk dt { font-weight: 800; }
.walk dd { margin: 0; }

.band-alt { max-width: none; background: var(--surface); border-block: 1px solid var(--line); }
.band-alt > * { max-width: 1176px; margin-inline: auto; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.opt { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.opt.on { border: 2px solid var(--brand); }
.opt h3 { margin: 0 0 10px; font-size: 22px; }
.opt dl { margin: 0 0 16px; }
.opt dt { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 8px; }
.opt dd { margin: 2px 0 0; }
.opt button { margin-top: auto; align-self: flex-start; }
.stepper { margin-top: 28px; }
.track { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.track li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.track li.done { color: var(--ink); }
.track li.now { background: var(--brand); color: #fff; border-color: var(--brand); }
.step label, .brief h3 { display: block; font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.brief pre { white-space: pre-wrap; font: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 0; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.post h3 { margin: 0 0 8px; font-size: 18px; }
.post-text { margin: 0; white-space: pre-line; }
.needs { font-size: 14px; color: var(--warn); margin: 12px 0 0; }

.ask { margin-top: 14px; }
.ask-label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ai { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--brand); color: var(--brand); background: transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.ai-primary { background: var(--brand); color: #fff; }

.vader .lead { font-size: 20px; max-width: 70ch; }
.vader-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.vader-list li { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vader-list span { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 20; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }

@media (max-width: 950px) {
  .arc, .questions, .opts, .posts { grid-template-columns: minmax(0, 1fr); }
  .arc li + li { padding-left: 0; border-left: 0; }
  .walk { grid-template-columns: minmax(0, 1fr); }
  .vader-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 620px) {
  .top nav { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 62vw; }
  .item-top, .area-head { flex-direction: column; align-items: flex-start; }
  .item-score, .total { text-align: left; }
  .total b { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .meter i { transition: none; } }

/* Reserved slots: filled from Brian's document (path to 4, what it leads to, return; worked example). */
.slot { margin-top: 10px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; }
.slot-label { color: var(--muted); font-size: 14px; }
.worked { border-style: dashed; }
