/* Decision Rooms pages. Warm off-white ground, yellow for highlight sections, deep teal for actions and the call,
   flat white cards, hairlines, one regular-weight sans. Mirrored for Arabic. Final theme block at the end of this file. */
:root{
  --ink:#F6F4E9;--card:#FFFFFF;--accent:#073B3A;--accent-hover:#0B5250;--accent-soft:rgba(7,59,58,.07);--yellow:#FFF4B0;
  --fg:#1D1D1D;--dim:rgba(29,29,29,.62);--faint:rgba(29,29,29,.4);--line:rgba(29,29,29,.14);--err:#C62F45;--ok:#073B3A;
  --mono:"Martian Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --serif:"Instrument Serif",Georgia,"Times New Roman",serif;
  --read:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --arabic:"IBM Plex Sans Arabic",system-ui,sans-serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html,body{background:var(--ink);color:var(--fg)}
body{font-family:var(--read);margin:0;padding:0 16px;min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:auto -20% -40vh;height:80vh;z-index:0;pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%,rgba(47,91,255,.14),rgba(47,91,255,.05) 45%,transparent 70%);filter:blur(30px)}
/* Left-aligned layout everywhere (start side in Arabic), never centred */
main{position:relative;z-index:1;display:flex;flex-direction:column;gap:8px;width:100%;max-width:640px;margin:0;margin-inline-start:clamp(0px,4vw,48px);padding:16px 0 calc(56px + env(safe-area-inset-bottom,0px))}

/* ---------- Header ---------- */
.top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:4px 14px}
/* Brand: "Decision Rooms" in the page's own sans, large and confident */
.wm{font-family:var(--read)!important;font-size:24px;font-weight:600;letter-spacing:-.025em;line-height:1;color:var(--fg);text-decoration:none;direction:ltr;white-space:nowrap}
.wm:hover{opacity:.8}
@media (max-width:480px){.wm{font-size:20px}}
.top-acts{display:flex;gap:14px;align-items:center}
.navlink{font-family:var(--mono);font-stretch:75%;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--fg);text-decoration:none}
.navlink:hover{color:var(--accent)}
.lang{font:inherit;font-size:12px;color:var(--fg);background:none;border:1px solid var(--line);border-radius:4px;padding:6px 10px;cursor:pointer;direction:ltr}
.lang:hover{border-color:rgba(20,20,20,.4)}

/* ---------- Cards ---------- */
.msg{background:var(--card);border-radius:0;padding:22px 24px 24px;display:flex;flex-direction:column;gap:16px}
.msg.active{background:var(--accent);color:#fff}
.msg.you{background:#fff;box-shadow:none}
.msg.outline{background:transparent;box-shadow:0 0 0 1px var(--accent)}
.meta{display:flex;justify-content:space-between;gap:12px;font-family:var(--mono);font-stretch:75%;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);font-variant-numeric:tabular-nums}
.msg.active .meta{color:rgba(255,255,255,.78)}
.text{margin:0;font-size:clamp(20px,3vw,24px);line-height:1.35;font-weight:500;letter-spacing:-.01em;text-wrap:balance}
.text.sm{font-size:18px}
.body{margin:0;font-size:15px;line-height:1.55;white-space:pre-line}
.small{margin:0;font-size:13px;line-height:1.5;color:var(--dim)}
.msg.active .small,.msg.active .body{color:rgba(255,255,255,.88)}
.lbl,h3{margin:0;font-family:var(--mono);font-stretch:75%;font-size:11px;font-weight:400;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.msg.active h3{color:rgba(255,255,255,.78)}
.lbl .opt{color:var(--faint)}
.block{display:flex;flex-direction:column;gap:8px}
.stack-sm{display:flex;flex-direction:column;gap:10px}
ul.plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.5}
ul.dots{margin:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.5}
ul.facts li{border-inline-start:2px solid var(--accent);padding-inline-start:12px}
ul.facts .src{display:block;font-size:12px;color:var(--dim);margin-top:2px}
ul.facts a{color:var(--accent)}
.note{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;background:var(--accent-soft);border-radius:0;padding:12px 14px}
.note svg{flex:none;margin-top:2px}
.pills{display:flex;gap:6px;flex-wrap:wrap}
.pill{font-family:var(--mono);font-stretch:75%;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:5px 10px;border-radius:0;border:1px solid rgba(20,20,20,.3);white-space:nowrap}
.msg.active .pill{border-color:rgba(255,255,255,.6)}
.msg.active .pill.strong{background:#fff;color:var(--accent);border-color:#fff}

/* ---------- Steps ---------- */
.progress{display:flex;gap:4px}
.progress i{flex:1;height:3px;border-radius:2px;background:var(--line)}
.progress i.on{background:var(--accent)}
.step-title{margin:0;font-size:clamp(22px,3.4vw,26px);line-height:1.3;font-weight:600;letter-spacing:-.015em}
.actions{display:flex;gap:8px;align-items:center;margin-top:4px}
.actions .btn{flex:1}
.actions .btn.ghost{flex:0 0 auto}

/* ---------- Inputs ---------- */
input.line,textarea,select.line{width:100%;min-width:0;font:inherit;font-size:16px;color:var(--fg);background:#fff;border:1px solid var(--line);border-radius:0;padding:13px 14px;line-height:1.45}
textarea{resize:vertical}
input.line::placeholder,textarea::placeholder{color:var(--faint)}
input.line:focus,textarea:focus,select.line:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
input.code{font-family:var(--mono);font-size:22px;letter-spacing:.4em;text-align:center;direction:ltr}
input[type=date].line{max-width:240px}
.field{display:flex;flex-direction:column;gap:8px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5;cursor:pointer}
.check input{margin-top:3px;accent-color:var(--accent);width:16px;height:16px;flex:none}

/* ---------- Buttons ---------- */
.btn{font-family:var(--mono);font-stretch:75%;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#fff;cursor:pointer;
  background:var(--accent);border:0;border-radius:0;padding:16px 20px;width:100%;text-align:center;text-decoration:none;display:block}
.btn:hover{background:var(--accent-hover)}
.btn:disabled{opacity:.45;cursor:default}
.btn.ghost{background:none;color:var(--fg);border:1px solid var(--line);width:auto;padding:14px 18px}
.btn.ghost:hover{border-color:rgba(20,20,20,.4);background:rgba(20,20,20,.03)}
.btn.soft{background:var(--accent-soft);color:var(--accent)}
.btn.soft:hover{background:rgba(20,20,20,.1)}
.msg.active .btn{background:#fff;color:var(--fg)}
.linkbtn{font-family:var(--mono);font-stretch:75%;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);background:none;border:0;padding:4px 0;cursor:pointer;text-align:start}
.linkbtn:hover{color:var(--accent-hover)}
.row-acts{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{font-family:var(--mono);font-stretch:75%;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--fg);background:#fff;
  border:1px solid var(--line);border-radius:0;padding:9px 14px;cursor:pointer}
.chip:hover{border-color:rgba(20,20,20,.4)}
.chip[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
.choice{display:flex;flex-direction:column;gap:4px;width:100%;text-align:start;font:inherit;color:var(--fg);background:#fff;border:1px solid var(--line);border-radius:0;padding:16px 18px;cursor:pointer}
.choice:hover{border-color:rgba(20,20,20,.4)}
.choice[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:#FFF8D6}
.choice-t{font-size:16px;font-weight:600}
.choice-h{font-size:14px;color:var(--dim);line-height:1.4}
.choices{display:flex;flex-direction:column;gap:8px}
:is(.btn,.chip,.choice,.lang,.linkbtn,.navlink,.tick,.scale button):focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Criteria picker (owner) and the 1-5 scale (members) */
.ticks{display:flex;flex-direction:column;gap:8px}
.tick{display:flex;align-items:center;gap:12px;width:100%;font:inherit;font-size:16px;color:var(--fg);background:#fff;border:1px solid var(--line);border-radius:0;padding:14px 16px;cursor:pointer;text-align:start}
.tick::before{content:"";flex:none;width:20px;height:20px;border-radius:6px;border:1.5px solid rgba(20,20,20,.35)}
.tick[aria-pressed=true]{border-color:var(--accent)}
.tick[aria-pressed=true]::before{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;border-color:var(--accent)}
.add-row{display:flex;gap:8px}
.add-row .btn{width:auto;flex:none}
.rate{display:flex;flex-direction:column;gap:10px;padding-block:12px;border-top:1px solid var(--line)}
.rate:first-child{border-top:0;padding-top:0}
.rate-name{font-size:16px;font-weight:500}
.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.scale button{font:inherit;font-size:12px;line-height:1.2;color:var(--fg);background:#fff;border:1px solid var(--line);border-radius:0;padding:10px 2px;cursor:pointer;min-height:44px}
.scale button:hover{border-color:rgba(20,20,20,.4)}
.scale button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Options list (owner) */
.items{display:flex;flex-direction:column;gap:8px}
.item{display:flex;gap:8px;align-items:center}
.x{flex:none;width:44px;height:48px;font:inherit;font-size:20px;line-height:1;color:var(--dim);background:none;border:1px solid var(--line);border-radius:0;cursor:pointer}
.x:hover{color:var(--fg);border-color:rgba(20,20,20,.4)}
.x:disabled{opacity:.3;cursor:default}

/* Files */
.drop{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px;border:1px dashed rgba(20,20,20,.3);border-radius:0;
  font-family:var(--mono);font-stretch:75%;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--dim);cursor:pointer}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.drop:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.file{display:flex;gap:10px;align-items:center;background:rgba(20,20,20,.04);border-radius:0;padding:8px 12px;font-size:13px}
.msg.active .file{background:rgba(255,255,255,.14)}
.file .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file .st{color:var(--dim);white-space:nowrap}
.file .st.err{color:var(--err)}.file .st.ok{color:var(--accent)}
.file button{background:none;border:0;color:var(--dim);font:inherit;font-size:18px;line-height:1;cursor:pointer;padding:2px 6px}

/* Share */
.linkbox{display:flex;gap:8px}
.linkbox input{flex:1;font-size:14px;direction:ltr;background:rgba(20,20,20,.03)}
.linkbox .btn{flex:none;width:auto}
.share{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}

/* Waiting: roster */
.meter{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.meter i{display:block;height:100%;background:var(--accent);transition:width .6s ease}
.roster{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.roster li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:15px}
.roster li:first-child{border-top:0}
.roster .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.roster .me{color:var(--dim)}
.roster .st{font-family:var(--mono);font-stretch:75%;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);display:flex;align-items:center;gap:6px}
.roster .st.done{color:var(--fg)}
.roster .st.done::before{content:"✓";font-size:14px}

/* Verdict */
.bars{display:flex;flex-direction:column;gap:12px}
.range{display:flex;flex-direction:column;gap:6px}
.range-top{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.tag{font-family:var(--mono);font-stretch:75%;font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:0;border:1px solid var(--line);color:var(--dim);white-space:nowrap}
.tag.split{border-color:var(--accent);color:var(--accent)}
.range-trk{position:relative;height:8px;border-radius:4px;background:rgba(20,20,20,.06)}
.range-trk i{position:absolute;top:0;bottom:0;border-radius:4px;background:rgba(20,20,20,.25)}
.range-trk b{position:absolute;top:-3px;width:3px;height:14px;border-radius:2px;background:var(--accent);transform:translateX(-50%)}
[dir=rtl] .range-trk b{transform:translateX(50%)}
.lean{display:flex;flex-direction:column;gap:6px}
.lean-top{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.lean-top .n{color:var(--dim);font-size:13px;white-space:nowrap}
.lean-trk{height:8px;border-radius:4px;background:rgba(20,20,20,.06);overflow:hidden}
.lean-trk i{display:block;height:100%;background:var(--accent)}
.lean.call .lean-top span:first-child{font-weight:600}
.theme{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:0;background:rgba(20,20,20,.04)}
.theme .tt{font-size:15px}
.theme .kind{font-size:12px;color:var(--dim)}
.theme.facts .kind{color:var(--accent)}
.status{margin:0;min-height:1.2em;font-size:13px;line-height:1.4}
.status.err{color:var(--err)}.status.ok{color:var(--ok)}
.thinking::after{content:"_";animation:blink 1s steps(1) infinite}
/* Loading: a thin bar that fills, with a short line about what's happening */
.ld{display:flex;justify-content:center;padding:56px 16px}
.ld-in{display:flex;flex-direction:column;align-items:center;gap:22px;width:min(400px,100%)}
.ld-mark{width:88px;height:88px;overflow:visible}
.ld-track{fill:none;stroke:var(--accent-soft);stroke-width:2}
.ld-arc{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:60 192;transform-origin:48px 48px;animation:ldarc 1.6s cubic-bezier(.5,.1,.3,1) infinite}
.ld-orbit{transform-origin:48px 48px;animation:ldorbit 6s linear infinite}
.ld-p{fill:var(--accent);transform-box:fill-box;transform-origin:center;animation:ldgather 2.4s cubic-bezier(.65,0,.35,1) infinite}
.ld-p.p1{--dx:0;--dy:18px}.ld-p.p2{--dx:-18px;--dy:0;animation-delay:.15s}.ld-p.p3{--dx:0;--dy:-18px;animation-delay:.3s}.ld-p.p4{--dx:18px;--dy:0;animation-delay:.45s}
.ld-core{fill:var(--yellow);stroke:var(--accent);stroke-width:2;transform-box:fill-box;transform-origin:center;animation:ldcore 2.4s cubic-bezier(.65,0,.35,1) infinite}
.ld-title{margin:0;font-size:20px;line-height:1.3;text-align:center}
.ld-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;width:100%}
.ld-steps li{display:grid;grid-template-columns:20px 1fr;gap:12px;align-items:center;font-size:15px;transition:opacity .4s}
.ld-steps li.next{opacity:.45}
.ld-ic{width:18px;height:18px;border-radius:50%;box-sizing:border-box;border:2px solid var(--line)}
.ld-steps li.now .ld-ic{border-color:var(--accent);border-top-color:transparent;animation:lvspin .8s linear infinite}
.ld-steps li.done .ld-ic{background:var(--accent);border-color:var(--accent);position:relative;animation:ldpop .35s cubic-bezier(.3,1.6,.5,1)}
.ld-steps li.done .ld-ic::after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ld-steps li.done .ld-tx{color:var(--dim)}
.ld-steps li.now .ld-tx{background:linear-gradient(90deg,var(--fg) 0%,var(--fg) 35%,rgba(29,29,29,.35) 50%,var(--fg) 65%,var(--fg) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:ldshine 1.8s linear infinite}
.ld-bar{width:100%;height:3px;border-radius:3px;background:var(--accent-soft);overflow:hidden}
.ld-bar i{display:block;height:100%;width:6%;background:var(--accent);border-radius:3px;transition:width .3s ease-out}
.ld-done .ld-p,.ld-done .ld-core,.ld-done .ld-orbit,.ld-done .ld-arc{animation-play-state:paused}
.ld-inline{padding:40px 8px}
@keyframes ldarc{to{transform:rotate(360deg)}}
@keyframes ldorbit{to{transform:rotate(360deg)}}
@keyframes ldgather{0%,15%{transform:translate(0,0);opacity:1}45%,60%{transform:translate(var(--dx),var(--dy)) scale(.7);opacity:.85}90%,100%{transform:translate(0,0);opacity:1}}
@keyframes ldcore{0%,30%{transform:scale(.6)}50%,62%{transform:scale(1.25)}85%,100%{transform:scale(.6)}}
@keyframes ldshine{from{background-position:100% 0}to{background-position:-150% 0}}
@keyframes ldpop{from{transform:scale(.4)}to{transform:scale(1)}}
@keyframes lvspin{to{transform:rotate(360deg)}}
@keyframes ldin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes ldin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes blink{50%{opacity:0}}
details.more>summary{cursor:pointer;list-style:none;font-family:var(--mono);font-stretch:75%;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);padding-block:4px}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{content:"+ "}details.more[open]>summary::before{content:"– "}
details.more .field{margin-top:16px}

/* My rooms */
.rlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ritem{display:flex;flex-direction:column;gap:8px;background:#fff;box-shadow:none;border-radius:0;padding:18px 20px;text-decoration:none;color:var(--fg)}
.ritem:hover{box-shadow:inset 0 0 0 1px var(--accent)}
.ritem .q{font-size:16px;font-weight:500;line-height:1.4}
.ritem .st{font-size:13px;color:var(--dim)}
.ritem .st.go{color:var(--accent);font-weight:500}

/* Arabic: a real Arabic face; no uppercase or letter-spacing, which break Arabic shaping */
[dir=rtl] body,[dir=rtl] .btn,[dir=rtl] .chip,[dir=rtl] .linkbtn,[dir=rtl] .navlink,[dir=rtl] .lbl,[dir=rtl] h3,[dir=rtl] .meta,[dir=rtl] .pill,[dir=rtl] .tag,
[dir=rtl] .drop,[dir=rtl] .roster .st,[dir=rtl] details.more>summary{font-family:var(--arabic);font-stretch:normal;text-transform:none;letter-spacing:0}
[dir=rtl] .lbl,[dir=rtl] h3,[dir=rtl] .meta,[dir=rtl] .linkbtn,[dir=rtl] .navlink,[dir=rtl] .roster .st,[dir=rtl] details.more>summary{font-size:13px}
[dir=rtl] .btn,[dir=rtl] .chip{font-size:15px}
:lang(ar){font-family:var(--arabic)}
.lang{font-family:var(--mono)!important}

@media (max-width:480px){.msg{padding:18px 16px 20px}.scale button{font-size:11px}}
@media (prefers-reduced-motion:reduce){.meter i{transition:none}.thinking::after{animation:none}.ld-bar i{transition:none}.ld-arc,.ld-orbit,.ld-p,.ld-core,.ld-steps li.now .ld-ic,.ld-steps li.now .ld-tx,.ld-steps li.done .ld-ic{animation:none}.ld-steps li.now .ld-tx{color:var(--fg);background:none}}

/* ---------- Editorial type (after the base rules so it wins; Arabic rules above still win by specificity) ---------- */
body::before{display:none}
.msg{padding:24px}
.text{font-weight:500;letter-spacing:-.02em}
.step-title{font-weight:500;letter-spacing:-.025em}
:is(.lbl,h3,.meta,.btn,.chip,.linkbtn,.navlink,.pill,.tag,.drop,.roster .st,details.more>summary,.scale button){font-family:var(--read);font-stretch:normal;text-transform:none;letter-spacing:0}
.lbl,h3{font-size:13px;font-weight:500}
.meta{font-size:13px}
.btn{font-size:15px;font-weight:500;padding:15px 20px}
.chip{font-size:14px}
.linkbtn,.navlink{font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px}
.pill,.tag{font-size:12px}
.drop,details.more>summary{font-size:14px}
.roster .st{font-size:13px}
.msg.active h3,.msg.active .meta{color:rgba(255,255,255,.7)}

/* Model chooser and RAPID tick (new.html step 4) */
.choice .tag{align-self:flex-start;margin-bottom:6px}
.choice-h.why{color:var(--fg);margin-top:6px}
.tick{align-items:flex-start}
.tick::before{margin-top:2px}
.tick-body{display:flex;flex-direction:column;gap:4px;text-align:start}

/* RAPID roles, objections and model cards (room.html) */
.roster .who .tag{margin-inline-start:8px;vertical-align:middle}
select.role-select{-webkit-appearance:none;appearance:none;flex:none;width:170px;height:40px;padding:0 34px 0 12px;font-size:14px;line-height:38px;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center}
[dir=rtl] select.role-select{padding:0 12px 0 34px;background-position:left 12px center}
select.role-select:hover{border-color:var(--fg)}
.roster li .role-fixed{flex:none;width:170px;height:40px;display:flex;align-items:center;padding:0 12px;font-size:14px;color:var(--dim);border:1px solid var(--line);background:rgba(20,20,20,.03)}
.roster li .who{display:flex;align-items:center;gap:8px}
.objection{padding-block:10px;border-top:1px solid var(--line)}
.objection:first-of-type{border-top:0}
.objection.withdrawn,.objection.overridden{opacity:.7}
ul.tree{gap:14px}
ul.tree li{display:flex;flex-direction:column;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--line)}
ul.tree li:last-child{border-bottom:0}
.agree a{color:var(--fg)}

/* "Add a room" pop-up: the setup steps in a panel on the start side of the screen, no animation */
.dr-pop{position:fixed;inset:0;z-index:50;background:rgba(20,20,20,.35);display:flex;justify-content:flex-start}
.dr-pop-panel{position:relative;width:min(720px,100%);height:100%;background:var(--ink);box-shadow:0 0 0 1px rgba(20,20,20,.1)}
.dr-pop-panel iframe{display:block;width:100%;height:100%;border:0}
.dr-pop-close{position:absolute;top:14px;inset-inline-end:14px;z-index:1;width:40px;height:40px;font:inherit;font-size:22px;line-height:1;color:var(--fg);background:#fff;border:1px solid var(--line);cursor:pointer}
.dr-pop-close:hover{border-color:var(--fg)}
.dr-pop-close:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
body.dr-pop-open{overflow:hidden}
/* Add a room: decision or research, asked first */
.dr-kind{justify-content:center;align-items:center;padding:16px}
.dr-kind-panel{position:relative;width:min(520px,100%);background:var(--ink);padding:28px 24px 24px;display:flex;flex-direction:column;gap:12px}
.dr-kind-panel h2{margin:0 48px 6px 0;font-size:var(--t-h5);font-weight:400}
[dir=rtl] .dr-kind-panel h2{margin:0 0 6px 48px}
/* inside the pop-up, the setup page drops its own header */
html.embed .top{display:none}
html.embed main{margin-inline-start:0;padding-top:68px}

/* File how-to steps (new.html, last step) */
details.howto .block{margin-top:16px}
ol.steps-list{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.5}

/* ---------- Release 1: setup redesign, people, comments, attention ---------- */
.org-pick{background:var(--yellow);padding:16px 18px;gap:10px}
.org-pick .small{margin:0}
.qline{background:var(--yellow);padding:14px 16px}
.qline .body{margin:0;font-size:17px;line-height:1.4}
.why-band{background:var(--yellow);padding:14px 16px}
.why-band .body{margin:0}
.add-person{gap:12px;padding:16px;box-shadow:0 0 0 1px var(--line)}
.person-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.person-grid > :last-child{grid-column:1/-1}
@media (max-width:480px){.person-grid{grid-template-columns:1fr}}
.add-person .btn{width:auto;align-self:flex-start;padding:12px 18px}
ul.people{margin:6px 0 4px}
.role-card > .choice-t{font-weight:500}
.rate-note{margin-top:2px}
.rate-note summary{font-size:13px}
.rate-note input{margin-top:8px}
.msg p.text.hi{font-size:26px;line-height:1.2;margin:4px 0 10px;color:#fff}
.msg.attention{background:var(--yellow);box-shadow:none}
.msg.attention .lbl{margin:0 0 4px}
.msg.attention .body{margin:0}
.roster li.person-row{flex-wrap:wrap;row-gap:6px}
.person-share{display:flex;gap:16px;width:100%;grid-template-columns:none}
.invite-row .share .btn{padding:12px 14px}
.invite-row .choice-t .tag{margin-inline-start:8px}

/* Bot check: hidden unless Cloudflare asks the person to tick a box */
#dr-captcha{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60}
#dr-captcha.ask{background:var(--yellow);padding:12px 12px 8px;box-shadow:0 6px 24px rgba(0,0,0,.18)}
#dr-captcha .captcha-note{margin:0 0 8px;font-size:14px;text-align:center}

/* The numbers (what if) */
.wi-bars{display:flex;flex-direction:column;gap:10px;margin:6px 0}
.wi-row .wi-bar{height:8px;background:var(--accent-soft);margin-top:4px}
.wi-row .wi-bar i{display:block;height:100%;background:rgba(7,59,58,.45)}
.wi-row.lead .wi-bar i{background:var(--accent)}
.wi-row.lead .rate-name{font-weight:600}
.wi-n{font-variant-numeric:tabular-nums;font-size:14px;color:var(--dim)}
.wi-said{margin:4px 0 0}
.wi-sliders{display:flex;flex-direction:column;gap:12px}
.wi-slider input[type=range]{width:100%;accent-color:var(--accent);margin-top:4px}
.wi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.wi-cell{display:flex;flex-direction:column;gap:4px}
.wi-cell input{width:100%}
.wi-cell.edited input{border-color:var(--accent);background:var(--yellow)}
.wi-table{display:flex;flex-direction:column;gap:14px;margin-top:10px}

.rate-chips{display:flex;flex-wrap:wrap;gap:6px}

/* Say your question */
.voice{display:flex;flex-direction:column;gap:8px}
.voice .voice-btn{width:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:10px 16px}
.voice .voice-btn.rec{background:var(--yellow);color:var(--fg)}
.voice-dot{width:10px;height:10px;border-radius:50%;background:#C0392B;animation:voicePulse 1s ease-in-out infinite}
@keyframes voicePulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.voice-dot{animation:none}}
.voice-heard{background:var(--yellow);padding:14px 16px}
.voice-heard .body{margin:0;font-size:17px}
.voice-heard .share{grid-template-columns:1fr 1fr}
.voice-extra{display:flex;gap:18px}
.voice p.small{margin:0}

.signin-providers{display:flex;flex-direction:column;gap:8px}
.signin-or{text-align:center;margin:4px 0}
.signed-in{background:var(--yellow);padding:14px 16px}
.signed-in .body{margin:0}

/* Account avatar, top right */
.acct{position:relative;display:inline-flex;gap:8px;align-items:center}
.acct-rooms{text-decoration:none}
.acct-rooms:hover{border-color:var(--accent);color:var(--accent)}
.acct-btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--fg);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font:500 13px/1 var(--read);padding:0}
.acct-btn.has-name{background:var(--accent);color:#fff;border-color:var(--accent)}
.acct-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.acct-pop{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:220px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.14);border:1px solid var(--line);z-index:50;display:flex;flex-direction:column;padding:6px 0}
.acct-pop[hidden]{display:none}
.acct-head{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:14px}
.acct-head span{font-size:12px;color:var(--dim)}
.acct-item{display:block;text-align:start;padding:10px 14px;font-size:14px;color:var(--fg);text-decoration:none;background:none;border:0;cursor:pointer;font-family:inherit}
.acct-item:hover,.acct-item:focus-visible{background:var(--accent-soft)}

/* ================= Theme: warm off-white, yellow highlights, deep teal pill actions, regular weight ================= */
.top{position:sticky;top:0;z-index:20;background:var(--ink);border-bottom:1px solid var(--line);padding-block:14px;margin-bottom:12px}
.wm{font-weight:500;letter-spacing:-.02em}
.navlink{font-weight:400;text-decoration:none}
.navlink:hover{text-decoration:underline;text-underline-offset:3px}
.lang{font-family:var(--read)!important;font-size:13px;background:rgba(0,0,0,.05);border:0;border-radius:2px;padding:5px 9px}
.lang:hover{background:rgba(0,0,0,.09)}
.text,.step-title,.db-title,h1,h2{font-weight:400}
.choice-t,.rate-name{font-weight:500}
.btn{border-radius:40px;font-weight:400;padding:16px 24px}
.btn.ghost{border-radius:40px;border:1px solid rgba(29,29,29,.3);background:transparent}
.btn.ghost:hover{border-color:var(--fg);background:transparent}
.btn.soft{border-radius:40px;background:rgba(0,0,0,.05);color:var(--fg)}
.btn.soft:hover{background:rgba(0,0,0,.09)}
.msg.active .btn{background:#fff;color:var(--accent)}
.chip{border-radius:40px}
.pill{border-radius:40px}
.tag{border-radius:40px}
.choice[aria-pressed=true]{background:var(--accent-soft)}
.tick::before{border-radius:4px}
.x{border-radius:40px}
select.role-select,.roster li .role-fixed{border-radius:2px}
.roster .st.done{color:var(--accent)}
/* Highlights: the yellow carries check-first, tripwires and the final decision */
.msg.outline{background:var(--yellow);box-shadow:none}
.note{background:var(--yellow)}
/* Full-bleed band behind a block, without changing the left-aligned layout */
.band{position:relative;background:var(--yellow);box-shadow:0 0 0 100vmax var(--yellow);clip-path:inset(0 -100vmax)}
.band.white{background:#fff;box-shadow:0 0 0 100vmax #fff}

/* ================= Scale: full-width page, 32px gutters, a 69px header, one type scale everywhere ================= */
:root{
  --gutter:32px;
  --t-display:clamp(40px,5vw,72px);   /* page titles, landing hero and section titles */
  --t-h3:clamp(30px,3.34vw,48px);     /* numbered rows, big sub-titles */
  --t-h4:clamp(22px,2.23vw,32px);     /* lead text, the question, step titles, the call */
  --t-h5:clamp(17px,1.39vw,20px);     /* card titles, small headings */
  --t-ui:14px;                        /* menus, labels, buttons, captions */
}
@media (max-width:720px){:root{--gutter:16px}}
body{padding:0}
main{max-width:none;width:100%;margin:0;padding:0 var(--gutter) calc(64px + env(safe-area-inset-bottom,0px));--content:calc(50vw - var(--gutter) - 10px)}
@media (max-width:900px){main{--content:100%}}
main > :not(.top):not(.band){width:100%;max-width:var(--content)}
/* Header: full width, 69px, logo on the left, menu from the middle, language at the far right */
.top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:20px;height:69px;padding:0 var(--gutter);margin:0 calc(-1 * var(--gutter)) 24px;
  position:sticky;top:0;z-index:20;background:var(--ink);border-bottom:1px solid var(--line)}
.wm{font-size:26px;font-weight:500;letter-spacing:-.03em;line-height:1;justify-self:start}
.top-acts,.top .nav{display:flex;align-items:center;gap:24px;min-width:0}
.top .navlink{font-family:var(--read);font-size:var(--t-ui);letter-spacing:0;text-transform:none;font-weight:400;white-space:nowrap}
.top .lang{margin-inline-start:auto;font-size:var(--t-ui);padding:4px 8px;border-radius:2px}
.top .navchip{font-size:var(--t-ui);background:rgba(0,0,0,.05);border-radius:2px;padding:4px 8px;color:var(--fg);text-decoration:none;white-space:nowrap}
.top .navchip:hover{background:rgba(0,0,0,.09)}
@media (max-width:720px){.top{grid-template-columns:auto minmax(0,1fr);height:60px}.wm{font-size:22px}.top-acts,.top .nav{justify-content:flex-end;gap:14px}.top .lang{margin-inline-start:0}}
/* Type scale */
.db-title{font-size:var(--t-display);line-height:1.1;letter-spacing:-.02em;font-weight:400}
.step-title{font-size:var(--t-h4);line-height:1.2;letter-spacing:-.02em;font-weight:400}
.text{font-size:var(--t-h4);line-height:1.2;letter-spacing:-.02em;font-weight:400}
.text.sm{font-size:var(--t-h5);line-height:1.2}
.choice-t,.rate-name{font-size:var(--t-h5);font-weight:400;letter-spacing:-.01em}
.lbl,h3,.meta,.small,.pill,.tag,.status,.linkbtn,.chip,.choice-h,.scale button{font-size:var(--t-ui)}
.body,ul.plain,ul.dots{font-size:16px}
.btn{font-size:var(--t-ui);padding:20px 25px;line-height:1}
.btn.ghost{padding:20px 25px}
/* inside the pop-up the page is narrow, so fix the heading sizes instead of scaling them with the width */
html.embed{--t-h4:28px;--t-h5:19px}
/* Who's in the room: one card per role */
.roles{display:flex;flex-direction:column;gap:10px}
.role-card{background:var(--card);border:1px solid var(--line);padding:14px 16px;gap:12px}
.role-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.role-top .x{width:36px;height:36px;font-size:18px}
.role-opts{display:flex;flex-wrap:wrap;gap:12px}
.role-opt{display:flex;flex-direction:column;gap:4px}
.role-card textarea{min-height:64px}
.roster .tag.title{background:var(--yellow);color:var(--fg)}
.invite-row{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.invite-row:first-of-type{border-top:0}
.invite-row .lbl{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* The follow-up plan */
ul.plan{display:flex;flex-direction:column;gap:12px}
.plan-item{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:6px}
.plan-item:first-child{border-top:0;padding-top:0}
.plan-item.done .rate-name{text-decoration:line-through;color:var(--dim)}
.plan-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--dim)}
.plan-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}

/* Ask the analyst: the always-on helper */
.helper-btn{position:fixed;inset-inline-end:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:40;font:inherit;font-size:14px;padding:14px 20px;border-radius:40px;border:0;background:var(--accent);color:#fff;cursor:pointer;box-shadow:0 6px 24px rgba(0,0,0,.18)}
.helper-panel{position:fixed;inset-inline-end:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:41;width:min(380px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 32px));display:flex;flex-direction:column;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.helper-head{display:flex;justify-content:space-between;align-items:center}
.helper-head strong{font-weight:500;font-size:16px}
.helper-x{font:inherit;font-size:20px;line-height:1;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:none;color:var(--fg);cursor:pointer}
.helper-log{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;min-height:120px}
.helper-msg{max-width:92%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45}
.helper-msg p{margin:0;white-space:pre-wrap}
.helper-msg.assistant{background:var(--accent-soft);align-self:flex-start}
.helper-msg.user{background:var(--yellow);align-self:flex-end}
.helper-src{margin-top:6px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.helper-src a{color:var(--accent);overflow-wrap:anywhere;margin-inline-end:8px}
.helper-form{display:flex;gap:8px;align-items:flex-end}
.helper-form textarea{flex:1;min-height:44px;font:inherit;font-size:14px}
.helper-form .btn{padding:12px 16px;width:auto}
.helper-note{margin:0;font-size:12px;color:var(--dim)}
.helper-sugg .chip{font-size:13px}
.plan-item .range-top{align-items:flex-start;gap:12px}
.plan-item .range-top .tag{flex:none;align-self:flex-start;white-space:nowrap}

/* The room thinking: one live line, typed commentary, finished stages, a segmented bar */
.eyebrow-sm{margin:0;font-size:13px;color:var(--dim)}
.live-line{display:flex;align-items:center;gap:12px}
.spark{color:var(--accent);display:grid;place-items:center;flex:none;animation:sparkTurn 3.2s cubic-bezier(.6,0,.4,1) infinite}
.spark rect{transform-box:fill-box;transform-origin:center;animation:sparkRay 1.6s ease-in-out infinite}
.spark g:nth-child(2) rect{animation-delay:.2s}.spark g:nth-child(3) rect{animation-delay:.4s}.spark g:nth-child(4) rect{animation-delay:.6s}
.live-label{flex:1;min-width:0;font-size:var(--t-h5);line-height:1.3;background:linear-gradient(90deg,var(--fg) 0%,var(--fg) 38%,var(--accent) 50%,var(--fg) 62%,var(--fg) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:thinkShine 2.6s linear infinite}
.live-label.in{animation:thinkShine 2.6s linear infinite,thinkIn .5s ease both}
.think-clock{font:400 13px/1 "Martian Mono",ui-monospace,monospace;color:var(--dim);font-variant-numeric:tabular-nums}
.live-sub{margin:0;min-height:1.5em;font-size:14px;color:var(--dim);padding-inline-start:34px}
.live-sub::after{content:"";display:inline-block;width:7px;height:1em;margin-inline-start:2px;vertical-align:-2px;background:var(--accent);opacity:.55;animation:blink 1s steps(1) infinite}
.live-bar{display:flex;gap:4px;margin:4px 0 2px}
.live-bar i{flex:1;height:4px;border-radius:4px;background:var(--line);overflow:hidden;position:relative}
.live-bar i.done{background:var(--accent)}
.live-bar i.now::after{content:"";position:absolute;inset:0;width:40%;border-radius:4px;background:var(--accent);animation:barRun 1.4s ease-in-out infinite}
ul.live-done{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
ul.live-done li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--dim)}
ul.live-done li::before{content:"";width:14px;height:14px;flex:none;border-radius:50%;background:var(--accent) no-repeat center/9px 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.2 2.2L8.5 2.6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
ul.live-done li.in{animation:thinkIn .45s ease both}
@keyframes sparkTurn{0%{transform:rotate(0)}50%{transform:rotate(180deg) scale(.86)}100%{transform:rotate(360deg)}}
@keyframes sparkRay{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.45)}}
@keyframes thinkShine{from{background-position:120% 0}to{background-position:-120% 0}}
@keyframes thinkIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes barRun{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@media (prefers-reduced-motion:reduce){.spark,.spark rect,.live-bar i.now::after,.live-sub::after,ul.live-done li.in,.live-label,.live-label.in{animation:none}.live-label{-webkit-text-fill-color:currentColor;background:none}.live-bar i.now{background:var(--accent);opacity:.5}}


/* ================= The app: install and notifications box, back arrow, safe areas in the installed app ================= */
.ap-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-items:stretch}
/* Every button in the row the same height and width, side by side; stacked full width on a phone. */
.ap-row .btn,.ap-row .btn.ghost{flex:1 1 0;min-width:0;width:auto;padding:16px 20px;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media (max-width:560px){.ap-row{flex-direction:column}.ap-row .btn,.ap-row .btn.ghost{flex:none;width:100%}}
.ap-note:empty{display:none}
.ap-on{color:var(--accent)}
.ap-kinds{border:0;padding:0;margin:16px 0 0;display:flex;flex-direction:column;gap:10px}
.ap-kinds legend{font-size:var(--t-ui);color:var(--dim);margin-bottom:6px;padding:0}
.ap-start{display:flex;align-items:center;gap:6px;min-width:0}
.ap-back{width:36px;height:36px;margin-inline-start:-8px;border:0;background:transparent;color:var(--fg);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;padding:0}
.ap-back:hover{background:rgba(0,0,0,.05)}
[dir=rtl] .ap-back svg{transform:scaleX(-1)}
html.in-app .top{height:auto;min-height:60px;padding-top:env(safe-area-inset-top,0px)}
html.in-app .top > *{align-self:center}
@media (max-width:720px){html.in-app .top{min-height:calc(60px + env(safe-area-inset-top,0px))}}

/* ================= Console layout (pages with body[data-shell]): sidebar, main column, tab bar on a phone ================= */
html.shelled main{padding:0;max-width:none}
html.shelled main > .db-shell,html.shelled main > .db-tabs{max-width:none}
.db-shell{display:grid;grid-template-columns:264px minmax(0,1fr);align-items:start;min-height:100vh}
html.nav-mini .db-shell{grid-template-columns:72px minmax(0,1fr)}
.db-nav{position:sticky;top:0;z-index:25;height:100vh;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:12px 12px 16px;background:#EDEBE0}
.db-nav .nav-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0 14px}
.db-nav .wm{display:block;font-size:22px;padding:4px 12px;color:var(--fg);text-decoration:none;white-space:nowrap;overflow:hidden}
.nav-mini-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border:0;border-radius:10px;background:none;color:var(--dim);cursor:pointer}
.nav-mini-btn:hover{background:rgba(29,29,29,.06);color:var(--fg)}
.db-nav a,.db-nav button.it{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:12px;color:var(--fg);text-decoration:none;font:inherit;font-size:15px;background:none;border:0;cursor:pointer;text-align:start;width:100%;white-space:nowrap}
.db-nav a:hover,.db-nav button.it:hover{background:rgba(29,29,29,.05)}
.db-nav a[aria-current=page]{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06);font-weight:500}
.db-nav .grp{display:flex;align-items:center;justify-content:space-between;width:100%;font:inherit;font-size:13px;color:var(--dim);background:none;border:0;cursor:pointer;padding:18px 12px 6px;text-align:start}
.db-nav .grp .ic{transition:transform .15s;color:var(--dim)}
.db-nav .grp[aria-expanded=false] .ic{transform:rotate(-90deg)}
.db-nav .grp-items{display:flex;flex-direction:column;gap:2px}
.db-nav .foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);position:relative}
.db-nav .ic,.db-tabs .ic{display:flex;flex:none}
/* Folded: icons only, groups open, labels as tooltips */
html.nav-mini .db-nav{padding-inline:10px}
html.nav-mini .db-nav .nav-head{flex-direction:column;padding-bottom:8px}
html.nav-mini .db-nav .wm{display:none}
html.nav-mini .db-nav .lb{display:none}
html.nav-mini .db-nav a,html.nav-mini .db-nav button.it{justify-content:center;padding:11px 0}
html.nav-mini .db-nav .grp{display:none}
html.nav-mini .db-nav .grp-items[hidden]{display:flex}
html.nav-mini .db-nav .grp-w{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}
.db-main{display:flex;flex-direction:column;min-width:0;padding:0 clamp(16px,3.4vw,56px) 64px;max-width:1440px;width:100%;margin-inline:auto}
.db-main > :not(.top):not(.band){width:100%;max-width:min(var(--content),100%);margin-inline:auto}
.db-main .top{position:static;display:flex;justify-content:flex-end;align-items:center;height:72px;margin:0;padding:0;border:0;background:none;width:100%;max-width:none}
.db-main .top .wm{display:none}
.db-main .top .top-acts{flex:none}
.db-apppop{position:absolute;top:calc(100% + 8px);inset-inline-end:0;z-index:30;width:min(360px,calc(100vw - 32px));background:#fff;border-radius:20px;padding:20px;box-shadow:0 12px 32px rgba(0,0,0,.14);display:flex;flex-direction:column;gap:6px}
.db-apppop.up{top:auto;bottom:calc(100% + 8px);inset-inline-start:0;inset-inline-end:auto}
.db-apppop h2{margin:0;font-size:var(--t-h5);font-weight:400}
.db-tabs{display:none}
body.slides .db-nav,body.slides .db-tabs{display:none}
body.slides .db-shell{grid-template-columns:minmax(0,1fr)}
@media (min-width:821px){html.shelled .top #orgLink,html.shelled .top a.navlink[href^="/dashboard.html"]{display:none}}
@media (max-width:820px){
  .db-shell,html.nav-mini .db-shell{grid-template-columns:minmax(0,1fr)}
  .db-nav{display:none}
  .db-main{padding:0 var(--gutter) calc(96px + env(safe-area-inset-bottom,0px))}
  .db-main .top{position:sticky;top:0;z-index:20;background:var(--ink);margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);height:60px;border-bottom:1px solid var(--line);justify-content:space-between;width:auto}
  .db-main .top .wm{display:block}
  .db-tabs{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));justify-content:space-around}
  .db-tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;color:var(--dim);text-decoration:none;padding:4px 0}
  .db-tabs a[aria-current=page]{color:var(--fg);font-weight:500}
  .db-tabs .add .ic{align-items:center;justify-content:center;width:42px;height:42px;margin-top:-16px;border-radius:50%;background:var(--accent);color:#fff}
}
/* Setup and research in the console style: no white box around the content, a centred heading, rounded fields and cards */
html.shelled #wiz.msg{background:none;box-shadow:none;padding:12px 0 0;max-width:min(760px,100%);gap:18px}
html.shelled .wz-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:8px 0 10px}
html.shelled .wz-head .progress{width:min(420px,100%)}
html.shelled .wz-head .step-title{font-size:clamp(28px,2.6vw,40px);line-height:1.15}
html.shelled .wz-head .small{max-width:56ch;color:var(--dim)}
html.shelled .rs-head{align-items:center;text-align:center;margin:12px 0 10px}
html.shelled .rs-head h1{font-size:clamp(28px,2.6vw,40px)}
html.shelled .rs-head + .rs-steps{text-align:center;margin-top:0}
html.shelled .rs-card:not(.yellow){background:#fff;border-radius:20px;padding:24px;margin-bottom:16px}
html.shelled .rs-card :is(input:not([type=checkbox]):not([type=radio]),textarea,select),html.shelled .rs-card .choice{background:var(--ink);box-shadow:none;border-color:transparent}
html.shelled .rs-card .choice[aria-pressed=true]{background:#fff;box-shadow:inset 0 0 0 2px var(--accent)}
html.shelled .rs-card .br{background:var(--ink);border-radius:16px;padding:14px}
html.shelled .rs-card .br :is(input,textarea){background:#fff}
html.shelled #view > .acts{justify-content:center}
html.shelled #view > .acts .btn{min-width:200px;padding:15px 32px}
html.shelled #view > .acts .btn.ghost{min-width:0}
@media (min-width:821px){html.shelled .rs-back{display:none}}
@media (max-width:640px){html.shelled .rs-card:not(.yellow){padding:18px 16px}html.shelled #view > .acts .btn{min-width:0}html.shelled #view > .acts .btn:not(.ghost):not(.linkbtn){flex:1}}
html.shelled .rs-card.yellow,html.shelled .rs-band,html.shelled .note,html.shelled .msg.outline{border-radius:20px;padding:20px 22px}
html.shelled .addf,html.shelled .pool .it{border-radius:16px}
html.shelled input.line,html.shelled textarea,html.shelled select.line{border-radius:14px;border-color:transparent;box-shadow:0 1px 3px rgba(0,0,0,.07)}
html.shelled input.line:focus,html.shelled textarea:focus,html.shelled select.line:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
html.shelled .choice{border-radius:16px;border-color:transparent;box-shadow:0 1px 3px rgba(0,0,0,.07)}
html.shelled .choice[aria-pressed=true],html.shelled .choice.on{box-shadow:0 0 0 2px var(--accent)}
/* Setup step one: who is opening the room, and the kind of organisation as tiles (two cards, one column on a phone) */
.you-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:16px;align-items:start}
.you-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.you-card{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:20px;padding:20px;min-width:0}
.you-card .lbl{color:var(--dim)}
.you-card p{margin:0}
.you-id{display:flex;align-items:center;gap:12px}
.you-id .av{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;font-weight:500}
.you-id .body{font-size:17px}
.org-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.org-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;font:inherit;font-size:14px;line-height:1.3;text-align:start;color:var(--fg);background:var(--ink);border:0;border-radius:16px;padding:14px;cursor:pointer}
.org-tile .sq{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#fff}
.org-tile:hover{box-shadow:0 0 0 1px var(--line)}
.org-tile[aria-pressed=true]{box-shadow:0 0 0 2px var(--accent);background:#fff}
.org-tile[aria-pressed=true] .sq{background:var(--accent);color:#fff}
@media (max-width:760px){.you-grid{grid-template-columns:minmax(0,1fr)}}
/* In the console layout the setup keeps yellow for highlights only, and Next is a centred button, not a bar */
html.shelled .signed-in,html.shelled .org-pick,html.shelled .qline,html.shelled .why-band,html.shelled .voice-heard{background:#fff;border-radius:20px;padding:18px 20px}
html.shelled #wiz .actions{justify-content:center;margin-top:10px}
html.shelled #wiz .actions .btn{flex:0 0 auto;width:auto;min-width:200px;padding:15px 32px}
html.shelled #wiz .actions .btn.ghost{min-width:0}

/* Setup steps: the fields on one white card, like step one; on a phone Back stays small and Next fills the rest */
.wz-card{display:contents}
html.shelled #wiz .wz-card{display:flex;flex-direction:column;background:#fff;border-radius:20px;padding:24px}
@media (max-width:640px){
  html.shelled #wiz .wz-card{padding:18px 16px}
  html.shelled #wiz .actions .btn{min-width:0}
  html.shelled #wiz .actions .btn:not(.ghost){flex:1}
}
/* Inside the white card, fields and choices take the soft ground so they still read as boxes */
html.shelled #wiz .wz-card :is(input:not([type=checkbox]):not([type=radio]),textarea,select),
html.shelled #wiz .wz-card .choice{background:var(--ink);box-shadow:none;border-color:transparent}
html.shelled #wiz .wz-card .choice[aria-pressed=true],html.shelled #wiz .wz-card .choice.on{background:#fff;box-shadow:inset 0 0 0 2px var(--accent)}
html.shelled #wiz .wz-card .choice-t{font-size:16px;line-height:1.35}
html.shelled #wiz .wz-card :is(.signed-in,.org-pick,.qline,.why-band,.voice-heard){background:var(--ink)}
html.shelled #wiz .wz-card .invite-row + .invite-row{border-top:1px solid var(--line);padding-top:16px}
html.shelled #wiz .wz-card .share .btn{width:auto}
/* On a phone with the tab bar, Ask the analyst sits above the bar instead of on the Add button */
@media (max-width:820px){html.shelled .helper-btn{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
/* Setup look (2026-11-04): a deep teal band with the build meter, the step on a white card with the analyst's
   strip under it, and the room taking shape in a live card on the right. */
.wz-built,.wz-meter,.wz-live,.wz-work{display:none}
html.shelled #wiz.msg{max-width:min(1120px,100%)}
html.shelled #wiz .you-grid{max-width:900px;margin-inline:auto;width:100%}
html.shelled #wiz form > .wz-head + .you-grid{margin-top:4px}
html.shelled .wz-head{background:var(--accent);color:#fff;border-radius:24px;padding:26px 30px 24px;align-items:flex-start;text-align:start;gap:8px}
html.shelled .wz-head .progress{display:none}
html.shelled .wz-head .meta{display:flex;gap:10px;flex-wrap:wrap;font-size:14px;color:rgba(255,255,255,.75)}
html.shelled .wz-head .wz-built{display:inline}
html.shelled .wz-head .wz-built::before{content:"·";margin-inline-end:10px}
html.shelled .wz-head .step-title{color:#fff;margin:2px 0 0}
html.shelled .wz-head .small{color:rgba(255,255,255,.8);max-width:62ch}
html.shelled .wz-meter{display:block;width:100%;height:6px;border-radius:6px;background:rgba(255,255,255,.18);margin-top:12px;overflow:hidden}
html.shelled .wz-meter i{display:block;height:100%;background:var(--yellow);border-radius:6px;transition:width .6s ease}
.wz-cols{display:contents}
html.shelled .wz-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
html.shelled .wz-mainc{display:flex;flex-direction:column;gap:14px;min-width:0}
html.shelled #wiz .wz-mainc .actions{justify-content:flex-end;margin-top:2px}
html.shelled .wz-work{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;background:var(--accent);color:#fff;border-radius:16px;padding:12px 16px;font-size:14px}
html.shelled .wz-work .lv-who{font-weight:500;margin-inline-end:4px}
html.shelled .wz-work .ok::before{content:"✓ ";color:var(--yellow)}
html.shelled .wz-work .run::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;border:2px solid var(--yellow);border-top-color:transparent;margin-inline-end:7px;vertical-align:-1px;animation:lvspin .9s linear infinite}
html.shelled .wz-work .idle{color:rgba(255,255,255,.75)}
@keyframes lvspin{to{transform:rotate(360deg)}}
html.shelled .wz-live{display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:20px;padding:18px;position:sticky;top:20px}
html.shelled .wz-live h2{margin:0 0 4px;font-size:16px;font-weight:500}
.lv-row{display:flex;flex-direction:column;gap:3px;text-align:start;font:inherit;color:var(--fg);border:1.5px dashed rgba(0,0,0,.16);border-radius:12px;padding:10px 12px;background:none}
button.lv-row{cursor:pointer}
button.lv-row:hover{border-color:var(--accent)}
.lv-row.done{border:1.5px solid transparent;background:var(--ink)}
.lv-row.at{border:1.5px solid var(--accent);background:#fff}
.lv-k{display:flex;justify-content:space-between;gap:8px;font-size:13px;font-weight:500}
.lv-s{color:var(--accent);font-weight:400;font-size:12px}
.lv-v{font-size:13px;color:var(--dim);line-height:1.35}
.lv-row:not(.done):not(.at) .lv-k{color:var(--dim);font-weight:400}
.lv-av{display:flex;margin-top:4px}
.lv-av i{font-style:normal;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;border:2px solid var(--ink);margin-inline-end:-6px}
@media (max-width:1100px){html.shelled .wz-cols{grid-template-columns:minmax(0,1fr)}html.shelled .wz-live{display:none}}
@media (max-width:640px){
  html.shelled .wz-head{padding:20px 18px;border-radius:20px}
  html.shelled #wiz .wz-mainc .actions{justify-content:stretch}
  html.shelled .wz-work{font-size:13px}
}
@media (prefers-reduced-motion:reduce){html.shelled .wz-work .run::before{animation:none}.wz-meter i{transition:none}}
/* Work with a file (2026-11-04): who sees it, the actions, results and a chat */
.file-item{display:flex;flex-direction:column;gap:8px;padding:10px 0;border-top:1px solid var(--line)}
.file-item:first-child{border-top:0}
.fx-vis{display:flex;flex-direction:column;gap:6px;padding-inline-start:12px}
.fx-vis .lbl{font-size:13px}
.fx-wrap > summary{cursor:pointer;color:var(--accent);font-size:14px;padding-inline-start:12px}
.fx{display:flex;flex-direction:column;gap:12px;margin-top:10px;background:#fff;border-radius:16px;padding:16px;box-shadow:0 0 0 1px var(--line)}
.fx-acts{display:flex;flex-wrap:wrap;gap:8px}
.fx-out{display:flex;flex-direction:column;gap:10px}
.fx-res{display:flex;flex-direction:column;gap:8px;background:var(--ink);border-radius:14px;padding:14px 16px}
.fx-t{font-size:13px;font-weight:500;color:var(--accent)}
.fx-p{margin:0;font-size:15px;line-height:1.5}
.fx-ul{margin:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px;font-size:15px;line-height:1.45}
.fx-num{display:flex;flex-direction:column;gap:2px}
.fx-num b{font-weight:500;font-size:16px}
.fx-check{color:var(--dim)}
.fx-foot{display:flex;gap:16px;flex-wrap:wrap}
.fx-chat{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.fx-log{display:flex;flex-direction:column;gap:6px}
.fx-log p{margin:0;font-size:15px;line-height:1.45;padding:10px 12px;border-radius:14px;max-width:88%}
.fx-me{align-self:flex-end;background:var(--accent);color:#fff}
.fx-ai{align-self:flex-start;background:var(--ink)}
.fx-wait{color:var(--dim)}
.fx-open{background:none;border:0;font:inherit;font-size:13px;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.fx-pop{justify-content:flex-end}
.fx-sheet{overflow-y:auto;padding:28px 24px 40px;display:flex;flex-direction:column;gap:8px}
.fx-sheet h2{margin:0 48px 6px 0;font-size:22px;font-weight:400;overflow-wrap:anywhere}
.fx-kicker{font-size:13px;color:var(--dim)}
.fx-sheet .fx{box-shadow:none}
html.shelled #wiz .wz-card .fx :is(input:not([type=checkbox]):not([type=radio]),textarea){background:var(--ink)}

/* File panel rows: the send row and the chat row share one layout, so their fields are the same width */
:is(.fx-send,.fx-ask){display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:8px;align-items:center}
:is(.fx-send,.fx-ask) input{width:100%;min-width:0;height:46px;box-sizing:border-box}
.fx-btns{display:flex;gap:8px}
.fx-btns .btn{flex:1;width:auto;min-width:0;height:46px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media (max-width:560px){:is(.fx-send,.fx-ask){grid-template-columns:1fr}}
/* The world brief sits on its own soft yellow panel, apart from what the owner writes */
.brief-panel{background:var(--yellow);border-radius:16px;padding:16px 18px;gap:8px}
.brief-panel .tick{background:#fff;border-color:transparent;border-radius:12px}
.brief-panel .tick[aria-pressed=true]{border-color:var(--accent)}
.brief-panel .small{color:rgba(29,29,29,.7)}

/* What's missing: a clear red note above the buttons, and the part to fix outlined with the same note */
.step-err:empty{display:none}
.step-err.show{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;background:#FDECEE;color:var(--err);border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.45}
.step-err .linkbtn{color:var(--err);font-size:14px}
.step-err.shake{animation:errShake .4s ease}
@keyframes errShake{0%,100%{transform:none}20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.need{outline:2px solid var(--err);outline-offset:6px;border-radius:12px}
.need-msg{margin:0;color:var(--err);font-size:14px}
@media (prefers-reduced-motion:reduce){.step-err.shake{animation:none}}
