
/* Layout: emotion-led hero, a "make it yours" panel, sticky search + section chips, then one reading column of copyable prompt cards grouped into parts */
:root {
  --bg: #FAF9F6; --surface: #FFFFFF; --line: #E8E6E0; --ink: #14213D; --muted: #4A5568;
  --accent: #F28C28; --accent-ink: #B85A0B; --blue: #2F6FD6; --code-bg: #F2F1EC; --on-accent: #14213D; --on-blue: #FFFFFF;
  --star: #C27A00;
  --display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1830; --surface: #172341; --line: #2A3A63; --ink: #F2EEE6; --muted: #B8C3D9;
  --accent: #F28C28; --accent-ink: #F5A65A; --blue: #8DB4F2; --code-bg: #0B1328; --on-accent: #14213D; --on-blue: #0F1830; --star: #FFC048; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0F1830; --surface: #172341; --line: #2A3A63; --ink: #F2EEE6; --muted: #B8C3D9;
  --accent: #F28C28; --accent-ink: #F5A65A; --blue: #8DB4F2; --code-bg: #0B1328; --on-accent: #14213D; --on-blue: #0F1830; --star: #FFC048; color-scheme: dark }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
a { color: var(--accent-ink); }
header.hero { padding-block: 28px 24px; display: grid; gap: 14px; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6.4vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.lede { font-size: 19px; color: var(--ink); max-width: 60ch; margin: 0; }
.sub { font-size: 16px; color: var(--muted); max-width: 62ch; margin: 0; }
.ask { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 10px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.tile b { font-size: 16px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile:hover, .tile:focus-visible { border-color: var(--accent); outline: none; }
.tile.hot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile.hot span { color: var(--on-accent); }
.tip { margin: 0; font-size: 15px; color: var(--muted); }

/* Make it yours */
.yours { background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 4px 18px; }
.yours summary { cursor: pointer; padding-block: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; list-style: none; }
.yours summary::-webkit-details-marker { display: none; }
.yours summary b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.yours summary span { font-size: 14px; color: var(--muted); }
.yours summary::after { content: "Open ▾"; margin-left: auto; font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.yours[open] summary::after { content: "Close ▴"; }
.yours .body { display: grid; gap: 14px; padding-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.field textarea { min-height: 64px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.switches { display: grid; gap: 10px; }
.switch { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.switch small { display: block; color: var(--muted); font-size: 13px; }
.note { margin: 0; font-size: 13px; color: var(--muted); }

/* Sticky bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { padding-block: 10px; display: grid; gap: 8px; }
.searchrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bar .wrap > * { min-width: 0; }
#q { flex: 1 1 auto; width: 100%; padding-left: 42px !important; font-size: 17px !important; border-color: var(--accent) !important;
}
.qwrap { position: relative; flex: 1 1 260px; min-width: 0; display: flex; }
.qicon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--accent-ink); pointer-events: none; }
#q { min-width: 0; box-sizing: border-box; font: inherit; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
#q:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.status { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
nav.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
nav.chips a, nav.chips button { flex: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
nav.chips a:hover, nav.chips a:focus-visible, nav.chips button:hover, nav.chips button:focus-visible { border-color: var(--accent); outline: none; }
nav.chips button.on { background: var(--star); border-color: var(--star); color: var(--on-accent); }

main { padding-block: 24px 64px; display: grid; gap: 44px; }
section { display: grid; gap: 14px; scroll-margin-top: 140px; min-width: 0; }
h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; margin: 0; text-wrap: balance; }
.intro { color: var(--muted); margin: 0; max-width: 65ch; }
.part { display: grid; gap: 10px; padding-top: 28px; border-top: 4px solid var(--accent); scroll-margin-top: 140px; }
.part h2 { font-size: clamp(32px, 5vw, 42px); text-transform: uppercase; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.toc a:hover, .toc a:focus-visible { border-color: var(--accent); outline: none; }
.toc a.new::after { content: " NEW"; font-size: 10px; letter-spacing: .08em; color: var(--blue); font-weight: 800; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--line); color: var(--ink); }
.tag.money { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag.time { border-color: var(--blue); color: var(--blue); }
.tag.new { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.label { font-weight: 800; font-size: 15px; }
.when { font-size: 14px; color: var(--muted); }
button.star { flex: none; font-size: 20px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px 4px; border-radius: 6px; }
button.star.on { color: var(--star); }
button.star:focus-visible { outline: 3px solid var(--blue); }
pre { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; background: var(--code-bg); border-radius: 8px; padding: 12px 14px; color: var(--ink); border: 2px solid transparent; }
pre[contenteditable="true"] { border-color: var(--accent); outline: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions button, .actions a { font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 7px 12px; border-radius: 8px; text-decoration: none; border: 2px solid var(--line); background: transparent; color: var(--ink); }
.actions button.copy { background: var(--accent); border-color: var(--accent); color: var(--on-accent); min-width: 84px; }
.actions button:hover, .actions a:hover { border-color: var(--accent); }
.actions button:focus-visible, .actions a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.actions .done { background: var(--blue) !important; border-color: var(--blue) !important; color: var(--on-blue) !important; }
.actions .edit.on { border-color: var(--accent); color: var(--accent-ink); }
.extras { font-size: 12px; color: var(--muted); margin-left: auto; }

button.copy-all, button.more { font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 7px 14px; border-radius: 8px; background: transparent; color: var(--ink); border: 2px solid var(--line); }
button.copy-all:hover { border-color: var(--accent); }
button.copy-all.done { border-color: var(--blue); color: var(--blue); }
button.more { justify-self: start; font-size: 14px; padding: 9px 16px; color: var(--accent-ink); border: 2px dashed var(--accent); }
button.copy-all:focus-visible, button.more:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
section.collapsed .card.extra { display: none; }
body.filtering section .card.extra { display: grid; }
body.filtering .part, body.filtering section button.more, body.filtering header.hero { display: none; }
.suggest, .secmatch { display: flex; gap: 6px; overflow-x: auto; align-items: center; padding-bottom: 2px; scrollbar-width: thin; }
.suggest .sl, .secmatch .sl { flex: none; font-size: 13px; font-weight: 800; color: var(--muted); }
.suggest button, .secmatch button { flex: none; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--accent); background: transparent; color: var(--accent-ink); cursor: pointer; }
.suggest button, .secmatch button { gap: 6px; }
.secmatch button { border-style: solid; background: var(--surface); color: var(--ink); }
.secmatch button b { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.suggest button:hover, .suggest button:focus-visible, .secmatch button:hover, .secmatch button:focus-visible { border-color: var(--ink); outline: none; }
body.filtering .bar .suggest, body.filtering nav.chips { display: none; }
.nohits .suggest { flex-wrap: wrap; overflow: visible; }
mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.nohits { display: grid; gap: 10px; }
.status .sl { font-size: 13px; font-weight: 800; color: var(--muted); align-self: center; }
@media (max-width: 600px) { .bar nav.chips { display: none; } }
.results { display: grid; gap: 14px; }
.closenote { margin: 8px 0 0; font-weight: 800; color: var(--muted); }
.card .from { display: none; }
.results .card .from { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; justify-self: start; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.results .card .from b { color: var(--accent-ink); }
.results .card .from:hover b, .results .card .from:focus-visible b { text-decoration: underline; }
.results .card .from:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.results .card.extra { display: grid; }
body.filtering #why, body.filtering footer { display: none; }
.rescount { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; font-weight: 800; color: var(--accent-ink); }
.rescount button { font: inherit; font-size: 13px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.empty { color: var(--muted); }

.why { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.why li { padding-left: 18px; border-left: 3px solid var(--accent); }
details.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details.fold summary { cursor: pointer; font-family: var(--display); font-size: 22px; font-weight: 600; }
details.fold[open] summary { margin-bottom: 10px; }
#why { gap: 12px; }
footer { border-top: 1px solid var(--line); padding-block: 20px 40px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
footer p { margin: 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; z-index: 20; max-width: calc(100% - 32px); box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { .actions button, .tile { transition: background .15s ease, border-color .15s ease; } }
@media (max-width: 480px) { .extras { margin-left: 0; width: 100%; } }

.rule1 { display: grid; gap: 4px; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; }
.rule1 b { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.rule1 span { font-size: 14px; color: var(--muted); }
.rule1:hover, .rule1:focus-visible { border-color: var(--accent); outline: none; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--code-bg); }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 18px; }
.steps b { font-size: 16px; }
.steps span { font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }
/* Category boxes */
.boxes { display: grid; gap: 18px; }
.boxgroup { display: grid; gap: 8px; }
.boxgroup h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { position: relative; align-content: start; }
.tile .ct { font-size: 12px; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.tile.hot .ct { color: var(--on-accent); }
.tile.has-new { padding-right: 40px; }
.tile .nw { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--blue); }
.tile.hot .nw { color: var(--on-accent); }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { padding: 12px; } .tile b { font-size: 15px; } }

/* Phone comfort: 16px inputs (no zoom on iPhone), 40px+ tap targets */
.field input, .field textarea { font-size: 16px; }
button.star { min-width: 40px; min-height: 40px; display: grid; place-items: center; margin: -8px -8px 0 0; }
@media (max-width: 600px) {
  .actions button, .actions a, button.copy-all, button.more, nav.chips a, nav.chips button, .toc a, .suggest button, .secmatch button, .rescount button { min-height: 40px; display: inline-flex; align-items: center; }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .actions button.copy { grid-column: 1 / -1; }
  .actions a { justify-content: center; text-align: center; white-space: normal; line-height: 1.2; }
  .actions a.help { grid-column: 1 / -1; }
  .actions button, .actions a { justify-content: center; padding: 8px 4px; white-space: nowrap; min-height: 44px; box-sizing: border-box; }
  .actions button.copy { grid-column: 1 / -1; font-size: 16px; }
  .yours summary, details.fold summary { min-height: 40px; }
  .switch input { width: 24px; height: 24px; }
  .results .card .from { min-height: 32px; }
}
@media (max-width: 360px) {
  .actions button:not(.copy), .actions a { font-size: 12px; padding: 8px 2px; letter-spacing: -0.01em; }
  pre { font-size: 13.5px; padding: 12px; }
  .card { padding: 14px; }
  h2 { font-size: 24px; }
}

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.trust li { padding: 10px 12px 10px 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); position: relative; min-width: 0; }
.trust li::before { content: "✓"; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.trust b { color: var(--ink); }
/* Fill-in boxes inside prompts */
.card, .mstep, .mpanel, .missions { grid-template-columns: minmax(0, 1fr); }
.card > pre, .mstep > pre { min-width: 0; overflow-wrap: anywhere; }
pre .blank { font: inherit; font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--surface); border: 0; border-bottom: 2px dashed var(--accent); border-radius: 6px 6px 0 0; padding: 2px 6px; margin: 1px 0; min-width: 8ch; max-width: 100%; box-sizing: border-box; field-sizing: content; }
pre .blank::placeholder { color: var(--accent-ink); opacity: .9; }
pre .blank:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
pre .blank.filled { border-bottom-style: solid; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.actions a.help { border-style: dashed; color: var(--accent-ink); }
/* Missions */
.missions { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 2px solid var(--accent); }
.missions h2 { font-size: clamp(24px, 4.5vw, 30px); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mtile { position: relative; display: grid; align-content: start; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 44px; }
.mtile b { font-size: 16px; line-height: 1.25; }
.mtile span { font-size: 13px; color: var(--muted); }
.mtile .mt { font-size: 12px; font-weight: 800; color: var(--accent-ink); }
.mtile.done { border-color: var(--blue); }
.mtile.done .mt { color: var(--blue); }
.mtile.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.mtile:hover, .mtile:focus-visible { border-color: var(--accent); outline: none; }
.mpanel { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); scroll-margin-top: 90px; }
.mpanel h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.mpanel .why { margin: 0; color: var(--muted); }
.mbar { height: 10px; border-radius: 99px; background: var(--code-bg); overflow: hidden; }
.mbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; }
@media (prefers-reduced-motion: no-preference) { .mbar i { transition: width .3s ease; } }
.mstep { display: grid; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.mstep label.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.mstep label.chk input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--accent); }
.mstep.ok { border-color: var(--blue); }
.mstep.ok label.chk span { text-decoration: line-through; color: var(--muted); }
.mstep .nn { font-weight: 800; color: var(--accent-ink); margin-right: 4px; }
.mrow { display: flex; flex-wrap: wrap; gap: 8px; }
.mrow button, .mrow a { font: inherit; font-size: 14px; font-weight: 800; padding: 9px 14px; min-height: 44px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.mrow .primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mrow .stuck { border-style: dashed; color: var(--accent-ink); border-color: var(--accent); }
.mrow .done { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.mwin { margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 14%, var(--surface)); font-weight: 800; }
@media (max-width: 600px) { .mrow > * { flex: 1 1 auto; } .missions { padding: 14px; } }
.savedbtn { flex: none; font: inherit; font-size: 14px; font-weight: 800; padding: 0 14px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.savedbtn b { color: var(--star); }
.savedbtn.on { background: var(--star); border-color: var(--star); color: var(--on-accent); }
.savedbtn.on b { color: var(--on-accent); }
.bar .searchrow { display: flex; gap: 8px; align-items: stretch; flex-wrap: nowrap; }
#categories, #missions, .mpanel, details.pbox, main section { scroll-margin-top: 150px; }
@media (max-width: 400px) { .savedbtn .w { display: none; } .savedbtn { padding: 0 12px; } }
.searchrow .qwrap { flex: 1 1 auto; min-width: 0; }
.trust { grid-template-columns: 1fr 1fr; }
.trust li { font-size: 13px; padding: 8px 10px 8px 34px; }
.trust li::before { top: 8px; left: 10px; }
.mtile.hot { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.mtile.hot .mt { color: var(--accent-ink); }
.mlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.boxes { display: grid; gap: 10px; }
details.pbox { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; scroll-margin-top: 140px; }
details.pbox[open] { border-color: var(--accent); }
details.pbox summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; min-height: 44px; }
details.pbox summary::-webkit-details-marker { display: none; }
details.pbox .pn { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
details.pbox summary b { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.15; display: block; }
details.pbox summary small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
details.pbox summary .arr { font-size: 13px; font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
details.pbox summary .arr::after { content: "Open ▾"; }
details.pbox[open] summary .arr::after { content: "Close ▴"; }
details.pbox .tiles { padding: 0 14px 14px; }
@media (max-width: 420px) { details.pbox summary { grid-template-columns: auto 1fr; } details.pbox summary .arr { grid-column: 2; } }
body.viewing header.hero, body.viewing #why { display: none; }
.backbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 18px; }
.backbar button { font: inherit; font-size: 15px; font-weight: 800; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.backbar span { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.filtering .backbar, body.filtering .morein { display: none; }
.morein { display: grid; gap: 8px; padding-top: 8px; }
.morein h3 { margin: 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc { justify-self: start; font: inherit; font-size: 12px; font-weight: 800; padding: 4px 10px; min-height: 32px; border-radius: 999px; border: 2px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.pc.on { border-style: solid; border-color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--surface)); color: var(--ink); }
.gloss { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.gloss b { color: var(--ink); }
ol.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: how; }
ol.how li { counter-increment: how; position: relative; padding: 34px 10px 10px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); font-size: 14px; line-height: 1.35; min-width: 0; }
ol.how li::before { content: counter(how); position: absolute; top: 8px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.quick { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); border: 2px solid var(--blue); scroll-margin-top: 150px; }
.quick h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.quick .intro, .quick .note { margin: 0; }
.qfields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.qfields input { font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.qfields input:focus { outline: none; border-color: var(--accent); }
.qfields label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.qstat { margin: 0; font-weight: 800; color: var(--blue); }
.qstat:empty { display: none; }
.howto { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.howto span { white-space: nowrap; }
@media (max-width: 420px) { .howto span { white-space: normal; } .howto { display: grid; } }
.mgrid .mtile.hot { grid-column: 1 / -1; }
.mgrid .mtile.hot b { font-size: 20px; }
.mwin { display: grid; gap: 10px; }
.mwin p { margin: 0; }
details.pbox .pn { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); font-size: 18px; }
@media (max-width: 420px) { ol.how { grid-template-columns: 1fr; } ol.how li { padding: 10px 10px 10px 42px; } ol.how li::before { top: 9px; } }
.glab { margin: 4px 0 0; font-weight: 800; }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.goals button { font: inherit; font-size: 15px; font-weight: 800; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; text-align: left; }
.goals button:hover, .goals button:focus-visible { border-color: var(--accent); outline: none; }
.goals button.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.plan { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; }
.plan .intro, .plan .pmore { margin: 0; }
.plist { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.plist li::marker { font-weight: 800; color: var(--accent-ink); }
.plist button { width: 100%; text-align: left; font: inherit; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.plist button b { font-size: 16px; }
.plist button span { font-size: 13px; color: var(--muted); }
.plist button.done { border-color: var(--blue); }
.plist button:hover, .plist button:focus-visible { border-color: var(--accent); outline: none; }
.pmore a { font-weight: 800; }
.offers { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 2px solid var(--ink); scroll-margin-top: 150px; }
.offers h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.offers .intro { margin: 0; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ocard { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ocard b { font-size: 17px; }
.ocard p { margin: 0; font-size: 14px; }
.ocard span { font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.honest { margin: 0; font-size: 15px; }
.mhow { margin: 0 0 0 34px; font-size: 15px; color: var(--muted); line-height: 1.45; }
details.firsttime { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; }
details.firsttime[open] { border-color: var(--blue); padding-bottom: 12px; }
details.firsttime summary { cursor: pointer; font-weight: 800; padding: 12px 0; min-height: 44px; }
details.firsttime ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; }
.card .need { margin: 0; font-size: 14px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.card .gt { display: grid; gap: 4px; font-size: 14px; }
.card .gt p { margin: 0; }
@media (max-width: 420px) { .mhow { margin-left: 0; } }

/* ---- Declutter pass (Oct 2026): one clear path, short prompt previews, fewer choices at once ---- */
.hero-how { margin: 0; }
.hero-how span { white-space: normal; }
details.quickd { background: var(--surface); border: 2px solid var(--blue); border-radius: 14px; scroll-margin-top: 150px; }
details.quickd > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 14px 16px; min-height: 44px; position: relative; padding-right: 86px; }
details.quickd > summary::-webkit-details-marker { display: none; }
details.quickd > summary b { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
details.quickd > summary span { font-size: 14px; color: var(--muted); }
details.quickd > summary::after { content: "Open ▾"; position: absolute; right: 16px; top: 16px; font-size: 13px; font-weight: 800; color: var(--accent-ink); }
details.quickd[open] > summary::after { content: "Close ▴"; }
details.quickd .quick { border: 0; border-radius: 0 0 14px 14px; padding-top: 0; background: transparent; }
details.quickd .quick > h2, details.quickd .quick > .intro:first-of-type { display: none; }
.mgrid.short .mtile:nth-child(n+4):not(.active) { display: none; }
#mmore { justify-self: start; }
.rule1 { padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--blue); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.rule1 b { font-family: var(--body); font-size: 15px; font-weight: 800; }
.rule1 span { font-size: 14px; font-weight: 800; color: var(--accent-ink); }
.ask { margin-top: 6px; }
/* Prompt cards: short preview, tap to see it all */
.card:not(.open) > pre.long { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); cursor: pointer; }
.showfull { justify-self: start; font: inherit; font-size: 13px; font-weight: 800; color: var(--accent-ink); background: none; border: 0; padding: 4px 0; min-height: 36px; cursor: pointer; }
.showfull:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
section > button.more.secmore { justify-self: stretch; text-align: center; font-size: 15px; min-height: 48px; }

/* ---- Final calm pass: one main button per prompt, quieter extras ---- */
main section > .howto, .backbar span, .sec-title .tag { display: none; }
button.copy-all { border: 0; padding: 4px 0; min-height: 36px; color: var(--accent-ink); background: none; font-size: 13px; }
.card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.card .actions button.copy { flex: 0 0 auto; min-width: 160px; font-size: 16px; padding: 10px 22px; min-height: 46px; border-radius: 10px; margin-right: 8px; }
.card .actions a { border: 0; background: none; padding: 6px 8px; min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; color: var(--accent-ink); text-decoration: none; }
.card .actions a:hover { text-decoration: underline; }
.card .actions a.help { border: 0; }
.card .pc { min-height: 30px; font-size: 12px; padding: 2px 10px; }
@media (max-width: 600px) {
  .card .actions { display: flex; }
  .card .actions button.copy { flex: 1 1 100%; margin-right: 0; min-height: 50px; }
  .card .actions a { flex: 1 1 0; justify-content: center; padding: 6px 2px; }
}
.ideacall { display: grid; gap: 4px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--good, #0E7C66); background: color-mix(in srgb, #0E7C66 10%, var(--surface)); }
.ideacall b { font-size: 17px; line-height: 1.3; }
.ideacall span { font-size: 14px; color: var(--muted); }
.ideacall:hover, .ideacall:focus-visible { border-color: var(--accent); outline: none; }
.sprintnote{margin:14px 0 0;background:rgba(242,140,40,.14);border-left:6px solid #F28C28;border-radius:10px;padding:10px 14px;font-size:16px;line-height:1.45}
.sprintnote a{color:inherit;font-weight:800}
.catjump{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:14px 16px;margin:14px 0}
.cjh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 10px}.cjh b{font-family:var(--display);font-size:20px}.cjh span{font-size:13px;color:var(--muted)}
.cjgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:8px}
.cjb{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;font:inherit;color:inherit;background:transparent;border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;min-height:44px}
.cjb:hover{border-color:var(--accent)}.cjb:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.cjb .cji{grid-row:1/3;font-size:22px}.cjb b{font-size:15px;line-height:1.2}.cjb small{font-size:12px;color:var(--muted)}
.pbox summary small.pcount{font-weight:700;color:var(--muted);margin-top:2px}

/* Kickstand logo: the Kickstand website logo (Kickstand_2.html), the same as the course and the decks.
   Navy circle and amber stand, then the name in Hanken Grotesk 700. In dark mode the circle turns light blue so it shows. */
.ks-logo{--ks-ring:#1D2F6F;display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-family:'Hanken Grotesk',var(--display);font-weight:700;font-size:21px;letter-spacing:-.02em;line-height:1}
.ks-logo:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:6px}
.ks-mark{width:26px;height:26px;flex:none}
.ks-mark circle,.ks-mark path{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ks-mark circle{stroke:var(--ks-ring)}
.ks-mark path{stroke:#E9A23B}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ks-logo{--ks-ring:#A9BBFF} }
:root[data-theme="dark"] .ks-logo{--ks-ring:#A9BBFF}
.hero .ks-logo{margin-bottom:4px}

/* ===== The Prompt Library in the Kickstand website look (Kickstand_2.html), design step 4 =====
   Sandra 2026-11-17: "Yes, restyle both". The same look as the course's inside pages and the decks: cool gray page,
   white cards, navy for the brand, buttons and links, amber only as a highlight (and as the button color in dark mode,
   as on the website), Hanken Grotesk headings, Inter text. The fill-in boxes stay orange (amber), because the page says
   "Type your details in the orange boxes". Words unchanged. */
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --line: #E0E3EA; --ink: #0E1526; --muted: #5A6275;
  --accent: #1D2F6F; --accent-ink: #1D2F6F; --on-accent: #FFFFFF; --code-bg: #EEF0F4; --star: #9A5B0E; --amber: #E9A23B; --amber-tint: #FCEFD9;
  --shadow: 0 1px 2px rgba(14,21,38,.05), 0 8px 24px -12px rgba(14,21,38,.18);
  --display: 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A0F1C; --surface: #111829; --line: #232C44; --ink: #E7EAF1; --muted: #9AA3B8;
  --accent: #F0B04F; --accent-ink: #A9BBFF; --on-accent: #0A0F1C; --code-bg: #0E1424; --amber: #F0B04F; --amber-tint: rgba(240,176,79,.15); --blue: #A9BBFF } }
:root[data-theme="dark"] {
  --bg: #0A0F1C; --surface: #111829; --line: #232C44; --ink: #E7EAF1; --muted: #9AA3B8;
  --accent: #F0B04F; --accent-ink: #A9BBFF; --on-accent: #0A0F1C; --code-bg: #0E1424; --amber: #F0B04F; --amber-tint: rgba(240,176,79,.15); --blue: #A9BBFF }
body { -webkit-font-smoothing: antialiased; }
h1 { font-weight: 760; letter-spacing: -.035em; }
h2, h3 { letter-spacing: -.02em; }
/* the orange boxes you type into, and search highlights, stay amber */
pre .blank { border-bottom-color: var(--amber); }
pre .blank.filled { background: color-mix(in srgb, var(--amber) 18%, var(--surface)); }
mark { background: color-mix(in srgb, var(--amber) 38%, transparent); }
.sprintnote { background: var(--amber-tint); border-left-color: var(--amber); }
/* white cards with the website's soft shadow and thin lines instead of thick orange frames */
.yours, .missions, details.pbox, .plan { border-width: 1px; border-color: var(--line); box-shadow: var(--shadow); }
details.pbox[open] { border-color: var(--accent); }
.part { border-top: 1px solid var(--line); }
details.pbox .pn { background: var(--accent); color: var(--on-accent); }
.mtile.hot, .mtile.active { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
/* ===== Accessibility (WCAG 2.2 AA), 2026-11-17 ===== */
/* 2.4.1 skip link, the same as the course: hidden until you press Tab */
.skip{position:fixed;left:12px;top:-80px;z-index:1000;padding:12px 18px;border-radius:10px;background:#1D2F6F;color:#fff;font:600 16px/1 var(--body);text-decoration:none;transition:top .15s}
.skip:focus{top:12px;outline:3px solid #E9A23B;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.skip{transition:none}}
/* 2.4.11 Focus not hidden: the search bar stays pinned at the top, so the page keeps focused items below it */
html{scroll-padding-top:150px}
@media (max-width:640px){html{scroll-padding-top:170px}}
/* read by screen readers only (the "Copied" message) */
.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}
/* the title and newly shown prompts can take focus from the skip link and "Show more"; no ring around big blocks */
header.hero h1:focus,article.card[tabindex="-1"]:focus{outline:none}
article.card[tabindex="-1"]:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:12px}
/* 1.3.1 / 2.4.6 When a topic is open the top section is hidden; its title stays for screen readers as the page's main heading
   (same words), so the topic title still sits under it. Nothing changes on screen. */
body.viewing header.hero{display:block!important;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body.viewing header.hero>:not(h1){display:none!important}
#main h2:focus{outline:none}
/* 4.1.2 On small phones the Recent and Saved words are hidden to save room; keep them for screen readers, so the
   Recent button is not just "↺" */
@media (max-width: 400px) { .savedbtn .w { display: inline; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .savedbtn { position: relative; } }
