@font-face { font-family: 'Big Shoulders'; src: url(fonts/bigshoulders.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Josefin Sans'; src: url(fonts/josefin.woff2) format('woff2'); font-weight: 100 700; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(fonts/archivo.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #110c13;
  --tile: #1c161f;
  --tile-2: #231c27;
  --text: #f7f2ee;
  --muted: #a99fae;
  --faint: #6f6574;
  --hair: rgba(255, 255, 255, .08);
  --accent: #ff8a66;
  --paper: #f3ece4;
  --ink: #1b1220;
  --display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --kick: 'Josefin Sans', 'Century Gothic', sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Archivo, system-ui, sans-serif;
  --r-sm: 8px;
  --r-lg: 18px;
  --gutter: 16px;
  --nav: 52px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 17px/1.47 var(--ui); letter-spacing: -.01em; overflow-x: hidden; }
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.label { font: 600 11px/1.2 var(--kick); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0; }
.label.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.43; }

.nav {
  position: sticky; top: 0; z-index: 20; height: calc(var(--nav) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(17, 12, 19, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand img { height: 30px; width: auto; display: block; }
.nav-actions { display: flex; gap: 4px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center;
  transition: transform .12s ease, background .2s ease;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dot-badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--ink); font: 700 11px/18px var(--ui); letter-spacing: 0; text-align: center; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.view { display: grid; gap: 40px; padding-bottom: 64px; }

.hero-tile { position: relative; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); min-height: 260px; display: flex; align-items: flex-end; }
.hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.62); }
.hero-tile::before { content: ''; position: absolute; inset: 0; background: #2b2140; mix-blend-mode: color; opacity: .5; }
.hero-tile::after { content: ''; position: absolute; inset: 0; background: url(img/grain.png); background-size: 256px; mix-blend-mode: overlay; opacity: .1; }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 72px var(--gutter) 28px; display: grid; gap: 10px; }
.hero-in h1 { font: 600 clamp(34px, 7vw, 56px)/1.07 var(--ui); letter-spacing: -.03em; margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 0;
}
.chip.on { background: var(--accent); color: var(--ink); }

.sec { display: grid; gap: 14px; min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { font: 600 24px/1.15 var(--ui); letter-spacing: -.025em; margin: 0; }
.sec-head a, .link { color: var(--accent); font-size: 15px; font-weight: 500; background: none; border: 0; padding: 0; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid transparent; background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .12s ease, opacity .2s;
}
.pill:active { transform: scale(.95); }
.pill.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.pill.quiet { background: rgba(255, 255, 255, .08); color: var(--text); }
.pill:disabled { opacity: .5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--tile); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 10px; min-width: 0; }
.card h3 { font: 600 19px/1.25 var(--ui); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.card p { margin: 0; }
.card.wait { border-left: 3px solid var(--accent); }

.list { background: var(--tile); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.row { border-top: 1px solid var(--hair); }
.row:first-child { border-top: 0; }
.row > summary, .row > a { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; min-height: 60px; cursor: pointer; list-style: none; }
.row > summary::-webkit-details-marker { display: none; }
.row-main { min-width: 0; display: grid; gap: 2px; }
.row-title { font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--faint); font-size: 13px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chev { width: 8px; height: 8px; border-right: 1.7px solid var(--faint); border-bottom: 1.7px solid var(--faint); transform: rotate(-45deg); transition: transform .2s; }
.row[open] .chev { transform: rotate(45deg); }
.row-body { padding: 0 18px 18px 44px; display: grid; gap: 12px; }
.st { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.st.run { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 138, 102, .18); }
.st.wait { background: var(--text); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.tag.main { background: rgba(255, 138, 102, .16); color: var(--accent); }

dl.facts { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; font-size: 15px; }
dl.facts dt { color: var(--faint); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.report { white-space: pre-wrap; font-size: 14px; color: var(--muted); max-height: 280px; overflow: auto; background: rgba(0, 0, 0, .22); border-radius: var(--r-sm); padding: 12px 14px; }
details.more > summary { cursor: pointer; list-style: none; color: var(--accent); font-size: 15px; font-weight: 500; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ' ›'; }
details.more[open] > summary::after { content: ' ‹'; }
details.more > .report, details.more > pre { margin-top: 10px; }
code { font: 500 .86em ui-monospace, SFMono-Regular, Consolas, monospace; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }

.composer { display: grid; gap: 10px; }
.composer textarea, .field {
  width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; resize: none; outline: none; min-height: 48px;
}
.composer textarea:focus, .field:focus { border-color: var(--accent); }
.composer .actions { justify-content: flex-end; }

.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 22px; overflow-x: auto; padding: 8px 4px 18px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.reel::-webkit-scrollbar { display: none; }
.postcard { display: block; scroll-snap-align: start; }
.pc { background: var(--paper); padding: 8px 8px 10px; transform: rotate(-2deg); box-shadow: rgba(0, 0, 0, .35) 3px 5px 30px 0; transition: transform .25s ease; }
.postcard:nth-child(even) .pc { transform: rotate(1.6deg); }
.postcard:hover .pc { transform: rotate(0); }
.pc img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pc-foot { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); padding-top: 6px; }
.pc-num { font: 900 26px/.9 var(--display); }
.pc-phase { font: 600 9px/1 var(--kick); letter-spacing: .22em; text-transform: uppercase; color: #7a4a3c; }
.postcard h3 { font: 600 15px/1.3 var(--ui); letter-spacing: -.015em; margin: 14px 2px 0; color: var(--text); }

.sheet-back { position: fixed; inset: 0; z-index: 30; background: rgba(5, 3, 6, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .18s ease; }
.sheet {
  position: fixed; z-index: 31; left: 50%; top: calc(var(--nav) + env(safe-area-inset-top) + 8px); transform: translateX(-50%);
  width: min(720px, calc(100% - 2 * var(--gutter))); max-height: calc(100vh - var(--nav) - 32px); overflow: auto;
  background: rgba(28, 22, 31, .94); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--hair); border-radius: 22px; padding: 18px; animation: drop .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet.menu { left: auto; right: var(--gutter); transform: none; width: min(320px, calc(100% - 2 * var(--gutter))); padding: 8px; animation: fade .18s ease; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h2 { font: 600 20px/1.2 var(--ui); letter-spacing: -.02em; margin: 0; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vtile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile-2); }
.vtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.72); }
.vtile-in { position: absolute; inset: auto 0 0 0; padding: 12px; display: grid; gap: 4px; background: linear-gradient(transparent, rgba(10, 6, 12, .85)); }
.vtile-num { font: 900 34px/.85 var(--display); }
.vtile-title { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtile.on { outline: 2px solid var(--accent); }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; border-radius: 12px; font-size: 16px; text-align: left; }
.menu-item:hover { background: rgba(255, 255, 255, .06); }
.menu-item .muted { font-size: 13px; }
.menu-sep { height: 1px; background: var(--hair); margin: 6px 8px; }

.v-hero { display: grid; gap: 6px; padding-top: 28px; }
.logo-num {
  font: 900 clamp(84px, 20vw, 140px)/.84 var(--display);
  background: linear-gradient(180deg, #4144c0, #8e3bc0 22%, #e033a5 45%, #ff6193 62%, #ff7474 78%, #ff964d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v-hero h1 { font: 600 clamp(28px, 5.4vw, 44px)/1.1 var(--ui); letter-spacing: -.03em; margin: 0; max-width: 24ch; }
.two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.player { width: 100%; max-height: 70vh; background: #000; border-radius: 14px; display: block; }
.shots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.shots img, .sheet-img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.files { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair); }
.files li:first-child { border-top: 0; }
.files li span:last-child { color: var(--faint); white-space: nowrap; }
pre.text { white-space: pre-wrap; margin: 0; font: 400 15px/1.55 var(--ui); max-height: 60vh; overflow: auto; }

.thread { display: grid; gap: 12px; }
.bubble { max-width: min(560px, 88%); display: grid; gap: 6px; }
.bubble.me { justify-self: end; }
.bubble-in { padding: 12px 16px; border-radius: 18px; background: var(--tile-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me .bubble-in { background: var(--accent); color: var(--ink); border-bottom-right-radius: 6px; }
.bubble.them .bubble-in { border-bottom-left-radius: 6px; }
.bubble-meta { font-size: 12px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.bubble.me .bubble-meta { justify-content: flex-end; }
.dock { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 24%); }
.dock .composer { background: rgba(28, 22, 31, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--hair); border-radius: 22px; padding: 10px; }
.dock textarea { background: transparent; border: 0; }
.dock-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
select.field { appearance: none; -webkit-appearance: none; width: auto; min-height: 36px; padding: 6px 30px 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a99fae' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--hair); }
.switch:first-child { border-top: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(255, 255, 255, .16); position: relative; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }

.login { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); position: relative; }
.login::before { content: ''; position: fixed; inset: 0; background: linear-gradient(rgba(17, 12, 19, .55), rgba(17, 12, 19, .9)), url(img/bg_vice.jpg) center / cover; filter: saturate(.6); z-index: -1; }
.login-box { width: min(360px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; }
.login-box img { width: 180px; height: auto; }
.login-box form { width: 100%; display: grid; gap: 10px; }
.err { color: var(--accent); min-height: 1.3em; margin: 0; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; animation: fade .2s ease; }
.empty { color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
  .row-body { padding-left: 18px; }
  .hero-tile { min-height: 230px; }
  .sheet { border-radius: 18px; padding: 14px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .hero-tile { min-height: 320px; margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .view { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.view > *, .sec, .thread, .bubble, .dock { min-width: 0; }
.dock-row select { flex: 1 1 auto; width: 0; min-width: 0; max-width: 100%; text-overflow: ellipsis; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill .ico { width: 16px; height: 16px; }
.pill.small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.pill svg:not(.ico) { width: 14px; height: 14px; }
.pill svg .fill { fill: currentColor; stroke: none; }
.empty.pad { padding: 18px; }
.v-hero.compact { padding-top: 22px; }
.fine { margin: 6px 0 0; font-size: 12px; color: var(--faint); }

.card.task { gap: 12px; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.task-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.task-foot .link { font-size: 13px; }
.ctx { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.hint-line { margin: 0; font-size: 14px; color: var(--muted); }

.steps-mini { display: flex; gap: 4px; align-items: center; }
.sm { width: 18px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.sm.you { width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.sm.done { background: var(--accent); box-shadow: none; }
.sm.cur { background: var(--text); box-shadow: none; }
.sm.you.cur { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 102, .25); }
.postcard .steps-mini { margin: 8px 2px 0; }

.list .row-link { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; min-height: 60px; border-top: 1px solid var(--hair); }
.list .row-link:first-child { border-top: 0; }

.wf { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.wf-row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; }
.wf-row::before { content: ""; position: absolute; left: 14px; top: -9px; height: 18px; width: 2px; background: rgba(255, 255, 255, .1); }
.wf-row:first-child::before { display: none; }
.wf-row.done::before, .wf-row.cur::before { background: rgba(255, 138, 102, .5); }
.wf-node { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); position: relative; z-index: 1; background: var(--tile); }
.wf-row.done .wf-node { background: var(--accent); color: var(--ink); box-shadow: none; }
.wf-row.done .wf-node .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.wf-row.cur .wf-node { color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.wf-main { display: grid; gap: 1px; min-width: 0; }
.wf-label { font-weight: 600; letter-spacing: -.015em; }
.wf-row:not(.done):not(.cur) .wf-label { color: var(--muted); }
.wf-sub { font-size: 13px; color: var(--faint); }
.wf-row.cur .wf-sub { color: var(--accent); }
.tick { position: relative; width: 28px; height: 28px; flex: none; cursor: pointer; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tick span { position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background .15s; }
.tick input:checked + span { background: var(--accent); box-shadow: none; }
.tick input:checked + span::after { content: ""; position: absolute; left: 10px; top: 5px; width: 6px; height: 12px; border: solid var(--ink); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.tick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.thread { display: grid; gap: 22px; padding-bottom: 12px; }
.turn { display: grid; gap: 10px; }
.chip-in { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(27, 18, 32, .14); vertical-align: 1px; }
.chip-in .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.reply { display: grid; gap: 10px; max-width: min(680px, 100%); }
.act { display: inline-flex; align-items: center; gap: 10px; justify-self: start; max-width: 100%; border: 0; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--muted); text-align: left; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.act.run .act-dot { background: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
.act.ok .act-dot { background: #7fd0a0; }
.act.err .act-dot { background: #ff6b6b; }
.act.wait .act-dot { background: var(--text); }
.act-title { color: var(--text); font-weight: 600; white-space: nowrap; }
.act-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act[aria-expanded="true"] .chev { transform: rotate(45deg); }
@keyframes breathe { 50% { opacity: .35; } }
.act-steps { list-style: none; margin: 0 0 0 16px; padding: 4px 0 0 6px; display: grid; gap: 8px; border-left: 2px solid var(--hair); }
.act-steps li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding-left: 12px; font-size: 14px; color: var(--muted); }
.act-steps li .ico { width: 16px; height: 16px; margin-top: 2px; }
.act-steps time { font-size: 12px; color: var(--faint); }
.answer { font-size: 16px; line-height: 1.5; }
.answer p { margin: 0 0 10px; }
.answer p:last-child { margin-bottom: 0; }
.answer ul { margin: 0 0 10px; padding-left: 20px; }
.answer li { margin: 3px 0; }
.answer pre, .bubble-in pre { white-space: pre-wrap; background: rgba(0, 0, 0, .3); border-radius: var(--r-sm); padding: 10px 12px; font: 500 13px/1.5 ui-monospace, Consolas, monospace; overflow-x: auto; }
.bubble-in p { margin: 0 0 6px; }
.bubble-in p:last-child { margin: 0; }

.composer .dock-row { gap: 10px; }
.dock-btns { display: flex; gap: 8px; align-items: center; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; transition: transform .12s ease, background .2s; }
.round:active { transform: scale(.94); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.round svg .fill { fill: currentColor; stroke: none; }
.round.send { background: var(--accent); color: var(--ink); }
.round.send:disabled { opacity: .5; }
.round.mic { background: rgba(255, 255, 255, .08); color: var(--text); }
.round.mic svg:last-child { display: none; }
.composer.listening .round.mic { background: var(--text); color: var(--ink); }
.composer.listening .round.mic svg:first-child { display: none; }
.composer.listening .round.mic svg:last-child { display: block; }
.listen { display: none; align-items: center; gap: 10px; font-size: 13px; color: var(--accent); padding: 2px 4px; }
.composer.listening .listen { display: flex; }
.bars { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--accent); animation: eq .9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .15s; }
.bars i:nth-child(3) { animation-delay: .3s; }
.bars i:nth-child(4) { animation-delay: .45s; }
.bars i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 50% { height: 18px; } }
.card .composer, .row-body .composer { background: rgba(0, 0, 0, .18); border-radius: 16px; padding: 10px; }
.card .composer textarea, .row-body .composer textarea { background: transparent; border: 0; padding: 6px 8px; }

.upbar { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 41; width: min(420px, calc(100% - 32px)); background: var(--tile-2); border: 1px solid var(--hair); border-radius: 14px; padding: 10px 14px 14px; font-size: 13px; color: var(--muted); }
.upbar span { display: block; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upbar i { display: block; height: 4px; border-radius: 2px; background: var(--accent); transition: width .2s; }
.vtile-step { font-size: 12px; color: var(--accent); font-weight: 600; }
.vtile .steps-mini { margin-top: 4px; }
.vtile .sm { width: 12px; height: 4px; }
.vtile .sm.you { width: 7px; height: 7px; }
#btn-inbox.busy::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
.chip .st { width: 8px; height: 8px; }

.st.inline { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.upbar i { width: 0; }

.login-code { width: 100%; display: grid; gap: 10px; justify-items: center; }
.login-code .pill { width: 100%; }
.login-num { font: 900 64px/1 var(--display); letter-spacing: .08em; margin: 4px 0; color: var(--text); }
#login-wait { display: grid; gap: 6px; justify-items: center; }
#login-wait[hidden] { display: none; }
