:root {
  --ink: #202b40;
  --muted: #68758b;
  --paper: #f3f6fb;
  --card: #ffffff;
  --line: #d9e1ef;
  --green: #2456b3;
  --green-dark: #1d4691;
  --lime: #dbe7ff;
  --amber: #a96613;
  --red: #a23d36;
  --menu-blue: #2456b3;
  --menu-blue-dark: #1d4691;
  --shadow: 0 18px 50px rgba(28, 62, 122, .09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.city-landing {
  background-image:
    linear-gradient(rgba(18, 39, 78, .46), rgba(18, 39, 78, .62)),
    var(--city-background-image);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.city-login {
  background-image:
    linear-gradient(rgba(15, 35, 72, .44), rgba(15, 35, 72, .62)),
    var(--city-background-image);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.city-login .site-header { background: rgba(36, 86, 179, .96); }
body.city-login .login-intro { color: white; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
body.city-login .login-intro .eyebrow { color: var(--lime); }
body.city-login .login-intro > p:last-child { color: rgba(255,255,255,.86); }
body.city-login .login-card { background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
body.city-landing .site-header { background: rgba(36, 86, 179, .96); }
body.city-landing .page-shell {
  margin-top: 3vh;
  margin-bottom: 3vh;
  padding: 3rem;
  border-radius: 28px;
  background: rgba(243, 246, 251, .91);
  box-shadow: 0 24px 80px rgba(12, 31, 68, .3);
  backdrop-filter: blur(12px);
}
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.site-header {
  min-height: 72px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 3rem;
  border-bottom: 1px solid var(--menu-blue-dark);
  background: var(--menu-blue);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background: rgba(36, 86, 179, .86);
  box-shadow: 0 8px 24px rgba(20, 47, 96, .18);
}
body.city-login .site-header.scrolled,
body.city-landing .site-header.scrolled { background: rgba(36, 86, 179, .86); }
.brand { display: flex; flex: 0 0 auto; align-items: center; color: white; }
.brand img { display: block; width: auto; height: 44px; }
nav { display: flex; gap: 1.5rem; }
nav a { color: rgba(255, 255, 255, .7); font-weight: 600; }
nav a:hover { color: white; }
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { margin-left: .35rem; content: "⌄"; }
.nav-dropdown[open] summary, .nav-dropdown summary:hover { color: #fff; }
.nav-dropdown[open] summary::after { content: "⌃"; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .8rem);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 230px;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(12, 31, 68, .24);
}
.nav-dropdown-menu a {
  padding: .65rem .75rem;
  border-radius: 9px;
  color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--menu-blue); background: var(--paper); }
.user-menu { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.user-menu form { margin: 0; }
.user-profile-link { display: flex; align-items: center; gap: .55rem; color: white; font-weight: 650; }
.user-profile-link img, .user-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
}
.user-avatar { display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: .72rem; font-weight: 800; }
.text-button { border: 0; background: none; color: rgba(255,255,255,.72); cursor: pointer; padding: 0; }
.text-button:hover { color: white; }
.dev-user-switcher {
  border-bottom: 1px solid #d8c47b;
  background: #fff8db;
  color: var(--ink);
}
.dev-user-switcher form {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: .55rem 0;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.dev-user-switcher label { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.dev-user-switcher label strong {
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #f0d56b;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dev-user-switcher label span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.dev-user-switcher select {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  padding: .48rem .65rem;
  border: 1px solid #cbb96e;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
.dev-user-switcher .button { padding: .48rem .85rem; font-size: .84rem; }
.page-shell { width: min(1180px, 90vw); margin: 0 auto; padding: 3.5rem 0 5rem; }
.hero, .page-title, .detail-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 500; margin-bottom: 1rem; }
h2 { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.hero p:not(.eyebrow), .detail-header p { color: var(--muted); max-width: 620px; font-size: 1.08rem; }
.role-summary { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.current-user-roles {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 251, .94);
}
.current-user-roles-inner {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: .65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.role-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .7rem; border: 1px solid #c6d5ef; border-radius: 999px; background: #edf3fd; color: var(--green-dark); font-size: .78rem; }
.role-badge strong { font-weight: 800; }
.role-badge span { padding-left: .45rem; border-left: 1px solid #c6d5ef; color: var(--muted); }
.station-role-badge { border-color: #bddbcc; background: #e7f4ed; }
.station-role-badge strong { color: #175f48; }
.station-role-badge span { border-left-color: #bddbcc; }
.eyebrow { margin: 0 0 .65rem; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--green); }
.action-group { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: end; }
.button {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent;
  border-radius: 999px; padding: .78rem 1.2rem; font-weight: 700; cursor: pointer;
}
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: var(--lime); color: var(--ink); }
.button.glass { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.72); color: var(--ink); }
.button.ghost { border-color: var(--line); color: var(--ink); }
.button.danger-outline { border-color: #dab6b2; color: var(--red); background: transparent; }
.button.full { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 3rem 0 4rem; border-block: 1px solid var(--line); }
.stat { padding: 1.5rem 2rem; display: flex; align-items: baseline; gap: .7rem; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { font-family: Georgia, serif; font-size: 2.5rem; color: var(--green); font-weight: 500; }
.stat span { color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0; }
.ride-list { border-top: 1px solid var(--line); }
.ride-row {
  display: grid; grid-template-columns: 60px 1fr auto 24px; align-items: center; gap: 1.25rem;
  padding: 1.15rem .4rem; border-bottom: 1px solid var(--line); color: var(--ink);
}
.ride-row:hover { background: rgba(255,255,255,.55); }
.date-tile { text-align: center; line-height: 1; }
.date-tile strong { display: block; font-family: Georgia, serif; font-size: 1.65rem; }
.date-tile span { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.ride-main { display: flex; flex-direction: column; }
.ride-main span { color: var(--muted); }
.ride-statuses { display: flex; align-items: flex-end; flex-direction: column; gap: .35rem; }
.status { display: inline-flex; width: fit-content; border-radius: 99px; padding: .35rem .65rem; background: #e7ebf2; font-size: .78rem; font-weight: 750; }
.status-open { background: #e4ecfb; color: #264f98; }
.status-confirmed { background: #d5e2f8; color: var(--green-dark); }
.status-awaiting_station_approval { background: #fae8c6; color: #7a4b0c; }
.status-cancelled, .status-rejected { background: #f2d8d5; color: var(--red); }
.readiness-badge {
  display: inline-flex;
  width: fit-content;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}
.readiness-badge.missing { background: #fae8c6; color: #7a4b0c; }
.readiness-badge.ready { background: #dceee7; color: #17634c; }
.readiness-badge.capacity { background: #edf1f8; color: var(--muted); }
.arrow { color: var(--green); }
.empty-state { padding: 3rem; text-align: center; border: 1px dashed #becbe0; border-radius: 16px; }
.empty-state p, .muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid rgba(217,225,239,.9); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.login-layout { min-height: 68vh; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 7vw; }
.login-intro h1 { max-width: 700px; }
.login-intro > p:last-child { color: var(--muted); font-size: 1.15rem; max-width: 560px; }
.login-card { max-width: 430px; width: 100%; }
.login-help-link { display: inline-block; margin-top: 1rem; font-weight: 700; }
.auth-form-page { max-width: 720px; margin-inline: auto; }
.city-selector { margin-bottom: 1.3rem; }
.city-selector label { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 750; color: var(--muted); }
.city-selector select { width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; margin-bottom: .38rem; font-size: .86rem; font-weight: 750; }
.field input, .field select, .field textarea, .filter-form select {
  width: 100%; border: 1px solid #bdc9dc; background: white; border-radius: 10px; padding: .72rem .8rem; color: var(--ink);
}
.field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}
.field input[type="file"] {
  padding: .35rem;
  color: var(--muted);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: .9rem;
  border: 0;
  border-radius: 8px;
  padding: .62rem .9rem;
  color: white;
  background: var(--green);
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.rickshaw-availability-status { display: block; margin-top: .45rem; font-weight: 650; }
.rickshaw-availability-status.waiting, .rickshaw-availability-status.loading { color: var(--muted); }
.rickshaw-availability-status.available { color: #17634c; }
.rickshaw-availability-status.unavailable { color: var(--red); }
.field input[type="file"]::file-selector-button:hover { background: var(--green-dark); }
.field input[type="file"]:active::file-selector-button { transform: translateY(1px); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(84,132,216,.28); border-color: var(--green); }
.field ul { list-style: none; padding: 0; }
.field ul label { display: flex; gap: .55rem; align-items: center; font-weight: 500; }
.field ul input { width: auto; }
.field label.confirmation-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
  cursor: pointer;
}
.confirmation-option span { line-height: 1.35; }
.checkbox-list {
  display: grid;
  gap: .55rem;
  margin: .25rem 0 .7rem;
}
.checkbox-list > div { margin: 0; }
.checkbox-list label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  padding: .35rem 0;
  font-weight: 600;
  cursor: pointer;
}
.form-error, .message.error { padding: .8rem 1rem; background: #f8dfdc; color: var(--red); border-radius: 10px; margin-bottom: 1rem; }
.error-text { display: block; color: var(--red); font-size: .82rem; margin-top: .3rem; }
.message.success { padding: .8rem 1rem; background: #dce7f8; color: var(--green-dark); border-radius: 10px; margin-bottom: 1rem; }
.form-page { max-width: 720px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 1.2rem; }
.form-card h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.form-actions { display: flex; justify-content: end; gap: .75rem; margin-top: 1.5rem; }
.edit-notification-note { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: #edf3fd; color: var(--muted); font-size: .84rem; }
.filter-form { display: flex; gap: .7rem; align-items: center; }
.filter-form label { font-weight: 700; }
.filter-form select { min-width: 220px; }
.ride-page-title-actions { display: flex; align-items: center; justify-content: end; gap: .75rem; flex-wrap: wrap; }
.status-filter {
  gap: 0;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}
.status-filter label { padding: .55rem .8rem; color: var(--muted); font-size: .86rem; }
.status-select-wrap { position: relative; display: flex; }
.status-select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: .85rem;
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  pointer-events: none;
  transform: translateY(-55%);
}
.filter-form.status-filter select {
  min-width: 190px;
  padding: .55rem 2.35rem .55rem .9rem;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}
.filter-form.status-filter select:focus-visible { box-shadow: 0 0 0 3px rgba(36,86,179,.28); }
.detail-header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.detail-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: .8rem 0 .4rem; }
.date-block { display: flex; flex-direction: column; align-items: end; font-size: 1.1rem; }
.date-block span { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1.5fr .75fr; gap: 1.5rem; }
.details { margin: 0; }
.ride-type-label { color: var(--menu-blue) !important; font-weight: 750; }
.details div { display: grid; grid-template-columns: 130px 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; }
.ride-readiness { margin: 0 0 1.4rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fd; }
.ride-readiness h3 { margin-bottom: .75rem; font: 750 .82rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ride-readiness ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.ride-readiness li { display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: .45rem; }
.ride-readiness li > span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-weight: 800; }
.ride-readiness li.ready > span { background: #dceee7; color: #17634c; }
.ride-readiness li.missing > span { background: #fae8c6; color: #7a4b0c; }
.ride-readiness li small { color: var(--muted); }
.action-card form + form { margin-top: .75rem; }
.history-card { margin-top: 1.5rem; }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: .8rem; position: relative; padding-bottom: 1.2rem; }
.timeline li > span { width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; background: var(--green); }
.timeline small { display: block; color: var(--muted); }
.station-group { margin-top: 3rem; }
.station-map-section { margin-top: 2.5rem; }
.station-map { height: min(520px, 58vh); min-height: 360px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #e1e9f7; z-index: 1; }
.leaflet-marker-icon.station-map-pin-icon {
  border: 0;
  background: transparent;
  opacity: 1 !important;
  filter: none;
}
.station-map-pin {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid var(--menu-blue);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  box-shadow: -4px 6px 12px rgba(12, 31, 68, .42);
  transform: rotate(-45deg);
}
.station-map-pin img,
.station-map-pin span {
  display: block;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  transform: rotate(45deg);
}
.station-map-pin img {
  object-fit: cover;
}
.station-map-pin span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--menu-blue);
  font: 700 1.05rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
}
.map-empty-note { margin-top: 2rem; padding: 1rem 1.2rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.map-popup { display: flex; flex-direction: column; gap: .2rem; min-width: 180px; }
.map-popup strong { color: var(--ink); font-size: .95rem; }
.map-popup span { color: var(--muted); }
.map-popup a { margin-top: .35rem; color: var(--menu-blue); font-weight: 750; text-decoration: none; }
.map-popup a:hover { text-decoration: underline; }
.station-directory-tools {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.station-search { max-width: 620px; }
.station-search label {
  display: block;
  margin-bottom: .45rem;
  font-size: .82rem;
  font-weight: 750;
}
.station-search-field {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 50px;
  padding: 0 .9rem;
  border: 1px solid #b8c8e4;
  border-radius: 14px;
  background: #fff;
}
.station-search-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(39,94,184,.12);
}
.station-search-field > span { color: var(--green); font-size: 1.45rem; }
.station-search-field input {
  flex: 1;
  min-width: 0;
  padding: .75rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.station-search-field button {
  padding: .4rem 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.district-index {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.district-index a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .7rem;
  border: 1px solid #c7d5ed;
  border-radius: 999px;
  background: #f4f7fc;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}
.district-index a:hover { border-color: var(--green); color: var(--green); }
.district-index span {
  display: grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #dfe9f9;
  color: var(--green);
  font-size: .72rem;
}
.station-search-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: .85rem; }
.district-groups { display: grid; gap: 1rem; }
.district-group {
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.55);
  overflow: clip;
}
.district-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.district-group > summary::-webkit-details-marker { display: none; }
.district-group > summary:hover { background: rgba(223,233,249,.48); }
.district-group > summary > span:first-child { display: flex; flex-direction: column; gap: .2rem; }
.district-group > summary .eyebrow { margin: 0; font-size: .68rem; }
.district-group > summary strong { font: 500 1.7rem/1.15 Georgia, serif; }
.district-group-meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
}
.district-group-meta > span:first-child { color: var(--green); font-weight: 800; }
.district-chevron {
  margin-left: .55rem;
  color: var(--green);
  font-size: 1.35rem;
  transition: transform .2s ease;
}
.district-group[open] .district-chevron { transform: rotate(180deg); }
.district-group > .station-grid {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
}
.station-search-empty { margin-top: 0; }
.station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.station-card { min-width: 0; box-shadow: none; }
.station-image { height: 180px; margin: -2rem -2rem 1.4rem; overflow: hidden; border-radius: 20px 20px 0 0; background: #e1e9f7; }
.station-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.station-image span { display: grid; place-items: center; width: 100%; height: 100%; font: 500 5rem/1 Georgia, serif; color: var(--green); }
.station-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.station-card h3 { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; margin: 0; }
.station-district { margin-bottom: .55rem; }
.station-card address { margin: 1.2rem 0; color: var(--muted); font-style: normal; }
.station-rickshaws { display: grid; gap: .45rem; }
.station-rickshaws > span:first-child { color: var(--muted); font-size: .78rem; font-weight: 750; }
.station-rickshaw-list { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.station-rickshaw-badge {
  max-width: 100%;
  padding: .3rem .55rem;
  overflow: hidden;
  border: 1px solid #c6d5ef;
  border-radius: 999px;
  background: #edf3fd;
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-list { border-top: 1px solid var(--line); padding-top: .8rem; }
.contact-list div { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: .3rem 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.responsibility-list { margin-top: 1rem; border-top: 1px solid var(--line); }
.pilot-count-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .1rem 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.pilot-count-link > span:first-child { color: var(--muted); font-size: .8rem; }
.pilot-count-link strong { grid-row: 1 / span 2; grid-column: 2; font: 500 2rem/1 Georgia, serif; color: var(--green); }
.pilot-count-link > span:last-child { color: var(--green); font-size: .82rem; font-weight: 700; }
.captain-line { padding-top: .8rem; display: flex; flex-direction: column; }
.captain-line span { color: var(--muted); font-size: .8rem; }
.pilot-station-action { margin-top: 1.2rem; }
.pilot-station-action form { margin: 0; }
.pilot-station-state + form { margin-top: .65rem; }
.pilot-station-state {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 750;
}
.pilot-station-state.active { color: #175f48; background: #e6f4ed; }
.pilot-station-state.pending { color: #80520f; background: #fff2d8; }
.station-edit-link { display: inline-block; margin-top: 1rem; font-weight: 700; font-size: .86rem; }
.station-image-preview { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; margin-bottom: 1.4rem; }
.profile-preview { display: flex; align-items: center; gap: 1rem; padding: 1rem; margin-bottom: 1.5rem; border-radius: 14px; background: var(--paper); }
.profile-preview img, .profile-preview > span { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.profile-preview > span { display: grid; place-items: center; background: var(--lime); font: 500 1.4rem/1 Georgia, serif; }
.profile-preview div { display: flex; flex-direction: column; }
.profile-preview small { color: var(--muted); }
.city-background-preview { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; margin: 1.2rem 0; }
.captain-selector { display: grid; gap: .65rem; margin-top: .55rem; }
.field label.captain-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: .85rem;
  width: 100%;
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}
.captain-option:hover { border-color: #9db5df; background: #f7f9fd; }
.captain-option:has(input:checked) { border-color: var(--green); background: #edf3fd; }
.captain-option input[type="checkbox"] {
  grid-column: 3;
  grid-row: 1;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}
.captain-option img, .captain-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.captain-option img, .captain-avatar { grid-column: 1; grid-row: 1; }
.captain-avatar { display: grid; place-items: center; background: var(--lime); color: var(--green-dark); font-size: .78rem; font-weight: 800; }
.captain-identity { grid-column: 2; grid-row: 1; display: flex; min-width: 0; flex-direction: column; }
.captain-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.captain-identity small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0 1.5rem; }
.metric-card { min-height: 145px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; background: var(--card); }
.metric-card.featured { background: var(--green); color: white; border-color: var(--green); }
.metric-card span { color: var(--muted); font-weight: 650; }
.metric-card.featured span { color: rgba(255,255,255,.75); }
.metric-card strong { font-family: Georgia, serif; font-size: 3rem; font-weight: 500; line-height: 1; }
.metric-card strong small { font-family: inherit; font-size: 1.4rem; }
.workload-card { box-shadow: none; margin-bottom: 3rem; }
.workload { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.workload > div { display: grid; grid-template-columns: 12px auto 1fr; align-items: baseline; gap: .55rem; }
.workload strong { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.workload > div > span:last-child { color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #aeb3ad; }
.status-dot.awaiting { background: #d18a26; }
.status-dot.open { background: #6f98df; }
.status-dot.confirmed { background: var(--green); }
.status-dot.cancelled { background: var(--red); }
.statistics-heading { margin-top: 3rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.statistics-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.statistics-table th, .statistics-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; }
.statistics-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.statistics-table tr:last-child td { border-bottom: 0; }
.statistics-table td small { display: block; color: var(--muted); }
.statistics-table .number { text-align: center; font-variant-numeric: tabular-nums; }
.statistics-table .completed-number { color: var(--green); font-size: 1.15rem; font-weight: 800; }
.statistics-table .table-bar-cell { position: relative; isolation: isolate; overflow: hidden; }
.statistics-table .table-bar-cell::before { content: ""; position: absolute; z-index: 2; top: 13%; bottom: 13%; left: 7%; width: 3px; background: rgba(39, 82, 151, .58); }
.table-bar-cell > strong { position: relative; z-index: 3; }
.table-cell-bar { position: absolute; z-index: 1; top: 18%; bottom: 18%; left: calc(7% + 3px); max-width: calc(86% - 3px); background: #e4ecfa; }
.table-cell-bar-completed { background: #d8eee6; }
.table-cell-bar-passengers { background: #eee8f8; }
.table-cell-bar-stations { background: #e3f0ef; }
.plot-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; margin: 1.5rem 0; }
.plot-card { box-shadow: none; }
.plot-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.plot-heading h2 { margin: 0; }
.plot-heading > span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.monthly-plot { display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; height: 220px; }
.month-column { display: grid; grid-template-rows: 24px 1fr 24px; gap: .35rem; text-align: center; min-width: 0; }
.month-value { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.month-track { position: relative; overflow: hidden; border-radius: 8px 8px 3px 3px; background: #edf1f8; }
.month-bar { position: absolute; right: 0; bottom: 0; left: 0; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #5882d0, var(--green)); }
.month-column > span { overflow: hidden; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.status-plot { display: flex; overflow: hidden; height: 34px; margin: 2.5rem 0 1.5rem; border-radius: 999px; background: #edf1f8; }
.status-segment { min-width: 2px; }
.plot-completed { background: var(--green); }
.plot-confirmed { background: #5f88d4; }
.plot-open { background: #91afe2; }
.plot-awaiting { background: #e0a447; }
.plot-cancelled { background: var(--red); }
.plot-other { background: #9ca7ba; }
.plot-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1rem; }
.plot-legend > div { display: grid; grid-template-columns: 10px auto 1fr; align-items: center; gap: .45rem; }
.plot-legend strong { font-variant-numeric: tabular-nums; }
.plot-legend small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.ride-type-plot-card { margin: 1.5rem 0; }
.ride-type-plot { display: grid; gap: 1.2rem; }
.ride-type-row { display: grid; grid-template-columns: minmax(230px, .75fr) 1.25fr; align-items: center; gap: 1rem; }
.ride-type-label { display: flex; min-width: 0; flex-direction: column; }
.ride-type-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ride-type-label span { color: var(--muted); font-size: .78rem; }
.ride-type-track { overflow: hidden; height: 18px; border-radius: 999px; background: #e8edf5; }
.ride-type-total { height: 100%; min-width: 2px; border-radius: inherit; background: #9cb6e4; }
.ride-type-training { background: #d8b060; }
.ride-type-event { background: #9d8acb; }
.ride-type-private { background: #72b5a1; }
.ride-type-completed { height: 100%; border-radius: inherit; background: var(--green); }
.ride-type-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; color: var(--muted); font-size: .76rem; }
.ride-type-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ride-type-legend i { width: 18px; height: 8px; border-radius: 999px; background: #9cb6e4; }
.ride-type-legend .ride-type-legend-completed { background: var(--green); }
.station-plot-card { margin: 1.5rem 0 3rem; }
.station-bar-plot { display: grid; gap: 1.1rem; }
.station-bar-row { display: grid; grid-template-columns: minmax(180px, .7fr) 1.3fr; align-items: center; gap: 1rem; }
.station-bar-label { display: flex; justify-content: space-between; gap: .8rem; min-width: 0; }
.station-bar-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-bar-label span { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
.station-bar-track { overflow: hidden; height: 14px; border-radius: 999px; background: #e8edf5; }
.station-bar-fill { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #789bd9, var(--green)); }
.pilot-bar-label > div { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.pilot-bar-label img, .pilot-bar-label .user-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.pilot-bar-fill { background: linear-gradient(90deg, #4da883, #23745a); }
.pilot-statistics-table { margin-bottom: 3.5rem; }
.scope-tabs, .mailbox-folders { display: flex; gap: .4rem; margin: 2rem 0 1rem; padding: .35rem; width: fit-content; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); }
.scope-tabs a, .mailbox-folders a { padding: .55rem .9rem; border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.scope-tabs a.active, .mailbox-folders a.active { color: white; background: var(--green); }
.ride-view-switch {
  display: flex;
  gap: .35rem;
  width: fit-content;
  margin: 2rem 0 .75rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.65);
}
.ride-view-switch a {
  padding: .5rem .9rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}
.ride-view-switch a.active { color: white; background: var(--green); }
.ride-view-switch + .scope-tabs { margin-top: 0; }
.inbox-nav-link { display: inline-flex; align-items: center; gap: .35rem; }
.inbox-nav-link > span {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .3rem;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font-size: .68rem;
  font-weight: 850;
}
.inbox-nav-link > span[hidden] { display: none; }
.inbox-title { align-items: end; }
.inbox-title-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .7rem; }
.inbox-title-actions form { margin: 0; }
.mailbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 2rem 0 1rem; }
.mailbox-toolbar .mailbox-folders, .mailbox-toolbar .scope-tabs { margin: 0; }
.inbox-list {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.inbox-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: #f1f5fc; }
.inbox-row.unread { background: #edf3fd; }
.inbox-row.unread:hover { background: #e3ecfb; }
.inbox-unread-dot { width: 8px; height: 8px; border-radius: 50%; }
.inbox-row.unread .inbox-unread-dot { background: var(--green); }
.inbox-row-copy { display: flex; flex-direction: column; min-width: 0; }
.inbox-row-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row-copy > span { overflow: hidden; color: var(--muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row > time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.sent-icon { color: var(--green); font-size: 1.1rem; font-weight: 800; }
.pagination { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; color: var(--muted); }
.pagination a { font-weight: 750; }
.inbox-detail-page { max-width: 900px; margin: 0 auto; }
.inbox-message-card { padding: clamp(1.4rem, 4vw, 2.5rem); }
.inbox-message-heading { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.inbox-message-heading h1 { margin: .35rem 0 0; font-size: clamp(2rem, 5vw, 3.35rem); }
.inbox-message-heading time { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.inbox-message-meta { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1.25rem 0; }
.inbox-message-meta div { display: flex; gap: .5rem; }
.inbox-message-meta dt { color: var(--muted); }
.inbox-message-meta dd { margin: 0; font-weight: 700; }
.inbox-message-body { max-width: 72ch; padding: 1.4rem 0 2rem; border-top: 1px solid var(--line); line-height: 1.65; }
.sent-recipients { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.sent-recipients h2, .sent-message-copy h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.sent-recipients > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.sent-recipients span { padding: .5rem .7rem; border-radius: 10px; background: #edf3fd; font-weight: 700; }
.sent-recipients small { display: block; color: var(--muted); font-weight: 500; }
.sent-message-copy { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.sent-message-copy .inbox-message-body { border-top: 0; }
.ride-calendar-section { margin-top: 1.5rem; }
.calendar-ride-detail {
  scroll-margin-top: 90px;
  margin: 1.2rem 0 0;
  padding: 1.3rem;
  border: 1px solid #c6d5ef;
  border-radius: 18px;
  background: #f8faff;
  box-shadow: 0 12px 35px rgba(28, 62, 122, .08);
}
.calendar-ride-detail[hidden] { display: none; }
.calendar-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.calendar-detail-heading h3 { margin: 0; font: 500 1.65rem/1.1 Georgia, serif; }
.calendar-detail-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: white;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.calendar-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem 1.4rem;
  margin: 1.2rem 0;
}
.calendar-detail-grid div { min-width: 0; }
.calendar-detail-grid dt { color: var(--muted); font-size: .76rem; font-weight: 750; }
.calendar-detail-grid dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-weight: 650; }
.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  max-width: 440px;
  margin: 0 auto 1.2rem;
  text-align: center;
}
.calendar-toolbar h2 { margin: 0; }
.calendar-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 1.2rem;
}
.calendar-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.ride-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  min-width: 770px;
}
.calendar-weekday {
  padding: .7rem;
  border-bottom: 1px solid var(--line);
  background: #edf3fd;
  color: var(--muted);
  text-align: center;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.calendar-day {
  min-height: 135px;
  padding: .55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside-month { background: #f7f9fc; }
.calendar-day-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  width: 100%;
  min-height: 32px;
  padding: 2px 4px;
  margin: 0 0 .4rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.calendar-day-select:hover { background: #dfe9fa; }
.calendar-day-select:focus-visible { outline: 3px solid rgba(36, 86, 179, .35); }
.calendar-day-select time {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 800;
}
.calendar-day.outside-month .calendar-day-select time { color: #a2acbd; }
.calendar-day.today .calendar-day-select time { color: white; background: var(--green); }
.calendar-day.selected {
  position: relative;
  z-index: 1;
  background: #eef4ff;
  box-shadow: inset 0 0 0 3px rgba(36, 86, 179, .35);
}
.calendar-day.selected .calendar-day-select time {
  color: white;
  background: var(--green);
}
.calendar-day-count {
  padding: .2rem .4rem;
  border-radius: 999px;
  background: #e3ecfb;
  color: var(--green);
  font-size: .58rem;
  font-weight: 800;
  white-space: nowrap;
}
.calendar-day.selected .calendar-day-count { background: white; }
.calendar-events { display: grid; gap: .35rem; }
.calendar-event {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: .42rem .5rem;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 3px solid var(--green);
  border-radius: 7px;
  background: #edf3fd;
  color: var(--ink);
  font: inherit;
  font-size: .72rem;
  text-align: left;
  cursor: pointer;
}
.calendar-event:hover { background: #dfe9fa; }
.calendar-event.selected {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(36, 86, 179, .35);
  outline-offset: 1px;
  background: #d5e3fb;
  box-shadow: 0 5px 14px rgba(36, 86, 179, .2);
}
.calendar-event.selected::after {
  content: "Ausgewählt";
  margin-top: .2rem;
  color: var(--green-dark);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.calendar-event strong { font-size: .7rem; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day-rides { display: grid; gap: .7rem; margin-top: .25rem; }
.calendar-day-rides[hidden] { display: none; }
.calendar-day-rides-count { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 700; }
.calendar-day-ride {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.calendar-day-ride > div { display: flex; flex-direction: column; min-width: 0; }
.calendar-day-ride > div span { color: var(--muted); font-size: .82rem; }
.calendar-day-ride > a { white-space: nowrap; font-size: .84rem; font-weight: 750; }
.status-border-confirmed, .status-border-completed { border-left-color: #278367; }
.status-border-awaiting_station_approval { border-left-color: var(--amber); }
.status-border-cancelled, .status-border-rejected, .status-border-expired { border-left-color: var(--red); }
.pilot-callout { margin: -1.5rem 0 4rem; padding: 1.6rem; border-radius: 20px; background: #e5edfb; border: 1px solid #c5d5f1; }
.pilot-callout-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.pilot-callout-heading h2 { margin-bottom: .4rem; }
.pilot-callout-heading p:last-child { margin: 0; color: var(--muted); }
.pilot-callout .ride-list { border-color: rgba(36,86,179,.2); }
.pilot-callout .ride-row { border-color: rgba(36,86,179,.2); }
.pilot-applications { margin: 0 0 4rem; }
.pilot-application-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.pilot-application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.pilot-application-row:last-child { border-bottom: 0; }
.pilot-application-row form { margin: 0; }
.pilot-application-person { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.pilot-application-person img, .pilot-application-person > .user-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.pilot-application-person div { display: flex; flex-direction: column; min-width: 0; }
.pilot-application-person span { color: var(--muted); font-size: .88rem; }
.station-detail-summary {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) 1.35fr;
  gap: 2rem;
  margin: 2rem 0 3.5rem;
}
.station-detail-image {
  width: 100%;
  min-height: 230px;
  max-height: 360px;
  border-radius: 20px;
  object-fit: cover;
  background: #e1e9f7;
}
.station-detail-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
  font: 500 5rem/1 Georgia, serif;
}
.station-detail-copy { align-self: center; }
.station-detail-copy address { margin: 1rem 0; color: var(--muted); font-style: normal; }
.station-fleet { margin: 3rem 0; }
.station-fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.station-fleet-card { min-width: 0; }
.station-fleet-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.station-fleet-card-heading h3 { overflow-wrap: anywhere; }
.station-fleet-identifier { color: var(--muted); font-weight: 650; }
.city-management-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.city-management-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.city-management-card h2 { margin-bottom: .75rem; }
.city-management-card p:not(.eyebrow) { flex: 1; color: var(--muted); }
.city-management-card .button { margin-top: 1rem; }
.management-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.management-card-actions > a:not(.button) { margin-top: 1rem; font-weight: 700; }
.management-page-heading { align-items: flex-end; }
.global-city-heading { margin-bottom: 1.5rem; }
.management-search { margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.management-search > label { display: block; margin-bottom: .45rem; font-weight: 700; }
.management-search > div { display: flex; gap: .65rem; }
.management-search input { min-width: 0; flex: 1; }
.management-list { display: grid; gap: .75rem; }
.management-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; box-shadow: none; }
.management-row > div { display: flex; min-width: 0; flex-direction: column; }
.management-row strong, .management-row span { overflow-wrap: anywhere; }
.management-row > div > span { color: var(--muted); }
.management-person { flex-direction: row !important; align-items: center; gap: .8rem; }
.management-person img, .management-person > .user-avatar { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.global-city-admin-state { align-items: flex-end; text-align: right; }
.global-city-admin-state span { font-size: .82rem; }
.role-invitation-field { padding: 0; border: 0; }
.role-invitation-field legend { margin-bottom: .55rem; font-weight: 700; }
.role-invitation-field ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.role-invitation-field label { display: flex; align-items: center; gap: .65rem; }
.role-invitation-field input { width: auto; }
.pilot-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.station-leadership { margin-bottom: 3.5rem; }
.leadership-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.leadership-group {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}
.leadership-group h3 { margin-bottom: 1rem; }
.leadership-people { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; }
.person-directory-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.2rem;
  overflow: hidden;
  box-shadow: none;
}
.person-directory-card img, .person-directory-card > .user-avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
.person-directory-card div { display: flex; flex-direction: column; min-width: 0; }
.person-directory-card strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-directory-card a { overflow: hidden; color: var(--muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1050px) {
  .leadership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: .8rem 5vw; flex-wrap: wrap; gap: .75rem 1.5rem; }
  .brand img { height: 40px; }
  .current-user-roles-inner { flex-wrap: nowrap; overflow-x: auto; }
  .current-user-roles-inner .role-badge { flex: 0 0 auto; }
  .dev-user-switcher form { flex-wrap: wrap; }
  .dev-user-switcher label { width: 100%; }
  .dev-user-switcher select { max-width: none; }
  nav { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.24); padding: .7rem 0 .25rem; }
  .nav-dropdown-menu { position: fixed; top: auto; right: 5vw; }
  .user-name { display: none; }
  .page-shell { padding-top: 2rem; }
  body.city-landing .page-shell { width: 94vw; padding: 1.4rem; border-radius: 20px; }
  .hero, .page-title, .detail-header { align-items: start; flex-direction: column; }
  .action-group { justify-content: start; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .ride-row { grid-template-columns: 50px 1fr; }
  .ride-row .ride-statuses { grid-column: 2; align-items: flex-start; }
  .ride-row .arrow { display: none; }
  .login-layout, .detail-grid { grid-template-columns: 1fr; }
  .login-intro { display: none; }
  .date-block { align-items: start; }
  .details div { grid-template-columns: 1fr; gap: .2rem; }
  .station-grid, .metric-grid, .workload, .plot-grid { grid-template-columns: 1fr; }
  .district-index { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .district-index a { flex: 0 0 auto; }
  .district-group > summary { padding: 1rem; }
  .district-group > .station-grid { padding: .75rem; }
  .metric-card { min-height: 120px; }
  .station-bar-row { grid-template-columns: 1fr; gap: .35rem; }
  .ride-type-row { grid-template-columns: 1fr; gap: .4rem; }
  .scope-tabs, .mailbox-folders { width: 100%; overflow-x: auto; border-radius: 14px; }
  .scope-tabs a, .mailbox-folders a { white-space: nowrap; }
  .pilot-callout-heading { align-items: start; flex-direction: column; }
  .pilot-application-row { align-items: stretch; flex-direction: column; }
  .pilot-application-row .button { width: 100%; }
  .station-detail-summary, .leadership-grid, .station-fleet-grid, .pilot-directory, .city-management-grid { grid-template-columns: 1fr; }
  .ride-view-switch { margin-top: 1rem; }
  .calendar-detail-grid { grid-template-columns: 1fr; }
  .calendar-day-ride { grid-template-columns: 1fr auto; }
  .calendar-day-ride > a { grid-column: 1 / -1; }
  .inbox-row { grid-template-columns: 8px minmax(0, 1fr); gap: .7rem; }
  .inbox-row > time { grid-column: 2; }
  .inbox-message-heading { flex-direction: column; }
  .inbox-title-actions { justify-content: start; }
  .status-filter { width: 100%; }
  .ride-page-title-actions { width: 100%; justify-content: start; }
  .ride-page-title-actions > .button { width: 100%; }
  .management-row { grid-template-columns: minmax(0, 1fr) auto; }
  .management-row > .button { grid-column: 1 / -1; width: 100%; }
  .management-search > div { align-items: stretch; flex-direction: column; }
  .status-select-wrap { flex: 1; }
  .filter-form.status-filter select { width: 100%; min-width: 0; }
}
