/* Brand tokens: swap in official Mayo values here */
:root{
  --blue:#0E3293;        /* primary: Mayo-style deep blue (confirm official value) */
  --blue-press:#0A2670;
  --blue-soft:#EEF1FA;
  --ink:#0B0B0C;
  --ink-2:#4B5059;
  --muted:#666C76;
  --line:#E6E8EC;
  --fill:#F4F5F7;
  --bg:#FFFFFF;
  --canvas:#EEF0F3;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box;}
html,body{margin:0;height:100%;}
/* Text follows the iPhone's text size (docs/ADDON-IDEA-PAGE-FIXES.md, step H). Every font size is in rem, from a 17 px
   root. Up to 17 px it scales: calc(15rem/17) is today's 15 px. Above it, a heading grows by as much as the body does,
   the way iOS's own headings do: calc(1rem + 15px) is today's 32 px. Laptops and other phones keep the 17 px root, so
   they look exactly as before; on an iPhone the root is the system's body size, 17 px at the standard setting, larger
   with Larger Text. A word too long for its line breaks rather than running off the screen. */
html{font-size:17px;}
@supports (-webkit-touch-callout:none){ html{font:-apple-system-body;} }
body{font-size:calc(16rem/17);overflow-wrap:break-word;font-family:var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;}
button,textarea{font:inherit;color:inherit;}
button{background:none;border:0;padding:0;cursor:pointer;}
[hidden]{display:none!important;}
:focus-visible{outline:3px solid var(--ring,var(--blue));outline-offset:3px;border-radius:8px;}
/* A heading or a box that takes focus only so a screen reader starts there isn't a control: no ring. Everything you can
   press keeps it (docs/ADDON-FIVE-TESTS.md, step C) */
:is(h1,h2,h3,h4,h5,h6,p,div,section,dl)[tabindex="-1"]:focus-visible{outline:none;}
/* On a blue surface the ring turns white, so it still shows */
.next,.home-band{--ring:#fff;}
/* Home rows clip what sits outside them: draw their ring inside */
.swipe :focus-visible{outline-offset:-3px;}

.device{position:relative;height:100dvh;overflow:hidden;background:var(--bg);}
@media (min-width:640px){
  body{background:var(--canvas);display:flex;align-items:center;justify-content:center;min-height:100%;padding:24px 16px;}
  .device{width:390px;height:844px;border-radius:44px;box-shadow:0 0 0 10px #111,0 30px 80px rgba(0,0,0,.18);}
}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;overflow-y:auto;padding:calc(env(safe-area-inset-top,0px) + 16px) 24px 0;}
.grow{flex:1;}

h1{font-size:calc(1rem + 15px);line-height:1.1;letter-spacing:-0.02em;margin:0;font-weight:700;text-wrap:balance;}
h2.sec{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:0;}
.sub{font-size:1rem;color:var(--ink-2);margin:10px 0 0;line-height:1.4;}
.small{font-size:calc(14rem/17);color:var(--muted);margin:0;}
.brand{font-size:calc(15rem/17);font-weight:700;letter-spacing:-0.01em;}
.brand span{font-weight:400;color:var(--muted);}
/* Mayo lockup. Mayo Clinic mark: official vector from MC_Berg_Innovation_Exchange_BLACK_CMYK.ai, Exchange wordmark removed */
.lockup{display:flex;align-items:center;min-height:32px;white-space:nowrap;}
.lockup .mark{height:32px;width:auto;display:block;flex:none;color:var(--ink);}
.lockup span{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);border-left:1px solid var(--ink);margin-left:8px;padding-left:8px;line-height:30px;}   /* a mark, so its size stays fixed */
@media (max-width:389px){.lockup span:last-child{display:none;}}
.text-btn{font-size:1rem;color:var(--blue);font-weight:600;min-height:44px;display:inline-flex;align-items:center;gap:4px;}
.chev{color:var(--muted);flex:none;}

/* Dock: primary actions in the thumb zone */
.dock{position:sticky;bottom:0;margin:auto -24px 0;padding:14px 24px calc(env(safe-area-inset-bottom,0px) + 24px);background:linear-gradient(to top,var(--bg) 72%,rgba(255,255,255,0));display:flex;gap:10px;align-items:center;}
.composer{flex:1;min-width:0;overflow-wrap:anywhere;min-height:54px;border-radius:27px;background:var(--fill);border:1px solid var(--line);padding:0 20px;font-size:min(1rem,28px);color:var(--muted);text-align:left;display:flex;align-items:center;line-height:1.25;}   /* grows with the text, but stays a bar at the foot of the screen (step H) */
.mic{width:54px;height:54px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;flex:none;position:relative;}
.mic:active{background:var(--blue-press);}
.mic svg{width:24px;height:24px;}
.mic.outline{background:var(--bg);color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue);}
.mic.on{background:var(--blue);color:#fff;box-shadow:none;}
.mic.on::before,.mic.on::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid var(--blue);opacity:0;animation:ring 1.8s ease-out infinite;}
.mic.on::after{animation-delay:.9s;}
@keyframes ring{0%{transform:scale(.9);opacity:.5}100%{transform:scale(1.3);opacity:0}}
.pill{flex:1;min-height:54px;border-radius:16px;background:var(--blue);color:#fff;font-size:1rem;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;}
.pill:active{background:var(--blue-press);}
.pill:disabled{opacity:.35;cursor:not-allowed;}
.pill.quiet{background:var(--fill);color:var(--blue);}
.pill.compact{flex:0 0 auto;padding:0 22px;}   /* beside a long main button: it takes the room */
a.pill{text-decoration:none;}

/* Home */
.home-hero{padding-top:36px;}
.ideas{margin-top:40px;}
.idea-row{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);min-height:64px;}
.idea-row .t{font-size:1rem;font-weight:600;display:block;}
.idea-row .n{font-size:calc(15rem/17);color:var(--ink-2);display:block;margin-top:2px;}
.idea-row .chev{margin-left:auto;}

/* Capture: type or talk, same box */
.cap-top{display:flex;justify-content:space-between;align-items:center;}
#cap-text{flex:1;width:100%;border:0;outline:none;resize:none;font-size:calc(1rem + 7px);line-height:1.35;letter-spacing:-0.01em;padding:20px 0;background:transparent;min-height:200px;}
#cap-text::placeholder{color:var(--muted);}
.listening{font-size:calc(15rem/17);color:var(--blue);font-weight:600;display:flex;align-items:center;gap:8px;min-height:22px;}
.listening i{width:8px;height:8px;border-radius:50%;background:var(--blue);animation:blink 1s ease-in-out infinite;}
@keyframes blink{50%{opacity:.25}}

/* Result */
.stamp{margin-top:8px;}
.words{margin-top:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.words summary{list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:52px;font-size:1rem;font-weight:600;cursor:pointer;}
.words summary::-webkit-details-marker{display:none;}
.words summary .chev{transition:transform .2s;}
.words[open] summary .chev{transform:rotate(90deg);}
.words p{margin:0 0 12px;font-size:1rem;line-height:1.5;color:var(--ink-2);white-space:pre-wrap;}
.read{background:var(--fill);border-radius:12px;padding:12px 14px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;}
.read div{flex:1;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.read b{display:block;color:var(--ink);font-size:calc(14rem/17);margin-bottom:2px;}
.read button{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:44px;margin:-6px 0;}

.answers{display:flex;flex-direction:column;}
.answer{width:100%;text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);}
.answer .q{font-size:calc(15rem/17);color:var(--muted);font-weight:600;}
.answer .a{grid-column:1;font-size:calc(1rem + 1px);line-height:1.35;font-weight:500;}
.answer .chev{grid-column:2;grid-row:1 / span 4;}
.bar{grid-column:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden;margin-top:8px;}
.bar i{display:block;height:100%;background:var(--blue);border-radius:3px;}
.next{margin-top:24px;background:var(--blue);color:#fff;border-radius:20px;padding:20px;}
.next .q{font-size:calc(15rem/17);font-weight:600;opacity:.8;}
.next p{margin:6px 0 0;font-size:calc(1rem + 3px);line-height:1.35;font-weight:600;}

/* Skeleton while a check is still running */
.sk{display:block;height:18px;border-radius:6px;background:linear-gradient(90deg,var(--fill) 0%,#E9EBEF 50%,var(--fill) 100%);background-size:200% 100%;animation:shim 1.2s linear infinite;}
.sk.w70{width:70%;} .sk.w90{width:90%;} .sk.w50{width:50%;}
@keyframes shim{to{background-position:-200% 0}}
.pending .chev{opacity:.3;}

/* Tools */
.tools{margin-top:32px;}
/* Two columns, or one when the text is too large for two (step H) */
.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(max(calc(50% - 6px),min(100%,calc(1rem + 93px))),1fr));gap:10px;margin-top:12px;}
.tool{background:var(--fill);border-radius:16px;padding:14px;min-height:84px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:10px;}
.tool:active{background:#E9EBEF;}
.tool svg{width:22px;height:22px;color:var(--blue);}
.tool span{font-size:calc(16rem/17);font-weight:600;line-height:1.25;}
/* Pause it (docs/idea-page-tiles-build-spec.md): always the last tile; alone on its row it spans the row, as a row */
#pause-tile:nth-child(odd of .tool:not([hidden])),#s-result.ro #pause-tile{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:60px;}
.tail{height:24px;}

/* Sheets: the second and last level */
.scrim{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:0;transition:opacity .2s;z-index:10;}
.scrim.show{opacity:1;}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:88%;background:var(--bg);border-radius:24px 24px 0 0;z-index:11;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1);}
.sheet.show{transform:none;}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);margin:10px auto 0;flex:none;}
.sheet-body{overflow-y:auto;padding:16px 24px 8px;}
.sheet-body[tabindex]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;}
.sheet h2{font-size:calc(1rem + 7px);margin:0;letter-spacing:-0.015em;}
.sheet .lead{font-size:calc(1rem + 1px);margin:8px 0 0;color:var(--ink-2);line-height:1.4;}
.sheet .prose{font-size:calc(1rem + 1px);line-height:1.5;margin:14px 0 0;}
.list{margin:16px 0 0;padding:0;list-style:none;}
.list li{padding:14px 0;border-top:1px solid var(--line);}
.list b{font-size:1rem;display:block;}
.list span{font-size:calc(16rem/17);color:var(--ink-2);line-height:1.45;display:block;margin-top:2px;}
.list em{font-style:normal;font-size:calc(15rem/17);color:var(--blue);font-weight:600;display:block;margin-top:6px;}
.list a{font-size:calc(15rem/17);color:var(--blue);font-weight:600;text-decoration:none;display:inline-block;margin-top:6px;}
.list span.src{font-size:calc(13rem/17);color:var(--muted);margin-top:4px;}
.steps{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin-top:18px;}
.steps i{height:8px;border-radius:2px;background:var(--line);}
.steps i.now{background:var(--blue);}
.steps-cap{display:flex;justify-content:space-between;margin-top:6px;}
.dots{display:flex;gap:6px;margin-top:14px;}
.dots i{width:14px;height:14px;border-radius:50%;background:var(--line);}
.dots i.on{background:var(--blue);}
.doc{margin-top:14px;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;}
.doc b{font-size:calc(13rem/17);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);}
.doc p{margin:2px 0 0;font-size:calc(15rem/17);line-height:1.45;}
.source-note{font-size:calc(14rem/17);color:var(--muted);margin:14px 0 0;line-height:1.45;}
.sheet-foot{padding:12px 24px calc(env(safe-area-inset-bottom,0px) + 20px);flex:none;display:flex;gap:10px;}

.toast{position:absolute;left:50%;top:calc(env(safe-area-inset-top,0px) + 14px);transform:translateX(-50%);background:var(--ink);color:#fff;font-size:calc(15rem/17);font-weight:600;padding:9px 16px;border-radius:20px;z-index:20;white-space:nowrap;}

/* Next-step action and disclosure */
.next-btn{margin-top:14px;min-height:44px;padding:0 16px;border-radius:12px;background:#fff;color:var(--blue);font-size:calc(16rem/17);font-weight:600;display:inline-flex;align-items:center;}
.next-btn[hidden]{display:none!important;}
.preview{margin-top:18px;}
.preview .disc{margin-top:0;padding-bottom:6px;}
.disc{margin-top:14px;display:flex;flex-direction:column;}
.disc>div{padding:12px 0;border-top:1px solid var(--line);}
.disc b{font-size:calc(13rem/17);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);display:block;}
.disc p{margin:3px 0 0;font-size:calc(16rem/17);line-height:1.45;}
.confirm-h{font-size:calc(15rem/17);font-weight:600;margin:18px 0 0;}
.confirm{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--fill);margin-top:8px;}
.confirm div{flex:1;font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);}
.confirm div strong{display:block;color:var(--ink);font-size:calc(16rem/17);}
.confirm button{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:36px;}
.status{font-size:calc(15rem/17);color:var(--blue);font-weight:600;}
.ask{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;background:var(--blue-soft);margin-top:16px;}
.ask>div:first-child{flex:1;}
.ask strong{display:block;font-size:calc(16rem/17);}
.ask span{display:block;font-size:calc(14rem/17);color:var(--ink-2);margin-top:2px;}
.seg{display:flex;background:#fff;border-radius:10px;padding:3px;gap:3px;flex:none;box-shadow:inset 0 0 0 1px var(--line);}
.seg button{min-width:52px;min-height:38px;border-radius:8px;font-size:calc(15rem/17);font-weight:600;color:var(--ink-2);}
.seg button[aria-pressed="true"]{background:var(--blue);color:#fff;}
.auto{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line);}
.auto:first-of-type{border-top:0;}
.auto .ok{width:22px;height:22px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:none;margin-top:1px;}
.auto>div{flex:1;min-width:0;}
.auto strong{display:block;font-size:calc(16rem/17);}
.auto span{display:block;font-size:calc(15rem/17);color:var(--ink-2);margin-top:1px;}
.auto small{display:block;font-size:calc(13rem/17);color:var(--muted);margin-top:3px;}
.auto button{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:32px;flex:none;}

@media (prefers-reduced-motion:reduce){
  .mic.on::before,.mic.on::after,.sk,.listening i{animation:none;}
  .sheet,.scrim{transition:none;}
}

/* First visit */
.join{margin-top:36px;display:flex;flex-direction:column;gap:18px;}
.field span{display:block;font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin-bottom:8px;}
.field input{width:100%;min-height:54px;border-radius:16px;background:var(--fill);border:1px solid var(--line);padding:0 18px;font:inherit;font-size:1rem;color:var(--ink);outline:none;}
.field input:focus{border-color:var(--blue);background:var(--bg);}
.join-err{margin:0;font-size:calc(15rem/17);color:#B42318;line-height:1.4;}

/* Change "How we read it" */
.read-edit{width:100%;margin-top:16px;border:1px solid var(--line);border-radius:14px;background:var(--fill);padding:14px;font:inherit;font-size:1rem;line-height:1.45;color:var(--ink);resize:none;outline:none;}
.read-edit:focus{border-color:var(--blue);background:var(--bg);}

/* Send to BD: co-inventors and funding */
.line-input{width:100%;min-height:50px;margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--fill);padding:0 16px;font:inherit;font-size:1rem;color:var(--ink);outline:none;}
.line-input:focus{border-color:var(--blue);background:var(--bg);}
/* The optional tick under the sharing question: a paper submitted to a journal (Desk triage, step F) */
.ms-tick{display:flex;gap:10px;align-items:center;min-height:44px;margin-top:8px;font-size:calc(15rem/17);line-height:1.35;color:var(--ink);cursor:pointer;}
.ms-tick[hidden]{display:none;}
.ms-tick input{width:22px;height:22px;accent-color:var(--blue);flex:none;margin:0;}
.person{display:flex;align-items:center;gap:12px;}
.person>div{flex:1;min-width:0;}
.person button{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:36px;flex:none;}
.picks li{padding:0;}
.pick{width:100%;text-align:left;padding:14px 0;min-height:56px;}
.pick[aria-pressed="true"] b{color:var(--blue);}
.pick[aria-pressed="true"] b::after{content:" \2713";}
.auto button:disabled{opacity:.35;}

/* Prepare the idea for BD and SEED prep (docs/prep-boxes-build-spec.md, docs/idea-page-tiles-build-spec.md): tiles like
   the rest; their sheets show what's ready, a meter with one segment per item */
.pmeter{display:flex;gap:4px;margin-top:10px;}
/* Send, at the end of Prepare's sheet: the one place the disclosure is sent from. Solid once all 7 are ready, outlined
   while something is missing (Prepare never blocks a send) */
.p-send .pill{width:100%;margin-top:24px;}
.pill.line{background:var(--bg);color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue);}
.p-send-line{margin:8px 0 0;font-size:calc(14rem/17);line-height:1.45;color:var(--muted);text-align:center;}
.p-send .p-send-line.only{margin-top:24px;font-size:calc(15rem/17);color:var(--ink-2);text-align:left;}
.p-sent{margin-top:14px;font-size:calc(15rem/17);font-weight:600;color:var(--ink);}
.p-sent .linklike{display:flex;min-height:44px;margin:-2px 0 -8px;}
.pmeter i{flex:1;height:6px;border-radius:3px;background:var(--line);}
.pmeter i.on{background:var(--blue);}
.auto .ok.todo{background:transparent;box-shadow:inset 0 0 0 2px var(--line);}
.auto .p-miss{color:var(--ink);}
.p-count{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:calc(15rem/17);font-weight:600;color:var(--ink);}
.p-count .pmeter{flex:1;margin:0;}
.p-only{font-size:calc(14rem/17);color:var(--muted);margin:6px 0 0;}
.p-group{font-size:calc(17rem/17);font-weight:650;margin:24px 0 2px;color:var(--ink);}
.p-why{font-size:calc(14rem/17);color:var(--muted);margin:2px 0 4px;line-height:1.4;}
.p-src{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;margin-top:22px;padding:14px 0;border-top:1px solid var(--line);font-size:calc(16rem/17);font-weight:600;color:var(--ink);text-align:left;}
.p-src svg{color:var(--muted);flex:none;}
.words.preview + .p-src{border-top:0;margin-top:0;}
.p-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--blue);font-weight:600;font-size:calc(16rem/17);margin:-10px 0 -4px;}
.p-edit{margin-top:6px;}
.p-ask{margin-top:12px;}
.p-ask .ask{margin-top:0;}
.p-docs{margin:6px 0 0;padding-left:18px;font-size:calc(14rem/17);color:var(--ink-2);}
.p-docs li{margin:3px 0;}
.p-tick{margin:0 0 4px 34px;}
.p-doclist{list-style:none;margin:12px 0 0;padding:0;}
.p-doclist li{padding:12px 0;border-top:1px solid var(--line);}
.p-doclist b{display:block;font-size:calc(16rem/17);}
.p-doclist span{display:block;font-size:calc(15rem/17);color:var(--ink-2);margin-top:2px;}
.p-doclist a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);font-weight:600;text-decoration:none;font-size:calc(15rem/17);}
/* Send to BD: what Prepare still misses, one line that never blocks; the sharing answer already given */
.send-missing{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--fill);font-size:calc(15rem/17);line-height:1.4;color:var(--ink);}
.send-missing span{display:block;}
.send-missing .linklike{margin:2px 0 -6px;min-height:44px;}
.auto.shared-kept{border-top:0;padding:12px 14px;border-radius:14px;background:var(--blue-soft);margin-top:16px;align-items:center;}
.sub-h{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:22px 0 0;}
.path{list-style:none;margin:8px 0 0;padding:0;counter-reset:step;}
.path li{display:grid;grid-template-columns:26px 1fr;gap:2px 12px;padding:12px 0;border-top:1px solid var(--line);counter-increment:step;}
.path li::before{content:counter(step);grid-row:1 / span 2;width:24px;height:24px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-weight:700;font-size:calc(13rem/17);display:grid;place-items:center;}
.path li.done::before{content:"\2713";background:var(--blue);color:#fff;}
.path b{font-size:calc(16rem/17);}
.path span{font-size:calc(15rem/17);color:var(--ink-2);line-height:1.4;}
.path em{font-style:normal;color:var(--blue);font-weight:600;}
.prereq{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--fill);margin-top:8px;}
.prereq .ok{width:22px;height:22px;border-radius:50%;background:var(--line);color:transparent;display:grid;place-items:center;flex:none;margin-top:1px;}
.prereq.done .ok{background:var(--blue);color:#fff;}
.prereq b{display:block;font-size:calc(16rem/17);}
.prereq span{display:block;font-size:calc(15rem/17);color:var(--ink-2);}
.ack{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:var(--blue-soft);margin-top:16px;cursor:pointer;}
.ack input{width:24px;height:24px;accent-color:var(--blue);flex:none;margin:1px 0 0;}
.ack strong{display:block;font-size:calc(16rem/17);line-height:1.35;}
.ack span{display:block;font-size:calc(14rem/17);color:var(--ink-2);margin-top:2px;}
.linklike{font-size:calc(15rem/17);color:var(--blue);font-weight:600;margin-top:6px;min-height:32px;}
.ask.col{flex-direction:column;align-items:stretch;}
.ask.col .seg{display:flex;}
.ask.col .seg button{flex:1;}
.terms{margin:8px 0 0;padding-left:20px;}
.terms li{font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);margin-top:6px;}

/* Ways out of a sheet: close button, back gesture, swipe down */
.sheet-x{position:absolute;top:8px;right:10px;width:44px;height:44px;border-radius:50%;color:var(--ink-2);display:grid;place-items:center;z-index:1;}
.sheet-x::before{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--fill);z-index:-1;}   /* the same 36 px circle; the button reaches 44 */
.sheet-x:active{background:var(--line);}
.sheet-body h2{padding-right:44px;}


/* A note from BD, answered with a thought */
.bd-note{background:var(--blue-soft);color:var(--ink);}
.bd-note .q{color:var(--blue);opacity:1;}
.bd-note p{font-size:calc(1rem + 1px);}
.bd-note p + .q{margin-top:14px;}   /* the next line of the thread with BD (Desk triage, step B) */
/* BD's close card (Desk triage, step C; design/desk-triage-mock.html #inventor): white, in the place of "Your next step" */
.bd-note.bd-close{background:var(--bg);color:var(--ink);}
.bd-close .cc-from,.cc-sheet .cc-from{display:flex;justify-content:space-between;gap:8px;font-size:calc(13rem/17);color:var(--muted);}
.bd-close .cc-from span:first-child,.cc-sheet .cc-from span:first-child{letter-spacing:.04em;text-transform:uppercase;font-weight:700;}
.bd-close .cc-h,.cc-sheet .cc-h{font-size:calc(1rem + 3px);margin:8px 0 0;letter-spacing:-.01em;}
.bd-close h4,.cc-sheet h4{font-size:calc(13rem/17);font-weight:700;color:var(--ink-2);margin:14px 0 4px;}
.bd-close p,.cc-sheet p{margin:0;font-size:calc(16rem/17);font-weight:400;line-height:1.45;}
.bd-close .cc-dec,.cc-sheet .cc-dec{font-weight:700;}
.cc-why{margin:4px 0 0;padding-left:18px;font-size:calc(15rem/17);line-height:1.4;}
.cc-why li{margin:6px 0;}
.cc-why small{display:block;color:var(--muted);font-size:calc(13rem/17);margin-top:2px;}
.cc-why a{color:var(--blue);font-weight:600;text-decoration:none;}
.cc-learn{background:var(--blue-soft);border-radius:12px;padding:12px;margin-top:14px;font-size:calc(15rem/17);line-height:1.45;color:#13265e;}
.bd-close .cc-sign,.cc-sheet .cc-sign{margin-top:14px;font-size:calc(15rem/17);}
.cc-sign i{color:var(--ink-2);}
.bd-close .cc-more{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;}
.bd-close .cc-reply{margin-top:14px;}
.bd-close .cc-reply .q{color:var(--blue);font-size:calc(14rem/17);font-weight:600;opacity:1;}
.cc-rows{margin-top:14px;border-top:1px solid var(--line);}
.cc-row{display:flex;width:100%;justify-content:space-between;align-items:center;gap:10px;min-height:56px;padding:8px 0;border-bottom:1px solid var(--line);text-align:left;font-size:calc(16rem/17);font-weight:600;color:var(--ink);}
.cc-row:last-child{border-bottom:0;}
.cc-row small{display:block;font-size:calc(13rem/17);font-weight:400;color:var(--muted);margin-top:2px;}
.cc-row .chev{color:var(--muted);}
.bd-note .next-btn{background:var(--blue);color:#fff;}

/* ===== Desktop and wide windows (portal-desktop.html) =====
   Phones (under 640px) are untouched: everything below applies from 640px up.
   Same brand, type, colors and copy as the phone. What changes on a big screen:
   - no phone frame; a top bar with the brand and "Install app"
   - one centered reading column
   - Home: you type or talk right on the page, in a large box, instead of opening a capture screen
   - detail panels slide in from the right; from 1100px they sit beside the answers
   - hover, focus and keyboard (Cmd/Ctrl+Enter saves, Esc closes a panel)
   - Firefox and Brave: record, then the server writes it down, with a timer and a clear wait state */
.topbar,.sheet-head,.kbd-hint,.compose,.when,.home-note{display:none;}
.rec-time{font-variant-numeric:tabular-nums;}
.writing{display:none;}
.writing.on{display:block;}
.writing .sk{height:22px;margin-top:14px;}
.writing .sk:first-child{margin-top:4px;}

@media (min-width:640px){
  body{background:var(--bg);display:block;padding:0;min-height:0;}
  .device{width:auto;height:100dvh;border-radius:0;box-shadow:none;}

  /* Top bar */
  .topbar{display:flex;position:absolute;top:0;left:0;right:0;height:64px;align-items:center;justify-content:space-between;padding:0 24px 0 20px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);z-index:11;transition:box-shadow .2s,right .3s cubic-bezier(.2,.8,.2,1);}
  .device.scrolled .topbar{box-shadow:0 1px 0 var(--line);}
  .topbar .brand{min-height:44px;display:inline-flex;align-items:center;padding:0 6px;border-radius:10px;}
  .install{min-height:38px;padding:0 14px;border-radius:10px;font-size:calc(15rem/17);font-weight:600;color:var(--ink-2);display:inline-flex;align-items:center;gap:8px;transition:background .15s,color .15s;}
  .install svg{color:var(--blue);}
  .install:hover{background:var(--fill);color:var(--ink);}

  .screen{top:0;padding:64px 32px 0;transition:right .3s cubic-bezier(.2,.8,.2,1);scroll-padding-top:80px;}
  .screen > *{width:100%;max-width:680px;margin-left:auto;margin-right:auto;flex-shrink:0;}
  .screen > .grow{flex:1;}
  .screen > .lockup{display:none;}
  .screen > .dock{margin:auto auto 0;padding:18px 0 28px;}

  /* Home: the box is the page */
  #s-home > .dock{position:static;background:none;justify-content:center;padding:16px 0 24px;}
  #s-home > .dock .composer,#s-home > .dock .mic{display:none;}
  #s-home > .dock .fb-home{flex:0 0 auto;margin:0;}
  .home-hero{padding-top:88px;}
  h1{font-size:calc(1rem + 31px);letter-spacing:-0.025em;}
  .sub{font-size:calc(1rem + 2px);margin-top:12px;}
  .compose{display:block;margin-top:32px;border:1px solid var(--line);border-radius:22px;background:var(--bg);box-shadow:0 1px 2px rgba(11,11,12,.04),0 8px 24px rgba(11,11,12,.05);transition:border-color .15s,box-shadow .15s;}
  .compose:focus-within,.compose.live{border-color:color-mix(in srgb,var(--blue) 55%,var(--line));box-shadow:0 0 0 4px var(--blue-soft),0 8px 24px rgba(11,11,12,.05);}
  .compose textarea{display:block;width:100%;border:0;outline:none;resize:none;background:transparent;font:inherit;font-size:calc(1rem + 4px);line-height:1.45;letter-spacing:-0.01em;color:var(--ink);padding:22px 24px 8px;min-height:120px;max-height:320px;}
  .compose textarea::placeholder{color:var(--muted);}
  .compose .writing{padding:22px 24px 8px;height:120px;overflow:hidden;}
  .writing .sk{margin-top:12px;}
  .compose-bar{display:flex;align-items:center;gap:12px;padding:10px 12px 12px 24px;}
  .compose-bar .listening{flex:1;}
  .compose-bar .kbd-hint{margin-right:auto;}
  .compose-bar .listening:not([hidden]) ~ .kbd-hint{display:none;}
  #s-cap .dock .kbd-hint{margin-right:auto;}
  .compose .mic{width:46px;height:46px;}
  .compose .mic svg{width:21px;height:21px;}
  .compose .pill{flex:none;min-height:46px;padding:0 22px;border-radius:14px;font-size:calc(16rem/17);}
  .home-note{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:calc(14rem/17);color:var(--muted);}
  .ideas{margin-top:56px;}
  .when{display:block;font-size:calc(14rem/17);color:var(--muted);margin-left:auto;white-space:nowrap;}
  .idea-row .when + .chev{margin-left:8px;}
  .idea-row{width:calc(100% + 24px);max-width:704px;margin:0 -12px;padding:16px 12px;border-radius:14px;border-bottom-color:transparent;position:relative;transition:background .15s;}
  .idea-row::after{content:"";position:absolute;left:12px;right:12px;bottom:0;border-bottom:1px solid var(--line);}
  .idea-row:hover{background:var(--fill);}
  .kbd-hint{display:inline;font-size:calc(13rem/17);color:var(--muted);white-space:nowrap;}
  /* The shortcut sits at the left of the bar, and only once there is something to save */
  .kbd-hint:not(.on){visibility:hidden;}
  .kbd-hint kbd{font:inherit;font-weight:600;color:var(--ink-2);background:var(--fill);border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;padding:1px 6px;margin:0 1px;}

  /* Buttons */
  .mic{transition:background .15s,box-shadow .15s;}
  .mic:hover{background:var(--blue-press);}
  .mic.outline:hover{background:var(--blue-soft);}
  .mic.on:hover{background:var(--blue-press);}
  .mic:disabled{opacity:.35;cursor:default;}
  .mic.outline:disabled:hover{background:var(--bg);}
  .pill{transition:background .15s,opacity .15s;}
  .pill:not(:disabled):hover{background:var(--blue-press);}
  .pill.quiet:not(:disabled):hover{background:#E9EBEF;}
  .composer{cursor:text;transition:border-color .15s;}
  .composer:hover{border-color:#D0D4DA;}
  .text-btn{border-radius:10px;padding:0 8px;margin-left:-8px;transition:background .15s;}
  .text-btn:hover{background:var(--blue-soft);}

  /* Capture (Add a thought) */
  .cap-top{padding-top:20px;}
  #cap-text{font-size:calc(1rem + 11px);}
  #s-cap .writing{padding:20px 0;}
  #s-cap .dock{gap:14px;}
  #s-cap .dock .listening{flex:1;}
  #s-cap .pill{flex:0 0 auto;padding:0 26px;}

  /* Result */
  .answer{width:calc(100% + 32px);max-width:712px;margin:0 -16px;padding:18px 16px;border-radius:14px;border-bottom-color:transparent;position:relative;transition:background .15s;}
  .answer::after{content:"";position:absolute;left:16px;right:16px;bottom:0;border-bottom:1px solid var(--line);}
  .answer:hover{background:var(--fill);}
  .answer .chev{transition:transform .15s,color .15s;}
  .answer:hover .chev{transform:translateX(2px);color:var(--ink-2);}
  .answer.active{background:var(--blue-soft);}
  .answer.active::after,.answer:hover::after{border-color:transparent;}
  .answer.active .chev{color:var(--blue);}
  .words summary{border-radius:10px;}
  .tools .tool-grid{grid-template-columns:repeat(4,1fr);}
  /* Four across: Pause it spans only when it's the one left over */
  #pause-tile:nth-child(odd of .tool:not([hidden])){grid-column:auto;flex-direction:column;align-items:stretch;justify-content:space-between;gap:10px;min-height:84px;}
  #pause-tile:nth-child(4n+1 of .tool:not([hidden])){grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:60px;}
  .tool{transition:background .15s,box-shadow .15s;}
  .tool:hover{background:#E9EBEF;}
  .pill.line:not(:disabled):hover{background:var(--blue-soft);}
  .tool.active{background:var(--blue-soft);box-shadow:inset 0 0 0 2px var(--blue);}
  .next-btn{transition:background .15s;}
  .next-btn:hover{background:var(--blue-soft);}
  .tail{height:40px;}

  /* Detail panel */
  .scrim{background:rgba(11,11,12,.18);z-index:12;}
  .sheet{top:0;left:auto;right:0;bottom:0;width:480px;max-height:none;border-radius:0;box-shadow:-1px 0 0 var(--line),-28px 0 56px rgba(11,11,12,.07);transform:translateX(100%);z-index:13;}
  .sheet .grab,.sheet > .sheet-x{display:none;}
  .sheet-head{display:flex;align-items:center;gap:12px;height:64px;padding:0 16px 0 32px;flex:none;border-bottom:1px solid transparent;transition:border-color .2s;}
  .sheet.scrolled .sheet-head{border-bottom-color:var(--line);}
  .sheet-ctx{flex:1;min-width:0;font-size:calc(14rem/17);font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .sheet-head .x{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--ink-2);transition:background .15s;}
  .sheet-head .x:hover{background:var(--fill);color:var(--ink);}
  .sheet-body{flex:1;padding:8px 32px 28px;}
  .sheet h2{font-size:calc(1rem + 9px);}
  .sheet-foot{padding:16px 32px 24px;border-top:1px solid var(--line);flex-direction:row-reverse;justify-content:flex-start;}
  .sheet-foot .pill{flex:0 0 auto;min-height:46px;padding:0 22px;border-radius:12px;font-size:calc(16rem/17);}
  .sheet-foot [data-close]{display:none;}
  .sheet.no-foot .sheet-foot{display:none;}
  .list a:hover,.linklike:hover{text-decoration:underline;text-underline-offset:3px;}

  .toast{top:auto;bottom:112px;box-shadow:0 8px 24px rgba(11,11,12,.18);z-index:20;}
}
@media (min-width:1100px){
  .scrim{display:none!important;}
  .device.panel .screen{right:480px;}
  .device.panel .topbar{right:480px;}
}
@media (min-width:640px) and (prefers-reduced-motion:reduce){
  .screen,.sheet{transition:none;}
}

/* Desktop: "Add a thought" grows in place */
.thought{display:none;}
@media (min-width:640px){
  #s-result > .dock > .composer,#s-result > .dock > .mic{display:none;}
  #s-result > .dock{padding:14px 0 24px;}
  .thought{display:flex;align-items:center;flex:1;gap:8px;min-height:56px;border:1px solid var(--line);background:var(--fill);border-radius:28px;padding:6px 6px 6px 22px;transition:border-color .15s,box-shadow .2s,background .15s,border-radius .2s;}
  .thought:hover{border-color:#D0D4DA;}
  .thought textarea{flex:1;min-width:0;border:0;outline:none;resize:none;background:transparent;font:inherit;font-size:1rem;line-height:1.45;color:var(--ink);padding:10px 0;height:44px;overflow:hidden;}
  .thought textarea::placeholder{color:var(--muted);}
  .thought-bar{display:flex;align-items:center;gap:10px;flex:none;}
  .thought .mic{width:44px;height:44px;}
  .thought .mic svg{width:20px;height:20px;}
  .thought .kbd-hint,.thought .pill{display:none;}
  .thought.open{display:block;background:var(--bg);border-radius:20px;padding:8px 10px 10px 22px;border-color:color-mix(in srgb,var(--blue) 55%,var(--line));box-shadow:0 0 0 4px var(--blue-soft),0 -10px 40px rgba(11,11,12,.08);}
  .thought.open textarea{display:block;width:100%;padding:12px 0 6px;overflow:auto;}
  .thought .writing{padding:12px 0 6px;height:92px;overflow:hidden;}
  .thought .writing .sk{height:18px;}
  .thought.open .thought-bar{padding-top:6px;}
  .thought .listening{flex:1;}
  .thought.open .kbd-hint{display:inline;margin-right:auto;}
  .thought.open .listening:not([hidden]) ~ .kbd-hint{display:none;}
  .thought.open .pill{display:flex;flex:none;min-height:44px;padding:0 20px;border-radius:12px;font-size:calc(16rem/17);}
  .thought:not(.open) .mic.outline{background:var(--blue);color:#fff;box-shadow:none;}
}

/* Desktop: app sheets the mockup doesn't show */
@media (min-width:640px){
  .sheet-body h2{padding-right:0;}
  .sheet-body h2:focus{outline:none;}
}

/* Recording (Firefox, Brave, Vivaldi): the mic becomes a stop button, small bars follow
   the voice, and a quiet timer runs. Writing it down: a spinner on the mic. No words needed. */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.mic .stop{display:none;}
.mic.rec svg{display:none;}
.mic.rec .stop{display:block;width:14px;height:14px;border-radius:3px;background:#fff;}
.mic.rec::before,.mic.rec::after{display:none;}
.listening.rec>i,.listening.quiet>i{display:none;}
.lv{display:inline-flex;align-items:center;gap:3px;height:20px;}
.lv b{display:block;width:3px;height:4px;border-radius:2px;background:var(--blue);transition:height .08s linear;}
.listening.rec .rec-time{font-size:calc(14rem/17);font-weight:500;color:var(--muted);margin-left:6px;}
.mic.busy,.mic.busy:disabled,.mic.busy:disabled:hover{opacity:1;background:var(--bg);box-shadow:inset 0 0 0 2px var(--line);cursor:default;}
.mic.busy svg{visibility:hidden;}
.mic.busy::before{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid transparent;border-top-color:var(--blue);animation:spin .9s linear infinite;opacity:1;}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.mic.busy::before{animation-duration:2.4s;}}

/* Words the app's summary added, which the innovator never said */
mark.added{background:#FBF0DA;color:inherit;border-radius:3px;padding:0 2px;border-bottom:1px dotted #8A5A00;}
.added-note{font-size:calc(14rem/17);color:var(--muted);margin:8px 0 12px;line-height:1.4;}

/* Feedback: quiet thumbs at the bottom of answer and tool sheets */
.fb{margin-top:28px;padding-top:14px;border-top:1px solid var(--line);}
.fb-row{display:flex;align-items:center;gap:8px;min-height:44px;}
.thumb{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:var(--fill);flex:none;}
.thumb svg{width:20px;height:20px;}
.thumb[data-thumb="down"] svg{transform:rotate(180deg);}
.thumb[aria-pressed="true"]{color:var(--blue);background:var(--blue-soft);}
.thumb[aria-pressed="true"] path{fill:currentColor;}
.fb-thanks{font-size:calc(15rem/17);color:var(--ink-2);margin-left:4px;}
.fb-row .linklike{margin:0 0 0 auto;min-height:44px;}
.fb-box{margin-top:12px;}
.fb-box .read-edit{margin-top:0;}
.fb-bar{display:flex;align-items:center;gap:10px;margin-top:10px;}
.fb-bar .listening{flex:1;}
.fb-bar .mic{width:48px;height:48px;}
.fb-bar .mic svg{width:21px;height:21px;}
.fb-bar .pill{flex:0 0 auto;margin-left:auto;min-height:48px;padding:0 26px;border-radius:14px;}
.fb-home{align-self:center;font-size:calc(15rem/17);color:var(--muted);min-height:44px;padding:0 12px;margin-top:16px;}
/* On a phone it sits in the dock, over the composer (step G) */
@media (max-width:639px){
  #s-home > .dock{flex-wrap:wrap;row-gap:4px;}
  /* solid behind it, so the list scrolling under the dock never shows through; a quiet link, so it grows less (step H) */
  #s-home > .dock .fb-home{flex:0 0 100%;margin:-10px 0 0;background:var(--bg);font-size:min(calc(15rem/17),22px);}
}
/* Beta feedback (docs/beta-feedback-build-spec.md, design/beta-feedback-mock.html). Send feedback from Home: a
   screenshot and who reads the notes; the box for an answer's few words stays as it was. */
.fb-box:not(.home) .home-only{display:none;}
.fb-box.home .fb-bar{flex-wrap:wrap;}
.fb-box.home .fb-bar .mic{margin-left:auto;}
.fb-box.home .fb-shot{order:-1;flex:1 1 auto;}   /* in place of "Add a screenshot", beside the mic */
.fb-box.home .fb-shot-note,.fb-box.home .promise{order:1;flex:1 0 100%;}
.fb-box.home .fb-bar .pill{order:2;flex:1 0 100%;margin-left:0;}
.fb-add{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-weight:600;font-size:calc(15rem/17);min-height:44px;border:1px solid var(--line);border-radius:22px;padding:0 14px;position:relative;cursor:pointer;}
.fb-add input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0;}
.fb-add:focus-within{outline:3px solid color-mix(in srgb,var(--blue) 45%,transparent);outline-offset:2px;}
.fb-shot{display:flex;align-items:center;gap:12px;}
.fb-shot .th{width:44px;height:64px;border-radius:8px;border:1px solid var(--line);background:var(--fill);overflow:hidden;flex:none;}
.fb-shot .th img{width:100%;height:100%;object-fit:cover;display:block;}
.fb-shot-st{font-size:calc(14rem/17);color:var(--muted);}
.fb-shot-st:empty{display:none;}
.fb-shot .linklike{margin-top:0;min-height:44px;}
.fb-shot-note{margin:0;font-size:calc(14rem/17);color:var(--ink-2);line-height:1.4;}
.promise{display:flex;gap:10px;align-items:flex-start;font-size:calc(14.5rem/17);color:var(--ink-2);line-height:1.4;margin:4px 0;background:var(--fill);border-radius:12px;padding:10px 12px;}
.promise svg{flex:none;margin-top:1px;color:var(--blue);}
/* This week's question, under the answers on an idea page */
.bq{margin-top:18px;margin-bottom:6px;border:1px solid var(--line);border-radius:18px;padding:18px 18px 14px;background:var(--bg);}
.bq-eye{font-size:calc(12rem/17);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);display:flex;align-items:center;gap:6px;margin:0 0 6px;}
.bq-eye i{width:7px;height:7px;border-radius:50%;background:#E8A317;}
.bq h3{font-size:calc(1rem + 2px);line-height:1.3;margin:0 0 12px;font-weight:700;}
.bq-opt{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:calc(16rem/17);margin:0 0 8px;min-height:46px;color:inherit;background:var(--bg);}
.bq-opt.on{border-color:var(--blue);background:var(--blue-soft);color:var(--blue);font-weight:600;cursor:default;}
.bq-thanks{font-size:calc(16rem/17);color:#1F7A4C;font-weight:600;margin:4px 0 0;display:flex;gap:6px;align-items:center;}
.bq-thanks:empty{display:none;}
.bq-foot{display:flex;align-items:center;margin-top:6px;}
.bq-lk{color:var(--blue);font-weight:600;font-size:calc(15rem/17);min-height:44px;display:flex;align-items:center;}
.bq-lk.quiet{color:var(--muted);font-weight:500;margin-left:auto;}
.bq .fb-box{margin-top:8px;}
@media (min-width:640px){ .bq-opt:not(.on):hover{border-color:#C9CDD4;background:var(--fill);} }
#s-result.ro #bq{display:none !important;}
/* The beta box (docs/beta-box-build-spec.md): Home, the bottom of the idea page and Your notes. Not a blue card: its
   buttons are an outline pill and a text button, so each screen's main action stays the blue one */
.bbx{background:var(--blue-soft);border-radius:18px;padding:16px 16px 10px;margin-top:22px;}
.bbx h3{font-size:calc(1rem + 1px);line-height:1.3;margin:0 0 4px;font-weight:700;}
.bbx-t{margin:0 0 12px;color:var(--ink-2);font-size:calc(15rem/17);line-height:1.45;}
.bbx-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;}
.bbx-talk{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px 0 14px;border-radius:999px;border:1.5px solid var(--blue);color:var(--blue);background:var(--bg);font-weight:600;font-size:calc(16rem/17);}
.bbx-talk svg{width:20px;height:20px;flex:none;}
.bbx-type{color:var(--blue);font-weight:600;min-height:44px;font-size:calc(15rem/17);}
@media (min-width:640px){ .bbx-talk:hover{background:var(--fill);} .bbx-type:hover{text-decoration:underline;} }
/* Home's line after a reply, once */
.reply-line{width:100%;text-align:left;display:flex;align-items:center;gap:12px;margin-top:20px;background:var(--blue-soft);border-radius:14px;padding:12px 14px;min-height:56px;color:inherit;}
.reply-line .ic{width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;flex:none;}
.reply-line>div{flex:1;min-width:0;}
.reply-line b{display:block;font-size:calc(16rem/17);color:var(--blue);}
.reply-line span:not(.ic){display:block;font-size:calc(14rem/17);color:var(--ink-2);}
.reply-line .chev{color:var(--muted);flex:none;}
/* The profile's row, and Your notes */
.ndot{width:10px;height:10px;border-radius:50%;background:var(--blue);flex:none;}
.about{background:var(--blue-soft);border-radius:16px;padding:14px 16px;margin-top:18px;margin-bottom:6px;}
.about b{display:block;font-size:calc(13rem/17);letter-spacing:.06em;text-transform:uppercase;color:var(--blue);margin-bottom:4px;}
.about p{margin:0;font-size:calc(15.5rem/17);line-height:1.45;color:var(--ink);}
/* What the statuses mean, under About this beta's words on Your notes (beta feedback round 2) */
.nst-key{display:grid;gap:7px;margin-top:12px;}
.nst-key div{display:flex;gap:8px;align-items:flex-start;font-size:calc(14.5rem/17);line-height:1.35;color:var(--ink);}
.nst-key .nst{flex:0 0 auto;margin-top:-1px;}
.nt{padding:14px 0;border-bottom:1px solid var(--line);}
.nt:last-child{border-bottom:0;}
.nt .meta{font-size:calc(13.5rem/17);color:var(--muted);display:flex;justify-content:space-between;gap:8px;align-items:center;}
.nt .nt-words{font-size:calc(16rem/17);line-height:1.4;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;}
.nst{font-size:calc(12.5rem/17);font-weight:700;border-radius:999px;padding:3px 9px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;background:var(--fill);color:var(--ink-2);}
.nst.working{background:var(--blue-soft);color:var(--blue);}
.nst.changed{background:#E4F2EA;color:#1F7A4C;}
.rep{margin:10px 0 0 12px;padding:8px 0 2px 12px;border-left:3px solid var(--blue);}
.rep .by{font-size:calc(13.5rem/17);font-weight:700;color:var(--blue);}
.rep p{margin:2px 0 0;font-size:calc(15.5rem/17);line-height:1.4;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;}
.rep.fresh{background:var(--blue-soft);border-radius:0 10px 10px 0;padding:8px 10px 8px 12px;}
.tr-st{margin:8px 0 0 12px;font-size:calc(13.5rem/17);color:var(--muted);}   /* a status-only change in a note's trail */
.notes-empty{color:var(--muted);margin:16px 0 0;}
#s-card #card-about{margin-top:-8px;}
@media (min-width:640px){
  .thumb:hover{background:#E9EBEF;}
  .thumb[aria-pressed="true"]:hover{background:var(--blue-soft);}
  .fb-home:hover{color:var(--blue);}
}


/* Invite a Mayo colleague */
.conf{display:flex;gap:10px;align-items:flex-start;margin:24px 0 0;padding:14px 16px;border-radius:14px;background:var(--fill);font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.conf svg{flex:none;margin-top:2px;color:var(--muted);}
.stamp .linklike{font-size:inherit;margin:0;min-height:0;padding:0;display:inline;}
.person button + button{margin-left:14px;}
.link-box{margin:12px 0 0;padding:14px 16px;border-radius:14px;background:var(--fill);font-size:calc(15rem/17);color:var(--ink);word-break:break-all;user-select:all;-webkit-user-select:all;}
.sheet .join-err{margin-top:10px;}
.words .by{display:block;font-size:calc(14rem/17);color:var(--muted);margin-top:2px;white-space:normal;}
.warn-note{display:flex;gap:10px;align-items:flex-start;margin:22px 0 0;padding:14px 16px;border-radius:14px;background:#FBF3E2;font-size:calc(15rem/17);line-height:1.45;color:var(--ink);}
.warn-note svg{flex:none;margin-top:2px;color:#8A5A00;}

/* Attached files: the paperclip beside the mic, then one plain row per file */
.attach{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--bg);color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue);position:relative;cursor:pointer;}
.attach:active{background:var(--blue-soft);}
.attach svg{width:23px;height:23px;}
.attach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0;}
.attach:focus-within{outline:3px solid color-mix(in srgb,var(--blue) 45%,transparent);outline-offset:3px;}
.attach.off{opacity:.35;pointer-events:none;}
.files{display:flex;flex-direction:column;}
.file{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 0;border-top:1px solid var(--line);color:inherit;text-decoration:none;}
.files > .file:last-child{border-bottom:1px solid var(--line);}
.file .thumb{width:44px;height:44px;border-radius:10px;flex:none;background:var(--fill);display:grid;place-items:center;overflow:hidden;color:var(--ink-2);}
.file .thumb img{width:100%;height:100%;object-fit:cover;}
.file .thumb svg{width:22px;height:22px;}
.file .thumb .ext{font-size:10px;font-weight:700;letter-spacing:.04em;}
.file .body{flex:1;min-width:0;}
.file .name{font-size:calc(16rem/17);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.file .meta{font-size:calc(14rem/17);color:var(--muted);margin-top:2px;display:flex;align-items:center;gap:8px;line-height:1.35;}
.file .bar{flex:1;max-width:120px;height:4px;border-radius:2px;background:var(--line);overflow:hidden;}
.file .bar i{display:block;height:100%;width:0;background:var(--blue);transition:width .2s;}
.file .meta.err{color:#B42318;}
.file .x{width:44px;height:44px;display:grid;place-items:center;color:var(--muted);flex:none;margin-right:-10px;}
.file .retry{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;flex:none;}
.file-note{font-size:calc(14rem/17);color:var(--muted);margin:10px 0 0;display:flex;gap:6px;align-items:flex-start;line-height:1.4;}
.file-note svg{flex:none;margin-top:1px;}
#s-cap.has-files #cap-text{flex:0 0 auto;min-height:120px;overflow:hidden;}
#s-cap .files{margin-top:4px;}
@media (min-width:640px){
  .attach{transition:background .15s;}
  .attach:hover{background:var(--blue-soft);}
  .compose .attach{width:46px;height:46px;}
  .compose .attach svg{width:21px;height:21px;}
  .compose .files,.compose .file-note{margin:0 24px;}
  .compose .file-note{margin-top:10px;}
  .thought .attach{width:44px;height:44px;}
  .thought .attach svg{width:20px;height:20px;}
  .thought .files{margin-top:4px;}
  .thought .file-note{margin-bottom:4px;}
  .file .x:hover,.file .retry:hover{color:var(--ink);}
  .drop-on{box-shadow:0 0 0 3px var(--blue) inset;border-radius:22px;}
}
/* The viewer (docs/ADDON-ON-FILE.md): our copy of a file, full screen; Back or Escape returns to the same spot */
.viewer{position:fixed;inset:0;z-index:30;background:#000;color:#fff;display:flex;flex-direction:column;touch-action:none;-webkit-user-select:none;user-select:none;}
.v-top{display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 14px) 14px 8px;flex:none;}
.v-top button{min-height:44px;min-width:44px;padding:0 8px 0 2px;border-radius:12px;font-size:min(calc(16rem/17),24px);font-weight:600;color:#fff;display:inline-flex;align-items:center;gap:4px;}
.v-sp{width:66px;}
.v-count{font-size:min(calc(15rem/17),22px);color:rgba(255,255,255,.75);}
.v-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;padding:8px;overflow:hidden;}
.v-stage img{max-width:100%;max-height:100%;object-fit:contain;background:#fff;border-radius:6px;opacity:0;transition:opacity .15s;}
.v-stage img.on{opacity:1;}
.v-stage.snap img{transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .15s;}
.v-msg{position:absolute;left:40px;right:40px;margin:0;text-align:center;font-size:min(calc(16rem/17),24px);line-height:1.4;color:rgba(255,255,255,.75);}
/* (grey, so they show over a white page as well as over the black) */
.v-prev,.v-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:rgba(64,64,68,.78);color:#fff;display:grid;place-items:center;}
.v-prev{left:10px;}.v-next{right:10px;}
.v-prev:disabled,.v-next:disabled{opacity:.35;cursor:default;}
.v-cap{padding:10px 20px 4px;flex:none;}
.v-cap b{display:block;font-size:min(calc(16rem/17),24px);line-height:1.35;}
.v-cap span{display:block;font-size:min(calc(14rem/17),22px);color:rgba(255,255,255,.7);margin-top:2px;}
.v-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:12px 20px calc(env(safe-area-inset-bottom,0px) + 22px);flex:none;}
.v-btn{flex:1 1 0;max-width:240px;min-height:50px;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;font-size:min(calc(16rem/17),24px);font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;}
.viewer :focus-visible{outline-color:rgba(255,255,255,.75);}
@media (hover:hover){.v-top button:hover,.v-btn:hover{background:rgba(255,255,255,.24);}.v-prev:not(:disabled):hover,.v-next:not(:disabled):hover{background:rgba(84,84,90,.9);}}
@media (prefers-reduced-motion:reduce){.v-stage img,.v-stage.snap img{transition:none;}}
.v-btn:disabled{opacity:.55;}
.v-btn.show{background:#fff;color:#000;}
/* The viewer is for the picture: its controls and caption grow with the text, but only so far (step H) */
/* Show (step E): black and full screen, the controls out of sight (and out of reach) until a tap brings back Done. It
   keeps to the phone's safe area whichever way it's turned. */
.viewer.showing .v-top,.viewer.showing .v-cap,.viewer.showing .v-bar,.viewer.showing .v-prev,.viewer.showing .v-next{visibility:hidden;}
.viewer.showing .v-stage{position:absolute;inset:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);}
.viewer.showing .v-stage img{border-radius:0;}
.viewer:focus{outline:none;}
.v-done{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);z-index:2;min-height:44px;padding:0 18px;border-radius:22px;background:rgba(40,40,44,.82);color:#fff;font-size:calc(16rem/17);font-weight:600;display:none;}
.viewer.showing.tapped .v-done{display:block;}
/* "Tap to exit", for 2 seconds on entering Show (step G) */
.v-hint{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 32px);transform:translateX(-50%);margin:0;padding:9px 16px;border-radius:20px;background:rgba(40,40,44,.82);color:#fff;font-size:calc(15rem/17);font-weight:600;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s,visibility .3s;z-index:2;}
.viewer.showing.hint .v-hint{opacity:1;visibility:visible;}

/* Send to BD: the poster hint under the shared question, and the files in the preview */
.ask-hint{font-size:calc(14rem/17);color:var(--ink-2);margin:10px 0 0;line-height:1.4;}
.file-send{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;}
.file-send>div{min-width:0;}
.file-send span,.file-sent>span{display:block;font-size:calc(16rem/17);line-height:1.4;}
.file-send small,.file-sent small{display:block;font-size:calc(13rem/17);color:var(--muted);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.file-send.off span{color:var(--muted);}
.file-send .linklike{flex:none;min-height:44px;margin-top:0;}
.file-sent{display:block;margin-top:10px;}
.file-sent:first-child{margin-top:0;}
/* Problem, Invention and What's new in the preview: Edit and Done (docs/ADDON-IDEA-PAGE-FIXES.md, step F) */
.d-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;}
.d-h .linklike{margin:-12px -4px -12px 0;min-height:44px;padding:0 4px;font-size:calc(15rem/17);}
textarea.tm-field.d-field{min-height:88px;margin-top:8px;font-size:calc(16rem/17);overflow:hidden;}

/* Phone keyboard up (body.kb, set from app.js): the app fills only the visible part of the
   screen, so the buttons sit right above the keyboard. Files shrink to a row of thumbnails,
   the reminder line hides, and the text box is the one thing that scrolls. */
@media (max-width:639px){
  .device{height:var(--app-h,100dvh);}
  body.kb .dock{padding-top:8px;padding-bottom:8px;}
  body.kb #s-cap{overflow:hidden;}
  body.kb #s-cap #cap-text{flex:1 1 0;min-height:48px;padding:12px 0;overflow:auto;}
  body.kb #s-cap .file-note{display:none;}
  body.kb #cap-files{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;padding:6px 0;border-top:1px solid var(--line);}
  body.kb #cap-files .file{border:0!important;min-height:0;padding:0;flex:none;}
  body.kb #cap-files .file .body,body.kb #cap-files .file .x,body.kb #cap-files .file .retry{display:none;}
  body.kb #cap-files .file .thumb{width:36px;height:36px;border-radius:8px;}
  body.kb #cap-files .file.up .thumb{opacity:.45;}
  body.kb #cap-files .file.err .thumb,body.kb #cap-files .file.bad .thumb{box-shadow:inset 0 0 0 2px #B42318;}
  body.kb #cap-files::after{content:attr(data-count);font-size:calc(14rem/17);color:var(--muted);flex:none;margin-left:2px;}
}

.sprite{position:absolute;}

/* ---- More Mayo blue: home header band ---- */
.home-band{background:var(--blue);color:#fff;margin:calc(-1 * (env(safe-area-inset-top,0px) + 16px)) -24px 0;padding:calc(env(safe-area-inset-top,0px) + 16px) 24px 30px;border-radius:0 0 28px 28px;flex-shrink:0;}
.home-band .lockup .mark{color:#fff;}
.home-band .lockup span{color:rgba(255,255,255,.85);border-left-color:rgba(255,255,255,.55);}
.home-band .sub{color:rgba(255,255,255,.82);}
.home-band .home-hero{padding-top:30px;}
.ideas{margin-top:28px;}
/* No dot before each title in the main list (step G): every row had one, so it meant nothing. The back burner and the
   archive keep theirs, below, to tell the kinds apart. */
.bb-row .idea-row .t{padding-left:18px;text-indent:-18px;}   /* a wrapped title lines up after its mark */
.bb-row .idea-row .n{padding-left:18px;}
/* Desktop keeps its white page under the top bar */
@media (min-width:640px){
  .home-band{background:none;color:inherit;margin:0 auto;padding:0;border-radius:0;}
  .home-band .lockup{display:none;}
  .home-band .sub{color:var(--ink-2);}
  .home-band .home-hero{padding-top:88px;}
}

/* ---- Entrance: wordmark, then the three shields (patient care, research, education),
   thinking bars, then the logo glides into the header as the blue band arrives.
   Full (first open of the day) about 3.1 s; quick (every other open) about 1.1 s. ---- */
.intro{position:absolute;inset:0;z-index:50;pointer-events:none;}
.intro-bg{position:absolute;inset:0;background:#fff;transition:opacity .8s ease;}
.intro.go .intro-bg{opacity:0;}
.intro .stage{position:absolute;inset:0;display:grid;place-items:center;}
.intro .mark{width:96px;height:auto;color:#0B0B0C;transform-origin:0 0;transition:transform 1s cubic-bezier(.55,0,.2,1),color .45s ease .45s;}
.intro .w{opacity:0;animation:in .45s ease .12s forwards;}
.intro .s{opacity:0;transform:translateY(6px);transform-box:fill-box;transform-origin:50% 100%;animation:in .45s cubic-bezier(.2,.8,.2,1) forwards;}
.intro .s1{animation-delay:.45s}.intro .s2{animation-delay:.75s}.intro .s3{animation-delay:1.05s}
.intro.quick .w,.intro.quick .s{animation:none;opacity:1;transform:none;}
@keyframes in{to{opacity:1;transform:none}}
.think{position:absolute;top:calc(50% + 78px);display:flex;gap:7px;align-items:center;height:30px;opacity:0;transition:opacity .25s;}
.intro.thinking .think{opacity:1;}
.intro.go .think{opacity:0;}
.think i{width:7px;height:10px;border-radius:4px;background:var(--blue);animation:bar .8s ease-in-out infinite;}
.think i:nth-child(2){animation-delay:.12s}.think i:nth-child(3){animation-delay:.24s}.think i:nth-child(4){animation-delay:.36s}
@keyframes bar{0%,100%{height:10px}50%{height:30px}}
#s-home.pre .home-band,#s-home.pre .ideas,#s-home.pre .dock{opacity:0;}
#s-home.hold .mark{visibility:hidden;}
#s-home.enter .home-band{animation:bandIn .9s cubic-bezier(.2,.8,.2,1) both;}
#s-home.enter .ideas,#s-home.enter .dock{animation:rise .7s ease .35s both;}
@keyframes bandIn{from{transform:translateY(-100%)}}
@keyframes rise{from{transform:translateY(14px);opacity:0}}
@media (min-width:640px){#s-home.enter .home-band{animation:none;}}
@media (prefers-reduced-motion:reduce){.intro{display:none}}

/* ---- Work the idea: thoughts added to the record, and what they changed ---- */
.thread{display:flex;flex-direction:column;gap:12px;padding:4px 0 14px;}
.entry .meta{font-size:calc(13rem/17);font-weight:600;color:var(--muted);}
.entry p{margin:3px 0 0!important;font-size:1rem;line-height:1.5;color:var(--ink-2);white-space:pre-wrap;}
.entry.first p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.entry.new p{color:var(--ink);}
.reply{border-left:3px solid var(--blue);padding:2px 0 2px 12px;}
.reply b{display:block;font-size:calc(13rem/17);font-weight:700;color:var(--blue);}
.reply p{margin:3px 0 0;font-size:calc(16rem/17);line-height:1.45;color:var(--ink);}
.angle{display:block;width:100%;text-align:left;margin-top:10px;font-size:calc(16rem/17);line-height:1.45;color:var(--ink-2);}
.angle b{display:inline;font-size:calc(16rem/17);color:var(--blue);font-weight:600;}
.cap-angle{font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);background:var(--blue-soft);border-radius:12px;padding:10px 12px;margin-top:12px;}
.cap-angle b{color:var(--blue);}
.upd{grid-column:1;display:none;font-size:calc(13rem/17);font-weight:600;color:var(--blue);margin-top:4px;line-height:1.35;}
.upd::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue);margin-right:6px;vertical-align:1px;}
.updated .upd{display:block;}
.flash{animation:flash 1.6s ease;}
@keyframes flash{0%{background:var(--blue-soft)}100%{background:transparent}}
.entry.first{cursor:pointer;}
.entry.first.full p{display:block;}
.entry .meta .by{font-weight:600;}
.reply .sk{display:block;}
.thought .cap-angle{margin:12px 16px 0;}

/* ---- Two ways into "Add a thought": the button in the "Your thinking" row, and on phones the box pinned at the bottom ---- */
.words summary #th-label{flex:1;}
.add-inline{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;padding:0 10px;display:inline-flex;align-items:center;gap:4px;}
/* Over the Thinking row, beside its arrow, but not inside the toggle (step G). The row's name leaves room for it (the
   button is 6.75rem of text plus 20px), so a tight row wraps the name instead of running it under the button. When the
   row can't fit a word beside it (very large text), the button steps aside: on a phone, the box at the foot of the
   screen adds a thought too (step H). */
.zone-think{position:relative;container-type:inline-size;}
.zone-think > .add-inline{position:absolute;top:4px;right:36px;z-index:1;}
#s-result:not(.ro) .zone-think #th-label{padding-right:calc(6.75rem + 22px);}
@container (max-width: calc(11.4rem + 48px)){
  .zone-think > .add-inline{display:none;}
  #s-result:not(.ro) .zone-think #th-label{padding-right:0;}
}
.th-cancel{display:none;}
@media (min-width:640px){
  /* Wide screens: no pinned box; "+ Add a thought" opens the box under the record */
  #s-result > .dock{display:none;}
  .thought:not(.shown){display:none;}
  #s-result > .thought{margin-top:16px;flex:none;}
  .thought.open{box-shadow:0 0 0 4px var(--blue-soft);}
  .thought.open .th-cancel{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-size:calc(15rem/17);font-weight:600;color:var(--muted);}
  .thought.open .th-cancel:hover{color:var(--ink);}
  .add-inline:hover{background:var(--blue-soft);border-radius:10px;}
}

/* ---- Innovator profile (docs/ADDON-PROFILE.md): the mark on Home, and the profile page ---- */
.bandrow{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.bandrow .lockup{min-width:0;overflow:hidden;}
.bandrow .lockup span:last-child{display:none;}
.me{position:relative;flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;}
.me svg{display:block;}
.top-r{display:flex;align-items:center;gap:10px;}
@media (min-width:640px){.bandrow .me{display:none;}}

#s-profile{padding-bottom:40px;}
.p-head{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:6px;}
.p-head .nm{font-size:calc(1rem + 9px);font-weight:700;letter-spacing:-.02em;margin-top:14px;}
.p-sec{margin-top:30px;}
.p-sec h2.sec{display:flex;justify-content:space-between;align-items:baseline;}
.p-sec h2.sec small{font-size:calc(13rem/17);font-weight:500;color:var(--muted);}
.p-note{font-size:calc(14rem/17);color:var(--muted);margin:6px 0 0;line-height:1.4;}
.topics{list-style:none;margin:4px 0 0;padding:0;}
.p-sub{font-size:calc(14rem/17);font-weight:600;color:var(--ink);margin:18px 0 0;}
.p-sub.noticed{color:var(--blue);}
.p-help{font-size:calc(14rem/17);color:var(--muted);margin:2px 0 0;line-height:1.4;}
.p-sub + .p-help + .own{margin-top:8px;}
.vis{margin-top:18px;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--fill);}
.vis.on{background:var(--blue-soft);}
.vis .ic{width:32px;height:32px;border-radius:50%;background:#fff;color:var(--ink-2);display:grid;place-items:center;flex:none;}
.vis.on .ic{color:var(--blue);}
.vis>div{flex:1;min-width:0;}
.vis strong{display:block;font-size:calc(16rem/17);}
.vis span{display:block;font-size:calc(14rem/17);color:var(--ink-2);margin-top:1px;}
.pcard .mini{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:4px;}
.pcard .mini div{background:var(--fill);border-radius:10px;padding:8px;font-size:calc(12rem/17);color:var(--ink-2);}
.pcard .mini b{display:block;font-size:calc(1rem + 1px);color:var(--blue);}
.me .dot{position:absolute;top:3px;right:3px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px var(--blue);}
.me .dot::after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:#E8A317;}
.req{margin-top:18px;border-radius:16px;box-shadow:inset 0 0 0 2px var(--blue);padding:14px;}
.req .who{display:flex;gap:12px;align-items:center;}
.req .who svg{flex:none;}
.req .who b{display:block;font-size:calc(16rem/17);}
.req .who span{display:block;font-size:calc(14rem/17);color:var(--ink-2);}
.req .say{font-size:calc(16rem/17);line-height:1.45;margin:10px 0 0;padding-left:12px;border-left:3px solid var(--blue-soft);color:var(--ink);white-space:pre-wrap;}
.req .acts{display:flex;gap:10px;margin-top:12px;}
.req .acts .pill{min-height:46px;font-size:calc(16rem/17);}
.req small{display:block;font-size:calc(13rem/17);color:var(--muted);margin-top:10px;line-height:1.4;}
.inn,.conn{list-style:none;margin:8px 0 0;padding:0;}
.inn li,.conn li{display:grid;grid-template-columns:44px 1fr;gap:4px 12px;padding:14px 0;border-top:1px solid var(--line);}
.inn li > svg,.conn li > svg{grid-row:1 / span 4;grid-column:1;}
.inn li > :not(svg),.conn li > :not(svg){grid-column:2;}
.inn b,.conn b{font-size:1rem;}
.inn .why,.conn .why{font-size:calc(16rem/17);color:var(--ink-2);line-height:1.45;}
.inn .open{font-size:calc(14rem/17);color:var(--muted);}
.inn .ask-btn{justify-self:start;margin-top:8px;min-height:40px;padding:0 14px;border-radius:12px;background:var(--blue-soft);color:var(--blue);font-size:calc(15rem/17);font-weight:600;}
.inn .ask-btn:disabled{background:var(--fill);color:var(--ink-2);cursor:default;}
.note-box{width:100%;margin-top:14px;min-height:96px;border-radius:14px;border:1px solid var(--line);background:var(--fill);padding:12px 14px;font-size:1rem;line-height:1.4;resize:none;font-family:inherit;color:var(--ink);}
.note-box:focus{outline:none;border-color:var(--blue);background:var(--bg);}
/* ---- Tell us about you (docs/ADDON-FIT.md) ---- */
.greet{font-size:1rem;font-weight:600;color:rgba(255,255,255,.85);margin:0 0 8px;}
.invite{margin-top:18px;border-radius:16px;background:var(--blue-soft);padding:16px;}
.invite b{display:block;font-size:1rem;}
.invite p{margin:4px 0 0;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.invite .pill{margin-top:12px;min-height:46px;font-size:calc(16rem/17);width:100%;flex:none;}
.invite .text-btn{font-size:calc(15rem/17);display:flex;margin:4px auto 0;}
.fitrow{width:100%;text-align:left;display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-bottom:1px solid var(--line);}
.fitrow>div{flex:1;min-width:0;}
.fitrow .k{display:block;font-size:calc(14rem/17);color:var(--muted);}
.fitrow .v{display:block;font-size:1rem;line-height:1.4;}
.fitrow .v.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.fit-acts{display:flex;gap:18px;margin-top:4px;}
.fit-acts .text-btn{font-size:calc(15rem/17);}
.opt-list{margin-top:8px;}
.opt-row{width:100%;text-align:left;display:flex;align-items:center;gap:12px;min-height:58px;border-bottom:1px solid var(--line);padding:8px 0;}
.opt-row>div{flex:1;min-width:0;}
.opt-row b{display:block;font-size:1rem;font-weight:500;}
.opt-row span.s{display:block;font-size:calc(14rem/17);color:var(--muted);margin-top:1px;}
.radio{width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 2px #C9CDD3;flex:none;}
.opt-row[aria-checked="true"] .radio{box-shadow:inset 0 0 0 7px var(--blue);}
.seg2{display:inline-flex;background:var(--fill);border-radius:10px;padding:3px;flex:none;}
.seg2 button{font-size:calc(14rem/17);font-weight:600;padding:0 10px;border-radius:8px;color:var(--ink-2);min-height:38px;}
.seg2 button[aria-pressed="true"]{background:#fff;color:var(--blue);box-shadow:0 1px 3px rgba(0,0,0,.14);}
.fit-field{display:block;width:100%;margin-top:10px;min-height:54px;border-radius:14px;border:1px solid var(--line);background:var(--fill);padding:12px 14px;font-size:calc(1rem + 1px);line-height:1.4;font-family:inherit;color:var(--ink);resize:none;}
.fit-field:focus{outline:none;border-color:var(--blue);background:var(--bg);}
.chat-top{position:sticky;top:calc(-1 * (env(safe-area-inset-top,0px) + 16px));z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:var(--bg);margin:calc(-1 * (env(safe-area-inset-top,0px) + 16px)) -24px 0;padding:calc(env(safe-area-inset-top,0px) + 16px) 16px 4px;border-bottom:1px solid var(--line);}
.chat-top .ttl{font-size:calc(16rem/17);font-weight:600;}
.chat-top .end{justify-self:end;font-size:calc(16rem/17);}
.chat{display:flex;flex-direction:column;gap:14px;padding:20px 0 16px;}
.msg-a{font-size:calc(1rem + 1px);line-height:1.45;color:var(--ink);max-width:94%;}
.msg-u{align-self:flex-end;max-width:84%;background:var(--blue-soft);color:var(--ink);font-size:1rem;line-height:1.45;padding:10px 14px;border-radius:18px 18px 4px 18px;white-space:pre-wrap;}
.typing{display:inline-flex;gap:5px;padding:8px 0;}
.typing i{width:8px;height:8px;border-radius:50%;background:#C3C8D0;animation:blink 1s ease-in-out infinite;}
.typing i:nth-child(2){animation-delay:.15s;}.typing i:nth-child(3){animation-delay:.3s;}
.card-wrap{max-width:100%;width:100%;}
.card-sum{border:1px solid var(--line);border-radius:18px;padding:2px 16px 16px;}
.card-sum .pill{width:100%;flex:none;margin-top:14px;}
.pb-row{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line);}
.pb-row:last-child{border-bottom:0;}
.pb-row>div{flex:1;min-width:0;}
.pb-row .k{font-size:calc(13rem/17);font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;}
.pb-row .v{font-size:1rem;line-height:1.45;margin-top:3px;}
.pb-row .v small{display:block;font-size:calc(15rem/17);color:var(--ink-2);margin-top:2px;}
.pb-row .g{font-size:calc(13rem/17);color:var(--blue);font-weight:600;margin-top:4px;}
.pb-row .chg{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:44px;flex:none;}
.pb-row .acts{display:flex;align-items:center;gap:4px;flex:none;}
.pb-row .keep-btn{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:36px;padding:0 12px;border-radius:10px;background:var(--blue-soft);}
.pb-row .x{width:36px;height:36px;display:grid;place-items:center;color:var(--muted);border-radius:50%;}
.fit-note{display:flex;gap:10px;align-items:flex-start;margin-top:16px;padding:12px 14px;border-radius:12px;background:var(--fill);font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);}
.fit-note svg{flex:none;margin-top:2px;}
.chat-dock{background:var(--bg);align-items:flex-end;}
.cbox{flex:1;min-width:0;display:flex;align-items:flex-end;gap:6px;min-height:54px;border-radius:27px;background:var(--fill);border:1px solid var(--line);padding:6px 6px 6px 18px;}
.cbox textarea{flex:1;min-width:0;border:0;background:transparent;resize:none;outline:none;font-size:1rem;line-height:1.4;padding:9px 0;max-height:120px;font-family:inherit;color:var(--ink);}
.cbox textarea::placeholder{color:var(--muted);}
.send{width:40px;height:40px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;flex:none;}
.send:disabled{display:none;}
#s-iv .listening{margin-bottom:4px;}
.why-score{font-size:calc(15rem/17);line-height:1.5;color:var(--ink-2);margin:10px 0 0;}
.explain{margin-top:14px;background:var(--blue-soft);border-radius:12px;padding:12px 14px;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.explain b{color:var(--ink);display:block;font-size:calc(15rem/17);margin-bottom:2px;}
.fitted{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:calc(13rem/17);line-height:1.45;color:var(--muted);}
.fitted .linklike{font-size:calc(13rem/17);margin:0;min-height:0;display:inline;}
.fit-lead{font-size:calc(16rem/17);margin-top:16px;}
.fit-q{display:block;font-size:calc(15rem/17);font-weight:600;color:var(--ink);margin:26px 0 0;}
.fit-q + .p-help{margin-top:2px;}
@media (min-width:640px){
  .home-band .greet{color:var(--ink-2);}
  .chat-top{top:0;margin:0 auto;padding:0 0 4px;}
}
/* ---- Teams (docs/ADDON-TEAMS.md) ---- */
.page-title{font-size:calc(1rem + 13px);font-weight:700;letter-spacing:-.02em;margin:8px 0 0;}
.field-label{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:24px 0 8px;display:block;}
.tm-field{width:100%;min-height:52px;border-radius:14px;border:1px solid var(--line);background:var(--fill);padding:0 16px;font:inherit;font-size:1rem;color:var(--ink);outline:none;}
.tm-field:focus{border-color:var(--blue);background:var(--bg);}
textarea.tm-field{display:block;padding:12px 16px;min-height:110px;line-height:1.45;resize:none;}
.hint{font-size:calc(14rem/17);color:var(--muted);margin:6px 0 0;line-height:1.4;}
.tm-person{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);}
.tm-person>div{flex:1;min-width:0;}
.tm-person b{display:block;font-size:calc(16rem/17);font-weight:600;}
.tm-person span{display:block;font-size:calc(14rem/17);color:var(--ink-2);}
.tm-person .x{width:40px;height:40px;display:grid;place-items:center;color:var(--muted);border-radius:50%;flex:none;}
.tm-person .chg{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:40px;flex:none;}
.tm-results{border:1px solid var(--line);border-radius:14px;margin-top:6px;overflow:hidden;}
#s-team-new > *, #s-team > *{flex-shrink:0;}
.tm-results button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);min-height:52px;}
.tm-results button:last-child{border-bottom:0;}
.tm-results b{display:block;font-size:calc(16rem/17);font-weight:600;}
.tm-results span{display:block;font-size:calc(14rem/17);color:var(--ink-2);}
.tm-results p{margin:0;padding:12px 14px;font-size:calc(14rem/17);color:var(--muted);}
.tm-links{display:flex;flex-direction:column;align-items:flex-start;margin-top:4px;}
.tm-links button{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;text-align:left;}
.agree{background:var(--fill);border-radius:14px;padding:2px 16px;}
.agree p{margin:0;padding:10px 0;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);border-bottom:1px solid var(--line);}
.agree p:last-child{border-bottom:0;}
.faces{display:flex;flex:none;}
.faces svg{display:block;margin-left:-7px;border-radius:50%;box-shadow:0 0 0 2px var(--bg);}
.faces svg:first-child{margin-left:0;}
.invite-card{background:var(--blue-soft);border-radius:18px;padding:16px;margin-top:18px;}
.kicker{font-size:calc(12rem/17);font-weight:700;letter-spacing:.06em;color:var(--blue);text-transform:uppercase;}
.invite-card .head{display:flex;gap:12px;align-items:center;margin-top:10px;}
.invite-card .head svg{flex:none;}
.invite-card .head p{margin:0;font-size:1rem;line-height:1.35;}
.invite-card .members{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:calc(14rem/17);color:var(--ink-2);}
.invite-card .members .faces svg{box-shadow:0 0 0 2px var(--blue-soft);}
.invite-card .agree{background:var(--bg);}
.invite-card .ack{background:var(--bg);margin-top:10px;}
.btns{display:flex;gap:10px;margin-top:14px;}
.btns .pill{min-height:48px;font-size:calc(16rem/17);}
.fine{font-size:calc(13rem/17);color:var(--ink-2);margin:10px 0 0;line-height:1.4;}
.team-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid var(--line);}
.team-row>div{flex:1;min-width:0;}
.team-row b{display:block;font-size:1rem;font-weight:600;}
.team-row div span{display:block;font-size:calc(14rem/17);color:var(--ink-2);margin-top:2px;}
.tm-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.tm-head .text-btn{font-size:calc(16rem/17);flex:none;}
.tm-line{font-size:calc(13rem/17);font-weight:600;color:var(--muted);margin:10px 0 0;}
.tm-empty{font-size:calc(15rem/17);color:var(--muted);padding:12px 0;border-bottom:1px solid var(--line);margin:0;}
.who{display:flex;align-items:center;gap:10px;margin-top:8px;min-height:40px;flex-shrink:0;}   /* never squeezed under its text (step H) */
.who .who-text{font-size:calc(15rem/17);color:var(--ink-2);display:flex;align-items:center;gap:6px;min-width:0;}
.who .who-text .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.who .act{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;margin-left:auto;white-space:nowrap;display:inline-flex;align-items:center;gap:2px;flex:none;}
.event{font-size:calc(13rem/17);font-weight:600;color:var(--muted);display:flex;align-items:center;gap:6px;}
.entry .meta .by{color:var(--ink);display:inline;font-size:inherit;margin:0;}
.entry .meta .nw{color:var(--blue);}
.related{display:block;width:100%;text-align:left;font-size:calc(15rem/17);color:var(--ink-2);min-height:44px;padding:0;}
.related b{color:var(--blue);font-weight:600;}
.choice{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid var(--line);}
.choice .rd{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 2px #C9CDD4;flex:none;}
.choice[aria-checked="true"] .rd{box-shadow:inset 0 0 0 7px var(--blue);}
.choice>div{flex:1;min-width:0;}
.choice b{display:block;font-size:1rem;font-weight:600;}
.choice div span{display:block;font-size:calc(14rem/17);color:var(--ink-2);margin-top:2px;}
.choice .ic2{width:38px;height:38px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:none;}
.sees{display:flex;gap:10px;align-items:flex-start;background:var(--fill);border-radius:12px;padding:12px 14px;margin-top:16px;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.sees b{color:var(--ink);}
.ppl-group{margin-top:8px;}
.ppl-stop{font-size:calc(14rem/17);font-weight:600;color:var(--muted);min-height:40px;}
.next-btn:disabled{opacity:.55;cursor:not-allowed;}
/* ---- Talk ---- */
.talk-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;min-height:52px;border-bottom:1px solid var(--line);font-size:1rem;font-weight:600;text-align:left;flex-shrink:0;}
.talk-row .ic{color:var(--blue);flex:none;}
.talk-row .lbl{flex:1;}
.talk-row .new{font-size:calc(15rem/17);font-weight:600;color:var(--blue);}
.talk-row .new.none{color:var(--muted);font-weight:400;}
.talk-sub{font-size:calc(15rem/17);color:var(--ink-2);margin:4px 0 0;line-height:1.4;}
.talk-note{display:flex;gap:8px;align-items:flex-start;font-size:calc(14rem/17);color:var(--ink-2);line-height:1.4;background:var(--fill);border-radius:12px;padding:10px 12px;margin:14px 0 0;}
.talk-note svg{flex:none;color:var(--muted);margin-top:1px;}
#s-talk > *{flex-shrink:0;}
.msgs{display:flex;flex-direction:column;gap:18px;margin-top:22px;padding-bottom:16px;}
.day{font-size:calc(13rem/17);font-weight:600;color:var(--muted);text-align:center;}
.msg{display:grid;grid-template-columns:32px 1fr;column-gap:10px;}
.msg > .faces{grid-row:1 / span 3;grid-column:1;align-self:start;}
.msg > :not(.faces){grid-column:2;}
.msg .meta{font-size:calc(13rem/17);font-weight:600;color:var(--muted);}
.msg .meta b{color:var(--ink);font-weight:600;}
.msg p{margin:2px 0 0;font-size:1rem;line-height:1.45;color:var(--ink);white-space:pre-wrap;}
.msg p.gone{color:var(--muted);font-size:calc(15rem/17);}
.msg .acts{display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
.msg .acts button{font-size:calc(14rem/17);font-weight:600;color:var(--blue);min-height:36px;}
.msg .acts .q{color:var(--muted);}
.msg .acts [data-talk-more]{min-width:44px;min-height:44px;margin:-4px 0;font-size:calc(1rem + 3px);line-height:1;}
.msg .acts .added{font-size:calc(13rem/17);font-weight:600;color:var(--muted);}
.msg .meta .ed{font-size:calc(13rem/17);font-weight:600;color:var(--muted);min-height:0;margin:0;display:inline;text-decoration:underline;}
.newline{display:flex;align-items:center;gap:10px;font-size:calc(13rem/17);font-weight:700;color:var(--blue);white-space:nowrap;}
.newline::before,.newline::after{content:"";flex:1;height:1px;background:var(--blue);opacity:.35;}
#talk-send{width:54px;height:54px;}
/* ---- Guests ---- */
#s-guest > *{flex-shrink:0;}
.guest-q{font-size:calc(1rem + 7px);line-height:1.3;font-weight:700;letter-spacing:-.015em;margin:10px 0 0;}
.guest-from{display:flex;align-items:center;gap:10px;margin:14px 0 0;font-size:calc(15rem/17);color:var(--ink-2);}
.guest-brief{background:var(--fill);border-radius:14px;padding:14px 16px;margin-top:8px;font-size:1rem;line-height:1.5;white-space:pre-wrap;}
.brief-label{display:flex;justify-content:space-between;align-items:baseline;margin:22px 0 8px;}
.brief-label .field-label{margin:0;}
.brief-label small{font-size:calc(13rem/17);color:var(--blue);font-weight:600;}
#g-send{width:54px;height:54px;}
.ask-q{display:flex;gap:8px;align-items:flex-end;}
.ask-q textarea{flex:1;}
.ask-q .mic{width:48px;height:48px;flex:none;}
.see-as{margin-top:4px;min-height:40px;font-size:calc(15rem/17);font-weight:600;color:var(--blue);}
.pcard{margin-top:16px;border:1px solid var(--line);border-radius:18px;padding:18px;}
.pcard .top{display:flex;gap:12px;align-items:center;}
.pcard .top b{font-size:calc(1rem + 1px);display:block;}
.pcard h4{font-size:calc(13rem/17);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:16px 0 4px;}
.pcard p{margin:0;font-size:calc(16rem/17);line-height:1.45;}
.pcard p.none{color:var(--muted);}
.private-note{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--fill);font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);}
.private-note svg{flex:none;margin-top:2px;}
.topics .p-note{margin:2px 0 0;}
.warn-line{font-size:calc(14rem/17);color:var(--ink-2);background:var(--fill);border-radius:12px;padding:10px 12px;margin:10px 0 0;line-height:1.4;}
.topic{display:flex;align-items:center;gap:12px;min-height:52px;padding:4px 0;border-bottom:1px solid var(--line);}
.topic>button.t{flex:1;min-width:0;text-align:left;min-height:52px;display:flex;flex-direction:column;justify-content:center;}
.topic .t b{font-size:1rem;font-weight:600;}
.topic .t span{font-size:calc(13rem/17);color:var(--muted);margin-top:1px;}
.topic.sug .t span{color:var(--blue);font-weight:600;}
.topic .x{margin-right:-6px;}
.topic .keep-btn{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:36px;padding:0 12px;border-radius:10px;background:var(--blue-soft);flex:none;}
.topic .x{width:36px;height:36px;display:grid;place-items:center;color:var(--muted);border-radius:50%;flex:none;}
.topic.kept-now{animation:flash 1.6s ease;}
.sug-row{width:100%;text-align:left;display:flex;align-items:center;gap:10px;min-height:56px;border-bottom:1px solid var(--line);color:var(--ink);}
.sug-row > span:first-child{flex:1;min-width:0;font-size:calc(16rem/17);}
.sug-row b{font-weight:600;color:var(--blue);}
.sug-row .go{font-size:calc(15rem/17);font-weight:600;color:var(--blue);}
.add-topic{font-size:calc(16rem/17);font-weight:600;color:var(--blue);min-height:48px;display:inline-flex;align-items:center;gap:6px;}
.own{margin-top:10px;}
.own .read{margin:0;}
.own .q{font-size:1rem;line-height:1.5;color:var(--ink);white-space:pre-wrap;}
.own-empty{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;border:1.5px dashed var(--line);color:var(--muted);font-size:calc(16rem/17);}

.sw-list{margin-top:6px;}
.sw-row{display:flex;align-items:center;gap:14px;min-height:56px;border-bottom:1px solid var(--line);padding:6px 0;}
.sw-row>div{flex:1;min-width:0;}
.sw-row b{display:block;font-size:1rem;font-weight:500;}
.sw-row span{display:block;font-size:calc(14rem/17);color:var(--muted);margin-top:1px;line-height:1.35;}
.sw{position:relative;width:51px;height:31px;border-radius:16px;background:#E2E4E8;flex:none;transition:background .2s;}
.sw::before{content:"";position:absolute;inset:-7px -2px;}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.18);transition:transform .2s cubic-bezier(.2,.8,.2,1);}
.sw[aria-checked="true"]{background:var(--blue);}
.sw[aria-checked="true"]::after{transform:translateX(20px);}
.sw:disabled{opacity:.4;cursor:not-allowed;}

.log{display:grid;grid-template-columns:repeat(auto-fit,minmax(max(calc(50% - 6px),min(100%,calc(1rem + 113px))),1fr));gap:10px;margin-top:12px;}
.log .tile{background:var(--fill);border-radius:16px;padding:14px 14px 12px;}
.log .tile.hero{grid-column:1 / -1;background:var(--blue);color:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:14px;}
.log .num{font-size:calc(1rem + 15px);font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--blue);font-variant-numeric:tabular-nums;}
.log .lbl{font-size:calc(14rem/17);color:var(--ink-2);margin-top:6px;}
.log .hero .num{color:#fff;font-size:calc(1rem + 23px);}
.log .hero .lbl{color:rgba(255,255,255,.85);margin:0;font-size:calc(15rem/17);line-height:1.35;}
.log .hero .lbl b{display:block;color:#fff;font-size:1rem;}
.log-foot{font-size:calc(14rem/17);color:var(--muted);margin:10px 0 0;}

.linkrow{width:100%;text-align:left;display:flex;align-items:center;gap:12px;min-height:56px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;}
.linkrow>div{flex:1;min-width:0;}
.linkrow b{display:block;font-size:1rem;font-weight:500;}
.linkrow span{display:block;font-size:calc(14rem/17);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.linkrow a.go{flex:1;min-width:0;display:block;color:inherit;text-decoration:none;min-height:56px;padding:8px 0;}
.linkrow a.go span{color:var(--blue);}
.linkrow .chg{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:44px;flex:none;}
.bie{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:calc(1rem + 3px);letter-spacing:.01em;margin-top:10px;}
.p-clear{align-self:flex-start;margin-top:36px;min-height:44px;font-size:calc(15rem/17);color:var(--muted);font-weight:600;}
.p-clear:hover{color:var(--ink);}
.p-clear.p-delete{margin-top:4px;}
.acct-p{font-size:calc(16rem/17);margin-top:10px;color:var(--ink-2);}
.p-err{font-size:calc(14rem/17);color:#B3261E;margin:8px 0 0;}

/* Capture in profile mode: words only, no files */
#s-cap.profile .attach,#s-cap.profile .file-note,#s-cap.profile .files{display:none!important;}

/* Asks (docs/ADDON-HARD-PROBLEMS.md): a leader's asks on Home, the ask page, and ask capture */
.asks{margin-bottom:8px;}
.ak-row{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);min-height:64px;}
.ak-row > div{flex:1;min-width:0;}
.ak-row .t{font-size:1rem;font-weight:600;display:block;}
.ak-row .n{font-size:calc(15rem/17);color:var(--ink-2);display:block;margin-top:2px;}
.ak-row .n b{color:var(--blue);font-weight:600;}
.ak-row svg.mk{flex:none;}
.ak-add{font-size:calc(16rem/17);font-weight:600;color:var(--blue);min-height:44px;padding:4px 0;text-align:left;}
.ak-closed{font-size:calc(15rem/17);color:var(--muted);margin:6px 0 0;line-height:1.45;}
.ak-closed button{font:inherit;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;}
.ak-tile{background:var(--blue-soft);border-radius:18px;padding:20px;display:flex;align-items:center;gap:18px;margin-top:22px;}
.ak-tile .num{font-size:calc(1rem + 39px);font-weight:700;color:var(--blue);line-height:1;letter-spacing:-.03em;flex:none;}
.ak-tile .num.few{font-size:calc(1rem + 13px);}
.ak-tile b{display:block;font-size:calc(1rem + 2px);font-weight:600;}
.ak-tile span{display:block;font-size:calc(15rem/17);color:var(--ink-2);line-height:1.4;margin-top:4px;}
h2.sec.ak-h{margin-top:30px;}
.ak-share{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);}
.ak-share > div{flex:1;}
.ak-share .t{font-size:1rem;font-weight:600;display:block;padding-left:18px;text-indent:-18px;}
.ak-share .t::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:10px;vertical-align:2px;}
.ak-share .n{font-size:calc(15rem/17);color:var(--ink-2);display:block;margin-top:2px;padding-left:18px;}
.ak-none{font-size:calc(16rem/17);color:var(--ink-2);margin:10px 0 0;}
.ak-words{font-size:calc(1rem + 1px);line-height:1.5;color:var(--ink-2);margin:10px 0 0;}
.ak-dock{flex-direction:column;align-items:stretch;}
.ak-dock .ak-close{align-self:center;font-size:calc(15rem/17);color:var(--muted);}
.ak-cap{margin-top:auto;}
.ak-by{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:14px;}
.ak-by b{display:block;font-size:calc(16rem/17);}
.ak-by span{display:block;font-size:calc(14rem/17);color:var(--muted);}
.ak-note{font-size:calc(14rem/17);color:var(--muted);margin:10px 0 0;line-height:1.4;}
#s-cap.asking .attach,#s-cap.asking .file-note,#s-cap.asking .files{display:none!important;}
#s-cap.asking #cap-text{min-height:160px;}
.ak-line{display:flex;align-items:center;gap:8px;grid-column:1;margin-top:8px;font-size:calc(15rem/17);font-weight:600;color:var(--blue);line-height:1.3;}
.ak-line.big{margin-top:0;font-size:calc(1rem + 1px);}
.ak-line svg{flex:none;}
.ak-card{background:var(--blue-soft);border-radius:16px;padding:16px 18px;margin-top:18px;}
.ak-k{font-size:calc(13rem/17);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);margin:0;}
.ak-q{font-size:1rem;line-height:1.5;margin:8px 0 14px;}
.ak-card .ak-by{border-top:0;padding-top:0;}
.ak-foot{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;}
.ak-consent{font-size:calc(13rem/17);color:var(--muted);text-align:center;margin:2px 0 0;line-height:1.4;}
.ak-stop{align-self:center;font-size:calc(15rem/17);color:var(--muted);}
button.ak-share{color:inherit;}
.sh-note{font-size:calc(15rem/17);color:var(--blue);font-weight:600;margin:14px 0 0;}
.sh-entry{font-size:1rem;line-height:1.5;color:var(--ink-2);margin:10px 0 0;}
#s-shared .answer{grid-template-columns:1fr;cursor:default;}

/* Sign-in messages and your devices (docs/ADDON-PEOPLE.md step C; docs/beta-signin-build-spec.md) */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.page-h{margin-top:18px;}
.help{font-size:calc(15rem/17);color:var(--ink-2);line-height:1.45;margin:18px 0 0;}
.inline{color:var(--blue);font-weight:600;font-size:inherit;}
.code-msg{display:flex;gap:8px;align-items:flex-start;font-size:calc(15rem/17);line-height:1.4;margin:10px 0 0;font-weight:500;}
.code-msg[hidden]{display:none;}
.code-msg svg{flex:none;margin-top:2px;}
.code-msg.miss{color:#A1291F;}
.code-msg.warn{color:#8A5A00;}
.code-msg.ok{color:var(--blue);}
.how{font-size:1rem;line-height:1.45;color:var(--ink);margin:18px 0 0;}
#add-main h1{margin-top:12px;}
.devs{list-style:none;margin:6px 0 0;padding:0;}
.dev{display:flex;align-items:center;gap:12px;min-height:64px;border-bottom:1px solid var(--line);}
.dev .ic{width:36px;height:36px;border-radius:50%;background:var(--fill);color:var(--ink-2);display:grid;place-items:center;flex:none;}
.dev>div{flex:1;min-width:0;}
.dev b{display:block;font-size:1rem;font-weight:500;}
.dev span{display:block;font-size:calc(14rem/17);color:var(--muted);margin-top:1px;}
.dev button{font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;padding:0 2px;}
.cdlg-scrim{position:fixed;inset:0;background:rgba(11,11,12,.38);z-index:40;display:grid;place-items:center;padding:20px;}
.cdlg{background:var(--bg);border-radius:16px;width:min(440px,100%);padding:24px;box-shadow:0 24px 60px rgba(11,11,12,.25);}
.cdlg h2{font-size:calc(1rem + 5px);margin:0;letter-spacing:-0.015em;line-height:1.2;}
.cdlg .lead{font-size:calc(16rem/17);margin:8px 0 0;color:var(--ink-2);line-height:1.45;}
.cdlg-foot{display:flex;gap:10px;margin-top:20px;}
.sheet-body .p-sec h2.sec{font-size:calc(15rem/17);font-weight:600;color:var(--muted);padding-right:0;margin:0;letter-spacing:0;line-height:1.3;}
#p-add[aria-expanded="true"]{background:var(--blue-soft);}
/* A sign-in link (design/signin-mock.html #checking to #used-asked): white, calm, the person's own mark */
/* Come in (docs/beta-signin-build-spec.md, "Revised Oct 14, evening"; design/beta-signin-magic-mock.html M2, M4) */
#s-signin .si-body{display:flex;flex-direction:column;gap:16px;}
#s-signin .si-body .sub{margin:0;font-size:calc(1rem + 1px);line-height:1.45;color:#3A404C;}
#s-signin .si-body > .pill{flex:none;min-height:56px;border-radius:12px;font-size:calc(1rem + 1px);margin-top:12px;}
#s-signin .si-body > .pill + .pill{margin-top:0;}
#s-signin:not(.top) .si-body h1{font-size:calc(1rem + 25px);line-height:1.05;letter-spacing:-0.5px;}
#s-signin.gone .si-body h1{font-size:calc(1rem + 19px);line-height:1.08;}
/* A sixth device (docs/one-link-build-spec.md, screen 6): three numbered steps */
.si-steps{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;}
.si-steps li{display:flex;gap:12px;align-items:flex-start;font-size:calc(16rem/17);line-height:1.45;color:#4B5059;}
.si-steps li > span:first-child{width:24px;height:24px;border-radius:50%;background:#EEF1FA;color:var(--blue);font-weight:700;font-size:calc(13rem/17);display:grid;place-items:center;flex:none;}
.si-disc{width:112px;height:112px;border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center;box-shadow:0 12px 28px rgba(14,50,147,.25);}
.si-disc .si-mark{margin:0;}
#s-signin > .dock{justify-content:center;}
#s-signin .si-sp{flex:1.25;min-height:24px;}
#s-signin .si-sp.b{flex:1;}
#s-signin.top .si-sp{flex:0 0 0;min-height:0;}
#s-signin.top .si-sp.b{flex:1;}
.si-body h1{font-size:calc(1rem + 19px);}
#s-signin.top .si-body h1{font-size:calc(1rem + 15px);}
/* Under the logo row, at least the space "Ask for a new link" has (36px) on every door screen
   (docs/sign-on-fixes-build-spec.md, screen 8). The door and a laptop's code have a 32px gap there. */
#s-signin .si-sp:not(.b){min-height:36px;}
#s-signin .si-sp.b{min-height:12px;}   /* so Welcome still fits a 375 x 667 phone without scrolling */
#s-door > .door-head,#s-pair > .door-head{margin-bottom:4px;}
.si-mark{display:block;margin-bottom:22px;}
.big-ic{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:40px 0 20px;}
.big-ic.ok{background:var(--blue);color:#fff;}
.big-ic.quiet{background:var(--fill);color:var(--ink-2);}
.dock.col{flex-direction:column;align-items:stretch;}
.dock.col .pill{flex:none;}
.dock.col .text-btn{align-self:center;font-size:calc(16rem/17);}
.si-wait{text-align:center;color:var(--muted);font-size:calc(15rem/17);}
.si-think{display:flex;gap:7px;align-items:center;justify-content:center;height:30px;margin-bottom:14px;}
.si-think i{width:7px;height:10px;border-radius:4px;background:var(--blue);animation:bar .8s ease-in-out infinite;}
.si-think i:nth-child(2){animation-delay:.12s}.si-think i:nth-child(3){animation-delay:.24s}.si-think i:nth-child(4){animation-delay:.36s}
@media (prefers-reduced-motion:reduce){.si-think i{animation:none;height:18px;}}
/* The one-time Home Screen tip on home */
/* On a laptop: one centered column, the buttons right under the words */
@media (min-width:640px){
  #s-signin::before,#s-signin::after{content:"";flex:1 1 0;}
  #s-signin > *{max-width:420px;width:100%;margin-left:auto;margin-right:auto;}
  #s-signin .si-sp{display:none;}
  #s-signin > .dock{margin:24px auto 0;position:static;background:none;padding:0;}
  #s-signin .big-ic{margin-top:0;}
  #s-signin > .door-head{margin-bottom:36px;}   /* its spacers are gone here: the Beta chip and headings touched the logo */
}
#s-signin.bare > .door-head{visibility:hidden;}
.si-big{display:block;width:96px;height:auto;margin:0 auto 22px;color:var(--ink);}
/* The tip arrives with the rest of home in the entrance */
@media (min-width:640px){
  #s-signin .si-body h1{font-size:calc(1rem + 23px);}
  #s-signin.top .si-body h1{font-size:calc(1rem + 15px);}
  #s-signin .si-body .sub{font-size:1rem;margin-top:10px;}
  #s-signin > .dock{margin-top:32px;}
}

/* Beta sign-in (docs/beta-signin-build-spec.md; design/beta-signin-mock.html A4 to A6): the door, Check your email and
   Not on the list. White, like the entrance's first frames. The app icon stands where the mock's "IE" tile is. */
.door-head{display:flex;align-items:center;gap:12px;}
.door-head img{width:44px;height:44px;border-radius:10px;flex:none;display:block;}
.door-head b{display:block;font-size:1rem;font-weight:600;line-height:1.25;}
.door-head span{display:block;font-size:calc(14rem/17);color:#5A6170;}
#s-door,#s-signin,#s-request,#s-newlink{padding:calc(env(safe-area-inset-top,0px) + 56px) 28px calc(env(safe-area-inset-bottom,0px) + 40px);}
#s-door{justify-content:space-between;gap:32px;}
.door-mid{display:flex;flex-direction:column;gap:28px;}
.door-calm{display:flex;flex-direction:column;gap:14px;}
.door-calm h1{font-size:calc(1rem + 25px);line-height:1.05;letter-spacing:-0.5px;}
.door-calm .sub,#s-request .page-h .sub,#s-newlink .page-h .sub,#s-code .page-h .sub{margin:0;font-size:calc(1rem + 1px);line-height:1.45;color:#3A404C;}
.beta-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#EEF2FB;color:var(--blue);font-size:calc(14rem/17);font-weight:600;margin:0;}
.beta-chip i{width:8px;height:8px;border-radius:50%;background:#E8A317;}
#s-door .note-row{margin:0;}
.bform{display:flex;flex-direction:column;gap:10px;margin:0;}
.bform label{display:block;font-size:calc(15rem/17);font-weight:600;color:var(--ink);}
.bform input{display:block;width:100%;height:54px;padding:0 16px;border:1.5px solid #C9CFDA;border-radius:12px;font:inherit;font-size:calc(1rem + 1px);color:var(--ink);background:var(--bg);outline:none;}
.bform input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #DCE4F7;}
.bform input.bad{border-color:#A1291F;}
.bform input::placeholder{color:var(--muted);}
.bform .code-msg{margin:0;}
.bform .pill{flex:none;margin-top:6px;min-height:56px;border-radius:12px;font-size:calc(1rem + 1px);}
.door-foot p{margin:0;font-size:calc(14rem/17);line-height:1.45;color:#5A6170;}
.door-foot .text-btn{font-size:calc(15rem/17);margin-top:4px;}

#s-request,#s-newlink{gap:36px;}
#s-request .page-h,#s-newlink .page-h{margin-top:0;margin-bottom:0;}
#s-request .page-h h1,#s-newlink .page-h h1,#s-code .page-h h1{font-size:calc(1rem + 19px);line-height:1.08;letter-spacing:-0.5px;}
#s-request .page-h .sub,#s-newlink .page-h .sub,#s-code .page-h .sub{margin-top:12px;}
#s-request .page-h .sub b{color:var(--ink);font-weight:600;}
#req-form{gap:8px;}
#req-form > label:not(:first-child),#req-email-f > label{margin-top:10px;}
#req-email-f input{margin-top:8px;}
#req-form .text-btn,#nl-form .text-btn{align-self:center;font-size:calc(16rem/17);}
#nl-form input{margin-top:8px;}
#s-code{padding:calc(env(safe-area-inset-top,0px) + 16px) 28px calc(env(safe-area-inset-bottom,0px) + 40px);gap:28px;}
#s-code .page-h{margin-top:0;margin-bottom:0;}
#s-code .page-h h1{font-size:calc(1rem + 21px);line-height:1.05;}
.otp-form{display:flex;flex-direction:column;gap:10px;margin:0;}
.otp-form > label{font-size:calc(15rem/17);font-weight:600;}
/* One real input over six drawn boxes: the input takes the taps, the paste and the code iOS offers; the boxes show it */
.otp{position:relative;width:100%;max-width:328px;}
.otp input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;font-size:calc(16rem/17);outline:none;z-index:1;}
.otp input::selection{background:transparent;}
.otp input:focus-visible{outline:none;}
.otp-boxes{display:flex;gap:6px;}
.otp-boxes i{flex:1 1 0;min-width:0;max-width:48px;height:62px;border:1.5px solid #C9CFDA;border-radius:12px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:calc(1rem + 11px);font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink);background:var(--bg);}
.otp-boxes i.gap{margin-left:10px;}
.otp-boxes i.on{border:2px solid var(--blue);box-shadow:0 0 0 4px #DCE4F7;}
.otp-boxes i.on:empty::after{content:"";width:2px;height:30px;background:var(--blue);animation:otp-caret 1s steps(1) infinite;}
@keyframes otp-caret{50%{opacity:0;}}
.otp.bad .otp-boxes i:not(.on){border-color:#A1291F;}
.otp-hint{margin:4px 0 0;font-size:calc(15rem/17);color:#5A6170;}
.otp-form .code-msg{margin:4px 0 0;}
.code-late p{margin:8px 0 0;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
/* The inline links get a 44px tall tap area without moving the text */
.door-foot .inline,.code-late .inline{padding:12px 2px;margin:-12px -2px;}
.code-more{display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
.code-more .text-btn{font-size:calc(16rem/17);}
.code-more .text-btn:disabled{color:var(--muted);cursor:default;font-variant-numeric:tabular-nums;}
@media (max-width:370px){
  #s-door,#s-signin,#s-request,#s-newlink,#s-code{padding-left:20px;padding-right:20px;}
  .otp-boxes i{height:54px;font-size:calc(1rem + 7px);}
  .otp-boxes i.gap{margin-left:6px;}
}
@media (prefers-reduced-motion:reduce){.otp-boxes i.on:empty::after{animation:none;}}
.note-row{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--blue-soft);font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);margin-bottom:12px;}
.note-row[hidden]{display:none;}
.note-row .ic{width:28px;height:28px;border-radius:50%;background:#fff;color:var(--blue);display:grid;place-items:center;flex:none;}
.note-row b{display:block;color:var(--ink);font-size:calc(16rem/17);font-weight:600;}
.field input::placeholder{color:var(--muted);}
.field.bad input{border-color:#A1291F;background:var(--bg);}
.sent{margin:24px 0 0;border:1px solid var(--line);border-radius:16px;padding:2px 16px;}
.sent div{display:grid;grid-template-columns:96px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:calc(16rem/17);}
.sent div:first-child{border-top:0;}
.sent dt{color:var(--muted);font-size:calc(15rem/17);}
.sent dd{margin:0;min-width:0;overflow-wrap:break-word;}
/* Signed out: no profile button in the laptop's top bar */
.device.out .topbar .me{display:none;}
/* On a laptop: one centered column, 420px, the buttons right under the words (#lap-door, #lap-ask) */
@media (min-width:640px){
  /* Spacers, not justify-content:center: when the window is too short, the column starts at the top and scrolls */
  #s-door::before,#s-door::after,#s-request::before,#s-request::after,#s-newlink::before,#s-newlink::after,#s-code::before,#s-code::after,#s-thanks::before,#s-thanks::after,#s-join::before,#s-join::after{content:"";flex:1 1 0;}
  #s-door > *,#s-request > *,#s-newlink > *,#s-code > *,#s-thanks > *,#s-join > *{max-width:420px;width:100%;margin-left:auto;margin-right:auto;}
  #s-door,#s-request,#s-newlink,#s-code{padding:96px 32px 48px;justify-content:flex-start;}
  #s-request > .grow,#s-thanks > .grow,#s-join > .grow{display:none;}
  #s-thanks > .dock,#s-join > .dock{margin:32px auto 0;position:static;background:none;padding:0;}
  #s-door h1,#s-request h1,#s-newlink h1,#s-code h1,#s-thanks h1,#s-join h1{font-size:calc(1rem + 23px);}
  #s-thanks .big-ic{margin-top:0;}
  /* The check mark stays a 56px circle, lined up with the heading (not stretched to the column: screen 8) */
  #s-thanks > .big-ic{width:56px;margin-left:max(0px, calc(50% - 210px));margin-right:auto;}
  #s-join .home-hero{padding-top:0;}
}

/* A colleague's invite link (design/signin-mock.html #invite-new to #invite-gone): white and calm, like the door */
#s-invite .inv-sp{flex:1.25;min-height:24px;}
#s-invite .inv-sp.b{flex:1;}
#s-invite.top .inv-sp{flex:0 0 0;min-height:0;}
#s-invite.top .inv-sp.b{flex:1;}
.inv-body h1{font-size:calc(1rem + 19px);}
#s-invite.top .inv-body h1{font-size:calc(1rem + 15px);}
.from{display:flex;gap:12px;align-items:center;margin-bottom:22px;}
.from svg{flex:none;}
.from b{display:block;font-size:calc(16rem/17);}
.from span{display:block;font-size:calc(14rem/17);color:var(--ink-2);}
.reg-h{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:26px 0 0;}
.sent.reg{margin-top:8px;}
.sent.reg div{grid-template-columns:92px minmax(0,1fr) auto;align-items:center;min-height:50px;padding:6px 0;}
.sent.reg button{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:36px;padding:0 4px;}
.sent.reg input{width:100%;font:inherit;font-size:calc(16rem/17);border:1px solid var(--blue);border-radius:10px;padding:6px 10px;outline:none;color:var(--ink);background:var(--bg);}
.sent .dim{color:var(--muted);}
.dock-note{font-size:calc(14rem/17);color:var(--muted);text-align:center;margin:2px 0 0;line-height:1.4;}
#s-invite .dock .join-err{text-align:center;}
#s-invite .join-err[hidden]{display:none;}
/* On a laptop: one centered column, the buttons under the words */
@media (min-width:640px){
  #s-invite::before,#s-invite::after{content:"";flex:1 1 0;}
  #s-invite > *{max-width:420px;width:100%;margin-left:auto;margin-right:auto;}
  #s-invite .inv-sp{display:none;}
  #s-invite > .dock{margin:28px auto 0;position:static;background:none;padding:0;}
  #s-invite .inv-body h1{font-size:calc(1rem + 23px);}
  #s-invite.top .inv-body h1{font-size:calc(1rem + 15px);}
  #s-invite .big-ic{margin-top:0;}
}

/* The name they go by, under their name on the profile */
.p-goes{margin-top:6px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;}
.p-goes .small{margin:0;color:var(--ink-2);}
.p-goes .text-btn{font-size:calc(15rem/17);min-height:36px;}
.p-goes .field{width:min(320px,100%);margin:6px 0 0;}
.p-goes .err{color:var(--miss, #A1291F);}
.p-goes-acts{display:flex;gap:12px;justify-content:center;}

/* Who's building this? (Harmonic): three steps that tick while it works, then facts under each startup */
.progress{margin-top:18px;display:grid;gap:12px;}
.prog{display:flex;gap:12px;align-items:center;font-size:calc(16rem/17);}
.prog .ok{width:22px;height:22px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;flex:none;}
.prog .spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--blue-soft);border-top-color:var(--blue);flex:none;animation:spin 1s linear infinite;}
.prog.wait{color:var(--muted);}
.prog .dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);flex:none;}
@media (prefers-reduced-motion:reduce){.prog .spin{animation:none;}}
.su-hint{font-size:calc(14rem/17);color:var(--muted);margin:18px 0 0;line-height:1.45;}
.list .facts{font-size:calc(14rem/17);color:var(--ink);font-weight:500;margin-top:6px;display:flex;flex-wrap:wrap;gap:4px 12px;}
.list .facts i{font-style:normal;color:var(--muted);font-weight:400;}
.crosslink{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:calc(15rem/17);color:var(--muted);line-height:1.45;}
.crosslink .linklike{color:var(--blue);font-weight:600;font-size:calc(15rem/17);margin:0;min-height:0;padding:0;display:inline;}

/* ---- Put it away (docs/ADDON-PUT-AWAY.md, design/backburner-mock.html) ---- */
.pa-kicker{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:0 0 4px;padding-right:44px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.pick{display:flex;align-items:center;gap:14px;width:100%;text-align:left;min-height:68px;padding:12px 0;border-top:1px solid var(--line);}
.pick:first-of-type{margin-top:16px;}
.pick .pi{width:40px;height:40px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:none;}
.pick .pi svg{width:20px;height:20px;}
.pick.del .pi{background:var(--fill);color:var(--ink);}
.pick > div{flex:1;min-width:0;}
.pick strong{display:block;font-size:1rem;}
.pick span{display:block;font-size:calc(15rem/17);color:var(--ink-2);margin-top:1px;line-height:1.35;}
.pick .chev{flex:none;color:var(--muted);}
.pick[aria-disabled="true"]{cursor:default;}
.pick[aria-disabled="true"] strong,.pick[aria-disabled="true"] .pi{opacity:.4;}
.pill.ink{background:var(--ink);color:#fff;}
.pill.ink:active{background:#2A2C31;}
@media (min-width:640px){ .pa-kicker{display:none;} }   /* the side panel's header already names the idea */
/* Home rows: swiped left, one "Pause it" tab (option B); with a mouse, a quiet "…" on hover and keyboard focus */
.swipe{position:relative;overflow:hidden;margin:0 -24px;}
.swipe .idea-row{position:relative;z-index:1;background:var(--bg);padding:16px 24px;border-bottom:0;touch-action:pan-y;transition:transform .26s cubic-bezier(.2,.8,.2,1),background .15s;}
.swipe .idea-row::after{content:"";position:absolute;left:24px;right:24px;bottom:0;height:1px;background:var(--line);border:0;}
.swipe.open .idea-row{transform:translateX(-96px);}
.swipe.dragging .idea-row{transition:none;}
/* The rows sit a layer up for the swipe, so the bottom box goes above them: rows scroll under it, not over it */
.dock{z-index:5;}
/* The tab is hidden, and out of the Tab order, until the row slides; it stays while the row slides back. Its own
   names: .act and .acts belong to the People button and to Talk's message buttons. */
.pa-tray{position:absolute;top:0;bottom:0;right:0;display:flex;visibility:hidden;transition:visibility 0s .26s;}
.swipe.open .pa-tray,.swipe.dragging .pa-tray{visibility:visible;transition:none;}
.pa-tab{width:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:var(--blue);color:#fff;font-size:calc(13rem/17);font-weight:600;}
.pa-tab svg{width:22px;height:22px;}
.pa-tab:active{background:var(--blue-press);}
.swipe.gone{transition:height .22s ease,opacity .22s ease;opacity:0;}
.more{display:none;}
@media (hover:hover) and (pointer:fine){
  /* Faded out, not removed, so focus can come back to it when the sheet closes */
  .more{display:grid;opacity:0;position:absolute;z-index:2;top:50%;right:12px;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;place-items:center;color:var(--ink-2);background:var(--fill);}
  .swipe:hover .more,.swipe:focus-within .more{opacity:1;}
  .more svg{width:20px;height:20px;}
  .more:hover{background:var(--line);color:var(--ink);}
  .swipe:hover .idea-row{background:var(--fill);}
}
@media (min-width:640px){
  .swipe{margin:0 -12px;max-width:704px;border-radius:14px;}
  .swipe .idea-row{width:100%;margin:0;padding:16px 12px;}
  .swipe .idea-row::after{left:12px;right:12px;}
  .more{right:2px;}
}
@media (prefers-reduced-motion:reduce){ .swipe .idea-row,.swipe.gone{transition:none;} }
/* Back burner: the quiet row on Home, the list, the month choices and the note on an idea */
.ideas .set-links{margin-top:4px;}
.bb-link{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;font-size:calc(16rem/17);font-weight:600;color:var(--ink-2);text-align:left;}
.bb-link + .bb-link{border-top:1px solid var(--line);}
.bb-link .ic{width:20px;height:20px;color:var(--muted);flex:none;}
.bb-link .ic svg{display:block;width:20px;height:20px;}
.bb-link .count{margin-left:auto;color:var(--muted);}
.bb-link .chev{margin-left:0;}
/* The BD Toolbox, last on Home: one quiet row like those above, a line over it */
.tb-home{margin-top:22px;border-top:1px solid var(--line);}
.tb-home .bb-link{text-decoration:none;}
.tb-home .bb-link .chev{margin-left:auto;}
.bb-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);}
.bb-row .idea-row{border-bottom:0;flex:1;min-width:0;}
.bb-row .idea-row > div{min-width:0;}
.bb-row .idea-row .t::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:10px;vertical-align:2px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--muted);}
.bb-row .idea-row .n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bb-row .back{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:44px;padding:0 4px 0 8px;flex:none;}
.bb-row.gone{transition:height .22s ease,opacity .22s ease;opacity:0;overflow:hidden;}
@media (min-width:640px){
  .bb-row .idea-row{width:auto;margin:0 0 0 -12px;}
  .bb-row .idea-row::after{display:none;}
  .bb-link{border-radius:12px;}
}
/* The month choices: a real radio group, drawn as the design's dots */
.choice{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:12px 0;border-top:1px solid var(--line);cursor:pointer;}
.choice:first-of-type{margin-top:16px;}
.choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0;}
.choice .dot{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 2px #C9CDD4;flex:none;transition:box-shadow .15s;}
.choice input:checked + .dot{box-shadow:inset 0 0 0 7px var(--blue);}
.choice input:focus-visible + .dot{outline:2px solid var(--blue);outline-offset:3px;}
.choice strong{display:block;font-size:1rem;}
.choice div span{display:block;font-size:calc(15rem/17);color:var(--ink-2);margin-top:1px;}
.bb-note{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:var(--blue-soft);border-radius:12px;padding:8px 8px 8px 14px;margin-top:14px;}
.bb-note.grey{background:var(--fill);}
.bb-note div{flex:1;font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);padding:2px 0;}
.bb-note b{color:var(--ink);font-weight:600;}
.bb-note button{font-size:calc(15rem/17);color:var(--blue);font-weight:600;min-height:44px;padding:0 8px;}
.bb-note:not(:has(button)) div{padding:8px 0;}
/* The same idea, twice: the earlier idea's title is a link in the note, and the note arrives like an answer */
.bb-note .same-t{color:var(--blue);font-weight:600;text-decoration:none;}
.bb-note.arrive{animation:note-in .5s ease;}
@keyframes note-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){ .choice .dot,.bb-row.gone{transition:none;} }
/* Archive: the last-thought box (type or talk, files too), the Archived list, and an archived idea, read-only */
.last-h{display:flex;justify-content:space-between;align-items:baseline;margin:20px 0 0;}
.last-h b{font-size:calc(15rem/17);}
.last{display:flex;gap:8px;align-items:flex-end;background:var(--fill);border:1px solid var(--line);border-radius:16px;padding:10px 10px 10px 16px;margin-top:8px;}
.last textarea{flex:1;min-width:0;border:0;outline:none;background:transparent;resize:none;font:inherit;font-size:1rem;line-height:1.4;min-height:76px;padding:4px 0;}
.last textarea::placeholder{color:var(--muted);}
.last .mic,.last .attach{width:44px;height:44px;}
.last .mic svg,.last .attach svg{width:20px;height:20px;}
#ar-files{margin-top:10px;}
.bb-row.archived .idea-row .t::before{background:var(--line);box-shadow:none;}
.bb-row.archived .idea-row .chev{margin-left:auto;}
/* (of the tiles, only Pause it: Delete, or what else is possible) */
#s-result.ro .add-inline,#s-result.ro #r-change,#s-result.ro .tools .tool:not(#pause-tile),#s-result.ro > .dock,#s-result.ro #thought,
#s-result.ro #r-notes .next-btn,#s-result.ro .tools:not(:has(#pause-tile:not([hidden]))){display:none !important;}
#s-result.ro .angle{pointer-events:none;}
#s-talk.ro .chat-dock,#s-talk.ro #talk-listening,#s-talk.ro [data-talk-add],#s-talk.ro [data-talk-edit]{display:none !important;}
/* From your archive: one extra row after the three answers, only on a strong match */
.answer.past .q{color:var(--blue);}
.answer.past .a{font-size:calc(16rem/17);font-weight:400;color:var(--ink-2);}
.answer.past .a b{color:var(--ink);font-weight:600;}
/* Level with me (docs/ADDON-SHOOT-STRAIGHT.md, design/portal-design.html): its row with the answers, and its sheet. The
   checks made the call; the row keeps it hidden until tapped, so it reads as a link, not an answer (Oct 15) */
.st-why{font-size:calc(14rem/17);color:var(--muted);margin:2px 0 0;line-height:1.4;}
/* Level with me on an idea BD closed: the close first, so the sheet and BD's card agree (step C) */
.st-closed{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:var(--blue-soft);color:var(--ink);font-size:calc(15rem/17);font-weight:600;}
.st-label{font-size:calc(13rem/17);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:18px 0 0;}
.st-call{font-size:calc(1rem + 13px);line-height:1.12;letter-spacing:-0.02em;font-weight:700;margin:4px 0 0;text-wrap:balance;}
.st-lead{font-size:calc(1rem + 1px);line-height:1.42;margin:10px 0 0;color:var(--ink);}
.st-h{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:24px 0 0;}
.st-p{font-size:calc(16rem/17);line-height:1.5;margin:6px 0 0;color:var(--ink-2);}
.four{list-style:none;margin:6px 0 0;padding:0;}
.four li{padding:12px 0;border-top:1px solid var(--line);font-size:calc(16rem/17);line-height:1.45;color:var(--ink-2);}
.four .qq{display:block;font-size:calc(14rem/17);font-weight:600;color:var(--muted);margin-bottom:2px;}
.four b{color:var(--ink);font-weight:600;}
.four .src{display:inline-flex;align-items:center;gap:2px;margin-top:4px;font-size:calc(14rem/17);font-weight:600;color:var(--blue);min-height:44px;}
.four .src[aria-expanded="true"] svg{transform:rotate(90deg);}
.st-cited{list-style:none;margin:0 0 4px;padding:0;}
.st-cited li{padding:6px 0;border-top:0;font-size:calc(15rem/17);line-height:1.4;}
.st-cited a{color:var(--blue);}
.st-cited span{display:block;font-size:calc(13rem/17);color:var(--muted);}
.st-own{display:flex;gap:10px;align-items:flex-start;margin-top:22px;padding-top:14px;border-top:1px solid var(--line);font-size:calc(14rem/17);color:var(--muted);line-height:1.45;}
.st-own svg{width:16px;height:16px;flex:none;margin-top:2px;}
.st-load{padding:8px 0 24px;}
.st-load .small{margin-top:14px;}
.st-load .sk{margin-top:12px;}
.st-load .sk.big{height:30px;width:55%;margin-top:22px;}
@media (prefers-reduced-motion:reduce){ .four .src svg{transition:none;} }
/* "Updated · was Stop here." under the call: the same blue line as on the answers */
.st-upd{font-size:calc(13rem/17);font-weight:600;color:var(--blue);margin:6px 0 0;line-height:1.35;}
.st-upd::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue);margin-right:6px;vertical-align:1px;}

/* Words (docs/ADDON-EDUCATION.md): a term in running text opens what it means. A dotted underline, nothing else changes. */
.term{display:inline;max-width:100%;margin:-4px 0;padding:4px 0;font:inherit;color:inherit;letter-spacing:inherit;text-align:inherit;vertical-align:baseline;
  text-decoration:underline dotted var(--blue);text-decoration-thickness:2px;text-underline-offset:4px;-webkit-tap-highlight-color:transparent;}
.next .term{text-decoration-color:rgba(255,255,255,.75);}
/* "What to do next" (docs/idea-page-tiles-build-spec.md, step B): one line where the blue card was, no card, no fill. While
   the next step waits (docs/ADDON-IDEA-PAGE-FIXES.md, step B): what's being checked and about how long */
.wtd-line{flex:none;margin-top:10px;min-height:44px;}
.wtd-line[hidden]{display:none;}
.wtd{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--blue);font-size:calc(15rem/17);font-weight:600;}
.wtd svg{flex:none;}
.wtd-wait{margin:0;padding-top:10px;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.wtd-sub{display:block;margin-top:2px;font-size:calc(14rem/17);color:var(--muted);}
.wtd-retry{min-height:44px;color:var(--blue);font-size:calc(15rem/17);font-weight:600;}
.wtd-line .sk{margin-top:13px;}
/* Suggest a next step rings once when the line brings the person to it */
.tool.ring{animation:ring 1.6s ease-out;}
@keyframes ring{0%,45%{box-shadow:0 0 0 3px var(--blue);}100%{box-shadow:0 0 0 3px rgba(14,50,147,0);}}
@media (prefers-reduced-motion:reduce){.tool.ring{animation:none;box-shadow:0 0 0 3px var(--blue);}}
/* Its sheet: the count, the definition or the held line, under the step */
.nx-def{margin:12px 0 0;font-size:calc(15rem/17);line-height:1.45;color:var(--muted);}
.nx-go .pill{width:100%;margin-top:22px;}
/* A check that failed: Try again, under the answers card */
.a-retry{display:block;min-height:44px;margin:4px auto 0;padding:0 16px;color:var(--blue);font-size:calc(16rem/17);font-weight:600;}
.a-retry[hidden]{display:none;}
/* A term opened inside a sheet sits over the sheet's own content; Back brings it back as it was */
.term-view{display:none;}
.sheet.termed #sheet-body,.sheet.termed .sheet-foot{display:none;}
.sheet.termed .term-view{display:block;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 24px);}
.term-back{display:inline-flex;align-items:center;gap:2px;min-height:44px;margin:-6px 0 4px -4px;color:var(--blue);font-size:calc(16rem/17);font-weight:500;}
.term-fits{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:18px 0 0;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:calc(15rem/17);font-weight:600;color:var(--blue);text-align:left;}
.term-fits .chev{width:18px;height:18px;flex:none;}
.term-idea{margin-top:16px;padding:14px 16px;background:var(--fill);border-radius:14px;}
.term-idea span{display:block;font-size:calc(13rem/17);color:var(--muted);}
.term-idea p{margin:4px 0 0;font-size:calc(16rem/17);line-height:1.45;}
.term-idea p.term-st{font-size:calc(14rem/17);color:var(--ink-2);}
.term-ok{display:flex;align-items:center;gap:6px;margin:18px 0 0;font-size:calc(13rem/17);line-height:1.35;color:var(--ink-2);}
.term-ok svg{flex:none;}
/* Send to BD (step C): three plain answers under the lead, and what happens next above the button */
.send-qa{margin-top:16px;background:var(--fill);border-radius:14px;}
.send-qa > div{padding:12px 16px;border-top:1px solid var(--line);}
.send-qa > div:first-child{border-top:0;}
.send-qa b{display:block;font-size:calc(15rem/17);font-weight:600;}
.send-qa span{display:block;margin-top:2px;font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);}
.send-next{display:flex;gap:12px;margin-top:20px;padding:14px 16px;background:var(--blue-soft);border-radius:14px;color:#1C2A66;}
.send-next svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--blue);}
.send-next b{display:block;font-size:calc(15rem/17);color:var(--blue);}
.send-next span{display:block;margin-top:2px;font-size:calc(15rem/17);line-height:1.4;}

/* The arrival (docs/beta-signin-build-spec.md D2 to D4; design/beta-signin-mock.html). You're in: the greeting and the
   member card, 342 by 216, the person's own mark large and faint behind it. It slides up and settles; never with
   reduced motion. */
#s-card{padding:calc(env(safe-area-inset-top,0px) + 64px) 24px 0;justify-content:space-between;}
#s-card .card-top{padding:0 4px;}
#s-card h1{font-size:calc(1rem + 23px);line-height:1.05;letter-spacing:-0.5px;}
#s-card .card-top .sub{margin:10px 0 0;font-size:calc(1rem + 2px);line-height:1.45;color:#3A404C;}
#s-card .card-mid{display:flex;flex-direction:column;gap:18px;}
#s-card .card-note{margin:0;padding:0 4px;font-size:calc(16rem/17);line-height:1.45;color:#3A404C;}
#s-card .dock{margin-top:28px;}
.mcard{position:relative;overflow:hidden;align-self:center;width:342px;max-width:100%;height:216px;border-radius:18px;background:var(--blue);color:#fff;padding:20px 22px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 16px 34px rgba(14,50,147,.30);transform:rotate(-2deg);animation:mc-in .3s ease-out both;}
@keyframes mc-in{from{transform:translateY(48px) rotate(-2deg);opacity:0;}to{transform:rotate(-2deg);opacity:1;}}
.mcard .mc-bg{position:absolute;width:330px;height:330px;right:-120px;top:-70px;opacity:.16;}
.mcard .mc-row{position:relative;display:flex;justify-content:space-between;align-items:center;}
.mcard .mc-brand{display:flex;align-items:center;gap:8px;font-size:calc(14rem/17);}
.mcard .mc-brand img{display:block;width:28px;height:28px;border-radius:7px;box-shadow:0 0 0 1.5px rgba(255,255,255,.9);}
.mcard .mc-brand b{font-weight:600;}
.mcard .mc-tag{display:flex;align-items:center;gap:6px;font-size:calc(12rem/17);font-weight:600;letter-spacing:.4px;}
.mcard .mc-tag i{width:7px;height:7px;border-radius:50%;background:#E8A317;}
.mcard .mc-who{position:relative;display:flex;align-items:center;gap:14px;}
.mcard .mc-mark{display:block;flex:none;}
.mcard .mc-name{font-size:calc(1rem + 15px);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mcard .mc-foot{font-size:calc(14rem/17);}
.mcard .mc-bie{font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:1px;}
.mcard .mc-foot span:last-child{color:rgba(255,255,255,.85);}
@media (prefers-reduced-motion:reduce){.mcard{animation:none;}}
@media (min-width:640px){
  #s-card::before,#s-card::after{content:"";flex:1 1 0;}
  #s-card > *{max-width:420px;width:100%;margin-left:auto;margin-right:auto;}
  #s-card{padding:96px 32px 48px;justify-content:flex-start;gap:28px;}
  #s-card > .dock{margin:0 auto;position:static;background:none;padding:0;}
}

/* A new account's first idea (D3): the capture screen with a heading and the big microphone */
.cap-first{display:flex;flex-direction:column;gap:28px;margin-top:20px;}
.cap-first[hidden]{display:none;}
.cap-first h1{font-size:calc(1rem + 17px);line-height:1.08;letter-spacing:-0.4px;}
.cap-first .sub{margin:10px 0 0;font-size:calc(1rem + 1px);line-height:1.45;color:#3A404C;}
.bigmic-wrap{display:flex;flex-direction:column;align-items:center;gap:14px;font-size:1rem;font-weight:600;color:var(--blue);}
.bigmic{width:128px;height:128px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 12px #EEF2FB,0 14px 30px rgba(14,50,147,.30);}
.bigmic:active,.bigmic[aria-pressed="true"]{background:var(--blue-press);}
.first-l{font-size:calc(15rem/17);font-weight:600;color:#3A404C;margin-top:4px;}
#s-cap.first .cap-top .small{visibility:hidden;}
#s-cap.first .dock .mic{display:none;}
#s-cap.first #cap-text{flex:none;min-height:0;height:96px;margin-top:10px;padding:14px 16px;border:1.5px solid #C9CFDA;border-radius:12px;font-size:calc(1rem + 1px);line-height:1.4;}
#s-cap.first #cap-text:focus{border-color:var(--blue);}
#s-cap.first #cap-text{overflow-y:auto;}
#s-cap.first.talking .bigmic-wrap span{color:var(--ink-2);}

/* The Home Screen tip, after the first saved idea in iPhone Safari (D4) */
.hs-steps{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:14px;}
.hs-steps li{display:flex;align-items:center;gap:14px;font-size:1rem;}
.hs-steps .ic{flex:none;width:44px;height:44px;border-radius:12px;background:#EEF2FB;color:var(--blue);display:flex;align-items:center;justify-content:center;}

/* A laptop signs in by QR code (step E; design/beta-signin-magic-mock.html Q1 to Q3). On a laptop the door puts the
   code beside the words; phones keep the email door. */
.door-qr{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px;border-radius:20px;background:#F3F5F9;font-size:calc(15rem/17);color:#5A6170;}
.door-qr[hidden]{display:none;}
.qr-box{width:220px;height:220px;}
.qr-box svg{display:block;border-radius:6px;}
.door-switch{align-self:flex-start;font-size:calc(16rem/17);}
.door-cam{margin:0;font-size:calc(15rem/17);line-height:1.45;color:#5A6170;}
.door-cam[hidden]{display:none;}
/* Codes off for the beta (docs/one-link-build-spec.md, screen 4): on a phone, the welcome email to look for, Open
   Outlook, and a way to ask for a new link; on a laptop, a plain line under the QR code */
.door-mail{display:flex;flex-direction:column;gap:10px;}
.door-mail[hidden],.door-qr-h[hidden]{display:none;}
.door-mail-card{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;background:#F4F5F7;}
.door-mail-card svg{flex:none;margin-top:1px;color:var(--blue);}
.door-mail-card b{display:block;font-size:calc(15rem/17);font-weight:600;}
.door-mail-card span{display:block;font-size:calc(15rem/17);line-height:1.4;color:#4B5059;}
.door-mail .pill{flex:none;margin-top:8px;min-height:56px;border-radius:12px;font-size:calc(1rem + 1px);text-decoration:none;}
.door-mail .text-btn{align-self:center;}
/* The QR code, second on a laptop with the code off: what it's for, over it (docs/ADDON-FIVE-TESTS.md, step B) */
.door-qr-h{margin:0;max-width:236px;text-align:center;font-size:calc(15rem/17);font-weight:600;line-height:1.4;color:#3A404C;}
/* The Home Screen app, signed out (docs/one-link-build-spec.md, screen 7): Paste my link */
.door-paste{display:flex;flex-direction:column;gap:12px;}
.door-paste[hidden],#door-paste-f[hidden],#door-paste-go[hidden],#door-foot-newlink[hidden]{display:none;}
.door-paste > p{margin:0;font-size:calc(16rem/17);line-height:1.45;color:#4B5059;}
.door-paste .pill{flex:none;min-height:56px;border-radius:12px;font-size:calc(1rem + 1px);}
.door-paste .code-msg{margin:0;}
.door-paste > p.door-paste-note{margin-top:6px;font-size:calc(15rem/17);color:#5A6170;}
#s-door.paste .door-foot{display:flex;justify-content:center;}
#s-door.paste .door-foot .text-btn{font-size:1rem;margin-top:0;}
#s-door:not(.qr) .door-switch{order:5;}   /* with the email box showing, the way back to the QR code sits under it */
@media (min-width:640px){
  #s-door.qr > *{max-width:860px;}
  #s-door.qr .door-mid{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:56px;row-gap:16px;align-items:center;}
  #s-door.qr .door-calm{grid-column:1;grid-row:1;}
  #s-door.qr .door-switch{grid-column:1;grid-row:2;align-self:start;margin-top:-8px;}
  #s-door.qr .door-mail{grid-column:1;grid-row:2;align-self:start;}
  #s-door.qr .door-mail .pill{align-self:flex-start;padding:0 32px;}
  #s-door.qr .door-mail .text-btn{align-self:flex-start;}
  #s-door.qr .door-qr{grid-column:2;grid-row:1 / span 2;}
  #s-door.qr #door-asked{grid-column:1;}
  #s-door.qr h1{font-size:calc(1rem + 27px);}
}
#s-pair{padding:calc(env(safe-area-inset-top,0px) + 56px) 28px calc(env(safe-area-inset-bottom,0px) + 40px);justify-content:space-between;gap:32px;}
.pair-body{display:flex;flex-direction:column;gap:16px;}
.pair-body h1{font-size:calc(1rem + 21px);line-height:1.05;letter-spacing:-0.5px;}
.pair-body .sub{margin:0;font-size:calc(1rem + 1px);line-height:1.45;color:#3A404C;}
.pair-body .big-ic{margin:0 0 4px;}
.pair-body > .pill{flex:none;min-height:56px;border-radius:12px;font-size:calc(1rem + 1px);}
.pair-body > .pill:first-of-type{margin-top:12px;}
.pair-body .pair-note{margin:4px 0 0;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.pair-dev{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:14px;background:#F3F5F9;color:var(--ink-2);}
.pair-dev b{display:block;font-size:1rem;color:var(--ink);}
.pair-dev span{display:block;font-size:calc(15rem/17);color:#5A6170;}
#s-pair.done{justify-content:center;}
#s-pair.done > .door-head{display:none;}
#s-pair.done .pair-body{align-items:center;text-align:center;}
@media (min-width:640px){
  #s-pair::before,#s-pair::after{content:"";flex:1 1 0;}
  #s-pair > *{max-width:420px;width:100%;margin-left:auto;margin-right:auto;}
  #s-pair{padding:96px 32px 48px;justify-content:flex-start;}
  #s-pair.done > *{max-width:560px;}
}

/* Add a device (step F; design/beta-signin-magic-mock.html P1): the QR code for a new phone, above the devices */
.add-qr-card{align-self:center;display:flex;flex-direction:column;align-items:center;gap:12px;margin:18px auto 0;padding:22px;width:max-content;border-radius:20px;background:#F3F5F9;font-size:calc(15rem/17);color:#5A6170;}
.add-qr-card .qr-box{display:grid;place-items:center;}
.qr-wait{margin:0;font-size:calc(15rem/17);color:#5A6170;text-align:center;padding:0 12px;}
/* Your devices (docs/one-link-build-spec.md, screen 5): how many devices the welcome link has on, of 5 */
.how.link-how{margin-top:10px;color:#4B5059;}
.meter{display:flex;align-items:center;gap:12px;margin-top:22px;}
.meter-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:150px;}
.meter-bar i{height:8px;border-radius:4px;background:#E6E8EC;}
.meter-bar i.on{background:var(--blue);}
.meter span{font-size:calc(15rem/17);font-weight:600;color:#4B5059;}
.add-showqr{margin-top:14px;}
.dev.new{animation:devflash 1.6s ease;}
@keyframes devflash{0%{background:var(--blue-soft)}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){.dev.new{animation:none;}}
.hs-steps .ic{font-weight:700;font-size:1rem;}
/* Where this goes (step D): the usual path, in its sheet (reached from the words; its row left the page Oct 17) */
.wtg{list-style:none;margin:20px 0 0;padding:0;}
.wtg li{display:flex;gap:14px;position:relative;}
.wtg li:not(:last-child)::before{content:"";position:absolute;left:15px;top:32px;bottom:0;width:2px;background:#D5D9E4;}
.wtg-n{flex:none;box-sizing:border-box;width:32px;height:32px;border-radius:50%;border:2px solid #B9C2DC;background:var(--bg);color:#4A5578;display:grid;place-items:center;font-size:calc(15rem/17);font-weight:700;}
.wtg li.wtg-soon .wtg-n{border-color:var(--blue);color:var(--blue);}
.wtg li.wtg-now .wtg-n{border-color:var(--blue);background:var(--blue);color:#fff;}
.wtg li.wtg-done .wtg-n{border-color:var(--blue-soft);background:var(--blue-soft);color:var(--blue);}
.wtg li > div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:4px 0 22px;}
.wtg li:last-child > div{padding-bottom:4px;}
.wtg b{font-size:1rem;}
.wtg-st{font-size:calc(13rem/17);font-weight:600;color:var(--ink-2);}
.wtg li.wtg-now .wtg-st{font-weight:700;color:var(--blue);}
.wtg-sub{font-size:calc(14rem/17);color:var(--ink-2);}
.wtg p{margin:0;font-size:calc(15rem/17);line-height:1.45;color:var(--ink-2);}
.wtg-close{margin-top:20px;padding:16px;background:var(--fill);border-radius:14px;}
.wtg-close b{display:block;font-size:calc(15rem/17);}
.wtg-close span{display:block;margin-top:6px;font-size:calc(15rem/17);line-height:1.5;color:var(--ink-2);}
/* Send to BD's quiet link under its button */
.sheet-foot:has(.foot-link){flex-direction:column;}
.foot-link{align-self:center;min-height:44px;padding:0 8px;color:var(--blue);font-size:calc(15rem/17);font-weight:500;}
@media (min-width:640px){
  .sheet-foot:has(.foot-link){flex-direction:row-reverse;align-items:center;}
  .foot-link{margin-right:auto;padding:0;}
}
/* Why the button waits: one line over it, gone once answered (docs/ADDON-IDEA-PAGE-FIXES.md, step A) */
.sheet-foot:has(.foot-why){flex-wrap:wrap;}
.foot-why{order:-1;width:100%;margin:0;font-size:calc(14rem/17);line-height:1.4;color:var(--ink-2);text-align:center;text-wrap:balance;}
@media (min-width:640px){ .foot-why{text-align:right;} }
/* The sharing question sits right over Send on a phone, so its choices and the button show together; the rest of the
   sheet scrolls above it, and it settles into its place once scrolled to. A laptop's panel shows both already
   (docs/ADDON-FIVE-TESTS.md, step A). */
@media (max-width:639px){
  .ask-pin{position:sticky;bottom:0;z-index:1;padding:16px 0 8px;background:linear-gradient(to bottom,transparent,var(--bg) 14px);}
  .ask-pin>.ask{margin-top:0;}
  /* Safari pins it above the body's own bottom padding, which then shows what scrolls behind: no padding there */
  .sheet-body:has(.ask-pin){padding-bottom:0;}
}
/* Who wrote it (step C): the answers card's last line, and a line under each tool's subtitle */
.ai-note{margin:0;padding:14px 0 2px;font-size:calc(14rem/17);line-height:1.45;color:var(--muted);}
.ai-line{margin:8px 0 0;font-size:calc(14rem/17);line-height:1.45;color:var(--muted);}
#co-read>.ai-line{margin-top:0;}
/* Placeholders the browser greyed at 4.2:1 (step C) */
#fb-text::placeholder,#tn-name::placeholder,#tn-search::placeholder{color:var(--muted);}
/* "?" on a laptop: the keyboard shortcuts (step B) */
.keys{margin:16px 0 0;}
.keys>div{display:grid;grid-template-columns:132px 1fr;gap:12px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line);}
.keys dt{white-space:nowrap;}
.keys dd{margin:0;font-size:calc(16rem/17);line-height:1.45;color:var(--ink-2);}
.keys kbd{font:inherit;font-size:calc(14rem/17);font-weight:600;color:var(--ink-2);background:var(--fill);border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;padding:1px 7px;}
/* While a tool writes: what it's doing and about how long, over its bars (step A) */
.wait-line{margin:16px 0 0;font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);text-wrap:pretty;}
#co-read>.wait-line{margin-top:0;}
.reply .wait-line{margin:3px 0 0;}
/* First idea, and one tip (step E): under the stamp */
.edu-welcome{position:relative;margin-top:16px;padding:16px 48px 16px 16px;background:#E9EEFA;border-radius:14px;color:#1C2A66;}
.edu-welcome b{display:block;font-size:calc(16rem/17);color:var(--blue);}
.edu-welcome p{margin:6px 0 0;font-size:calc(15rem/17);line-height:1.5;}
.edu-x{position:absolute;top:4px;right:4px;width:44px;height:44px;display:grid;place-items:center;color:#3B4A86;border-radius:50%;}
.edu-tip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:8px 8px 8px 14px;background:var(--blue-soft);border-radius:12px;font-size:calc(14rem/17);line-height:1.4;color:var(--blue);}
.edu-tip button{flex:none;min-height:44px;padding:0 10px;font-weight:600;color:var(--blue);}

/* ---- The idea page, Oct 17 (docs/ADDON-ON-FILE.md, step B; design/portal-design.html #result). The call ("Your next
   step") under the title; Think (Thinking, Talk) and Analyze (the answers) each one white card on the canvas; the tools
   white tiles. Each zone has a heading only screen readers hear. Only this screen changes. ---- */
#s-result{background:var(--canvas);padding-left:20px;padding-right:20px;}
#s-result > .dock{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px;background:linear-gradient(to top,var(--canvas) 72%,rgba(238,240,243,0));}
#s-result .composer{background:var(--bg);}
#s-result .card{background:var(--bg);border-radius:16px;padding:0 16px;}
#s-result .next{margin-top:14px;}
#s-result .next h2.q{margin:0;}
#s-result .zone-think{margin-top:16px;}
#s-result .zone-think .words{margin-top:0;border-top:0;border-bottom:0;}
#s-result .zone-think .words[open] summary{border-bottom:1px solid var(--line);margin-bottom:12px;}
#s-result .zone-think .talk-row{border-bottom:0;border-top:1px solid var(--line);}
#s-result .answers.card{margin-top:16px;}
/* (the last answer showing has no line under it) */
#s-result .answers.card > .answer:not(:has(~ .answer:not([hidden]))){border-bottom:0;}
#s-result .tools{margin-top:28px;}
#s-result .tool{background:var(--bg);}
#s-result .tool:active{background:#F8F9FA;}
/* The first idea: three lines, and "Show all" when there's more */
.show-all{display:block;font-size:calc(14rem/17);font-weight:600;color:var(--blue);min-height:44px;margin:-4px 0 -6px;}
@media (min-width:640px){
  #s-result{padding-left:32px;padding-right:32px;}
  #s-result .answers.card > .answer:not(:has(~ .answer:not([hidden])))::after{display:none;}
  #s-result .tool:hover{background:#FAFBFC;}
  #s-result .tool.active{background:var(--blue-soft);}
}

/* ---- On file (docs/ADDON-ON-FILE.md, step C; design/keep-mock.html, design/portal-design.html #onfile). The row under the
   title (under 1100 px), the phone's screen, the content in a sheet (640 to 1099 px) and the laptop's panel at rest. ---- */
.onfile{display:flex;align-items:center;gap:12px;width:100%;background:var(--bg);border-radius:16px;padding:10px 12px;margin-top:12px;min-height:72px;flex-shrink:0;}   /* never squeezed under its text (step H) */
/* On a phone these two used to be squeezed a little (to 40px and 72px) wherever the page scrolled. They aren't any more,
   so larger text never runs out of them; these keep today's look at the standard size (step H). */
@media (max-width:639px){
  .who .act{margin-top:-2px;margin-bottom:-2px;}
  .onfile{padding-top:7.8px;padding-bottom:7.8px;}
}
.onfile .pics{display:flex;gap:6px;flex:none;}
.onfile .pic{position:relative;width:54px;height:54px;border-radius:10px;background:#fff;border:1px solid var(--line);overflow:hidden;display:grid;place-items:center;color:var(--ink-2);flex:none;}
.onfile .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.onfile .pic svg{width:22px;height:22px;}
.onfile .pic .ext{font-size:10px;font-weight:700;letter-spacing:.04em;}
.of-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:52px;text-align:left;}
.of-open .seal{width:44px;height:44px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:none;}
.of-open .seal svg{width:22px;height:22px;}
.of-open .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;}
.of-open .t b{font-size:calc(16rem/17);}
.of-open .t span{font-size:calc(14rem/17);color:var(--ink-2);line-height:1.3;}
.onfile:active{background:#F8F9FA;}
/* A thought's files, one line each under its words (they left the fold Oct 17) */
.fileline{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:44px;text-align:left;line-height:1.3;}
.fileline .fl-pic{position:relative;width:36px;height:36px;border-radius:8px;background:#fff;border:1px solid var(--line);overflow:hidden;display:grid;place-items:center;flex:none;color:var(--ink-2);}
.fileline .fl-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.fileline .fl-pic svg{width:18px;height:18px;}
.fileline .fl-pic .ext{font-size:9px;font-weight:700;letter-spacing:.04em;}
.fileline .sk{width:160px;height:14px;}
/* The screen (a phone): over the idea page, which keeps its place underneath */
#s-onfile{z-index:6;background:var(--canvas);padding-left:20px;padding-right:20px;}
.page-kicker{font-size:calc(15rem/17);font-weight:600;color:var(--muted);margin:6px 0 2px;}
.of-title{margin-top:2px;}
.first-rec{display:flex;align-items:center;gap:12px;width:100%;background:var(--bg);border-radius:16px;padding:14px;margin-top:16px;text-align:left;}
.first-rec .ic{width:38px;height:38px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex:none;}
.first-rec .ic svg{width:20px;height:20px;}
.first-rec div{flex:1;min-width:0;}
.first-rec b{display:block;font-size:calc(16rem/17);}
.first-rec span{display:block;font-size:calc(15rem/17);color:var(--ink-2);margin-top:1px;}
.k-h{font-size:calc(13rem/17);font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:26px 0 10px;}
.k-empty{font-size:calc(15rem/17);color:var(--ink-2);line-height:1.45;background:var(--bg);border-radius:16px;padding:14px 16px;margin:0;}
.k-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.k-tile{background:var(--bg);border-radius:16px;padding:8px 8px 12px;display:flex;flex-direction:column;gap:8px;text-align:left;min-width:0;}
.k-tile .img{position:relative;aspect-ratio:4 / 3;border-radius:10px;background:#fff;border:1px solid var(--line);overflow:hidden;display:grid;place-items:center;color:var(--ink-2);}
.k-tile .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}   /* (held to the box: a tall page shows whole) */
.k-tile .img svg{width:28px;height:28px;}
.k-tile .img .ext{font-size:12px;font-weight:700;letter-spacing:.04em;}
.k-tile b{font-size:calc(15rem/17);font-weight:600;line-height:1.3;padding:0 4px;overflow-wrap:anywhere;}
.k-tile > span:last-child{font-size:calc(13rem/17);color:var(--muted);padding:0 4px;margin-top:-4px;}
.k-tile .sk{margin:0 4px;}
.k-list{background:var(--bg);border-radius:16px;padding:0 14px;}
.k-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px 0;border-bottom:1px solid var(--line);text-align:left;}
.k-row:last-child{border-bottom:0;}
.k-row div{flex:1;min-width:0;}
.k-row b{display:block;font-size:calc(16rem/17);}
.k-row span{display:block;font-size:calc(14rem/17);color:var(--ink-2);margin-top:1px;line-height:1.35;}
.of-in-sheet .k-list{background:var(--canvas);}
/* Your files (step F): each idea's title, then its files as On file shows them */
#s-files{background:var(--canvas);padding-left:20px;padding-right:20px;}
.yf-idea{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;margin:18px 0 6px;text-align:left;}
.yf-idea div{flex:1;min-width:0;}
.yf-idea b{display:block;font-size:1rem;line-height:1.3;}
.yf-idea span{display:block;font-size:calc(14rem/17);color:var(--muted);margin-top:1px;}
@media (min-width:640px){#s-files{padding-left:32px;padding-right:32px;}.yf-idea:hover b{text-decoration:underline;text-underline-offset:3px;}}
.trail{list-style:none;margin:0;padding:0 14px;background:var(--bg);border-radius:16px;}
.trail li{display:grid;grid-template-columns:22px 1fr;gap:2px 12px;padding:14px 0;border-bottom:1px solid var(--line);}
.trail li:last-child{border-bottom:0;}
.trail li::before{content:"";grid-row:1 / span 3;width:12px;height:12px;border-radius:50%;margin:5px 0 0 4px;background:var(--blue);}
.trail li.now::before{background:#fff;box-shadow:inset 0 0 0 3px var(--blue);}
.trail b{font-size:calc(16rem/17);}
.trail span{font-size:calc(14rem/17);color:var(--ink-2);}
.trail button{grid-column:2;justify-self:start;font-size:calc(15rem/17);font-weight:600;color:var(--blue);min-height:36px;}
/* A note from BD, with its words (docs/ADDON-IDEA-PAGE-FIXES.md, step C) */
.trail li p{grid-column:2;margin:4px 0 0;font-size:calc(15rem/17);line-height:1.45;color:var(--ink);}
/* Reply to [first name]: the question being answered, quoted (Desk triage, step B) */
.reply-q{margin:12px 0 14px;padding:10px 14px;border-left:3px solid var(--blue-soft);color:var(--ink-2);font-size:calc(15rem/17);line-height:1.45;}
.k-foot{font-size:calc(14rem/17);color:var(--muted);line-height:1.45;margin:18px 0 0;}
.of-p{font-size:calc(16rem/17);line-height:1.5;color:var(--ink-2);margin:12px 0 0;}
.run-note{margin-top:6px;line-height:1.4;}   /* an earlier run: when it was written, and what came after */
.of-in-sheet .k-empty,.of-in-sheet .first-rec,.of-in-sheet .k-tile,.of-in-sheet .trail{background:var(--canvas);}
/* The panel at rest (a laptop, from 1100 px): what the idea holds, beside the page; a sheet covers it and closes back to it */
.of-panel{display:none;}
@media (min-width:1100px){
  #r-onfile,.of-h{display:none!important;}
  .device.keep #s-result{right:480px;transition:none;}   /* (no slide each time an idea opens) */
  .device.keep .topbar{right:0;}
  .device.keep .sheet{top:64px;}
  .device.keep .of-panel:not([hidden]){display:flex;flex-direction:column;position:absolute;top:64px;right:0;bottom:0;width:480px;background:var(--canvas);border-left:1px solid var(--line);z-index:12;}
  .of-panel-body{flex:1;overflow-y:auto;padding:20px 28px 28px;}
  .of-panel .of-title{font-size:calc(1rem + 11px);letter-spacing:-0.02em;}
  .of-panel .k-tile:hover,.of-panel .first-rec:hover,.of-panel .trail button:hover{background:#FAFBFC;}
  .of-panel .k-row:hover b{text-decoration:underline;text-underline-offset:3px;}
  .of-panel .trail button:hover{background:none;text-decoration:underline;text-underline-offset:3px;}
}
@media (min-width:640px){
  .fileline:hover{text-decoration:underline;text-underline-offset:3px;}
  .onfile .pic:hover{border-color:#C9CED6;}
  .of-open:hover .chev{color:var(--ink-2);}
}
/* The viewer's "•••": Remove, for whoever added the file or started the idea; asked once, in the page. Never in Show. */
.v-sp{display:flex;justify-content:flex-end;position:relative;}
.v-more{min-height:44px;min-width:44px;border-radius:12px;color:#fff;display:grid;place-items:center;}
.v-more[hidden]{display:none!important;}
.v-menu{position:absolute;top:48px;right:0;background:#2A2A2D;border-radius:12px;padding:4px;min-width:160px;box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:3;}
.v-menu button{width:100%;min-height:44px;border-radius:9px;padding:0 14px;text-align:left;font-size:calc(16rem/17);font-weight:600;color:#FF8A80;}
.v-confirm{padding:12px 20px calc(env(safe-area-inset-bottom,0px) + 22px);flex:none;}
.v-confirm b{display:block;font-size:1rem;}
.v-confirm-bar{display:flex;gap:10px;margin-top:12px;}
.v-confirm-bar .v-btn{flex:1;}
.v-btn.danger{background:#B42318;}
.viewer.confirming .v-cap,.viewer.confirming .v-bar{display:none;}
@media (hover:hover){.v-more:hover,.v-menu button:hover{background:rgba(255,255,255,.14);}.v-btn.danger:hover{background:#C9302C;}}
/* Funding's Add a funder (pre-launch review, Oct 26): the field, with Add beside it */
.fund-add{display:flex;gap:14px;align-items:center;}
.fund-add .line-input{flex:1;}
.fund-add .linklike{margin-top:12px;flex:0 0 auto;}
/* The first screen, pre-launch review (Oct 26): the headline cut to three lines until the name arrives; on Home, the
   beta box is where feedback goes while it shows, so the grey link under the list steps aside */
#r-title.raw{max-height:3lh;overflow:hidden;flex-shrink:0;}   /* the screen is a flex column: without flex-shrink it would fold to nothing */
#s-home.has-bbx .fb-home{display:none;}

/* Where could this go? (docs/destinations-build-spec.md, mock column A, with C as See all roads). Words, never colour
   alone, say which is the suggestion and which the choice. */
.answer .a-sub{grid-column:1;font-size:calc(15rem/17);color:var(--muted);line-height:1.35;}
.dg-card{border:1.5px solid var(--blue);border-radius:16px;padding:14px 16px 10px;margin:16px 0 0;background:var(--blue-soft);}
.dg-card h3{margin:0 0 8px;font-size:calc(1rem + 1px);line-height:1.3;}
.dg-card p{margin:0 0 8px;font-size:calc(15rem/17);line-height:1.4;color:var(--ink-2);}
.dg-card p b{color:var(--ink);font-weight:600;}
.dg-card p.dg-sug{font-size:calc(13rem/17);color:var(--muted);margin:0 0 4px;}
.dg-card.dg-also{background:var(--bg);border-color:var(--line);}
.dg-road{list-style:none;margin:10px 0 4px;padding:0;counter-reset:dg;}
.dg-road li{counter-increment:dg;display:flex;gap:10px;align-items:flex-start;font-size:calc(15rem/17);line-height:1.35;padding:4px 0;}
.dg-road li::before{content:counter(dg);flex:none;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--blue);color:var(--blue);font-size:calc(12rem/17);font-weight:700;display:grid;place-items:center;}
.dg-list{margin:14px 0 0;border-top:1px solid var(--line);}
.dg-opt{display:flex;width:100%;text-align:left;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-height:44px;}
.dg-dot{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--muted);flex:none;margin-top:2px;}
.dg-opt b{font-weight:500;font-size:1rem;}
.dg-opt small{font-size:calc(13rem/17);color:var(--muted);}
.dg-def{display:block;font-size:calc(13rem/17);color:var(--muted);margin-top:2px;line-height:1.35;}
.dg-go{width:100%;margin-top:18px;}
.dg-links{display:flex;flex-direction:column;align-items:center;margin:10px 0 0;}
.dg-links .linklike{font-size:calc(14rem/17);min-height:44px;margin:0;}
.dg-q{background:var(--fill);border-radius:14px;padding:14px;margin:16px 0 0;}
.dg-q p{margin:0 0 4px;font-size:1rem;line-height:1.35;font-weight:600;}
.dg-qb{display:block;width:100%;text-align:left;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-top:8px;min-height:44px;font-size:calc(15rem/17);}
.dg-qb[disabled]{color:var(--muted);}
.dg-fork{margin:16px 0 0;}
.dg-root{display:flex;gap:10px;align-items:flex-start;}
.dg-root::before{content:"";width:16px;height:16px;border-radius:50%;background:var(--ink);flex:none;margin:3px 0 0 2px;}
.dg-root b{display:block;font-size:1rem;}
.dg-root span{font-size:calc(13rem/17);color:var(--muted);}
.dg-br{list-style:none;margin:4px 0 0;padding:0;}
.dg-br li{position:relative;padding-left:48px;}
.dg-br li::before{content:"";position:absolute;left:9px;top:-4px;bottom:0;border-left:2px solid var(--line);}
.dg-br li:last-child::before{bottom:calc(100% - 26px);}
.dg-br li::after{content:"";position:absolute;left:9px;top:25px;width:22px;border-top:2px solid var(--line);}
.dg-br li.hi::after{border-top:3px solid var(--blue);}
.dg-br button{display:block;width:100%;text-align:left;padding:8px 0;min-height:44px;}
.dg-br b{display:block;font-weight:500;font-size:1rem;}
.dg-br span{display:block;font-size:calc(13rem/17);color:var(--muted);margin-top:2px;line-height:1.35;}
.dg-br li.hi b{color:var(--blue);font-weight:600;}
.dg-br li.lo{opacity:.62;}

