/* Call companion. Look lifted from call-companion-mockup-v3.html, layout C. Sizes in CSS px at 960x600 (landscape) and 600x960 (portrait). */
:root {
  --bg: #0f1216; --panel: #171b21; --panel2: #222833; --line: #2c333e;
  --ink: #f1f4f8; --ink2: #b4bcc8; --ink3: #7d8896;
  --accent: #4fb3ff; --good: #4cc38a; --warn: #f2b84b; --bad: #ff8a8a;
  --fs-body: 20px; --fs-label: 15px; --fs-name: 34px; --fs-count: 52px; --tap: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { background: var(--bg); color: var(--ink); font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.screen { position: fixed; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--bg); }

/* top bar: big prev/next arrows around the meeting */
.top { height: 72px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.arrow { width: var(--tap); height: var(--tap); flex: none; border-radius: 14px; background: var(--panel2); font-size: 34px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.arrow:disabled { opacity: .25; }
.arrow:active { background: var(--line); }
.mtg { flex: 1; min-width: 0; padding: 0 8px; }
.mtg .t { font-size: var(--fs-label); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg .n { font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg .browse { color: var(--accent); }
.clock { font-size: 26px; font-weight: 700; padding: 0 12px 0 16px; border-left: 1px solid var(--line); margin-left: 4px; white-space: nowrap; flex: none; text-align: right; }
.clock small { display: block; font-size: 13px; font-weight: 500; color: var(--ink3); }
.clock small.off { color: var(--bad); font-weight: 700; }

/* content */
.body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 16px 22px; font-size: var(--fs-body); line-height: 1.45; -webkit-overflow-scrolling: touch; }
.lab { font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); font-weight: 700; margin: 0 0 6px; }
.body p { margin-bottom: 14px; }
.body ul, .body ol { padding-left: 26px; margin-bottom: 14px; }
.body li + li { margin-top: 6px; }
.muted { color: var(--ink2); }
.quiet { color: var(--ink3); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 15px; margin-right: 6px; background: var(--panel2); color: var(--ink2); white-space: nowrap; }
.chip.ae { background: #16324a; color: #8fd0ff; }
.chip.co { background: #33281a; color: #f5c97a; }
.chip.st { background: #1d3a2c; color: #8ee0b5; }
.note { font-size: 16px; color: var(--warn); margin-bottom: 10px; }
.pre { white-space: pre-wrap; word-wrap: break-word; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* bottom nav: six big buttons, always in the same place */
.nav { height: 84px; flex: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: #0b0e12; }
.nav button { border-radius: 14px; background: var(--panel); font-size: 18px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; justify-content: center; position: relative; white-space: nowrap; min-height: var(--tap); }
.nav button.on { background: var(--accent); color: #05070a; }
.nav button:active { background: var(--panel2); }
.nav button:disabled { opacity: .35; }
.nav .badge { position: absolute; top: 6px; right: 10px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--warn); color: #05070a; font-size: 14px; font-weight: 700; line-height: 24px; padding: 0 6px; text-align: center; }

/* overview, landscape */
.ov { display: grid; grid-template-columns: 190px 1fr; gap: 18px; min-height: 100%; }
.count { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.count b { font-size: 40px; line-height: 1; color: var(--ink2); }
.count.soon b { font-size: var(--fs-count); color: var(--warn); }
.count span { font-size: 16px; color: var(--ink2); margin-top: 6px; }
.count .chip { margin: 12px 0 0; }
.who h2 { font-size: var(--fs-name); line-height: 1.1; overflow-wrap: anywhere; }
.who .sub { font-size: 19px; color: var(--ink2); margin: 4px 0 14px; }
.open { display: flex; align-items: center; min-height: var(--tap); margin-top: 4px; padding: 0 18px; border-radius: 14px; background: var(--panel2); font-weight: 600; width: 100%; text-align: left; }

/* live */
.live { display: grid; grid-template-columns: 230px 1fr; gap: 18px; min-height: 100%; }
.timer { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.timer b { font-size: 56px; line-height: 1; }
.track { width: 100%; height: 10px; background: var(--panel2); border-radius: 5px; margin: 16px 0 10px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--good); }
.track.over i { background: var(--warn); }
.plain li { padding: 4px 0; }

/* portrait overview and live */
.pv .cd { display: flex; align-items: baseline; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 16px; }
.pv .cd b { font-size: 40px; line-height: 1; color: var(--ink2); }
.pv .cd.soon b { font-size: var(--fs-count); color: var(--warn); }
.pv .cd span { font-size: 20px; color: var(--ink2); }
.pv h2 { font-size: var(--fs-name); line-height: 1.1; overflow-wrap: anywhere; }
.pv .sub { font-size: 20px; color: var(--ink2); margin: 6px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv .sub .chip { margin: 0; }
.pv .tbar { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.pv .tbar .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pv .tbar b { font-size: 52px; line-height: 1; }
.pv .tbar .track { margin: 12px 0 0; }

/* tick rows */
.ticks { list-style: none; padding: 0 !important; margin-bottom: 18px; }
.ticks li { display: flex; align-items: center; gap: 16px; min-height: var(--tap); padding: 6px 4px; border-bottom: 1px solid var(--line); margin: 0 !important; }
.ticks li:last-child { border-bottom: 0; }
.box { width: var(--tap); height: var(--tap); flex: none; display: flex; align-items: center; justify-content: center; }
.box i { width: 34px; height: 34px; border-radius: 9px; border: 3px solid var(--ink3); display: block; }
.ticks .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ticks .tx small { display: block; color: var(--ink3); font-size: 15px; }
.ticks li.done { color: var(--ink3); }
.ticks li.done .tx { text-decoration: line-through; }
.ticks li.done .box i { background: var(--good); border-color: var(--good); }
.ticks li.locked .box { opacity: .35; }
.undo { font-size: 18px; font-weight: 700; color: var(--accent); min-height: var(--tap); padding: 0 20px; border-radius: 12px; background: var(--panel2); flex: none; }
.side { flex: none; font-size: 16px; color: var(--ink3); }
.side.bad, .bad { color: var(--bad); }

/* action rows */
.act { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 18px; margin-bottom: 10px; }
.act .txt { flex: 1; min-width: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.act .txt small { display: block; color: var(--ink3); font-size: 15px; margin-top: 2px; }
.act button { height: var(--tap); padding: 0 22px; border-radius: 14px; background: var(--accent); color: #05070a; font-weight: 700; font-size: 18px; flex: none; white-space: nowrap; }
.act button.added { background: var(--good); }
.act button.skip { background: var(--panel2); color: var(--ink2); font-weight: 600; }
.act button.undo { background: var(--panel2); color: var(--accent); }
.act button:disabled { opacity: .35; }
.act .state { flex: none; font-size: 17px; font-weight: 700; color: var(--good); padding: 0 8px; }
.act .state.bad { color: var(--bad); }
.act.gone { opacity: .45; }
.ask { font-size: 28px; line-height: 1.2; margin-bottom: 4px; }
.wait { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 12px 18px; }
.kv div { overflow-wrap: anywhere; min-width: 0; }
.kv div:nth-child(odd) { color: var(--ink3); font-size: 17px; padding-top: 2px; }
.past { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
.mail { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.sum p { margin-bottom: 8px; }
.sum .h { font-weight: 700; margin-top: 10px; }
.sum ul { margin-bottom: 8px; }
.sum ul ul { margin: 4px 0 0; }
.none { text-align: center; padding-top: 40px; }
.none h2 { font-size: var(--fs-name); margin-bottom: 12px; }
.none .open { max-width: 520px; margin: 20px auto 0; }

/* ---- portrait ---- */
.port .top { height: 96px; gap: 6px; padding: 0 6px; }
.port .mtg { padding: 0 6px; }
.port .mtg .n { font-size: 26px; line-height: 1.2; }
.port .clock { font-size: 24px; padding: 0 8px 0 10px; margin-left: 2px; }
.port .nav { height: 80px; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 0; }
.port .nav button { font-size: 15px; box-shadow: inset 0 0 0 4px #0b0e12; border-radius: 16px; }
.port .nav .badge { top: 8px; right: 8px; font-size: 13px; min-width: 22px; height: 22px; line-height: 22px; }
.port .body { padding: 18px 20px; }
.port .plain li { padding: 8px 0; }
.port .act { flex-wrap: wrap; padding: 14px; }
.port .act .txt { flex: 1 1 100%; }
.port .act button { flex: 1; }
.port .kv { grid-template-columns: 150px 1fr; }
.port .kv div:nth-child(odd) { font-size: 15px; }

.setup { max-width: 760px; margin: 60px auto; padding: 0 20px; color: var(--ink); font-size: 20px; }
.setup h1 { margin-bottom: 12px; }
.setup textarea { display: block; width: 100%; height: 170px; margin: 12px 0; padding: 10px; font: 18px monospace; color: var(--ink); background: var(--panel); border: 1px solid var(--line); -webkit-user-select: text; user-select: text; }
.setup .msg { min-height: 26px; color: var(--bad); }
.setup button { display: block; width: 100%; height: 64px; border-radius: 12px; background: var(--accent); color: #05070a; font-weight: 700; font-size: 20px; }
.boot-fail { padding: 200px 40px; text-align: center; font-size: 28px; color: var(--ink); background: var(--bg); position: fixed; left: 0; top: 0; width: 100%; height: 100%; }

/* landscape fit at 960x536: the company is already in the top bar */
.land .who .sub { display: none; }
.land .who h2 { margin-bottom: 10px; }
.land .body p { margin-bottom: 10px; }
.land .body ol, .land .body ul { margin-bottom: 10px; }
.land .body li + li { margin-top: 2px; }
.count .chip { white-space: normal; max-width: 100%; text-align: center; margin-top: 8px; }
.ov, .live { align-items: start; }
.count, .timer { position: sticky; top: 0; height: calc(100vh - 188px); min-height: 220px; }
