:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6865;
  --line: #dbe5df;
  --paper: #f7faf7;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #e46d53;
  --gold: #f2bd45;
  --sky: #5a93c8;
  --shadow: 0 12px 28px rgba(24, 42, 38, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), transparent 300px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(420px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 0 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-full {
  width: clamp(160px, 22vw, 280px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(24, 42, 38, 0.12));
}

.park-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.9fr) auto auto;
  gap: 12px;
  align-items: center;
  justify-self: end;
  width: min(680px, 100%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(24, 42, 38, 0.05);
}

.park-picker {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.park-picker select {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.park-context-main,
.park-context-side {
  min-width: 0;
}

.park-context-main strong,
.park-context-main span {
  display: block;
}

.park-context-main strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2.5vw, 1.32rem);
}

.park-context-main span {
  margin-top: 3px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.weather-chip {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-top: 7px;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.weather-chip.warn {
  border-color: rgba(242, 189, 69, 0.45);
  background: #fff8e3;
  color: #76540a;
}

.weather-chip.muted {
  border-color: var(--line);
  background: #edf2ef;
  color: var(--muted);
}

.park-context-side {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.show-preview-button {
  display: grid;
  width: 100%;
  gap: 3px;
  max-width: 190px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  text-align: right;
}

.show-preview-button strong,
.show-preview-button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-preview-button strong {
  font-size: 0.84rem;
}

.show-preview-button span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow,
.metric-label,
.land {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 20, 18, 0.34);
  opacity: 0;
  transition: opacity 160ms ease;
}

.drawer-backdrop.open {
  opacity: 1;
}

.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  align-content: start;
  gap: 14px;
  width: min(420px, calc(100vw - 28px));
  height: 100vh;
  padding: 18px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: -18px 0 42px rgba(24, 42, 38, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.settings-drawer.open {
  transform: translateX(0);
}

.drawer-head,
.drawer-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.drawer-head strong {
  display: block;
  margin-top: 3px;
  font-size: 1.2rem;
}

.drawer-head .icon-button {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.drawer-section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.drawer-section h2 {
  font-size: 0.98rem;
}

.drawer-field,
.settings-drawer .plan-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drawer-field select {
  min-height: 40px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.text-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.text-button.compact {
  min-height: 36px;
  padding: 0 12px;
  box-shadow: none;
}

.status-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-band > div {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
}

.status-band strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.quality-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #e8f4f1;
  color: var(--teal-dark);
  font-weight: 800;
}

.quality-banner.warn {
  border-color: rgba(228, 109, 83, 0.24);
  background: rgba(228, 109, 83, 0.12);
  color: #9b3d28;
}

.now-mode {
  display: grid;
  grid-template-columns: 1.4fr minmax(220px, 0.8fr) repeat(2, minmax(0, 0.7fr));
  gap: 10px;
  margin-top: 12px;
}

.now-card,
.now-next,
.today-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(24, 42, 38, 0.06);
}

.now-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(15, 118, 110, 0.24);
  background: #e8f4f1;
}

.now-copy strong,
.now-copy p {
  display: block;
  margin: 0;
}

.now-copy strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.08;
}

.now-copy p {
  margin-top: 6px;
  color: var(--teal-dark);
  font-weight: 800;
}

.now-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.now-badges span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.now-why {
  margin-top: 10px;
}

.now-why summary {
  width: fit-content;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.now-why ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.now-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.now-actions .alert-button,
.now-actions .text-button {
  width: 100%;
}

.now-next {
  display: grid;
  align-content: start;
  gap: 10px;
}

.now-alternates {
  display: grid;
  gap: 8px;
}

.now-alternate {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  text-align: left;
}

.now-alternate strong,
.now-alternate span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-alternate span,
.now-empty {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.now-empty {
  margin: 0;
}

.today-card.primary {
  border-color: rgba(49, 95, 138, 0.2);
  background: #eef5fb;
}

.today-card strong,
.today-card p {
  display: block;
  margin: 0;
}

.today-card strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.today-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.plan-update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(242, 189, 69, 0.45);
  border-radius: 8px;
  background: #fff8e3;
}

.plan-update-banner strong,
.plan-update-banner p {
  display: block;
  margin: 0;
}

.plan-update-banner p {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.closed-banner {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(228, 109, 83, 0.24);
  border-radius: 8px;
  background: rgba(228, 109, 83, 0.12);
}

.closed-banner strong,
.closed-banner p {
  display: block;
  margin: 0;
}

.closed-banner strong {
  margin-top: 3px;
  color: #9b3d28;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
}

.closed-banner p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.status-band.park-closed {
  opacity: 0.72;
}

.plan-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) minmax(170px, 0.8fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.settings-drawer .plan-panel {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.plan-panel strong {
  display: block;
  margin-top: 4px;
}

.plan-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-panel input,
.plan-panel select {
  width: 100%;
}

.location-control {
  display: grid;
  gap: 6px;
}

.location-control strong {
  margin: 0;
  color: var(--teal-dark);
}

.plan-panel select {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 18px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.tabs::before {
  content: "";
  display: none;
}

.tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.tab.active {
  background: var(--teal);
  color: white;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  margin-bottom: 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search input,
.toolbar select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.action-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.action-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(24, 42, 38, 0.06);
}

.action-card p,
.action-card strong,
.action-card span {
  display: block;
  margin: 0;
}

.action-card p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.action-card strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.action-card span {
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.toolbar select {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.recommendation {
  min-height: 112px;
  padding: 14px;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white;
}

.recommendation:nth-child(2) {
  background: #315f8a;
}

.recommendation:nth-child(3) {
  background: #8c553d;
}

.recommendation:nth-child(4) {
  background: #6b6543;
}

.recommendation p,
.recommendation h3 {
  margin: 0;
}

.recommendation p {
  opacity: 0.82;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.recommendation h3 {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.16;
}

.ride-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ride-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(24, 42, 38, 0.06);
}

.ride-card.pulse {
  outline: 3px solid rgba(242, 189, 69, 0.75);
  outline-offset: 3px;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 1.15rem;
}

.favorite-button.active {
  border-color: rgba(242, 189, 69, 0.7);
  background: rgba(242, 189, 69, 0.22);
  color: #8b6200;
}

.ride-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding-right: 30px;
}

.wait-pill {
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e8f4f1;
  color: var(--teal-dark);
}

.wait-pill strong {
  font-size: 1.7rem;
  line-height: 1;
}

.wait-pill span {
  margin-top: -14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.ride-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ride-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf2ef;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ride-meta .closed {
  background: rgba(228, 109, 83, 0.14);
  color: #9b3d28;
}

.sparkline-wrap {
  margin: 12px 0 14px;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.sparkline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sparkline-head strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.sparkline {
  display: block;
  width: 100%;
  height: 62px;
  overflow: visible;
}

.sparkline text {
  fill: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wait-bar {
  fill: rgba(15, 118, 110, 0.42);
}

.wait-bar.current {
  fill: var(--teal);
}

.wait-bar.high {
  fill: rgba(228, 109, 83, 0.76);
}

.wait-bar.closed {
  fill: #c9d3ce;
}

.wait-bar.forecast {
  fill: rgba(49, 95, 138, 0.2);
  stroke: #315f8a;
  stroke-dasharray: 3 2;
  stroke-width: 1.5;
}

.forecast-divider {
  stroke: var(--line);
  stroke-dasharray: 3 3;
  stroke-width: 2;
}

.card-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--teal-dark);
  font-weight: 900;
}

.section-disclosure {
  margin: 0;
  min-height: 44px;
  background: var(--surface);
}

.plan-disclosure-section {
  display: grid;
  gap: 10px;
}

.card-actions {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.alert-current {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.plan-view {
  display: grid;
  gap: 16px;
}

.repair-panel {
  display: grid;
  gap: 10px;
}

.repair-list {
  display: grid;
  gap: 10px;
}

.repair-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(49, 95, 138, 0.22);
  border-radius: 8px;
  background: #eef5fb;
}

.repair-card.urgent {
  border-color: rgba(228, 109, 83, 0.28);
  background: rgba(228, 109, 83, 0.08);
}

.repair-card strong,
.repair-card span {
  display: block;
}

.repair-card strong {
  margin-top: 4px;
}

.repair-card span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.repair-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.plan-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.plan-mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mode-button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.mode-button.active {
  background: var(--teal);
  color: white;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.admin-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-form-grid select {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.plan-settings label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-settings input,
.plan-settings select {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 1rem;
}

.plan-steps {
  display: grid;
  gap: 10px;
}

.plan-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.plan-step.closed {
  border-color: rgba(228, 109, 83, 0.28);
  background: rgba(228, 109, 83, 0.08);
}

.plan-step p,
.plan-step strong,
.plan-step span,
.plan-step em {
  display: block;
  margin: 0;
}

.plan-step p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-step strong {
  margin-top: 5px;
}

.plan-step span {
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.plan-step em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.must-ride-list {
  display: grid;
  gap: 8px;
}

.must-ride {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: #e8f4f1;
}

.must-ride strong,
.must-ride span {
  display: block;
  min-width: 0;
}

.must-ride span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.day-plan {
  display: grid;
  gap: 8px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.schedule-item time {
  color: var(--teal-dark);
  font-weight: 900;
}

.schedule-park {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.schedule-item strong,
.schedule-item p {
  margin: 0;
}

.schedule-item p {
  margin-top: 3px;
  color: var(--muted);
}

.schedule-item.break {
  background: #fbf8ed;
}

.schedule-item.show {
  border-color: rgba(49, 95, 138, 0.24);
  background: #eef5fb;
}

.schedule-item.suggested {
  border-style: dashed;
}

.schedule-item.transfer {
  border-color: rgba(242, 189, 69, 0.45);
  background: #fff8e3;
}

.schedule-item.dining {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f0f8f5;
}

.shows-view {
  display: grid;
  gap: 12px;
}

.section-summary {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.show-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(24, 42, 38, 0.06);
}

.show-card.past {
  opacity: 0.72;
}

.show-card-head strong,
.show-card-head p {
  display: block;
  margin: 0;
}

.show-card-head strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.show-card-head p {
  margin-top: 5px;
  color: var(--teal-dark);
  font-weight: 800;
}

.show-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.show-times button {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.show-times button.selected {
  border-color: rgba(15, 118, 110, 0.42);
  background: var(--teal);
  color: white;
}

.show-times button.past {
  background: #edf2ef;
  color: var(--muted);
  text-decoration: line-through;
}

.show-times button.past.selected {
  background: #6c7a75;
  color: white;
}

.card-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.threshold-input {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.alert-type {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.alert-button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: white;
  font-weight: 800;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-rows {
  display: grid;
  gap: 10px;
}

.notification-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.settings-drawer .notification-bar {
  padding: 0;
  border: 0;
  background: transparent;
}

.notification-bar p {
  margin: 2px 0 0;
  color: var(--muted);
}

.alert-center-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.alert-summary-pill {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.alert-summary-pill span,
.alert-summary-pill strong,
.alert-state {
  display: block;
}

.alert-summary-pill span,
.alert-state {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.alert-summary-pill strong {
  margin-top: 4px;
  font-size: 1.25rem;
}

.alert-row,
.empty-state {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert-row.triggered {
  border-color: rgba(228, 109, 83, 0.28);
  background: rgba(228, 109, 83, 0.08);
}

.alert-row.paused {
  opacity: 0.74;
}

.alert-row strong {
  display: block;
  margin-top: 3px;
}

.alert-row p {
  margin: 2px 0 0;
  color: var(--muted);
}

.alert-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 12px;
  margin-top: 16px;
}

.admin-panel:nth-child(3),
.admin-panel:nth-child(4) {
  grid-column: 1 / -1;
}

.admin-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-actions,
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.status-list,
.fact-list {
  display: grid;
  gap: 10px;
}

.compact-list {
  margin-top: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.status-row p {
  margin: 3px 0 0;
  color: var(--muted);
}

.error-text {
  color: #9b3d28 !important;
}

.health-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.health-pill.ok {
  background: #e8f4f1;
  color: var(--teal-dark);
}

.health-pill.warn {
  background: rgba(228, 109, 83, 0.14);
  color: #9b3d28;
}

.fact-list {
  margin: 0;
}

.fact-list div {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .brand-lockup {
    justify-content: center;
    align-items: center;
  }

  .brand-logo-full {
    width: min(190px, 54vw);
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 0 12px;
  }

  .park-context {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    grid-template-areas:
      "park show refresh menu";
    gap: 10px;
    justify-self: stretch;
    padding: 10px;
  }

  .park-context-main {
    grid-area: park;
  }

  .park-context-side {
    grid-area: show;
    justify-items: stretch;
  }

  .park-context > .icon-button {
    align-self: center;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  #refreshBtn {
    grid-area: refresh;
  }

  #settingsBtn {
    grid-area: menu;
  }

  .park-context-main strong {
    font-size: 1rem;
  }

  .park-context-main span,
  .show-preview-button span {
    font-size: 0.78rem;
  }

  .show-preview-button strong {
    font-size: 0.82rem;
  }

  .show-preview-button {
    max-width: none;
    min-height: 38px;
    padding: 7px 9px;
    text-align: left;
  }

  .plan-panel,
  .action-deck,
  .recommendations,
  .admin-grid,
  .ride-list,
  .shows-grid {
    grid-template-columns: 1fr;
  }

  .now-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .now-card {
    grid-column: 1 / -1;
  }

  .status-band {
    display: flex;
    overflow-x: auto;
  }

  .status-band > div {
    min-width: 190px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .tabs {
    position: sticky;
    bottom: 8px;
    z-index: 30;
    gap: 4px;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(24, 42, 38, 0.16);
  }

  .tab {
    min-width: 76px;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .plan-settings,
  .must-ride,
  .plan-step,
  .schedule-item,
  .repair-card,
  .alert-center-summary {
    grid-template-columns: 1fr;
  }

  .plan-update-banner,
  .alert-row {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-actions {
    justify-content: stretch;
  }

  .plan-actions .text-button,
  .repair-actions .text-button {
    width: 100%;
  }

  .repair-actions {
    justify-content: stretch;
  }

  .recommendations {
    margin-bottom: 14px;
  }

  .action-deck,
  .recommendations {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .action-card,
  .recommendation {
    min-width: 220px;
    scroll-snap-align: start;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .alert-button {
    width: 100%;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .brand-logo-full {
    width: min(170px, 58vw);
  }

  .park-context {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "park refresh"
      "show menu";
  }

  .now-mode {
    grid-template-columns: 1fr;
  }

  .now-card {
    grid-template-columns: 1fr;
  }

  .show-times button {
    max-width: 100%;
  }
}
