@import url("https://fonts.googleapis.com/css2?family=Gantari:wght@400;500;600;700;800&display=swap");
:root {
  font-family: Gantari, system-ui, sans-serif;
  color-scheme: light;
  color: #17212b;
  background: linear-gradient(180deg, #fff 0%, #f4f8fb 44%, #fff 100%);
  --blue: #003366;
  --gold: #f4bb33;
  --line: #d9e3ea;
  --shadow-soft: 0 8px 20px rgba(0, 35, 70, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.secondary {
  background: #fff;
  color: var(--blue);
  border-color: #9eafbd;
}
a {
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid #9a5b00;
  outline-offset: 3px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #8a9daf;
  border-radius: 6px;
  background: #fff;
  color: #18334a;
  padding: 10px;
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.35rem, 4.05vw, 4.05rem);
  line-height: 1;
  margin-bottom: 14px;
}
h1,
h2,
h3 {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0;
}
.events-hero h1 {
  color: white;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.15rem;
}
p {
  line-height: 1.6;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(0.93);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 9999;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
#eventsMain {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 56px;
}
.events-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.events-nav a {
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(234, 243, 250, 0.72);
  box-shadow: inset 0 0 0 1px rgba(21, 120, 193, 0.08);
}
.events-nav a[aria-current] {
  background: #dbeaf8;
  box-shadow: inset 0 0 0 1px rgba(21, 120, 193, 0.16);
}
.events-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: center;
  padding: 28px 42px;
  background: linear-gradient(
    135deg,
    rgba(0, 51, 102, 0.98),
    rgba(21, 120, 193, 0.9)
  );
  color: white;
  border-bottom: 6px solid var(--gold);
  box-shadow: 0 16px 38px rgba(0, 35, 70, 0.1);
}
.events-hero > div > p:last-child {
  max-width: 650px;
  color: #e0ecf4;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.events-hero .eyebrow {
  color: #ffe2a0;
}
.hero-panel {
  background: white;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.hero-panel strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.hero-panel p {
  color: #395569;
}
.events-content {
  padding: 24px 0 0;
}
#feedback {
  min-height: 1.6em;
  color: #264c69;
  font-weight: 600;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.filters {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.filters label {
  flex: 1;
  min-width: 140px;
}
.filters label:first-child {
  flex: 1.5;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.event-card {
  margin: 0;
}
.event-card .eyebrow {
  color: #486177;
}
.event-card h3 {
  font-size: 1.35rem;
}
.event-card p {
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e8f2fa;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
}
.event-description {
  white-space: pre-wrap;
}
.notice {
  border-left: 4px solid var(--gold);
  padding: 12px;
  background: #fff8e8;
}
.hint {
  font-size: 0.875rem;
  color: #4a6173;
  line-height: 1.5;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar h2 {
  margin: 0 auto 0 0;
}
.staff-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 2fr);
  gap: 18px;
}
.staff-layout > aside {
  align-self: start;
  padding: 16px;
}
.staff-layout > *,
.form-grid > *,
.event-choice {
  min-width: 0;
}
.event-rail {
  display: grid;
  gap: 10px;
}
.event-choice {
  display: grid;
  gap: 6px;
  text-align: left;
  justify-content: stretch;
  padding: 14px 16px;
  border-color: var(--line);
  overflow-wrap: anywhere;
}
.event-choice[aria-pressed="true"] {
  background: #eaf3fa;
  border-color: #1578c1;
  box-shadow: inset 3px 0 var(--blue);
}
.event-choice span {
  font-size: 0.85rem;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.event-choice-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}
.event-choice-field .hint {
  margin: 2px 0 0;
}
.code-settings {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}
.code-actions {
  margin-top: 16px;
}
.code-settings #generatedCode:empty {
  display: none;
}
/* Public discovery and event pages: editorial type, clear dates, one next action. */
body[data-events-view="public"] .events-nav {
  align-items: center;
  margin-bottom: 24px;
}
.public-my-events {
  margin-left: auto;
}
.public-intro {
  padding: 32px 40px;
  gap: 56px;
  background:
    radial-gradient(ellipse at 10% 0%, #174f7d, transparent 65%),
    linear-gradient(120deg, #003366, #07588d);
}
.public-intro h1 {
  max-width: 630px;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 20px 0;
}
.public-intro > div > p:not(.eyebrow) {
  max-width: 470px;
  font-size: 1.18rem;
  color: #e3edf5;
}
body[data-events-view="public"] .portal-chrome__footer {
  position: static;
}
.public-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  margin-top: 14px;
  min-height: 44px;
  color: white;
  font-weight: 600;
  text-underline-offset: 6px;
}
.public-browse-link span {
  color: var(--gold);
  font-size: 1.6rem;
}
#publicFeatured {
  padding: 26px;
}
#publicFeatured .eyebrow {
  color: #52606b;
  margin-bottom: 20px;
}
.featured-heading {
  display: flex;
  gap: 18px;
  align-items: center;
}
.featured-heading > div:last-child {
  min-width: 0;
}
.featured-heading h2 {
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 4px 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#publicFeatured .featured-category {
  font-size: 0.85rem;
  margin: 0;
  color: #52606b;
}
#publicFeatured .featured-time {
  margin: 20px 0 6px;
  line-height: 1.5;
  font-weight: 500;
}
#publicFeatured .featured-place {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
#publicFeatured .button {
  width: 100%;
  justify-content: space-between;
}
.event-date-stamp {
  flex: 0 0 72px;
  width: 72px;
  display: grid;
  justify-items: center;
  padding: 10px 8px;
  border: 1px solid #c9deed;
  border-radius: 8px;
  background: #f0f6fa;
  color: var(--blue);
  line-height: 1;
}
.event-date-stamp span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event-date-stamp b {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 5px 0;
}
.discovery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.discovery-heading h2 {
  font-size: 2.2rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
.discovery-heading .eyebrow {
  color: #42657e;
  margin-bottom: 8px;
}
.discovery-heading > p {
  margin: 0 0 3px;
  color: #52606b;
}
.public-discovery {
  padding: 14px 0 26px;
  scroll-margin-top: 180px;
}
.public-discovery .filters {
  padding: 20px;
  background: #eaf2f8;
  border: 1px solid #d9e3ea;
  border-radius: 10px;
}
body[data-events-view="public"] #feedback:empty {
  min-height: 0;
  margin: 0;
}
.public-event-grid {
  gap: 24px;
}
.public-event-grid .event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d5e1ea;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 18px #00336608;
  transition:
    box-shadow 150ms,
    border-color 150ms;
}
.public-event-grid .event-card:hover {
  box-shadow: 0 12px 30px #00336618;
  border-color: #1578c1;
}
.event-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 20px;
  border-top: 4px solid #1578c1;
  background: linear-gradient(130deg, #edf5fb, #fff);
}
.event-card-top .eyebrow {
  text-align: right;
  max-width: 65%;
  padding-top: 8px;
}
.event-card-copy {
  padding: 0 24px 22px;
  flex: 1;
}
.event-card-copy h3 {
  margin-bottom: 16px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.event-card-copy h3 a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.event-card-copy h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.event-card-copy h3 a:focus-visible::after {
  outline: 3px solid #9a5b00;
  outline-offset: -4px;
  border-radius: 12px;
}
.event-card-schedule {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
}
.event-card-schedule span {
  font-weight: 400;
  color: #52606b;
}
.event-card-location {
  font-size: 0.94rem;
  color: #315571;
}
.event-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  color: #52606b;
  line-height: 1.55;
}
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e2eaf0;
  margin: 0 24px;
  padding: 16px 0;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
}
.event-card-arrow {
  font-size: 1.5rem;
  font-weight: 400;
}
.events-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background: white;
  border: 1px dashed #9eafbd;
  border-radius: 12px;
}
.public-detail-mode .events-content {
  padding-top: 0;
}
.back-to-events {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 16px;
  text-decoration: none;
  font-weight: 600;
}
.back-to-events:hover {
  text-decoration: underline;
}
.event-detail-hero {
  padding: 40px 44px;
  gap: 48px;
  align-items: center;
}
.event-detail-hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  margin: 18px 0;
}
.event-detail-hero .detail-host {
  font-size: 1.1rem;
  color: #e2edf6;
}
.detail-hero-date {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
}
.detail-hero-date .event-date-stamp {
  background: #ffffff;
  border-color: white;
}
.detail-hero-date > p {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.5;
}
.detail-hero-date > p span {
  display: block;
  font-weight: 400;
  color: #e2edf6;
  margin-top: 4px;
}
.event-attend {
  padding: 28px;
}
.event-attend .eyebrow {
  color: #52606b;
}
.event-attend h2 {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.event-attend > button {
  width: 100%;
}
.event-attend .hint {
  margin: 12px 0 0;
  font-size: 0.83rem;
}
.spots-available {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.spots-available b {
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue);
}
.event-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 70px;
  padding: 44px;
}
.event-detail-body h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.event-detail-body .eyebrow {
  color: #52606b;
  margin-bottom: 12px;
}
.event-description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #344e60;
  overflow-wrap: anywhere;
}
.event-accessibility,
.event-contact {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  overflow-wrap: anywhere;
}
.event-accessibility p,
.event-contact p {
  white-space: pre-wrap;
}
.event-visit {
  padding: 26px 28px;
  background: #eaf2f8;
  border: 1px solid #d4e2ed;
  border-radius: 10px;
  align-self: start;
}
.event-visit h2 {
  font-size: 1.5rem;
}
.event-visit dl {
  margin-bottom: 0;
}
.event-visit dl > div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #c9dbe8;
}
.event-visit dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #486177;
  margin-bottom: 6px;
}
.event-visit dd {
  margin: 0;
  line-height: 1.55;
  color: var(--blue);
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .public-intro,
  .event-detail-hero {
    padding: 32px;
    gap: 28px;
  }
  .event-detail-body {
    padding: 32px 0;
    gap: 32px;
  }
}
@media (max-width: 800px) {
  .public-intro,
  .event-detail-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 28px;
  }
  .public-intro h1 {
    font-size: 2.9rem;
  }
  .public-my-events {
    margin-left: 0;
  }
  .event-detail-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .discovery-heading {
    display: block;
  }
  .discovery-heading > p {
    margin-top: 10px;
  }
  .event-detail-hero h1 {
    font-size: 2.6rem;
  }
  .event-attend,
  #publicFeatured {
    padding: 22px;
  }
  .detail-hero-date {
    align-items: start;
  }
  .public-discovery .filters {
    padding: 16px;
  }
}
.wide {
  grid-column: 1/-1;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
}
.metrics {
  display: flex;
  gap: 24px;
  padding: 12px 0 24px;
  flex-wrap: wrap;
}
.metrics div {
  display: grid;
  gap: 4px;
}
.metrics strong {
  font-size: 2rem;
  color: var(--blue);
}
.metrics span {
  color: #486177;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
caption {
  text-align: left;
  font-weight: 700;
  padding: 8px 0;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
th {
  background: #eef3f7;
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 0;
}
details p {
  margin-top: 12px;
}
#generatedCode {
  display: block;
  font-size: 2.5rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-weight: 800;
  min-height: 1.4em;
}
.station-access {
  max-width: 560px;
  margin: 0 auto;
}
.station-access label {
  margin-bottom: 14px;
}
.station-access hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.station-access input {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}
.station-panel {
  max-width: 800px;
  margin: auto;
}
.station-panel #checkinForm {
  display: grid;
  gap: 16px;
}
.station-panel #sfid {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.1em;
}
.station-panel #checkinForm button {
  font-size: 1.25rem;
}
#checkinResult {
  min-height: 220px;
  text-align: center;
  margin: 20px 0;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.35rem;
  font-weight: 700;
}
#checkinResult p {
  margin-bottom: 6px;
}
.result-mark {
  font-size: 5rem;
  line-height: 1.1;
}
.confirmed {
  color: #14532d;
  background: #e8f7ed;
}
.duplicate {
  color: #003366;
  background: #e8f2fa;
}
.assistance {
  color: #713a08;
  background: #fff4dc;
}
#checkinResult img {
  display: block;
  max-width: 160px;
  max-height: 180px;
  object-fit: contain;
  margin: 12px auto;
  border-radius: 8px;
}
.station-panel > .hint {
  text-align: center;
}
.date-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.filters .date-field {
  flex: 1;
  min-width: 180px;
}
.date-control {
  display: flex;
  gap: 6px;
}
.date-control input {
  min-width: 0;
}
.calendar-trigger {
  flex: 0 0 44px;
  padding: 8px;
}
.date-control input::-webkit-calendar-picker-indicator,
.calendar-time input::-webkit-calendar-picker-indicator {
  display: none;
}
.date-picker {
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 22px;
  color: #17212b;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 35, 70, 0.3);
}
.date-picker::backdrop {
  background: rgba(0, 25, 51, 0.42);
}
.date-picker h2 {
  margin-bottom: 8px;
}
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--blue);
}
.calendar-heading button {
  font-size: 1.5rem;
  padding: 4px 12px;
}
.calendar-grid {
  table-layout: fixed;
  margin: 12px 0 18px;
}
.calendar-grid th,
.calendar-grid td {
  border: 0;
  padding: 2px 0;
  text-align: center;
}
.calendar-grid th {
  background: white;
  color: #52606b;
  font-size: 0.8rem;
}
.calendar-day {
  width: 100%;
  min-height: 44px;
  padding: 6px 0;
  background: white;
  border-color: transparent;
  color: var(--blue);
}
.calendar-day[aria-current="date"] {
  border-color: #1578c1;
}
[aria-selected="true"] > .calendar-day {
  background: var(--blue);
  color: white;
}
.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.calendar-actions button {
  flex: 1;
  padding: 10px 12px;
}
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .staff-layout .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .events-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 6%;
  }
  .staff-layout {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .events-content {
    padding: 18px 0;
  }
  .panel {
    padding: 18px;
  }
  .events-nav {
    gap: 8px;
  }
  .events-nav a {
    padding: 10px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-panel {
    padding: 20px;
  }
  .toolbar > * {
    max-width: 100%;
  }
  #checkinResult {
    min-height: 200px;
  }
  .event-rail {
    max-height: 260px;
    overflow: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.inline-feedback:empty { display: none; }
.inline-feedback { padding: 12px 16px; border-left: 4px solid #1578c1; border-radius: 6px; background: #edf5fc; color: #003366; font-weight: 650; }
.code-display, .code-entry { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code-entry input { flex: 1; min-width: 140px; }
.code-entry button { font-size: .9rem; }
.code-display #generatedCode { margin: 0; }
.code-display { margin: 16px 0; }
.code-settings .button { display: inline-flex; gap: 20px; align-items: center; }
body[data-events-view="station"] .portal-chrome__header,
body[data-events-view="station"] .portal-chrome__footer { position: static; }
body[data-events-view="station"].station-is-open .events-hero { grid-template-columns: 1fr; padding: 16px 24px; }
body.station-is-open .events-hero > div { display: none; }
body.station-is-open #stationEventSummary { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4px 24px; padding: 16px 20px; }
body.station-is-open #stationEventSummary > .eyebrow,
body.station-is-open #stationEventSummary .event-date-stamp,
body.station-is-open #stationEventSummary .featured-category,
body.station-is-open #stationEventSummary .station-host { display: none; }
body.station-is-open #stationEventSummary .featured-heading { grid-row: 1 / 3; align-self: center; }
body.station-is-open #stationEventSummary .station-badge { display: none; }
body.station-is-open #stationEventSummary .featured-time,
body.station-is-open #stationEventSummary .featured-place { font-size: .9rem; }
body.station-is-open #stationEventSummary p { margin: 0; }
body[data-events-view="station"] .events-hero { padding: 38px 4%; background: radial-gradient(ellipse at 8% 0%, #185d94 0, transparent 58%), linear-gradient(120deg, #003366, #00274f); }
body[data-events-view="station"] .events-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); max-width: 11ch; line-height: 1.04; letter-spacing: -.035em; }
body[data-events-view="station"] .events-hero > div > p:last-child { max-width: 38ch; }
#stationEventSummary { border-top: 4px solid #f4bb33; }
#stationEventSummary > .eyebrow { color: #526576; }
.code-input-field { flex: 1; min-width: 0; }
#stationEventSummary h1, #stationEventSummary h2 { color: #003366; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.15; overflow-wrap: anywhere; max-width: none; letter-spacing: -.015em; }
.station-host { color: #526576; font-size: .95rem; }
.station-badge { display: inline-block; border-radius: 30px; padding: 6px 12px; color: #003366; background: #edf5fc; font-size: .85rem; font-weight: 700; }
.station-access { max-width: 760px; border-top: 4px solid #1578c1; padding: 32px; }
.station-access h2 { color: #003366; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.station-access #codeForm { display: grid; gap: 12px; }
.station-access #codeForm input { width: 100%; max-width: none; text-align: left; }
.station-access #codeForm button, .station-panel #checkinForm button { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.station-panel { max-width: none; border: 1px solid #c6d8e8; border-top: 4px solid #1578c1; padding: 32px; }
.station-panel .toolbar { justify-content: space-between; border-bottom: 1px solid #dce6ee; padding-bottom: 16px; }
.station-live { display: flex; align-items: center; gap: 8px; color: #245139; font-size: .9rem; font-weight: 700; margin: 0; }
.station-live span { color: #25844a; }
.station-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; padding-top: 12px; align-items: start; }
.station-primary { min-width: 0; }
.station-form-copy h2 { color: #003366; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 10px; }
.station-form-copy > p:not(.eyebrow) { color: #526576; }
.station-panel #checkinForm { max-width: none; margin: 24px 0 0; text-align: left; gap: 10px; }
.sfid-mask { position: relative; border-radius: 14px; padding: 8px; background: #eef5fb; border: 2px solid #b8cfe2; }
.sfid-mask:focus-within { border-color: #003366; box-shadow: 0 0 0 3px #f4bb33; }
.sfid-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) clamp(6px, 1.2vw, 20px) repeat(4, minmax(0, 1fr)); gap: clamp(3px, .7vw, 8px); pointer-events: none; }
.sfid-slots::after { content: "–"; grid-column: 5; grid-row: 1; align-self: center; text-align: center; color: #526576; }
.sfid-slots span:nth-child(5) { grid-column: 6; }
.sfid-slots span:nth-child(6) { grid-column: 7; }
.sfid-slots span:nth-child(7) { grid-column: 8; }
.sfid-slots span:nth-child(8) { grid-column: 9; }
.sfid-slots span { display: grid; place-items: center; height: clamp(58px, 7vw, 86px); border: 1px solid #b8cfe2; border-radius: 7px; background: white; color: #003366; font: 700 clamp(1.6rem, 3.5vw, 2.8rem)/1 ui-monospace, monospace; }
.sfid-slots span:empty::after { content: "0"; color: #7892a7; }
.sfid-slots .is-current { border-bottom: 4px solid #1578c1; background: #f7fbff; }
.sfid-slots .is-selected { background: #d0e6f8; }
.sfid-mask.has-invalid-format { border-color: #a74916; }
@media (forced-colors: active) {
  .sfid-slots { visibility: hidden; }
  .station-panel #sfid { color: CanvasText !important; -webkit-text-fill-color: CanvasText !important; caret-color: CanvasText !important; padding: 12px !important; }
}
.station-panel #sfid { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 1; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; background: transparent; border: 0; box-shadow: none; outline: none; font-size: 24px; letter-spacing: normal; }
.station-panel #sfidHelp { margin: 0; font-size: .85rem; }
.station-panel #checkinForm button { width: 100%; margin-top: 10px; min-height: 56px; }
.station-confirmation { text-align: center; border: 1px solid #d5e3ed; border-radius: 12px; background: #f7fafc; padding: 16px; margin-top: 24px; min-width: 0; }
#stationReady { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; min-height: 62px; }
#stationReady h3 { color: #003366; font-size: 1rem; margin: 0 0 4px; }
#stationReady p { color: #526576; font-size: .9rem; margin: 0; }
.station-ready-icon { color: #1578c1; font-size: 2rem; }
#checkinResult:empty { display: none; }
.station-confirmation #checkinResult { padding: 14px; border-radius: 8px; min-height: 100px; margin: 0; }
.station-confirmation .result-mark { font-size: 3rem; }
.station-privacy { margin: 22px 0 0; font-size: .85rem; }
.station-stats { padding: 0 0 0 24px; border-left: 1px solid #dce6ee; }
.station-stats-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.station-stats-heading h2 { font-size: 1rem; color: #003366; margin: 0; }
.station-stats-heading button { font-size: .85rem; min-height: 44px; }
.station-stats-grid { display: grid; gap: 0; margin: 0; }
.station-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e3ebf2; color: #003366; }
.station-stat dt { font-size: .85rem; }
.station-stat dd { margin: 0; font-size: 1rem; line-height: 1.15; font-weight: 750; }
.station-stat.total { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 3px; border: 0; border-top: 3px solid #f4bb33; border-radius: 10px; background: #003366; color: white; padding: 12px 16px; margin-bottom: 8px; }
.station-stat.total dd { font-size: 3rem; }
.station-stat.remaining { font-weight: 750; }
.station-icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.station-counts-help summary { font-size: .8rem; font-weight: 500; }
.station-stats .hint { font-size: .8rem; margin: 10px 0 0; }
.station-stats .hint:empty { display: none; }
@media (max-width: 800px) {
  body.station-is-open #stationEventSummary { display: block; padding: 12px 16px; }
  body.station-is-open #stationEventSummary .featured-heading { margin: 0 0 8px; }
  body.station-is-open #stationEventSummary .station-badge { margin-top: 10px; }
  body[data-events-view="station"] .events-hero { padding: 28px 22px; }
  body[data-events-view="station"] .events-hero h1 { max-width: 16ch; }
  .station-panel, .station-access { padding: 20px; }
  .station-workspace { grid-template-columns: 1fr; gap: 24px; }
  .station-form-copy h2 { max-width: none; }
  .station-confirmation { padding: 18px; }
  .station-stats { padding: 18px 0 0; border-left: 0; border-top: 1px solid #dce6ee; }
  .station-stats-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .station-stat.total { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .station-stat.total dd { font-size: 2.4rem; }
  .code-entry { align-items: stretch; }
}
