/* Comu design system */
:root {
  --bg: #060910;
  --bg-2: #0a101c;
  --surface: #0f1727;
  --surface-2: #152036;
  --surface-3: #1b2942;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eefb;
  --muted: #94a3bd;
  --brand: #5b8cff;
  --brand-2: #8b5cf6;
  --accent: #2dd4bf;
  --danger: #f05252;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 18px 50px rgba(2, 6, 16, 0.55);
  --shadow-s: 0 8px 24px rgba(2, 6, 16, 0.35);
  --grad: linear-gradient(135deg, #5b8cff 0%, #8b5cf6 52%, #2dd4bf 100%);
  --font: "Vazirmatn", "IRANSans", "IRANSansWeb", "Segoe UI", Tahoma, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eaeffa;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #101828;
  --muted: #64748b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --shadow-s: 0 8px 24px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(91, 140, 255, 0.26), transparent 70%),
    radial-gradient(45% 45% at 5% 0%, rgba(139, 92, 246, 0.2), transparent 70%),
    radial-gradient(50% 40% at 50% 110%, rgba(45, 212, 191, 0.12), transparent 70%);
}

h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(91, 140, 255, 0.35); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 189, 0.4) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(148, 163, 189, 0.28); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 189, 0.5); background-clip: content-box; }

.muted { color: var(--muted); }
.tiny { font-size: 0.78rem; }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--grad); --btn-fg: #fff; border-color: transparent; background-image: var(--grad); box-shadow: 0 10px 26px rgba(91, 140, 255, 0.32); }
.btn-primary:hover { background-image: var(--grad); box-shadow: 0 14px 32px rgba(91, 140, 255, 0.4); }
.btn-soft { --btn-bg: rgba(91, 140, 255, 0.14); --btn-fg: #cfe0ff; border-color: rgba(91, 140, 255, 0.22); }
.btn-soft:hover { background: rgba(91, 140, 255, 0.22); }
.btn-ghost { --btn-bg: transparent; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; border-color: transparent; }
.btn-danger:hover { background: #e03e3e; }
.btn-danger-soft { --btn-bg: rgba(240, 82, 82, 0.14); --btn-fg: #ffb4b4; border-color: rgba(240, 82, 82, 0.24); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:active { transform: scale(0.95); }
.ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic-lg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 7px; font-size: 0.9rem; }
.field > span { color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
[data-theme="light"] .input, [data-theme="light"] .select, [data-theme="light"] .textarea { background: #fff; }
.input::placeholder, .textarea::placeholder { color: rgba(148, 163, 189, 0.7); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18); background: rgba(255, 255, 255, 0.05); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3bd' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-inline-start: 44px; }
.input-group .ic { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; }
.check input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; flex: none; transition: 0.16s; }
.check input:checked { background: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); background-size: 14px; background-repeat: no-repeat; background-position: center; }
.check small { display: block; color: var(--muted); font-size: 0.78rem; }

/* ---------------------------------------------------------------- surfaces */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: var(--shadow-s);
}
[data-theme="light"] .card { background: #fff; }
.card-flat { background: var(--surface); box-shadow: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.badge-live { background: rgba(240, 82, 82, 0.16); color: #ffb0b0; border-color: rgba(240, 82, 82, 0.3); }
.badge-ok { background: rgba(52, 211, 153, 0.14); color: #8ff0cb; border-color: rgba(52, 211, 153, 0.28); }
.badge-brand { background: rgba(91, 140, 255, 0.16); color: #b9d0ff; border-color: rgba(91, 140, 255, 0.3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 0.9rem;
  background: var(--surface-3);
  overflow: hidden;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-sm { width: 30px; height: 30px; font-size: 0.72rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------------------------------------------------------------- overlay / dialog / toast */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(7px);
  animation: fade 0.18s var(--ease);
}
.dialog {
  width: min(480px, 100%);
  max-height: min(86vh, 900px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  animation: pop 0.2s var(--ease);
  overflow: hidden;
}
.dialog-wide { width: min(760px, 100%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { margin: 0; font-size: 1.05rem; }
.dialog-body { padding: 20px; overflow: auto; display: grid; gap: 14px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.dialog .icon-btn { font-size: 1.4rem; line-height: 1; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; z-index: 120; inset-block-end: 20px; inset-inline-start: 20px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  animation: slideIn 0.24s var(--ease);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.out { opacity: 0; transform: translateY(8px); }
.toast-text { flex: 1; }
.toast-close { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 2px; }
.toast-ok { border-color: rgba(52, 211, 153, 0.4); }
.toast-error { border-color: rgba(240, 82, 82, 0.45); }
.toast-action { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; font-size: 0.85rem; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.empty { display: grid; place-items: center; gap: 8px; padding: 38px 18px; text-align: center; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; opacity: 0.55; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- app shell */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: rgba(6, 9, 16, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.8); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); box-shadow: 0 8px 20px rgba(91, 140, 255, 0.35); }
.brand-mark .ic { color: #fff; width: 21px; height: 21px; }
.brand small { font-size: 0.7rem; font-weight: 600; color: var(--muted); margin-inline-start: 2px; }
.topnav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.topnav a { padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.topnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.page { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px) 80px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(36px, 6vw, 76px) 0 28px; }
.hero-copy { display: grid; gap: 18px; align-content: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(91, 140, 255, 0.08); font-size: 0.8rem; font-weight: 600; color: #c3d5ff; }
.hero h1 { margin: 0; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 52ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-stats { display: flex; gap: 26px; margin-top: 8px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.3rem; }
.hero-stats span { font-size: 0.78rem; color: var(--muted); }

.join-card { padding: 24px; border-radius: var(--radius-l); background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.join-card h3 { margin-bottom: 4px; }
.join-card .hint { color: var(--muted); font-size: 0.84rem; margin-bottom: 16px; }
.join-row { display: flex; gap: 10px; }
.join-row .input { text-align: center; letter-spacing: 0.06em; font-weight: 600; direction: ltr; }
.hero-preview { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: radial-gradient(120% 100% at 20% 0%, #17233c, #070b12 65%); }
.preview-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 12px; }
.preview-tile { position: relative; border-radius: 14px; background: linear-gradient(160deg, #1d2b47, #0d1626); overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.06); }
.preview-tile .p-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 0.95rem; }
.preview-tile .p-name { position: absolute; bottom: 8px; right: 8px; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); color: #e6ecfa; }
.preview-tile .p-live { position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, rgba(91, 140, 255, 0.22), transparent 60%); }
.preview-bar { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(8, 12, 22, 0.82); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.preview-bar i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: #dce6fb; }
.preview-bar i.on { background: rgba(91, 140, 255, 0.3); }
.preview-bar i.danger { background: var(--danger); color: #fff; }
.preview-bar .ic { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- features */
.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; }
.feature { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); transition: transform 0.2s var(--ease), border-color 0.2s; }
.feature:hover { transform: translateY(-3px); border-color: rgba(91, 140, 255, 0.4); }
.feature .f-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(91, 140, 255, 0.14); color: #b9d0ff; margin-bottom: 4px; }
.feature h4 { margin: 0; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; inset-inline-start: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 0.84rem; }
.site-footer .row-between { flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- auth */
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 0.88rem; }
.auth-tabs button.on { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-s); }

/* ---------------------------------------------------------------- dashboard */
.shell { display: grid; grid-template-columns: 244px 1fr; gap: 22px; align-items: start; padding-top: 24px; }
.sidebar { position: sticky; top: 82px; display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-l); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 0.92rem; cursor: pointer; border: 0; background: none; text-align: start; width: 100%; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.on { background: rgba(91, 140, 255, 0.16); color: #cfe0ff; }
.side-link .ic { width: 18px; height: 18px; }
.side-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.user-chip .meta { min-width: 0; }
.user-chip b { display: block; font-size: 0.88rem; }
.user-chip span { font-size: 0.74rem; color: var(--muted); }

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: 1.55rem; margin: 0; }
.quick-start { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-l); border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(91, 140, 255, 0.16), rgba(139, 92, 246, 0.1) 55%, rgba(45, 212, 191, 0.08)); }
.quick-start h3 { margin: 0 0 2px; }
.quick-start p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 1.05rem; margin: 0; color: var(--text); }
.section-title .link { font-size: 0.82rem; font-weight: 600; color: var(--brand); cursor: pointer; background: none; border: 0; }

.meeting-list { display: grid; gap: 10px; }
.meeting-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); transition: border-color 0.2s, background 0.2s; }
.meeting-row:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }
.meeting-row .when { display: grid; place-items: center; min-width: 62px; padding: 8px 6px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.meeting-row .when b { font-size: 0.95rem; line-height: 1.2; }
.meeting-row .when span { font-size: 0.68rem; color: var(--muted); }
.meeting-row .info { min-width: 0; }
.meeting-row .info b { display: block; font-size: 0.95rem; }
.meeting-row .info .sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); align-items: center; }
.meeting-row .actions { display: flex; gap: 6px; align-items: center; }
.code-pill { font-family: ui-monospace, monospace; font-size: 0.76rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); direction: ltr; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.stat { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.stat b { display: block; font-size: 1.5rem; }
.stat span { font-size: 0.78rem; color: var(--muted); }

.rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rec-card { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.rec-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, #1a2846, #0b1322); display: grid; place-items: center; color: rgba(255, 255, 255, 0.65); }
.rec-thumb .play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; backdrop-filter: blur(6px); }
.rec-card b { font-size: 0.9rem; }
.rec-card .sub { font-size: 0.76rem; color: var(--muted); }

.settings-grid { display: grid; gap: 18px; }
.settings-block { display: grid; gap: 12px; }
.settings-block h3 { margin: 0; font-size: 1rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row .txt b { display: block; font-size: 0.92rem; font-weight: 600; }
.settings-row .txt span { font-size: 0.78rem; color: var(--muted); }

/* ---------------------------------------------------------------- responsive app */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-preview { order: -1; max-height: 42vh; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 62px; z-index: 12; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 8px; background: var(--bg-2); }
  .sidebar .user-chip, .sidebar .side-sep { display: none; }
  .topnav { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .join-row { flex-direction: column; }
  .quick-start { grid-template-columns: 1fr; }
  .meeting-row { grid-template-columns: auto 1fr; }
  .meeting-row .actions { grid-column: 1 / -1; justify-content: flex-end; }
}
