:root {
    --bg: #070a12;
    --bg-2: #0b101b;
    --panel: #111827;
    --panel-2: #151f30;
    --panel-3: #1b2639;
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(148, 163, 184, 0.28);
    --text: #eef2ff;
    --muted: #94a3b8;
    --faint: #64748b;
    --accent: #4f8cff;
    --accent-2: #7c5cff;
    --accent-soft: rgba(79, 140, 255, 0.14);
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.15);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9);
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; }
.hidden { display: none !important; }
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.icon.tiny { width: 14px; height: 14px; }
kbd {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12); }
    50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.03); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes tile-in {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes reaction-float {
    0% { opacity: 0; transform: translateY(10px) scale(0.8); }
    15% { opacity: 1; transform: translateY(0) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-160px) scale(1.35); }
}

/* Brand and buttons */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand.small { gap: 8px; }
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: -0.5px;
    color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(79, 140, 255, 0.9);
}
.brand.small .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.brand-text { font-weight: 800; letter-spacing: -0.03em; font-size: 20px; }
.brand.small .brand-text { font-size: 16px; }

.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    background: var(--panel-2);
    color: var(--text);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 14px 28px -14px rgba(79, 140, 255, 0.9); }
.btn-primary:hover { background: #5b95ff; }
.btn-ghost { background: rgba(148, 163, 184, 0.08); border-color: var(--line); }
.btn-ghost:hover { background: rgba(148, 163, 184, 0.14); }
.btn-danger { background: var(--red); color: #ffffff; }
.btn-danger:hover { background: #f05252; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.12); color: var(--text); }

/* Landing */
.landing { position: relative; overflow-x: hidden; }
.landing::before, .landing::after {
    content: "";
    position: fixed;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(79, 140, 255, 0.07);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.landing::before { top: -220px; left: -160px; }
.landing::after { right: -200px; top: 16%; background: rgba(124, 92, 255, 0.06); }
.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(7, 10, 18, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(18px);
}
.landing-nav { display: flex; gap: 26px; margin-left: 16px; }
.landing-nav a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color 0.15s; }
.landing-nav a:hover { color: var(--text); }
.landing-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 72px) 40px;
}
.hero-copy { animation: fade-up 0.6s ease both; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b9c6e6;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}
.hero h1 {
    font-size: clamp(42px, 6.2vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin: 20px 0 18px;
    font-weight: 900;
}
.accent-text { color: var(--accent); }
.hero-sub { max-width: 560px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; margin: 0 0 28px; }

.join-card {
    max-width: 560px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.join-tabs { display: flex; gap: 6px; padding: 4px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.join-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 9px;
    transition: background 0.15s, color 0.15s;
}
.join-tab.is-active { background: var(--panel-2); color: var(--text); }
.join-form { display: grid; gap: 12px; }
.new-copy { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 4px; }
.join-hint { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 14px 2px 0; }

.field { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.78);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus { border-color: rgba(79, 140, 255, 0.7); box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12); }
.field input::placeholder { color: #5b6b85; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: calc(100% - 14px) center;
    background-repeat: no-repeat;
    background-size: 10px 6px;
    padding-right: 34px;
}

.hero-visual { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.visual-glow {
    position: absolute;
    inset: 12% 4%;
    background: rgba(79, 140, 255, 0.08);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}
.mock-window {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-7deg) rotateX(4deg);
    animation: fade-up 0.7s 0.1s ease both;
}
.mock-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.mock-dot.red { background: #f87171; }
.mock-dot.amber { background: #fbbf24; }
.mock-dot.green { background: #34d399; }
.mock-title { margin-left: 8px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.mock-live { margin-left: auto; font-size: 9px; font-weight: 800; color: #fecaca; background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.35); padding: 3px 7px; border-radius: 999px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.mock-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mock-tile-a { background: #1c2b4a; }
.mock-tile-b { background: #1e3a3a; }
.mock-tile-d { background: #332341; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #dbeafe; }
.mock-tile em { position: absolute; left: 7px; bottom: 6px; font-style: normal; font-size: 9px; font-weight: 700; color: #e2e8f0; background: rgba(0, 0, 0, 0.4); padding: 2px 6px; border-radius: 5px; }
.mock-screen { grid-column: span 2; aspect-ratio: 16 / 7; background: #0b1220; display: block; padding: 12px; }
.mock-screen-bar { display: block; height: 7px; width: 32%; border-radius: 4px; background: rgba(79, 140, 255, 0.55); margin-bottom: 9px; }
.mock-screen-line { display: block; height: 5px; width: 70%; border-radius: 4px; background: rgba(148, 163, 184, 0.2); margin-bottom: 6px; }
.mock-screen-line.short { width: 44%; }
.mock-screen-badge { position: absolute; top: 10px; right: 10px; font-size: 8px; font-weight: 800; color: #bfdbfe; background: rgba(79, 140, 255, 0.18); border: 1px solid rgba(79, 140, 255, 0.35); padding: 2px 6px; border-radius: 6px; }
.mock-controls { display: flex; justify-content: center; gap: 8px; padding: 6px 0 14px; }
.mock-control { width: 26px; height: 26px; border-radius: 50%; background: #1e293b; border: 1px solid var(--line); }
.mock-control.accent { background: var(--accent); border-color: transparent; }
.mock-control.danger { background: #b91c1c; border-color: transparent; }

.logos-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; padding: 22px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.section-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1.05; margin: 16px 0 10px; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.features, .how, .security { position: relative; z-index: 1; padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.feature-card { background: rgba(17, 24, 39, 0.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: rgba(23, 33, 51, 0.85); }
.feature-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(79, 140, 255, 0.2); font-size: 20px; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.how { background: rgba(15, 23, 42, 0.35); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 14px; background: rgba(17, 24, 39, 0.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(79, 140, 255, 0.25); color: #bfdbfe; display: flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 auto; }
.steps h3 { margin: 0 0 6px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.security { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 60px); align-items: center; max-width: 1180px; margin: 0 auto; }
.security h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.04em; line-height: 1.05; margin: 16px 0 12px; }
.security p { color: var(--muted); line-height: 1.65; font-size: 14.5px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #dbeafe; font-size: 13.5px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, 0.16); color: #4ade80; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }
.security-card { background: rgba(17, 24, 39, 0.8); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.security-badge { display: inline-flex; font-size: 10px; font-weight: 900; letter-spacing: 0.15em; color: #86efac; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); padding: 4px 8px; border-radius: 6px; }
.security-card h3 { margin: 14px 0 6px; font-size: 20px; }
.security-card p { margin: 0 0 16px; font-size: 13px; }
.security-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.security-row .ok { color: #4ade80; font-weight: 800; }
.landing-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 26px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.landing-footer p { margin: 0; }
.landing-footer > span { margin-left: auto; }

/* Toasts */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { transform: translateY(10px); opacity: 0; transition: opacity 0.2s, transform 0.2s; background: rgba(15, 23, 42, 0.98); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); max-width: 340px; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-error { border-color: rgba(239, 68, 68, 0.55); background: #3f0d0d; }
.toast-success { border-color: rgba(34, 197, 94, 0.45); }
.form-error { color: #fca5a5; background: var(--red-soft); border: 1px solid rgba(239, 68, 68, 0.35); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin: 0; }

/* Prejoin */
.meeting { height: 100dvh; overflow: hidden; background: var(--bg); }
.prejoin { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 22px; background: var(--bg); overflow: auto; }
.prejoin-card { width: min(100%, 980px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); background: rgba(17, 24, 39, 0.96); border: 1px solid var(--line-strong); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.prejoin-media { position: relative; min-height: 420px; background: #05080f; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prejoin-media video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.prejoin-avatar { position: absolute; width: 104px; height: 104px; border-radius: 50%; background: #1e3a8a; border: 2px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: #dbeafe; }
.prejoin-media-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px; background: rgba(0, 0, 0, 0.62); }
.preview-status { margin-left: auto; color: #cbd5e1; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); padding: 5px 9px; border-radius: 999px; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(15, 23, 42, 0.8); color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.round-btn:hover { background: rgba(30, 41, 59, 0.95); }
.round-btn.is-off { background: var(--red); border-color: transparent; color: #ffffff; }
.prejoin-info { padding: clamp(24px, 3.2vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.prejoin-info .brand { margin-bottom: 22px; }
.prejoin-info h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.04em; margin: 0 0 6px; }
.prejoin-room { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.prejoin-actions { display: flex; gap: 10px; margin-top: 20px; }
.prejoin-actions .btn-primary { flex: 1; }
.prejoin .join-hint { margin-top: 14px; }

/* Meeting shell */
.meeting-shell { height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.meet-top { height: 62px; flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); z-index: 20; }
.meet-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.meet-divider { width: 1px; height: 22px; background: var(--line); }
.room-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.room-code { font-size: 13px; font-weight: 800; color: #dbeafe; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.meet-status { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.meet-timer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(148, 163, 184, 0.08); white-space: nowrap; }
.badge.ok { color: #86efac; border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.1); }
.badge.warn { color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }
.meet-top-actions { display: flex; align-items: center; gap: 6px; }
.top-action { position: relative; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 800; transition: background 0.15s, color 0.15s; }
.top-action:hover { background: rgba(148, 163, 184, 0.12); color: var(--text); }
.unread-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 9px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg-2); }

.meet-body { flex: 1; min-height: 0; display: flex; }
.stage { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: #04070d; overflow: hidden; }
.filmstrip { min-height: 0; }
.filmstrip.grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 18px; align-content: center; overflow: auto; }
.filmstrip.grid .tile { aspect-ratio: 16 / 9; min-height: 0; }
.filmstrip.strip { flex: 0 0 128px; display: flex; gap: 10px; padding: 10px 14px; overflow-x: auto; overflow-y: hidden; border-top: 1px solid var(--line); background: #080c14; }
.filmstrip.strip .tile { flex: 0 0 190px; height: 100%; }
.spotlight { flex: 1; min-height: 0; display: flex; align-items: stretch; justify-content: center; padding: 14px; }
.spotlight .tile { width: 100%; height: 100%; animation: tile-in 0.25s ease both; }
.spotlight .tile video { object-fit: contain; background: #000000; }

.tile { position: relative; border-radius: 14px; overflow: hidden; background: #172033; border: 1px solid rgba(148, 163, 184, 0.12); animation: tile-in 0.25s ease both; min-height: 0; }
.tile.is-speaking { border-color: rgba(34, 197, 94, 0.75); box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28), 0 0 24px -6px rgba(34, 197, 94, 0.4); }
.tile.is-pinned { border-color: rgba(79, 140, 255, 0.8); }
.tile video { width: 100%; height: 100%; object-fit: cover; background: #0a0f18; }
.tile.is-local video { transform: scaleX(-1); }
.tile.no-mirror video { transform: none; }
.tile.is-screen video { object-fit: contain; background: #000000; }
.tile-avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #121a29; }
.tile-avatar span { width: clamp(46px, 12%, 92px); aspect-ratio: 1; border-radius: 50%; background: #1e3a8a; border: 2px solid rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; font-size: clamp(18px, 3vw, 30px); font-weight: 900; color: #dbeafe; }
.tile-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 22px 10px 8px; background: rgba(0, 0, 0, 0.48); pointer-events: none; }
.tile-name { font-size: 11.5px; font-weight: 800; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); display: flex; align-items: center; gap: 5px; min-width: 0; }
.tile-name .you { color: #93c5fd; font-weight: 700; }
.tile-host { font-size: 8px; font-weight: 900; letter-spacing: 0.06em; color: #fcd34d; background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.3); padding: 2px 5px; border-radius: 5px; }
.tile-status { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.tile-status .status-dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); color: #cbd5e1; }
.tile-status .status-dot .icon { width: 11px; height: 11px; }
.tile-status .status-dot.off { color: #fca5a5; background: rgba(127, 29, 29, 0.75); }
.tile-status .status-dot.screen { color: #bfdbfe; background: rgba(30, 64, 175, 0.85); }
.tile-hover { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.tile:hover .tile-hover { opacity: 1; }
.tile-action { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.55); color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; }
.tile-action:hover { background: rgba(0, 0, 0, 0.8); }
.tile-action .icon { width: 12px; height: 12px; }
.tile-speaking { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 800; color: #bbf7d0; background: rgba(22, 101, 52, 0.7); border: 1px solid rgba(34, 197, 94, 0.35); padding: 2px 6px; border-radius: 6px; }
.tile-badge-screen { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 800; color: #bfdbfe; background: rgba(30, 64, 175, 0.75); border: 1px solid rgba(79, 140, 255, 0.4); padding: 2px 6px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }
.tile-badge-screen .icon { width: 10px; height: 10px; }

.stage-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #0d1421; z-index: 5; }
.stage-empty-avatar { width: 76px; height: 76px; border-radius: 22px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #ffffff; margin-bottom: 18px; box-shadow: 0 18px 40px -18px rgba(79, 140, 255, 0.9); }
.stage-empty h2 { margin: 0 0 6px; font-size: 20px; }
.stage-empty p { margin: 0 0 18px; color: var(--muted); font-size: 13px; max-width: 380px; line-height: 1.55; }
.audio-unlock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(79, 140, 255, 0.45); background: rgba(15, 23, 42, 0.96); color: #dbeafe; border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }
.audio-unlock .icon { width: 15px; height: 15px; }
.reaction-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 25; }
.floating-reaction { position: absolute; bottom: 90px; font-size: 30px; animation: reaction-float 3.2s ease-out forwards; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.floating-reaction small { display: block; text-align: center; font-size: 9px; color: #e2e8f0; font-weight: 800; }

/* Controls */
.meet-controls { flex: 0 0 auto; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: var(--bg-2); border-top: 1px solid var(--line); z-index: 20; }
.controls-left, .controls-center, .controls-right { display: flex; align-items: center; gap: 8px; }
.controls-center { position: absolute; left: 50%; transform: translateX(-50%); }
.control { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; color: #cbd5e1; transition: background 0.15s, color 0.15s; }
.control:hover { background: rgba(148, 163, 184, 0.1); color: #ffffff; }
.control-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(148, 163, 184, 0.13); display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s, transform 0.15s; }
.control:hover .control-icon { transform: translateY(-1px); }
.control-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em; }
.control.is-off .control-icon { background: var(--red); color: #ffffff; }
.control.is-off { color: #fca5a5; }
.control.is-active .control-icon { background: var(--accent); color: #ffffff; }
.control.danger .control-icon { background: var(--red); color: #ffffff; }
.control.danger:hover .control-icon { background: #f05252; }
.control .unread-badge { top: 2px; right: 14px; }
.control[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Side panel */
.side-panel { width: 360px; flex: 0 0 360px; border-left: 1px solid var(--line); background: #0c121e; display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.side-tabs { display: flex; gap: 4px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex: 1; }
.side-tab { flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; padding: 7px 8px; border-radius: 7px; }
.side-tab.is-active { background: var(--panel-2); color: var(--text); }
.panel-section { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px; overflow: auto; }
.panel-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 11px; transition: background 0.15s; }
.person:hover { background: rgba(148, 163, 184, 0.07); }
.person-avatar { width: 34px; height: 34px; border-radius: 50%; background: #1e3a8a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #dbeafe; flex: 0 0 auto; }
.person-main { min-width: 0; flex: 1; }
.person-name { font-size: 12.5px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.person-sub { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.person-icons { display: flex; gap: 4px; color: var(--muted); }
.person-icons .icon { width: 13px; height: 13px; }
.person-icons .off { color: #fca5a5; }
.person-actions { display: none; gap: 4px; }
.person:hover .person-actions { display: flex; }
.person-action { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: rgba(15, 23, 42, 0.8); color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; }
.person-action:hover { background: var(--red); border-color: transparent; }
.person-action .icon { width: 11px; height: 11px; }
.panel-hint { color: var(--faint); font-size: 11px; line-height: 1.5; margin: 14px 2px 0; }
.host-only { display: flex; }

.chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.chat-empty { color: var(--faint); font-size: 12.5px; text-align: center; padding: 24px 8px; }
.chat-message { display: flex; gap: 8px; align-items: flex-start; animation: fade-up 0.2s ease both; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: #1e3a8a; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #dbeafe; flex: 0 0 auto; margin-top: 1px; }
.chat-body { min-width: 0; }
.chat-meta { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.chat-name { font-size: 11px; font-weight: 800; color: #bfdbfe; }
.chat-time { font-size: 9px; color: var(--faint); }
.chat-text { font-size: 12.5px; line-height: 1.45; color: #e2e8f0; word-wrap: break-word; white-space: pre-wrap; }
.chat-form { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 1px solid var(--line); background: rgba(7, 10, 18, 0.78); border-radius: 10px; padding: 10px 11px; outline: none; font-size: 13px; min-width: 0; }
.chat-form input:focus { border-color: rgba(79, 140, 255, 0.7); }
.send-btn { width: 38px; height: 38px; background: var(--accent); color: #ffffff; border-radius: 10px; }
.send-btn:hover { background: #5b95ff; color: #ffffff; }

.settings-group { padding: 4px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; display: grid; gap: 10px; }
.settings-group:last-of-type { border-bottom: 0; }
.settings-group h3 { margin: 0 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.settings-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.settings-row strong { color: var(--text); font-weight: 700; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.segmented { display: flex; gap: 4px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented button { flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 800; padding: 7px 6px; border-radius: 7px; }
.segmented button.is-active { background: var(--panel-2); color: var(--text); }

/* Reactions and leave */
.reaction-tray { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.98); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: fade-up 0.15s ease both; }
.reaction-tray button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; transition: transform 0.12s, background 0.12s; }
.reaction-tray button:hover { transform: translateY(-3px) scale(1.12); background: rgba(148, 163, 184, 0.12); }
.leave-screen { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 7, 13, 0.95); }
.leave-card { width: min(100%, 420px); text-align: center; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.leave-icon { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px; background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); color: #4ade80; display: flex; align-items: center; justify-content: center; }
.leave-icon .icon { width: 28px; height: 28px; }
.leave-card h2 { margin: 0 0 6px; font-size: 22px; }
.leave-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.leave-actions { display: flex; gap: 8px; justify-content: center; }

/* Responsive */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { order: -1; min-height: 360px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .security { grid-template-columns: 1fr; }
    .landing-nav { display: none; }
    .side-panel { width: 320px; flex-basis: 320px; }
}
@media (max-width: 860px) {
    .landing-actions .btn-ghost { display: none; }
    .hero { padding-top: 34px; }
    .steps { grid-template-columns: 1fr; }
    .prejoin-card { grid-template-columns: 1fr; max-width: 560px; }
    .prejoin-media { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
    .device-grid { grid-template-columns: 1fr; }
    .control-label { display: none; }
    .control { min-width: 46px; }
    .control-icon { width: 40px; height: 40px; }
    .controls-center { position: static; transform: none; }
    .meet-controls { gap: 4px; padding: 8px 10px; }
    .controls-left, .controls-right { gap: 2px; }
    .meet-status .meet-timer { display: none; }
    .side-panel { position: fixed; inset: 62px 0 0 auto; width: min(100%, 380px); z-index: 40; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6); }
    .filmstrip.grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 10px; gap: 8px; }
    .filmstrip.strip { flex-basis: 104px; }
    .filmstrip.strip .tile { flex-basis: 160px; }
    .room-code { max-width: 110px; }
    .meet-top { gap: 8px; padding: 0 10px; }
    .meet-top-actions .btn-danger { display: none; }
}
@media (max-width: 560px) {
    .landing-header { gap: 12px; padding: 12px 16px; }
    .landing-actions .btn { padding: 8px 12px; font-size: 12px; }
    .hero { padding: 28px 16px; }
    .hero h1 { font-size: 44px; }
    .join-card { padding: 14px; }
    .feature-grid { grid-template-columns: 1fr; }
    .logos-strip { gap: 10px 18px; font-size: 10px; }
    .security { padding-left: 16px; padding-right: 16px; }
    .meet-brand .brand-text { display: none; }
    .meet-divider { display: none; }
    .meet-status { display: none; }
    .meet-top-actions .top-action span:not(.unread-badge) { display: none; }
    .filmstrip.grid { grid-template-columns: 1fr; }
    .filmstrip.grid .tile { max-height: 42vh; }
    .spotlight { padding: 8px; }
    .leave-card { padding: 24px; }
    .reaction-tray { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
/* Branding logo */
.brand-logo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.brand.small .brand-logo { width: 30px; height: 30px; border-radius: 9px; }

/* Auth */
.auth-page { background: var(--bg); }
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.auth-aside { position: relative; padding: clamp(28px, 5vw, 64px); background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.auth-aside-copy { max-width: 460px; }
.auth-aside h1 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -0.05em; line-height: 1.02; margin: 18px 0 14px; }
.auth-aside p { color: var(--muted); line-height: 1.65; font-size: 14.5px; }
.auth-aside-foot { color: var(--faint); font-size: 12px; margin: 0; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: clamp(22px, 4vw, 56px); }
.auth-card { width: min(100%, 460px); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 22px; padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-bottom: 24px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.auth-tabs a.is-active { background: var(--panel-2); color: var(--text); }
.auth-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.auth-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.auth-form { display: grid; gap: 13px; }
.auth-form .btn { margin-top: 4px; }
.auth-switch { display: block; text-align: center; color: var(--accent); font-size: 12.5px; font-weight: 700; margin-top: 18px; }
.auth-note { color: var(--faint); font-size: 11px; text-align: center; margin: 14px 0 0; }

/* Dashboard shell */
.dash-body { background: var(--bg); color: var(--text); }
.dash-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.dash-top { height: 64px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dash-top-left, .dash-top-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-top-divider { width: 1px; height: 22px; background: var(--line); }
.dash-top-title { font-size: 13px; font-weight: 800; color: var(--muted); }
.dash-link { color: var(--muted); font-size: 12px; font-weight: 700; }
.dash-link:hover { color: var(--text); }
.dash-user { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.dash-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }
.dash-user-name { font-size: 12px; font-weight: 800; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-role { font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-main { flex: 1; min-height: 0; overflow: auto; padding: clamp(20px, 3vw, 40px); }
.dash-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.dash-page-head h1, .dash-topbar h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.04em; }
.dash-page-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; max-width: 640px; line-height: 1.55; }
.dash-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-banner { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde68a; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; margin-bottom: 20px; line-height: 1.5; }

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dash-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.dash-stat-label { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.dash-stat strong { font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.dash-stat-sub { color: var(--faint); font-size: 10.5px; }
.dash-stats.compact .dash-stat strong { font-size: 22px; }
.dash-stats.compact .dash-stat { padding: 14px; }

.dash-section { margin-bottom: 24px; }
.dash-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dash-section-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.dash-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dash-event-list { display: grid; gap: 10px; }
.dash-skeleton { color: var(--faint); font-size: 12px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; }
.dash-empty { color: var(--faint); font-size: 12px; padding: 28px 18px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

.dash-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.dash-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dash-panel-head h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.dash-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.dash-search { width: min(100%, 300px); border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 12px; outline: none; }
.dash-search:focus { border-color: rgba(79, 140, 255, 0.7); }

/* Tables */
.dash-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.dash-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.dash-table th { text-align: left; padding: 11px 12px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tr:hover td { background: rgba(148, 163, 184, 0.04); }
.table-title { font-weight: 800; font-size: 12.5px; }
.table-sub { color: var(--faint); font-size: 10.5px; margin-top: 2px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.table-action { border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); color: var(--muted); font-size: 10px; font-weight: 800; padding: 4px 7px; text-decoration: none; }
.table-action:hover { color: var(--text); background: var(--panel-2); }
.table-action.primary { color: #bfdbfe; border-color: rgba(79, 140, 255, 0.35); }
.table-action.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

.dash-badge { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 3px 7px; font-size: 9.5px; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.dash-badge.live { color: #86efac; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.1); }
.dash-badge.scheduled { color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }
.dash-badge.cancelled { color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); }
.dash-badge.ended { color: var(--muted); }

/* Chart */
.dash-chart { padding: 8px 2px 0; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; overflow-x: auto; padding-bottom: 4px; }
.dash-bar-group { flex: 1 0 36px; min-width: 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.dash-bar-columns { height: calc(100% - 20px); display: flex; align-items: flex-end; gap: 3px; }
.dash-bar { display: block; width: 8px; border-radius: 4px 4px 0 0; min-height: 3px; }
.dash-bar.meetings { background: var(--accent); }
.dash-bar.guests { background: var(--green); }
.dash-bar-label { color: var(--faint); font-size: 9px; white-space: nowrap; }
.dash-legend { display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.dash-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend-dot.meetings { background: var(--accent); }
.legend-dot.guests { background: var(--green); }

/* Modals and forms */
.dash-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(4, 7, 13, 0.88); }
.dash-modal-card { width: min(100%, 560px); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.dash-modal-wide { width: min(100%, 900px); }
.dash-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-modal-head h2 { margin: 0; font-size: 18px; }
.dash-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dash-form { display: grid; gap: 12px; }
.dash-form textarea { width: 100%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: 10px; padding: 10px 12px; resize: vertical; outline: none; font-size: 13px; }
.dash-form textarea:focus { border-color: rgba(79, 140, 255, 0.7); }
.dash-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.dash-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.check-row input { accent-color: var(--accent); }
.brand-preview { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.brand-preview-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.brand-preview strong { display: block; font-size: 14px; }
.brand-preview small { color: var(--faint); font-size: 10px; }
.dash-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 11.5px; margin-bottom: 14px; }
.dash-detail-subtitle { font-size: 13px; margin: 18px 0 8px; }
.dash-infra-note { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Admin sidebar */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: 1fr; }
.admin-shell .dash-main { padding: 0; display: flex; flex-direction: column; }
.dash-sidebar { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; min-height: 100dvh; position: sticky; top: 0; }
.dash-sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.dash-sidebar-tag { font-size: 8px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #bfdbfe; background: rgba(79, 140, 255, 0.12); border: 1px solid rgba(79, 140, 255, 0.25); padding: 3px 6px; border-radius: 5px; }
.dash-nav { display: grid; gap: 3px; }
.dash-nav-item { text-align: left; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 9px 10px; border-radius: 9px; }
.dash-nav-item:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.dash-nav-item.is-active { background: var(--panel); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.dash-sidebar-bottom { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); background: var(--bg); }
.dash-topbar h1 { font-size: 22px; }
.dash-eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 800; }
.admin-main .dash-section { padding: 20px clamp(20px, 3vw, 40px) 0; }
.admin-main .dash-section:last-child { padding-bottom: 30px; }

@media (max-width: 1000px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .admin-shell { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .dash-sidebar-brand { border-bottom: 0; padding-bottom: 0; }
    .dash-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .dash-sidebar-bottom { margin-top: 0; margin-left: auto; display: flex; align-items: center; border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
    .dash-page-head, .dash-panel-head, .dash-section-head, .dash-topbar { flex-direction: column; align-items: flex-start; }
    .dash-top { height: auto; padding: 10px 14px; flex-wrap: wrap; }
    .dash-top-right { flex-wrap: wrap; }
    .dash-main { padding: 16px; }
    .dash-form-grid, .dash-checks { grid-template-columns: 1fr; }
    .dash-table { min-width: 680px; }
    .dash-actions { width: 100%; }
    .dash-search { width: 100%; }
}

/* Mobile-first refinements */
html { -webkit-text-size-adjust: 100%; }
button, .btn, .control, .table-action, .dash-nav-item { touch-action: manipulation; }
@media (max-width: 640px) {
    .hero h1 { font-size: 40px; }
    .hero-sub { font-size: 14px; }
    .join-card { border-radius: 16px; }
    .join-card .btn { width: 100%; }
    .prejoin { padding: 10px; align-items: flex-start; }
    .prejoin-card { border-radius: 18px; }
    .prejoin-media { min-height: 230px; }
    .prejoin-info { padding: 20px 16px; }
    .prejoin-info h1 { font-size: 26px; }
    .prejoin-actions { flex-direction: column; }
    .auth-panel { padding: 0; align-items: stretch; }
    .auth-card { width: 100%; min-height: 100dvh; border-radius: 0; border: 0; display: flex; flex-direction: column; justify-content: center; padding: 26px 20px; }
    .meet-top { min-height: 56px; height: auto; padding: 8px 10px; gap: 6px; }
    .meet-top-actions { gap: 2px; }
    .meet-top-actions .top-action { height: 34px; min-width: 34px; padding: 0 6px; }
    .meet-top-actions .btn-danger { display: inline-flex; padding: 7px 10px; }
    .room-code { max-width: 92px; font-size: 11px; }
    .meet-body { position: relative; }
    .side-panel { inset: 56px 0 0 0; width: 100%; border-left: 0; }
    .meet-controls { min-height: 74px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); overflow-x: auto; }
    .control { min-width: 44px; padding: 4px 5px; }
    .control-icon { width: 38px; height: 38px; }
    .filmstrip.strip { flex-basis: 84px; padding: 6px 8px; }
    .filmstrip.strip .tile { flex-basis: 124px; }
    .filmstrip.grid { padding: 8px; gap: 6px; }
    .filmstrip.grid .tile { max-height: 38vh; }
    .tile-bar { padding: 18px 7px 6px; }
    .tile-name { font-size: 10px; }
    .stage-empty h2 { font-size: 17px; }
    .reaction-tray { bottom: 84px; max-width: 92vw; overflow-x: auto; padding: 4px; }
    .reaction-tray button { width: 34px; height: 34px; font-size: 18px; }
    .dash-top { padding: 10px 12px; }
    .dash-top-left { width: 100%; }
    .dash-top-right { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
    .dash-user-name { max-width: 110px; }
    .dash-role { display: none; }
    .dash-main { padding: 14px; }
    .dash-page-head { flex-direction: column; align-items: stretch; }
    .dash-page-head .dash-actions .btn { flex: 1; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-stat { padding: 14px; }
    .dash-stat strong { font-size: 23px; }
    .dash-sidebar { flex-direction: column; padding: 12px; }
    .dash-sidebar-brand { width: 100%; }
    .dash-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
    .dash-nav-item { white-space: nowrap; flex: 0 0 auto; }
    .dash-sidebar-bottom { width: 100%; flex-wrap: wrap; margin-left: 0; }
    .dash-topbar { padding: 14px; }
    .admin-main .dash-section { padding: 14px 14px 0; }
    .dash-panel { padding: 12px; }
    .dash-panel-head { flex-direction: column; align-items: stretch; }
    .dash-search { width: 100%; }
    .dash-modal { padding: 0; align-items: stretch; }
    .dash-modal-card { width: 100%; max-height: 100dvh; border-radius: 0; padding: 16px; }
    .dash-table { min-width: 600px; }
    .dash-checks { grid-template-columns: 1fr; }
    .dash-bars { height: 160px; gap: 6px; }
    .dash-bar-group { min-width: 28px; flex-basis: 28px; }
    .dash-bar { width: 6px; }
}

/* Admin logo upload */
.field-hint { display: block; color: var(--faint); font-size: 11px; line-height: 1.45; margin-top: 6px; font-weight: 500; }
.logo-upload-field { display: flex; flex-direction: column; gap: 8px; }
.logo-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-preview { width: 64px; height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.logo-preview-img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.logo-preview .brand-preview-mark { width: 100%; height: 100%; border-radius: 0; font-size: 16px; }
.logo-upload-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logo-upload-actions label.btn { cursor: pointer; }
