/* GE Vernova design tokens, taken from gevernova.com and Brand Central (Color + Typography guidelines). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sons Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/SonsCondensed-Semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Sons Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/SonsCondensed-Extrabold.ttf") format("truetype");
}

:root {
  --evergreen: #005e60;
  --evergreen-900: #004746;
  --evergreen-700: #2c6c6d;
  --evergreen-600: #519595;
  --evergreen-400: #acd2d2;
  --evergreen-300: #cde4e4;
  --evergreen-200: #e4f1f1;
  --evergreen-100: #f5fbfb;
  --urgency: #c8ff08;
  --urgency-200: #f4ffcc;
  --night: #212121;
  --day: #ffffff;
  --dark-sky: #439297;
  --dark-earth: #8f7d62;
  --alert: #c4262e;
  --alert-bg: #fdecec;

  --bg: var(--evergreen-100);
  --surface: var(--day);
  --text: var(--night);
  --muted: #595959;
  --line: #d7dbdb;
  --chip: var(--evergreen-200);
  --heading: var(--evergreen);
  --link: var(--evergreen);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sons Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --radius: 8px;
  font-family: var(--font-body);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #171717; --surface: #212121; --text: #ffffff; --muted: #c5c9c9; --line: #333333;
    --chip: #1f3a3b; --heading: var(--evergreen-400); --link: var(--evergreen-400); --alert-bg: #3a1c1e; color-scheme: dark;
  }
}
[data-theme="dark"], [data-theme="contrast"] {
  --bg: #171717; --surface: #212121; --text: #ffffff; --muted: #c5c9c9; --line: #333333;
  --chip: #1f3a3b; --heading: var(--evergreen-400); --link: var(--evergreen-400); --alert-bg: #3a1c1e; color-scheme: dark;
}
[data-theme="contrast"] { --bg: #000; --surface: #000; --muted: #fff; --line: #fff; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { -webkit-text-size-adjust: 100%; font-size: 13px; line-height: 1.35; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--urgency); outline-offset: 2px; }

.loading { padding: 40px 20px; text-align: center; color: var(--muted); }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--evergreen); color: var(--day);
  padding-top: env(safe-area-inset-top);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 9px 12px 5px; }
.brand img { height: 17px; width: auto; display: block; }
.brand .divider { width: 1px; height: 18px; background: rgba(255, 255, 255, .4); }
.brand strong { font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); }
.tab {
  position: relative; background: none; border: 0; color: rgba(255, 255, 255, .78);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0 6px; font-size: 10px; font-weight: 500; border-bottom: 3px solid transparent;
}
.tab.on { color: var(--day); border-bottom-color: var(--urgency); font-weight: 700; }
.tab .dot { position: absolute; top: 5px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--urgency); box-shadow: 0 0 0 2px var(--evergreen); }

main { max-width: 720px; margin: 0 auto; padding: 10px 12px 20px; }
footer { text-align: center; font-size: 11px; color: var(--muted); padding: 8px 0 calc(16px + env(safe-area-inset-bottom)); }

/* Typography */
h1, h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
h1 { margin: 0 0 4px; font-size: 24px; line-height: .95; }
h2 { font-size: 17px; line-height: 1; margin: 16px 0 7px; color: var(--heading); display: flex; align-items: center; gap: 6px; }
.soft { color: var(--muted); margin: 2px 0; font-size: 12px; }
.empty { color: var(--muted); font-size: 13px; margin: 4px 0; }

/* Hero */
.hero {
  background: var(--evergreen); color: var(--day);
  border-radius: var(--radius); padding: 12px 14px; margin-top: 2px;
  border-left: 6px solid var(--urgency);
}
.hero .kicker { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--urgency); margin: 0 0 5px; }
.hero h1 { font-size: 27px; }
.hero p { margin: 1px 0; font-size: 12px; }
.hero .tagline { font-weight: 600; font-style: italic; margin-bottom: 4px; }
.pill {
  margin-top: 8px; border: 0; border-radius: 99px; padding: 4px 11px;
  background: var(--urgency); color: var(--night); font-size: 12px; font-weight: 700;
}

/* Cards and badges */
.card {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 11px; margin: 7px 0 0; font-size: 13px;
}
.card small { color: var(--muted); font-size: 11px; }
.card.urgent { background: var(--alert-bg); border-color: var(--alert); border-left-width: 5px; }
.badge { align-self: flex-start; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; }
.badge.urgent { background: var(--alert); color: #fff; }
.count { display: inline-block; min-width: 20px; padding: 2px 8px; border-radius: 99px; background: var(--urgency); color: var(--night); font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.tag { align-self: flex-start; font-size: 10px; font-weight: 600; background: var(--chip); padding: 1px 7px; border-radius: 4px; color: var(--evergreen-900); }
.tag.breakout { background: #dff1f2; color: #1f5d61; }
[data-theme="dark"] .tag, [data-theme="contrast"] .tag { color: var(--evergreen-300); }
[data-theme="dark"] .tag.breakout { background: #1b3f42; color: #bfe6e8; }

/* Sessions */
.session {
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--evergreen);
  border-radius: var(--radius); margin-bottom: 6px;
}
.session-main {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start;
  background: none; border: 0; padding: 7px 0 7px 10px; text-align: left; min-width: 0;
}
.session.type-breakout { border-left-color: var(--dark-sky); }
.session.type-break, .session.type-social { border-left-color: var(--dark-earth); }
.time { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1; }
.time small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; }
.time .day { font-family: var(--font-body); font-weight: 700; color: var(--link); font-size: 10px; margin: 0 0 2px; }
.body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.body strong { font-size: 13px; line-height: 1.25; }
.meta { display: flex; align-items: flex-start; gap: 4px; color: var(--muted); font-size: 12px; }
.meta svg { flex-shrink: 0; margin-top: 1px; width: 12px; height: 12px; }
.star { background: none; border: 0; color: var(--muted); padding: 8px; }
.star svg { width: 18px; height: 18px; }
.star.on { color: var(--night); }
.star.on svg { fill: var(--urgency); }
[data-theme="dark"] .star.on { color: var(--urgency); }

/* Home actions */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: left; color: var(--text);
}
.action svg { width: 20px; height: 20px; }
.action svg { color: var(--link); }
.action.alert { background: var(--alert-bg); border-color: var(--alert); color: var(--alert); }
.action.alert svg { color: var(--alert); }

/* Agenda controls */
.group-picker { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--urgency); border-radius: var(--radius); padding: 8px 10px; margin: 8px 0 4px; }
.group-picker label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
.group-picker small { display: block; margin-top: 4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.chip {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px;
}
.chip strong { font-family: var(--font-head); font-weight: 800; font-size: 15px; text-transform: uppercase; line-height: 1; }
.chip small { color: var(--muted); font-size: 11px; }
.chip.on { background: var(--evergreen); border-color: var(--evergreen); color: var(--day); }
.chip.on small { color: rgba(255, 255, 255, .85); }
.toolbar { display: flex; gap: 6px; margin: 8px 0; }
.toolbar input { flex: 1; min-width: 0; }
.segmented { display: inline-flex; background: var(--chip); border-radius: var(--radius); padding: 3px; }
.segmented button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.segmented button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented button.on.danger { background: var(--alert); color: #fff; }
.segmented.wide { display: flex; margin-bottom: 8px; }
.segmented.wide button { flex: 1; padding: 5px 4px; }

input[type="search"], input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 10px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--evergreen); outline: 2px solid var(--evergreen-400); outline-offset: 0; }
textarea { resize: vertical; }

/* Forms and buttons */
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; margin-top: 10px; }
.form fieldset { border: 0; padding: 0; margin: 10px 0 0; }
.form legend { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.primary {
  width: 100%; margin-top: 14px; padding: 10px; border: 0; border-radius: var(--radius);
  background: var(--evergreen); color: var(--day); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.primary:disabled { opacity: .6; }
.secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  background: var(--surface); color: var(--link); border: 2px solid var(--evergreen); border-radius: var(--radius);
  padding: 6px 11px; font-weight: 700; font-size: 12px;
}
[data-theme="dark"] .secondary { border-color: var(--evergreen-400); }
.button-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.stack .primary { margin-top: 0; }
.back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 2px 0; color: var(--link); font-weight: 700; font-size: 13px; }
.link { background: none; border: 0; padding: 6px 0; color: var(--link); font-weight: 700; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.link.inline { padding: 0; font-size: inherit; }
.error { color: var(--alert); font-weight: 700; }

.banner { padding: 7px 12px; font-size: 12px; }
.banner.offline { background: var(--urgency-200); color: var(--night); text-align: center; font-weight: 600; }
.banner.danger {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px; border-radius: var(--radius);
  background: var(--alert-bg); border: 1px solid var(--alert); color: var(--text); font-size: 13px;
}
.done { text-align: center; padding: 20px 10px; }
.done h2 { justify-content: center; }
.tick { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--urgency); color: var(--night); font-size: 26px; font-weight: 800; display: grid; place-items: center; }

/* Lists */
.list { display: flex; flex-direction: column; gap: 6px; }
.row, .booth {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; color: var(--muted);
}
.row-icon { width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center; background: var(--chip); color: var(--link); flex-shrink: 0; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-text strong { color: var(--text); font-size: 13px; }
.row-text small { color: var(--muted); font-size: 12px; }
.row-icon svg { width: 17px; height: 17px; }
.avatar { border-radius: 50%; flex-shrink: 0; display: inline-grid; place-items: center; color: #fff; font-weight: 700; object-fit: cover; }
.contact {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 11px;
}
.contact strong { display: block; font-size: 13px; }
.contact small { color: var(--muted); font-size: 12px; }
.call {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--evergreen); color: var(--day); text-decoration: none; font-weight: 700;
  padding: 5px 10px; border-radius: 99px; font-size: 12px;
}
.call.big { align-self: flex-start; background: var(--alert); font-size: 14px; padding: 8px 14px; }
.tbc { color: var(--muted); font-size: 12px; font-style: italic; white-space: nowrap; }

/* Details */
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.detail h1 { font-size: 21px; margin: 4px 0 2px; }
.detail p { margin: 1px 0; font-size: 13px; line-height: 1.4; }
.detail.person { align-items: center; text-align: center; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; }

/* Booths */
.booth.health { border-color: var(--alert); }
.stand { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; background: var(--evergreen); color: var(--day); font-family: var(--font-head); font-weight: 800; font-size: 15px; flex-shrink: 0; }
.booth.health .stand { background: var(--alert); }
.status { color: var(--muted); font-weight: 700; }
.status.open { color: var(--link); }
.status.open::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--urgency); box-shadow: 0 0 0 1px var(--evergreen); margin-right: 6px; vertical-align: 1px; }
.card.health { border-color: var(--alert); border-left-width: 5px; }
.card.health strong { display: inline-flex; align-items: center; gap: 6px; color: var(--alert); }

/* Safety */
.map { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.map .building { fill: none; stroke: var(--muted); stroke-width: .6; stroke-dasharray: 2 1; }
.map .room { fill: var(--evergreen-200); stroke: var(--evergreen-600); stroke-width: .4; }
.map text { font-family: var(--font-body); font-size: 2.8px; fill: var(--night); font-weight: 600; }
.map .aid rect { fill: #fff; stroke: var(--alert); stroke-width: .5; }
.map .aid path { stroke: var(--alert); stroke-width: 1.2; }
.map .muster circle { fill: var(--evergreen); stroke: var(--urgency); stroke-width: .8; }
.map .muster text { fill: #fff; font-size: 3px; font-weight: 800; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.key { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.key.muster { background: var(--evergreen); box-shadow: 0 0 0 2px var(--urgency); }
.key.aid { border-radius: 2px; border: 2px solid var(--alert); }
.reminders { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.rules { padding-left: 20px; margin: 6px 0; }
.rules li { margin-bottom: 7px; font-size: 13px; }
.rules li::marker { color: var(--link); font-weight: 800; }
.rules li strong { display: block; }
.rules li span { color: var(--muted); }

/* Privacy page */
.page { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.page img { height: 24px; margin-bottom: 16px; }

/* Live features */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.slot {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 13px; color: var(--text);
}
.slot small { font-weight: 500; font-size: 10px; color: var(--muted); }
.slot.on { background: var(--evergreen); border-color: var(--evergreen); color: var(--day); }
.slot.on small { color: rgba(255, 255, 255, .85); }
.slot.taken { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.card.booked { border-color: var(--evergreen); border-left: 5px solid var(--urgency); }
.card.booked strong { display: inline-flex; align-items: center; gap: 6px; }
.card.setup { border-left: 5px solid var(--urgency); }
.card.setup strong { display: inline-flex; align-items: center; gap: 6px; }
.card.setup .primary, .card.setup .secondary { margin-top: 6px; }
.card.setup .link { align-self: flex-start; padding: 2px 0; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; margin: 8px 0; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--evergreen); }
.success { color: var(--link); font-weight: 700; }
.card.done-item { opacity: .6; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-head .link { font-size: 11px; }
