:root {
  color-scheme: light;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --bg: #f7f9f8;
  --surface: #fff;
  --surface-soft: #f4f6f5;
  --text: #202723;
  --muted: #5a645e;
  --subtle: #626e67;
  --border: #e1e7e3;
  --line: #ebefec;
  --green: #187448;
  --green-dark: #144b32;
  --green-soft: #e6f3eb;
  --blue: #2457c5;
  --blue-hover: #1846ac;
  --blue-soft: #eaf0fc;
  --yellow-soft: #fff6d8;
  --yellow-text: #745706;
  --purple-soft: #f0ecfa;
  --purple: #6551a1;
  --neutral-soft: #edf1f0;
  --danger: #b83e36;
  --header: 65px;
  --sidebar: 228px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171d1a;
  --surface: #202824;
  --surface-soft: #26302a;
  --text: #eff4f0;
  --muted: #b7c5bb;
  --subtle: #aab9af;
  --border: #37453b;
  --line: #303e34;
  --green: #8fd4ac;
  --green-dark: #dbf2e2;
  --green-soft: #2a4233;
  --blue: #a8c3ff;
  --blue-hover: #c3d4ff;
  --blue-soft: #283950;
  --yellow-soft: #3d3320;
  --yellow-text: #ebce7b;
  --purple-soft: #38304a;
  --purple: #cdbbf9;
  --neutral-soft: #303b36;
  --danger: #ec9a93;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body { min-height: 100vh; margin: 0; font: 400 1rem/1.5 var(--font); color: var(--text); background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue-soft); color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 650; letter-spacing: -.025em; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 10; transform: translateY(-200%); padding: 8px 12px; background: var(--surface); }
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky; z-index: 5; top: 0; display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(190px, 420px) minmax(290px, 1fr);
  align-items: center; gap: 22px; height: var(--header); padding: 0 25px 0 19px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand-area, .brand, .header-actions { display: flex; align-items: center; }
.brand-area { gap: 13px; min-width: 0; }
.brand { gap: 10px; color: var(--text); font-size: 1.16rem; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { margin-top: 1px; }
.brand strong { font-weight: 650; }
.header-actions { justify-content: flex-end; gap: 5px; }
.icon-button, .account-button, .presence-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 36px; height: 36px; padding: 0 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted); border-radius: 6px;
}
.icon-button:hover, .presence-button:hover { background: var(--surface-soft); color: var(--text); }
.icon-button svg { width: 19px; height: 19px; }
.account-button { min-width: 35px; max-width: 174px; min-height: 39px; padding: 3px 5px; gap: 8px; color: var(--text); text-align: left; }
.account-button:hover { background: var(--surface-soft); border-color: var(--border); }
.account-avatar { display: grid; align-items: center; justify-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: .76rem; font-weight: 700; }
.account-avatar svg { width: 18px; height: 18px; }
.header-account-details { display: grid; line-height: 1.18; min-width: 0; max-width: 123px; }
.header-account-details strong, .header-account-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account-details strong { font-size: .84rem; font-weight: 650; }
.header-account-details small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.header-sign-in { white-space: nowrap; }
.header-notifications { position: relative; }
.notification-count { position: absolute; top: 0; right: 0; min-width: 16px; padding-inline: 3px; border-radius: 10px; background: #2457c5; color: white; font-size: .69rem; font-weight: 700; text-align: center; line-height: 16px; }
.header-divider { width: 1px; height: 24px; margin: 0 8px 0 4px; background: var(--border); }
.presence-button { font-size: .875rem; white-space: nowrap; }
.presence-button svg { width: 13px; height: 13px; }
.status-dot { width: 8px; height: 8px; display: inline-block; flex: none; border-radius: 50%; background: #2b985a; }
.status-dot[data-status="busy"], .status-dot[data-status="dnd"] { background: #bd493e; }
.status-dot[data-status="meeting"] { background: #376bce; }
.status-dot[data-status="away"] { background: #a77911; }
.status-dot[data-status="offline"] { background: #78847d; }

.search-trigger {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--muted);
  text-align: left; font-size: .875rem; min-width: 0;
}
.search-trigger:hover { border-color: var(--blue); }
.search-trigger span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger svg { width: 17px; height: 17px; }
kbd { padding: 1px 6px; color: var(--subtle); font: 500 .75rem/1.4 var(--font); border: 1px solid var(--border); border-radius: 4px; background: var(--surface); white-space: nowrap; }

.popover-anchor { position: relative; }
.popover {
  position: absolute; z-index: 10; top: calc(100% + 10px); right: 0; min-width: 181px;
  padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 18px rgb(20 35 25 / 9%);
}
.popover p { padding: 7px 9px; color: var(--subtle); font-size: .78rem; font-weight: 600; }
.popover button, .popover a {
  display: flex; width: 100%; align-items: center; gap: 9px; padding: 7px 9px;
  border: 0; border-radius: 5px; text-align: left; background: transparent; color: var(--text); font-size: .875rem;
}
.popover button:hover, .popover a:hover { background: var(--surface-soft); text-decoration: none; }
.popover button svg:last-child { margin-left: auto; color: var(--green); }
.popover a { white-space: nowrap; }

.app-layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--header); height: calc(100dvh - var(--header)); display: flex;
  flex-direction: column; gap: 18px; overflow: auto; background: var(--surface);
  border-right: 1px solid var(--border); padding: 19px 12px 14px; scrollbar-width: thin;
}
.sidebar nav { display: grid; gap: 3px; }
.sidebar .secondary-nav { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-link {
  display: flex; align-items: center; gap: 11px; min-height: 37px; padding: 6px 11px;
  color: var(--muted); border-radius: 5px; font-size: .875rem; font-weight: 500;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { text-decoration: none; background: var(--surface-soft); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); font-weight: 650; }
.nav-link[aria-current="page"] svg { color: var(--green); }
body.nav-collapsed .app-layout { grid-template-columns: minmax(0, 1fr); }
body.nav-collapsed .sidebar { display: none; }
main { min-width: 0; outline: 0; }
.page { max-width: 1392px; margin: 0 auto; padding: 32px clamp(24px, 3.35vw, 50px) 42px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(1.55rem, 2vw, 1.85rem); }
.page-heading p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 34%;
  min-height: 235px; overflow: hidden; background: #edf6ef; border: 1px solid #dcebe0; border-radius: 9px;
}
.hero-content { position: relative; z-index: 1; padding: 29px clamp(22px, 3vw, 38px); }
.hero h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); color: #173627; max-width: 610px; line-height: 1.08; letter-spacing: -.055em; }
.hero h2 span { display: block; }
.hero p { margin-top: 12px; color: #405b4a; font-size: .94rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.hero-art { position: relative; align-self: stretch; min-height: 190px; display: grid; place-items: center; overflow: hidden; }
.hero-art .orbit { position: absolute; inset: 50% auto auto 50%; width: var(--orbit); aspect-ratio: 1; border: 1px solid #cddfd1; border-radius: 50%; transform: translate(-50%,-50%); }
.hero-art .orbit:nth-child(1) { --orbit: 190px; }
.hero-art .orbit:nth-child(2) { --orbit: 244px; }
.hero-art .orbit:nth-child(3) { --orbit: 298px; }
.hero-art .orbit:nth-child(4) { --orbit: 352px; }
.hero-logo {
  z-index: 1; display: grid; width: 137px; aspect-ratio: 1; padding: 21px; place-items: center; transform: rotate(-7deg);
  border-radius: 30px; border: 1px solid #dce9df; background: #fff;
}
.hero-logo img { width: 100%; transform: rotate(7deg); }
[data-theme="dark"] .hero { background: #263b2f; border-color: #374e3f; }
[data-theme="dark"] .hero h2 { color: #e5f4e9; }
[data-theme="dark"] .hero p { color: #c0d4c5; }
[data-theme="dark"] .hero-art .orbit { border-color: #3c5846; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); font-size: .875rem; font-weight: 600; line-height: 1.25;
  text-align: center;
}
.button:hover { text-decoration: none; background: var(--surface-soft); border-color: var(--subtle); }
.button svg { width: 17px; height: 17px; }
.button.primary { background: #2457c5; border-color: #2457c5; color: white; }
.button.primary:hover { background: #1846ac; border-color: #1846ac; }
.button.danger { color: #fff; background: #b63832; border-color: #b63832; }
.button.danger:hover { background: #9e2e29; }
.text-link { font-weight: 600; font-size: .875rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

.dashboard-section { margin-top: 22px; }
.dashboard-section > h2 { margin-bottom: 11px; font-size: 1.125rem; }
.dashboard-home .dashboard-section { margin-top: 25px; }
.dashboard-home .dashboard-section > h2 { margin-bottom: 13px; font-size: 1.18rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-card {
  display: flex; align-items: center; text-align: left; min-width: 0; min-height: 75px; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface);
}
button.quick-card:hover { border-color: var(--blue); background: var(--blue-soft); }
.planned-card { background: color-mix(in srgb, var(--surface) 72%, var(--surface-soft)); }
.planned-card .card-icon { opacity: .74; }
.quick-card .card-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.card-copy strong { font-size: .9rem; line-height: 1.25; font-weight: 650; }
.card-copy small { color: var(--subtle); font-size: .79rem; line-height: 1.32; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.overview-grid .panel-title h3 { font-size: .94rem; }
.overview-grid .panel-title a { font-size: .79rem; }
.overview-grid .empty { min-height: 0; padding: 16px 15px 18px; }
.overview-grid .empty p { font-size: .81rem; }
.work-actions { min-width: 0; padding: 14px 16px 16px; }
.work-action-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.work-action-heading h2 { font-size: 1.04rem; }
.work-actions > p { margin-top: 9px; color: var(--muted); font-size: .86rem; }
.work-actions .button { min-height: 38px; }
.mobile-plan { display: none; white-space: nowrap; background: var(--green-soft); padding: 4px 8px; border-radius: 5px; color: var(--green-dark); font-size: .8rem; font-weight: 650; }
.module-external { margin-top: 14px; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; border-bottom: 1px solid var(--border); }
.section-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 11px; color: var(--muted); border-bottom: 2px solid transparent; font-size: .875rem; }
.section-tab:hover, .section-tab[aria-current="page"] { background: var(--surface-soft); text-decoration: none; color: var(--blue); }
.section-tab[aria-current="page"] { border-bottom-color: var(--blue); font-weight: 650; }
.section-tab svg { width: 17px; height: 17px; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
  border-radius: 7px; color: var(--blue); background: var(--blue-soft);
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon.green { color: var(--green); background: var(--green-soft); }
.card-icon.yellow { color: var(--yellow-text); background: var(--yellow-soft); }
.card-icon.purple { color: var(--purple); background: var(--purple-soft); }
.card-icon.neutral { color: var(--muted); background: var(--neutral-soft); }

.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.panel-title { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.panel-title svg { width: 18px; height: 18px; color: var(--green); }
.panel-title h2, .panel-title h3 { font-size: .97rem; flex: 1; }
.panel-title a { font-size: .83rem; font-weight: 600; white-space: nowrap; }
.empty { display: flex; flex-wrap: wrap; align-items: start; gap: 9px 13px; min-height: 67px; padding: 13px 15px 15px; color: var(--muted); }
.empty > div:first-child { flex: 1 1 180px; }
.empty strong { color: var(--text); font-weight: 600; font-size: .89rem; }
.empty p { margin-top: 2px; font-size: .85rem; }
.empty[data-state="signed-out"] strong, .empty[data-state="loading"] strong { color: var(--muted); font-weight: 500; }
.empty[data-state="error"] strong { color: var(--danger); }
.empty-action .button { min-height: 33px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module-panel { padding: 22px; }
.module-panel .card-icon { margin-bottom: 13px; }
.module-panel h2 { font-size: 1.2rem; margin-bottom: 7px; }
.module-panel p { color: var(--muted); max-width: 65ch; margin-bottom: 16px; }
.module-panel p:last-child { margin-bottom: 0; }
.module-panel details { padding: 10px 0; border-top: 1px solid var(--line); }
.module-panel summary { cursor: pointer; font-weight: 600; }
.module-panel details p { margin: 6px 0 0; }
.module-panel + .module-panel { margin-top: 12px; }
.module-grid .module-panel { margin-top: 0; }
.settings-panel { max-width: 700px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.settings-row:last-child { padding-bottom: 0; }
.settings-row label { font-size: .92rem; font-weight: 600; }
.setting-note { color: var(--muted); font-size: .81rem; display: block; font-weight: 400; }
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.entry-list li:last-child { border-bottom: 0; }
.entry-list li div { flex: 1; min-width: 0; }
.entry-list strong, .entry-list span { display: block; overflow-wrap: anywhere; }
.entry-list strong { font-size: .875rem; }
.entry-list span, .entry-list time { font-size: .79rem; color: var(--muted); }
.entry-list time { flex: none; }
.entry-list .entry-action { font-size: .83rem; font-weight: 650; }
.entry-list .unread-badge { flex: none; min-width: 22px; padding: 1px 5px; border-radius: 10px; text-align: center; background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.entry-list li:has(.device-controls) { flex-wrap: wrap; }
.entry-list .device-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.device-controls .button { min-height: 31px; padding: 5px 8px; font-size: .83rem; }
.device-controls button[aria-pressed="true"] { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.device-controls button[aria-pressed="true"] svg { fill: currentColor; }
.device-controls .remove-device:hover { color: var(--danger); border-color: var(--danger); }
.panel-controls { display: flex; padding: 9px 15px 13px; border-top: 1px solid var(--line); }
.section-note { color: var(--muted); margin-bottom: 14px; }

.dialog {
  width: min(460px, calc(100% - 26px)); max-height: calc(100dvh - 34px);
  border: 1px solid var(--border); border-radius: 10px; padding: 0; color: var(--text); background: var(--surface);
  box-shadow: 0 12px 40px rgb(20 35 25 / 15%);
}
.dialog::backdrop { background: rgb(19 31 24 / 45%); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 13px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.2rem; }
#modal-body { padding: 18px 20px 20px; }
.dialog p, .field-note { color: var(--muted); font-size: .875rem; }
.dialog form { display: grid; gap: 13px; }
.dialog .button-row { justify-content: flex-end; }
.dialog .button-row > .button { min-width: 88px; }
.dialog .organizer-actions { margin-top: 14px; }
label.field { display: grid; gap: 5px; color: var(--text); font-size: .875rem; font-weight: 600; }
input, select {
  min-width: 0; min-height: 39px; max-width: 100%; padding: 7px 9px; border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); background: var(--surface); font-size: .9rem;
}
input::placeholder { color: var(--subtle); }
select { padding-right: 28px; }
.form-error { color: var(--danger) !important; font-weight: 500; }
.search-results { display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.search-results .nav-link { min-height: 38px; }
.toast {
  position: fixed; width: max-content; max-width: calc(100% - 28px); z-index: 20; bottom: 16px; left: 50%;
  transform: translateX(-50%); padding: 9px 14px; border-radius: 6px;
  color: #fff; background: #24382c; font-size: .875rem; box-shadow: 0 3px 12px rgb(0 0 0 / 14%);
}

.preview-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(255px, .8fr); align-items: center; gap: 28px; }
.preview-area { min-width: 0; }
.video-tile { position: relative; display: grid; min-width: 0; overflow: hidden; isolation: isolate; place-items: center; background: #252d29; color: #fff; border-radius: 8px; }
.preview-video { min-height: 240px; aspect-ratio: 16 / 10; }
.video-tile video { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; z-index: 1; }
.video-tile.local video { transform: scaleX(-1); }
.video-tile .avatar {
  display: grid; place-items: center; width: 63px; aspect-ratio: 1; border-radius: 50%; font-size: 1.4rem;
  background: #344e40; color: #e4f6e9; font-weight: 650;
}
.video-tile .avatar svg { width: 29px; height: 29px; }
.video-tile .tile-label { position: absolute; z-index: 2; left: 9px; bottom: 9px; display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; background: #17211be8; font-size: .8rem; }
.tile-label svg { width: 13px; height: 13px; }
.preview-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.preview-details h2 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); overflow-wrap: anywhere; }
.preview-details > p { color: var(--muted); margin: 8px 0 16px; }
.preview-details form { display: grid; gap: 11px; }
.preview-details .room-code { margin-top: 15px; font-size: .8125rem; }
.room-code code { overflow-wrap: anywhere; color: var(--muted); }
.media-status { min-height: 1.25em; margin-top: 8px; text-align: center; color: var(--muted); font-size: .82rem; }
.call-button {
  display: inline-grid; place-items: center; width: 44px; height: 42px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.call-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.call-button[aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); border-color: var(--blue); }
.call-button.is-off { color: var(--danger); }
.call-button.sharing-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; padding: 0 9px; font-size: .875rem; font-weight: 600; }
.sharing-control svg { width: 18px; height: 18px; }
.call-button.danger { width: 55px; color: #fff; border-color: #b63832; background: #b63832; }
.call-button.danger:hover { background: #9e2e29; }

body.in-call .app-layout { grid-template-columns: minmax(0, 1fr); }
body.in-call .sidebar { display: none; }
body.in-call.nav-in-call .app-layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
body.in-call.nav-in-call .sidebar { display: flex; }
body.in-call .topbar { position: relative; }
.call-page { display: grid; grid-template-rows: auto minmax(250px, 1fr) auto; min-height: calc(100dvh - var(--header)); gap: 14px; padding: 16px 20px 13px; }
.call-top, .call-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; }
.call-top h1 { font-size: 1.18rem; overflow-wrap: anywhere; }
.call-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.share-indicator { color: var(--green); font-weight: 600; }
.call-stage { display: flex; align-items: stretch; gap: 11px; min-width: 0; }
.meeting-media { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.meeting-media.presenting { grid-template-columns: minmax(0, 1fr) minmax(120px, min(25%, 235px)); }
.video-grid, .presentation-grid { display: grid; align-items: stretch; gap: 8px; min-width: 0; }
.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid.single { grid-template-columns: 1fr; }
.presenting .video-grid { grid-template-columns: minmax(0, 1fr); align-content: start; }
.presenting .video-grid .video-tile { aspect-ratio: 16 / 10; }
.presentation-grid { grid-template-columns: minmax(0, 1fr); }
.presentation-grid.two-presentations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.presentation-grid .video-tile { background: #1c2420; }
.presentation-grid .video-tile video { object-fit: contain; transform: none; }
.presentation-grid .avatar { background: transparent; color: #c4d9ca; }
.call-bottom { justify-content: center; }
.call-tools, .call-extras { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.call-extras { padding-left: 10px; border-left: 1px solid var(--border); }
.call-panel {
  display: flex; flex-direction: column; width: clamp(226px, 27vw, 460px); min-width: 226px; max-width: 52%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; resize: horizontal; overflow: auto;
}
.call-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); }
.call-panel-header h2 { font-size: 1rem; }
.call-panel-content { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.call-panel-content > p { padding: 10px 11px; color: var(--muted); font-size: .85rem; }
.messages { flex: 1 1 125px; overflow-y: auto; min-height: 90px; max-height: max(140px, calc(100dvh - 270px)); list-style: none; margin: 0; padding: 7px 10px; }
.messages li { padding: 6px 0; overflow-wrap: anywhere; font-size: .875rem; }
.messages li time { color: var(--muted); padding-left: 4px; font-size: .75rem; }
.messages li small { color: var(--muted); }
.message-form { display: flex; gap: 5px; padding: 7px; border-top: 1px solid var(--line); }
.message-form input { flex: 1; }
.message-form .icon-button { color: var(--blue); }
.details-list { list-style: none; margin: 0; padding: 10px 11px; font-size: .875rem; }
.details-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.details-list span, .details-list code { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 1110px) {
  :root { --sidebar: 202px; }
  .topbar { gap: 14px; padding-right: 16px; }
  .quick-card { padding: 10px; gap: 8px; }
  .card-icon { width: 34px; height: 34px; }
  .quick-card .card-copy small { font-size: .77rem; }
}
@media (max-width: 925px) {
  .topbar { grid-template-columns: minmax(176px, 1fr) minmax(100px, 315px) auto; }
  .header-settings, .header-divider, .header-account-details { display: none; }
  .mobile-plan { display: inline-block; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 29%; }
  .hero-logo { width: 106px; padding: 16px; border-radius: 24px; }
  .preview-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .preview-details { max-width: 540px; }
}
@media (max-width: 745px) {
  #connect-drive-root .entry-list li { flex-wrap: wrap; }
  #connect-drive-root .entry-list li > div { flex: 1 1 100%; }
  .topbar { grid-template-columns: minmax(148px, 1fr) minmax(34px, 46px) auto; gap: 8px; padding: 0 10px; }
  .brand-area { gap: 5px; }
  .brand { gap: 6px; font-size: 1rem; }
  .brand img { width: 24px; height: 24px; }
  .header-actions { gap: 1px; }
  .header-actions .icon-button { min-width: 31px; padding-inline: 4px; }
  .header-actions .header-sign-in { padding-inline: 9px; }
  .search-trigger { justify-content: center; padding: 0; min-width: 35px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .presence-button { min-width: 31px; padding: 0 5px; }
  #presence-label { display: none; }
  .app-layout, body.in-call.nav-in-call .app-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar, body.in-call.nav-in-call .sidebar { display: none; }
  body.mobile-nav .sidebar, body.mobile-nav.in-call .sidebar {
    display: flex; position: fixed; z-index: 4; top: var(--header); left: 0; bottom: 0; width: 220px; height: auto;
  }
  .mobile-scrim { position: fixed; z-index: 3; inset: var(--header) 0 0; width: 100%; height: calc(100% - var(--header)); background: rgb(15 26 19 / 40%); border: 0; }
  .page { padding: 24px 15px 30px; }
  .page-heading { margin-bottom: 16px; }
  .hero { min-height: 208px; grid-template-columns: minmax(0, 1fr) 25%; }
  .hero-content { padding: 21px; }
  .hero-logo { width: clamp(48px, 13vw, 94px); padding: 9px; border-radius: 14px; }
  .hero-art .orbit { max-width: 160px; }
  .hero p { font-size: .875rem; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .work-actions { padding: 12px 13px 14px; }
  .call-page { padding-inline: 9px; }
  .call-stage { flex-direction: column; }
  .meeting-media.presenting { grid-template-columns: minmax(0, 1fr); }
  .presentation-grid { min-height: min(45dvh, 350px); }
  .presenting .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .call-panel { width: 100%; max-width: none; min-width: 0; resize: vertical; }
  .video-grid { min-height: 185px; }
  .presenting .video-grid { min-height: 0; }
  .call-top .button { min-height: 34px; padding: 6px; }
}
@media (max-width: 420px) {
  .topbar { grid-template-columns: minmax(112px, 1fr) 32px auto; gap: 4px; padding-inline: 7px; }
  .brand { font-size: .91rem; }
  .brand img { width: 22px; height: 22px; }
  .brand-area { gap: 3px; }
  .brand-area .menu-button { min-width: 29px; padding-inline: 4px; }
  .search-trigger { min-width: 32px; height: 35px; }
  .page-heading h1 { font-size: 1.51rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .hero h2 { font-size: 1.86rem; }
  .quick-grid, .overview-grid, .module-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-card { min-height: 57px; }
  .work-actions .button { min-height: 40px; }
  .entry-list .device-controls { margin-inline-start: 30px; }
  .preview-video { min-height: 180px; }
}
@media (max-width: 319px) {
  .topbar { grid-template-columns: minmax(70px, 1fr) 35px auto; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a.nav-link { transition: color .13s, background-color .13s, border-color .13s; }
}


.remote-grid { align-items: stretch; }
.remote-card { display: flex; flex-direction: column; }
.support-steps { margin: 0 0 18px; padding-left: 23px; color: var(--text); font-size: .875rem; }
.support-steps li + li { margin-top: 7px; }
.remote-note { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; padding: 10px 12px; border-radius: 6px; background: var(--green-soft); color: var(--green-dark); font-size: .875rem; }
.remote-note svg { width: 17px; height: 17px; margin-top: 2px; }
#remote-request { display: grid; gap: 14px; }
#remote-request fieldset { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; }
#remote-request fieldset legend { padding: 0 3px; font-size: .875rem; font-weight: 600; }
#remote-request fieldset p { margin: 0 0 8px; font-size: .81rem; }
#remote-request fieldset label { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; font-size: .875rem; }
#remote-request input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--blue); }
#remote-request .remote-feedback { margin: 0; font-size: .875rem; }
.remote-session { overflow: hidden; }
.remote-session-header, .remote-session-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; padding: 13px 15px; }
.remote-session-header h2 { font-size: 1.18rem; }
.remote-session-header p { margin-top: 5px; color: var(--muted); font-size: .875rem; }
.remote-stage { display: grid; place-items: center; overflow: hidden; min-height: 160px; height: min(63dvh, 720px); background: #232a26; }
.remote-stage video { width: 100%; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; }
.remote-stage:fullscreen { height: 100%; width: 100%; }
.remote-stage.mouse-active { cursor: crosshair; }
.remote-stage:focus-visible { outline-offset: -2px; }
.remote-grants { display: flex; flex-wrap: wrap; gap: 5px; }
.remote-grants span { padding: 3px 7px; border-radius: 4px; background: var(--green-soft); color: var(--green-dark); font-size: .78rem; }
.remote-session button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.remote-input-note { padding: 0 15px 12px; color: var(--muted); font-size: .81rem; }
@media (max-width: 620px) {
  .remote-grid { grid-template-columns: 1fr; }
}

.large-meetings-intro { background: var(--green-soft); border-color: var(--border); }
.large-meetings-status { display: flex; align-items: flex-start; gap: 9px; color: var(--green-dark); font-size: .875rem; }
.large-meetings-status svg { width: 17px; height: 17px; margin-top: 2px; }
.large-capacity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.large-capacity-card { padding: 14px; }
.large-capacity-card h3 { margin-top: 9px; font-size: 1rem; }
.large-capacity-card p { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.large-capacity-card p strong { color: var(--text); }
.large-enterprise { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.large-meetings-table { overflow: auto; }
.large-meetings-table table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
.large-meetings-table th, .large-meetings-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.large-meetings-table thead th { background: var(--surface-soft); }
.large-meetings-table tbody tr:last-child > * { border-bottom: 0; }
.large-meetings-table tbody td { color: var(--muted); }
@media (max-width: 980px) {
  .large-capacity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.meeting-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.meeting-terms > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.meeting-terms > div:last-child { border-right: 0; }
.meeting-terms dt { font-weight: 600; font-size: .875rem; }
.meeting-terms dd { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; }
.meeting-terms-footnote { display: block; font-size: .78rem; }
.call-duration { color: var(--muted); font-variant-numeric: tabular-nums; }
.call-duration.duration-low { color: var(--yellow-text); font-weight: 600; }
.account-duration { padding-inline-start: 11px; border-inline-start: 2px solid var(--green); }
@media (max-width: 620px) {
  .meeting-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-terms > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .meeting-terms > div:nth-child(even) { border-right: 0; }
}
