/* Trustworthy Cleaning instant quote. Layout and motion after Mondaysys' "Quote Calculator & Estimate
   Booking UI" (dribbble.com/shots/27598039); colour, type and voice from trustworthycleaningserv.com. */

:root {
  --navy: #07264f;        /* the site's most-used colour: header, footer, headings */
  --ink: #12203a;
  --blue: #0b60dd;        /* --azul: links and the site's CTA */
  --blue-deep: #0a4cae;   /* --azul-hondo */
  --gold: #fbbc05;        /* the stars in the logo; the site's accent */
  --gold-deep: #e5aa00;
  --gold-ink: #6b5200;
  --cream: #fff7d6;       /* the site's soft gold surface */
  --coral: #f06e48;       /* --coral: the site's phone / alert colour */
  --coral-soft: #fde9e3;
  --coral-ink: #8a3a1f;
  --green: #1f8a4c;
  --green-soft: #e5f6ec;
  --bg: #eff4fd;        /* --nube: the site's cloud blue */
  --card: #ffffff;
  --well: #f3f6fb;        /* --nube, cooled */
  --line: #d9dee6;
  --line-2: #e8ecf2;
  --muted: #6a7789;       /* --humo */
  --carbon: #343434;      /* --carbon */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 42, 107, .06), 0 8px 24px rgba(10, 42, 107, .08);
  --font: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 520ms;
  --tb-h: 52px;
  --z-bar: 40; --z-top: 50; --z-toast: 90;
}
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); ascent-override: 88.96%; descent-override: 21.28%; size-adjust: 98.7%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 520px at 50% -120px, #ffffff 0%, var(--bg) 70%) no-repeat, var(--bg); color: var(--ink); font: 500 15px/1.45 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.input:focus-visible { outline: none; }
a, button, label.opt, label.chip, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 1rem; top: -4rem; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .75rem; background: var(--navy); color: #fff; border-radius: var(--radius-sm); z-index: var(--z-toast); }
.skip:focus { top: calc(var(--tb-h) + .5rem); }

/* Small caps labels used everywhere, as in the reference */
.cap { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-top); height: var(--tb-h); background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 20px; }
.tb-brand { display: flex; align-items: center; gap: 12px; min-width: 44px; min-height: 44px; color: #fff; text-decoration: none; }
.tb-brand img { height: 36px; width: auto; }
.tb-brand .cap { color: #c9d3e6; white-space: nowrap; }
.tb-step { display: flex; align-items: center; gap: 12px; }
.tb-step .cap { color: #c9d3e6; white-space: nowrap; }
.tb-track { width: 150px; height: 3px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; }
.tb-fill { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 2px; transition: width var(--dur) var(--ease); }
.tb-ref { text-align: right; font-size: 11.5px; color: #c9d3e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- stage ---------- */
.stage { max-width: 1240px; margin: 26px auto 0; padding: 0 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1024px) { .stage { grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; } .stage > .card-live { position: sticky; top: calc(var(--tb-h) + 20px); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-form { padding: 24px 28px 28px; }
.card-live { padding: 22px 22px 24px; }
@media (max-width: 560px) { .card-form { padding: 20px 18px 22px; } }

/* Summary strip ("YOUR HOME ... Edit") */
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--well); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 18px; }
.summary-text { font-size: 13.5px; color: var(--ink); }
.summary-text strong { font-weight: 700; }
.btn-link { background: none; border: 0; padding: 4px 0; min-height: 0; color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Sections */
.step-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin-bottom: 4px; }
.step-lede { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.stars { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--gold); font-size: 15px; letter-spacing: .06em; }
.stars span:last-child { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.sec + .sec, .sec + .row2, .row2 + .sec { margin-top: 26px; }
.row2 > .sec { margin-top: 0; }
.quote-head + .row2 { margin-top: 20px; }
.contact-grid > div { display: grid; gap: 12px; }
.contact-grid .row2 { margin-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sec-hint { font-size: 12px; color: var(--muted); text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .sec-head { flex-direction: column; align-items: flex-start; gap: 3px; } .sec-hint { text-align: left; } }

/* Option rows */
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; cursor: pointer; min-height: 56px; transition: background 90ms linear, border-color 90ms linear, box-shadow 90ms linear; }
.opt:hover { border-color: #b9c3d3; }
.opt input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid #9aa6b8; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: border-color 90ms linear; }
.opt input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 140ms var(--ease); }
.opt input:checked { border-color: var(--ink); }
.opt input:checked::after { transform: scale(1); }
.opt:has(input:checked) { background: var(--cream); border-color: var(--navy); box-shadow: inset 0 0 0 .5px var(--navy); }
.opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.opt-title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.opt-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.opt-price { font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.opt-price.muted { color: var(--muted); font-weight: 600; }

/* Stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 16px; min-height: 62px; }
.stepper-sub:empty { display: none; }
.stepper-val { font-size: 17px; font-weight: 800; line-height: 1.1; }
.stepper-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step-btns { display: flex; gap: 6px; }
.step-btn { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.step-btn:hover:not(:disabled) { background: var(--well); }
.step-btn:disabled { opacity: .35; cursor: default; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 44px; font-size: 13px; font-weight: 700; background: #fff; cursor: pointer; transition: background 90ms linear, border-color 90ms linear; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip small { font-size: 12px; font-weight: 500; color: var(--muted); }
.chip:hover { border-color: #b9c3d3; }
.chip:has(input:checked) { background: var(--gold); border-color: var(--gold-deep); color: #171717; }
.chip:has(input:checked) small { color: #5a4600; }
.chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip:has(input:disabled) { background: var(--well); color: var(--muted); cursor: default; border-style: dashed; }

/* Fields */
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; }
.field label .opt-sub { display: inline; margin-left: 4px; font-weight: 500; }
.input { width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; min-height: 48px; background: #fff; font-size: 16px; transition: border-color 120ms linear; }
.input:focus { border-color: var(--blue); box-shadow: none; }
.input[aria-invalid="true"] { border-color: var(--coral); }
textarea.input { min-height: 84px; resize: vertical; }
.err { font-size: 12.5px; color: var(--coral-ink); min-height: 0; }
.err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--muted); }
.ok { font-size: 12.5px; color: var(--green); font-weight: 600; }
.zip-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 12px; align-items: center; }
@media (max-width: 560px) { .zip-row { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--carbon); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.consent-note { grid-column: 2; font-size: 12px; color: var(--muted); }
.consent-note:empty { display: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Contact step photo */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact-photo { display: none; } }
.contact-photo { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.contact-photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }
.contact-photo figcaption { font-size: 12px; color: var(--muted); padding: 10px 12px; background: var(--well); border-top: 1px solid var(--line-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 12px 22px; min-height: 48px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background 120ms linear, border-color 120ms linear, transform 120ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--well); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.nav .err { flex: 1; text-align: right; }

/* Quote and other end states */
.quote-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.quote-price { font-size: 48px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.quote-price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.quote-meta { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.quote-ref { font-size: 12px; color: var(--muted); text-align: right; }
.list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; }
.breakdown { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; }
.breakdown li span:last-child { font-weight: 700; }
.breakdown li.total { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 4px; font-weight: 800; }
.next-box { margin-top: 20px; background: var(--well); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--carbon); }
.next-box h3 { font-size: 13.5px; font-weight: 800; margin-bottom: 6px; }
.next-steps { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.next-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.next-steps li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quote-photo { margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.quote-photo img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; height: auto; }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border: 1px solid #f1dd93; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; color: var(--carbon); }
.callout strong { color: var(--ink); }

/* ---------- live estimate card ---------- */
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag-recalc { font-size: 11.5px; font-weight: 700; color: var(--green); }
.tag-recalc.flash { animation: flash 700ms var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: translateY(2px); } 30% { opacity: 1; transform: none; } 100% { opacity: 1; } }
.price { display: flex; align-items: flex-start; gap: 3px; margin: 14px 0 4px; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; min-height: 1em; }
.price .cur { color: var(--gold); font-size: .55em; margin-top: .14em; font-weight: 800; }
.num { display: inline-flex; height: 1em; overflow: hidden; }
.col { position: relative; width: .58em; height: 1em; overflow: hidden; }
.reel { display: flex; flex-direction: column; transform: translateY(calc(var(--pos, 0) * -1em)); transition: transform var(--dur) var(--ease); will-change: transform; }
.reel span { display: block; height: 1em; line-height: 1; text-align: center; }
.sep { width: .26em; text-align: center; height: 1em; line-height: 1; }
.col.enter { animation: colIn 260ms var(--ease); }
@keyframes colIn { from { width: 0; opacity: 0; } to { width: .58em; opacity: 1; } }
.price-text { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 16px 0 6px; }
.price-unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.range { position: relative; margin: 14px 0 0; height: 30px; }
.range-track { position: absolute; left: 0; right: 0; top: 4px; height: 3px; background: var(--line-2); border-radius: 2px; }
.range-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--gold); border-radius: 2px; transition: width var(--dur) var(--ease); }
.range-tick { position: absolute; top: -4px; width: 2px; height: 11px; background: var(--ink); left: 0; transform: translateX(-1px); transition: left var(--dur) var(--ease); }
.range-label { position: absolute; top: 14px; font-size: 11.5px; color: var(--muted); font-weight: 600; transform: translateX(-50%); transition: left var(--dur) var(--ease); white-space: nowrap; }
.live-desc { font-size: 13px; color: var(--muted); margin: 14px 0 0; padding: 0 0 14px; border-bottom: 1px solid var(--line-2); line-height: 1.5; }
.live-desc strong { color: var(--ink); font-weight: 700; }
.drivers-cap { margin-top: 14px; }
.drivers { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.drv { display: grid; grid-template-columns: 112px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 12.5px; }
.drv-bar { height: 7px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.drv-fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; transition: width var(--dur) var(--ease); }
.drv.top .drv-fill { background: var(--gold); }
.drv-val { text-align: right; font-weight: 700; color: var(--carbon); white-space: nowrap; }
.drv.zero .drv-val { color: var(--muted); font-weight: 500; }
.live-note { margin-top: 14px; background: var(--coral-soft); color: #5a2a1c; font-size: 12.5px; line-height: 1.45; padding: 10px 12px; border-radius: 6px; border-left: 3px solid var(--coral); }
.live-cta { margin-top: 16px; }
.office-link { display: block; width: 100%; text-align: center; margin-top: 10px; font-size: 12.5px; }
.cta-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- footer band ---------- */
.band { background: var(--navy); color: #fff; margin-top: 8px; }
.band-in { max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band-brand { display: flex; align-items: center; gap: 14px; }
.band-brand img { height: 46px; width: auto; }
.band-name { font-weight: 800; font-size: 15px; }
.band-tag { font-size: 12.5px; color: #c9d3e6; }
.band-sel { text-align: right; }
.band-sel .cap { color: #8ea0bf; }
.band-text { font-size: 17px; font-weight: 800; margin-top: 4px; display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
.band-value { color: var(--gold); }
.band-foot { max-width: 1240px; margin: 0 auto; padding: 0 24px 14px; font-size: 12px; color: #8ea0bf; display: flex; gap: 0 18px; flex-wrap: wrap; align-items: center; }
.band-foot a { color: #c9d3e6; display: inline-flex; align-items: center; min-height: 44px; }
.band-foot span { display: inline-flex; align-items: center; min-height: 44px; }
.band-foot .band-concept { flex-basis: 100%; min-height: 0; padding-bottom: 4px; }
@media (max-width: 760px) { .band-sel { text-align: left; } .band-text { justify-content: flex-start; } }

/* ---------- mobile live bar + sheets ---------- */
.live-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.live-bar button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 16px; cursor: pointer; text-align: left; }
.live-bar .bar-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.live-bar .bar-btn { background: var(--blue); border-radius: 999px; padding: 11px 16px; font-weight: 700; font-size: 13.5px; color: #fff; }
@media (max-width: 1023.98px) { .stage > .card-live { display: none; } .stage { padding-bottom: 96px; } .band { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { .live-bar { display: none; } }
body:has(#live-dlg[open]) .live-bar, body:has(#office-dlg[open]) .live-bar { visibility: hidden; }
@media (max-width: 720px) { .tb-ref { display: none; } .topbar { grid-template-columns: auto 1fr; } .tb-step { justify-content: flex-end; } .tb-track { width: 90px; } }
@media (max-width: 480px) { .tb-brand .cap { display: none; } .price { font-size: 56px; } }

dialog { border: 0; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 2px 4px rgba(10, 42, 107, .08), 0 18px 48px rgba(10, 42, 107, .14); }
dialog::backdrop { background: rgba(7, 38, 79, .55); }
.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 90dvh; border-radius: 18px 18px 0 0; overflow: auto; overscroll-behavior: contain; }
@media (min-width: 640px) { .sheet { margin: auto; width: min(40rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); max-height: 86dvh; border-radius: 10px; } }
.dlg-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; background: var(--card); border-bottom: 1px solid var(--line-2); }
.dlg-head h2 { font-size: 15px; font-weight: 800; }
.dlg-body { padding: 16px 18px 20px; }
.dlg-body .card-live { border: 0; box-shadow: none; padding: 0; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.btn-icon:hover { background: var(--well); }

/* ---------- office view (lead score, workflows, CRM payload) ---------- */
.osec + .osec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.osec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.osec-head h3 { font-size: 14px; font-weight: 800; }
.osec-head code { font-size: 11.5px; color: var(--muted); }
code, .json { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code { font-size: .92em; background: var(--well); padding: 1px 5px; border-radius: 4px; }
.temp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.temp-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--well); color: var(--muted); }
.temp-chip[data-tier="A"] { background: var(--coral-soft); color: var(--coral-ink); }
.temp-chip[data-tier="B"] { background: var(--cream); color: var(--gold-ink); }
.temp-chip[data-tier="C"] { background: #e3edfd; color: var(--tinta, #0a3f8f); }
.temp-pts { font-size: 13px; color: var(--muted); }
.temp-pts strong { font-size: 20px; color: var(--ink); }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; }
.meter i { display: block; height: 5px; border-radius: 3px; background: var(--line-2); }
.meter[data-tier="C"] i:nth-child(1), .meter[data-tier="B"] i:nth-child(-n+2), .meter[data-tier="A"] i { background: var(--gold); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rules li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; font-size: 13px; min-height: 30px; }
.rules li[data-state="pending"] { color: var(--muted); }
.rules li[data-state="missed"] { color: var(--muted); text-decoration: line-through; text-decoration-color: #b9c3d3; }
.rule-mark { display: grid; place-items: center; color: var(--muted); }
.rules li[data-state="earned"] .rule-mark { color: var(--green); }
.rules li[data-state="earned"][data-neg] .rule-mark { color: var(--coral); }
.rule-pts { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; min-width: 34px; text-align: center; }
.rules li[data-state="earned"] .rule-pts { background: var(--cream); color: var(--gold-ink); border-color: transparent; }
.rules li[data-state="earned"][data-neg] .rule-pts { background: var(--coral-soft); color: var(--coral-ink); }
.pending-note { font-size: 11.5px; color: var(--muted); }
.rule-text { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.route li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.route .wf { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; color: var(--blue); padding-top: 2px; }
.route li[data-state="waiting"] { color: var(--muted); }
.route small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.tabs { display: inline-flex; gap: 4px; background: var(--well); padding: 3px; border-radius: 7px; margin-bottom: 10px; }
.tabs button { border: 0; background: transparent; border-radius: 5px; padding: 7px 10px; min-height: 36px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 42, 107, .12); }
.json { background: #0f1a2e; color: #dfe7f5; font-size: 12px; line-height: 1.5; padding: 12px 14px; border-radius: 6px; overflow: auto; max-height: 320px; margin: 0; white-space: pre; }
.json .k { color: #9fd0ff; } .json .s { color: #ffd98a; } .json .n { color: #c3f0a3; } .json .b { color: #f6a5ff; } .json .z { color: #8ea0bf; }
.json-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.send-status { font-size: 12.5px; margin-top: 8px; color: var(--muted); line-height: 1.45; }
.send-status[data-kind="ok"] { color: var(--green); }
.send-status[data-kind="err"] { color: var(--coral-ink); }
.send-status:empty { display: none; }
details.wire { margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; }
details.wire summary { cursor: pointer; font-weight: 700; font-size: 13px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.wire summary::-webkit-details-marker { display: none; }
details.wire summary::after { content: "+"; font-size: 18px; color: var(--muted); }
details.wire[open] summary::after { content: "\2212"; }
details.wire .wire-body { padding: 0 0 14px; display: grid; gap: 10px; }
.wh-state { font-size: 12.5px; color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms var(--ease); z-index: var(--z-toast); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1023.98px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
