:root {
  --ink: #102f32;
  --teal-950: #052f34;
  --teal-900: #073e43;
  --teal-700: #087078;
  --teal-500: #00a6a6;
  --aqua: #70e0d2;
  --lime: #c7f27a;
  --paper: #f5f7f1;
  --white: #ffffff;
  --line: rgba(16, 47, 50, .16);
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 78% 8%, rgba(0,166,166,.16), transparent 30%), var(--teal-950); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; color: var(--teal-950); background: var(--white); }
.skip-link:focus { top: 1rem; }

.meeting-header { width: min(1280px, calc(100% - 4rem)); min-height: 94px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.16); color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; font: 700 1.05rem/.82 var(--font-display); letter-spacing: -.04em; }
.brand-frame { width: 2.05rem; height: 2.05rem; flex: 0 0 auto; border: 3px solid var(--aqua); border-radius: .26rem; }
.brand-name { display: block; }
.back-link { color: rgba(255,255,255,.72); font-size: .9rem; text-underline-offset: .3rem; }

.meeting-shell { width: min(1280px, calc(100% - 4rem)); min-height: calc(100vh - 184px); margin: 0 auto; padding: clamp(3.5rem, 7vw, 7rem) 0; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.meeting-intro { color: var(--white); padding-top: 1.2rem; }
.eyebrow, .panel-index { margin: 0 0 1.5rem; color: var(--aqua); font: 600 .74rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .16em; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.055em; }
h1 { max-width: 650px; margin: 0; font-size: clamp(3.5rem, 6.4vw, 6.7rem); line-height: .94; font-weight: 600; }
.intro-copy { max-width: 560px; margin: 2rem 0 0; color: rgba(255,255,255,.67); font-size: 1.08rem; }
.trust-notes { max-width: 560px; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.16); }
.trust-notes p { display: grid; grid-template-columns: 2.2rem 1fr; gap: .4rem; margin: 0; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.72); font-size: .88rem; }
.trust-notes span { color: var(--aqua); font-size: .7rem; }

.meeting-card { min-height: 570px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 1.5rem; background: var(--paper); box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.access-panel { padding: clamp(2rem, 5vw, 4.5rem); }
.panel-index { color: var(--teal-700); }
.access-panel h2 { margin: 0 0 2.5rem; font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1; font-weight: 600; }
.field-group { margin-bottom: 1.35rem; }
.field-group label { display: block; margin-bottom: .55rem; font-weight: 600; }
.field-group input { width: 100%; min-height: 58px; padding: .9rem 1rem; color: var(--ink); border: 1px solid var(--line); border-radius: .72rem; outline: 0; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.field-group input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0,166,166,.12); }
.field-group input[aria-invalid="true"] { border-color: #b4483b; }
.field-group small { display: block; margin-top: .45rem; color: rgba(16,47,50,.58); font-size: .78rem; }
.new-tab-option { display: grid; grid-template-columns: auto 1fr; gap: .78rem; align-items: center; margin: .25rem 0 1.15rem; padding: .85rem .95rem; border: 1px solid var(--line); border-radius: .85rem; background: rgba(255,255,255,.56); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.new-tab-option:hover { border-color: rgba(8,112,120,.4); background: var(--white); }
.new-tab-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.option-control { position: relative; width: 2.5rem; height: 1.45rem; border: 1px solid rgba(16,47,50,.3); border-radius: 999px; background: rgba(16,47,50,.1); transition: border-color .2s ease, background-color .2s ease; }
.option-control::after { content: ""; position: absolute; top: 50%; left: .2rem; width: .92rem; height: .92rem; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(5,47,52,.2); transform: translateY(-50%); transition: transform .2s ease; }
.new-tab-option input:checked + .option-control { border-color: var(--teal-700); background: var(--teal-700); }
.new-tab-option input:checked + .option-control::after { transform: translate(1.02rem, -50%); }
.new-tab-option input:focus-visible + .option-control { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.option-copy { min-width: 0; }
.option-copy strong, .option-copy small { display: block; }
.option-copy strong { color: var(--ink); font-size: .88rem; line-height: 1.3; }
.option-copy small { margin-top: .12rem; color: rgba(16,47,50,.55); font-size: .74rem; line-height: 1.35; }
.form-message { min-height: 1.5rem; margin: 0 0 .7rem; color: #96382e; font-size: .86rem; }
.form-message.success { color: var(--teal-700); }
.join-button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; color: var(--teal-950); border: 0; border-radius: 999px; background: var(--lime); font-weight: 600; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.join-button:hover { transform: translateY(-2px); filter: brightness(.98); }
.join-button:focus-visible, .leave-button:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.privacy-note { margin: 1.5rem 0 0; color: rgba(16,47,50,.55); font-size: .76rem; line-height: 1.5; }

.meeting-stage { min-height: 570px; height: min(720px, calc(100vh - 150px)); display: grid; grid-template-rows: auto 1fr; background: #10191a; }
.stage-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; color: var(--white); background: var(--teal-900); }
.stage-toolbar > div { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 .65rem; }
.stage-toolbar strong { font: 600 .92rem var(--font-display); }
.stage-toolbar small { grid-column: 2; overflow: hidden; color: rgba(255,255,255,.54); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.live-mark { width: .55rem; height: .55rem; grid-row: 1 / 3; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(112,224,210,.12); }
.leave-button { flex: 0 0 auto; padding: .55rem .85rem; color: var(--white); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; cursor: pointer; }
.jitsi-container, .jitsi-container iframe { width: 100%; height: 100%; min-height: 0; border: 0; display: block; }
.meeting-error { align-self: center; margin: 2rem; padding: 1.5rem; color: var(--ink); border-radius: 1rem; background: var(--paper); text-align: center; }
.meeting-error p { margin: .4rem 0 0; }

.meeting-footer { width: min(1280px, calc(100% - 4rem)); min-height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.16); font-size: .8rem; }
.meeting-footer p { margin: 0; }
.meeting-footer a { color: rgba(255,255,255,.78); text-underline-offset: .25rem; }

body.meeting-fullscreen { overflow: hidden; background: #10191a; }
.meeting-fullscreen .meeting-header,
.meeting-fullscreen .meeting-intro,
.meeting-fullscreen .meeting-footer { display: none; }
.meeting-fullscreen .meeting-shell { width: 100%; min-height: 100vh; margin: 0; padding: 0; display: block; }
.meeting-fullscreen .meeting-card { width: 100%; height: 100vh; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.meeting-fullscreen .access-panel,
.meeting-fullscreen .stage-toolbar { display: none; }
.meeting-fullscreen .meeting-stage { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 100vh; grid-template-rows: 1fr; }
.meeting-fullscreen .meeting-error { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(28rem, calc(100% - 3rem)); margin: 0; transform: translate(-50%, -50%); }

@media (max-width: 920px) {
  .meeting-shell { grid-template-columns: 1fr; gap: 3rem; }
  .meeting-intro { padding-top: 0; }
  h1 { max-width: 720px; }
  .trust-notes { display: none; }
}

@media (max-width: 620px) {
  .meeting-header, .meeting-shell, .meeting-footer { width: min(100% - 2rem, 1280px); }
  .meeting-header { min-height: 74px; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 1.2rem; }
  .meeting-shell { min-height: auto; padding: 2.6rem 0 3.5rem; gap: 2.2rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .intro-copy { font-size: 1rem; }
  .meeting-card { min-height: 500px; border-radius: 1.1rem; }
  .access-panel { padding: 1.5rem; }
  .meeting-stage { height: calc(100vh - 100px); min-height: 520px; }
  .meeting-footer { min-height: 110px; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; }
  .meeting-fullscreen .meeting-shell,
  .meeting-fullscreen .meeting-card,
  .meeting-fullscreen .meeting-stage { width: 100%; height: 100vh; height: 100dvh; min-height: 100vh; padding: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
