:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f8f4; color: #101611; --green: #0d6539; --muted: #5c695f; --line: #dbe8dc; --surface: #fff; --soft: #f1f6f0; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 2.05rem; line-height: 1.15; }
h2 { font-size: 1.05rem; }
.event-header { min-height: 60px; padding: 12px max(20px, calc((100% - 1260px) / 2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: var(--surface); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green); color: #fff; border-radius: 7px; }
.event-shell { max-width: 1260px; margin: auto; padding: 30px 20px 40px; }
.event-shell.narrow { max-width: 610px; display: grid; gap: 18px; }
.event-shell.narrow > p { line-height: 1.6; }
.loading { max-width: 1220px; margin: 32px auto; padding: 0 20px; color: var(--muted); }
.kicker { font-size: .78rem; font-weight: 750; text-transform: uppercase; color: var(--green); }
.subtext { color: var(--muted); }
.event-time { display: grid; gap: 6px; border-block: 1px solid var(--line); padding: 15px 0; }
.event-time span:last-child { font-size: .85rem; color: var(--muted); }
.event-form { display: grid; gap: 14px; }
.event-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.event-form .event-consent label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; line-height: 1.5; }
.event-consent input[type="checkbox"] { width: 16px; min-height: 16px; padding: 0; accent-color: var(--green); }
.event-consent p { margin: 5px 0 0 26px; color: var(--muted); font-size: .82rem; }
.event-consent a { color: var(--green); }
input, select, button, .event-button { font: inherit; }
input, select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #b4c5b7; border-radius: 6px; background: var(--surface); color: inherit; padding: 8px 12px; }
button, .event-button { cursor: pointer; }
button, .event-button { touch-action: manipulation; }
.event-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; width: fit-content; border: 1px solid transparent; border-radius: 6px; padding: 9px 18px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; text-align: center; overflow-wrap: anywhere; }
.event-button.secondary { background: var(--surface); border-color: #b4c5b7; color: #274733; }
.event-form .event-button { width: 100%; }
.event-button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.event-error { color: #9b3526; }
.waiting { text-align: center; justify-items: center; padding-top: 46px; }
.waiting img { max-width: 100%; max-height: 250px; object-fit: contain; }
.waiting iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; }
.waiting .event-time { width: 100%; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 2.25rem; color: var(--green); }
.room-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 16px; margin-bottom: 17px; }
.room-title h1 { font-size: 1.6rem; }
.room-count-badge { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .75rem; }
@media (hover: hover) {
  .room-hover-badge { visibility: hidden; }
  .event-shell:hover .room-hover-badge, .event-shell:focus-within .room-hover-badge { visibility: visible; }
}
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: 16px; align-items: start; }
.room-layout.solo { grid-template-columns: minmax(0, 1fr); }
.room-main { min-width: 0; }
.room-stage { --stage-ratio: 1.77778; background: #020403; border: 1px solid var(--line); border-radius: 8px 8px 0 0; display: grid; place-items: center; overflow: hidden; aspect-ratio: var(--stage-ratio); width: min(100%, calc(70vh * var(--stage-ratio)), calc(650px * var(--stage-ratio))); margin-inline: auto; position: relative; }
.room-stage video { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; }
.room-stage [data-stage-status] { z-index: 1; padding: 8px 12px; max-width: 75%; border-radius: 6px; background: #090c0b; color: #eff7f2; text-align: center; }
.room-controls { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; padding: 8px 12px; background: var(--surface); }
.room-controls .clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.room-side { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.room-side nav { display: flex; padding-inline: 10px; border-bottom: 1px solid var(--line); }
.room-side nav button { flex: 1; min-height: 44px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 8px; font-weight: 700; }
.room-side nav button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); }
.room-messages { padding: 11px; max-height: 56vh; height: 310px; overflow: auto; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.room-message { display: grid; gap: 4px; padding: 7px 8px; border-radius: 6px; background: var(--soft); }
.room-message span, .room-bubble span { color: var(--muted); font-size: .75rem; }
.room-bubbles { position: absolute; inset: auto auto 12px 12px; display: grid; gap: 5px; width: min(76%, 250px); pointer-events: none; }
.room-bubble { display: grid; gap: 3px; padding: 7px 9px; border-radius: 6px; background: rgba(8, 17, 12, .92); color: #f4fbf6; font-size: .79rem; max-height: 78px; overflow: hidden; }
.room-bubble span { color: #d1e0d5; }
.room-offer, .room-interaction { min-width: 0; }
.room-interactions:not(:empty) { display: grid; gap: 8px; padding-top: 10px; }
.room-interaction { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.room-offer { border-inline-start: 3px solid var(--green); }
.registration { max-width: 590px; }
.registration .event-form { padding-top: 14px; border-top: 1px solid var(--line); }
.signup-countdown:not([hidden]) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 9px 12px; border: 1px solid #c8e2cf; background: #e8f7ee; color: var(--green); border-radius: 6px; font-weight: 700; }
.signup-countdown time { font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.signup-success-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.embedded-signup { background: var(--surface); }
.embedded-signup .event-header { display: none; }
.embedded-signup .narrow { padding: 16px; }
.embedded-signup h1 { font-size: 1.5rem; }
.room-interaction p { margin-top: 4px; }
.room-poll fieldset { display: grid; gap: 7px; min-width: 0; padding: 0; border: 0; margin: 0; }
.room-poll legend { font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.room-poll label { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; cursor: pointer; }
.room-poll input { width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; flex: 0 0 16px; accent-color: var(--green); }
.room-poll [role="status"]:empty { display: none; }
.room-composer:not([hidden]) { display: grid; gap: 5px; padding: 10px; border-top: 1px solid var(--line); }
.room-composer label { font-size: .8rem; color: var(--muted); }
.room-composer > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: start; }
.room-composer [role="status"] { font-size: .8rem; min-height: 1lh; }
.room-answer { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.room-answer strong { color: var(--green); }
.room-people { margin: 0; display: grid; gap: 0; }
.room-people > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.room-people dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) {
  .event-shell { padding: 22px 14px 30px; }
  .room-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .room-messages { height: 190px; }
  h1 { font-size: 1.6rem; }
  .room-stage { width: min(100%, calc(62svh * var(--stage-ratio))); }
  .room-bubble:not(:last-child) { display: none; }
  .room-offer > .event-button, .signup-success-actions > .event-button { width: 100%; }
  .event-form :is(input,select), .room-composer input { font-size: 1rem; }
}
