:root {
  --navy: #1f3864; --green: #456254; --mid: #739481; --sage: #a2b6a6; --ink: #292f31;
  --grey: #5f6b6d; --line: #d9dfda; --tint: #eef2ef; --risk: #b5651d; --bg: #ffffff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 "Segoe UI", Calibri, Arial, sans-serif; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand img { display: block; }
.draft-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
main { max-width: 1000px; margin: 0 auto; padding: 32px 16px 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; color: var(--green); margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--grey); max-width: 760px; }
.lead.small { font-size: 16px; }
.fine { font-size: 13px; color: var(--grey); }
.center { text-align: center; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.hero { padding: 24px 0 8px; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0; font-weight: 600; font-size: 14px; }
.chain span { background: var(--tint); color: var(--green); padding: 6px 12px; border-radius: 6px; }
.chain i { color: var(--sage); font-style: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.actions.spread { justify-content: space-between; }
.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 12px 20px; cursor: pointer; border: 2px solid var(--navy); text-decoration: none; display: inline-block; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: #172a4b; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.link { background: none; border-color: transparent; color: var(--grey); text-decoration: underline; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 40px; }
.price-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.price-card h3 { margin-bottom: 4px; }
.price-card p { margin: 4px 0; color: var(--grey); }
.price { font-size: 30px; font-weight: 700; color: var(--ink) !important; }
.price span { font-size: 16px; color: var(--grey); }

/* Wizard */
.progress { height: 6px; background: var(--tint); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.progress-bar { height: 100%; background: var(--green); transition: width .3s; }
.step-label { font-size: 13px; color: var(--grey); margin: 0 0 4px; }
.q { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 14px 0; }
.q.invalid { border-color: var(--risk); background: #fdf6f0; }
.q-label { display: block; font-weight: 600; margin-bottom: 8px; }
.opt { font-weight: 400; font-size: 12px; color: var(--grey); margin-left: 6px; }
.help { margin: -4px 0 10px; font-size: 14px; color: var(--grey); }
input[type=text], input[type=number] { font: inherit; padding: 10px 12px; border: 1px solid #b9c3bc; border-radius: 6px; width: 100%; max-width: 360px; }
.num { display: flex; align-items: center; gap: 10px; }
.num input { max-width: 180px; }
.num span { color: var(--grey); font-size: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: var(--tint); }
.follow-up { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--navy); background: #f5f7fb; border-radius: 6px; }
.follow-up.invalid { border-left-color: var(--risk); background: #fdf6f0; }
.follow-up textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #b9c3bc; border-radius: 6px; resize: vertical; }
.req { font-weight: 400; font-size: 12px; color: var(--risk); margin-left: 6px; }
input.locked { background: var(--tint); color: var(--ink); border-color: var(--line); cursor: not-allowed; }
.error { color: #b42318; font-weight: 600; min-height: 1.5em; }

/* Scorecard */
.results-actions { margin-top: 0; }
.scorecard { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 18px; }
.sc-head h2 { margin: 0; }
.sc-head p { margin: 2px 0 0; }
.sc-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-tile { background: var(--tint); border-radius: 10px; padding: 14px 16px; }
.kpi-tile p { margin: 0; font-size: 14px; }
.kpi-tile .big { font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.kpi-tile .big small { font-size: 16px; color: var(--grey); font-weight: 400; }
.band { font-weight: 700; }
.band.good { color: var(--green); } .band.mid { color: #8a7a1e; } .band.risk { color: var(--risk); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 14px; }
.areas { display: grid; grid-template-columns: minmax(120px, 45%) 1fr; gap: 10px 12px; align-items: center; font-size: 14px; }
.area-score { display: flex; align-items: center; gap: 8px; }
.area-score b { width: 2em; text-align: right; }
.ws-block { margin-bottom: 14px; }
.ws-block .areas { grid-template-columns: minmax(160px, 55%) 1fr; }
.ws-block .area-score b { width: auto; text-align: left; }
.bar { flex: 1; height: 10px; background: #e4e9e5; border-radius: 5px; overflow: hidden; }
.fill { height: 100%; } .fill.good { background: var(--green); } .fill.mid { background: var(--mid); } .fill.risk { background: var(--risk); }
.na { color: var(--grey); font-size: 13px; }
.wins { margin: 0; padding-left: 20px; font-size: 14px; }
.wins li { margin-bottom: 6px; }
.chain-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.chain-table th { background: var(--navy); color: #fff; text-align: left; padding: 8px; font-weight: 600; }
.chain-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.money { font-weight: 700; white-space: nowrap; }
.basis { font-weight: 400; font-size: 11px; color: var(--grey); white-space: normal; }
.sc-foot { font-size: 12px; color: var(--grey); margin: 14px 0 0; }
.assumptions { margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.assumptions summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.assumptions form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.assumptions label { font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.cta { background: var(--tint); border-radius: 12px; padding: 24px; margin-top: 24px; }
.confirm-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08); }
.confirm-box .actions { margin: 8px 0 0; }
.confirm-status { margin: 0; }
.confirmed-tag { background: var(--green); color: #fff; margin-right: 6px; }
/* Scorecard guide (dialog) */
dialog.guide { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
dialog.guide::backdrop { background: rgba(31, 56, 100, .35); }
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 2px solid var(--navy); position: sticky; top: 0; background: #fff; }
.guide-head h2 { margin: 0; font-size: 22px; }
.guide-head .btn { padding: 8px 14px; }
.guide-body { padding: 8px 22px 22px; overflow-y: auto; max-height: calc(100vh - 130px); }
.guide-body section { border-bottom: 1px solid var(--line); padding: 14px 0; scroll-margin-top: 8px; }
.guide-body section:last-child { border-bottom: 0; }
.guide-body h3 { margin: 0 0 6px; }
.guide-body p, .guide-body li, .guide-body dd { font-size: 15px; }
.guide-lead { font-size: 16px !important; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.guide-toc a { font-size: 13px; background: var(--tint); color: var(--green); text-decoration: none; padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.guide-defs dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.guide-defs dd { margin: 2px 0 0; }
.guide-example { background: var(--tint); border-left: 4px solid var(--green); border-radius: 6px; padding: 8px 12px; margin: 8px 0; }
.guide-example p, .guide-example ul, .guide-example ol { margin: 4px 0; }
.guide-ex-title { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.guide-note { font-style: italic; color: var(--grey); }
@media (max-width: 600px) { .guide-head, .guide-body { padding-left: 14px; padding-right: 14px; } .guide-head h2 { font-size: 18px; } }
.guide-head-actions { display: flex; gap: 8px; }
.guide-print { display: none; }
@media print {
  body.printing-guide > *:not(#guide-print) { display: none !important; }
  body.printing-guide #guide-print { display: block; font-size: 11pt; }
  .guide-print-head { border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 8px; }
  .guide-print-head h1 { font-size: 20pt; margin: 6px 0 2px; }
  .guide-print-head p { margin: 0; color: var(--grey); font-size: 9pt; }
  .guide-print .guide-toc { display: none; }
  .guide-print section { break-inside: auto; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .guide-print .guide-defs dt { break-after: avoid; }
  .guide-print h3 { font-size: 13pt; margin: 0 0 4px; break-after: avoid; }
  .guide-print p, .guide-print li, .guide-print dd { font-size: 10.5pt; }
  .guide-print .guide-example { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guide-print .guide-defs dd { break-inside: avoid; }
  .guide-print-foot { font-size: 8pt !important; color: var(--grey); margin-top: 10px; }
}

/* Signed-in pieces: top bar, My value cases, save status */
.userbar { display: flex; align-items: center; gap: 8px; }
.userbar .btn { padding: 6px 10px; }
.small-btn { font-size: 14px; }
.new-case { margin: 20px 0; }
.new-case label { font-weight: 600; display: block; margin-bottom: 6px; }
.new-case-row { display: flex; flex-wrap: wrap; gap: 10px; }
.new-case-row input { flex: 1 1 260px; max-width: none; }
.case-list { list-style: none; padding: 0; margin: 0 0 20px; }
.case-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.case-item b { display: block; color: var(--navy); }
.new-case-where { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.new-case-where .inline-label { display: inline; margin: 0; font-weight: 600; }
.new-case-where select { font: inherit; padding: 8px 10px; border: 1px solid #b9c3bc; border-radius: 6px; max-width: 100%; }
.team-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); background: var(--tint); border-radius: 99px; padding: 2px 8px; margin: 2px 0 2px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.case-actions .btn { padding: 8px 14px; }
.save-status { margin-left: 10px; color: var(--green); font-weight: 600; }
.save-status.bad { color: var(--risk); }
.sample-flag { display: inline-block; background: var(--tint); color: var(--green); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; margin: 0 0 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.footer { text-align: center; font-size: 12px; color: var(--grey); padding: 24px 16px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .sc-top, .sc-grid { grid-template-columns: 1fr; }
  .scorecard { padding: 16px; }
  .chain-table thead { display: none; }
  .chain-table, .chain-table tbody, .chain-table tr, .chain-table td { display: block; width: 100%; }
  .chain-table tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .chain-table td { border: 0; padding: 4px 0; }
}

@media print {
  @page { size: letter; margin: 0.4in; }
  body { font-size: 11px; }
  .topbar, .no-print, .footer { display: none !important; }
  main { padding: 0; max-width: none; }
  .scorecard { border: 0; padding: 0; }
  .sc-top, .sc-grid { grid-template-columns: repeat(3, 1fr); }
  .sc-grid { grid-template-columns: 1fr 1fr; }
  .kpi-tile .big { font-size: 26px; }
  .chain-table { font-size: 10px; }
  .chain-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kpi-tile, .bar, .fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr { break-inside: avoid; }
}
/* Scorecard PDF download: no outer card frame (it would be clipped at the page edge). */
body.pdf-export .scorecard { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; width: 700px !important; max-width: 700px !important; box-sizing: border-box; } /* fits inside Letter width minus 10 mm margins (about 736 px), with room to spare */
/* Landing: main column (hero + pricing) with "Less effort, more value." cards stacked down the side. */
main:has(> #view-landing:not([hidden])) { max-width: 1240px; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.landing-main .pricing { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.landing-main .hero { padding-top: 4px; }
.landing-main .lead { font-size: 17px; }
.landing-main .chain { margin: 14px 0; }
.landing-main .price-card .price { margin: 2px 0; }
.landing-main .fine.center { margin: 6px 0; }
.landing-main .price-card { padding: 14px; }
.landing-main .price-card p:not(.price) { font-size: 14px; }
.why { background: var(--tint); border-radius: 12px; padding: 20px; margin-top: 24px; }
.why h2 { color: var(--navy); font-size: 22px; margin: 0 0 12px; }
.why-grid { display: grid; gap: 12px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.why-card h3 { color: var(--green); font-size: 16px; margin: 0 0 4px; }
.why-card p { margin: 0; font-size: 14px; }
.why-line { font-weight: 600; color: var(--navy); font-size: 14px; margin: 14px 0 0; }
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; gap: 8px; }
  .why { margin-top: 16px; }
}

/* "How to find this in ServiceNow" panels under number questions */
.howto { margin: 4px 0 8px; font-size: 13px; }
.howto summary { cursor: pointer; color: #1f3864; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.howto summary::-webkit-details-marker { display: none; }
.howto-q { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #1f3864; color: #fff; font-size: 12px; align-items: center; justify-content: center; }
.howto[open] { background: #f3f6f4; border-radius: 8px; padding: 8px 12px; }
.howto dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0 4px; }
.howto dt { font-weight: 600; color: #3a4446; }
.howto dd { margin: 0; }
.howto code { font-size: 12px; }
.howto-note { color: #5f6b6d; font-size: 12px; margin: 4px 0 0; }
@media (max-width: 600px) { .howto dl { grid-template-columns: 1fr; } }

/* Workstream notice on step 1: must be hard to miss (team plans share one set across every case) */
.ws-callout { border: 1px solid var(--sage); background: var(--tint); border-radius: 10px; padding: 12px 16px; margin: 8px 0 12px; font-size: 14px; }
.ws-callout p { margin: 4px 0; }
.ws-callout-title { font-weight: 700; color: var(--green); font-size: 15px; }

/* Downloads are locked until findings are confirmed */
.download-note { background: #fff7ef; border: 1px solid #e3b98f; border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 4px 0 12px; }
.results-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Combine confirmed cases into one scorecard */
.combine-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.combine-pick { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--green); margin-right: 10px; cursor: pointer; }
/* Buy from the landing page: workstreams, then a plan card with its own Buy button (Charles, 2026-10-21). */
.watch-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; font-size: 15px; }
.watch-links a { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--green); }
.watch-links a:hover { background: #36503f; border-color: #36503f; }
.buy { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.buy h2 { color: var(--navy); font-size: 22px; margin: 0 0 8px; }
.buy-step { margin: 12px 0 8px; font-size: 15px; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ws-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; cursor: pointer; background: #fff; }
.ws-chip.on { border-color: var(--green); background: var(--tint); font-weight: 600; }
.ws-chip:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.price-card { display: flex; flex-direction: column; }
.price-card .buy-btn { margin-top: auto; width: 100%; }
.price-card .buy-note { font-size: 12px !important; min-height: 1em; }
.price-card.recommended { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.buy-btn:disabled { opacity: .45; cursor: not-allowed; }
form.stack { display: grid; gap: 6px; max-width: 460px; }
form.stack .btn { margin-top: 10px; justify-self: start; }
.price-card .buy-note.warn { color: var(--risk); font-weight: 600; }
.ws-lock-note { margin-top: 10px !important; padding: 10px 12px 10px 36px; background: #fff; border: 1px solid var(--sage); border-radius: 8px; color: var(--ink); position: relative; }
.ws-lock-note::before { content: "i"; position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font: 700 12px/18px Georgia, serif; text-align: center; }
.q.conflict { border: 2px solid #b42318; background: #fef3f2; position: relative; }
.q.conflict::after { content: "Check this"; position: absolute; top: 10px; right: 12px; background: #b42318; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.q.conflict input { border-color: #b42318; }
/* The trademark notice is in the page footer on screen; the downloaded scorecard PDF still carries it. */
.pdf-only { display: none; }
body.pdf-export .pdf-only { display: block; }
/* Small, quiet "Reset to defaults" in the bottom-right of the planning assumptions box (Charles, 2026-10-22). */
.assumptions .btn.reset-small { grid-column: 1 / -1; justify-self: end; font-size: 13px; padding: 5px 12px; border: 1px solid var(--navy); background: #e8eef8; color: var(--navy); border-radius: 6px; }
.assumptions .btn.reset-small:hover { background: #d6e0f2; }
/* Planning inputs grouped by workstream (Charles, 2026-10-22). */
.assumptions form { display: block; }
.pi-group { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pi-group legend { font-weight: 700; color: var(--green); padding: 0 8px 0 0; font-size: 15px; }
.assumptions label .opt { font-size: 12px; color: var(--grey); font-weight: 400; }
.assumptions label.pi-blank input { border: 2px solid #b42318; background: #fef3f2; }
.pi-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pi-wait { border: 2px solid #b42318; background: #fef3f2; border-radius: 12px; padding: 20px 24px; }
.pi-wait h2 { margin: 0 0 6px; color: #b42318; }
/* Action plan: three colored windows with action cards (Charles, 2026-10-22). Colors match the deck. */
.plan-block { margin-top: 24px; }
.plan-block h3 { margin-bottom: 2px; }
.plan-sub { color: var(--grey); margin: 0 0 12px; font-size: 14px; }
.plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.plan-col { background: #f7f9f8; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.plan-head { color: #fff; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-col.h30 .plan-head { background: var(--green); }
.plan-col.h60 .plan-head { background: var(--mid); }
.plan-col.h90 .plan-head { background: var(--navy); }
.plan-when { font-size: 17px; font-weight: 700; }
.plan-kind { font-size: 13px; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.plan-meta { width: 100%; font-size: 13px; opacity: .9; }
.plan-card { background: #fff; margin: 10px; padding: 12px 14px; border-radius: 10px; box-shadow: 0 1px 3px rgba(31, 56, 100, .12); border-left: 4px solid var(--sage); break-inside: avoid; }
.plan-col.h30 .plan-card { border-left-color: var(--green); }
.plan-col.h60 .plan-card { border-left-color: var(--mid); }
.plan-col.h90 .plan-card { border-left-color: var(--navy); }
.plan-title { font-weight: 700; color: var(--navy); margin: 0 0 6px; font-size: 15px; }
.plan-tags { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-tags .tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.tag.effort-low { background: #e3efe7; color: #2f5a3f; }
.tag.effort-medium { background: #fdf1dc; color: #8a5a10; }
.tag.effort-high { background: #fbe4e2; color: #9b2c22; }
.tag.value { background: var(--navy); color: #fff; }
.tag.nonfin { background: var(--tint); color: var(--grey); }
.plan-action { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.45; }
.plan-none { margin: 12px 14px; color: var(--grey); font-size: 13px; }
@media (max-width: 860px) { .plan-cols { grid-template-columns: 1fr; } }
/* Results toolbar: Refine on the left, download tiles on the right (Charles, 2026-10-22). */
.results-bar { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 16px; align-items: stretch; background: #f7f9f8; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; position: relative; }
.rb-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.rb-group { display: flex; flex-direction: column; align-items: flex-start; }
.rb-refine { border-right: 1px solid var(--line); padding-right: 16px; }
.btn.rb-edit { background: var(--green); border-color: var(--green); color: #fff; font-size: 16px; padding: 11px 18px; }
.btn.rb-edit:hover { background: #36503f; border-color: #36503f; }
.rb-hint { margin: 8px 0 6px; font-size: 13px; color: var(--grey); }
.btn.link.rb-guide { padding: 2px 0; text-align: left; color: var(--navy); font-weight: 600; }
.rb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.rb-tile { font: inherit; text-align: left; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; box-shadow: 0 1px 3px rgba(31, 56, 100, .10); transition: box-shadow .15s, transform .15s; }
.rb-tile:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(31, 56, 100, .18); transform: translateY(-1px); }
.rb-tile:disabled { opacity: .5; cursor: not-allowed; }
.rb-badge { grid-row: 1 / 3; font-size: 11px; font-weight: 800; color: #fff; border-radius: 6px; padding: 10px 6px; min-width: 44px; text-align: center; letter-spacing: .04em; }
.rb-badge.pptx { background: #c4502c; } .rb-badge.docx { background: #2b5797; } .rb-badge.pdf { background: #b42318; }
.rb-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.rb-sub { font-size: 12px; color: var(--grey); }
.btn.link.rb-restart { grid-column: 1 / -1; justify-self: end; padding: 0; margin-top: -6px; font-size: 13px; }
@media (max-width: 860px) { .results-bar { grid-template-columns: 1fr; } .rb-refine { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; } .rb-tiles { grid-template-columns: 1fr; } }
@media print { .results-bar { display: none; } }
/* Plan status (Charles, 2026-10-22): top-bar chip and a strip on the scorecard. Amber in the last 7 days. */
.plan-chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); background: var(--tint); border: 1px solid var(--sage); border-radius: 99px; padding: 4px 10px; margin-right: 6px; white-space: nowrap; }
.plan-chip.warn, .plan-strip.warn { background: #fdf1dc; border-color: #e0b25a; color: #8a5a10; }
.plan-strip { margin: 0 0 14px; padding: 10px 14px; background: var(--tint); border: 1px solid var(--sage); border-radius: 10px; font-size: 14px; color: var(--ink); }
@media (max-width: 600px) { .plan-chip { display: none; } }
.tile-link { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--navy); }
.tile-link:hover { border-bottom-style: solid; }
body.pdf-export .tile-link { border-bottom: 0; }
/* Sign out at the top right of every page (Charles, 2026-10-22). */
.userbar form.inline { display: inline; margin: 0; }
.btn.link.signout { color: var(--navy); }
/* Data period reminder on each workstream step; stays in view while scrolling (Charles, 2026-10-22). */
.period-banner { position: sticky; top: 0; z-index: 5; background: #eef3fb; border: 1px solid #b9c8e3; border-left: 5px solid var(--navy); border-radius: 10px; padding: 10px 14px 10px 40px; margin: 6px 0 14px; font-size: 14px; color: var(--ink); box-shadow: 0 2px 6px rgba(31, 56, 100, .08); }
.period-banner::before { content: "\1F4C5"; position: absolute; left: 12px; top: 9px; font-size: 16px; }
/* Welcome back and read-only cases (Charles, 2026-10-22). */
.welcome-back { background: var(--tint); border: 1px solid var(--sage); border-left: 5px solid var(--green); border-radius: 12px; padding: 16px 20px; margin: 4px 0 18px; }
.welcome-back h2 { margin: 0 0 6px; color: var(--green); font-size: 22px; }
.welcome-back p { margin: 6px 0; }
.team-tag.ended-tag { background: #fdf1dc; color: #8a5a10; }
/* Our data commitments page (Charles, 2026-10-22). */
.data-page { max-width: 980px; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 22px 0; }
.dc-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(31, 56, 100, .08); }
.dc-card h2 { font-size: 17px; color: var(--navy); margin: 0 0 6px; }
.dc-card p { margin: 0; font-size: 14px; }
.dc-keep { background: var(--tint); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.dc-keep h2 { margin: 0 0 8px; color: var(--green); font-size: 20px; }
.dc-keep li { margin-bottom: 6px; }
