:root {
  color-scheme: dark;
  --bg: #041126;
  --panel: #0a2040;
  --panel-2: #0c274c;
  --text: #f6f7fb;
  --muted: #aabbd0;
  --line: rgba(118, 184, 255, 0.2);
  --navy: #064987;
  --blue: #0b58a0;
  --cyan: #18aee9;
  --sky: #33c5f3;
  --green: #4ade80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 1.5rem;
  background: #071a35;
  border-top: 6px solid var(--cyan);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand,
.user-card,
.section-head,
.topbar,
.top-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.85rem;
}

.brand-logo {
  width: 100%;
  max-width: 15rem;
  height: 5rem;
  object-fit: contain;
  object-position: left center;
  border-radius: 0.35rem;
  background: transparent;
}

.brand span,
.user-card small,
.eyebrow,
.metrics span,
.file-list small {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 0.5rem;
}

.nav-item,
.ghost-button,
.primary-button,
.tool-grid button,
.video-main button {
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-item {
  background: transparent;
  padding: 0.85rem 1rem;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(24, 174, 233, 0.16);
  border-color: rgba(24, 174, 233, 0.45);
}

.user-card {
  margin-top: auto;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--green);
  border-radius: 999px;
}

.main {
  padding: 1.5rem;
}

.topbar {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.75rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.8rem;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.06;
}

.top-actions {
  gap: 0.75rem;
}

.ghost-button,
.primary-button,
.video-main button {
  min-height: 2.75rem;
  padding: 0 1rem;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
}

.primary-button {
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  border-color: transparent;
  font-weight: 700;
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.7fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.invite-panel,
.conference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.hero-panel,
.invite-panel,
.stage,
.meeting-tools,
.task-card,
.upload-zone,
.file-list div,
.metrics article,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
}

.hero-panel,
.invite-panel {
  padding: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.hero-panel p,
.invite-panel p,
.meeting-tools p {
  color: var(--muted);
  line-height: 1.6;
}

.login-panel,
.invite-panel form,
.meeting-tools {
  display: grid;
  gap: 1rem;
}

.login-panel {
  padding: 1rem;
}

.hero-logo-card {
  min-height: 14rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  display: block;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #061a36;
  color: var(--text);
  padding: 0.85rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.metrics,
.task-board,
.file-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics article {
  padding: 1.1rem;
}

.metrics strong {
  display: block;
  font-size: 2rem;
}

.section-head {
  justify-content: space-between;
  gap: 1rem;
}

.task-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-card {
  padding: 1rem;
}

.task-card.done {
  border-color: rgba(74, 222, 128, 0.55);
}

.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.task-card button {
  margin-top: 1rem;
  width: 100%;
}

.stage,
.meeting-tools {
  padding: 1rem;
}

.video-main {
  scroll-margin-top: 190px;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 73, 135, 0.82), rgba(24, 174, 233, 0.28)),
    #0d1118;
}

.video-main span {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  font-weight: 900;
}

.video-main button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.42);
}

.video-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.video-strip div,
.tool-grid button {
  min-height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--panel-2);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-grid button {
  min-height: 3rem;
}

.upload-zone {
  min-height: 13rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.upload-zone span {
  color: var(--muted);
}

.file-list div {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 900px) {
  .app-shell,
  .hero-panel,
  .invite-panel,
  .conference-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 1rem;
  }

  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
  }

  .nav-item {
    text-align: center;
    white-space: nowrap;
  }

  .user-card {
    display: none;
  }

  .metrics,
  .task-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  .section-head,
  .file-list div {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .top-actions button {
    width: 100%;
  }

  .video-strip,
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.waiting-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.waiting-room { background: #041126; }
#localVideo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #041126; z-index: 2; }
.video-main button { z-index: 3; }
.video-toolbar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 8px; background: #041126e8; border-radius: 8px; }
.video-main .video-toolbar button { position: static; min-height: 36px; padding: 6px 10px; font-size: 12px; }
.video-main .video-toolbar .end-call { background: #b42336; border-color: #e55c6e; }
.video-toolbar button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.video-toolbar { border: 1px solid #5dcfff40; box-shadow: 0 8px 28px #0005; backdrop-filter: blur(12px); }
.video-main .video-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #12334e; border: 1px solid #72c8ff30; min-height: 42px; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.video-main .video-toolbar button:hover { background: #185077; border-color: #33c5f3; transform: translateY(-2px); }
.video-main .video-toolbar button:active { transform: translateY(0); }
.video-main .video-toolbar button[aria-pressed="true"] { background: #086c91; border-color: #6ee7ff; }
.video-main .video-toolbar .end-call:hover { background: #dc354b; border-color: #ff9aaa; }
.nav-item, .ghost-button, .primary-button, .tool-grid button { transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ghost-button:hover, .tool-grid button:hover { border-color: var(--cyan); box-shadow: 0 2px 10px #18aee920; }
.primary-button:hover { filter: brightness(1.12); }
.device-tags { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.device-tag { font-size: 11px; color: #d9e7f2; padding: 6px 9px; border: 1px solid #ffffff30; border-radius: 6px; background: #041126dd; display: flex; align-items: center; gap: 6px; }
.device-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8b9aac; }
.device-tag.is-active::before { background: #4ade80; animation: ready-pulse 2s ease-in-out infinite; }
.device-tag.recording::before { background: #ff657a; }
@media (prefers-reduced-motion: reduce) { .video-main .video-toolbar button, .nav-item, .ghost-button, .primary-button, .tool-grid button { transition: none; } .device-tag.is-active::before { animation: none; } }
[hidden] { display: none !important; }
.video-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.video-strip div { padding: 8px; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.stage.is-sharing { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; align-items: start; }
.stage.is-sharing .video-strip { grid-template-columns: 1fr; margin-top: 0; }
.stage.is-sharing .video-strip > div { aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; }
.self-tile { position: relative; }
#selfVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#selfLabel { position: relative; align-self: end; z-index: 1; padding: 3px 6px; background: #041126; border-radius: 3px; }
.stage.is-sharing:fullscreen { grid-template-columns: minmax(0, 1fr) 180px; align-items: center; padding: 12px; }
.stage.is-sharing:fullscreen .video-strip { display: grid; }
@media (max-width: 620px) {
  .stage.is-sharing, .stage.is-sharing:fullscreen { grid-template-columns: 1fr; }
  .stage.is-sharing .video-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tool-grid button[aria-pressed="true"] { border-color: var(--cyan); background: #064987; }
#meetingChat { max-height: 180px; overflow-y: auto; }
#meetingChat p { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#chatForm { display: grid; gap: 8px; }
#meetingStatus { padding: 12px; border: 1px solid var(--cyan); color: var(--text); background: #061a36; }
#liveTranscript { max-height: 180px; overflow: auto; overflow-wrap: anywhere; }
.transcription-panel { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
#transcriptionStatus { padding: 12px; background: #061a36; border-left: 3px solid var(--cyan); overflow-wrap: anywhere; }
#conversationHistory article { padding: 16px 0; border-bottom: 1px solid var(--line); }
#conversationHistory p { white-space: pre-wrap; overflow-wrap: anywhere; }
#history > label { margin-bottom: 12px; max-width: 600px; }
.background-settings summary { cursor: pointer; padding: 10px 0; }
.background-settings img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; margin-bottom: 12px; }
.background-download { display: inline-flex; align-items: center; text-decoration: none; }
.conference-layout { position: relative; display: block; padding-right: 48px; }
.conference-layout > .meeting-tools {
  position: absolute; top: 0; right: 0; z-index: 6;
  width: 44px; height: 44px; padding: 0;
  display: block; overflow: hidden; background: #071a35;
  transition: width .18s ease; border-radius: 8px;
}
.controls-toggle { width: 44px; height: 44px; position: sticky; top: 0; z-index: 2; background: #064987; color: white; border: 0; cursor: pointer; font-size: 24px; }
.conference-layout > .meeting-tools > :not(.controls-toggle) { display: none !important; }
.conference-layout > .meeting-tools:hover,
.conference-layout > .meeting-tools:focus-within,
.conference-layout > .meeting-tools.controls-open { width: min(340px, calc(100% - 16px)); height: min(650px, 76vh); overflow-y: auto; overflow-x: hidden; padding: 0 12px 12px; box-shadow: -12px 0 30px #0006; }
.conference-layout > .meeting-tools:hover > :not(.controls-toggle),
.conference-layout > .meeting-tools:focus-within > :not(.controls-toggle),
.conference-layout > .meeting-tools.controls-open > :not(.controls-toggle) { display: block !important; margin-top: 12px; }
.conference-layout > .meeting-tools .tool-grid { display: none; }
.conference-layout > .meeting-tools:hover .tool-grid,
.conference-layout > .meeting-tools:focus-within .tool-grid,
.conference-layout > .meeting-tools.controls-open .tool-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meeting-tools button, .meeting-tools p { overflow-wrap: anywhere; }
.meeting-tools h2 { font-size: 18px; }
.meeting-tools textarea { min-height: 65px; }
.recording-choice { display: flex; align-items: center; gap: 8px; }
.recording-choice input { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .conference-layout > .meeting-tools { transition: none; } }
.nav { grid-template-columns: none; }
@media (max-width: 900px) { .nav { display: flex; } .nav-item { flex: 0 0 auto; } }
@media (max-width: 620px) { .video-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.waiting-status { position: absolute; left: 55%; right: 3%; top: 40%; color: white; text-shadow: 0 2px 8px #041126; }
.waiting-status h2 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.waiting-status p { font-size: 13px; margin-bottom: 12px; }
.ready-label { display: flex; align-items: center; gap: 8px; color: #9fe6ff; }
.ready-label i { width: 8px; height: 8px; border-radius: 50%; background: #33c5f3; animation: ready-pulse 2s ease-in-out infinite; }
.waiting-dots { display: flex; gap: 6px; height: 12px; }
.waiting-dots i { width: 5px; height: 5px; border-radius: 50%; background: #33c5f3; animation: waiting-bounce 1.4s ease-in-out infinite; }
.waiting-dots i:nth-child(2) { animation-delay: .2s; }
.waiting-dots i:nth-child(3) { animation-delay: .4s; }
.stage:fullscreen { display: grid; align-content: center; padding: 0; background: #041126; }
.stage:fullscreen .video-main { width: 100%; max-height: 100vh; }
.stage:fullscreen .video-strip { display: none; }
@keyframes ready-pulse { 50% { opacity: .4; } }
@keyframes waiting-bounce { 50% { transform: translateY(-4px); opacity: .4; } }
@media (max-width: 620px) {
  .waiting-status { top: 40%; }
  .waiting-status h2 { font-size: 13px; margin-bottom: 5px; }
  .waiting-status p { font-size: 10px; margin-bottom: 6px; }
  .video-main button { min-height: 26px; padding: 0 8px; font-size: 10px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ready-label i, .waiting-dots i { animation: none; } }
.video-strip { display: flex; gap: 8px; margin-top: 8px; }
.access-screen { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.access-brand { position: relative; background: #073c71; color: #f4faff; padding: 40px 48px 0; overflow: hidden; border-top: 5px solid #33c5f3; }
.access-logo { width: 260px; max-width: 100%; height: 122px; object-fit: contain; background: #c2edff; border-radius: 6px; }
.official-logo { background: #c2edff; border-radius: 4px; }
.official-logo-wrap { width: 260px; max-width: 100%; background: #c2edff; isolation: isolate; border-radius: 6px; }
.official-logo-wrap .access-logo { display: block; background: transparent; mix-blend-mode: multiply; }
.mascot-animated { height: min(320px, 40dvh); aspect-ratio: 3 / 4; max-width: 100%; align-self: center; flex-shrink: 0; background-image: url('./mascot-animation.png'); background-repeat: no-repeat; background-size: 400% 100%; animation: mascot-poses 5s step-end infinite; }
@keyframes mascot-poses { 0%, 100% { background-position: 0% 0; } 25% { background-position: 33.333333% 0; } 50% { background-position: 66.666667% 0; } 75% { background-position: 100% 0; } }
@media(max-height: 650px) { .mascot-animated { height: 220px; } }
@media(max-width: 760px) { .mascot-animated { height: 180px; } }
@media(prefers-reduced-motion: reduce) { .mascot-animated { animation: none; } }

.access-screen { width: min(1120px, 100%); margin: auto; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; padding: 28px 36px; }
.access-brand { border: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 18px; align-content: center; }
.official-logo-wrap { grid-column: 1 / -1; width: 280px; background: transparent; border-radius: 0; margin-bottom: 24px; box-shadow: none; }
.official-logo-wrap .access-logo { width: 280px; height: 130px; mix-blend-mode: normal; filter: none; box-shadow: none; background: transparent; }
.access-brand h1 { grid-column: 1; font-size: 30px; line-height: 1.2; align-self: end; margin: 0 0 16px; }
.access-brand p { grid-column: 1; font-size: 15px; line-height: 1.7; margin: 0; }
.mascot-animated { grid-column: 2; grid-row: 2 / 4; height: min(390px, 58dvh); width: auto; aspect-ratio: 1 / 2; justify-self: center; }
.mascot-animated { background-image: url('./mascot-animation-full.png'); }
.access-form-area { padding: 24px 0 24px 28px; border-left: 1px solid #5fcaff40; }
@media(max-width: 900px) { .access-screen { gap: 24px; grid-template-columns: minmax(0, 1fr) 330px; padding: 24px; } .access-brand { grid-template-columns: 1fr; } .access-brand h1 { font-size: 24px; } .mascot-animated { grid-column: 1; grid-row: auto; height: 240px; margin-top: 16px; } }
@media(max-width: 760px) { .access-screen { grid-template-columns: 1fr; gap: 16px; padding: 20px; } .access-brand { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; } .official-logo-wrap { margin-bottom: 8px; width: 220px; } .official-logo-wrap .access-logo { width: 220px; height: 100px; } .access-brand h1 { font-size: 20px; } .access-brand p { font-size: 12px; } .mascot-animated { grid-column: 2; grid-row: 2 / 4; height: 190px; margin: 0; } .access-form-area { border-left: 0; border-top: 1px solid #5fcaff40; padding: 16px 0; } }
.official-logo-wrap { width: min(380px, 100%); background: white; padding: 10px 14px; border-radius: 6px; box-shadow: none; }
.official-logo-wrap .access-logo { width: 100%; height: auto; display: block; filter: none; mix-blend-mode: normal; }
@media(max-width: 760px) { .official-logo-wrap { width: min(300px, 100%); } }

.access-screen { width: min(1240px, 100%); min-height: 100dvh; grid-template-columns: minmax(0, 1fr) 220px minmax(280px, 340px); gap: 24px; padding: 28px 32px; align-items: center; }
.access-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0; }
.official-logo-wrap { width: min(340px, 100%); margin: 0 0 24px; }
.access-brand h1 { font-size: 28px; line-height: 1.25; margin: 0 0 18px; text-align: left; }
.access-brand p { font-size: 15px; line-height: 1.7; margin: 0; max-width: 410px; }
.access-screen > .mascot-animated { grid-column: auto; grid-row: auto; width: 220px; height: 440px; max-height: 70dvh; max-width: 100%; aspect-ratio: 1 / 2; align-self: center; justify-self: center; margin: 0; }
.access-form-area { padding: 16px 0 16px 24px; }
@media (max-height: 650px) and (min-width: 901px) { .access-screen { padding-top: 16px; padding-bottom: 16px; } .official-logo-wrap { width: 260px; margin-bottom: 16px; } .access-brand h1 { font-size: 24px; } .access-screen > .mascot-animated { width: 180px; height: 360px; } }
@media (max-width: 900px) { .access-screen { grid-template-columns: minmax(0, 1fr) 150px minmax(240px, 300px); gap: 16px; padding: 20px; } .access-screen > .mascot-animated { width: 150px; height: 300px; } .access-brand h1 { font-size: 22px; } .access-brand p { font-size: 13px; } .access-form-area { padding-left: 16px; } }
@media (max-width: 700px) { .access-screen { grid-template-columns: minmax(0, 1fr) 100px; gap: 16px; } .access-brand { grid-column: 1; } .access-screen > .mascot-animated { grid-column: 2; width: 100px; height: 200px; } .official-logo-wrap { width: 240px; margin-bottom: 12px; } .access-form-area { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; } }

.access-screen, .access-brand, .access-form-area { background: #041126; }
.access-form input { background: #071a35; border-color: #76b8ff40; }
.access-screen > .mascot-animated { background-position: 0 0; animation: mascot-breathing 7s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes mascot-breathing {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-3px) rotate(-.35deg); }
  70% { transform: translateY(-1px) rotate(.25deg); }
}
@media(prefers-reduced-motion: reduce) { .access-screen > .mascot-animated { animation: none; } }

.access-screen { width: 100%; max-width: none; margin: 0; min-height: 100dvh; grid-template-columns: minmax(0, 1fr) 465px; gap: 0; padding: 0; background: #0b3c6c; align-items: stretch; }
.opening-media { position: relative; min-width: 0; display: grid; align-items: center; background: #0b3c6c; min-height: 100dvh; }
#openingVideo { display: block; width: 100%; height: 100dvh; object-fit: contain; background: #0b3c6c; }
.opening-controls { position: absolute; left: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }
.opening-controls button { background: #062345e8; min-height: 40px; backdrop-filter: blur(8px); }
#openingStatus { position: absolute; left: 20px; right: 20px; bottom: 68px; background: #062345e8; border-radius: 4px; padding: 8px; font-size: 12px; }
#openingStatus:empty { display: none; }
.access-form-area { background: #0b3c6c; width: 100%; padding: 40px 48px 40px 32px; border-left: 1px solid #37b9e540; align-self: center; }
.access-tabs button { font-size: 18px; padding: 14px 4px; }
.access-note { font-size: 14px; line-height: 1.6; margin: 24px 0 36px; }
.access-form { gap: 24px; }
.access-form h2 { font-size: 28px; margin: 0; }
.access-form label { font-size: 18px; gap: 10px; }
.access-form input { height: 52px; padding: 12px 16px; background: #082544; }
.access-form .primary-button { min-height: 56px; font-size: 18px; background: #149fc5; }
@media(max-height: 700px) and (min-width: 761px) { .access-form-area { padding-top: 20px; padding-bottom: 20px; } .access-note { margin: 16px 0 24px; } .access-form { gap: 16px; } }
@media(max-width: 900px) { .access-screen { grid-template-columns: minmax(0, 1fr) 400px; } .access-form-area { padding: 24px; } }
@media(max-width: 760px) { .access-screen { grid-template-columns: 1fr; } .opening-media { min-height: 0; } #openingVideo { height: 42dvh; min-height: 220px; } .access-form-area { border-left: 0; border-top: 1px solid #37b9e540; padding: 28px 24px; max-width: 465px; justify-self: center; } .access-form { gap: 20px; } }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media(max-width: 760px) {
  .access-screen { min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
  .opening-media { padding-top: env(safe-area-inset-top); }
  #openingVideo { height: auto; min-height: 0; max-height: 42dvh; aspect-ratio: 16 / 9; }
  .opening-controls { left: 12px; bottom: 12px; gap: 6px; }
  .opening-controls button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .access-form-area { width: 100%; padding: 20px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); }
  .access-tabs button { min-height: 48px; font-size: 16px; }
  .access-note { font-size: 12px; margin: 12px 0 20px; }
  .access-form h2 { font-size: 24px; }
  .access-form label { font-size: 15px; gap: 6px; }
  input, textarea, select { font-size: 16px; }
  .access-form input { height: 48px; font-size: 16px; }
  .access-form .primary-button { min-height: 48px; font-size: 16px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: relative; padding: 12px; gap: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
  .brand-logo { width: 150px; height: 54px; }
  .nav { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .nav-item { min-height: 44px; padding: 8px 12px; font-size: 14px; }
  .main { min-width: 0; padding: 12px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .topbar h1 { font-size: 22px; }
  .top-actions { gap: 8px; }
  .top-actions button { flex: 1; min-height: 44px; padding: 8px; font-size: 13px; }
  .conference-layout { padding-right: 0; padding-top: 48px; }
  .stage { padding: 6px; }
  .video-main { min-height: 0; aspect-ratio: 4 / 3; scroll-margin-top: 12px; }
  .conference-layout > .meeting-tools { top: 0; right: 0; max-width: 100%; }
  .controls-toggle { min-height: 44px; }
  .conference-layout > .meeting-tools.controls-open { width: min(340px, 100%); height: min(560px, 78dvh); }
  .video-toolbar { left: 4px; right: 4px; bottom: 4px; padding: 4px; gap: 4px; }
  .video-main .video-toolbar button { min-height: 44px; padding: 4px 6px; font-size: 11px; flex: 1 1 28%; }
  .device-tags { top: 6px; left: 6px; gap: 4px; }
  .device-tag { font-size: 10px; padding: 4px 6px; }
  .waiting-status { top: 35%; }
  .waiting-status h2 { font-size: 13px; }
  .transcription-panel button { min-height: 44px; margin-bottom: 8px; }
  .stage:fullscreen .video-main { height: 100dvh; aspect-ratio: auto; }
  .stage.is-sharing:fullscreen .video-main { height: 72dvh; }
}
@media(hover: none) {
  .conference-layout > .meeting-tools:hover:not(.controls-open):not(:focus-within) { width: 44px; height: 44px; padding: 0; overflow: hidden; }
  .conference-layout > .meeting-tools:hover:not(.controls-open):not(:focus-within) > :not(.controls-toggle) { display: none !important; }
  .video-main .video-toolbar button:hover { transform: none; }
}
@media(max-width: 380px) { .access-form-area { padding-left: 16px; padding-right: 16px; } .device-tag { font-size: 9px; } }
.access-brand h1 { font-size: 28px; margin: 24px 0 12px; max-width: 500px; }
.access-brand p { max-width: 520px; line-height: 1.6; color: #c6e4f8; }
.access-mascot { display: block; width: 100%; height: min(280px, 36dvh); object-fit: contain; object-position: center bottom; animation: mascot-welcome 6s ease-in-out infinite; transform-origin: center bottom; filter: drop-shadow(0 12px 20px #00183055); }
.access-form-area { padding: 48px 36px; align-self: center; background: #073c71; }
.access-brand, .access-form-area { min-width: 0; }
.access-brand { display: flex; flex-direction: column; justify-content: center; padding: 24px 32px; }
.access-form-area { padding: 24px; }
.access-form { gap: 12px; }
.access-brand h1 { font-size: 24px; margin: 14px 0 10px; }
.access-brand p { font-size: 14px; margin-bottom: 12px; }
.access-tabs button { min-width: 0; font-size: 14px; }
.access-note { margin: 12px 0; }
@media (min-width: 761px) and (max-height: 650px) {
  .access-mascot { height: 180px; }
  .access-form-area { padding: 16px 24px; }
  .access-form { gap: 8px; }
  .access-form input { padding: 9px 12px; }
}
.access-screen { background: #073c71; }
.access-form input { background: #062345; border-color: #4385b366; }
.access-form input:focus { outline: 2px solid #33c5f3; outline-offset: 2px; }
.access-form .primary-button { background: #129fce; color: white; box-shadow: 0 6px 20px #00183050; }
@keyframes mascot-welcome { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .access-mascot { animation: none; } }
.access-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.access-tabs button { flex: 1; padding: 12px 4px; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; }
.access-tabs button[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.access-form { display: grid; gap: 18px; }
.access-form h2 { margin: 12px 0 0; font-size: 24px; }
.access-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 20px 0; }
#accessStatus { color: #ffd47d; }
.hero-panel { grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr); }
@media(max-width: 760px) {
  .access-screen { grid-template-columns: 1fr; }
  .access-brand { padding: 24px; }
  .access-brand h1 { font-size: 24px; }
  .access-mascot { height: 200px; }
  .access-form-area { padding: 24px; }
  .hero-panel { grid-template-columns: 1fr; }
}
.video-strip > div { min-height: 30px; height: 30px; width: auto; padding: 4px 10px; border-radius: 4px; }
.stage.is-sharing .video-strip { display: flex; flex-direction: column; }
.stage.is-sharing .video-strip > div { width: 100%; height: auto; min-height: 72px; aspect-ratio: 16 / 9; }
@media (max-width: 620px) { .stage.is-sharing .video-strip { flex-direction: row; } .stage.is-sharing .video-strip > div { width: 110px; } }
