/* Home (public/home.js), the company profile card (public/company-profile.js) and the calmer main screen (journey
   stream HOME, 19 Oct 2026). Logical properties only, so everything mirrors under dir="rtl". Prefix jb- (never ad-). */

/* ---------- the page ---------- */
.jb-home{position:fixed;inset:var(--hdr-h,64px) 0 0;z-index:18;background:#0a0f1c;color:var(--fg);overflow:auto;overscroll-behavior:contain}
.jb-home[hidden]{display:none}
body:has(> #jb-home:not([hidden])) .app > :is(.tray,.stage,footer){visibility:hidden}
.jb-home-page{max-width:1240px;margin:auto;padding:20px 32px 64px;box-sizing:border-box}
.jb-home-top{display:flex;justify-content:flex-end;min-height:8px}
.jb-home-x{width:40px;height:40px;border-radius:10px;border:1px solid var(--border)!important;color:var(--muted);display:grid;place-items:center}
.jb-home-x:hover,.jb-home-x:focus-visible{color:var(--fg);border-color:var(--teal)!important}
.jb-home h2{font:600 clamp(24px,3vw,32px)/1.2 var(--font-h);letter-spacing:-.03em;margin:0 0 6px;outline:0}
.jb-home-hero{text-align:center;margin:4px auto 26px;max-width:720px}
.jb-home-hero p,.jb-home-head p{color:var(--muted);font-size:15px;line-height:1.6;margin:0}
.jb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 18px;border-radius:10px;border:1px solid var(--border)!important;background:rgba(30,41,59,.55)!important;color:var(--fg);font:600 14px/1.2 var(--font-h);text-align:center}
.jb-btn:hover,.jb-btn:focus-visible{border-color:var(--teal)!important}
.jb-btn.is-primary{background:linear-gradient(135deg,var(--teal),var(--teal-dim))!important;border-color:transparent!important;color:#06251f}
.jb-btn:focus-visible,.jb-link:focus-visible,.jb-bid-title:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.jb-link{min-height:32px;padding:4px 2px;color:var(--teal);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.jb-link.is-quiet{color:var(--muted);font-weight:500}
.jb-muted{color:var(--muted)}
.jb-home-err{color:#fecaca;background:rgba(127,29,29,.28);border:1px solid rgba(239,68,68,.5);padding:10px 12px;border-radius:8px}

/* Start: three choices and the checklist */
.jb-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.jb-choice{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:22px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,rgba(17,24,39,.92),rgba(10,15,28,.88));min-width:0}
.jb-choice h3{font:600 18px/1.3 var(--font-h);margin:0}
.jb-choice p{margin:0;color:var(--muted);line-height:1.55}
.jb-choice > .jb-btn,.jb-choice-row{margin-top:auto}
.jb-choice-row{display:flex;flex-wrap:wrap;gap:10px}
.jb-choice-ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:var(--teal);background:rgba(45,212,191,.1);border:1px solid rgba(45,212,191,.3)}
.jb-choice-have{border-style:dashed;border-color:rgba(45,212,191,.45)}
.jb-choice-have.is-over{border-color:var(--teal);background:rgba(45,212,191,.08)}
.jb-choice-foot{font-size:13px}
.jb-check{margin:26px auto 0;max-width:720px;padding:18px 20px;border:1px solid var(--border);border-radius:14px;background:rgba(17,24,39,.6)}
.jb-check-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.jb-check h3{font:600 15px/1.3 var(--font-h);margin:0}
.jb-check-n{color:var(--muted);font-size:13px}
.jb-check-bar{height:6px;border-radius:99px;background:rgba(148,163,184,.18);margin:10px 0 12px;overflow:hidden}
.jb-check-bar i{display:block;height:100%;background:var(--teal);border-radius:99px}
.jb-check-list{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:4px}
.jb-check-list li{display:flex;align-items:center;gap:10px;min-height:44px;flex-wrap:wrap}
.jb-check-dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--border);display:grid;place-items:center;font-size:12px;flex:0 0 auto}
.jb-check-list li.is-done .jb-check-dot{border-color:var(--teal);background:var(--teal);color:#06251f}
.jb-check-t{flex:1 1 auto;min-width:0}
.jb-check-list li.is-done .jb-check-t{color:var(--muted)}
.jb-check-ok{color:var(--teal);font-size:13px;font-weight:600}
/* the one offer to fill the company profile from a public tool page's answers (public/public-handoff.js) */
.jb-handoff{margin:0 auto 22px;max-width:720px;padding:18px 20px;border:1px solid rgba(212,167,44,.45);border-radius:14px;background:linear-gradient(180deg,rgba(212,167,44,.1),rgba(17,24,39,.6))}
.jb-handoff h3{font:600 16px/1.35 var(--font-h);margin:0 0 4px}
.jb-handoff-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.jb-handoff-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px 12px;margin:14px 0}
.jb-handoff-list div{min-width:0;padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(10,15,28,.5)}
.jb-handoff-list dt{color:var(--muted);font-size:12.5px;line-height:1.4}
.jb-handoff-list dd{margin:2px 0 0;font-weight:600;overflow-wrap:anywhere}
.jb-handoff-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.jb-handoff-msg{margin:10px 0 0;color:#fecaca}
.jb-handoff.is-done{border-color:rgba(45,212,191,.45);background:rgba(45,212,191,.07)}
.jb-handoff.is-done p{margin:0}

/* My bids: the steps as columns */
.jb-home-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.jb-home-actions{display:flex;gap:10px;flex-wrap:wrap}
.jb-home-nudge{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:rgba(45,212,191,.07);border:1px solid rgba(45,212,191,.28);color:var(--fg)}
.jb-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:start}
.jb-col{border:1px solid var(--border);border-radius:14px;background:rgba(17,24,39,.55);padding:12px;min-width:0}
.jb-col h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:600 13px/1.3 var(--font-h);letter-spacing:.06em;text-transform:uppercase;color:var(--label,#94a9b5)}
.jb-col-n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(45,212,191,.12);color:var(--teal);font-size:12px;letter-spacing:0}
.jb-col-c{margin-inline-start:auto;color:var(--muted);font-weight:500}
.jb-col-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.jb-col-none{color:var(--muted);font-size:13px;padding:4px 2px}
.jb-bid{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;border:1px solid var(--border);background:#0f172a;min-width:0}
.jb-bid-title{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:start;min-width:0;width:100%}
.jb-bid-title b{font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.jb-bid-title small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.jb-bid-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.jb-bid-due.is-late{color:#fca5a5;font-weight:600}
.jb-bid-next{width:100%;font-size:13px;padding:8px 10px}
.jb-saqr{border-style:dashed}
.jb-saqr-n{font-weight:600;color:var(--teal)}
li.jb-saqr.is-quiet{display:flex;flex-direction:column;gap:4px;padding:6px 2px;color:var(--muted);font-size:13px;border:0;background:none}
.jb-closed{margin-top:16px;border:1px solid var(--border);border-radius:12px;padding:10px 14px;background:rgba(17,24,39,.4)}
.jb-closed summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-weight:600;color:var(--muted)}
.jb-closed .jb-col-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));margin-top:10px}
.jb-closed-more{margin:10px 0 2px}
@media (max-width:1180px){ .jb-board{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:900px){ .jb-choices{grid-template-columns:1fr} }
@media (max-width:760px){
  .jb-home-page{padding:12px 16px 48px}
  .jb-board{grid-template-columns:1fr}
  .jb-col.is-empty{padding:8px 12px}
  .jb-col.is-empty h3{margin:0}
  .jb-col.is-empty .jb-col-list{display:none}
  .jb-col[data-step="find"].is-empty .jb-col-list{display:grid;margin-top:8px}
  .jb-home-actions{width:100%}
  .jb-home-actions .jb-btn{flex:1 1 0}
  .jb-choice{padding:18px}
}
html[data-theme="light"] .jb-home{background:#f4f5f9}
html[data-theme="light"] :is(.jb-choice,.jb-col,.jb-check,.jb-closed){background:#fff}
html[data-theme="light"] .jb-bid{background:#f8fafc}
html[data-theme="light"] .jb-btn:not(.is-primary){background:#fff!important}

/* ---------- the header: "My bids" and the phone's More row ---------- */
.jb-home-btn{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 12px;border-radius:10px;border:1px solid var(--border);color:var(--fg);font:600 13px/1 var(--font-h);white-space:nowrap}
.jb-home-btn[hidden]{display:none}
.jb-home-btn:hover,.jb-home-btn:focus-visible,.jb-home-btn[aria-pressed="true"]{border-color:var(--teal);color:var(--teal)}
.jb-home-btn:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.jb-more,.jb-more-break{display:none}
@media (max-width:960px){ header>.jb-home-btn{order:3} }
@media (max-width:640px){
  /* one row: the mark, the balance, My bids, the launcher, the account and More; the rest unfolds under More */
  .app>header{flex-wrap:wrap;column-gap:4px;padding-inline:12px}
  .app>header>.brand{order:1;flex:0 1 auto}
  .app>header>.brand h1{display:none}
  .app>header>.tokens{order:2;margin-inline-start:auto;gap:6px;padding-inline:8px 4px}
  .app>header>.jb-home-btn{order:3;min-width:44px;min-height:44px;justify-content:center;padding:0 10px}
  .app>header>.jb-home-btn .jb-home-lbl{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .app>header>.nav-apps{order:4}
  .app>header>.user{order:5}
  .app>header>.user .uname,.app>header>.user .ubtn>svg{display:none}
  .app>header>.jb-more{order:6;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;position:relative}
  .app>header>.spacer{display:none}
  .app>header:not(.jb-more-open)>.jb-saqr-btn{display:none!important}   /* Saqr is one tap away on the Start view and My bids; in the More row here */
  .app>header.jb-more-open>.jb-saqr-btn{order:9}
  .app>header:not(.jb-more-open)>:is(.sysbtn,.models,.status,.trailbtn,.clar-btn,.connections-btn,.nudge,.lang,.nav-lamp,.nav-pins,.acc-bellwrap,.jb-dz-pencil,#sfx-slot,#reset),
  .app>header:not(.jb-more-open)>.tokens .nav-tok-more{display:none!important}
  .app>header.jb-more-open>.jb-more-break{display:block;order:7;flex:0 0 100%;height:0}
  .app>header.jb-more-open>:is(.sysbtn,.status,.trailbtn,.clar-btn,.connections-btn,.nudge,.lang,.nav-lamp,.nav-pins,.acc-bellwrap,.jb-dz-pencil,#sfx-slot){order:9}
  .app>header.jb-more-open>.models{order:10}
  .app>header.jb-more-open>.status{flex:1 1 auto}
  .app>header.jb-more-open>.jb-more{color:var(--teal);order:8}   /* the token menu (its caret) unfolds in row 1; More leads row 2 */
  /* an unread notification shows on More while the bell is folded */
  .app>header:not(.jb-more-open):has(#acc-badge:not([hidden]))>.jb-more::after{content:"";position:absolute;inset-block-start:8px;inset-inline-end:8px;width:8px;height:8px;border-radius:50%;background:var(--teal)}
}

/* a crowded header (index.html fitHeader, the developer tools' full row at 1024 px in Italian): Saqr and My bids keep their icons */
header[data-fold~="shrink"] :is(.jb-saqr-btn,.jb-home-btn) .jb-home-lbl{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Saqr in the header: its new matches as a small badge */
.jb-saqr-btn{position:relative}
.jb-saqr-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--teal);color:#04131A;font:700 11px/1 var(--font-h)}
.jb-saqr-badge[hidden]{display:none}
@media (max-width:640px){ .jb-saqr-badge{position:absolute;inset-block-start:2px;inset-inline-end:2px} }
/* final walk: a person's header on a desktop (not html.jb-dev-ui): the brand, the balance, Saqr, My bids, Apps, the
   bell, the language and the account. The status pill shows only a state worth reading (index.html setStatus marks
   "Awaiting RFP" and "Tender workspace ready" data-idle); the developer and secondary controls (System status,
   Connections, the decision trail, the clarifications, the memory nudge, the lamp, the composer's pencil, the sound,
   New tender) unfold under More on a second row; the environment badge (Development, Staging) is for the developer tools */
html:not(.jb-dev-ui) #jb-env{display:none!important}
@media (min-width:961px){
  html:not(.jb-dev-ui) .app>header>.jb-more{display:inline-flex;align-items:center;justify-content:center;position:relative}
  html:not(.jb-dev-ui) .app>header:not(.jb-more-open)>:is(.sysbtn,.status[data-idle],.trailbtn,.clar-btn,.connections-btn,.nudge,.nav-lamp,.jb-dz-pencil,#sfx-slot,#reset){display:none!important}
  html:not(.jb-dev-ui) .app>header.jb-more-open{flex-wrap:wrap;row-gap:10px;padding-block:13px}
  html:not(.jb-dev-ui) .app:has(>header.jb-more-open){grid-template-rows:auto 44px 1fr auto}
  html:not(.jb-dev-ui) .app:has(>header.jb-more-open):has(>#jb-journey:not([hidden])){grid-template-rows:auto 44px auto 1fr auto}
  html:not(.jb-dev-ui) .app>header.jb-more-open>*{order:1}
  html:not(.jb-dev-ui) .app>header.jb-more-open>.jb-more{order:2;color:var(--teal)}
  html:not(.jb-dev-ui) .app>header.jb-more-open>.jb-more-break{display:block;order:3;flex:0 0 100%;height:0}
  html:not(.jb-dev-ui) .app>header.jb-more-open>:is(.sysbtn,.status[data-idle],.trailbtn,.clar-btn,.connections-btn,.nudge,.nav-lamp,.jb-dz-pencil,#sfx-slot,#reset){order:4}
  html:not(.jb-dev-ui) .app>header.jb-more-open>.models{order:5}
  /* a memory nudge waiting behind More shows as a dot on it */
  html:not(.jb-dev-ui) .app>header:not(.jb-more-open):has(#mem-nudge:not([hidden]))>.jb-more::after{content:"";position:absolute;inset-block-start:6px;inset-inline-end:6px;width:8px;height:8px;border-radius:50%;background:var(--teal)}
}

/* ---------- a calmer main screen ---------- */
/* the developer tools (Orchestration room, Sandbox Studio, OpenClaw) and the stick figure: a superadmin or a person who turned them on */
html:not(.jb-dev-ui) :is(.sb-launch-rail,#orchestration-launch,#sandbox-launch,.claw-av,.claw-av-bubble){display:none!important}
html:not(.jb-dev-ui) .thrower{visibility:hidden}
/* no tender yet: no figures row (it only said "—" and "Too early to call") */
.app:has(#intro:not(.hide)) footer .metrics{display:none}
/* polish walk: and no remark under the avatar, which the drop ring sat on ("Welcome back…" ran through "Read with") */
.app:has(#intro:not(.hide)) #holo .caption .say{visibility:hidden}
/* too little known yet (data-jb-early, index.html render(): completeness under 40 %): no win, confidence or money figures, one hint */
.jb-early-hint{display:none}
html[data-jb-early] :is(#m-win,#m-conf,#m-need,#m-gl,#reco){display:none!important}
html[data-jb-early] .jb-early-hint{display:block;color:var(--muted)}
html[data-jb-early] #s-comp{display:none}
@media (min-width:961px){ html[data-jb-early] footer .metrics{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important} }
/* the analyst: a smaller hologram */
@media (min-width:961px){
  .holo{max-height:460px}
  .holo .av{height:330px}
  .ring.r1{height:min(310px,calc(100% - 20px))}.ring.r2{height:min(344px,100%)}.ring.r3{height:min(284px,calc(100% - 50px))}
  .platform{width:250px;height:250px}
}
@media (max-width:960px){ .holo .av{width:200px;height:248px} }
/* phones: the cards in their numeric order (01, 02, 03 …: the two columns interleave), the questions above the analyst
   once a tender is open, and the Checks button in the flow above the cards (it was fixed over the answer buttons) */
@media (max-width:640px){
  .stage>.col{display:contents}
  .stage .col .slot{justify-self:center}
  #colL>.slot:nth-child(1){order:1}#colR>.slot:nth-child(1){order:2}#colL>.slot:nth-child(2){order:3}#colR>.slot:nth-child(2){order:4}#colL>.slot:nth-child(3){order:5}#colR>.slot:nth-child(3){order:6}
  .stage:has(#intro.hide)>.center{order:20}
  .stage:has(#intro.hide) .holo .av{width:150px;height:186px}
  .stage:has(#intro.hide) .holo :is(.ring,.platform){display:none}
  #bid-rail-toggle{position:relative;inset:auto;top:auto;order:0;justify-self:end;writing-mode:horizontal-tb;border:1px solid var(--teal-dim);border-radius:9px;min-height:44px;padding:10px 14px}
  html[dir=rtl] #bid-rail-toggle{border-radius:9px}
}

/* ---------- the company profile card (company page) ---------- */
.jb-cprof{margin:0 0 20px;padding:20px;border:1px solid rgba(45,212,191,.35);border-radius:16px;background:linear-gradient(180deg,rgba(17,24,39,.95),rgba(10,15,28,.9));color:var(--fg)}
.jb-cprof h3{font:600 18px/1.3 var(--font-h);margin:0 0 4px}
.jb-cprof-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.jb-cprof-head p{margin:0;color:var(--muted);max-width:720px;line-height:1.55}
.jb-cprof-n{color:var(--teal);font-weight:600;font-size:13px;white-space:nowrap}
.jb-cprof-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}
.jb-cprof-f{display:flex;flex-direction:column;gap:6px;min-width:0;border:0;margin:0;padding:0}
.jb-cprof-wide{grid-column:1/-1}
.jb-cprof-l{font-weight:600;font-size:13px}
.jb-cprof-f input[type=text],.jb-cprof-f select{min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid var(--border);background:#0b1220;color:var(--fg);font:inherit;max-width:100%}
.jb-cprof-opts{display:flex;flex-wrap:wrap;gap:8px}
.jb-chip{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:rgba(30,41,59,.45);cursor:pointer;font-size:13px}
.jb-chip:has(input:checked){border-color:var(--teal);background:rgba(45,212,191,.12)}
.jb-chip:has(input:focus-visible){outline:2px solid var(--teal);outline-offset:2px}
.jb-chip input{accent-color:var(--teal);margin:0}
.jb-chip.is-none{margin-top:8px;align-self:flex-start}
.jb-cprof-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.jb-cprof-msg{color:var(--teal);font-weight:600}
.jb-cprof-err{color:#fca5a5}
.jb-cprof-note{color:var(--amber,#f59e0b);margin:0 0 10px}
@media (max-width:760px){ .jb-cprof-form{grid-template-columns:1fr} .jb-cprof{padding:16px} }
html[data-theme="light"] .jb-cprof{background:#fff}
html[data-theme="light"] .jb-cprof-f :is(input[type=text],select){background:#fff;color:#0f172a}
/* phones: the document strip wraps its tender tools (Check my proposal, Response matrix, + Throw a document) instead of running off the edge */
@media (max-width:640px){ .app>.tray{flex-wrap:wrap;row-gap:6px} .app>.tray .tray-add{flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:100%} .app>.tray .tray-list{flex:1 1 100%} }   /* polish walk: the documents get their own row (in Arabic the shorter actions squeezed the tender's chip to its icon) */
/* light-theme:begin — generated by tools/light-theme.mjs from the rules above; do not edit by hand (hand-tuned light rules go after the end marker) */
html[data-theme="light"] .jb-home{background:#f4f5f9}
html[data-theme="light"] .jb-btn{background:rgba(230,234,240,.55) !important}
html[data-theme="light"] .jb-btn.is-primary{color:#06251f}
html[data-theme="light"] .jb-home-err{color:#7a0000;background:rgba(236,203,203,.28);border:1px solid rgba(239,68,68,.5)}
html[data-theme="light"] .jb-choice{background:linear-gradient(180deg,rgba(239,241,246,.92),rgba(243,245,249,.88))}
html[data-theme="light"] .jb-choice-ic{background:rgba(45,212,191,.1);border:1px solid rgba(45,212,191,.3)}
html[data-theme="light"] .jb-choice-have{border-color:rgba(45,212,191,.45)}
html[data-theme="light"] .jb-choice-have.is-over{background:rgba(45,212,191,.08)}
html[data-theme="light"] .jb-check{background:rgba(239,241,246,.6)}
html[data-theme="light"] .jb-check-bar{background:rgba(148,163,184,.18)}
html[data-theme="light"] .jb-check-list li.is-done .jb-check-dot{color:#06251f}
html[data-theme="light"] .jb-handoff{border:1px solid rgba(212,167,44,.45);background:linear-gradient(180deg,rgba(212,167,44,.1),rgba(239,241,246,.6))}
html[data-theme="light"] .jb-handoff-list div{background:rgba(243,245,249,.5)}
html[data-theme="light"] .jb-handoff-msg{color:#7a0000}
html[data-theme="light"] .jb-handoff.is-done{border-color:rgba(45,212,191,.45);background:rgba(45,212,191,.07)}
html[data-theme="light"] .jb-home-nudge{background:rgba(45,212,191,.07);border:1px solid rgba(45,212,191,.28)}
html[data-theme="light"] .jb-col{background:rgba(239,241,246,.55)}
html[data-theme="light"] .jb-col h3{color:var(--label,#566973)}
html[data-theme="light"] .jb-col-n{background:rgba(45,212,191,.12)}
html[data-theme="light"] .jb-bid{background:#eff1f6}
html[data-theme="light"] .jb-bid-due.is-late{color:#790101}
html[data-theme="light"] .jb-closed{background:rgba(239,241,246,.4)}
html[data-theme="light"] .jb-saqr-badge{color:#04131A}
html[data-theme="light"] .jb-cprof{border:1px solid rgba(45,212,191,.35);background:linear-gradient(180deg,rgba(239,241,246,.95),rgba(243,245,249,.9))}
html[data-theme="light"] .jb-cprof-f input[type=text],html[data-theme="light"] .jb-cprof-f select{background:#f2f4f8}
html[data-theme="light"] .jb-chip{background:rgba(230,234,240,.45)}
html[data-theme="light"] .jb-chip:has(input:checked){background:rgba(45,212,191,.12)}
html[data-theme="light"] .jb-cprof-err{color:#790101}
html[data-theme="light"] .jb-cprof-note{color:var(--amber,#975f02)}
/* light-theme:end */

/* ---------- final walk: the figures row is one compact row on a desktop, and folds away ---------- */
/* At 1440x900 with the journey bar the full tiles (74 px gauges, two lines of notes) took about 200 px and cut the
   lower question cards. Here the row is about 60 px: the title over the value, the gauge as a small ring, no notes;
   "Hide figures" (index.html figuresToggle, kept in this browser) folds it to nothing but its own button, which sits
   on the legal line. Phones keep their stacked tiles and have no toggle. */
.jb-figs-toggle{display:none}
@media (min-width:961px){
  footer{position:relative;padding-block-end:6px}
  footer .metrics{align-items:stretch}
  footer .m{padding:7px 14px;gap:2px 10px;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:center}
  footer .m .t{flex:1 0 100%;font-size:9.5px;letter-spacing:.12em}
  footer .m .v{font-size:18px}
  footer .m .s{display:none}
  html[data-jb-early] footer .m .jb-early-hint{display:block;flex:1 0 100%;font-size:11px}
  footer .m.gauge{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:2px}
  footer .m.gauge svg{width:30px;height:30px;grid-row:2/3}
  footer .m.gauge .v{grid-row:2}
  footer #m-comp .bar{flex:1 1 60px;margin-top:0}
  footer .money .v{font-size:clamp(13px,11cqi,17px)}
  footer .money .v.loss{font-size:13px!important}
  footer .reco{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 8px}
  footer .reco .t{flex-basis:100%}
  footer .reco .chip{padding:4px 10px;font-size:11px}
  footer .reco :is(.brief,button){padding-block:4px;min-height:0;font-size:11px}
  footer .m .tick{top:4px}
  footer .legal{margin-block:4px 0}
  .jb-figs-toggle{display:inline-flex;align-items:center;position:absolute;inset-inline-end:28px;bottom:4px;min-height:22px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--muted);font:600 11px/1 var(--font-h);cursor:pointer}
  .jb-figs-toggle:hover,.jb-figs-toggle:focus-visible{color:var(--teal);border-color:var(--teal)}
  .jb-figs-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
  html[data-jb-figs="off"] footer .metrics{display:none}
  .app:has(#intro:not(.hide)) .jb-figs-toggle{display:none}
}
