:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #192d36;
  background: #f2f6f5;
  line-height: 1.6;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 880px; margin: 0 auto; padding: 32px 16px 48px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; margin: 8px 0 24px; }
h2 { font-size: 1.125rem; line-height: 1.4; }
p { overflow-wrap: anywhere; }
.eyebrow { color: #32635d; font-weight: 750; letter-spacing: .06em; }
.demo-notice { padding: 16px; border-left: 4px solid #567871; background: #e7efec; border-radius: 8px; margin-bottom: 24px; font-size: .9375rem; }
.demo-notice strong { display: block; margin-bottom: 4px; }
.panel { min-width: 0; padding: 20px; border: 1px solid #cad8d4; border-radius: 12px; background: #fff; margin-bottom: 16px; }
.panel > p { margin-top: 12px; }
.state-panel { border-top: 4px solid #176c60; }
.state-label { font-size: 1.25rem; font-weight: 750; }
.state-notice { color: #344e58; }
.participant-count { font-size: .9375rem; font-weight: 650; color: #32635d; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
button {
  min-width: 44px;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #567079;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  line-height: 1.4;
  color: #192d36;
  background: #fff;
  cursor: pointer;
  overflow-wrap: anywhere;
}
button.primary { background: #176c60; border-color: #176c60; color: #fff; }
button:hover:not(:disabled) { background: #e7efec; }
button.primary:hover:not(:disabled) { background: #12554c; border-color: #12554c; }
button:disabled { background: #edf1f0; border-color: #c6d2ce; color: #5d6b67; cursor: not-allowed; }
button:focus-visible { outline: 3px solid #174eaf; outline-offset: 3px; }
.exit-panels { display: grid; gap: 16px; }
.exit-panels .panel { margin: 0; }
.exit-panels .actions > button { flex: 1; width: auto; }
.safety-panel { border-color: #d9b9b3; background: #fffaf8; }
.safety-panel button:not(:disabled) { color: #922d27; border-color: #922d27; }
.safety-panel button:hover:not(:disabled) { background: #fae9e5; }
@media (max-width: 479px) {
  main { padding-top: 24px; }
  .panel { padding: 16px; }
  .actions > button { width: 100%; }
}
@media (min-width: 640px) {
  .exit-panels { grid-template-columns: 1fr 1fr; }
}
@media (forced-colors: active) {
  button:focus-visible { outline-color: Highlight; }
}
