/* Lauma Team Room. The design system of the 14 October 2026 staff presentation, carried into software:
   white surface, Apple system type, graphite ink, one accent (Lauma red), panels without shadows. */

:root {
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --hair: #e5e5ea;
  --panel: #f5f5f7;
  --panel-2: #ececf0;
  --surface: #ffffff;
  --lauma: #ed314a;
  --lauma-deep: #c8102e;
  --lauma-wash: #fdecef;
  --graphite: #2c2c2e;
  --gain: #1f7a4d;
  --loss: #d92d20;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 5.4vw, 112px);
  --bar: 76px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--surface); }
body {
  font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern" 1;
  min-height: 100vh; overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- chrome: logo left, section label right, progress line at the bottom (as in the presentation) */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--bar);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 0 var(--gutter); background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--hair); }
@supports (backdrop-filter: blur(1px)) { .topbar { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(18px); } }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 24px; width: auto; }
.brand .tag { font-size: 15px; font-weight: 600; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--hair); line-height: 20px; }
.nav { display: flex; gap: 6px; justify-self: center; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lauma); }
.nav .badge { margin-left: 6px; }
.tools { display: flex; align-items: center; gap: 10px; }
.me-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; display: grid; place-items: center; }
#progress {
  position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 60; pointer-events: none;
  background: var(--graphite); transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
  transition: transform .9s var(--ease-out), opacity .4s;
}
#progress.on { opacity: 1; transform: scaleX(.72); transition: transform 6s var(--ease-out), opacity .2s; }
#progress.done { opacity: 0; transform: scaleX(1); transition: transform .3s var(--ease-out), opacity .5s .25s; }

/* eight menu items: drop the room name and the language switch (it stays in the person menu) on narrower screens */
@media (max-width: 1320px) { .brand .tag { display: none; } .nav a { padding: 8px 10px; } .tools .lang-seg { display: none; } }

/* mobile tab bar */
.tabbar { display: none; }
@media (max-width: 1000px) {
  :root { --bar: 60px; }
  .nav { display: none; }
  .brand .tag { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--hair);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--faint); position: relative; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
  main { padding-bottom: 88px; }
  .chat { height: calc(100vh - var(--bar) - 70px); }
}

/* ---------- type, after the presentation scale */
main { padding: 0 var(--gutter) 96px; }
.page { max-width: 1440px; margin: 0 auto; padding-top: clamp(24px, 5vh, 56px); }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .005em; margin-bottom: 10px; }
.kicker .sep { color: var(--hair); margin: 0 10px; }
.h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.022em; font-weight: 700; }
.h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.014em; font-weight: 700; }
.h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.008em; font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; color: var(--ink-2); max-width: 760px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.neg { color: var(--loss); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 16px; }
.section-title .h3 { flex: 1; }
.section-title a { font-size: 14px; font-weight: 600; color: var(--muted); }
.section-title a:hover { color: var(--ink); }

/* entry motion: fade and 18 px rise, as the presentation's build steps */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  background: var(--ink); color: #fff; transition: background-color .2s, transform .15s, opacity .2s;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.soft { background: var(--panel); color: var(--ink); }
.btn.soft:hover { background: var(--panel-2); }
.btn.red { background: var(--lauma); }
.btn.red:hover { background: var(--lauma-deep); }
.btn.ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn.ghost:hover { background: var(--panel); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.btn.sm.icon { width: 34px; }

.seg { display: inline-flex; background: var(--panel); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { height: 30px; min-width: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }
.seg.big button { height: 40px; min-width: 64px; font-size: 15px; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r-s);
  background: var(--panel); font-size: 16px; transition: border-color .2s, background-color .2s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.panel .input, .panel .textarea, .panel .select { background: var(--surface); }
.input:focus, .textarea:focus, .select:focus { outline: none; background: var(--surface); border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.error { color: var(--loss); font-size: 14px; min-height: 20px; }

.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--lauma); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; white-space: nowrap; padding: 0 10px; border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chip.live { background: var(--lauma); color: #fff; }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s var(--ease-io) infinite; }
.chip.adopted { background: #e6f2ec; color: var(--gain); }
.chip.draft { background: #fff4e5; color: #9a5b00; }
.lang-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--faint); border: 1px solid var(--hair); border-radius: 4px; padding: 0 4px; line-height: 15px; vertical-align: 2px; }
@keyframes blink { 50% { opacity: .35; } }

.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--panel); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; position: relative; }
.avatar.lg { width: 48px; height: 48px; font-size: 15px; }
.avatar.ink { background: var(--ink); color: #fff; }
.avatar.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--gain); border: 2px solid var(--surface); }

/* ---------- surfaces */
.panel { background: var(--panel); border-radius: var(--r-l); padding: clamp(20px, 2.2vw, 32px); }
.card { border: 1px solid var(--hair); border-radius: var(--r-l); padding: clamp(20px, 2.2vw, 28px); background: var(--surface); }
.list > * + * { border-top: 1px solid var(--hair); }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.row-item .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 40px 0; color: var(--muted); font-size: 15px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* stat tile, as on the presentation's summary slide */
.tile { background: var(--panel); border-radius: var(--r-l); padding: 22px 24px 20px; position: relative; overflow: hidden; min-height: 168px; display: flex; flex-direction: column; }
.tile .lab { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tile .per { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile .val { font-size: clamp(34px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: auto 0 8px; padding-top: 18px; font-variant-numeric: tabular-nums; }
.tile .val .unit { font-size: .42em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.tile .src { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tile .spark { position: absolute; right: 18px; top: 20px; width: 92px; height: 34px; }
.tile .spark path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero, as the presentation title slide: photo right, white fade, text left */
.hero { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: clamp(260px, 34vw, 420px); display: flex; align-items: flex-end; background: var(--panel); }
.hero img, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 36%, rgba(255,255,255,0) 68%); }
.hero .in { position: relative; z-index: 2; padding: clamp(24px, 3.6vw, 52px); max-width: 640px; }
@media (max-width: 640px) { .hero::after { background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.2) 100%); } }

/* ---------- welcome and sign-in */
.welcome { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 560px) 1fr; }
.welcome .side { padding: 48px clamp(24px, 4vw, 64px); display: flex; flex-direction: column; gap: 32px; background: var(--surface); position: relative; z-index: 2; }
.welcome .side .logo { height: 30px; width: auto; align-self: flex-start; }
.welcome .side .body { margin: auto 0; display: grid; gap: 28px; }
.welcome .media { position: relative; overflow: hidden; background: var(--panel); }
.welcome .media video, .welcome .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 30%); }
.welcome .tri .en { display: block; font-weight: 700; }
.welcome .tri .lv, .welcome .tri .ru { display: block; font-weight: 400; color: var(--ink-2); }
.notice { max-height: 220px; overflow: auto; font-size: 14px; line-height: 1.5; color: var(--ink-2); background: var(--panel); border-radius: var(--r-s); padding: 14px 16px; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome .media { order: -1; height: 34vh; }
  .welcome .media::after { background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 40%); }
}

/* ---------- messages */
.chat { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - var(--bar)); margin: 0 calc(var(--gutter) * -1) -96px; border-top: 1px solid var(--hair); }
.chat .threads { border-right: 1px solid var(--hair); overflow-y: auto; overflow-x: hidden; padding: 20px 16px; }
.thread-item .ellipsis { min-width: 0; flex: 1; }
.chat .threads .head { margin: 4px 8px 16px; align-items: center; }
.thread-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-m); transition: background-color .15s; }
.thread-item:hover { background: var(--panel); }
.thread-item.on { background: var(--panel); }
.thread-item .t { font-weight: 600; font-size: 15px; }
.thread-item .p { font-size: 13px; color: var(--muted); }
.thread-item.indrek .avatar { background: var(--lauma); color: #fff; }
.conv { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.conv .top { padding: 18px 32px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 14px; }
.conv .stream { overflow: auto; padding: 24px 32px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: min(680px, 78%); display: grid; gap: 4px; margin-top: 10px; }
.msg .who { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 14px; }
.msg .bubble { background: var(--panel); border-radius: 20px 20px 20px 6px; padding: 11px 15px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; }
.msg.mine .who { text-align: right; }
.msg.mine .bubble { background: var(--ink); color: #fff; border-radius: 20px 20px 6px 20px; }
.msg .meta { font-size: 12px; color: var(--faint); padding: 0 14px; display: flex; gap: 10px; }
.msg.mine .meta { justify-content: flex-end; }
.msg .meta button { font-size: 12px; color: var(--muted); }
.msg .meta button:hover { color: var(--ink); text-decoration: underline; }
.msg.same { margin-top: 0; }
.msg.same .who { display: none; }
.composer { border-top: 1px solid var(--hair); padding: 14px 32px 18px; display: flex; gap: 12px; align-items: flex-end; }
.composer .textarea { min-height: 48px; max-height: 200px; resize: none; border-radius: 24px; padding: 12px 18px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 600; color: var(--faint); margin: 18px 0 6px; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - var(--bar) - 70px); }
  .chat.open .threads { display: none; }
  .chat:not(.open) .conv { display: none; }
  .conv .top, .conv .stream, .composer { padding-left: 16px; padding-right: 16px; }
}

/* ---------- ideas */
.idea { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; }
.vote { display: grid; justify-items: center; align-content: start; gap: 2px; width: 56px; height: 64px; padding-top: 8px; border-radius: var(--r-m); background: var(--panel); font-weight: 700; font-size: 17px; transition: background-color .2s, color .2s; font-variant-numeric: tabular-nums; }
.vote svg { width: 18px; height: 18px; }
.vote:hover { background: var(--panel-2); }
.vote.on { background: var(--lauma); color: #fff; }
.idea .title { font-size: 19px; font-weight: 700; letter-spacing: -0.008em; line-height: 1.25; }
.idea .body { color: var(--ink-2); margin-top: 6px; white-space: pre-wrap; }
.idea .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ideas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.ideas-layout aside { position: sticky; top: calc(var(--bar) + 24px); }
@media (max-width: 1100px) { .ideas-layout { grid-template-columns: 1fr; } .ideas-layout aside { position: static; order: -1; } }
.comments { margin-top: 14px; display: grid; gap: 10px; }
.comment { background: var(--panel); border-radius: var(--r-m); padding: 10px 14px; font-size: 15px; }
.comment b { font-size: 13px; }

/* ---------- meeting room */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; height: calc(100vh - var(--bar) - 250px); min-height: 480px; }
.room .map { position: relative; border: 1px solid var(--hair); border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
.room .side { display: grid; grid-template-rows: auto 1fr; min-height: 0; border: 1px solid var(--hair); border-radius: var(--r-l); overflow: hidden; }
.room .side .tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--hair); }
.room .lines { overflow: auto; padding: 8px 20px 20px; scroll-behavior: smooth; }
.line { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.line .who { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.line .txt { font-size: 16px; line-height: 1.45; margin-top: 3px; }
.line.interim .txt { color: var(--faint); }
.line.interim .tr { font-size: 16px; line-height: 1.45; margin-top: 2px; color: var(--muted); }
.line.interim .tr:empty { display: none; }
.line.fresh { animation: fresh 1.4s var(--ease-out); }
@keyframes fresh { from { background: var(--lauma-wash); } to { background: transparent; } }
.dock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 0; }
.dock .grow { flex: 1; }
.mic { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; position: relative; transition: background-color .25s, transform .15s; flex: none; }
.mic svg { width: 26px; height: 26px; }
.mic:active { transform: scale(.96); }
.mic.on { background: var(--lauma); }
.mic.on::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lauma); opacity: .5; animation: ring 1.8s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.dock .typed { flex: 1 1 260px; display: flex; gap: 8px; }
.mapsvg { width: 100%; height: 100%; }
.mapsvg .link { fill: none; stroke: #d1d1d6; stroke-width: 1.6; transition: d .7s var(--ease-out); }
.mapsvg .node { transition: transform .7s var(--ease-out), opacity .6s var(--ease-out); }
.mapsvg .node.new { opacity: 0; }
.mapsvg .node text { font-family: var(--font); fill: var(--ink); }
.map-tools { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; gap: 6px; }
.map-legend { position: absolute; left: 16px; bottom: 12px; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ai-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 16px; padding: 12px 16px; border-radius: var(--r-m); background: #fff4e5; color: #6b4000; font-size: 14px; font-weight: 600; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.notes-panel { display: grid; gap: 24px; }
.notes-panel ul { list-style: none; display: grid; gap: 10px; }
.notes-panel li { padding-left: 18px; position: relative; }
.notes-panel li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.notes-panel .dec li::before { background: var(--gain); }
.notes-panel .act li::before { background: var(--lauma); }
.notes-panel .q li::before { background: var(--surface); border: 1.5px solid var(--muted); }
@media (max-width: 1100px) { .room { grid-template-columns: 1fr; height: auto; } .room .map { height: 56vh; } .room .side { height: 50vh; order: -1; } }

.meeting-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 0; }

/* ---------- stage: 1920 x 1080 scaled to the screen, exactly the presentation geometry */
.stage-wrap { position: fixed; inset: 0; background: var(--surface); z-index: 100; overflow: hidden; }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--surface); overflow: hidden; }
.stage .logo { position: absolute; left: 128px; top: 48px; height: 34px; }
.stage .clock { position: absolute; right: 128px; top: 52px; font-size: 22px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.stage .title { position: absolute; left: 128px; top: 128px; right: 128px; }
.stage .title .kicker { font-size: 22px; margin-bottom: 8px; }
.stage .title .h { font-size: 52px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.08; }
.stage .mapbox { position: absolute; left: 96px; right: 96px; top: 250px; bottom: 270px; }
.stage .captions { position: absolute; left: 128px; right: 128px; bottom: 70px; height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.stage .cap .who { font-size: 22px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.stage .cap .who i { width: 10px; height: 10px; border-radius: 50%; background: var(--lauma); }
.stage .cap .a { font-size: 40px; font-weight: 700; line-height: 1.18; letter-spacing: -0.012em; }
.stage .cap .b { font-size: 34px; font-weight: 400; line-height: 1.2; color: var(--ink-2); margin-top: 6px; }
.stage .cap.interim .a, .stage .cap.interim .b { color: var(--faint); }
.stage .bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--graphite); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s linear; }
.stage .idle { position: absolute; inset: 0; }
.stage .idle video, .stage .idle img { width: 100%; height: 100%; object-fit: cover; }
.stage .idle .txt { position: absolute; left: 128px; bottom: 140px; }
.stage-tools { position: fixed; right: 16px; top: 14px; z-index: 110; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; }
.stage-wrap:hover .stage-tools { opacity: 1; }

/* ---------- drawers and dialogs */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(29, 29, 31, .28); opacity: 0; transition: opacity .25s; }
.scrim.in { opacity: 1; }
.dialog { position: fixed; z-index: 90; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; transform: translate(-50%, -46%); opacity: 0; background: var(--surface); border-radius: var(--r-l); padding: 28px; transition: transform .45s var(--ease-out), opacity .3s; }
.dialog.in { transform: translate(-50%, -50%); opacity: 1; }
.dialog .x { position: absolute; right: 14px; top: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .4s var(--ease-out), opacity .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 860px) { .toast { bottom: 96px; } }
.menu { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-m); padding: 8px; z-index: 50; display: grid; }
.menu button, .menu a { text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.menu button:hover, .menu a:hover { background: var(--panel); }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }

/* ---------- library */
.doc { display: grid; gap: 14px; }
.doc .cover { aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--panel); border: 1px solid var(--hair); }
.doc .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.doc:hover .cover img { transform: scale(1.02); }

/* ---------- console */
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin-bottom: 24px; overflow-x: auto; }
.tabs-line a { padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-line a.on { color: var(--ink); border-bottom-color: var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.table td.r, .table th.r { text-align: right; }
.table-wrap { overflow-x: auto; }
.matrix td { text-align: center; }
.matrix td:first-child { text-align: left; }
.toggle { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--hair); display: inline-grid; place-items: center; transition: background-color .15s, border-color .15s; }
.toggle.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toggle svg { width: 14px; height: 14px; }

.flip { transform: rotate(180deg); }
