@import url("deco.css"); /* the shared deco frame */
:root{
  --bg:#09090b;--surface:#111113;--surface2:#18181b;--surface3:#1f1f23;
  --line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.13);
  --ink:#fafafa;--muted:#a1a1aa;--dim:#8b8b94;--faint:#52525b;
  --soft:rgba(255,255,255,.06);--green:#22c55e;--amber:#f59e0b;
  --radius:14px;--maxw:1160px;
  --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-mono:"Monotech",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; /* WO-DUD3-FONT-0003: CODE, KEYS, NUMBERS FONT, one line. Monotech first, old mono stack as last resort. Revert: --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; */
  --mono:var(--font-mono); /* old name kept so every existing var(--mono) rule follows --font-mono */
  --font-body:"Everplay Desk",var(--font); /* Shelley 2026-11-12 ruling: the default face is Everplay Desk 0.101, with the system stack as fallback.
     Before that, same day ("the font is a bit illegible; more professional and legible"): --font-body:"Everplay Ledger",var(--font); Visitors can pick another face in the Aa panel (data-font, below).
     Earlier: --font-body:"Everplay Sans",var(--font); from wo-20261109-dud3ai-font-and-branding OPTION B (Shelley, Main 2026-11-09 ~12:15): body in Everplay Sans 0.600, the Font Usage Guide's own Text->Sans fallback, because Everplay Text 0.647 draws capital E as A. Substitution named in rcpt-wo-20261109-dud3ai-font-and-branding. Back to Text: "Everplay Text","Everplay Sans",var(--font) once Text gets its point release. */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.messages{scroll-behavior:auto!important}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid #e4e4e7;outline-offset:2px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#000;padding:.5rem .8rem;z-index:99;border-radius:0 0 8px 0}
.skip:focus{left:0}

/* preview banner */
.banner{text-align:center;font-size:.72rem;letter-spacing:.04em;color:var(--dim);padding:.5rem 1rem;border-bottom:1px solid var(--line);background:var(--surface)}
.banner b{color:var(--muted);font-weight:600}

/* nav */
.nav{position:sticky;top:0;z-index:30;background:rgba(9,9,11,.82);backdrop-filter:saturate(140%) blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-inner{max-width:var(--maxw);margin:0 auto;padding:.7rem 1.25rem;display:flex;align-items:center;gap:1rem}
.logo{display:inline-flex;align-items:center;gap:.5rem;font-weight:680;letter-spacing:-.02em;text-decoration:none;font-size:1rem}
.logo img{width:30px;height:30px;border-radius:8px;box-shadow:0 0 0 1.5px var(--brand-gold,#D3AD57),0 0 0 3px var(--bg),0 0 0 3.6px rgba(211,173,87,.55)} /* the mark's black tile vanished on the dark nav (Shelley's 7:49 PM screenshot): a brass double rule frames it in every theme */
.logo{font-size:1.45rem;gap:.7rem}
.nav-links{display:none;align-items:center;gap:.25rem;margin-left:1rem}
.nav-links a{color:var(--muted);text-decoration:none;font-size:.875rem;padding:.4rem .65rem;border-radius:8px}
.nav-links a:hover{color:var(--ink);background:var(--soft)}
.nav-links a[aria-current="page"]{color:var(--ink)}
.tag{font-size:.62rem;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);border:1px solid var(--line2);border-radius:999px;padding:.05rem .4rem;margin-left:.3rem;vertical-align:1px}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:.5rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;text-decoration:none;border-radius:10px;padding:.7rem 1.15rem;font-size:.92rem;font-weight:600;border:1px solid transparent;cursor:pointer;white-space:nowrap}
.btn-primary{background:var(--ink);color:#09090b}
.btn-primary:hover{filter:brightness(.92)}
.btn-ghost{background:transparent;border-color:var(--line2);color:var(--ink)}
.btn-ghost:hover{background:var(--soft)}
.btn-sm{padding:.42rem .8rem;font-size:.8rem;border-radius:8px}
.menu-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;border:1px solid var(--line2);background:transparent;cursor:pointer}
.menu-btn svg{width:18px;height:18px}
.mobile-menu{display:none;border-top:1px solid var(--line);padding:.5rem 1.25rem 1rem}
.mobile-menu.open{display:block}
.mobile-menu ul{list-style:none;margin:0;padding:0}
.mobile-menu li a{display:flex;align-items:center;gap:.6rem;padding:.7rem .2rem;text-decoration:none;color:var(--muted);border-bottom:1px solid var(--line);font-size:.95rem}
.mobile-menu li a::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--faint);flex:none}
.mobile-menu li a[aria-current="page"]{color:var(--ink)}
.mobile-menu li a[aria-current="page"]::before{background:var(--green)}
@media (min-width:860px){.nav-links{display:flex}.menu-btn,.mobile-menu,.mobile-menu.open{display:none}}

/* hero */
.hero{max-width:820px;margin:0 auto;padding:2.6rem 1.25rem 1.6rem;text-align:center}
.pill{display:inline-flex;align-items:center;gap:.45rem;font-size:.75rem;color:var(--muted);background:var(--surface2);border:1px solid var(--line2);border-radius:999px;padding:.28rem .75rem;margin-bottom:1.1rem}
.pill i{width:6px;height:6px;border-radius:50%;background:var(--green);display:inline-block}
@media (max-width:480px){.hero .pill{flex-wrap:wrap;justify-content:center;row-gap:.1rem;text-align:center}} /* Ledger is wider than Sans: the pill wraps as one line of text instead of splitting into two columns */
h1{font-size:clamp(2.1rem,5vw,3.35rem);line-height:1.06;letter-spacing:-.04em;font-weight:660;margin:0 0 .85rem}
.sub{font-size:1.06rem;color:var(--muted);margin:0 auto;max-width:36rem}

/* chat app */
.app-wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem 4rem}
.app{background:var(--surface);border:1px solid var(--line2);border-radius:18px;overflow:hidden;box-shadow:0 40px 90px rgba(0,0,0,.5);display:flex;flex-direction:column}
.app-bar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.6rem .8rem;border-bottom:1px solid var(--line);background:var(--surface2)}
.model{display:inline-flex;align-items:center;gap:.45rem;font-size:.8rem;color:var(--ink);border:1px solid var(--line2);border-radius:999px;padding:.28rem .7rem;background:var(--surface)}
.model .dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(34,197,94,.15)}
.model.pro .dot{background:#e4e4e7;box-shadow:0 0 0 3px rgba(255,255,255,.12)}
.model small{color:var(--dim);font-size:.72rem}
.switch{display:inline-flex;align-items:center;gap:.5rem;background:none;border:0;cursor:pointer;font-size:.8rem;color:var(--muted);padding:.25rem .3rem;border-radius:8px}
.switch:hover{color:var(--ink)}
.switch .track{width:30px;height:18px;border-radius:999px;background:var(--surface3);border:1px solid var(--line2);position:relative;transition:background .2s}
.switch .track::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform .2s,background .2s}
.switch[aria-checked="true"]{color:var(--ink)}
.switch[aria-checked="true"] .track{background:var(--ink)}
.switch[aria-checked="true"] .track::after{transform:translateX(12px);background:#09090b}
.bar-right{margin-left:auto;display:flex;gap:.4rem;align-items:center}
.icon-btn{display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--line2);background:transparent;border-radius:8px;padding:.32rem .65rem;font-size:.78rem;color:var(--muted);cursor:pointer}
.icon-btn:hover{color:var(--ink);background:var(--soft)}
.icon-btn[aria-pressed="true"],.icon-btn[aria-expanded="true"]{color:var(--ink);background:var(--soft)}
.icon-btn svg{width:14px;height:14px}
.app-body{display:grid;grid-template-columns:1fr;min-height:0}
.convo{display:flex;flex-direction:column;min-width:0;min-height:0}
.messages{overflow-wrap:anywhere;height:min(56vh,520px);min-height:340px;overflow-y:auto;padding:1.3rem 1rem .6rem;scroll-behavior:smooth}
.msg{max-width:720px;margin:0 auto 1.2rem}
.msg-user{display:flex;justify-content:flex-end}
.msg-user .bubble{background:var(--surface3);border:1px solid var(--line);border-radius:14px 14px 4px 14px;padding:.6rem .9rem;max-width:85%;font-size:.95rem}
.msg-ai .who{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--dim);margin-bottom:.35rem}
.msg-ai .who b{color:var(--muted);font-weight:600}
.msg-ai .who .mchip{border:1px solid var(--line2);border-radius:999px;padding:0 .45rem;font-size:.68rem}
.answer{font-size:.97rem;color:#e4e4e7}
.answer p{margin:0 0 .65rem}
.answer ul{margin:0 0 .65rem;padding-left:1.1rem}
.answer li{margin:.2rem 0}
.cite{display:inline-flex;align-items:center;justify-content:center;min-width:1.2rem;height:1.15rem;padding:0 .3rem;margin:0 .1rem;border-radius:5px;border:1px solid var(--line2);background:var(--surface2);color:var(--muted);font-size:.68rem;font-weight:400;font-family:var(--mono);vertical-align:2px;cursor:pointer;line-height:1}
.cite:hover,.cite.hot{background:var(--ink);color:#09090b;border-color:var(--ink)}
@keyframes pulse{0%,100%{opacity:.25}50%{opacity:1}}
.receipt{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.5rem;padding-top:.6rem;border-top:1px dashed var(--line2);font-size:.75rem;color:var(--dim)}
.receipt .r-label{font-weight:600;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:.66rem;margin-right:.2rem}
.src-chip{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--line2);border-radius:999px;padding:.18rem .55rem .18rem .25rem;background:var(--surface);color:var(--muted);font-size:.74rem;cursor:pointer;max-width:100%}
.src-chip:hover,.src-chip.hot{color:var(--ink);border-color:var(--muted)}
.src-chip .n{display:inline-grid;place-items:center;width:1.1rem;height:1.1rem;border-radius:50%;background:var(--surface3);font-family:var(--mono);font-size:.64rem;color:var(--ink)}
.receipt .conf{margin-left:auto;display:inline-flex;align-items:center;gap:.35rem}
.conf .bar{width:38px;height:4px;border-radius:2px;background:var(--surface3);overflow:hidden;display:inline-block}
.conf .bar span{display:block;height:100%;background:var(--green)}
.linkish{background:none;border:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:.75rem;padding:0}
.linkish:hover{color:var(--ink)}
.empty-state{max-width:560px;margin:2.5rem auto;text-align:center;color:var(--muted)}

/* composer */
.composer-wrap{padding:.4rem 1rem 1rem}
.starters{max-width:720px;margin:0 auto .6rem;display:flex;gap:.4rem;flex-wrap:wrap}
.starter{font-size:.8rem;color:var(--muted);border:1px solid var(--line2);border-radius:999px;padding:.35rem .75rem;background:transparent;cursor:pointer;text-align:left}
.starter:hover{color:var(--ink);background:var(--soft)}
.starter:disabled{opacity:.45;cursor:default}
.composer{max-width:720px;margin:0 auto;border:1px solid var(--line2);border-radius:14px;background:var(--surface2);padding:.6rem .7rem .55rem .9rem}
.composer:focus-within{border-color:rgba(255,255,255,.28)}
.composer textarea{width:100%;resize:none;border:0;background:transparent;color:var(--ink);font:inherit;font-size:.95rem;line-height:1.45;outline:none;min-height:1.6rem;max-height:9rem;padding:.2rem 0}
.composer textarea::placeholder{color:var(--dim)}
.composer-row{display:flex;align-items:center;gap:.5rem;margin-top:.35rem}
.depth{display:flex;gap:.25rem}
.depth button{font-size:.72rem;color:var(--dim);border:1px solid var(--line);border-radius:6px;padding:.22rem .5rem;background:none;cursor:pointer}
.depth button[aria-pressed="true"]{color:var(--ink);border-color:var(--line2);background:var(--soft)}
.send{margin-left:auto;width:34px;height:34px;border-radius:9px;border:0;background:var(--ink);color:#09090b;display:grid;place-items:center;cursor:pointer}
.send:disabled{opacity:.35;cursor:default}
.send svg{width:16px;height:16px}
.fallback-note{max-width:720px;margin:.55rem auto 0;font-size:.72rem;color:var(--dim);text-align:center}

/* trail panel */
.trail{display:none;border-top:1px solid var(--line);background:#0d0d0f;min-width:0}
.trail.open{display:block}
.trail-head{display:flex;align-items:center;justify-content:space-between;padding:.8rem 1rem .5rem}
.trail-head h2{margin:0;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.trail-body{overflow-wrap:anywhere;padding:0 1rem 1rem;overflow-y:auto}
.trail-sec{margin-bottom:1.1rem}
.trail-sec h3{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);font-weight:600;margin:.4rem 0 .5rem}
.steps{list-style:none;margin:0;padding:0;position:relative}
.steps li{position:relative;padding:0 0 .7rem 1.5rem;font-size:.82rem;color:var(--faint)}
.steps li::before{content:"";position:absolute;left:.3rem;top:.32rem;width:8px;height:8px;border-radius:50%;border:1.5px solid var(--faint);background:#0d0d0f;z-index:1}
.steps li::after{content:"";position:absolute;left:calc(.3rem + 4px);top:.9rem;bottom:0;width:1px;background:var(--line2)}
.steps li:last-child::after{display:none}
.steps li.active{color:var(--ink)}
.steps li.active::before{border-color:var(--ink);animation:pulse 1s infinite}
.steps li.done{color:var(--muted)}
.steps li.done::before{background:var(--green);border-color:var(--green)}
.steps li small{display:block;color:var(--dim);font-size:.74rem}
.sources{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.source{border:1px solid var(--line);border-radius:10px;padding:.6rem .7rem;background:var(--surface);transition:border-color .2s,background .2s}
.source.hot{border-color:rgba(255,255,255,.4);background:var(--surface2)}
.source .top{display:flex;align-items:center;gap:.45rem;font-size:.72rem;color:var(--dim)}
.source .top .n{display:inline-grid;place-items:center;width:1.15rem;height:1.15rem;border-radius:5px;background:var(--surface3);font-family:var(--mono);font-size:.64rem;color:var(--ink)}
.source a.t{display:block;font-size:.84rem;color:var(--ink);text-decoration:none;margin:.25rem 0 .2rem;font-weight:550}
.source a.t:hover{text-decoration:underline}
.source q{display:block;font-size:.78rem;color:var(--muted);quotes:none;border-left:2px solid var(--line2);padding-left:.55rem}
.source .supports{font-size:.72rem;color:var(--dim);margin-top:.3rem}
.trail-note{font-size:.72rem;color:var(--dim);border-top:1px solid var(--line);padding-top:.7rem}
.trail-empty{font-size:.82rem;color:var(--dim)}
@media (min-width:980px){
  .app-body{grid-template-columns:1fr 0}
  .app-body.with-trail{grid-template-columns:1fr 360px}
  .trail{border-top:0;border-left:1px solid var(--line)}
  .messages{height:520px}
  .trail.open{display:flex;flex-direction:column;max-height:calc(520px + 168px)}
}

/* sections */
.section{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem 4rem}
.eyebrow{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin:0 0 .5rem}
.section h2.title{margin:0 0 .5rem;font-size:clamp(1.45rem,3vw,1.85rem);letter-spacing:-.03em;font-weight:620}
.lede{margin:0 0 1.6rem;color:var(--muted);max-width:38rem}
.bullets{list-style:none;margin:0;padding:0;display:grid;gap:0}
.bullets li{display:grid;grid-template-columns:auto 1fr;gap:.2rem .75rem;padding:.85rem 0;border-top:1px solid var(--line)}
.bullets li::before{content:"";grid-row:span 2;width:6px;height:6px;border-radius:50%;background:var(--muted);margin-top:.5rem}
.bullets h3{margin:0;font-size:.98rem;font-weight:600;letter-spacing:-.01em}
.bullets p{margin:0;color:var(--muted);font-size:.9rem;grid-column:2}
@media (min-width:760px){
  .bullets.cards{grid-template-columns:repeat(3,1fr);gap:.85rem}
  .bullets.cards li{display:block;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:1.2rem}
  .bullets.cards li::before{display:block;margin:0 0 .9rem}
  .bullets.cards h3{margin-bottom:.35rem}
}

/* receipt anatomy */
.split{display:grid;gap:1.5rem;align-items:start}
@media (min-width:900px){.split{grid-template-columns:1fr 1fr;gap:3rem}}
.anatomy{border:1px solid var(--line2);border-radius:var(--radius);background:var(--surface);padding:1.1rem 1.2rem;font-size:.88rem}
.anatomy .claim{color:#e4e4e7;margin:0 0 .8rem}
.anatomy dl{display:grid;grid-template-columns:auto 1fr;gap:.45rem .9rem;margin:0}
.anatomy dt{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);padding-top:.15rem}
.anatomy dd{margin:0;color:var(--muted)}
.anatomy code{font-family:var(--mono);font-size:.8rem;color:var(--ink)}

/* apps */
.apps{display:grid;gap:.85rem}
@media (min-width:760px){.apps{grid-template-columns:1fr 1fr}}
.app-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:1.3rem}
.app-card h3{margin:0 0 .25rem;font-size:1.05rem}
.app-card .price{font-size:.82rem;color:var(--muted);margin:0 0 .75rem}
.app-card ul{margin:0 0 1rem;padding-left:1.05rem;color:var(--muted);font-size:.88rem}
.app-card li{margin:.2rem 0}
.app-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.price-line{margin:1rem 0 0;font-size:.85rem;color:var(--dim)}

/* skills + byok strips */
.strip{display:grid;gap:1rem;align-items:center;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:1.2rem 1.3rem}
@media (min-width:760px){.strip{grid-template-columns:1fr auto}}
.strip h3{margin:0 0 .3rem;font-size:1rem}
.strip p{margin:0;color:var(--muted);font-size:.9rem;max-width:44rem}
.skill-list{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.7rem;padding:0;list-style:none}
.skill-list li{font-family:var(--mono);font-size:.75rem;color:var(--muted);border:1px solid var(--line2);border-radius:6px;padding:.15rem .5rem}
.byok{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.9rem 0;font-size:.85rem;color:var(--muted)}
.byok b{color:var(--ink);font-weight:600}
.byok .sep{color:var(--faint)}

footer{border-top:1px solid var(--line)}
.foot{max-width:var(--maxw);margin:0 auto;padding:1.6rem 1.25rem 2.4rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.8rem;color:var(--dim)}
.foot nav{display:flex;gap:1rem;flex-wrap:wrap}
.foot a{color:var(--muted);text-decoration:none}
.foot a:hover{color:var(--ink)}

/* phone bullets (built after an answer finishes; shown only on phone) */
.answer-phone{display:none}
.pb-list{list-style:none;margin:0 0 .4rem;padding:0}
.pb-item{position:relative;padding:.45rem 0 .5rem 1rem;border-bottom:1px solid var(--line);font-size:.95rem;line-height:1.45;color:#e4e4e7}
.pb-item:last-child{border-bottom:0}
.pb-item::before{content:"";position:absolute;left:.1rem;top:.95rem;width:5px;height:5px;border-radius:50%;background:var(--muted)}
.pb-text{display:block}
.pb-srcs{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.35rem}
.pb-srcs .src-chip{font-size:.7rem}
/* phone trail: collapsible sections under each answer (phone only) */
.trail-phone{display:none;margin:.5rem 0 .2rem;border:1px solid var(--line);border-radius:12px;background:#0d0d0f;overflow:hidden}
.tp-sec{border-top:1px solid var(--line)}
.tp-sec:first-child{border-top:0}
.tp-sec summary{display:flex;align-items:center;gap:.5rem;min-height:44px;padding:.55rem .8rem;cursor:pointer;list-style:none;font-size:.82rem;color:#e4e4e7}
.tp-sec summary::-webkit-details-marker{display:none}
.tp-sec summary::before{content:"";width:0;height:0;border-left:5px solid var(--muted);border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s;flex:none}
.tp-sec[open] summary::before{transform:rotate(90deg)}
.tp-sec summary:focus-visible{outline:2px solid var(--muted);outline-offset:-2px}
.tp-label{font-weight:600}
.tp-count{font-size:.7rem;color:var(--muted);border:1px solid var(--line2);border-radius:999px;padding:0 .45rem}
.tp-hint{margin-left:auto;font-size:.72rem;color:var(--dim)}
.tp-sec > ol,.tp-sec > ul,.tp-sec > p{margin:0;padding:0 .9rem .8rem}
.tp-sec .steps{padding-left:2rem}
.tp-srcs{list-style:none}
.tp-src{padding:.55rem .6rem;border:1px solid var(--line);border-radius:10px;margin-bottom:.45rem;font-size:.8rem;overflow-wrap:anywhere}
.tp-src.hot{border-color:var(--muted);background:rgba(255,255,255,.04)}
.tp-src .top{display:flex;gap:.4rem;align-items:center;color:var(--muted);font-size:.72rem}
.tp-src .n{font-weight:700}
.tp-src .t{display:block;margin:.2rem 0;color:#e4e4e7}
.tp-src q{display:block;color:var(--dim);font-size:.76rem}
.tp-src .supports{color:var(--dim);font-size:.72rem;margin-top:.25rem}
.tp-why{font-size:.82rem;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.tp-sec summary::before{transition:none}}

/* phone tweaks */
@media (max-width:640px){
  .hero{padding:1.8rem 1.1rem 1.2rem;text-align:left}
  .sub{font-size:.98rem}
  .app-wrap{padding:0 .6rem 3rem}
  .app{border-radius:14px}
  .messages{height:auto;min-height:0;max-height:none;overflow:visible;padding:1rem .8rem .4rem}
  .msg-user .bubble{max-width:92%}
  .composer-wrap{padding:.3rem .7rem .8rem}
  .starters{flex-direction:column;align-items:stretch}
  .starter{border-radius:10px;padding:.55rem .75rem}
  .switch .lbl-long{display:none}
  .receipt .conf{margin-left:0;width:100%}
  .section{padding:0 1.1rem 3rem}
  .bar-right .txt{display:none}
  .app-bar{gap:.4rem;padding:.55rem .6rem}
  .model small{display:none}
  .switch{padding:.25rem .1rem}
  .has-bullets .answer{display:none}
  .has-bullets .answer-phone{display:block}
  .trail-phone{display:block}
  .trail.open{display:none}
}
@media (min-width:641px){.switch .lbl-short{display:none}}

/* REED room */
.room{max-width:720px;margin:0 auto;padding:4.5rem 1.25rem 5rem}
.room .pill i{background:var(--amber)}
.room-card{border:1px dashed var(--line2);border-radius:18px;background:var(--surface);padding:1.6rem 1.4rem;margin-top:1.8rem}
.room-card ul{list-style:none;padding:0;margin:0}
.room-card li{display:flex;gap:.7rem;padding:.65rem 0;border-top:1px solid var(--line);color:var(--muted);font-size:.92rem}
.room-card li:first-child{border-top:0}
.room-card li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--faint);margin-top:.55rem;flex:none}
.room-composer{margin-top:1.2rem;display:flex;gap:.5rem;align-items:center;border:1px solid var(--line);border-radius:12px;padding:.65rem .8rem;color:var(--faint);font-size:.9rem;background:var(--bg)}
.room-composer span{flex:1}
.receipt .served{border:1px solid var(--line2);border-radius:999px;padding:.05rem .5rem;font-size:.7rem;color:var(--muted)}
.receipt .served.sample{border-style:dashed}
.api-note{font-size:.8rem;color:var(--dim)}
/* held turn after a 429: question kept, not sent yet */
.msg-user.held .bubble{opacity:.72;border-style:dashed}
.held-note{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;border:1px dashed var(--line2);border-radius:12px;padding:.6rem .8rem;font-size:.82rem;color:var(--muted)}
.held-note .held-ico{font-weight:700;letter-spacing:-.1em;color:var(--dim)}
.held-note .held-txt{display:flex;flex-direction:column;gap:.15rem;flex:1 1 14rem;min-width:0}
.held-note .held-txt b{color:var(--ink,inherit);font-weight:600}
.held-note .held-retry:disabled{opacity:.6;cursor:default}
@media (max-width:700px){.held-note .held-retry{width:100%}}
/* Stop: shown only while a request is in flight (Dual, Compare) */
.stop-btn[hidden]{display:none}
.stop-btn::before{content:"";display:inline-block;width:.5em;height:.5em;margin-right:.45em;background:currentColor;border-radius:1px;vertical-align:.04em}
.receipt .served.preview{border-style:dotted}

/* a11y pass 1 (2026-10-22): visible focus where outlines are suppressed */
.view-main:focus{outline:none}
.composer:has(textarea:focus-visible){border-color:rgba(255,255,255,.55);box-shadow:0 0 0 2px rgba(228,228,231,.35)}
.skip:focus{outline:2px solid #e4e4e7;outline-offset:2px}
.skip{position:fixed}

/* waiting animation (assets/aurora.js): particle-dust aurora borealis while an answer is on its way.
   Answers are never streamed; they replace this whole, with a short fade. */
.aurora{position:relative;width:100%;height:168px;border-radius:14px;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(130% 120% at 50% 112%,rgba(18,58,72,.55),rgba(12,14,40,.35) 45%,rgba(5,5,16,0) 75%),linear-gradient(180deg,#04040c,#080a1c);
  animation:auroraIn .45s ease both}
.aurora-cv{position:absolute;inset:0;width:100%;height:100%;display:block;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
.aurora-label{position:absolute;left:0;right:0;bottom:.7rem;margin:0;padding:0 1rem;text-align:center;font-size:.8rem;letter-spacing:.02em;color:#c9c4dc;text-shadow:0 1px 8px rgba(0,0,0,.9)}
.aurora-out{opacity:0;transition:opacity .25s ease}
.aurora-mini{height:72px;border-radius:10px}
.aurora-mini .aurora-label{bottom:.4rem;font-size:.74rem}
.aurora-stage{position:absolute;inset:0;height:auto;border-radius:0;border:0;z-index:3;background:radial-gradient(120% 90% at 50% 100%,rgba(18,58,72,.45),rgba(4,4,12,.0) 70%),rgba(3,3,10,.72)}
.aurora-stage .aurora-label{bottom:1.4rem;font-size:.9rem}
.aurora-block{height:260px;margin:0 0 1rem}
@keyframes auroraIn{from{opacity:0}to{opacity:1}}
.answer-in{animation:answerIn .32s ease both}
@keyframes answerIn{from{opacity:0}to{opacity:1}}
@media (max-width:640px){.aurora{height:150px}.aurora-block{height:220px}.aurora-mini{height:64px}}
.cmp-shell.is-waiting{display:none}
.cmp-wait{margin-top:.25rem}
.fu-wait .aurora{margin-top:.35rem}
.sol-stage>.dual-wait.aurora-block{grid-column:1/-1;margin:0;border-radius:0;border:0;border-bottom:1px solid var(--line)}
.cmp-wait.aurora-block{max-width:var(--maxw);margin:.25rem auto 3rem;border-color:var(--line2);border-radius:16px}
@media (max-width:640px){.cmp-wait.aurora-block{border-radius:0;border-left:0;border-right:0}}

/* ---------- Appearance (assets/look.js sets data-look, data-pal, data-size, data-weight on <html>) ----------
   Shelley 2026-11-10: hard to read; match the system; terminal-app-like settings. Obsidian (dark) is the site as it was. */
:root[data-look="dark"]{color-scheme:dark}
:root[data-look="dark"][data-pal="midnight"]{
  --bg:#0a0f1c;--surface:#0f1626;--surface2:#151e33;--surface3:#1c2742;
  --line:rgba(160,190,255,.10);--line2:rgba(160,190,255,.17);
  --ink:#eef2fb;--muted:#a9b4cc;--dim:#8f9bb5;--faint:#56617a;--soft:rgba(160,190,255,.07);--deep:#0c1322}
:root[data-look="light"]{
  color-scheme:light;
  --bg:#f7f5f0;--surface:#ffffff;--surface2:#f1eee7;--surface3:#e8e4da;
  --line:rgba(0,0,0,.10);--line2:rgba(0,0,0,.17);
  --ink:#17171a;--muted:#45454f;--dim:#585862;--faint:#8e8e97;--soft:rgba(0,0,0,.05);--deep:#efebe2;
  --gold-ink:#7a5a12}
:root[data-look="light"][data-pal="daylight"]{
  --bg:#ffffff;--surface:#ffffff;--surface2:#f4f5f7;--surface3:#eceef2;--deep:#f4f5f7;
  --ink:#111114;--muted:#43444d;--dim:#56575f;--soft:rgba(0,0,0,.045)}
:root[data-size="s"]{font-size:93.75%}
:root[data-size="l"]{font-size:112.5%}
:root[data-size="xl"]{font-size:125%}
/* Font (Shelley 2026-11-12): data-font from the Aa panel. Headings, labels and the hero follow --font-body (assets/meta-roman.css);
   code stays Monotech; the DUD3 wordmark stays Everplay Sans. Default "desk" is the :root value above (Shelley 2026-11-12 ruling; was "ledger"). */
:root[data-font="ledger"]{--font-body:"Everplay Ledger",var(--font)}
:root[data-font="techmemo"]{--font-body:"Everplay Tech Memo",var(--font)}
:root[data-font="folio"]{--font-body:"Everplay Folio",Georgia,"Times New Roman",serif}
:root[data-font="sans"]{--font-body:"Everplay Sans",var(--font)}
:root[data-font="metaroman"]{--font-body:"Everplay Tech Meta-Roman",Georgia,"Times New Roman",serif}
:root[data-font="text"]{--font-body:"Everplay Text",var(--font)}
:root[data-font="eversanscon"]{--font-body:"EverSans Con",var(--font)}
:root[data-font="monotech"]{--font-body:"Monotech",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
:root[data-font="system"]{--font-body:var(--font)}
:root[data-weight="outlined"] body,:root[data-weight="outlined"] body *{-webkit-text-stroke:.45px currentColor}
:root[data-weight="heavy"] body,:root[data-weight="heavy"] body *{-webkit-text-stroke:.8px currentColor}
/* light: surfaces that were written as fixed dark colours */
:root[data-look="light"] .nav{background:rgba(247,245,240,.9)}
:root[data-look="light"][data-pal="daylight"] .nav{background:rgba(255,255,255,.9)}
:root[data-look="light"] .skip{color:var(--bg)}
:root[data-look="light"] .anatomy .claim{color:var(--ink)}
:root[data-look="light"] .logo .by,:root[data-look="light"] .hero .pill .pill-by,:root[data-look="light"] .ep-mark .ep-word{color:var(--gold-ink)}
:root[data-look="light"] .ep-mark .ep-dud3{color:var(--ink)}
:root[data-look="light"] body:not(.solar-page) .mode-tag.m-dual{color:#5b3fb5;border-color:rgba(91,63,181,.35)}
:root[data-look="light"] body:not(.solar-page) .mode-tag.m-compare{color:#0b5f86;border-color:rgba(11,95,134,.35)}
:root[data-look="light"] .btn-primary{color:var(--bg)}
:root[data-look="dark"][data-pal="midnight"] .nav{background:rgba(10,15,28,.84)}
/* the phone answer (.pb-item) and phone trail (.trail-phone) too: TiReRe 2026-11-10 found them at 1.28-2.83:1 in light at <=640px */
:root[data-look] .hist,:root[data-look] .trail,:root[data-look] .trail-phone,:root[data-look] .steps li::before{background:var(--deep,#0d0d0f)}
:root[data-look="light"] :is(.answer,.pb-item,.tp-sec summary,.tp-src .t){color:var(--ink)}

/* the Aa button and the panel */
.menu-btn.look-btn{display:inline-flex!important;color:var(--ink);font-family:var(--font-display,var(--font));font-size:.95rem;letter-spacing:.02em;width:auto;padding:0 .6rem}
.lk-panel{position:fixed;top:calc(var(--top-h,96px) - 6px);right:max(1rem,calc((100vw - var(--maxw)) / 2));z-index:90;width:min(360px,calc(100vw - 2rem));
  max-height:calc(100vh - var(--top-h,96px) - 1rem);overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line2);
  border-radius:var(--radius);box-shadow:0 18px 48px rgba(0,0,0,.35);padding:.9rem 1rem 1rem}
.lk-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.4rem}
.lk-head h2{margin:0;font-size:1rem}
.lk-x{background:none;border:0;color:var(--muted);font-size:1.4rem;line-height:1;cursor:pointer;padding:.2rem .4rem;border-radius:8px}
.lk-g{border:0;margin:0 0 .75rem;padding:0}
.lk-g legend{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.35rem;padding:0}
.lk-opts{display:flex;flex-wrap:wrap;gap:.35rem}
.lk-o{position:relative}
.lk-o input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.lk-o span{display:inline-block;border:1px solid var(--line2);border-radius:999px;padding:.32rem .75rem;font-size:.85rem;color:var(--ink);background:var(--surface2)}
.lk-o input:checked + span{background:var(--brand-gold,#D3AD57);border-color:var(--brand-gold,#D3AD57);color:#15110A}
.lk-o input:focus-visible + span,.lk-x:focus-visible,.lk-reset:focus-visible{outline:2px solid var(--brand-gold,#D3AD57);outline-offset:2px}
.lk-sample{margin:.2rem 0 .8rem;padding:.6rem .7rem;border-radius:10px;background:var(--surface2);border:1px solid var(--line)}
.lk-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.78rem;color:var(--muted)}
.lk-reset{background:none;border:1px solid var(--line2);color:var(--ink);border-radius:999px;padding:.3rem .8rem;cursor:pointer;font:inherit}
.lk-dl{display:block;margin-top:.8rem;padding-top:.75rem;border-top:1px solid var(--line);font-size:.86rem;color:var(--ink);text-decoration:underline;text-decoration-color:var(--brand-gold,#D3AD57);text-decoration-thickness:2px;text-underline-offset:3px}
.lk-dl:hover{color:var(--brand-gold,#D3AD57)}
.lk-dl:focus-visible{outline:2px solid var(--brand-gold,#D3AD57);outline-offset:2px}
@media (max-width:600px){.lk-panel{left:1rem;right:1rem;width:auto;top:auto;bottom:1rem;max-height:80vh}}
/* light: the remaining fixed colours that were drawn for dark */
:root[data-look="light"] .sample-note p{color:#7a4b00;background:rgba(245,158,11,.10);border-color:rgba(180,110,0,.35)}
:root[data-look="light"] .dossier-chip{background:var(--ink);color:var(--bg);border-color:var(--ink)}
:root[data-look="light"] .mode-menu{background:var(--surface);box-shadow:0 12px 30px rgba(0,0,0,.14)}
:root[data-look="light"] .compare-chrome,:root[data-look="light"] .compare-hint,:root[data-look="light"] .compare-next,
:root[data-look="light"] .cmp-claim .claim-extra li,:root[data-look="light"] .cmp-b{background:var(--surface2)}
:root[data-look="light"] .cmp-page,:root[data-look="light"] .sc-conf{--blue:#1d5fb8;--cyan:#0e7490;--ok:#047857;--warn:#8a5a00;--danger:#b42318;--sel:rgba(29,95,184,.12);--sel-b:rgba(29,95,184,.5)}
:root[data-look="light"] .sc-conf{--surface:var(--surface2)}
:root[data-look="light"] .cmp-pins-btn{border-color:rgba(138,90,0,.45)}
:root[data-look="light"] .use-status.warn{color:#8a5a00}
:root[data-look="light"] .tbd{color:var(--gold-ink)}
:root[data-look="light"] .lim-notify-row input{background:var(--surface)}
/* Dual streams (a solar system) and the Skill shelf (a terminal) are drawn as night scenes: they stay dark in every theme */
:root[data-look="light"] .shelf{color-scheme:dark;--surface:#111113;--surface2:#18181b;--surface3:#1f1f23;--line2:rgba(255,255,255,.13);--faint:#52525b;--soft:rgba(255,255,255,.06);--gold-ink:var(--brand-gold)}
:root[data-look="light"] .solar-page{color-scheme:dark;
  --bg:#09090b;--surface:#111113;--surface2:#18181b;--surface3:#1f1f23;--deep:#0d0d0f;
  --line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.13);
  --ink:#fafafa;--muted:#a1a1aa;--dim:#8b8b94;--faint:#52525b;--soft:rgba(255,255,255,.06);--gold-ink:var(--brand-gold)}
:root[data-look="light"] .solar-page .nav{background:rgba(9,9,11,.82)}
:root[data-look="light"] .solar-page .ep-mark .ep-dud3{color:var(--brand-paper)}

/* ---------- Trim (Shelley 2026-11-11: "the site could use some more trim ... without distracting the user or
   information, it should accentuate it"). Art deco rules drawn in CSS: a faint sunburst behind the hero, a rule with
   diamonds under the headline, a short chevron rule under section titles, a double rule between sections, and an
   outer hairline around the question box and the app cards. Ornament only: no layout change, no pointer events, no
   motion. The shapes are SVG masks filled with --trim, so they follow the theme. Brass stays the ornament colour;
   DUD3 himself wears the icon's amber (assets/dudebot.css). ---------- */
:root{--trim:rgba(199,153,85,.72);--trim-soft:rgba(199,153,85,.3);--trim-ray:rgba(199,153,85,.13)}
:root[data-look="light"]{--trim:rgba(152,99,35,.78);--trim-soft:rgba(152,99,35,.28);--trim-ray:rgba(152,99,35,.09)}
.hero{position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;left:50%;top:0;bottom:22%;width:min(1000px,100%);transform:translateX(-50%);
  z-index:-1;pointer-events:none;background:repeating-conic-gradient(from -90deg at 50% 100%,var(--trim-ray) 0 1deg,transparent 1deg 6deg);
  -webkit-mask:radial-gradient(ellipse 50% 100% at 50% 100%,#000 20%,transparent 70%);mask:radial-gradient(ellipse 50% 100% at 50% 100%,#000 20%,transparent 70%)}
.hero h1::after{content:"";display:block;width:min(340px,62%);height:12px;margin:.85rem auto 0;background:var(--trim);pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 12'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M0 4.5H138M0 7.5H138M202 4.5H340M202 7.5H340'/%3E%3Cpath d='M144 6l7-5 7 5-7 5zM163 6l7-5 7 5-7 5zM182 6l7-5 7 5-7 5z' stroke-width='1.3'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 12'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M0 4.5H138M0 7.5H138M202 4.5H340M202 7.5H340'/%3E%3Cpath d='M144 6l7-5 7 5-7 5zM163 6l7-5 7 5-7 5zM182 6l7-5 7 5-7 5z' stroke-width='1.3'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.section h2.title::after{content:"";display:block;width:96px;height:10px;margin-top:.5rem;background:var(--trim);pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 10'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0 5H40'/%3E%3Cpath d='M44 9l6-7 6 7 6-7 6 7'/%3E%3Cpath d='M72 5H96' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") left center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 10'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0 5H40'/%3E%3Cpath d='M44 9l6-7 6 7 6-7 6 7'/%3E%3Cpath d='M72 5H96' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") left center/contain no-repeat}
.section+.section::before{content:"";display:block;width:min(640px,84%);height:16px;margin:0 auto 2.6rem;background:var(--trim-soft);pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 16'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M0 6.5H290M350 6.5H640M0 9.5H290M350 9.5H640'/%3E%3Cpath d='M300 8l20-7 20 7-20 7z' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 16'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M0 6.5H290M350 6.5H640M0 9.5H290M350 9.5H640'/%3E%3Cpath d='M300 8l20-7 20 7-20 7z' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.composer,.app-card{position:relative}
.composer::after,.app-card::after{content:"";position:absolute;inset:-5px;border:1px solid var(--trim-soft);border-radius:calc(var(--radius,14px) + 5px);pointer-events:none}
.composer::after{border-radius:19px}
@media print{.hero::before,.hero h1::after,.section h2.title::after,.section+.section::before,.composer::after,.app-card::after{display:none}}
@media (forced-colors:active){.hero::before{display:none}}

/* The student door (Shelley 2026-11-11): the site's landing, until a door is picked. */
body.door-open{overflow:hidden}
.door{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.72);overflow-y:auto}
.door-card{max-width:620px;width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line2);border-radius:16px;padding:1.5rem 1.4rem;box-shadow:0 0 0 1px rgba(211,173,87,.35),0 24px 60px rgba(0,0,0,.5)}
.door-card h2{margin:0 0 .9rem;font-size:1.45rem}
.door-two p{margin:0 0 .7rem;color:var(--muted)}
.door-two b{color:var(--ink)}
.door-picks{display:grid;gap:.7rem;margin:1.1rem 0 .9rem}
.door-pick{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;text-align:left;width:100%;padding:.95rem 1rem;border-radius:12px;border:1px solid var(--line2);background:var(--surface2);color:var(--ink);font:inherit;cursor:pointer}
.door-pick b{font-size:1.05rem}
.door-pick span{color:var(--muted);font-size:.9rem}
.door-pick:hover,.door-pick:focus-visible{border-color:var(--brand-gold,#D3AD57);outline:none}
.door-note{margin:0;color:var(--dim);font-size:.85rem}
body.lane-student #proSwitch,body.lane-student .tip-trig[data-tip="pro"],body.lane-student .pro-only,body.lane-student .adult-only{display:none}  /* no Pro on the student site: .switch sets a display, so [hidden] alone is not enough */
.lane-chip{margin-right:.4rem;padding:.3rem .65rem;border-radius:999px;border:1px solid var(--brand-gold,#D3AD57);background:transparent;color:var(--ink);font:inherit;font-size:.8rem;cursor:pointer;white-space:nowrap}
@media (max-width:480px){.lane-chip{display:none}}
