/* The app page's styles (templates/blu/app.html links them): served by views.app_code at an address that carries a
   mark of its contents, so Cloudflare keeps it near her for a year and a new one is fetched the moment it changes. */
:root {
  --bg: #FFFFFF; --group: #F2F2F7; --card: #FFFFFF; --ink: #1D1D1F; --soft: #48484A; --muted: #8A8A8E; --sep: rgba(60, 60, 67, .14);
  --fill: rgba(118, 118, 128, .12); --fill2: rgba(118, 118, 128, .2); --bubble: #E9E9EB;
  --blue: #1F5BFF; --blue-press: #1748D8; --tint: #E6EDFF; --on-blue: #FFFFFF;
  --ok: #248A3D; --ok-bg: #E7F6EB; --stop: #D70015; --stop-bg: #FDEBEC; --warn: #B25000; --warn-bg: #FFF2E0;
  --bar: rgba(255, 255, 255, .8); --ring: 0 0 0 .5px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .04);
  --nav: 3.3rem;
  --field: #F5F6F8; --gate: #F1F3F7; --lift: 0 0 0 1px rgba(12, 16, 28, .05), 0 1px 2px rgba(12, 16, 28, .04), 0 30px 60px -30px rgba(12, 16, 28, .28);
  /* Glass, for the navigation layer only: tinted enough to read in sunlight, solid where a phone cannot afford the blur */
  --glass: rgba(250, 250, 252, .72); --glass-solid: #FAFAFC; --glass-thick: rgba(246, 246, 249, .86);
  --glass-rim: rgba(255, 255, 255, .8); --glass-line: rgba(12, 16, 28, .07); --glass-shadow: 0 10px 30px -12px rgba(12, 16, 28, .3), 0 1px 3px rgba(12, 16, 28, .07);
}
/* Dark: chosen in Settings on this phone (data-theme on the page), or the phone's own setting when she has not chosen. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #0D0E11; --group: #090A0C; --card: #15161A; --ink: #F2F3F5; --soft: #C5C7CE; --muted: #8B8E98; --sep: rgba(255, 255, 255, .09);
          --fill: rgba(255, 255, 255, .07); --fill2: rgba(255, 255, 255, .13); --bubble: #1E2026; --blue: #5B97F7; --blue-press: #4A86E8; --tint: rgba(91, 151, 247, .16);
          --ok: #30D158; --ok-bg: rgba(48, 209, 88, .16); --stop: #FF5A4F; --stop-bg: rgba(255, 90, 79, .16); --warn: #FF9F0A; --warn-bg: rgba(255, 159, 10, .16);
          --bar: rgba(13, 14, 17, .82); --ring: 0 0 0 .5px rgba(255, 255, 255, .09);
          --field: #1A1B21; --gate: #08090B; --lift: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9);
          --glass: rgba(28, 30, 36, .68); --glass-solid: #18191E; --glass-thick: rgba(24, 25, 30, .86);
          --glass-rim: rgba(255, 255, 255, .14); --glass-line: rgba(255, 255, 255, .08); --glass-shadow: 0 10px 30px -12px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0D0E11; --group: #090A0C; --card: #15161A; --ink: #F2F3F5; --soft: #C5C7CE; --muted: #8B8E98; --sep: rgba(255, 255, 255, .09);
          --fill: rgba(255, 255, 255, .07); --fill2: rgba(255, 255, 255, .13); --bubble: #1E2026; --blue: #5B97F7; --blue-press: #4A86E8; --tint: rgba(91, 151, 247, .16);
          --ok: #30D158; --ok-bg: rgba(48, 209, 88, .16); --stop: #FF5A4F; --stop-bg: rgba(255, 90, 79, .16); --warn: #FF9F0A; --warn-bg: rgba(255, 159, 10, .16);
          --bar: rgba(13, 14, 17, .82); --ring: 0 0 0 .5px rgba(255, 255, 255, .09);
          --field: #1A1B21; --gate: #08090B; --lift: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9);
          --glass: rgba(28, 30, 36, .68); --glass-solid: #18191E; --glass-thick: rgba(24, 25, 30, .86);
          --glass-rim: rgba(255, 255, 255, .14); --glass-line: rgba(255, 255, 255, .08); --glass-shadow: 0 10px 30px -12px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .4); }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--t-body)/1.45 var(--font); font-synthesis: none; font-optical-sizing: auto; letter-spacing: var(--k-body); text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
@media (max-width: 59.99rem) { input, textarea, select { font-size: max(1rem, 16px) !important; } }   /* smaller, and iOS zooms the page when a field is tapped */
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.icon { width: 1.3rem; height: 1.3rem; display: inline-block; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }
.mark { flex: none; display: block; }
.mark .seal { display: block; width: 100%; height: 100%; overflow: visible; }
/* Blu's seal, from the logo pack. Its dot says what Blu is doing (data-mood on the seal): thinking (the dot fades to grey
   and shrinks, and back), working (it travels round the seal), asking (it hops out twice, then rests: something waits for
   her), done (it swells with a ring, dips and settles). No mood is Blu at rest. The notch moves with the dot. */
.seal .dot { fill: var(--ink); }
.seal .dot, .seal .notch, .seal .ring { transform-box: view-box; transform-origin: 86.5px 13.5px; }
.seal .ring { opacity: 0; stroke: var(--muted); }
.seal[data-mood="thinking"] .dot { animation: think-dot 1.4s ease-in-out infinite; }
.seal[data-mood="thinking"] .notch { animation: think-notch 1.4s ease-in-out infinite; }
@keyframes think-dot { 50% { transform: scale(.56); fill: #8E939C; } }
@keyframes think-notch { 50% { transform: scale(.72); } }
.seal[data-mood="working"] .dot, .seal[data-mood="working"] .notch { transform-origin: 50px 50px; animation: orbit 1.52s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.seal[data-mood="asking"] .dot { animation: ask 1.92s infinite; }
@keyframes ask {
  0% { transform: none; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  10% { transform: translate(3.6px, -4.4px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  19% { transform: none; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  28% { transform: translate(1.1px, -1.3px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  37%, 100% { transform: none; }
}
.seal[data-mood="done"] .dot, .seal[data-mood="done"] .notch { animation: done 1.68s forwards; }
.seal[data-mood="done"] .ring { animation: done-ring 1.68s ease-out forwards; }
@keyframes done {
  0% { transform: scale(1); animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
  24% { transform: scale(1.57); animation-timing-function: cubic-bezier(.5, 0, .5, 1); }
  43% { transform: scale(.91); animation-timing-function: ease-out; }
  57%, 100% { transform: scale(1); }
}
@keyframes done-ring { 0% { opacity: 0; transform: scale(1); } 9% { opacity: .9; transform: scale(1.2); } 24% { opacity: .75; transform: scale(1.57); } 50%, 100% { opacity: 0; transform: scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .seal .dot, .seal .notch, .seal .ring { animation: none !important; } }

/* ---------- Glass ----------
   On the navigation layer only (the bars, menus, sheets, floating buttons), never on messages, cards or lists. How much a
   phone draws is its level (data-fx on the page, chosen before the first paint and settled by fxStart): solid, the rules
   without a level and where the blur would make a phone stutter; frost, a blur behind a tint; glass, the frost bending what passes under its
   rim (Chromium, through an SVG lens on backdrop-filter: fxLens). The blur's strength never animates: only opacity and
   transform do. Blur values are written out, never var(): Safari drops a -webkit-backdrop-filter with var() in it. */
.tapback, .holdacts, #down, #toast, #panelfoot > .seg { background: var(--glass-solid); box-shadow: var(--glass-shadow), inset 0 0 0 .5px var(--glass-line), inset 0 1px 0 var(--glass-rim); }
:root:is([data-fx="frost"], [data-fx="glass"]) :is(.tapback, .holdacts, #down, #toast, #panelfoot > .seg) {
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
:root:is([data-fx="frost"], [data-fx="glass"]) .sheet { background: var(--glass-thick); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
:root[data-fx="solid"] .hold { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 16, 28, .32); }   /* a whole-screen blur: the costliest of all */
@media (prefers-contrast: more) {
  :root:is([data-fx]) :is(.tapback, .holdacts, #down, #toast, #panelfoot > .seg, .sheet) { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1.5px var(--ink); }
}

/* ---------- The shell: one column on a phone, three on a wide screen ---------- */
#shell { height: 100dvh; display: flex; flex-direction: column; position: relative; }
.pane { flex: 1; min-height: 0; display: none; flex-direction: column; }
#chat { background: var(--bg); }
#panel { background: var(--group); }
#shell[data-view="chat"] #chat { display: flex; }
#shell:not([data-view="chat"]) #panel { display: flex; }

/* Navigation: a tab bar on a phone */
#nav { order: 3; display: flex; justify-content: space-around; align-items: flex-start; height: calc(var(--nav) + env(safe-area-inset-bottom)); padding: .3rem .25rem env(safe-area-inset-bottom);
       background: var(--bar); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 -.5px 0 var(--sep); z-index: 5;
       touch-action: none; }   /* a swipe that starts on the tab bar moves nothing: taps still land */
#nav .brand, #nav .foot { display: none; }
.navbtn { position: relative; flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .2rem 0; color: var(--muted); font-size: var(--t-tiny); letter-spacing: var(--k-tiny); font-weight: 500; }
.navbtn .icon { width: 1.6rem; height: 1.6rem; }
.navbtn.on { color: var(--blue); }
.navbtn:active { opacity: .6; }
.badge { position: absolute; top: 0; left: calc(50% + .4rem); min-width: 1.05rem; height: 1.05rem; padding: 0 .28rem; border-radius: 999px; background: var(--stop); color: #fff;
         font-size: var(--t-tiny); letter-spacing: var(--k-tiny); font-weight: var(--strong); display: grid; place-items: center; }

/* The top of the chat: Blu, and what Blu is doing right now */
.top { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 3.5rem; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: var(--bar);
       backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 .5px 0 var(--sep); z-index: 4; }
.avatar { position: relative; width: 2.25rem; height: 2.25rem; flex: none; }
.avatar .mark { position: absolute; inset: 0; }
@keyframes sweep { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@media (prefers-reduced-motion: reduce) { .top.busy .who > span em, .top.connecting .who > span em, #recording .rdot { animation: none; } .switch, .switch::after, .vbars i { transition: none; } }
/* Blu cannot be reached (netDown): the line under her name says so, muted, and breathes while it connects */
.top.netless .who > span em { color: var(--muted); }
.top.connecting .who > span em { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.who { min-width: 0; flex: 1; }
button.who { border: 0; background: none; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: default; }
button.who.opens { cursor: pointer; }
.who b { display: block; font-size: var(--t-head); letter-spacing: var(--k-head); font-weight: var(--strong); line-height: 1.2; }
/* Blu's name as its wordmark: "blu" in the seal's script, a little taller than the type beside it, which is smaller to the eye */
.wordmark { display: block; width: max-content; height: 1.45em; }
.wordmark svg { display: block; height: 100%; width: auto; overflow: visible; }
.who > span { display: flex; align-items: center; gap: .2rem; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); white-space: nowrap; overflow: hidden; min-width: 0; }
.who > span em { font-style: normal; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.who > span .icon { width: .85rem; height: .85rem; transition: transform .25s ease; }
.top.open .who > span .icon { transform: rotate(180deg); }
.top.busy .who > span { color: var(--blue); }
.top.busy .who > span em { background: linear-gradient(90deg, var(--blue) 0 38%, var(--muted) 50%, var(--blue) 62% 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sweep 1.8s linear infinite; }
/* What Blu is doing, opened from the line under its name: each step so far, the one running now beating */
.wsteps { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); box-shadow: 0 .5px 0 var(--sep), 0 18px 30px -18px rgba(0, 0, 0, .25); padding: .35rem 1rem .7rem;
          transform: translateY(-.6rem); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.top.open .wsteps { opacity: 1; transform: none; pointer-events: auto; }
.wstep { display: flex; align-items: center; gap: .65rem; padding: .48rem 0; font-size: var(--t-sub); letter-spacing: var(--k-sub); color: var(--soft); }
.wstep + .wstep { box-shadow: 0 -.5px 0 var(--sep); }
.wstep i { width: 1.15rem; height: 1.15rem; flex: none; display: grid; place-items: center; color: var(--muted); }
.wstep i .icon { width: .95rem; height: .95rem; }
.wstep.now { color: var(--ink); font-weight: 500; }
.wstep.now i::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(.6); opacity: .5; } }
.wsteps .all { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: .35rem; padding: .6rem 0 0; border: 0; background: none; box-shadow: 0 -.5px 0 var(--sep);
               color: var(--blue); font-size: var(--t-sub); letter-spacing: var(--k-sub); font-weight: var(--strong); }
.wsteps .all .icon { width: 1rem; height: 1rem; }
.chips { display: flex; gap: .4rem; flex: none; }
.chips a, .chips button { border: 0; background: var(--fill); color: var(--ink); border-radius: 999px; padding: .32rem .75rem; font-size: var(--t-foot); letter-spacing: var(--k-foot); font-weight: var(--strong); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.chips .icon { width: .95rem; height: .95rem; color: var(--ok); }
.chips button.update { background: var(--blue); color: var(--on-blue); }   /* a newer Blu is out: her tap moves to it */
.chips .update .icon { color: currentColor; }
.meter { height: .375rem; border-radius: 999px; background: var(--fill); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }
.meter.near > span { background: var(--warn); }
.meter.out > span { background: var(--stop); }
.strip { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; font-size: var(--t-sub); letter-spacing: var(--k-sub); background: var(--warn-bg); color: var(--warn); }
.strip span { flex: 1; }
.confirm { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; background: var(--tint); box-shadow: 0 .5px 0 var(--sep); }
.confirm .glyph { width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.confirm .glyph .icon { width: 1.3rem; height: 1.3rem; }
.confirm .grow { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: .1rem; line-height: 1.3; }
.confirm b { font-size: var(--t-callout); letter-spacing: var(--k-callout); }
.confirm .grow span { color: var(--soft); font-size: var(--t-foot); letter-spacing: var(--k-foot); }
.confirm .btn { flex: none; }
@media (max-width: 34rem) { .confirm { flex-wrap: wrap; } .confirm .btn { width: 100%; } }
.strip button { border: 0; background: none; color: inherit; font-weight: var(--strong); padding: 0; text-decoration: underline; }

/* ---------- Chat ---------- */
#msgs { flex: 1; overflow-y: auto; padding: 1rem 1rem .4rem; display: flex; flex-direction: column; gap: .5rem; overscroll-behavior: contain; }
/* Back to the newest message: shown once she has scrolled up a way, with a dot when something new came in below. */
.msgwrap { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
#down { position: absolute; right: 1rem; bottom: .7rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 .5px var(--sep), 0 2px 6px rgba(0, 0, 0, .08), 0 8px 20px rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
#down.on { opacity: 1; transform: none; pointer-events: auto; }
#down:active { transform: scale(.94); }
#down.new::after { content: ''; position: absolute; top: .1rem; right: .1rem; width: .62rem; height: .62rem; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 2px var(--card); }
@media (prefers-reduced-motion: reduce) { #down { transition: none; } }
.msg { position: relative; display: flex; flex-direction: column; gap: .4rem; max-width: 100%; animation: rise .22s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
.msg.owner { align-items: flex-end; }
.msg.blu { align-items: flex-start; }
.msg.owner + .msg.blu, .msg.blu + .msg.owner { margin-top: .35rem; }
.bubble { padding: .5rem .82rem; border-radius: 1.15rem; max-width: 80%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.38; }
.owner .bubble { background: var(--blue); color: var(--on-blue); }
.blu .bubble { background: var(--bubble); }
.via { font-size: var(--t-tiny); letter-spacing: var(--k-tiny); color: var(--muted); display: flex; align-items: center; gap: .25rem; }
.via .icon { width: .85rem; height: .85rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; max-width: 80%; }
.thumbs img { width: 6.2rem; height: 6.2rem; object-fit: cover; border-radius: .9rem; display: block; }
.thumbs video { width: 9.5rem; max-height: 17rem; border-radius: .9rem; background: var(--fill); display: block; }
/* A voice note: play, its shape drawn from the sound itself, its length, and the words it was heard as */
.vn { display: flex; align-items: center; gap: .6rem; border-radius: 1.15rem; padding: .42rem .85rem .42rem .42rem; width: 15.5rem; max-width: 80%; }
.owner .vn { background: var(--blue); color: var(--on-blue); }
.blu .vn { background: var(--bubble); color: var(--ink); }
.vplay { width: 2.05rem; height: 2.05rem; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .2); color: inherit; cursor: pointer; }
.blu .vplay { background: var(--fill); }
.vplay .icon { width: .95rem; height: .95rem; fill: currentColor; stroke-width: 2.4; }
.vbars { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 1.65rem; min-width: 0; cursor: pointer; }
.vbars i { width: 2.5px; flex: none; border-radius: 2px; background: currentColor; opacity: .45; min-height: 3px; transition: opacity .12s; }
.vbars i.on { opacity: 1; }
.vbars:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: .3rem; }
.vn small { flex: none; min-width: 2.2rem; text-align: right; font-size: var(--t-foot); letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .85; }
.said { max-width: 80%; margin-top: .3rem; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); text-align: right; }
.typing { align-self: flex-start; background: var(--bubble); border-radius: 1.15rem; padding: .7rem .85rem; display: inline-flex; align-items: center; gap: .26rem; max-width: 80%; }
.typing i { width: .42rem; height: .42rem; flex: none; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
/* Her tap the server is still working on says what is happening beside the dots ("Posting…") */
.typing span { margin-left: .3rem; color: var(--soft); font-size: var(--t-foot); letter-spacing: var(--k-foot); line-height: 1.2; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing span:empty { display: none; }
.typing.lined { padding-top: .5rem; padding-bottom: .5rem; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
/* A day in the chat: Today, Yesterday, a weekday, a date */
.daymark { align-self: center; color: var(--muted); font-size: var(--t-cap); letter-spacing: var(--k-cap); font-weight: 500; margin: .35rem 0 .05rem; }
/* A message's row: its bubble, and on a wide screen the tools to reply or react beside it. On a phone she holds it, or swipes it right. */
.mline { position: relative; display: flex; align-items: center; gap: .35rem; width: 100%; transition: transform .25s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.owner > .mline { flex-direction: row-reverse; }
.bubble.flash, .thumbs.flash, .post.flash, .card.flash, .did.flash { animation: flash 1.1s ease-out; }   /* the message a jump landed on */
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--tint), 0 0 0 5px var(--blue); } 100% { box-shadow: 0 0 0 0 transparent; } }
.mtools { display: flex; gap: .15rem; opacity: 0; transition: opacity .15s ease; }
.mline:hover .mtools, .mtools:focus-within { opacity: 1; }
.mtool { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; padding: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.mtool:hover { background: var(--fill); color: var(--soft); }
.mtool .icon { width: 1.05rem; height: 1.05rem; }
.swipe { position: absolute; left: .1rem; top: 50%; width: 1.8rem; height: 1.8rem; margin-top: -.9rem; border-radius: 50%; background: var(--fill); color: var(--soft); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.swipe .icon { width: 1rem; height: 1rem; }
@media (hover: none) {
  .mtools { display: none; }
  .mline .bubble { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* held, it opens Reply, Copy and the reactions */
}
/* The message a reply was to, quoted at the top of the reply's bubble: tap it to go to it */
.quote { display: block; margin: -.12rem -.4rem .38rem; padding: .32rem .55rem .35rem .62rem; border-radius: .75rem; font-size: var(--t-foot); letter-spacing: var(--k-foot); line-height: 1.3;
         border: 0; width: calc(100% + .8rem); text-align: left; position: relative; overflow: hidden; color: inherit; font-family: inherit; cursor: pointer; }
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.owner .quote { background: rgba(255, 255, 255, .17); color: rgba(255, 255, 255, .88); }
.owner .quote::before { background: rgba(255, 255, 255, .75); }
.blu .quote { background: rgba(0, 0, 0, .05); color: var(--soft); }
:root[data-theme="dark"] .blu .quote { background: rgba(255, 255, 255, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blu .quote { background: rgba(255, 255, 255, .06); } }
.blu .quote::before { background: var(--blue); }
.quote b { display: block; font-weight: var(--strong); }
.owner .quote b { color: #fff; }
.blu .quote b { color: var(--blue); }
.quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.quote.alone { width: auto; max-width: 80%; margin: 0; background: var(--fill); color: var(--soft); }
.quote.alone::before { background: var(--blue); }
.quote.alone b { color: var(--blue); }
/* Reactions, in a small pill on the bubble's lower edge */
.reacts { display: inline-flex; align-items: center; gap: .1rem; margin-top: -.85rem; padding: .08rem .38rem; border: 0; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1.5px var(--bg), var(--ring);
          font-size: .82rem; line-height: 1.35; position: relative; z-index: 1; animation: pop .32s cubic-bezier(.3, 1.6, .5, 1) both; }
.owner > .reacts { margin-right: .5rem; } .blu > .reacts { margin-left: .5rem; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
/* What a turn changed, above its words: a line each, with Undo while it can still put it back */
.did { align-self: flex-start; width: min(100%, 26rem); background: var(--card); border-radius: 1rem; box-shadow: var(--ring); padding: .1rem .85rem; }
.did .drow { display: flex; align-items: center; gap: .65rem; padding: .58rem 0; }
.did .drow + .drow, .did .dmore { box-shadow: 0 -.5px 0 var(--sep); }
.did .dglyph { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.did .dglyph .icon { width: .85rem; height: .85rem; }
.did .grow { flex: 1; min-width: 0; font-size: var(--t-callout); letter-spacing: var(--k-callout); line-height: 1.3; overflow-wrap: anywhere; }
.did .grow small { display: block; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); margin-top: .05rem; }
.did .drow.undone .grow { color: var(--muted); }
.did .drow.undone .dglyph { background: var(--fill); color: var(--muted); }
.did .dact { border: 0; background: none; color: var(--blue); font-weight: var(--strong); font-size: var(--t-sub); letter-spacing: var(--k-sub); padding: .2rem 0 .2rem .4rem; flex: none; }
.did .dact.off { color: var(--muted); }
.did .dact[disabled] { opacity: .5; }
.did .dmore { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; padding: .55rem 0; color: var(--blue); font-size: var(--t-sub); letter-spacing: var(--k-sub); font-weight: var(--strong); }
.did .dmore .icon { width: 1rem; height: 1rem; }
/* Holding a message: the chat steps back, the message lifts, and the reactions and what she can do with it come up */
.hold { position: fixed; inset: 0; z-index: 70; background: rgba(120, 120, 128, .18); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); opacity: 0; transition: opacity .2s ease; }
.hold.on { opacity: 1; }
.lift { position: fixed; z-index: 71; pointer-events: none; display: flex; flex-direction: column; }
.lift.mine { align-items: flex-end; }
.lift .bubble { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .3); max-width: 100%; }
.tapback { position: fixed; z-index: 72; display: flex; align-items: center; gap: .15rem; padding: .3rem .4rem; background: var(--card); border-radius: 999px;
           box-shadow: 0 0 0 .5px var(--sep), 0 12px 30px -10px rgba(0, 0, 0, .35); animation: pop .28s cubic-bezier(.3, 1.4, .5, 1) both; }
.tapback button { border: 0; padding: 0; background: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; font-size: 1.35rem; line-height: 1; display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.tapback button:hover, .tapback button.on { background: var(--fill2); transform: scale(1.12); }
.tapback .more { color: var(--soft); background: var(--fill); }
.tapback .more .icon { width: 1.25rem; height: 1.25rem; }
.holdacts { position: fixed; z-index: 72; min-width: 12rem; background: var(--card); border-radius: .9rem; box-shadow: 0 0 0 .5px var(--sep), 0 12px 30px -10px rgba(0, 0, 0, .35); overflow: hidden;
            animation: pop .28s cubic-bezier(.3, 1.2, .5, 1) both; }
.holdacts button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; border: 0; background: none; padding: .7rem .95rem; font-size: var(--t-callout); letter-spacing: var(--k-callout); text-align: left; }
.holdacts button + button { box-shadow: 0 -.5px 0 var(--sep); }
.holdacts button:hover { background: var(--fill); }
.holdacts .icon { width: 1.1rem; height: 1.1rem; color: var(--soft); }
/* A sheet from the bottom (on a wide screen, a panel in the middle): every emoji, to search or browse by kind */
.sheetback { position: fixed; inset: 0; z-index: 75; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .25s ease; }
.sheetback.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 76; margin: 0 auto; max-width: 34rem; height: min(66dvh, 34rem); background: var(--group); border-radius: 1.4rem 1.4rem 0 0;
         padding: .5rem 1rem calc(env(safe-area-inset-bottom) + 1rem); transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .9, .2, 1); display: flex; flex-direction: column; }
.sheet.on { transform: none; }
.sheet .grab { width: 2.3rem; height: .3rem; border-radius: 999px; background: var(--fill2); align-self: center; margin-bottom: .7rem; flex: none; }
@media (min-width: 60rem) { .sheet { bottom: auto; top: 50%; border-radius: 1.2rem; transform: translateY(-46%) scale(.97); opacity: 0; transition: transform .25s ease, opacity .2s ease; padding-bottom: 1rem; }
                            .sheet.on { transform: translateY(-50%); opacity: 1; } .sheet .grab { display: none; } }
.esearch { display: flex; align-items: center; gap: .5rem; background: var(--fill); border-radius: .75rem; padding: .5rem .75rem; margin-bottom: .6rem; color: var(--muted); flex: none; }
.esearch .icon { width: 1.1rem; height: 1.1rem; }
.esearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); }
.etabs { display: flex; gap: .15rem; margin-bottom: .4rem; overflow-x: auto; scrollbar-width: none; flex: none; }
.etabs::-webkit-scrollbar { display: none; }
.etabs button { border: 0; padding: 0; background: none; border-radius: .6rem; width: 2.3rem; height: 2.1rem; font-size: 1.15rem; flex: none; opacity: .55; transition: opacity .15s ease, background .15s ease; }
.etabs button.on { opacity: 1; background: var(--fill2); }
.egrid-wrap { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; background: var(--card); border-radius: 1rem; box-shadow: var(--ring); padding: .35rem; overscroll-behavior: contain; }
.egrid-wrap::-webkit-scrollbar { display: none; }
.egrid { display: grid; grid-template-columns: repeat(8, 1fr); }
.egrid + .egrid { border-top: .5px solid var(--sep); margin-top: .3rem; padding-top: .3rem; }
.egrid button { border: 0; padding: 0; background: none; aspect-ratio: 1; border-radius: .6rem; font-size: 1.55rem; line-height: 1; display: grid; place-items: center; transition: transform .12s ease, background .12s ease; }
.egrid button:hover { background: var(--fill); transform: scale(1.12); }
.egrid button:active { transform: scale(.9); }
.enone { padding: 1.4rem .5rem; text-align: center; color: var(--muted); font-size: var(--t-sub); letter-spacing: var(--k-sub); }
@media (prefers-reduced-motion: reduce) { .mline, .tapback, .holdacts, .reacts, .sheet, .sheetback, .hold, .wsteps, .lstrip, .lface .lmood { animation: none !important; transition: none !important; } .flash { animation: none !important; } }

/* The customers in a chat right now, under Blu's name: whom Blu is answering, who waits on her, whom she is answering */
.lstrip { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem 1rem; border: 0; background: var(--bar); box-shadow: 0 .5px 0 var(--sep); text-align: left;
          font-size: var(--t-foot); letter-spacing: var(--k-foot); color: var(--soft); animation: drop .3s cubic-bezier(.2, .8, .2, 1) both; }
.lstrip b { color: var(--ink); font-weight: var(--strong); }
.lstrip .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lstrip > .icon { width: .95rem; height: .95rem; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-.5rem); } }
.lfaces { display: flex; flex: none; }
.lface { position: relative; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: var(--strong); color: #fff; box-shadow: 0 0 0 2px var(--bg); flex: none; }
.lface + .lface { margin-left: -.35rem; }
.lfaces .lface:nth-child(1) { z-index: 3; } .lfaces .lface:nth-child(2) { z-index: 2; } .lfaces .lface:nth-child(3) { z-index: 1; }   /* the first on top, its initials whole */
.lface .lmood { position: absolute; right: -.08rem; bottom: -.08rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1.5px var(--bg); }
.lface .lmood.work { animation: beat 1.2s ease-in-out infinite; }
.lface .lmood.ask { background: var(--warn); }
.lface.big { width: 2.4rem; height: 2.4rem; font-size: .85rem; }
.lface.big .lmood { width: .7rem; height: .7rem; }
.card .lface, .lpeople .lface { box-shadow: none; }   /* the ring parts faces that overlap, in the strip only */
.lface .lbadge { position: absolute; right: -.26rem; bottom: -.26rem; width: .98rem; height: .98rem; border-radius: 50%; display: grid; place-items: center;
                 background: var(--ink); color: var(--bg); box-shadow: 0 0 0 2px var(--card); }
.lface .lbadge.ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: #fff; }
.lface .lbadge.wa { background: #25D366; color: #fff; }
.lface .lbadge .icon { width: .62rem; height: .62rem; }
/* Writing to a customer: the chat's own box, a send button inside it */
.reply.say { position: relative; display: block; }
.reply.say textarea { display: block; width: 100%; border: 0; box-shadow: inset 0 0 0 1px var(--sep); border-radius: 1.2rem; padding: .55rem 2.9rem .55rem .9rem; resize: none; min-height: 2.6rem;
                      background: var(--bg); line-height: 1.38; }
.reply.say textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--muted); }
#panel .reply.say .round, .reply.say .round { position: absolute; right: .35rem; bottom: .35rem; width: 1.9rem; height: 1.9rem; margin: 0; background: var(--blue); color: var(--on-blue); }
#panel .reply.say .round[disabled], .reply.say .round[disabled] { background: var(--fill); color: var(--muted); opacity: 1; }   /* over #panel .round and .round[disabled] */
.reply.say .round .icon { width: 1.1rem; height: 1.1rem; }
.sheet.people { height: auto; max-height: min(82dvh, 40rem); }
.sheet h3 { margin: 0 0 .7rem; font-size: var(--t-head); letter-spacing: var(--k-head); font-weight: var(--strong); display: flex; align-items: center; gap: .5rem; flex: none; }
.sheet h3 button { border: 0; padding: 0; background: none; color: var(--blue); display: grid; place-items: center; }
.sheet .lscroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.lpeople { background: var(--card); border-radius: 1rem; box-shadow: var(--ring); }
.lperson { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem .9rem; border: 0; background: none; text-align: left; color: inherit; }
.lperson + .lperson { box-shadow: 0 -.5px 0 var(--sep); }
.lperson .grow { flex: 1; min-width: 0; }
.lperson b { display: flex; align-items: center; gap: .3rem; font-weight: var(--strong); font-size: var(--t-callout); letter-spacing: var(--k-callout); }
.lperson b .icon { width: .9rem; height: .9rem; color: var(--muted); }
.lperson small { display: block; color: var(--soft); font-size: var(--t-foot); letter-spacing: var(--k-foot); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lperson .lstate { flex: none; font-size: var(--t-cap); letter-spacing: var(--k-cap); font-weight: var(--strong); color: var(--blue); }
.lperson .lstate.ask { color: var(--warn); } .lperson .lstate.hers { color: var(--muted); }
.lconvo { padding: .9rem; background: var(--card); border-radius: 1rem; box-shadow: var(--ring); margin-bottom: .8rem; }
.lbtns { display: flex; gap: .5rem; flex: none; }
.lbtns .btn { flex: 1; min-height: 2.8rem; border-radius: .85rem; }

/* Her Studio: every picture and video Blu made and she sent, in months, three across */
.smonth { margin: 0 0 -.55rem; padding: 0 .1rem; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); font-weight: var(--strong); }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border-radius: .8rem; overflow: hidden; }
.stile { position: relative; aspect-ratio: 1; border: 0; padding: 0; margin: 0; background: var(--fill); overflow: hidden; cursor: pointer; display: block; width: 100%; }
.stile img, .stile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.stile:active { opacity: .8; }
.stile .sbadge { position: absolute; right: .3rem; top: .3rem; height: 1.25rem; min-width: 1.25rem; padding: 0 .35rem; border-radius: .65rem; display: flex; align-items: center; justify-content: center; gap: .15rem;
                 background: rgba(0, 0, 0, .55); color: #fff; font-size: .68rem; font-weight: 600; }
.stile .sbadge .icon { width: .7rem; height: .7rem; }
/* The edit room's card, first in her Studio: her clips uploading, being prepared and watched, each clip's best moments */
.editroom .stack.tight { gap: .35rem; }
.editroom .eclips { display: flex; flex-direction: column; }
.editroom .eclip { display: flex; flex-direction: column; gap: .35rem; padding: .6rem 0; }
.editroom .eclip + .eclip { box-shadow: 0 -.5px 0 var(--sep); }
.editroom .eclip .row { gap: .5rem; min-height: 2rem; }
.editroom .eclip .name { font-size: var(--t-sub); letter-spacing: var(--k-sub); }
.editroom .epct { flex: none; font-variant-numeric: tabular-nums; }
.editroom .round.small { width: 2rem; height: 2rem; }
.editroom .round.small .icon { width: 1rem; height: 1rem; }
.editroom .emoments { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .25rem; font-size: var(--t-sub); letter-spacing: var(--k-sub); color: var(--soft); }
.editroom .emoments li { display: grid; grid-template-columns: auto 1fr; gap: .5rem; }
.editroom .emoments .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.stile .splay { position: absolute; left: .35rem; bottom: .35rem; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.stile .splay .icon { width: 1.1rem; height: 1.1rem; }
/* The viewer, opened from her Studio: what the file is, and what she can do with it */
.viewer.withbar .vstrip > div { padding-bottom: calc(env(safe-area-inset-bottom) + 9.5rem); }
.viewer .vfoot { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 2.8rem); display: flex; flex-direction: column; align-items: center; gap: .65rem;
                 padding: 0 1rem; pointer-events: none; }
.viewer .vline { color: rgba(255, 255, 255, .86); font-size: var(--t-foot); letter-spacing: var(--k-foot); text-align: center; line-height: 1.35; }
.viewer .vline b { display: block; color: #fff; font-weight: var(--strong); font-size: var(--t-sub); letter-spacing: var(--k-sub); }
.viewer .vacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; pointer-events: auto; }
.viewer .vacts .btn { background: rgba(255, 255, 255, .14); color: #fff; }
.viewer .vacts .btn:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Cards and lists ---------- */
.card { width: 100%; background: var(--card); border-radius: 1rem; padding: .95rem 1rem; display: flex; flex-direction: column; gap: .7rem; box-shadow: var(--ring); }
#panel .card { box-shadow: none; border-radius: .8rem; }
.card h3 { margin: 0; font-size: var(--t-head); letter-spacing: var(--k-head); font-weight: var(--strong); }
.card p { margin: 0; }
.muted { color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); }
#panelbody > p.muted { padding: 0 1rem; margin: -.55rem 0 0; }
#panelbody > .group-name { padding: 0 1rem; margin: 0 0 -.7rem; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); font-weight: var(--strong); }   /* the name over a group of rows, as in a phone's settings */
.soft { color: var(--soft); }
.row { display: flex; align-items: center; gap: .75rem; }
.row > .grow { flex: 1; min-width: 0; }
.rows { display: flex; flex-direction: column; }
.rows > * + * { box-shadow: 0 -.5px 0 var(--sep); }
.rows > * { padding: .7rem 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: var(--t-sub); letter-spacing: var(--k-sub); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
/* Her store's order buttons, each hers to switch on or off */
.switch { position: relative; width: 3.1rem; height: 1.9rem; border: 0; padding: 0; border-radius: 999px; background: var(--fill2); flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: .16rem; left: .16rem; width: 1.58rem; height: 1.58rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: #34C759; } .switch.on::after { transform: translateX(1.2rem); }
.switch:disabled { opacity: .45; cursor: default; }
.tick { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; font-size: var(--t-sub); letter-spacing: var(--k-sub); line-height: 1.4; }
.tick input { margin-top: .2rem; flex: none; }
img.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; flex: none; }
.switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rows > *:first-child { padding-top: 0; } .rows > *:last-child { padding-bottom: 0; }
.name { font-weight: var(--strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.btn { border: 0; background: var(--fill); border-radius: .7rem; min-height: 2.4rem; padding: .4rem .95rem; font-weight: var(--strong); font-size: var(--t-callout); letter-spacing: var(--k-callout); color: var(--blue);
       display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; white-space: nowrap; transition: opacity .12s, background .15s; }
.btn:active { opacity: .6; }
.btn.primary { background: var(--blue); color: var(--on-blue); }
.btn.primary:hover { background: var(--blue-press); }
.btn.quiet { background: none; padding-left: .4rem; padding-right: .4rem; }
.btn.danger { color: var(--stop); }
.btn.small { min-height: 2rem; padding: .25rem .75rem; font-size: var(--t-sub); letter-spacing: var(--k-sub); border-radius: .6rem; }
.btn.wide { width: 100%; min-height: 3.1rem; font-size: var(--t-body); letter-spacing: var(--k-body); border-radius: .85rem; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn .icon { width: 1.05rem; height: 1.05rem; }
/* A tap still working after a moment: a turning ring where the icon was, and the button less faded than a plain disabled one */
.btn.busy[disabled] { opacity: .75; cursor: progress; }
.btn.busy .icon { display: none; }
.btn.busy::before { content: ''; width: 1em; height: 1em; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::before { animation: none; border-right-color: currentColor; opacity: .5; } }
.chip { display: inline-flex; align-items: center; gap: .28rem; padding: .14rem .55rem; border-radius: 999px; font-size: var(--t-cap); letter-spacing: var(--k-cap); font-weight: var(--strong); background: var(--fill); color: var(--soft); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.stop { background: var(--stop-bg); color: var(--stop); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.you { background: var(--tint); color: var(--blue); }
.chip .icon { width: .85rem; height: .85rem; }
/* A count with a minus and a plus: an item's stock, how many were sold */
.qty { display: inline-flex; align-items: center; flex: none; padding: 2px; border-radius: 999px; background: var(--fill); }
.qty button { width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; background: var(--card); color: var(--blue); display: grid; place-items: center; box-shadow: var(--ring); }
.qty button:active { opacity: .6; }
.qty button[disabled] { opacity: .35; cursor: default; }
.qty button .icon { width: 1rem; height: 1rem; }
.qty b { min-width: 2.2rem; padding: 0 .25rem; text-align: center; }
/* Facts in two columns: what it is on the left, the answer on the right */
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: var(--t-callout); letter-spacing: var(--k-callout); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: var(--strong); overflow-wrap: anywhere; }
.menu { display: flex; flex-direction: column; gap: .35rem; width: 100%; }
.menu > .btn { width: 100%; justify-content: flex-start; text-align: left; white-space: normal; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.rail { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .2rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.post { flex: 0 0 13.5rem; scroll-snap-align: start; border-radius: .9rem; overflow: hidden; display: flex; flex-direction: column; background: var(--card); box-shadow: inset 0 0 0 .5px var(--sep); }
.post.alone { flex-basis: 100%; }
/* Posts by Blu: a timeline, a card for each day and a row for each post (a carousel is one row, with how many pictures it has).
   A row opens to the whole post under it, with everything its card can do. */
.tl-day h3 { margin: 0 0 .65rem; }
.tl-row { display: flex; gap: .75rem; align-items: flex-start; width: 100%; border: 0; background: none; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.tl-row .grow { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.tl-row .go { flex: none; align-self: center; transition: transform .2s; }
.tl-row[aria-expanded="true"] .go { transform: rotate(90deg); }
.tl-pic { position: relative; flex: none; }
.tl-pic .thumb { width: 3.6rem; height: 3.6rem; }
.tl-pic .count { position: absolute; right: .22rem; bottom: .22rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: .6rem; background: rgba(0, 0, 0, .62); color: #fff; font-size: .68rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.tl-pic .count svg { width: .62rem; height: .62rem; }
.tl-pic .count.play { width: 1.15rem; padding: 0; }
.tl-top { display: flex; gap: .45rem; align-items: baseline; min-width: 0; }
.tl-top b { flex: none; white-space: nowrap; }
.tl-top .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-cap { color: var(--soft); font-size: var(--t-foot); letter-spacing: var(--k-foot); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item > .post { max-width: 24rem; margin: .8rem auto 0; }
/* Posts by Blu: its tabs held at the top as the screen scrolls under them (on a phone, under the floating top), and on the
   calendar the month and the week's days in a strip (a dot for each post, up to three) held with them; then a card for each day. */
.posts-top { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: .8rem; padding: .2rem 0 .5rem; background: var(--group);
             box-shadow: 0 -.9rem 0 var(--group); }
.posts-top::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: .8rem; background: linear-gradient(var(--group), transparent); pointer-events: none; }
.cal-top { display: flex; flex-direction: column; gap: .6rem; }
.cal-top:empty { display: none; }
.cal-head { display: flex; align-items: center; gap: .4rem; }
.cal-head h3 { margin: 0; flex: 1; }
.cal-head .round { width: 2.1rem; height: 2.1rem; }
.cal-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: .1rem; border: 0; border-radius: .85rem; padding: .45rem 0 .4rem; background: var(--card);
           box-shadow: inset 0 0 0 .5px var(--sep); color: var(--soft); font: inherit; font-size: var(--t-foot); letter-spacing: var(--k-foot); cursor: pointer; }
.cal-day b { font-size: var(--t-body); letter-spacing: var(--k-body); font-weight: var(--strong); color: var(--ink); line-height: 1.2; }
.cal-day.today b { color: var(--blue); }
.cal-day.on { background: var(--blue); box-shadow: none; color: rgba(255, 255, 255, .85); }
.cal-day.on b { color: #fff; }
.cal-day .dots { display: flex; gap: .16rem; height: .32rem; }
.cal-day .dots i { width: .32rem; height: .32rem; border-radius: 50%; background: var(--blue); }
.cal-day.on .dots i { background: #fff; }
.cal-day .dots i.quiet { background: var(--muted); }   /* a post's dot on her Calendar */
.cal-day.on .dots i.quiet { background: rgba(255, 255, 255, .6); }
.cal-card h3 { display: flex; align-items: baseline; gap: .45rem; margin: 0 0 .55rem; }
.cal-card h3 .chip { font-weight: 500; }
.cal-moment { display: flex; gap: .4rem; align-items: flex-start; color: var(--soft); font-size: var(--t-foot); letter-spacing: var(--k-foot); margin: -.2rem 0 .6rem; }
.cal-moment .icon { width: 1rem; height: 1rem; flex: none; color: var(--warn); margin-top: .05rem; }
.hours-row { display: flex; align-items: center; gap: .45rem; }
.hours-row > .grow { flex: 0 0 2.2rem; min-width: 0; white-space: nowrap; }   /* every day's times line up, and fit a 360px phone */
.hours-row input.mini { flex: 1 1 5rem; min-width: 0; width: auto; padding-left: .5rem; padding-right: .4rem; }
.hours-row .switch { flex: none; }
.hours-row input:disabled { opacity: .4; }
.hours-row input[type="time"]::-webkit-calendar-picker-indicator { display: none; }   /* a tap opens the phone's own picker: the clock only took room from the time */
.bk-time { flex: none; width: 4.9rem; display: flex; flex-direction: column; gap: .12rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-time span { color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); }
.bk-row .tl-top { align-items: center; }
.bk-row.closed .grow, .bk-row.closed .bk-time { opacity: .6; }
.cal-none { display: flex; align-items: center; gap: .6rem; justify-content: space-between; color: var(--muted); font-size: var(--t-sub); letter-spacing: var(--k-sub); }
.post .media { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--fill); display: block; }
.post .media.tall { aspect-ratio: 9 / 16; }
.post .media.page { aspect-ratio: 4 / 5; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--fill); }
.slides::-webkit-scrollbar { display: none; }
.slides > div { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.slides > div.out img { opacity: .35; }
.slides .chip { position: absolute; left: .5rem; bottom: .5rem; background: var(--card); box-shadow: var(--ring); }
.slidebar { display: flex; align-items: center; gap: .5rem; min-height: 2rem; padding: .45rem .75rem 0; }
.slidebar .muted { flex: 1; }
.post .in { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post .cap { font-size: var(--t-sub); letter-spacing: var(--k-sub); color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .35rem; min-width: 0; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); }
.pmeta > .icon { width: .95rem; height: .95rem; }
.pmeta .pwhat { flex: 1 1 8rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta .chip { flex: none; }
.post .cap.open { display: block; }
.post textarea { width: 100%; min-height: 6.5rem; border: 0; border-radius: .7rem; padding: .6rem; background: var(--fill); font-size: var(--t-callout); letter-spacing: var(--k-callout); resize: vertical; }
.post .when { font-size: var(--t-foot); letter-spacing: var(--k-foot); font-weight: var(--strong); display: flex; align-items: center; gap: .3rem; }
.post .when .icon { width: .95rem; height: .95rem; color: var(--muted); }
.picture img, .picture video { width: 100%; max-height: 28rem; object-fit: contain; border-radius: .7rem; background: var(--fill); display: block; }
/* A picture whose shape Blu does not know (w, h) still keeps a place before it loads, so the chat does not jump as it does. */
.picture img:not([height]), .picture video:not([height]) { aspect-ratio: 4 / 5; }
/* One of her items drawn in each look her posts can have, side by side to swipe through and choose */
.look { flex: 0 0 12.5rem; scroll-snap-align: start; display: flex; flex-direction: column; gap: .4rem; }
.look img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; background: var(--fill); display: block; box-shadow: inset 0 0 0 .5px var(--sep); }
.look .row { gap: .4rem; margin-top: .15rem; }
.look .muted { flex: 1; }
.look .btn, .look .chip { align-self: flex-start; }
.look.tall { flex-basis: 9.5rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.two .look { flex: none; }
.two .look.picked img, .two .look.picked .capbox { box-shadow: 0 0 0 2px var(--blue); }
.capbox { padding: .7rem .8rem; border-radius: .8rem; background: var(--fill); font-size: var(--t-sub); letter-spacing: var(--k-sub); line-height: 1.4; white-space: pre-wrap; flex: 1; }
.post.pointing img.media { cursor: crosshair; outline: 2px dashed var(--blue); outline-offset: -2px; }
.pointed { position: absolute; width: 1.4rem; height: 1.4rem; margin: -.7rem 0 0 -.7rem; border-radius: 50%; border: 3px solid #fff; background: var(--blue);
           box-shadow: 0 0 0 4px rgba(31, 91, 255, .3); pointer-events: none; }
/* The message she is replying to, above the box she writes in, until she sends or closes it */
#replying { display: flex; align-items: center; gap: .6rem; margin: 0 .75rem; padding: .5rem .2rem .2rem .7rem; position: relative; animation: rise .2s ease-out both; }
#replying[hidden] { display: none; }
#replying::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .2rem; width: 3px; border-radius: 2px; background: var(--blue); }
#replying .grow { flex: 1; min-width: 0; font-size: var(--t-foot); letter-spacing: var(--k-foot); line-height: 1.3; }
#replying b { display: block; color: var(--blue); font-weight: var(--strong); }
#replying span { display: block; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#replying .round { width: 1.8rem; height: 1.8rem; background: none; color: var(--muted); }
#pointing { display: flex; align-items: center; gap: .4rem; padding: .45rem 1rem 0; }
#pointing[hidden] { display: none; }
#pointing .chip { max-width: calc(100% - 2.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; }
#pointing .round { width: 1.8rem; height: 1.8rem; flex: none; }
.look.tall img { aspect-ratio: 9 / 16; }
.look.page img { aspect-ratio: 4 / 5; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .7rem; background: var(--fill); display: block; cursor: zoom-in; }
.pair.open { grid-template-columns: 1fr; }
.pair.open img { aspect-ratio: auto; cursor: zoom-out; }
.pair .muted { margin-top: .3rem; text-align: center; }
.sent { display: flex; flex-wrap: wrap; gap: .4rem; }
.sent img { width: 9.5rem; height: 13rem; object-fit: cover; object-position: top; border-radius: .7rem; background: var(--fill); display: block; cursor: zoom-in; }
.sent img.open { width: 100%; height: auto; cursor: zoom-out; }
.big { font-size: var(--t-display); letter-spacing: var(--k-display); font-weight: var(--strong); line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: .1rem .8rem; }
.stat:first-child { padding-left: 0; }
.stat + .stat { box-shadow: -.5px 0 0 var(--sep); }
.stat b { display: block; font-size: var(--t-title2); letter-spacing: var(--k-title2); font-weight: var(--strong); } .stat span { color: var(--muted); font-size: var(--t-cap); letter-spacing: var(--k-cap); }
.bars { display: flex; align-items: flex-end; gap: .4rem; height: 5rem; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; height: 100%; }
.bars i { width: 100%; background: var(--blue); border-radius: .25rem; min-height: 3px; }
.bars span { font-size: var(--t-tiny); letter-spacing: var(--k-tiny); color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; margin: 0; font-size: var(--t-sub); letter-spacing: var(--k-sub); }
.kv dt { color: var(--soft); overflow-wrap: anywhere; } .kv dd { margin: 0; text-align: right; font-weight: var(--strong); }
.plan { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border: 0; border-radius: .75rem; padding: .8rem .95rem; background: var(--fill); width: 100%; text-align: left; }
.plan:active { opacity: .6; }
.plan b { font-size: var(--t-head); letter-spacing: var(--k-head); font-weight: var(--strong); }
.rowtap { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; border: 0; background: none; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.rowtap > .grow { flex: 1; min-width: 0; }
.rowtap:active { opacity: .6; }
.itemphoto { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 26rem; object-fit: cover; border-radius: .9rem; background: var(--fill); cursor: zoom-in; }
.itemphoto.empty { display: grid; place-items: center; color: var(--muted); cursor: default; aspect-ratio: 16 / 9; }
.itemphoto.empty .icon { width: 2rem; height: 2rem; }
.form { display: flex; flex-direction: column; gap: .8rem; }
.form label, .form .lab { display: flex; flex-direction: column; gap: .3rem; font-size: var(--t-foot); letter-spacing: var(--k-foot); color: var(--muted); font-weight: 500; }
.form .money { display: flex; align-items: center; gap: .5rem; }
.form .money .field { flex: 1; }
.library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.library .tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: .55rem; overflow: hidden; background: var(--fill); cursor: zoom-in; }
.library .tile img, .library .tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.library .tile .tag { position: absolute; left: .3rem; bottom: .3rem; background: rgba(12, 16, 28, .66); color: #fff; font-size: var(--t-tiny); letter-spacing: var(--k-tiny); font-weight: var(--strong); padding: .1rem .4rem; border-radius: 999px; }
.library .tile .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.library .tile .play .icon { width: 1.4rem; height: 1.4rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.library.sorting .tile { cursor: pointer; }
.library.sorting .tile:not(.main) img { opacity: .85; }
.library .drop { position: absolute; top: .25rem; right: .25rem; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 999px; background: rgba(12, 16, 28, .72); color: #fff; display: grid; place-items: center; padding: 0; }
.library .drop .icon { width: .9rem; height: .9rem; }
.library .drop.move { top: auto; bottom: .25rem; }
.moveto { display: flex; flex-direction: column; gap: .2rem; margin-top: .5rem; }
.moveto .rowtap { display: flex; align-items: center; gap: .7rem; padding: .45rem .2rem; text-align: left; }
.moveto img { width: 2.4rem; height: 2.4rem; border-radius: .5rem; object-fit: cover; flex: none; }
.found { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.founditem { border: 0; padding: 0; background: var(--fill); border-radius: .8rem; overflow: hidden; text-align: left; display: flex; flex-direction: column; color: inherit; font: inherit; cursor: pointer; }
.founditem img, .founditem .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--fill2); }
.founditem .fi { padding: .5rem .6rem .6rem; min-width: 0; }
.founditem:active { opacity: .7; }
.reading { display: flex; align-items: center; gap: .75rem; }
.reading .dots { display: flex; gap: .25rem; }
.reading .dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue); animation: blink 1.2s infinite ease-in-out; }
.reading .dots i:nth-child(2) { animation-delay: .2s; } .reading .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.card.wide .post { flex-basis: min(86%, 22rem); }   /* planned posts on their own page: room for the words */
.card.wide .post.alone { flex-basis: 100%; }
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(6, 8, 12, .97); display: flex; flex-direction: column; overscroll-behavior: contain; animation: fadein .15s ease-out; touch-action: pan-x pinch-zoom; }
.viewer .vstrip { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer .vstrip::-webkit-scrollbar { display: none; }
.viewer .vstrip > div { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always;
                        padding: calc(env(safe-area-inset-top) + 3.6rem) .5rem calc(env(safe-area-inset-bottom) + 3rem); }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: .4rem; user-select: none; -webkit-user-select: none; }
.viewer .vclose { position: absolute; top: calc(env(safe-area-inset-top) + .7rem); right: .8rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.viewer .vclose .icon { width: 1.3rem; height: 1.3rem; }
.viewer .vcount { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 1rem); text-align: center; color: rgba(255, 255, 255, .72); font-size: var(--t-foot); letter-spacing: var(--k-foot); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.post img.media, .slides img.media { cursor: zoom-in; }
/* Rows dragged with a mouse (Blossom, app.js dragRows): its styles stop words being selected inside a row, which a field she
   types in still needs; with reduced motion a jump is a jump (Blossom makes scrolling smooth). */
[blossom-carousel] :is(input, textarea, select, [contenteditable]) { -webkit-user-select: text; user-select: text; }
@media (prefers-reduced-motion: reduce) { [blossom-carousel] { scroll-behavior: auto; } }
.thumb { width: 2.9rem; height: 2.9rem; border-radius: .6rem; object-fit: cover; background: var(--fill); flex: none; display: block; }
.linkbox { background: var(--fill); border-radius: .7rem; padding: .6rem .75rem; font-size: var(--t-foot); letter-spacing: var(--k-foot); overflow-wrap: anywhere; color: var(--soft); }
.field { width: 100%; border: 0; border-radius: .75rem; padding: .78rem .9rem; background: var(--fill); font-weight: 400; }
.field:focus, .post textarea:focus, input.mini:focus { outline: 2px solid var(--blue); outline-offset: 0; }
::placeholder { color: var(--muted); opacity: 1; }
input.mini { width: 6.4rem; border: 0; border-radius: .6rem; padding: .38rem .55rem; background: var(--fill); }
.tap { width: 100%; background: none; border: 0; text-align: left; padding-left: 0; padding-right: 0; color: inherit; text-decoration: none; }   /* a link drawn as a row (About Blu) looks like every other row */
.tap:active { opacity: .6; }
.tap .icon.go { color: var(--muted); width: 1rem; height: 1rem; opacity: .7; }
.tap.leave > .icon, .tap.leave .name { color: var(--stop); }
.tap.leave > .icon { width: 1.25rem; height: 1.25rem; flex: none; }
.tap.leave[disabled] { opacity: .45; cursor: progress; }
.name.whole { white-space: normal; }   /* a title that wraps rather than lose its end beside a button (a 360px phone) */
.glyph { width: 1.9rem; height: 1.9rem; border-radius: .48rem; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.glyph .icon { width: 1.15rem; height: 1.15rem; }
.glyph.wa { background: #25D366; }
.glyph.ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.glyph.green { background: #34C759; } .glyph.orange { background: #FF9500; } .glyph.purple { background: #AF52DE; } .glyph.grey { background: #8E8E93; } .glyph.ink { background: #1D1D1F; }
.glyph.teal { background: #30B0C7; } .glyph.indigo { background: #5856D6; } .glyph.pink { background: #FF2D55; }
/* Growth: four numbers in a row on a wide screen, two by two on a phone; reach as thin bars; her best posts as rows. */
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .stats.four { grid-template-columns: repeat(2, 1fr); row-gap: .9rem; } .stats.four .stat:nth-child(3) { padding-left: 0; box-shadow: none; } }
.bars.thin { gap: 2px; height: 4.5rem; }
.spark { display: block; width: 100%; height: 3rem; margin-top: .7rem; overflow: visible; }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grow-row { display: flex; gap: .75rem; align-items: center; padding: .65rem 0; }
.grow-row + .grow-row { box-shadow: 0 -.5px 0 var(--sep); }
.grow-row .thumb { width: 3.3rem; height: 3.3rem; border-radius: .6rem; object-fit: cover; flex: none; background: var(--fill); }
/* Comments: each post with what people wrote under it, Blu's and her replies set in under each, and a hidden one dimmed. */
.comment { padding: .7rem 0; display: grid; gap: .25rem; }
.comment + .comment, .grow-row + .comment { box-shadow: 0 -.5px 0 var(--sep); }
.comment .btns { margin-top: .2rem; }
.comment .reply { margin: .35rem 0 0 .2rem; padding-left: .75rem; box-shadow: inset 2px 0 0 var(--fill2); display: grid; gap: .15rem; }
.comment .dim, .comment.dim > div:not(.btns) { opacity: .55; }
.btn.liked { color: #FF2D55; } .btn.liked .icon path { fill: currentColor; }
.glance { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.todo { width: 1.45rem; height: 1.45rem; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--fill2); color: #fff; }
.todo.done { background: var(--ok); box-shadow: none; }
.todo .icon { width: .95rem; height: .95rem; }
.struck { color: var(--muted); }

/* ---------- Reply buttons and the composer ---------- */
#pills { display: flex; gap: .4rem; overflow-x: auto; padding: .35rem 1rem .1rem; scrollbar-width: none; }
#pills::-webkit-scrollbar { display: none; }
#pills:empty { display: none; }
.pill { flex: none; border: 0; color: var(--blue); background: var(--tint); border-radius: 999px; padding: .48rem .95rem; font-weight: var(--strong); font-size: var(--t-callout); letter-spacing: var(--k-callout); animation: rise .2s ease-out both; }
.pill:active { opacity: .6; }
#pending { display: flex; gap: .5rem; padding: .5rem 1rem 0; flex-wrap: wrap; }
/* Shared to Blu from her phone, waiting for her Add them (offerShared) */
#sharedin { display: flex; align-items: center; gap: .65rem; padding: .55rem 1rem 0; }
#sharedin[hidden] { display: none; }
#sharedin .shthumbs { display: flex; gap: .25rem; flex: none; }
#sharedin .shthumbs > * { width: 2.5rem; height: 2.5rem; border-radius: .55rem; object-fit: cover; display: grid; place-items: center; background: var(--fill); color: var(--muted); }
#sharedin .grow { flex: 1; min-width: 0; }
#sharedin b { display: block; font-weight: var(--strong); font-size: var(--t-sub); letter-spacing: var(--k-sub); }
#sharedin .btns { flex: none; flex-wrap: nowrap; }
#pending:empty { display: none; }
.pend { position: relative; }
.pend img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: .7rem; display: block; }
.pend.note { border-radius: .7rem; padding: .4rem .7rem; font-size: var(--t-sub); letter-spacing: var(--k-sub); background: var(--fill); }
.pend button { position: absolute; top: -.35rem; right: -.35rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 0; background: var(--muted); color: #fff; font-size: var(--t-foot); letter-spacing: var(--k-foot); line-height: 1; display: grid; place-items: center; }
#composer { position: relative; display: flex; align-items: flex-end; gap: .5rem; padding: .5rem .75rem .55rem; }
#say { flex: 1; border: 0; box-shadow: inset 0 0 0 1px var(--sep); border-radius: 1.2rem; padding: .52rem 2.7rem .52rem .9rem; resize: none; max-height: 8rem; background: var(--bg); min-height: 2.4rem; line-height: 1.38; }
#say:focus { outline: none; box-shadow: inset 0 0 0 1px var(--muted); }
.round { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--fill); color: var(--soft); flex: none; }
.round:active { opacity: .6; }
.round[disabled] { opacity: .35; cursor: default; }
.round .icon { width: 1.25rem; height: 1.25rem; }
#composer > .round:last-child { position: absolute; right: 1rem; bottom: .8rem; width: 1.9rem; height: 1.9rem; background: none; color: var(--muted); }
#composer > .round.send:last-child { background: var(--blue); color: var(--on-blue); }
#composer > .round.send:last-child .icon { width: 1.1rem; height: 1.1rem; }
#composer > .round.send.later:last-child { background: var(--fill2); color: var(--muted); }   /* her words wait for the network */
#composer > .round.rec:last-child { position: static; width: 2.4rem; height: 2.4rem; background: var(--stop); color: #fff; }
#recording { flex: 1; display: flex; align-items: center; gap: .6rem; color: var(--stop); font-weight: var(--strong); padding: 0 .3rem; min-height: 2.4rem; }
#recording .rdot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--stop); flex: none; animation: rdot 1.1s ease-in-out infinite; }
@keyframes rdot { 50% { opacity: .25; } }
#recording .vbars { flex: 1; color: var(--stop); cursor: default; }
#recording .vbars i { opacity: 1; transition: height .09s linear; }
#recording button { margin-left: auto; }
#panel .round { background: none; color: var(--blue); width: 2rem; height: 2rem; margin-left: -.4rem; }

/* ---------- The other screens ---------- */
#panel > header { display: flex; align-items: center; gap: .2rem; padding: .9rem 1rem .5rem; padding-top: max(.9rem, env(safe-area-inset-top)); }
#panel > header h1 { margin: 0; font-size: var(--t-display); letter-spacing: var(--k-display); font-weight: var(--bold); flex: 1; line-height: 1.15; }
#panel > header.sub { min-height: 3.2rem; padding-bottom: .3rem; }
#panel > header.top { gap: .7rem; min-height: 3.5rem; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: var(--bar);
                      backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 .5px 0 var(--sep); z-index: 4; }
#panel > header.top .round.back { margin: 0 -.45rem 0 -.5rem; }
.who-answers { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: .75rem; background: var(--fill); }
.who-answers b { display: block; font-weight: var(--strong); }
.who-answers span { display: block; font-size: var(--t-foot); letter-spacing: var(--k-foot); }
.reply { display: flex; align-items: flex-end; gap: .5rem; }
.reply .field { flex: 1; }
.notes { display: flex; flex-direction: column; gap: .7rem; }
.note { display: flex; align-items: flex-start; gap: .65rem; }
.note > .mark, .note > .glyph { width: 1.6rem; height: 1.6rem; flex: none; margin-top: .1rem; }
.note > .glyph .icon { width: .95rem; height: .95rem; }
.note .x { border: 0; background: none; color: var(--muted); padding: .2rem; margin: -.1rem -.2rem 0 0; }
.note .x .icon { width: 1rem; height: 1rem; }
.btn.off { opacity: .4; }
#panel > header.sub h1 { font-size: var(--t-head); letter-spacing: var(--k-head); font-weight: var(--strong); }
#panelbody { flex: 1; overflow-y: auto; padding: .5rem 1rem 0; display: flex; flex-direction: column; gap: 1.1rem; overscroll-behavior: contain; }
/* The room after a screen's last row is an empty box, not padding: Safari on an iPhone leaves a flex scroller's end padding out of
   what scrolls, so a list that ended under the tab bar could not be scrolled at all (Michael, 2026-10-22: Planned scrolled only once a
   post was opened). Its rows keep their own height, never squeezed to fit. The box is .5rem: with the gap before it, 1.6rem. */
#panelbody > * { flex-shrink: 0; }
#panelbody::after { content: ''; flex: none; height: .5rem; }
/* A screen's main action (Record a sale, Message customers): on a phone, at its foot over the tab bar, where her thumb is.
   What scrolls under it fades into it, so it needs no line. */
#panelfoot { flex: none; position: relative; display: flex; flex-direction: column; gap: .5rem; padding: .5rem 1rem .65rem; background: var(--group); }
#panelfoot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 1.2rem; background: linear-gradient(rgba(0, 0, 0, 0), var(--group)); pointer-events: none; }
#panelfoot:not(:has(> :not([hidden]))) { display: none; }
#panelfoot > .seg button { padding-top: .5rem; padding-bottom: .5rem; }   /* a choice at the foot: a little taller, for her thumb */
.seg { display: flex; flex-shrink: 0; gap: 0; overflow-x: auto; padding: 2px; background: var(--fill); border-radius: .58rem; scrollbar-width: none; }   /* a scroller would let a tall screen squash it to a line */
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; border: 0; background: none; border-radius: .46rem; padding: .34rem .6rem; font-size: var(--t-foot); letter-spacing: var(--k-foot); font-weight: 500; color: var(--ink); white-space: nowrap; }
.seg button.on { background: var(--card); font-weight: var(--strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.talk { display: flex; flex-direction: column; gap: .3rem; }
.talk div { padding: .45rem .78rem; border-radius: 1.1rem; max-width: 85%; font-size: var(--t-callout); letter-spacing: var(--k-callout); white-space: pre-wrap; overflow-wrap: anywhere; }
.talk .them { background: var(--bubble); align-self: flex-start; }
.talk .blu { background: var(--tint); align-self: flex-end; }
.talk .you { background: var(--blue); color: var(--on-blue); align-self: flex-end; }
.talk small { align-self: flex-end; color: var(--muted); font-size: var(--t-tiny); letter-spacing: var(--k-tiny); margin: -.1rem .3rem .2rem; }
.shimmer { height: 4.4rem; border-radius: .8rem; background: linear-gradient(100deg, var(--card) 30%, var(--fill) 50%, var(--card) 70%); background-size: 200% 100%; animation: slide 1.2s linear infinite; }
@keyframes slide { to { background-position: -200% 0; } }
.empty { text-align: center; color: var(--muted); padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.empty > .icon { width: 2.6rem; height: 2.6rem; opacity: .6; }

/* ---------- Sign-up ---------- */
.join { min-height: 100dvh; max-width: 25rem; margin: 0 auto; padding: 3rem 1.5rem 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.join .mark { width: 3.2rem; height: 3.2rem; }
.join h1 { font-size: var(--t-title); letter-spacing: var(--k-title); font-weight: var(--strong); line-height: 1.12; margin: .9rem 0 0; }
.join p { margin: 0 0 .4rem; color: var(--soft); }

/* Signing up: one quiet card. Her photos and Blu at the top, four details in one grouped list, one button. */
.gate { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 2.5rem 1rem; background: var(--gate); }
.gate-card { width: 100%; max-width: 27.5rem; background: var(--bg); border-radius: 2rem; padding: 2.6rem 2.2rem 2rem; box-shadow: var(--lift); display: flex; flex-direction: column; }
.lockup { position: relative; align-self: center; display: flex; padding: .3rem 1.1rem .6rem; }
.lockup img { width: 4.3rem; height: 4.3rem; object-fit: cover; border-radius: 1.1rem; box-shadow: 0 0 0 3px var(--bg), 0 10px 22px -10px rgba(12, 16, 28, .45); display: block; }
.lockup img + img { margin-left: -1rem; }
.lockup img:nth-child(1) { transform: rotate(-7deg) translateY(.25rem); } .lockup img:nth-child(2) { transform: translateY(-.3rem); z-index: 1; } .lockup img:nth-child(3) { transform: rotate(7deg) translateY(.25rem); }
.lockup .mark { position: absolute; right: .2rem; bottom: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg); z-index: 2; }
.gate h1 { font-size: clamp(1.75rem, 6vw, 2.05rem); letter-spacing: -.035em; font-weight: var(--strong); line-height: 1.08; margin: 1.3rem 0 0; text-align: center; text-wrap: balance; }
.gate .lede { margin: .55rem auto 1.7rem; color: var(--muted); font-size: var(--t-callout); letter-spacing: var(--k-callout); line-height: 1.42; text-align: center; max-width: 19rem; }
.gate form { display: flex; flex-direction: column; gap: .8rem; }
/* The details, as one list: a label on the left, what she types on the right. */
.group { border-radius: 1.05rem; background: var(--field); box-shadow: inset 0 0 0 1px var(--sep); transition: box-shadow .15s; }
.group:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--tint); }
.group .line { display: grid; grid-template-columns: 6.4rem 1fr; align-items: center; min-height: 3.35rem; padding: 0 1.05rem; cursor: text; }
.group .line + .line { box-shadow: inset 0 1px 0 var(--sep); }
.group .line > span { color: var(--soft); font-weight: 500; font-size: var(--t-callout); letter-spacing: var(--k-callout); }
.group input { width: 100%; min-width: 0; border: 0; background: none; outline: 0; padding: 0; height: 3.35rem; color: var(--ink); font-size: var(--t-body); letter-spacing: var(--k-body); }
.group input::placeholder { color: var(--muted); opacity: .7; }
.group .tel { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.group .dial { position: relative; display: inline-flex; align-items: center; gap: .15rem; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
               padding: .3rem .45rem .3rem .55rem; margin-left: -.55rem; border-radius: .55rem; background: var(--fill); transition: background .15s; }
.group .dial:hover, .group .dial:focus-within { background: var(--fill2); }
.group .dial .icon { width: .95rem; height: .95rem; color: var(--muted); }
.group .dial select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 1rem; border: 0; }   /* the list is the system's own; only the code shows */
.gate .hint { margin: -.25rem .3rem 0; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); }
.agree { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; padding: .95rem 1.05rem; border-radius: 1.05rem; background: var(--field); box-shadow: inset 0 0 0 1px var(--sep);
         font-size: var(--t-callout); letter-spacing: var(--k-callout); color: var(--soft); line-height: 1.4; cursor: pointer; }
.agree input { appearance: none; -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin: .05rem 0 0; border-radius: .45rem; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--fill2); cursor: pointer; transition: background .15s, box-shadow .15s; }
.agree input:checked { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .95rem no-repeat; box-shadow: none; }
.agree input:focus-visible { outline: 0; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--tint); }
.agree b { color: var(--ink); font-weight: var(--strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.agree .swap { grid-column: 2; justify-self: start; margin-top: .35rem; border: 0; background: none; padding: 0; color: var(--blue); font-weight: 500; font-size: var(--t-sub); letter-spacing: var(--k-sub); }
.gate .go { min-height: 3.35rem; border: 0; border-radius: 1.05rem; background: var(--blue); color: #fff; font-weight: var(--strong); font-size: var(--t-head); letter-spacing: var(--k-head); margin-top: .5rem; transition: background .15s, transform .1s; }
.gate .go:hover { background: var(--blue-press); } .gate .go:active { transform: scale(.985); } .gate .go:disabled { opacity: .6; }
.gate .err:empty { display: none; }
.gate .err { text-align: center; }
.gate .fine { margin: .55rem 0 0; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); text-align: center; }
.gate .back { margin: 0; color: var(--muted); font-size: var(--t-sub); letter-spacing: var(--k-sub); text-align: center; max-width: 22rem; }
.gate .back button { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: var(--strong); }
.gate a.go { display: flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; margin-top: .2rem; }
.gate a.go .icon { width: 1.25rem; height: 1.25rem; }
@media (max-width: 32rem) {   /* on a phone the card is the page */
  .gate { justify-content: flex-start; padding: 0 0 2rem; background: var(--bg); gap: .6rem; }
  .gate-card { border-radius: 0; box-shadow: none; padding: 2.4rem 1.25rem 1rem; max-width: none; }
}
.err { color: var(--stop); font-size: var(--t-sub); letter-spacing: var(--k-sub); min-height: 1.2rem; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav) + 5.6rem); transform: translateX(-50%); color: var(--ink); padding: .6rem 1rem; border-radius: 1.1rem;
         font-size: var(--t-sub); letter-spacing: var(--k-sub); font-weight: 500; z-index: 40; max-width: min(88vw, 26rem); text-align: center; }   /* glass: see Glass */

/* ---------- The app on her home screen: the offer in the chat, and the steps on an iPhone ---------- */
.confirm.home .glyph { background: var(--blue); }
.confirm .x { border: 0; background: none; color: var(--muted); padding: .35rem; margin: -.35rem -.35rem -.35rem 0; flex: none; display: grid; place-items: center; border-radius: 50%; }
.confirm .x:active { opacity: .6; }
.confirm .x .icon { width: 1.1rem; height: 1.1rem; }
.step { align-items: flex-start; }
.step .glyph { width: 2.3rem; height: 2.3rem; border-radius: .65rem; }
.step .glyph .icon { width: 1.25rem; height: 1.25rem; }
.step .name { white-space: normal; }

/* ---------- A phone: the content runs the whole height, under three floating glass surfaces ----------
   The top (Blu, who is in a chat now, the notices), the box she writes in with its reply buttons, and the tab bar. Each
   screen is padded by their heights (--headh, --foot, --navspace: set by fitBars), so nothing sits under glass at rest. Under
   the clock, a strip of the page's own colour: content never reads behind the phone's status bar.
   --topspace is how far the top sits from the screen's edge, as the tab bar sits at least .6rem from the foot; a screen's
   padding counts it, or its first card would touch the top (Michael, 2026-10-17). */
@media (max-width: 59.99rem) {
  :root { --navspace: calc(var(--nav) + max(.6rem, env(safe-area-inset-bottom)) + .45rem); --topspace: max(.6rem, calc(env(safe-area-inset-top) + .45rem)); }   /* on the page, not #shell: the toast lives outside it */
  #shell > #nav { position: absolute; left: .7rem; right: .7rem; bottom: max(.6rem, env(safe-area-inset-bottom)); height: var(--nav); padding: .2rem .3rem; border-radius: 999px;
                  align-items: center; z-index: 6; }
  .pane { position: relative; }
  #chat::before, #panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--topspace); z-index: 5; pointer-events: none;
                                  background: linear-gradient(var(--bg) 70%, transparent); }
  #panel::before { background: linear-gradient(var(--group) 70%, transparent); }
  #chat > .msgwrap { position: absolute; inset: 0; }
  #msgs { padding-top: calc(var(--topspace) + var(--headh, 4.5rem) + .7rem); padding-bottom: calc(var(--foot, 4rem) + var(--navspace) + .6rem);
          scroll-padding: calc(var(--topspace) + var(--headh, 4.5rem) + .7rem) 0 calc(var(--foot, 4rem) + var(--navspace) + .6rem); }
  #down { bottom: calc(var(--foot, 4rem) + var(--navspace) + .6rem); }
  #chat > #chathead { position: absolute; left: .55rem; right: .55rem; top: var(--topspace); z-index: 4; border-radius: 1.45rem; }
  #chathead .top { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding-top: .5rem; min-height: 3.4rem; z-index: 2; }
  #chathead .lstrip { background: none; box-shadow: inset 0 .5px 0 var(--sep); }
  #chathead #strips > :last-child { border-radius: 0 0 1.45rem 1.45rem; }
  #chat > #chatfoot { position: absolute; left: .55rem; right: .55rem; bottom: var(--navspace); z-index: 4; border-radius: 1.45rem; padding: .1rem 0; }
  #chatfoot #pills, #chatfoot #pending, #chatfoot #pointing, #chatfoot #sharedin { padding-left: .55rem; padding-right: .55rem; }
  #chatfoot #replying { margin: 0 .55rem; }
  #chatfoot #composer { padding: .4rem .45rem; }
  #chatfoot #say { background: var(--fill); box-shadow: none; }
  #chatfoot #say:focus { box-shadow: inset 0 0 0 1px var(--sep); }
  #chatfoot #composer > .round:last-child { right: .75rem; bottom: .65rem; }
  #panel > #panelhead { position: absolute; left: .55rem; right: .55rem; top: var(--topspace); z-index: 4; border-radius: 1.45rem; padding-top: .5rem; min-height: 3.4rem; }
  #panel > #panelbody { padding-top: calc(var(--topspace) + var(--headh, 4.5rem) + 1rem); padding-bottom: 0;
                        scroll-padding: calc(var(--topspace) + var(--headh, 4.5rem) + 1rem) 0 calc(var(--foot, 0px) + var(--navspace) + 1.6rem); }
  #panel > #panelbody::after { height: calc(var(--foot, 0px) + var(--navspace) + .5rem); }   /* clears the docked action and the tab bar */
  #panel > #panelfoot { position: absolute; left: 0; right: 0; bottom: var(--navspace); z-index: 4; background: none; padding: .35rem .7rem .3rem; }
  #panel > #panelfoot::before { display: none; }
  #panelbody > .posts-top { top: -.3rem; }   /* sticky counts from inside the screen's padding, which already clears the floating top */
  /* Slides between screens (slide in app.js): only the screen on show moves, as one picture; the tab bar stays where it is */
  #shell[data-view="chat"] > #chat, #shell:not([data-view="chat"]) > #panel { view-transition-name: pane; }
  #shell > #nav { view-transition-name: tabs; }
  /* While she types (keyboardWatch): the keyboard is where the tab bar was, and what floated over the tab bar sits on the keyboard */
  #shell.keyboard { --navspace: .45rem; }
  #shell.keyboard > #nav { display: none; }
  #toast { bottom: calc(var(--navspace) + 5rem); }
  /* the three surfaces: solid, or frost and glass */
  #shell > #nav, #chat > #chathead, #chat > #chatfoot, #panel > #panelhead { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: var(--glass-shadow), inset 0 0 0 .5px var(--glass-line), inset 0 1px 0 var(--glass-rim); }
  :root:is([data-fx="frost"], [data-fx="glass"]) :is(#shell > #nav, #chat > #chathead, #chat > #chatfoot, #panel > #panelhead) {
    background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
}
@media (max-width: 59.99rem) and (prefers-contrast: more) {
  :root:is([data-fx]) :is(#shell > #nav, #chat > #chathead, #chat > #chatfoot, #panel > #panelhead) { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1.5px var(--ink); }
}

/* ---------- A wide screen: a sidebar, the chat, and an inspector beside it ---------- */
@media (min-width: 60rem) {
  html { font-size: 15px; }
  #shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr) clamp(24rem, 26vw, 26rem); grid-template-rows: 100dvh; }
  .pane, #shell[data-view] #chat, #shell[data-view] #panel { display: flex; }
  #nav { order: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; gap: 1px; padding: 1.1rem .7rem .9rem; background: var(--group);
         backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: .5px 0 0 var(--sep); }
  #nav .brand { display: flex; align-items: center; gap: .65rem; padding: .1rem .55rem 1.2rem; }
  #nav .brand .mark { width: 2.1rem; height: 2.1rem; }
  #nav .brand b { font-size: var(--t-head); letter-spacing: var(--k-head); font-weight: var(--strong); display: block; line-height: 1.2; }
  #nav .brand span { color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); display: block; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #nav .brand .wordmark { color: inherit; font-size: inherit; letter-spacing: inherit; max-width: none; overflow: visible; }   /* the name, not the muted line under it */
  .navbtn { flex: none; flex-direction: row; justify-content: flex-start; gap: .65rem; padding: .48rem .6rem; font-size: var(--t-body); letter-spacing: var(--k-body); font-weight: 500; border-radius: .5rem; color: var(--ink); }
  .navbtn .icon { width: 1.25rem; height: 1.25rem; color: var(--blue); }
  .navbtn:hover { background: var(--fill); }
  .navbtn.on { background: var(--fill2); color: var(--ink); font-weight: var(--strong); }
  .badge { position: static; margin-left: auto; background: none; color: var(--muted); font-size: var(--t-foot); letter-spacing: var(--k-foot); font-weight: 500; }
  #nav .foot { display: flex; flex-direction: column; gap: .15rem; margin-top: auto; padding: .8rem .85rem; background: var(--card); border-radius: .75rem; font-size: var(--t-foot); letter-spacing: var(--k-foot); }
  #nav .foot b { font-weight: var(--strong); font-size: var(--t-sub); letter-spacing: var(--k-sub); }
  #nav .foot span { color: var(--muted); }
  #nav .foot button { border: 0; background: none; color: var(--blue); font-weight: var(--strong); padding: 0; margin-top: .35rem; text-align: left; }
  #nav .foot:empty { display: none; }
  #chat { box-shadow: .5px 0 0 var(--sep); z-index: 1; }
  .top { padding-left: 1.4rem; padding-right: 1.4rem; }
  #msgs, #pills, #pending, #composer { padding-left: max(1.4rem, calc((100% - 44rem) / 2)); padding-right: max(1.4rem, calc((100% - 44rem) / 2)); }
  #replying { margin-left: max(1.4rem, calc((100% - 44rem) / 2)); margin-right: max(1.4rem, calc((100% - 44rem) / 2)); }
  #msgs { padding-top: 1.4rem; }
  #composer { padding-bottom: 1.1rem; }
  #composer > .round:last-child { right: calc(max(1.4rem, (100% - 44rem) / 2) + .25rem); bottom: 1.35rem; }
  .bubble, .thumbs, .vn, .said { max-width: 31rem; }
  #panel > header { padding: 1.15rem 1.2rem .6rem; }
  #panel > header h1 { font-size: var(--t-title2); letter-spacing: var(--k-title2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #panelbody { padding: .4rem 1.2rem 0; }
  /* A wide screen has no thumb to reach for: a screen's main action sits in its header, beside its name, as a toolbar's does. */
  #panel > header .btn.dock { width: auto; flex: none; min-height: 2.1rem; padding: .3rem .8rem; font-size: var(--t-sub); letter-spacing: var(--k-sub); border-radius: .6rem; }
  #panelfoot { display: none; }
  #panel .seg button { padding-left: .3rem; padding-right: .3rem; }   /* every choice in view in the narrower column: To pack to Cancelled */
  #toast { bottom: 5.5rem; }
}

/* ---------- Slides between screens (slide in app.js) ----------
   A page she opens comes in from the right over the screen she was on, which steps back a little and dims; going back, the
   page goes away to the right and the screen under it comes forward. Everything else holds still: the page around them and
   the tab bar. The pictures are laid one over the other, never blended (mix-blend-mode), and the one on top casts the shadow. */
::view-transition-old(root), ::view-transition-new(root), ::view-transition-old(tabs), ::view-transition-new(tabs), ::view-transition-group(tabs) { animation: none; }
::view-transition-group(pane) { animation-duration: .34s; }
::view-transition-old(pane), ::view-transition-new(pane) { mix-blend-mode: normal; animation-duration: .34s; animation-timing-function: cubic-bezier(.2, .9, .2, 1); animation-fill-mode: both; }
:root[data-slide="in"]::view-transition-old(pane) { animation-name: slide-under; }
:root[data-slide="in"]::view-transition-new(pane) { animation-name: slide-over; }
:root[data-slide="out"]::view-transition-old(pane) { animation-name: slide-off; animation-duration: .3s; z-index: 1; }
:root[data-slide="out"]::view-transition-new(pane) { animation-name: slide-up; animation-duration: .3s; }
@keyframes slide-over { from { transform: translateX(100%); box-shadow: -.6rem 0 1.6rem rgba(0, 0, 0, .18); } to { box-shadow: -.6rem 0 1.6rem rgba(0, 0, 0, 0); } }
@keyframes slide-under { to { transform: translateX(-28%); filter: brightness(.9); } }
@keyframes slide-off { from { box-shadow: -.6rem 0 1.6rem rgba(0, 0, 0, .18); } to { transform: translateX(100%); box-shadow: -.6rem 0 1.6rem rgba(0, 0, 0, 0); } }
@keyframes slide-up { from { transform: translateX(-28%); filter: brightness(.9); } }
