:root {
  --bg: #0c111b;
  --bg-elevated: #141b27;
  --card: #151c29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf5;
  --muted: #8b97ab;
  --accent: #5b8def;
  --accent-hover: #7aa2f5;
  --accent-soft: rgba(91, 141, 239, 0.12);
  --danger: #e35d5d;
  --danger-bg: #c44747;
  --radius: 10px;
  --radius-sm: 8px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

.wrap {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0 2.75rem;
}

/* -- Header -- */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
}
.tag {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}
.tag-link, .tag-pro {
  text-decoration: none;
  color: var(--accent-hover);
  font-weight: 600;
}
.tag-pro { color: #cfe0ff; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
  justify-content: flex-end;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(91, 141, 239, 0.55);
  background: rgba(91, 141, 239, 0.12);
  outline: none;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: center;
}
.brand.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.brand.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.brand.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-backdrop {
  display: none;
}
.nav-drawer-head {
  display: none;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .9rem;
  min-height: 34px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.nav-btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
}
.nav-btn-ghost:hover {
  color: #fff;
  border-color: rgba(91, 141, 239, 0.55);
  background: rgba(91, 141, 239, 0.1);
}
.nav-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5b8def 0%, #3d6fd8 100%);
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(91, 141, 239, 0.28);
}
.nav-btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 141, 239, 0.4);
  transform: translateY(-1px);
}
.nav-btn-pro {
  color: #dce9ff;
  background: rgba(91, 141, 239, 0.14);
  border: 1px solid rgba(91, 141, 239, 0.4);
}
.nav-btn-pro:hover {
  color: #fff;
  background: rgba(91, 141, 239, 0.22);
}
.nav-btn.is-active {
  color: #fff;
  background: rgba(91, 141, 239, 0.22);
  border-color: rgba(91, 141, 239, 0.65);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.25);
}
.nav-btn-pro.is-active {
  background: rgba(91, 141, 239, 0.28);
  border-color: rgba(122, 162, 245, 0.75);
}
.host-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
  margin: 0 0 1.15rem;
  padding: .65rem .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.host-crumb-path {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .4rem;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}
.host-crumb-root {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.host-crumb-sep { color: #647388; }
.host-crumb-current {
  color: #fff;
  font-weight: 650;
  font-size: .92rem;
}
.host-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-left: auto;
}
.host-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}
.host-subnav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.host-subnav-link.is-active {
  color: #fff;
  background: rgba(91, 141, 239, 0.18);
  border-color: rgba(91, 141, 239, 0.45);
}
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, #5b8def 0%, #3d6fd8 100%);
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(91, 141, 239, 0.22);
}
.btn-accent:hover {
  color: #fff;
  background: linear-gradient(135deg, #7aa2f5 0%, #5b8def 100%);
}

.pro-page .pro-perks {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}
.pro-page .pro-perks li { margin: .35rem 0; }
.pro-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.35rem 0 1rem;
}
.pro-active .cta-row { margin-top: .85rem; }

.host-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 141, 239, 0.28);
  background: rgba(91, 141, 239, 0.08);
}
.host-bar-copy {
  display: grid;
  gap: .15rem;
}
.host-bar-copy strong { color: #fff; font-weight: 650; }
.host-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.account-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.account-tools {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-bottom: .25rem;
}
.account-tool {
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.05rem;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.account-tool:hover {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.08);
  transform: translateY(-1px);
}
.account-tool strong {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-weight: 650;
}
.account-tool span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}
button.account-tool {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.host-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.host-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
@media (max-width: 720px) {
  .host-bar-actions { width: 100%; }
}

/* -- Host dashboard -- */
.wrap:has(.host-dash) {
  width: min(1040px, calc(100% - 2rem));
}
.host-dash {
  display: grid;
  gap: 1.15rem;
}
.dash-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.35rem 1.4rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(91, 141, 239, 0.28);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(91, 141, 239, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}
.dash-hero-copy { min-width: min(100%, 28rem); flex: 1; }
.dash-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: .55rem;
}
.dash-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}
.dash-hero-title {
  margin: 0 0 .4rem;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.dash-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 36rem;
  line-height: 1.45;
}
.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.dash-metrics {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) {
  .dash-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dash-metric {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: .2rem;
}
.dash-metric-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-metric-value {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.dash-metric-hint {
  color: var(--muted);
  font-size: .78rem;
}
.dash-actions {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.dash-action {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.dash-action:hover {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.08);
  transform: translateY(-1px);
  color: inherit;
}
.dash-action-primary {
  border-color: rgba(91, 141, 239, 0.4);
  background: rgba(91, 141, 239, 0.1);
}
.dash-action-upgrade {
  border-color: rgba(91, 141, 239, 0.35);
}
.dash-action-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--accent-hover);
  font-size: .95rem;
  line-height: 1;
}
.dash-action-text {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.dash-action-text strong {
  color: #fff;
  font-weight: 650;
  font-size: .92rem;
}
.dash-action-text span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.dash-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 920px) {
  .dash-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
.dash-panel {
  padding: 0;
  overflow: hidden;
}
.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem .85rem;
  border-bottom: 1px solid var(--line);
}
.dash-panel-head h2 {
  margin: 0 0 .15rem;
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
}
.dash-panel-sub {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}
.dash-panel-link {
  font-size: .8rem;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
  margin-top: .15rem;
}
.dash-panel-link:hover { color: var(--accent-hover); }
.dash-empty {
  padding: 1.35rem 1.15rem 1.4rem;
  text-align: left;
}
.dash-empty strong {
  display: block;
  color: #fff;
  margin-bottom: .3rem;
}
.dash-empty p {
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .88rem;
  max-width: 28rem;
}
.dash-empty-compact { padding-bottom: 1.15rem; }
.dash-empty-compact p { margin-bottom: 0; }
.dash-meetings {
  display: grid;
}
.dash-meeting {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.dash-meeting:last-child { border-bottom: 0; }
.dash-meeting-main { min-width: 0; flex: 1; }
.dash-meeting-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .4rem;
}
.dash-meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
}
.dash-meeting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.dash-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.dash-activity-row:last-child { border-bottom: 0; }
.dash-activity-main {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.dash-activity-code {
  font-size: .88rem;
  color: #fff;
  letter-spacing: .04em;
}
.dash-activity-when {
  color: var(--muted);
  font-size: .75rem;
}
.dash-activity-side {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.dash-activity-link {
  font-size: .8rem;
  font-weight: 650;
}

/* -- Meeting history -- */
.btn-danger-ghost {
  color: #f0b4b4;
  border-color: rgba(227, 93, 93, 0.35);
}
.btn-danger-ghost:hover {
  color: #fff;
  background: rgba(227, 93, 93, 0.16);
  border-color: rgba(227, 93, 93, 0.55);
}
.hist-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 .85rem;
}
.hist-toolbar-note {
  margin: 0;
  font-size: .78rem;
}
.hist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
}
.hist-filter {
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none;
}
.hist-filter:hover {
  color: #fff;
  border-color: var(--line-strong);
}
.hist-filter.is-on {
  color: #fff;
  background: rgba(91, 141, 239, 0.18);
  border-color: rgba(91, 141, 239, 0.45);
}
.hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hist-day {
  padding: .75rem 1.15rem .35rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.hist-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.hist-row:last-child { border-bottom: 0; }
.hist-main { min-width: 0; flex: 1; }
.hist-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .35rem;
}
.hist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
}
.hist-side {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

/* -- Admin -- */
.admin-wrap { width: min(1100px, calc(100% - 2rem)); }
.admin-h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.admin-stats {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 1.25rem;
}
.admin-stat {
  padding: .9rem 1rem;
  text-align: center;
}
.admin-stat strong {
  display: block;
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: .2rem;
}
.admin-stat span {
  color: var(--muted);
  font-size: .8rem;
}
.admin-search {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  max-width: 28rem;
}
.admin-table { font-size: .84rem; }
.admin-select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: .25rem .35rem;
  font: inherit;
}
.admin-tabs { display: flex; gap: .85rem; margin: 0 0 1rem; }
.admin-tabs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
}
.admin-tabs a.is-on { color: var(--accent-hover); }
.admin-actions { margin-bottom: 1.5rem; }
.admin-back { margin: 0 0 .75rem; }
.admin-back a { color: var(--muted); font-weight: 600; font-size: .88rem; }
.admin-back a:hover { color: var(--accent-hover); }
.admin-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
.admin-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.admin-grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .admin-grid-2 { grid-template-columns: 1fr 1fr; }
}
.admin-panel h2 {
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 650;
}
.admin-dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .35rem .75rem;
  margin: 0 0 1rem;
  font-size: .86rem;
}
.admin-dl dt { color: var(--muted); margin: 0; }
.admin-dl dd { margin: 0; color: var(--text); word-break: break-word; }
.admin-inline-form,
.admin-edit-form {
  display: grid;
  gap: .65rem;
  max-width: 22rem;
}
.admin-create-grid {
  display: grid;
  gap: .65rem .85rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  align-items: end;
}
.bump-grid {
  display: grid;
  gap: .5rem;
}
.admin-user-cell {
  display: grid;
  gap: .1rem;
}
.admin-user-cell strong { color: var(--text); font-weight: 650; }

/* -- Admin settings -- */
.settings-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 920px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    align-items: start;
  }
}
.settings-main { display: grid; gap: 1rem; min-width: 0; }
.settings-aside { display: grid; gap: 1rem; }
.settings-card {
  padding: 0;
  overflow: hidden;
}
.settings-card-head {
  padding: 1rem 1.15rem .85rem;
  border-bottom: 1px solid var(--line);
}
.settings-card-head h2 {
  margin: 0 0 .2rem;
  font-size: 1rem;
  font-weight: 650;
}
.settings-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}
.settings-rows { display: grid; }
.settings-row {
  display: grid;
  gap: .65rem;
  align-items: center;
  padding: .9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .settings-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }
}
.settings-row-copy { min-width: 0; }
.settings-row-title {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  margin: 0 0 .15rem;
}
.settings-row-help {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}
.settings-row-meta {
  display: inline-block;
  margin-top: .25rem;
  font-size: .72rem;
  color: var(--muted);
  opacity: .85;
}
.settings-row-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  flex-wrap: wrap;
}
.settings-input {
  width: 7.5rem;
  text-align: right;
}
.settings-input-wide {
  width: min(12rem, 100%);
  text-align: left;
}
.settings-input-currency {
  width: 5.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.settings-suffix {
  color: var(--muted);
  font-size: .8rem;
  min-width: 2.2rem;
}
.settings-price-pair {
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.settings-savebar {
  position: sticky;
  bottom: .75rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  background: rgba(20, 27, 39, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.settings-savebar-note {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  max-width: 28rem;
}
.settings-health {
  list-style: none;
  margin: 0;
  padding: .35rem 0;
}
.settings-health li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.settings-health li:last-child { border-bottom: 0; }
.settings-health-label { color: var(--muted); }
.settings-health-value {
  text-align: right;
  color: var(--text);
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
}
.settings-links {
  display: grid;
  gap: .4rem;
  padding: .85rem 1.15rem 1.1rem;
}
.settings-links a {
  display: block;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  background: transparent;
}
.settings-links a:hover {
  border-color: var(--line-strong);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

/* Toggle switch */
.ez-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  user-select: none;
}
.ez-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.ez-switch-track {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #2a3344;
  border: 1px solid var(--line-strong);
  position: relative;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.ez-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #c5cede;
  transition: transform .15s ease, background .15s ease;
}
.ez-switch input:checked + .ez-switch-track {
  background: rgba(91, 141, 239, 0.45);
  border-color: rgba(91, 141, 239, 0.7);
}
.ez-switch input:checked + .ez-switch-track::after {
  transform: translateX(1.1rem);
  background: #fff;
}
.ez-switch input:focus-visible + .ez-switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ez-switch-text {
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted);
  min-width: 1.6rem;
}
.ez-switch input:checked ~ .ez-switch-text { color: var(--accent-hover); }
.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
}
.plan-pro {
  color: #dce9ff;
  background: rgba(91, 141, 239, 0.16);
  border-color: rgba(91, 141, 239, 0.4);
}
.plan-free { color: var(--muted); }
.plan-ok {
  color: #b8f0d4;
  background: rgba(61, 186, 132, 0.14);
  border-color: rgba(61, 186, 132, 0.35);
}
.plan-warn {
  color: #f0d9a8;
  background: rgba(224, 177, 90, 0.14);
  border-color: rgba(224, 177, 90, 0.35);
}
.plan-role {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.turnstile-wrap {
  margin: .85rem 0 1rem;
  min-height: 65px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
}
.check-label input {
  margin-top: .2rem;
  flex-shrink: 0;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 17, 27, 0.96);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.cookie-banner-inner {
  width: min(880px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.cookie-banner-inner a { font-weight: 600; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* -- Landing -- */
.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: .35rem 0 0;
  text-align: left;
}
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem;
    padding: .5rem 0 0;
  }
}
.hero-copy { max-width: 28rem; }
.hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}
.hero-copy > p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.hero-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070a10;
  box-shadow: var(--shadow);
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.trust {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.trust li {
  margin: 0;
  padding: 0;
}
.trust strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}
.trust span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.how-line {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  letter-spacing: 0.01em;
}

/* -- Forms / cards -- */
.form-card {
  max-width: 32rem;
  margin: 0 auto;
}
.form-card-sm { max-width: 28rem; }
.form-card-center { text-align: center; }
.form-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.form-lead { margin: 0 0 1.1rem; }
.form-note { margin: 0 0 1rem; font-size: .85rem; }
.form-actions { justify-content: flex-start; }
.form-actions-center { justify-content: center; }

.mode-pick {
  display: grid;
  gap: .65rem;
  margin: 0 0 1rem;
}
@media (min-width: 560px) {
  .mode-pick { grid-template-columns: 1fr 1fr; }
}
.mode-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: .85rem .95rem;
  font: inherit;
  transition: border-color .12s ease, background .12s ease;
}
.mode-card strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .95rem;
  font-weight: 650;
}
.mode-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.mode-card.is-on {
  border-color: rgba(91, 141, 239, 0.55);
  background: var(--accent-soft);
}
.mode-card:hover { border-color: var(--line-strong); }
.mode-card.is-on:hover { border-color: rgba(91, 141, 239, 0.7); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-start;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: .7rem 1.1rem;
  min-height: 42px;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-danger {
  color: #fff;
  background: var(--danger-bg);
}
.btn-danger:hover { background: var(--danger); }
.btn-sm {
  padding: .45rem .8rem;
  font-size: .82rem;
  min-height: 36px;
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.panel { display: none; }
.panel.is-on { display: block; }

.label {
  display: grid;
  gap: .35rem;
  margin: 0 0 .85rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
}
.input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  padding: .75rem .9rem;
  font: inherit;
  font-size: 16px;
  max-width: 100%;
}
.input:focus {
  outline: 2px solid rgba(91, 141, 239, 0.4);
  border-color: transparent;
}
.input-code {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.host-code-card {
  margin-bottom: 1rem;
  text-align: center;
  padding: 1.15rem 1.1rem 1.2rem;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(91, 141, 239, 0.18), transparent 55%),
    var(--card);
  border: 1px solid rgba(91, 141, 239, 0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.host-code-label {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.host-code-link {
  margin: .85rem 0 0;
  text-align: center;
  font-size: .85rem;
  word-break: break-all;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.btn-share-wa {
  color: #04140c !important;
  background: #25d366 !important;
  border: 1px solid transparent !important;
}
.btn-share-wa:hover {
  background: #2be072 !important;
  color: #04140c !important;
}
.btn-share-mail {
  color: #fff !important;
  background: #5b8def !important;
  border: 1px solid transparent !important;
}
.btn-share-mail:hover {
  background: #7aa2f5 !important;
  color: #fff !important;
}
.share-row a.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.time-chip {
  margin: .85rem 0 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.time-chip.is-warn { color: #e0b15a; }
.time-chip-guest {
  margin: 0 0 .65rem;
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
}

.paywall {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(4px);
}
.paywall[hidden] { display: none !important; }
.paywall-card {
  width: min(100%, 22rem);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.paywall-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.paywall-card .muted { margin: 0 0 .75rem; font-size: .88rem; }
.paywall-price {
  margin: 0 0 .85rem;
  font-weight: 650;
  font-size: .95rem;
  color: var(--text);
}
.paypal-buttons { min-height: 2.75rem; }

.code-giant {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-align: center;
  margin: .45rem 0 1rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(91, 141, 239, 0.28);
}

.muted { color: var(--muted); }
.err {
  display: none;
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  background: rgba(127, 29, 29, 0.28);
  border: 1px solid rgba(227, 93, 93, 0.35);
  color: #f3c1c1;
  font-weight: 560;
  font-size: .92rem;
}
.err.is-on { display: block; }

/* -- Room -- */
.room {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .room { grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); }
}

.stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: min(70vh, 560px);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(91, 141, 239, 0.12), transparent 60%),
    #070a10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.stage-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 6px 72px;
  background: #070a10;
}
.stage-gallery[hidden] { display: none !important; }
.share-tile {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.share-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.share-tile figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .stage-gallery { grid-template-columns: 1fr; }
}
.stage > video#ez-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #000;
  display: block;
  margin: 0;
}
.local-pip-wrap {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 108px;
  height: 144px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 4;
  pointer-events: none;
}
.local-pip-wrap[hidden] { display: none !important; }
.local-pip-wrap > video {
  display: block;
  width: 108px !important;
  height: 144px !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center;
  border: 0;
  border-radius: 0;
}
.remote-audio {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
}
.stage-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 4.2rem 1.35rem 5.5rem;
  pointer-events: none;
  color: var(--muted);
  background: #070a10;
}
.stage-idle {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  width: min(100%, calc(min(30vh, 210px) * 16 / 9), 440px);
}
.stage-idle-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0c121c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stage-idle-icon {
  width: 64px;
  height: 50px;
  color: rgba(196, 208, 226, 0.78);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stage-idle-copy {
  text-align: center;
  max-width: 24rem;
}
.stage-empty strong {
  color: var(--text);
  display: block;
  margin-bottom: .28rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage-empty #ez-stage-copy {
  display: block;
  max-width: 22rem;
  margin: 0 auto;
  line-height: 1.45;
  color: var(--muted);
}
.stage-mute-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
  color: #ffe4e4;
  background: rgba(140, 40, 48, 0.82);
  border: 1px solid rgba(255, 120, 120, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.stage-mute-badge[hidden] {
  display: none !important;
}
.stage-mute-ico {
  font-size: .9rem;
  line-height: 1;
}
.meet-timer {
  position: absolute;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.meet-timer[hidden] { display: none !important; }
.stage-rec-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #ffe4e4;
  background: rgba(140, 30, 40, 0.88);
  border: 1px solid rgba(255, 100, 100, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.stage-rec-badge[hidden] {
  display: none !important;
}
.stage-rec-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #f87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: ez-rec-pulse 1.2s ease-out infinite;
}
@keyframes ez-rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}
.stage-btn.is-recording,
.ctrl-btn.is-recording {
  border-color: rgba(248, 113, 113, 0.85);
  background: rgba(153, 27, 27, 0.75);
  color: #fecaca;
}
.ctrl-btn.is-recording .ctrl-icon {
  color: #f87171;
}
.stage-bar {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: .85rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .4rem .45rem;
  opacity: 1;
  z-index: 8;
  pointer-events: auto;
  max-width: calc(100% - 1rem);
  width: max-content;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stage-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  padding: .45rem .8rem;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.stage-btn.is-on {
  border-color: rgba(91, 141, 239, 0.65);
  background: rgba(91, 141, 239, 0.2);
  color: #fff;
}
.hires-short { display: none; }
.stage-btn:disabled {
  cursor: default;
  opacity: 1;
}
#ez-high-res.is-on:disabled:hover {
  border-color: rgba(91, 141, 239, 0.65);
  color: #fff;
}
.stage-btn:hover { border-color: var(--accent); color: #fff; }
.stage-btn-danger {
  border-color: rgba(227, 93, 93, 0.55);
  background: rgba(127, 29, 29, 0.55);
  color: #fecaca;
}
.stage-btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.85);
  background: rgba(153, 27, 27, 0.75);
  color: #fff;
}
.stage-btn[hidden] { display: none !important; }

/* Icon mic / camera controls */
.ctrl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf5;
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  border-color: rgba(91, 141, 239, 0.65);
  color: #fff;
  outline: none;
}
.ctrl-btn .ctrl-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.ctrl-btn .ctrl-slash {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: #f87171;
  transform: rotate(-45deg) scaleX(0);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform .12s ease, opacity .12s ease;
}
.ctrl-btn.is-off {
  border-color: rgba(227, 93, 93, 0.65);
  background: rgba(127, 29, 29, 0.55);
  color: #fecaca;
}
.ctrl-btn.is-off .ctrl-slash {
  transform: rotate(-45deg) scaleX(1);
  opacity: 1;
}
.ctrl-btn[hidden] { display: none !important; }
.actions .ctrl-btn {
  width: 40px;
  height: 40px;
}
.local-pip-wrap.is-cam-off {
  background: #070a10;
}
.local-pip-wrap.is-cam-off::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.82);
  pointer-events: none;
}

body.ez-fs-lock {
  overflow: hidden !important;
}
.stage.is-fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: #000 !important;
  z-index: 99999 !important;
}
.stage.is-fs > video#ez-video {
  position: absolute !important;
  inset: 0 !important;
  min-height: 0;
  max-height: none;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
}
.stage.is-fs .stage-bar {
  position: fixed !important;
  right: max(12px, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  transform: none !important;
  opacity: 1 !important;
  z-index: 100001 !important;
}
.stage.is-fs .stage-bar .stage-btn:not([hidden]),
.stage.is-fs .stage-bar .ctrl-btn:not([hidden]) {
  display: inline-flex !important;
}
.stage.is-fs .stage-bar .stage-btn-danger:not([hidden]) {
  display: inline-flex !important;
}
.stage.is-fs .local-pip-wrap {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top, 0px)) !important;
  right: max(10px, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: auto !important;
  width: 84px !important;
  height: 112px !important;
  max-width: 84px !important;
  max-height: 112px !important;
  z-index: 100000 !important;
}
.stage.is-fs .local-pip-wrap > video {
  width: 84px !important;
  height: 112px !important;
  max-width: 84px !important;
  max-height: 112px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

.stats {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.stats h3 { margin: 0 0 .55rem; font-size: .9rem; font-weight: 650; }
.stats-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0 0 .55rem;
}
.stats-toolbar h3 {
  margin: 0;
  font-size: .9rem;
  font-weight: 650;
}
.stats-toggle {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  padding: .28rem .6rem;
  min-height: 28px;
  border-radius: 999px;
  cursor: pointer;
}
.stats-toggle:hover,
.stats-toggle:focus-visible {
  color: #fff;
  border-color: rgba(91, 141, 239, 0.55);
  outline: none;
}
.stats-summary {
  display: grid;
  gap: .4rem;
  min-width: 0;
}
.stats-summary-overall {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 650;
  color: var(--text);
}
.stats-summary-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .2rem;
  min-width: 0;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: .75rem;
  color: var(--muted);
}
.stats-summary-top {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.stats-summary-name {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.stats-summary-meta {
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  max-width: none;
}
.stats-details {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.stats-details[hidden] { display: none !important; }
.stats-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem .65rem;
  margin-bottom: .45rem;
  font-size: .78rem;
  line-height: 1.45;
  min-width: 0;
  overflow: hidden;
}
.stats-card:last-child { margin-bottom: 0; }
.stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .35rem;
  font-weight: 650;
  color: var(--text);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
  color: var(--muted);
}
.stats-grid > div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
}
.stats-grid span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
.dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  display: inline-block;
  background: #64748b;
  flex: 0 0 auto;
}
.dot.ok { background: #3dba84; }
.dot.warn { background: #d4a017; }
.dot.bad { background: var(--danger); }

.side {
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(91, 141, 239, 0.06), transparent 28%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.side h3 {
  margin: 0 0 .65rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.side-status {
  margin: .75rem 0 0;
  font-size: .8rem;
}
.people-mute {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.meet-chat {
  margin-top: 1rem;
  display: grid;
  gap: .45rem;
}
.meet-chat h3 { margin: 0; }
.meet-chat-log {
  min-height: 88px;
  max-height: 200px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: .45rem;
  border-radius: 12px;
  background: rgba(12, 17, 27, 0.55);
  border: 1px solid var(--line);
}
.meet-chat-line {
  margin: 0;
  font-size: .84rem;
  line-height: 1.35;
  word-break: break-word;
}
.meet-chat-line strong {
  display: block;
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--muted, #9aa6bd);
}
.meet-chat-emoji {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
}
.meet-emoji {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 17, 27, 0.55);
  color: inherit;
  border-radius: 999px;
  padding: 1px 7px;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  cursor: pointer;
}
.meet-emoji:disabled { opacity: .4; cursor: default; }
.meet-chat-form {
  display: flex;
  gap: .4rem;
}
.meet-chat-form .input { flex: 1; min-width: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.people li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .65rem;
  border-radius: 12px;
  background: rgba(12, 17, 27, 0.55);
  border: 1px solid var(--line);
  font-size: .88rem;
}
.people-main {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  flex: 1;
}
.people-mute { flex: 0 0 auto; }
.people-manage { position: relative; flex: 0 0 auto; }
.people-manage summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
}
.people-manage summary::-webkit-details-marker { display: none; }
.people-manage-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  display: grid;
  gap: 4px;
  min-width: 138px;
  padding: 6px;
  border-radius: 12px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.people-manage-menu button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  font-size: 13px;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}
.people-manage-menu button:hover { background: rgba(255, 255, 255, 0.06); }
.people-manage-menu button.is-danger { color: #f3c1c1; }
.people-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .02em;
  color: #dce9ff;
  background: rgba(91, 141, 239, 0.22);
  border: 1px solid rgba(91, 141, 239, 0.35);
}
.people-avatar.is-host {
  background: rgba(91, 141, 239, 0.35);
  border-color: rgba(122, 162, 245, 0.65);
}
.people-avatar.is-you {
  background: rgba(61, 186, 132, 0.22);
  border-color: rgba(61, 186, 132, 0.45);
  color: #d8f5e7;
}
.people-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent-hover);
  flex: 0 0 auto;
}
.pill-host {
  background: rgba(91, 141, 239, 0.22);
  color: #cfe0ff;
}
.pill-you {
  background: rgba(61, 186, 132, 0.18);
  color: #baf0d4;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

/* Cinema / immersive session mode */
body.ez-immersive .brand,
body.ez-immersive .host-crumb,
body.ez-immersive .foot,
body.ez-immersive .pwa-install {
  display: none !important;
}
body.ez-immersive .wrap {
  width: min(1200px, calc(100% - 1rem));
  padding-top: .65rem;
  padding-bottom: 1rem;
}
body.ez-immersive #ez-room .room {
  grid-template-columns: 1fr;
  gap: .75rem;
}
body.ez-immersive #ez-room .side > h3,
body.ez-immersive #ez-room .people,
body.ez-immersive #ez-room .side-status,
body.ez-immersive #ez-room .stats {
  display: none;
}
body.ez-immersive #ez-room .stage {
  height: min(78vh, 720px);
  border-radius: 18px;
}
body.ez-immersive #ez-room .actions {
  justify-content: center;
}
body.ez-immersive #ez-room .host-code-card {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
body.ez-cinema-hide .stage-bar,
body.ez-cinema-hide #ez-room .actions,
body.ez-cinema-hide #ez-room .host-code-card {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}
body.ez-cinema-hide .stage-bar {
  /* keep translateX(-50%) when hiding */
  transform: translate(-50%, 14px);
}
body.ez-immersive:not(.ez-cinema-hide) .stage-bar,
body.ez-immersive:not(.ez-cinema-hide) #ez-room .actions {
  transition: opacity .2s ease, transform .2s ease;
}

/* Night mode */
body.ez-night {
  --bg: #05070c;
  --bg-elevated: #0a0e16;
  --card: #0d121c;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.11);
  --text: #edf2fb;
  --muted: #7d8aa0;
  --accent: #6b9cff;
  --accent-hover: #8fb4ff;
  --accent-soft: rgba(107, 156, 255, 0.14);
}
body.ez-night .stage {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(70, 110, 200, 0.1), transparent 60%),
    #03050a;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

/* Neon ink on the shared picture. Pointer events only while Draw is on. */
.stage-ink {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}
.stage-ink.is-drawing {
  pointer-events: auto;
  cursor: crosshair;
}
.stage-ink-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.stage-ink-wrap[hidden] { display: none !important; }
.ink-colors {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .45rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .35rem .45rem;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 9;
}
.ink-colors[hidden] { display: none !important; }
.ink-swatch {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--ink);
  box-shadow: 0 0 10px var(--ink);
  padding: 0;
  cursor: pointer;
}
.ink-swatch.is-on {
  border-color: #fff;
}
#ez-ink-toggle.is-on {
  border-color: rgba(94, 242, 255, 0.75);
  color: #e7fbff;
  box-shadow: 0 0 14px rgba(94, 242, 255, 0.35);
}

/* Reactions */
.stage-react-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
}
.react-float {
  position: absolute;
  bottom: 18%;
  font-size: 1.85rem;
  animation: ez-react-rise 2.5s ease-out forwards;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
@keyframes ez-react-rise {
  0% { opacity: 0; transform: translateY(18px) scale(.7); }
  12% { opacity: 1; transform: translateY(0) scale(1.05); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-110px) scale(1.15); }
}
.stage-bar-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 .15rem;
  flex: 0 0 auto;
}
.stage-bar-sep[hidden] { display: none !important; }
.stage-react-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.stage-react-wrap[hidden] { display: none !important; }
.stage-react-bar {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .45rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .35rem .4rem;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9;
}
.stage-react-bar[hidden] { display: none !important; }
.stage-react-wrap.is-open #ez-react-toggle {
  border-color: rgba(91, 141, 239, 0.55);
  background: rgba(91, 141, 239, 0.18);
}
.react-toggle-ico {
  font-size: 1.05rem;
  line-height: 1;
}
.react-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.react-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px) scale(1.06);
}
.react-btn.is-on {
  background: rgba(91, 141, 239, 0.22);
  border-color: rgba(91, 141, 239, 0.55);
}

/* Speaking / hand */
.people-avatar.is-speaking,
.local-pip-wrap.is-speaking {
  box-shadow: 0 0 0 2px rgba(61, 186, 132, 0.95), 0 0 18px rgba(61, 186, 132, 0.45);
}
.people li.is-speaking {
  border-color: rgba(61, 186, 132, 0.45);
  background: rgba(61, 186, 132, 0.08);
}
.people-hand {
  font-size: .95rem;
  line-height: 1;
  animation: ez-hand-bob 1.2s ease-in-out infinite;
}
@keyframes ez-hand-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.people-mic {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  flex: 0 0 auto;
  background: rgba(180, 55, 60, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffc9c9;
}
.people-rec {
  display: inline-flex;
  align-items: center;
  padding: .12rem .4rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  flex: 0 0 auto;
  color: #fecaca;
  background: rgba(153, 27, 27, 0.75);
  border: 1px solid rgba(248, 113, 113, 0.55);
}
.people li.is-muted {
  border-color: rgba(200, 80, 90, 0.35);
}
.people li.is-recording-host {
  border-color: rgba(248, 113, 113, 0.45);
}
.people-avatar.is-muted {
  opacity: 0.85;
}
body.ez-meeting-recording .stage {
  box-shadow: inset 0 0 0 2px rgba(248, 113, 113, 0.55);
}
body.ez-meeting-recording .stage-rec-badge {
  display: inline-flex !important;
}

@media (max-width: 720px) {
  .stage-react-bar .react-btn {
    width: 30px;
    height: 30px;
    font-size: .95rem;
  }
  .stage-bar {
    padding: .3rem .35rem;
    gap: .22rem;
  }
  #ez-immersive {
    display: none !important;
  }
}

/* -- Footer -- */
.foot {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}
.foot-word {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: .98rem;
  color: var(--text);
  margin-bottom: .35rem;
}
.foot-brand p { margin: 0 0 .5rem; max-width: 28rem; line-height: 1.45; }
.foot-company { font-size: .78rem; }
.foot-company strong { color: var(--text); font-weight: 600; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  align-items: center;
}
.foot-links a {
  color: var(--muted);
  font-weight: 560;
  text-decoration: none;
}
.foot-links a:hover { color: var(--text); }
.foot-copy {
  margin: 1.15rem 0 0;
  text-align: left;
  font-size: .75rem;
  color: #667388;
}

/* -- Legal -- */
.legal {
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.55;
}
.legal h1 {
  margin: .35rem 0 .5rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 650;
}
.legal h2 {
  margin: 1.4rem 0 .45rem;
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 650;
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal a { font-weight: 560; }
.legal-meta { margin: 0 0 1.25rem; font-size: .88rem; }
.pill-legal {
  display: inline-flex;
  margin: 0;
  padding: .15rem .45rem;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}
.table-wrap { overflow-x: auto; margin: .75rem 0 1rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
}
.legal-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 650;
}
.legal-table code {
  font-size: .8em;
  color: var(--accent-hover);
}

/* -- Hamburger drawer (phones + narrow tablets) -- */
@media (max-width: 880px) {
  .brand {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: .55rem .65rem;
    position: relative;
    z-index: 40;
  }
  .brand-lockup {
    flex: 0 0 auto;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 10, 18, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .brand.is-nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(19.5rem, calc(100vw - 3.25rem));
    margin: 0;
    padding: calc(.85rem + env(safe-area-inset-top, 0px)) .9rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: .45rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #101826;
    border-left: 1px solid var(--line-strong);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(105%);
    transition: transform .2s ease;
  }
  .brand.is-nav-open .nav-links {
    transform: translateX(0);
  }
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 .35rem;
    padding: 0 .15rem .55rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }
  .nav-links .tag {
    display: block;
    margin: .15rem 0 .35rem;
    line-height: 1.35;
    white-space: normal;
  }
  .nav-links .nav-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding: .7rem .95rem;
    font-size: .95rem;
    border-radius: 12px;
  }
  body.ez-nav-lock {
    overflow: hidden;
    touch-action: none;
  }
}

/* -- Mobile -- */
@media (max-width: 720px) {
  .wrap,
  .wrap:has(.host-dash),
  .admin-wrap {
    width: min(1040px, calc(100% - 1rem));
    padding: .85rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }

  .brand {
    margin-bottom: 1.1rem;
    padding-bottom: .75rem;
  }

  .host-crumb {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .65rem;
    margin-bottom: .95rem;
    padding: .7rem .8rem;
  }
  .host-crumb-path {
    flex: 0 1 auto;
  }
  .host-subnav {
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .1rem;
  }
  .host-subnav::-webkit-scrollbar { display: none; }
  .host-subnav-link {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .account-hero {
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
  }
  .account-hero-actions {
    width: 100%;
  }
  .account-hero-actions .btn {
    flex: 1 1 calc(50% - .3rem);
    justify-content: center;
    min-height: 42px;
  }

  .host-dash { gap: .9rem; }
  .dash-hero {
    padding: 1rem .95rem;
    align-items: stretch;
  }
  .dash-hero-title {
    font-size: clamp(1.4rem, 6.5vw, 1.75rem);
  }
  .dash-hero-sub { font-size: .9rem; }
  .dash-hero-actions {
    width: 100%;
  }
  .dash-hero-actions .btn {
    flex: 1 1 calc(50% - .3rem);
    justify-content: center;
    min-height: 44px;
  }
  .dash-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }
  .dash-metric {
    padding: .85rem .8rem;
  }
  .dash-metric-value { font-size: 1.35rem; }
  .dash-actions {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .dash-action {
    min-height: 56px;
    padding: .85rem .9rem;
  }
  .dash-panel-head {
    flex-wrap: wrap;
    padding: .9rem .95rem .75rem;
  }
  .dash-meeting,
  .hist-row,
  .dash-activity-row {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
    padding: .9rem .95rem;
  }
  .dash-meeting-actions,
  .hist-side,
  .dash-activity-side {
    width: 100%;
    justify-content: flex-start;
  }
  .dash-meeting-actions .btn,
  .hist-side .btn {
    flex: 1 1 calc(50% - .25rem);
    justify-content: center;
    min-height: 40px;
  }
  .dash-empty {
    padding: 1.1rem .95rem 1.2rem;
  }
  .hist-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
  }
  .hist-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .1rem;
  }
  .hist-filters::-webkit-scrollbar { display: none; }
  .hist-filter {
    flex: 0 0 auto;
    min-height: 34px;
  }
  .hist-toolbar-note { font-size: .74rem; }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }
  .account-tools {
    grid-template-columns: 1fr;
  }

  .settings-row {
    grid-template-columns: 1fr;
    gap: .55rem;
    padding: .85rem .95rem;
  }
  .settings-row-control,
  .settings-price-pair {
    width: 100%;
    justify-content: flex-start;
  }
  .settings-input,
  .settings-input-wide,
  .settings-input-currency {
    width: 100%;
    max-width: none;
    text-align: left;
    min-height: 44px;
    font-size: 16px; /* avoid iOS zoom */
  }
  .settings-savebar {
    position: sticky;
    bottom: max(.5rem, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding: .8rem .9rem;
  }
  .settings-savebar .form-actions {
    width: 100%;
  }
  .settings-savebar .btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
  .settings-health li {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
  .settings-health-value { text-align: left; }

  .input,
  .admin-select,
  select.admin-select {
    font-size: 16px; /* avoid iOS zoom on focus */
    min-height: 44px;
  }
  .label { font-size: .82rem; }
  .form-card { padding: 1rem; }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .hero { padding: 0; gap: 1.15rem; }
  .hero-copy { max-width: none; }
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.05rem);
  }
  .hero-copy > p {
    font-size: .95rem;
    margin-bottom: 1.1rem;
  }
  .hero-art { border-radius: var(--radius-sm); }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
  }
  .cta-row .btn,
  .cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .trust { margin-top: 1.5rem; gap: .9rem; }
  .how-line { margin-top: 1.35rem; font-size: .8rem; }

  .card {
    padding: 1rem;
  }

  .mode-pick { gap: .55rem; }
  .mode-card {
    min-height: 72px;
    padding: .8rem .85rem;
  }

  .code-giant {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
    letter-spacing: .12em;
    word-break: break-all;
  }
  .share-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
  }
  .share-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .room { gap: .85rem; }

  .stage {
    min-height: 0;
    height: auto;
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    aspect-ratio: 9 / 14;
    max-height: min(62vh, 520px);
  }
  .stage > video#ez-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background: #000;
  }
  .local-pip-wrap {
    top: .5rem;
    right: .5rem;
    width: 84px;
    height: 112px;
    border-radius: 8px;
  }
  .local-pip-wrap > video {
    width: 84px !important;
    height: 112px !important;
  }
  .stage-empty {
    padding: 3.1rem .85rem 4.6rem;
  }
  .stage-idle { gap: .7rem; }
  .stage-empty strong { font-size: 1rem; }
  .stage-empty #ez-stage-copy { font-size: .86rem; }
  .stage-idle-icon { width: 52px; height: 40px; }
  #ez-high-res .hires-long { display: none; }
  #ez-high-res .hires-short { display: inline; }
  .stage-bar {
    left: 50%;
    right: auto;
    bottom: max(.45rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    gap: .3rem;
    width: max-content;
    max-width: calc(100% - .6rem);
  }
  .stage-bar .ctrl-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }
  .stage-bar .ctrl-btn .ctrl-icon {
    width: 17px;
    height: 17px;
  }
  .stage-bar .stage-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    padding: .35rem .55rem;
    font-size: .7rem;
  }
  .stage-bar .stage-btn-danger {
    padding: .35rem .5rem;
  }

  .actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: .45rem 0 0;
    padding: .4rem 0 calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(12, 17, 27, 0.96);
    border-top: 1px solid var(--line);
    gap: .3rem;
    justify-content: center;
  }
  .actions .btn,
  .actions .btn-sm {
    flex: 0 1 auto;
    min-height: 36px;
    padding: .4rem .7rem;
    font-size: .74rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
  }

  .side { padding: .9rem; }
  .stats-grid { gap: .25rem .4rem; font-size: .75rem; }

  .foot { margin-top: 1.75rem; padding-top: 1.1rem; }
  .foot-inner { flex-direction: column; gap: 1rem; }
  .foot-links { gap: .6rem .85rem; }

  .legal { padding: 0; }
  .legal-table { font-size: .78rem; }
  .table-wrap {
    margin-left: -.25rem;
    margin-right: -.25rem;
    padding: 0 .25rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 42px;
  }
}

@media (max-width: 380px) {
  .brand-mark { width: 28px; height: 28px; }
  .logo { font-size: .98rem; }
  .actions .btn,
  .actions .btn-sm {
    min-height: 32px;
    padding: .3rem .55rem;
    font-size: .68rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .stage-bar { opacity: 1; }
  .mode-card:hover { border-color: var(--line); }
  .mode-card.is-on:hover {
    border-color: rgba(91, 141, 239, 0.55);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .stage {
    width: min(100%, 640px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 9;
    max-height: min(70vh, 360px);
  }
  .stage > video#ez-video {
    object-fit: contain;
    object-position: center center;
  }
  .stage-empty { padding: 2.2rem .7rem 3.4rem; }
  .stage-idle { gap: .45rem; }
  .stage-empty strong { font-size: .95rem; margin-bottom: .15rem; }
  .stage-empty #ez-stage-copy { font-size: .8rem; }
  .actions {
    position: static;
    background: none;
    border-top: 0;
    padding: .35rem 0 0;
  }
  .cta-row { flex-direction: row; }
  .cta-row .btn { width: auto; flex: 1; }
}

@media (max-width: 720px) {
  #ez-room .actions {
    display: flex;
    flex-wrap: wrap;
    max-height: none;
  }
}

/* -- PWA install banner -- */
.pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 24, 38, 0.96);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pwa-install[hidden] { display: none !important; }
/* Don’t cover meeting controls with the install tip */
body:has(#ez-room.is-on) .pwa-install { display: none !important; }
.pwa-install-inner {
  width: min(880px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.pwa-install-copy {
  display: grid;
  gap: .15rem;
  min-width: min(100%, 16rem);
  flex: 1 1 12rem;
}
.pwa-install-copy strong {
  font-size: .92rem;
}
.pwa-install-copy span {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
}
.pwa-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  flex: 0 0 auto;
}
@media (min-width: 860px) {
  .pwa-install { display: none !important; } /* install prompt is mainly for phones */
}
