:root {
  --brand: #0f766e;
  --side-2: #0f5c55;
  --teal: #0f766e;
  --teal-600: #0d9488;
  --teal-50: #effcf9;
  --teal-100: #ccfbef;
  --ink: #0f1f1d;
  --ink-2: #3d4f4c;
  --muted: #6b7c79;
  --line: #e2e9e7;
  --line-2: #eef3f2;
  --bg: #f5f8f7;
  --panel: #ffffff;
  --side: #0b3b37;
  --side-ink: #d5ebe7;
  --side-muted: #87aaa4;
  --danger: #c2410c;
  --danger-bg: #fff3ec;
  --live: #dc2626;
  --shadow: 0 1px 2px rgba(15,31,29,.06), 0 4px 16px rgba(15,31,29,.06);
  --shadow-lg: 0 10px 40px rgba(15,31,29,.18);
  --radius: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #2dd4bf; --teal-600: #5eead4; --teal-50: #0f2a27; --teal-100: #134e48;
    --ink: #e6f0ee; --ink-2: #bccdc9; --muted: #84a09b; --line: #24332f; --line-2: #1b2825;
    --bg: #0e1715; --panel: #141f1d; --side: #08201d; --side-ink: #cfe6e2; --side-muted: #6f908a;
    --danger: #fb923c; --danger-bg: #2a1a10;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root { --teal-50: color-mix(in srgb, var(--teal) 7%, var(--panel)); --teal-100: color-mix(in srgb, var(--teal) 17%, var(--panel)); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 620; }
h3 { font-size: 14.5px; font-weight: 620; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }

.boot { height: 100vh; display: grid; place-items: center; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 19px; font-family: var(--font-display); flex: none; }
.logo-mark.big { width: 64px; height: 64px; font-size: 36px; border-radius: 18px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- buttons & inputs ---------- */
.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 560; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--live); border-color: var(--live); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 9px 11px; outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
textarea { resize: vertical; min-height: 80px; }
.row { display: flex; gap: 12px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; margin-bottom: 12px; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.err { background: var(--danger-bg); color: var(--danger); padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; font-size: 13.5px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--side); color: var(--side-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(45,212,191,.12); }
.auth-art h1 { font-size: 34px; color: #fff; max-width: 420px; line-height: 1.15; }
.auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-art li { display: flex; gap: 10px; align-items: center; color: var(--side-ink); }
.auth-art li svg { width: 18px; height: 18px; color: #5eead4; }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--panel); }
.auth-form form { width: 100%; max-width: 360px; }
.auth-form h2 { font-size: 22px; margin-bottom: 6px; }
.auth-form p.muted { margin: 0 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-family: var(--font-display); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; overflow-y: auto; }
.side .brand { padding: 4px 8px 18px; color: #fff; }
.side .brand small { display: block; font-weight: 450; color: var(--side-muted); font-size: 11.5px; letter-spacing: .02em; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-weight: 520; }
.nav a svg { width: 18px; height: 18px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a.active { background: rgba(45,212,191,.16); color: #fff; }
.nav a .badge { margin-left: auto; background: var(--live); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; font-weight: 650; }
.side .spacer { flex: 1; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.me-card .who { flex: 1; min-width: 0; }
.me-card .who b { display: block; color: #fff; font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who span { font-size: 12px; color: var(--side-muted); }
.me-card .icon-btn { color: var(--side-muted); }
.me-card .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { overflow-y: auto; min-width: 0; }
.page { padding: 28px 32px 48px; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 200px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.mobile-bar { display: none; }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: 12px; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.stack { display: flex; }
.stack .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--panel); margin-left: -6px; }
.stack .avatar:first-child { margin-left: 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { flex: 1; font-size: 15px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; opacity: .5; display: block; margin: 0 auto 8px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.pill.live { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; }
.pill.teal { background: var(--teal-100); color: var(--teal); }
@media (prefers-color-scheme: dark) { .pill.teal { color: #99f6e4; } }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.dash .col { display: grid; gap: 20px; align-content: start; }
.hero { display: flex; gap: 16px; align-items: center; padding: 22px 24px; background: linear-gradient(120deg, var(--side), var(--side-2)); color: #fff; border-radius: var(--radius); }
.hero h1 { color: #fff; }
.hero p { margin: 4px 0 0; color: #b6dcd6; }
.hero .grow { flex: 1; }
.hero .btn { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; }
.hero .btn.primary { background: #fff; border-color: #fff; color: var(--side); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover, .list-item.clickable:hover { background: var(--line-2); cursor: pointer; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .s { font-size: 12.5px; color: var(--muted); }
.time-col { width: 64px; flex: none; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #22c55e; }
.status-dot.busy { background: #f59e0b; }
.status-dot.meeting { background: var(--live); }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cal-toolbar h2 { font-size: 19px; min-width: 210px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 7px 13px; cursor: pointer; font-weight: 560; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--teal-100); color: var(--teal); }
@media (prefers-color-scheme: dark) { .seg button.on { color: #99f6e4; } }
.people-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; font-weight: 540; user-select: none; }
.chip .avatar { width: 20px; height: 20px; font-size: 9.5px; }
.chip.off { opacity: .45; }
.chip.off .avatar { background: var(--muted) !important; }
.cal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-head { display: grid; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 3; }
.cal-head > div { padding: 10px 8px; text-align: center; font-size: 12.5px; color: var(--muted); border-left: 1px solid var(--line-2); }
.cal-head > div:first-child { border-left: 0; }
.cal-head b { display: block; font-size: 19px; color: var(--ink); font-weight: 600; font-family: var(--font-display); }
.cal-head .today b { color: #fff; background: var(--brand); border-radius: 50%; width: 34px; height: 34px; line-height: 34px; margin: 2px auto 0; }
.cal-head .person { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); font-weight: 580; }
.allday-row { display: grid; border-bottom: 1px solid var(--line); min-height: 28px; }
.allday-row > div { border-left: 1px solid var(--line-2); padding: 3px; display: grid; gap: 2px; align-content: start; }
.allday-row > div:first-child { border-left: 0; font-size: 10.5px; color: var(--muted); text-align: right; padding: 6px 6px 0 0; }
.cal-scroll { height: calc(100vh - 290px); min-height: 380px; overflow-y: auto; position: relative; }
.cal-grid { display: grid; position: relative; }
.hours { position: relative; }
.hours div { height: 48px; font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.day-col { position: relative; border-left: 1px solid var(--line-2); background-image: repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 48px); cursor: crosshair; }
.day-col.today { background-color: color-mix(in srgb, var(--teal) 4%, transparent); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--live); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.ev { position: absolute; border-radius: 7px; padding: 4px 7px; font-size: 12px; overflow: hidden; cursor: pointer; border-left: 3px solid; line-height: 1.3; z-index: 1; transition: box-shadow .12s; }
.ev:hover { box-shadow: var(--shadow-lg); z-index: 4; }
.ev b { display: block; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { opacity: .8; font-size: 11px; }
.ev.busy { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(127,127,127,.12) 6px 12px) !important; }
.ev svg { width: 11px; height: 11px; vertical-align: -1px; }
.ev-chip { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-left: 3px solid; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); }
.month .dow { padding: 8px; font-size: 12px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.month .cell { min-height: 112px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 5px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.month .cell:nth-child(7n) { border-right: 0; }
.month .cell .n { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.month .cell.other { background: var(--bg); }
.month .cell.other .n { color: var(--muted); }
.month .cell.today .n { background: var(--brand); color: #fff; }
.more { font-size: 11px; color: var(--muted); padding-left: 4px; }

/* ---------- documents ---------- */
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.tree { padding: 8px; }
.tree-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 520; }
.tree-item svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
.tree-item:hover { background: var(--line-2); }
.tree-item.on { background: var(--teal-100); color: var(--ink); }
.tree-item .count { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.tree-item .caret { width: 14px; height: 14px; color: var(--muted); transition: transform .12s; }
.tree-item .caret.open { transform: rotate(90deg); }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 580; }
.crumbs a { text-decoration: none; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.crumbs a:hover { background: var(--line-2); color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; color: var(--muted); }
table.files { width: 100%; border-collapse: collapse; }
table.files th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 9px 14px; border-bottom: 1px solid var(--line); }
table.files td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.files tr:last-child td { border-bottom: 0; }
table.files tr:hover td { background: var(--line-2); }
.fname { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 540; min-width: 0; }
.fname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.ficon svg { width: 17px; height: 17px; }
.dropzone { position: relative; }
.dropzone.drag::after { content: "Drop files to upload"; position: absolute; inset: 0; background: color-mix(in srgb, var(--teal) 12%, var(--panel)); border: 2px dashed var(--teal); border-radius: var(--radius); display: grid; place-items: center; font-weight: 650; color: var(--teal); z-index: 5; }
.uploads { display: grid; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.progress { height: 5px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.progress > div { height: 100%; background: var(--teal); width: 0; transition: width .15s; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.person-card { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.person-card .grow { flex: 1; min-width: 0; }
.person-card .name { font-weight: 620; font-size: 15px; }
.person-card .status { display: flex; gap: 7px; align-items: center; font-size: 12.5px; margin-top: 8px; color: var(--ink-2); }
.person-card .email { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* ---------- meetings ---------- */
.meet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meeting-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.notes-md { padding: 6px 22px 20px; }
.notes-md h2 { font-size: 15px; margin: 18px 0 6px; color: var(--teal); }
@media (prefers-color-scheme: dark) { .notes-md h2 { color: #5eead4; } }
.notes-md h3 { font-size: 14px; margin: 14px 0 4px; }
.notes-md ul { margin: 0; padding-left: 20px; }
.notes-md li { margin: 3px 0; }
.notes-md p { margin: 6px 0; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--teal); background: var(--teal-100); padding: 3px 9px; border-radius: 99px; }
@media (prefers-color-scheme: dark) { .ai-tag { color: #99f6e4; } }
.ai-tag svg { width: 13px; height: 13px; }
.transcript { max-height: 460px; overflow-y: auto; padding: 8px 0; }
.tline { padding: 6px 18px; display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 13.5px; }
.tline time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tline b { font-weight: 620; margin-right: 6px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); padding: 0 10px; }
.tabs button { border: 0; background: none; padding: 11px 12px; cursor: pointer; font-weight: 580; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--teal); }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--teal-100); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- room ---------- */
.room { position: fixed; inset: 0; background: #0b1413; color: #e6f0ee; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; z-index: 50; }
.room-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #1d2b29; }
.room-top h2 { color: #fff; font-size: 16px; }
.room-top .grow { flex: 1; }
.rec { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: #fca5a5; background: rgba(220,38,38,.14); padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.2s infinite; }
.rec.off { color: #9fb3af; background: rgba(255,255,255,.06); }
.rec.off::before { background: #6b7c79; animation: none; }
.stage { padding: 16px; display: grid; gap: 12px; align-content: center; overflow: hidden; min-height: 0; }
.tile { position: relative; background: #13201e; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; border: 2px solid transparent; transition: border-color .15s; min-height: 0; }
.tile.speaking { border-color: #2dd4bf; }
.tile video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile video.mirror { transform: scaleX(-1); }
.tile video.contain { object-fit: contain; background: #000; }
.tile .label { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 580; display: flex; align-items: center; gap: 6px; z-index: 2; }
.tile .label svg { width: 14px; height: 14px; color: #fca5a5; }
.tile .avatar { width: 84px; height: 84px; font-size: 30px; }
.room-side { width: 360px; border-left: 1px solid #1d2b29; display: flex; flex-direction: column; min-height: 0; background: #0f1a19; }
.room-side .tabs { border-color: #1d2b29; }
.room-side .tabs button { color: #84a09b; }
.room-side .tabs button.on { color: #fff; }
.side-body { flex: 1; overflow-y: auto; min-height: 0; }
.room-side .tline { color: #d5e6e2; }
.room-side textarea, .room-side input { background: #13201e; border-color: #24332f; color: #e6f0ee; }
.interim { opacity: .55; font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #1d2b29; }
.controls { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid #1d2b29; flex-wrap: wrap; }
.ctl { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #1d2b29; color: #e6f0ee; cursor: pointer; display: grid; place-items: center; transition: background .12s; position: relative; }
.ctl:hover { background: #26403b; }
.ctl svg { width: 21px; height: 21px; }
.ctl.off { background: #f1f5f4; color: #0b1413; }
.ctl.on { background: var(--brand); color: #fff; }
.ctl.leave { background: #dc2626; width: 64px; border-radius: 25px; }
.ctl.leave:hover { background: #b91c1c; }
.ctl[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 4px 9px; font-size: 12px; border-radius: 6px; white-space: nowrap; }
.prejoin { position: fixed; inset: 0; z-index: 50; background: #0b1413; color: #e6f0ee; display: grid; place-items: center; padding: 20px; }
.prejoin-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; max-width: 980px; width: 100%; }
.prejoin .tile { aspect-ratio: 16/9; }
.prejoin h1 { color: #fff; margin-bottom: 8px; }
.prejoin p { color: #9fb3af; }
.notice { background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.25); color: #b6ece3; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 16px 0; display: flex; gap: 9px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- modal & toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8,20,18,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: rise .16s ease-out; }
.modal.wide { max-width: 860px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.modal-foot .left { margin-right: auto; }
.preview-frame { width: 100%; height: 70vh; border: 0; border-radius: 8px; background: #fff; }
.preview-img { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; border-radius: 8px; }
.picker { display: flex; flex-wrap: wrap; gap: 6px; }
.picker .chip.on { border-color: var(--teal); background: var(--teal-100); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--ink); }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: var(--panel); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 520; max-width: 380px; animation: rise .16s; }
.toast.bad { background: var(--live); color: #fff; }
.detail-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.detail-row svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
.settings { display: grid; gap: 20px; max-width: 760px; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--line-2); padding: 1px 6px; border-radius: 5px; }

@media (max-width: 1000px) {
  .dash, .meet-grid, .meeting-detail { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .room-side { position: absolute; right: 0; top: 57px; bottom: 79px; width: min(360px, 100%); z-index: 5; }
  .prejoin-box { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 10; }
  .page { padding: 18px 16px 40px; }
  .grid2 { grid-template-columns: 1fr; }
  .cal-toolbar h2 { min-width: 0; font-size: 16px; }
  .hide-sm { display: none !important; }
  .ctl { width: 44px; height: 44px; }
}

/* ---------- logos & organisations ---------- */
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo img { height: 36px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.brand-logo.chip { background: #fff; border-radius: 9px; padding: 3px 6px; }
.brand-logo.chip img { height: 30px; }
.brand-logo.lg img { height: 56px; max-width: 220px; }
.brand-logo.sm img { height: 26px; max-width: 110px; }
.brand-logo.sm.chip img { height: 22px; }
.side .brand { gap: 11px; }
.acting { margin: 0 2px 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 12.5px; color: var(--side-ink); }
.acting b { color: #fff; }
.acting button { margin-top: 8px; width: 100%; justify-content: center; background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.org-card { overflow: hidden; display: flex; flex-direction: column; }
.org-strip { height: 86px; display: flex; align-items: center; padding: 0 18px; gap: 12px; color: #fff; position: relative; }
.org-strip .accent-dot { position: absolute; right: 14px; top: 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.org-body { padding: 14px 18px; flex: 1; display: grid; gap: 6px; align-content: start; }
.org-body h3 { font-size: 16px; }
.org-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.org-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 150px 1fr; min-height: 210px; background: var(--bg); }
.preview .pv-side { padding: 12px 10px; color: #fff; display: grid; gap: 6px; align-content: start; }
.preview .pv-side .pv-nav { height: 9px; border-radius: 5px; background: rgba(255,255,255,.18); }
.preview .pv-side .pv-nav.on { background: rgba(255,255,255,.4); }
.preview .pv-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.preview .pv-hero { border-radius: 9px; height: 54px; }
.preview .pv-btn { width: 84px; height: 24px; border-radius: 7px; }
.preview .pv-line { height: 8px; border-radius: 4px; background: var(--line); }
.colour-row { display: flex; gap: 8px; align-items: center; }
.colour-row input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: pointer; flex: none; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.presets button { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.logo-slot { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; justify-items: start; }
.logo-slot .shown { height: 64px; display: flex; align-items: center; padding: 6px 10px; border-radius: 8px; }
.logo-slot .shown img { max-height: 52px; max-width: 200px; }
.side .brand { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 16px; }
.side .brand .brand-logo img { height: 42px; max-width: 190px; }
.side .brand .brand-logo.chip img { height: 34px; }
.side .brand small { font-size: 12.5px; color: var(--side-ink); font-weight: 560; }
.auth-art .brand-logo img { height: 52px; max-width: 240px; }
