/* The Client Room and the Console. Built from the approved mock-ups
   (mockups/client-2030.html, mockups/console-2030.html). Light only. */

/* Tokens from the public site. The page chrome stays light (the project is
   light only); the feed's full-screen media cards are dark because they are
   pictures and video, not a dark theme. */
:root {
  --bg: #F8F6F1; --surface: #F0EDE4; --paper: #FFFFFF; --ink: #1B2024; --muted: #5B6570; --line: #D7DADD;
  --accent: #F4BB44; --link: #586C86; --ok: #2F6B4F; --ok-soft: #DDEBE1; --warn-soft: #F7E8C4; --warn: #8A5A00;
  --night: #14181B; --glass: rgba(255, 255, 255, .16); --on-media: #FFFFFF; --on-media-soft: rgba(255, 255, 255, .78);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body { margin: 0; font: 16px/1.5 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- page ---------------- */
.page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 56px; display: flex; flex-direction: column; gap: 22px; }
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.masthead h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.masthead p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump button { border: 1.5px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: .9rem; }
.jump button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stagegrid { display: grid; grid-template-columns: 400px 1fr; gap: 36px; align-items: start; }
.stagegrid > * { min-width: 0; }
@media (max-width: 920px) { .stagegrid { grid-template-columns: 1fr; } }

/* ---------------- phone ---------------- */
.phone { width: 100%; max-width: 400px; margin: 0 auto; height: 820px; border: 10px solid var(--night); border-radius: 40px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(20, 24, 27, .22); }
@media (max-width: 460px) { .phone { border: 1px solid var(--line); border-radius: 14px; height: 80svh; box-shadow: none; } }
.view { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 22px; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
.top h2 { font-size: 1.25rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; flex: none; }
.me { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 0; font-size: .78rem; font-weight: 600; flex: none; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
nav.dock { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: var(--bg); border-top: 1px solid var(--line); padding: 4px 6px 8px; }
nav.dock button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); min-height: 52px; justify-content: center; position: relative; }
nav.dock button[aria-current="true"] { color: var(--ink); font-weight: 600; }
nav.dock[hidden] { display: none; }
nav.dock .ask { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--ink); margin: -18px auto 0; display: grid; place-items: center; border: 3px solid var(--bg); box-shadow: 0 6px 16px rgba(20, 24, 27, .18); }
nav.dock .n { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: .64rem; display: grid; place-items: center; padding: 0 4px; }

/* ---------------- feed ---------------- */
.feed { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; background: var(--night); scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: var(--on-media); background: var(--night); }
.slide .media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 42%, rgba(0,0,0,.82) 100%); }
.slide .cap { position: absolute; left: 16px; right: 74px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.slide .cap h3 { font-size: 1.5rem; color: var(--on-media); }
.slide .kick { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-media-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; background: var(--glass); color: var(--on-media); backdrop-filter: blur(8px); }
.tag.lock::before { content: "\1F512\FE0E  "; }
.rail { position: absolute; right: 10px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rail button { border: 0; background: none; color: var(--on-media); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .66rem; }
.rail span.b { width: 46px; height: 46px; border-radius: 50%; background: var(--glass); backdrop-filter: blur(10px); display: grid; place-items: center; }
.rail .av { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--on-media); background-size: cover; background-position: center; }
.feedtop { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 18px; padding: 14px 12px; pointer-events: none; }
.feedtop .ft { display: flex; gap: 16px; background: rgba(20, 24, 27, .55); backdrop-filter: blur(10px); border-radius: 999px; padding: 6px 16px; pointer-events: auto; }
.feedtop button { pointer-events: auto; border: 0; background: none; color: var(--on-media-soft); font-weight: 500; font-size: .95rem; padding: 2px 0; }
.feedtop button[aria-pressed="true"] { color: var(--on-media); border-bottom: 2px solid var(--accent); }
.feedtop .me { position: absolute; right: 14px; top: 12px; pointer-events: auto; background: rgba(20, 24, 27, .55); color: var(--on-media); backdrop-filter: blur(8px); }
.playbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.playbar i { display: block; height: 100%; width: 0; background: var(--accent); animation: play 14s linear infinite; }
@keyframes play { to { width: 100%; } }
.playicon { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--glass); backdrop-filter: blur(10px); display: grid; place-items: center; }
.playicon::after { content: ""; border-left: 20px solid var(--on-media); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
/* light slides: tasks and documents */
.slide.lightslide { background: var(--surface); color: var(--ink); }
.slide.lightslide .kick { color: var(--muted); }
.slide.lightslide .cap h3 { color: var(--ink); }
.slide.lightslide .rail button { color: var(--ink); }
.slide.lightslide .rail span.b { background: rgba(27, 32, 36, .08); }
.slide.lightslide .feedtop-gap { height: 52px; }
.inner { position: absolute; inset: 60px 16px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.inner.withrail { right: 74px; }
.paper { background: var(--paper); border-radius: 8px; box-shadow: 0 10px 30px rgba(20,24,27,.14); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.paper .ln { height: 7px; border-radius: 4px; background: var(--surface); }
.paper .ln.s { width: 60%; }
.qcard { background: var(--paper); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.hold { display: flex; align-items: center; gap: 12px; border: 0; background: var(--accent); border-radius: 999px; padding: 10px 16px 10px 10px; font-weight: 600; }
.hold span.m { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.chipsrow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.glass { background: var(--glass); border-color: rgba(255,255,255,.3); color: var(--on-media); backdrop-filter: blur(8px); }
.chip.glass[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.meet { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 64px 10px 190px; background: #20262B; }
.meet div { border-radius: 10px; background: #2C343A; display: grid; place-items: center; font-size: 1.6rem; font-family: 'DM Serif Display', serif; color: #C9D2D8; position: relative; background-size: cover; background-position: center 20%; }
.meet div.speaking { outline: 3px solid var(--accent); }
.meet small { position: absolute; left: 8px; bottom: 6px; font-family: 'DM Sans', sans-serif; font-size: .7rem; color: #fff; }
.quote { font-family: 'DM Serif Display', serif; font-size: 1.35rem; line-height: 1.2; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .9; }
.bars i:nth-child(odd) { background: #F8F6F1; opacity: .75; }
.pollopt { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid var(--on-media); border-radius: 10px; padding: 12px 14px; background: var(--glass); color: var(--on-media); width: 100%; text-align: left; backdrop-filter: blur(8px); }
.pollopt[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.endcard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 32px 24px; background: var(--bg); color: var(--ink); }
.endcard h3 { font-size: 2rem; }

/* ---------------- generic parts ---------------- */
.lab { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .sm { font-size: .9rem; } .xs { font-size: .78rem; }
.tn { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 500; }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn.onmedia { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.ghost { background: var(--glass); border-color: rgba(255,255,255,.4); color: var(--on-media); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--line); }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 0; width: 100%; background: none; border: 0; text-align: left; }
.pill { display: inline-block; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.go { background: var(--accent); color: var(--ink); border-color: transparent; }
.pill.lock::before { content: "\1F512\FE0E  "; }
.avs { display: flex; }
.avs span { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 2px solid var(--paper); display: grid; place-items: center; font-size: .66rem; font-weight: 600; margin-left: -8px; background-size: cover; }
.avs span:first-child { margin-left: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 0; font-weight: 500; font-size: .92rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(20,24,27,.12); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; color: var(--muted); }
.field input, .field textarea { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .d { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); flex: none; margin-top: 3px; z-index: 1; }
.tl.done .d { background: var(--ink); }
.tl.now .d { background: var(--accent); }
.tl.done::before { background: var(--ink); }
.shelfrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.thumb { flex: none; width: 210px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.thumb .pic { aspect-ratio: 16 / 9; border-radius: 10px; background: #2C343A; background-size: cover; background-position: center 38%; position: relative; overflow: hidden; }
.thumb .pic .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 4px; }
.thumb .pic .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.thumb.doc .pic { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.thumb.doc .pic i { height: 6px; border-radius: 3px; background: var(--surface); }
.thumb b { font-weight: 500; font-size: .92rem; line-height: 1.3; }
.player { aspect-ratio: 16 / 9; border-radius: 12px; position: relative; overflow: hidden; background: #20262B; }
.chap { display: flex; gap: 12px; padding: 9px 0; width: 100%; border: 0; background: none; text-align: left; }
.chap b { font-variant-numeric: tabular-nums; font-weight: 600; width: 48px; flex: none; color: var(--link); }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 84%; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; display: flex; flex-direction: column; gap: 6px; }
.bub.mine { align-self: flex-end; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bub .meta { font-size: .72rem; opacity: .7; }
.bub.agent { background: var(--surface); }
.wave { display: flex; align-items: center; gap: 2px; height: 28px; }
.wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .8; }
.vid { width: 180px; aspect-ratio: 9 / 13; border-radius: 10px; background-size: cover; background-position: center 20%; position: relative; }
.vid .playicon { width: 44px; height: 44px; top: 50%; }
.vid .playicon::after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
.whiteboard { width: 200px; aspect-ratio: 4 / 3; border-radius: 10px; background: #FAFAF7; position: relative; overflow: hidden; border: 1px solid var(--line); }
.cite { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.cite .t { width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; background: #2C343A; flex: none; }
.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.composer input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: var(--paper); }
.composer .round { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); flex: none; }
.composer .round.mic { background: var(--accent); }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; flex: none; background: var(--bg); }
.suggest button { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 12px; font-size: .86rem; }
.toggle { width: 46px; height: 28px; border-radius: 14px; border: 0; background: var(--line); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform .15s; }
.toggle[aria-pressed="true"] { background: var(--ok); }
.toggle[aria-pressed="true"]::after { transform: translateX(18px); }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.dots i.on { background: var(--ink); }
.setup h2 { font-size: 1.9rem; }
.legal { font-size: .72rem; color: var(--muted); line-height: 1.45; }

/* ---------------- sheet and toast ---------------- */
.scrim { position: absolute; inset: 0; background: rgba(20,24,27,.45); z-index: 20; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--bg); border-radius: 20px 20px 0 0; padding: 10px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; }
.sheetgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sheetgrid button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; }
.sheetgrid span { width: 54px; height: 54px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.rec { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.rec .dotrec { width: 76px; height: 76px; border-radius: 50%; background: #B3372E; display: grid; place-items: center; color: #fff; font-weight: 600; box-shadow: 0 0 0 10px rgba(179,55,46,.15); }
.livewave { display: flex; align-items: center; gap: 3px; height: 40px; }
.livewave i { width: 4px; border-radius: 2px; background: var(--ink); animation: wv 1s ease-in-out infinite; }
@keyframes wv { 0%, 100% { height: 8px; } 50% { height: 36px; } }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: .88rem; z-index: 30; width: max-content; max-width: 88%; text-align: center; }

/* ---------------- notes ---------------- */
.notes { display: flex; flex-direction: column; gap: 28px; max-width: 70ch; }
.notes h2 { font-size: 1.55rem; padding-top: 12px; position: relative; }
.notes h2::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 3px; background: var(--accent); }
.notes section > * + * { margin-top: 10px; }
.notes ul, .notes ol { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.notes .lead { font-family: 'DM Serif Display', serif; font-size: 1.35rem; line-height: 1.3; }
.surfaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.surfaces button { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.surfaces button:hover { border-color: var(--ink); }
.surfaces b { font-weight: 600; }
.surfaces span { font-size: .88rem; color: var(--muted); }
.decision { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.decision b { font-weight: 600; }
.decision .rec2 { font-size: .92rem; }
.decision .rec2::before { content: "Recommendation: "; font-weight: 600; }
.sources { font-size: .85rem; color: var(--muted); }
.sources a { color: var(--link); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------- version 2 additions ---------------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.slide :focus-visible, .endcard :focus-visible { outline-color: var(--accent); }
.rail button { font-size: .72rem; }
.player { flex: none; width: 100%; }
.viewas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.viewas span { color: var(--muted); }
.viewas button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }
.viewas button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); font-weight: 600; }
.masthead .side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (max-width: 700px) { .masthead .side { align-items: flex-start; } }
.masthead a { color: var(--link); }
.rolebar { flex: none; background: var(--ink); color: var(--bg); font-size: .8rem; padding: 6px 16px; display: flex; justify-content: space-between; gap: 8px; }
.rolebar b { font-weight: 600; }
.cc { background: rgba(0, 0, 0, .62); color: #fff; font-size: .92rem; line-height: 1.35; padding: 6px 10px; border-radius: 6px; align-self: flex-start; max-width: 100%; }
.ccchip { font-size: .64rem; font-weight: 700; letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 3px; padding: 0 3px; }
.needcard .item { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.needcard .item.done { opacity: .55; }
.needcard .item.done b { text-decoration: line-through; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.money { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .92rem; }
.money .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.doclinks { display: flex; flex-wrap: wrap; gap: 8px; }
.doclinks button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 10px; font-size: .84rem; display: flex; gap: 6px; align-items: center; }
.avail { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--ok); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.callopt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.callopt.primary { border: 1.5px solid var(--ink); }
.svc { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.svc[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--surface); }
.results .li { padding: 10px 0; }
mark { background: var(--warn-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.statement { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .9rem; display: flex; flex-direction: column; gap: 8px; }
.changes { display: grid; gap: 8px; margin-top: 12px; }
.changes div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; font-size: .92rem; }
.changes b { font-weight: 600; }
@media (max-width: 520px) { .changes div { grid-template-columns: 1fr; gap: 2px; } }
.persona { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.persona div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: .88rem; display: flex; flex-direction: column; gap: 6px; }
.persona b { font-weight: 600; }
.persona .ok { color: var(--ok); } .persona .no { color: #A63A32; }
.sim { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 2px 10px; }

.timer { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.timer.soon { background: var(--warn-soft); color: var(--warn); }
.timer.late { background: #F3D9D6; color: #A63A32; }
.chan2 { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chan2.wa { color: var(--ok); font-weight: 600; }
.clip { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 12px 0; }
.clip .pic { aspect-ratio: 9 / 13; border-radius: 8px; background-size: cover; background-position: center 20%; position: relative; }
.clip .pic span { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: .66rem; padding: 0 4px; border-radius: 3px; }
.camera { position: relative; aspect-ratio: 9 / 14; border-radius: 16px; background-size: cover; background-position: center 25%; overflow: hidden; }
.camera .rt { position: absolute; top: 12px; left: 12px; background: #B3372E; color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.camera .cc { position: absolute; left: 12px; right: 12px; bottom: 16px; }
.aud { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.aud[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--surface); }
.draft { background: var(--surface); border: 1px dashed var(--muted); border-radius: 12px; padding: 12px; font-size: .95rem; display: flex; flex-direction: column; gap: 8px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kpi { background: var(--paper); padding: 12px 14px; }
.kpi b { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.rules .li { align-items: flex-start; }
.availbar { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

/* ---------------- production shell: the app fills the screen ---------------- */
html, body { height: 100%; }
body { overflow: hidden; }
.shell { height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); position: relative; border-inline: 1px solid var(--line); }
@media (max-width: 560px) { .shell { border: 0; } }
.shell .view { flex: 1; min-height: 0; }
.center { flex: 1; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.login { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 50; }
.toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
nav.dock { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.slide video, .slide audio { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bubmedia { max-width: 220px; border-radius: 10px; display: block; }
audio.bubmedia { max-width: 240px; }
.invoice { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; font-size: .92rem; display: flex; flex-direction: column; gap: 12px; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice td { padding: 6px 0; border-top: 1px solid var(--line); }
.invoice td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.doctext { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; white-space: pre-wrap; font-size: .92rem; max-height: 50vh; overflow: auto; }
.est { background: var(--ink); color: var(--bg); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.est b.big { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 2rem; }
.est .xs { color: var(--on-media-soft); }
.q { display: flex; flex-direction: column; gap: 8px; }
.q > .lab { color: var(--link); }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.opt[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--surface); }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; margin-top: 2px; }
.opt[aria-pressed="true"] .radio { background: radial-gradient(circle, var(--ink) 45%, transparent 50%); }
select.sel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; font-size: 1rem; }
.empty { color: var(--muted); font-size: .95rem; }
@media print { body { overflow: visible; } .shell { height: auto; border: 0; } nav.dock, .top .iconbtn, .noprint { display: none !important; } .scroll { overflow: visible; } }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
#overlay .scrim, #overlay .sheet { position: absolute; }
.sheet { max-height: 88%; overflow-y: auto; }
.field select.sel { min-height: 44px; }
.chip input { margin: 0 4px 0 0; }
button[disabled] { opacity: .45; cursor: not-allowed; }
a.btn { color: inherit; text-decoration: none; }
a.btn.dark { color: var(--bg); }
.scroll > *, .stack > * { flex-shrink: 0; }
