/* Fonts are self-hosted (SIL Open Font License): no request leaves for third parties. */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-opsz-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* ---- Prototype styles, copied as they are (source of truth for the look). ---- */
/* Layout: two phones (Ana, Bruno) side by side driven by one shared mission, plus a backstage panel with state, log, operator desk and what each side receives. Single dark theme by choice: the brand is a night-time "cofre". */
:root {
  --ink: #0f131b;
  --panel: #171d28;
  --panel-2: #1f2735;
  --line: #2c3547;
  --text: #ece7dc;
  --muted: #9aa1b0;
  --brass: #c9a35b;
  --brass-ink: #1b1508;
  --good: #73c194;
  --bad: #e5826f;
  --warn: #e3b75e;
  --paper: #ebe3cf;
  --paper-ink: #2b2417;
  --stamp: #a8372b;
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--f-body); font-size: 15px; line-height: 1.45; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 650; text-wrap: balance; margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 20px 24px 12px; }
.brand h1 { font-size: 26px; letter-spacing: -0.01em; }
.brand h1 em { font-style: italic; color: var(--brass); font-weight: 500; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.clock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.clock .lbl { font-size: 12px; color: var(--muted); }
.clock strong { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 150px; }
.clock .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.hint { margin: 0 24px 16px; padding: 10px 14px; border-left: 3px solid var(--brass); background: var(--panel); border-radius: 0 10px 10px 0; font-size: 14px; }
.hint b { color: var(--brass); font-weight: 600; }

.stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; padding: 0 24px 40px; align-items: start; }
.col > h2 { font-size: 17px; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.col > h2 small { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--muted); }
.phone { width: 100%; max-width: 380px; height: 760px; margin: 0 auto; background: #06080c; border-radius: 34px; padding: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.screen { height: 100%; border-radius: 26px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.statusbar { display: flex; justify-content: space-between; padding: 8px 18px 4px; font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.appbar { padding: 6px 18px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appbar .logo { font-family: var(--f-display); font-size: 16px; }
.appbar .logo em { color: var(--brass); font-style: italic; font-weight: 500; }
.body { flex: 1; overflow-y: auto; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.foot { border-top: 1px solid var(--line); padding: 10px 18px; display: flex; justify-content: space-between; font-size: 13px; }
.foot button { background: none; border: 0; color: var(--muted); padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; }

.seg { display: flex; background: var(--panel-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--text); }

h3 { font-size: 20px; }
.lead { color: var(--muted); margin: -6px 0 0; font-size: 14px; }
.flat { margin: 0; }
.small { font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lab { font-size: 13px; font-weight: 600; }
.field .help { font-size: 12px; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="url"] { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
input[type="range"] { width: 100%; accent-color: var(--brass); }
.money { font-family: var(--f-display); font-size: 30px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 3px; accent-color: var(--brass); width: 16px; height: 16px; flex: none; }

.btn { border-radius: 12px; padding: 11px 14px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 600; text-align: center; }
.btn.primary { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; font-weight: 500; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > .btn { flex: 1; }
.err { color: var(--bad); font-size: 13px; }
.ok { color: var(--good); font-size: 13px; }

.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card.accent { border-color: var(--brass); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.live { border-color: var(--brass); color: var(--brass); }
.pill.good { border-color: var(--good); color: var(--good); }
.pill.bad { border-color: var(--bad); color: var(--bad); }
.pill.phase { border-color: var(--warn); color: var(--warn); font-size: 11px; padding: 1px 7px; }
.code { font-family: var(--f-mono); letter-spacing: .06em; }
.note { background: var(--brass); color: var(--brass-ink); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.note small { display: block; opacity: .7; font-size: 11px; }
.lock { border-left: 3px solid var(--brass); padding: 8px 10px; background: var(--ink); border-radius: 0 10px 10px 0; font-size: 12.5px; }
.lock strong { color: var(--brass); }

.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.item .t { font-weight: 600; font-size: 14px; }
.item .s { font-size: 12px; color: var(--muted); }
.item .p { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.item.sel { border-color: var(--brass); }
.item a { color: var(--brass); font-size: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; }
.choice input { accent-color: var(--brass); margin-top: 4px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--ink); border-radius: 12px; padding: 10px 12px; text-align: left; }
.opt[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.opt .price { font-family: var(--f-display); font-size: 18px; white-space: nowrap; }
.track { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.track li { position: relative; font-size: 13px; }
.track li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--brass); }
.track li:first-child::before { background: var(--brass); }
.track time { display: block; font-size: 11px; color: var(--muted); font-family: var(--f-mono); }

/* WhatsApp */
.wa { background: #0b141a; flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.wa .who { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #1f2c33; font-size: 13px; }
.wa .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brass); color: var(--brass-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 650; }
.wa .verified { color: #25d366; font-size: 11px; }
.bubble { background: #1f2c34; border-radius: 4px 12px 12px 12px; padding: 9px 11px; font-size: 13px; max-width: 92%; white-space: pre-line; }
.bubble.me { align-self: flex-end; background: #005c4b; border-radius: 12px 4px 12px 12px; }
.bubble time { display: block; text-align: right; font-size: 10px; color: #8696a0; margin-top: 4px; }
.empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto 0; }

/* Dossiê Noir: the one bold place */
.dossier { background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 16px 16px 14px; font-family: var(--f-mono); font-size: 13px; position: relative; box-shadow: 0 6px 0 -2px #cfc4aa, 0 12px 22px rgba(0,0,0,.35); transform: rotate(-0.6deg); }
.dossier::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--stamp); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.dossier .head { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px dashed #b5a988; padding-bottom: 6px; margin-bottom: 10px; }
.dossier .q { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.dossier .opts { display: flex; flex-direction: column; gap: 6px; }
.dossier .o { font-family: var(--f-mono); text-align: left; background: #f5efdf; border: 1px solid #c8bc9c; color: var(--paper-ink); border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.dossier .o:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.dossier .o.wrong { border-color: var(--stamp); color: var(--stamp); }
.dossier .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; gap: 8px; flex-wrap: wrap; }
.dossier .meta button { font-family: var(--f-mono); font-size: 12px; background: none; border: 1px solid #b5a988; border-radius: 4px; padding: 4px 8px; color: var(--paper-ink); }
.dossier .meta button:disabled { opacity: .4; cursor: not-allowed; }
.dossier .msg { margin-top: 8px; font-size: 12px; }
.dossier .intercept { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stamp); margin-bottom: 6px; }
.stampbox { align-self: flex-start; display: inline-block; border: 2px solid var(--stamp); color: var(--stamp); padding: 2px 8px; transform: rotate(-4deg); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; font-family: var(--f-mono); }
.clues { display: flex; flex-direction: column; gap: 6px; }
.clue { display: flex; gap: 8px; font-size: 13px; }
.clue span:first-child { color: var(--brass); font-family: var(--f-mono); }
.voucher { border: 2px dashed var(--brass); border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.voucher .code { font-size: 20px; color: var(--brass); }

/* dialog inside Bruno's phone */
.overlay { position: absolute; inset: 0; background: rgba(6,8,12,.72); display: flex; align-items: flex-end; }
.sheet { background: var(--panel); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* panel */
.panel { display: flex; flex-direction: column; gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.box.op { border-color: var(--warn); }
.box h3 { font-size: 15px; font-family: var(--f-body); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.box .sub { font-size: 12px; color: var(--muted); margin: -6px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.steps li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 5px 8px; border-radius: 8px; color: var(--muted); }
.steps li .c { font-family: var(--f-mono); font-size: 11px; }
.steps li.done { color: var(--text); }
.steps li.now { background: var(--brass); color: var(--brass-ink); font-weight: 600; }
.steps li.hold { background: var(--warn); color: var(--brass-ink); font-weight: 600; }
.exits { display: flex; flex-wrap: wrap; gap: 6px; }
.exits .pill.on { border-color: var(--bad); color: var(--bad); }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.log li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: 12.5px; }
.log time { font-family: var(--f-mono); color: var(--muted); font-size: 11px; padding-top: 1px; }
.log .w { font-weight: 600; margin-right: 6px; }
.log .w.ana { color: #e7b6a8; } .log .w.bruno { color: #a9c8e8; } .log .w.servidor { color: var(--brass); } .log .w.whatsapp { color: #6fd39a; } .log .w.operador { color: var(--warn); } .log .w.loja { color: #c9b3e6; } .log .w.base { color: var(--warn); } .log .w.melhorenvio { color: #c9b3e6; }
pre { margin: 0; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; overflow-x: auto; white-space: pre; max-height: 300px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.order { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.order .addr { font-family: var(--f-mono); font-size: 12px; }
.order .addr.open { color: var(--warn); }

/* chase game */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; color: var(--text); }
.theme svg { color: var(--brass); }
.theme { position: relative; }
.theme .lvl { position: absolute; top: 10px; right: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.theme .lvl.l1, .theme .lvl.l2 { color: var(--good); border-color: var(--good); }
.theme .lvl.l3 { color: var(--warn); border-color: var(--warn); }
.theme .lvl.l4 { color: var(--bad); border-color: var(--bad); }
.theme strong { font-size: 14px; }
.theme span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.theme[aria-pressed="true"] { border-color: var(--brass); background: #2a2a24; box-shadow: inset 0 0 0 1px var(--brass); }
.theme:disabled { opacity: .45; cursor: not-allowed; }
.casebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.casebar .case { display: flex; gap: 8px; align-items: center; color: var(--brass); }
.casebar .case strong { color: var(--text); font-family: var(--f-display); font-size: 16px; }
.casebar small { color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.legdots { display: flex; gap: 5px; }
.legdots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); display: block; }
.legdots i.open { border-color: var(--brass); }
.legdots i.cur { background: var(--brass); box-shadow: 0 0 0 3px rgba(201,163,91,.25); }
.legdots i.ok { background: var(--good); border-color: var(--good); }
.legdots i.x { background: var(--bad); border-color: var(--bad); }
.legdots i.sk { background: var(--muted); border-color: var(--muted); }
.mapbox { flex: none; position: relative; border-radius: 10px; overflow: hidden; border: 3px solid #8a7550; box-shadow: 0 6px 18px rgba(0,0,0,.35); background: #cfd9cf; }
.mapbox .map { display: block; width: 100%; height: auto; max-height: 190px; }
.map .fresh { animation: fadein 1.4s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.mapbox .caught.gone { color: #3a3326; border-color: #3a3326; }
.maplegend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: -4px; }
.maplegend span { display: flex; align-items: center; gap: 6px; }
.maplegend i { width: 18px; height: 0; border-top: 2.5px dashed #c0473a; display: block; }
.maplegend i.lg-x { border-top-color: #6f9cc6; }
.reveal { border: 2px solid var(--brass); background: #2a2a24; border-radius: 12px; padding: 12px; }
.reveal p { margin: 4px 0 0; }
.mapbox .caught { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-12deg); font-family: var(--f-mono); font-weight: 600; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); border: 4px solid var(--stamp); padding: 4px 14px; border-radius: 6px; background: rgba(235,227,207,.8); }
.stop { background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.stop-h { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px dashed #b5a988; padding-bottom: 6px; }
.stop-h strong { color: var(--stamp); }
.stop-q { margin: 0; font-size: 14px; }
.stop .lab { color: var(--paper-ink); font-weight: 600; font-size: 13px; }
.stop .ok { color: #2f6b45; font-size: 13px; margin: 0; } .stop .err { color: var(--stamp); font-size: 13px; margin: 0; }
.stop.away { background: #ddd3bb; }
.stop .back { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.map .fadeout { animation: fadeout 1.4s ease-in forwards; }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
.stop .neutral { color: var(--paper-ink); font-size: 13px; margin: 0; font-family: var(--f-mono); }
.maplegend i.lg-p { border-top-color: #e8dcc0; }
.talk { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, #2b2417 0%, #14110b 100%); display: flex; flex-direction: column; overflow: hidden; }
.talk-bg { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 420px; height: 420px; opacity: .28; filter: saturate(.8); pointer-events: none; }
.talk-bg svg { width: 100%; height: 100%; }
.talk-scene { position: absolute; inset: 0; pointer-events: none; }
.talk-video { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: #0b0907; }
.talk-video img, .talk-video video { position: absolute; left: 0; top: calc(-7% - var(--shift, 0%)); width: 100%; height: 114%; object-fit: cover; object-position: 50% 0; }
.talk-video video { opacity: 0; transition: opacity .28s ease; }
.talk-video video.on { opacity: 1; }
.talk-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,.68) 0%, rgba(10,8,6,0) 14%, rgba(10,8,6,0) 52%, rgba(20,17,11,.45) 72%, rgba(20,17,11,.8) 100%); }
.talk-video + .talk-h { background: none; border-bottom-color: transparent; }
.talk.has-video .talk-chat { flex: none; height: 44%; margin-top: auto; justify-content: flex-start; }
.talk.has-video .talk-chat > :first-child { margin-top: auto; }
.talk.has-video .tbub { background: rgba(245,239,223,.74); -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.talk.has-video .tbub.me { background: rgba(0,92,75,.72); }
.talk.has-video .tbub.typing { background: rgba(245,239,223,.6); }
.talk.has-video .talk-chat { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 32px); mask-image: linear-gradient(180deg, transparent 0, #000 32px); }
@media (prefers-reduced-motion: reduce) { .talk-video video { display: none; } }
.talk-scene svg { width: 100%; height: 100%; display: block; }
.talk-scene + .talk-h { background: linear-gradient(180deg, rgba(10,8,6,.78), rgba(10,8,6,0)); border-bottom-color: transparent; }
.talk-h { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding: 18px 16px 10px; color: var(--paper); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid rgba(235,227,207,.15); }
.talk-h .role { font-size: 14px; color: var(--brass); }
.talk-chat { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow-y: auto; }
.tbub { align-self: flex-start; max-width: 84%; background: #f5efdf; color: var(--paper-ink); border-radius: 4px 14px 14px 14px; padding: 7px 12px 9px; font-size: 14px; line-height: 1.4; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.tbub[hidden] { display: none; }
.tbub.me { align-self: flex-end; background: #005c4b; color: #e9edef; border-radius: 14px 4px 14px 14px; }
.tbub .who { display: block; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #a8372b; margin-bottom: 2px; }
.tbub.me .who { color: #8fe3c9; text-align: right; }
.tbub .txt:empty::after, .tbub .txt { white-space: pre-wrap; }
.tbub.typing { display: flex; gap: 4px; padding: 11px 14px; }
.tbub.typing[hidden] { display: none; }
.tbub.typing i { width: 6px; height: 6px; border-radius: 50%; background: #6d5f43; animation: blink 1s infinite; }
.tbub.typing i:nth-child(2) { animation-delay: .2s; } .tbub.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.talk-end { position: relative; margin: 0 14px 16px; }
.talk-end[hidden] { display: none; }
.wit .tip { font-style: normal; font-size: 12px; color: #6d5f43; margin-top: 3px; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 4px; color: #6d5f43; font-size: 12px; text-decoration: underline; cursor: pointer; }
.stop .came { margin: 0; font-size: 13px; color: #6d5f43; }
.stop .came strong { color: var(--paper-ink); }
.dest span { display: flex; flex-direction: column; }
.dest small { font-size: 10.5px; color: #6d5f43; font-weight: 400; }
.dest.cameback { border-style: dashed; }
.dest.locked:disabled { text-decoration: none; opacity: .5; }
.fold { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; flex: none; }
.fold > summary { cursor: pointer; padding: 10px 12px; font-size: 13.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold-b { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.fold.notebook { background: #f3ecd8; color: var(--paper-ink); border-color: #c9b98e; box-shadow: inset 4px 0 0 #c9897b; padding: 0; }
.fold.notebook > summary { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; padding-left: 16px; }
.fold.notebook > summary span:first-child { flex: 1; }
.fold.notebook .fold-b { padding-left: 16px; background: repeating-linear-gradient(transparent 0 25px, #d6cbb0 25px 26px); }
.nb-count { color: var(--stamp); }
.rules { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.warrant { padding: 10px 12px; gap: 6px; }
.wit { padding: 4px 10px 4px 4px; grid-template-columns: 44px 1fr; }
.wit svg { width: 44px; height: 44px; }
.wit-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(201,163,91,.55); background: #1a1712; }
.flight { position: absolute; inset: 0; z-index: 6; background: rgba(12,10,6,.9); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; animation: flyin .45s cubic-bezier(.2,.8,.2,1) both; }
.flight.out { animation: flyout .4s ease-in both; }
.flight-h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); text-align: center; }
.mapbox.big .map { max-height: none; }
.mapbox .map.tall { max-height: 235px; }
@keyframes flyin { from { opacity: 0; transform: translateY(-28%) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes flyout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-28%) scale(.55); } }
.arrest { position: absolute; inset: 0; z-index: 7; background: radial-gradient(circle at 50% 42%, #3a3326 0%, #14110b 62%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--paper); overflow: hidden; animation: fadein .4s both; }
.arrest > * { animation-fill-mode: both; }
.arrest .ar-1 { margin: 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; animation: rise .5s both; }
.arrest .ar-fig { animation: rise .7s both; }
.arrest .sirens { position: absolute; inset: 0; pointer-events: none; animation: sirens .5s 5 both; }
.arrest .ar-stamp { font-family: var(--f-mono); font-weight: 600; font-size: 40px; letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); border: 5px solid var(--stamp); padding: 4px 18px; border-radius: 8px; transform: rotate(-10deg); background: rgba(235,227,207,.92); margin-top: -70px; animation: slam .35s cubic-bezier(.3,1.6,.5,1) both; }
.arrest .ar-cuffs { animation: rise .4s both; }
.arrest .ar-2 { margin: 0; font-size: 15px; animation: rise .5s both; }
.arrest .ar-btn { animation: rise .4s both; }
.cb-r { display: flex; align-items: center; gap: 8px; }
.howto-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--brass); background: transparent; color: var(--brass); font: 600 13px var(--f-mono); cursor: pointer; padding: 0; line-height: 1; }
.howto-sheet { max-height: 86%; overflow-y: auto; }
.howto-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.talk.has-video .talk-h, .talk-scene + .talk-h { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.7); }
.arrest.has-video .ar-2 { color: #f6f0e1; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.8); }
.arrest .ar-top { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.85); }
.inf-call { position: relative; height: 230px; margin: -6px -6px 12px; border-radius: 10px; overflow: hidden; background: #0b0907; }
.inf-call img.bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(14px) brightness(.55); }
.inf-call img.fg, .inf-call video { position: absolute; left: 50%; top: -6%; height: 150%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); object-fit: cover; }
.inf-call.orb img.fg, .inf-call.orb video { top: -14%; }
.inf-moment .inf-call img.bg { display: none; }
.inf-moment .inf-call img.fg, .inf-moment .inf-call video { left: 0; top: 0; width: 100%; height: 100%; transform: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 0; }
.inf-call::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); pointer-events: none; }
.inf-call::after { content: ""; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 0 1px rgba(201,163,91,.5), inset 0 0 40px rgba(0,0,0,.6); border-radius: 10px; pointer-events: none; }
.inf-tag { position: absolute; z-index: 2; top: 10px; left: 10px; font: 600 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #c9a35b; background: rgba(10,8,6,.65); padding: 4px 8px; border-radius: 4px; }
.inf-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d33b2c; margin-right: 6px; vertical-align: 1px; animation: blinkDot 1.2s steps(1) infinite; }
@keyframes blinkDot { 50% { opacity: 0; } }
.inf-moment { justify-content: flex-end; padding: 0; }
.inf-moment .inf-call { position: absolute; inset: 0; width: auto; aspect-ratio: auto; height: auto; margin: 0; border-radius: 0; }
.inf-moment .inf-call::after { border-radius: 0; box-shadow: inset 0 -260px 120px -60px rgba(11,9,7,.95); }
.inf-moment .inf-tag { top: 18px; left: 16px; }
.inf-moment .ar-text { z-index: 2; }
.inf-line { min-height: 3em; font-size: 17px; line-height: 1.45; color: #f6f0e1; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.95); }
.inf-moment .ar-btn { animation: none; }
.replay { position: absolute; left: 10px; bottom: 10px; z-index: 3; border: 1px solid rgba(201,163,91,.6); background: rgba(10,8,6,.72); color: #f3ecd9; font: 600 12px var(--f-sans, system-ui); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.replay:hover { background: rgba(10,8,6,.88); }
#ops:empty { display: none; }
body.ops-open { overflow: hidden; }
#ops { position: fixed; inset: 0; z-index: 50; background: rgba(8,10,14,.86); backdrop-filter: blur(4px); overflow-y: auto; padding: 24px; }
.ops-wrap { max-width: 1120px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.ops-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ops-top h2 { font-size: 26px; margin: 2px 0; }
.ops-kicker { display: block; font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.ops-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ops-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 108px; display: flex; flex-direction: column; gap: 8px; }
.ops-col h4 { margin: 0; font: 600 12px var(--f-body); color: var(--muted); display: flex; justify-content: space-between; }
.ops-col h4 span { font-family: var(--f-mono); color: var(--text); }
.ops-card { text-align: left; background: var(--ink); border: 1px solid var(--brass); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.ops-card strong { font-family: var(--f-mono); font-size: 13px; } .ops-card span { font-size: 13px; } .ops-card small { color: var(--muted); font-size: 11px; }
.ops-empty { margin: 0; color: var(--muted); font-size: 12px; opacity: .7; }
.ops-detail { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ops-detail section { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.ops-detail h4 { margin: 0; font: 650 16px var(--f-display); }
.ops-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ops-box { font: 700 30px var(--f-mono); letter-spacing: .06em; color: var(--brass); }
.ops-item { display: flex; flex-direction: column; gap: 2px; } .ops-item span { color: var(--muted); font-size: 13px; } .ops-item a { color: var(--brass); font-size: 13px; }
.ops-privacy { margin: 0; font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--brass); padding: 6px 10px; background: rgba(201,163,91,.06); border-radius: 0 6px 6px 0; }
.ops-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.ops-check input { width: 18px; height: 18px; accent-color: var(--brass); margin-top: 1px; flex: none; }
.ops-seal { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; align-items: center; } .ops-seal span { color: var(--muted); } .ops-seal input { accent-color: var(--brass); }
.ops-rec .rec { font: 700 12px var(--f-mono); color: #ff6b5b; letter-spacing: .1em; }
.ops-label { display: flex; flex-direction: column; gap: 4px; background: var(--paper); color: var(--paper-ink); border-radius: 8px; padding: 12px 14px; max-width: 360px; }
.ops-label .ops-kicker { color: #7a5a22; } .ops-label .code { font: 700 18px var(--f-mono); } .ops-label .btn { align-self: flex-start; margin-top: 6px; background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.ops-ex summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.ops-ex .tools { margin-top: 8px; }
@media (max-width: 900px) { .ops-board { grid-template-columns: repeat(2, 1fr); } }
.funnel { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.funnel li { display: grid; grid-template-columns: 1fr 90px 64px; gap: 8px; align-items: center; }
.funnel .mbar { height: 8px; background: rgba(127,127,127,.18); border-radius: 4px; overflow: hidden; }
.funnel .mbar i { display: block; height: 100%; background: #c9a35b; }
.funnel .c { text-align: right; font-variant-numeric: tabular-nums; }
.passon { margin: 16px 0 8px; padding: 14px; border-radius: 10px; background: rgba(201,163,91,.08); border: 1px solid rgba(201,163,91,.35); display: flex; flex-direction: column; gap: 10px; }
.resume { margin: 14px 0 6px; padding: 14px; border: 1px dashed rgba(109,95,67,.45); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
.arrest.has-video { justify-content: flex-end; padding: 0; background: #0b0907; }
.end-video { position: absolute; inset: 0; pointer-events: none; }
.end-video img, .end-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.end-video video { opacity: 0; transition: opacity .3s; }
.end-video video.on { opacity: 1; }
.end-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,.55) 0%, rgba(10,8,6,0) 20%, rgba(10,8,6,0) 52%, rgba(10,8,6,.78) 74%, #0b0907 100%); }
.arrest .ar-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px 22px; width: 100%; }
.arrest .ar-text > * { animation-fill-mode: both; }
.arrest.has-video .ar-stamp { margin-top: 0; }
.arrest .ar-stamp.gone { color: #8d8064; border-color: #8d8064; }
.arrest .ar-top { position: absolute; top: 22px; left: 16px; right: 16px; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slam { from { opacity: 0; transform: rotate(-10deg) scale(3); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }
@keyframes sirens { 0% { background: rgba(200,40,40,.28); } 50% { background: rgba(40,90,220,.28); } 100% { background: transparent; } }
.chip.more { border-style: dashed; }
.moresel { width: 100%; margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: var(--panel-2); color: var(--text); border: 1px solid var(--brass); font: inherit; font-size: 14px; }
.brief { display: flex; flex-direction: column; gap: 12px; background: radial-gradient(circle at 50% 0%, #2a2a24, transparent 70%); padding-top: 4px; }
.brief > * { animation: rise .5s both; }
.brief-h { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.brief-seal { align-self: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--brass); display: grid; place-items: center; color: var(--brass); box-shadow: 0 0 0 6px rgba(201,163,91,.1); }
.brief-l { margin: 0; font-size: 15px; line-height: 1.5; }
.brief-l.small { font-size: 13px; color: var(--muted); }
.brief-op { border: 1px dashed var(--brass); border-radius: 12px; padding: 12px; background: rgba(201,163,91,.06); }
.brief-op p { margin: 6px 0 0; font-size: 14px; }
.brief-act .btn { flex: 1; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.hero h3 { margin: 0; }
.hero-art { width: 200px; height: auto; }
.howto { list-style: none; margin: 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.howto li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: start; }
.howto li::before { content: counter(st); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass); display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; }
.howto b { font-size: 14.5px; }
.howto span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.mtags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mtag { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.mtag svg { width: 24px; height: 24px; color: var(--brass); flex: none; }
.chip.on { background: var(--brass); color: #1b1508; border-color: var(--brass); }
.chip.on span { margin-left: 4px; font-weight: 700; }
.mailbox { gap: 10px; }
.appbar .seg button { white-space: nowrap; }
.mail { background: #f5f3ee; color: #222; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mail-h { display: flex; justify-content: space-between; font-size: 13px; }
.mail-h time { color: #777; font-size: 12px; }
.mail-s { font-weight: 600; font-size: 14px; }
.mail p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.mail .btn.ghost { color: #444; border-color: #bbb; }
.vh { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 6px; }
.vh-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.vh h3 { font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.vh-sub { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.vh-vault { width: 190px; margin: 2px 0 -6px; }
.vault { width: 100%; height: auto; display: block; }
#h-dial { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.vh-plate { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.vh-lead { font-size: 14.5px; color: var(--text); margin-bottom: 8px; }
.vh-plate small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vh-plate strong { font-family: var(--f-display); font-size: 38px; font-variant-numeric: tabular-nums; color: var(--brass); }
.vh input[type="range"] { width: 100%; }
.vh-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 290px; }
.vh .btn.primary { width: 100%; }
.vh-free { margin: -6px 0 0; font-size: 13px; color: var(--brass); }
.vh-tease { margin: 10px 0 4px; font-family: var(--f-display); font-style: italic; font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 300px; }
.vh-tease, .vh-note { text-wrap: balance; }
.vh-tease strong { display: block; margin-top: 8px; font-weight: 650; font-size: 17px; color: var(--text); }
.wits { display: flex; flex-direction: column; gap: 8px; }
.wit { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; background: #f5efdf; border: 1px solid #d3c7a8; border-radius: 10px; padding: 6px 10px 6px 6px; }
.wit .role { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6d5f43; display: block; margin-bottom: 2px; }
.wit p { margin: 0; font-size: 13.5px; line-height: 1.4; font-style: italic; }
.wit .btn { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.dests { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dest { display: flex; gap: 8px; align-items: center; text-align: left; background: #f5efdf; border: 1px solid #b5a988; color: var(--paper-ink); border-radius: 8px; padding: 8px; font-size: 13.5px; font-weight: 500; }
.dest b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--paper-ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; flex: none; }
.dest:hover:not(:disabled) { border-color: var(--stamp); }
.dest:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.dest.wrong { border-color: var(--stamp); color: var(--stamp); }
.stop .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; }
.stop .meta .btn { color: var(--paper-ink); border-color: #b5a988; }
.notebook { background: #f3ecd8 repeating-linear-gradient(transparent 0 25px, #d6cbb0 25px 26px); color: var(--paper-ink); border-radius: 6px; padding: 10px 12px 12px 30px; position: relative; box-shadow: inset 4px 0 0 #c9897b; }
.nb-head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.notebook .ev { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 13px; line-height: 1.45; padding: 4px 0; }
.notebook .ev em { color: #6d5f43; font-size: 12px; }
.ev-n { font-family: var(--f-mono); color: var(--stamp); font-weight: 600; }
.nb-empty { margin: 0; font-size: 13px; color: #6d5f43; }
.warrant { border: 2px dashed var(--brass); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.w-head { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--brass); }
.addrbox { font-family: var(--f-mono); font-size: 12.5px; background: var(--ink); border: 1px dashed var(--brass); border-radius: 10px; padding: 10px 12px; line-height: 1.55; }
.addrbox strong { color: var(--brass); }

/* ---- Real app shell: one phone-width column instead of the prototype's two phones. ---- */
html, body { min-height: 100%; }
body { background: var(--ink); }
.app { max-width: 460px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--panel); display: flex; flex-direction: column; position: relative; }
@media (min-width: 520px) { .app { margin: 24px auto; min-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; } }
.app .appbar { padding: 14px 18px 12px; }
.app .appbar .logo { font-size: 18px; text-decoration: none; color: var(--text); }
.app .body { overflow: visible; padding: 18px 18px 24px; }
.app .foot { margin-top: auto; }
.app .foot a, .app .foot button { color: var(--muted); }
.overlay { position: fixed; z-index: 20; justify-content: center; }
.overlay .sheet { max-width: 460px; }
.loading { color: var(--muted); text-align: center; margin: 40px 0; }
.btn { font-family: var(--f-body); font-size: 15px; color: var(--text); }
a.btn { text-decoration: none; display: block; }
.btn.primary { color: var(--brass-ink); }
.btn.busy { opacity: .55; cursor: wait; }
select.moresel { appearance: auto; }
input[type="text"], input[type="email"], input[type="url"], input[inputmode] { color: var(--text); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login { display: flex; flex-direction: column; gap: 10px; }
.legal { font-size: 12px; color: var(--muted); text-align: center; padding: 0 18px 16px; }
.legal a { color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; }
a.item { color: var(--text); text-decoration: none; }
#who .pill { background: transparent; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Full-screen moments of the game: the prototype pins them to the phone screen; here, to the viewport column. */
.app ~ #overlay .talk, .app .talk, #overlay .talk, #overlay .flight, #overlay .arrest { position: fixed; top: 0; bottom: 0; left: max(0px, calc(50% - 230px)); right: max(0px, calc(50% - 230px)); }
#who a.pill { text-decoration: none; }
#who { display: flex; gap: 6px; align-items: center; min-width: 0; }
#who .pill { text-decoration: none; color: var(--text); }
#mine:empty { display: none; }
@media (max-width: 380px) { #who-btn { max-width: 130px; } }
/* "App opening" for conversations and the informant's call. */
#overlay .app-open { animation: appOpen .46s cubic-bezier(.2, .85, .25, 1) both !important; }
#overlay .app-close { animation: appClose .34s cubic-bezier(.45, 0, .8, .35) both !important; }
@keyframes appOpen { from { transform: scale(.06); opacity: .2; border-radius: 40px; } 60% { opacity: 1; } to { transform: none; opacity: 1; border-radius: 0; } }
@keyframes appClose { from { transform: none; opacity: 1; border-radius: 0; } to { transform: scale(.06); opacity: 0; border-radius: 40px; } }
/* "Início" in the footer, centred, on every screen but the home. */
.homebar { border-top: 1px solid var(--line); padding: 10px 18px; text-align: center; }
.homebar a { color: var(--brass); text-decoration: none; font-weight: 600; font-size: 14px; }
.homebar[hidden] { display: none; }
.foot[hidden] + .homebar { margin-top: auto; }

/* home list rows with the trash button */
.itemrow { display: flex; gap: 8px; align-items: stretch; }
.itemrow .item { flex: 1; min-width: 0; }
.trash { flex: none; width: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--muted); font-size: 16px; cursor: pointer; }
.trash:hover { border-color: var(--brass); color: var(--paper); }
