:root {
  --ink: #223c32;
  --muted: #7b8780;
  --green: #17664e;
  --green-dark: #114d3c;
  --mint: #eaf2ec;
  --paper: #f6f7f2;
  --line: #e5e9e1;
  --white: #fff;
  --shadow: 0 4px 20px #223c3205;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
select,
input,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #65a88e;
}
a {
  color: var(--green);
  text-decoration: none;
}
svg[aria-hidden="true"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  line-height: 1.18;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--green);
  margin-bottom: 12px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #f0f4ee;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.small {
  font-size: 11px;
  min-height: 32px;
  padding: 6px 10px;
  gap: 6px;
}
.button.small svg {
  width: 15px;
  height: 15px;
}
.button.danger {
  color: #a7463c;
  background: #fdf4f1;
  border-color: #ecd4ce;
}
.wide {
  width: 100%;
}
.icon-button {
  background: none;
  border: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #819087;
}
.icon-button:hover {
  background: var(--mint);
}
.icon-button.saved {
  color: #b58026;
  background: #faf3dc;
}
.icon-button.saved svg {
  fill: #eeddaa;
}
.pill {
  display: inline-block;
  background: var(--mint);
  color: var(--green);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 650;
  text-transform: uppercase;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 20px;
}
.panel-heading h2 {
  font-size: 15px;
}
.panel-heading .muted {
  font-size: 11px;
}
.count {
  background: #f0f3ed;
  color: #758277;
  border-radius: 5px;
  min-width: 24px;
  text-align: center;
  padding: 4px 7px;
  font-size: 11px;
}
.empty {
  padding: 38px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty span {
  display: block;
  font-size: 12px;
}
.boot {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 32px;
  gap: 5px;
}
.boot span {
  font-size: 14px;
  color: var(--muted);
  margin-top: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 450;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand b {
  font-weight: 700;
}
.brand.light {
  color: white;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  padding: 45px 55px;
  background: #154f40;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 740px;
}
.login-story:before,
.login-story:after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 700px;
  height: 700px;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  top: 100px;
  left: -140px;
}
.login-story:after {
  width: 500px;
  height: 500px;
  top: 210px;
  left: -35px;
}
.story-content {
  position: relative;
  z-index: 1;
  margin: 70px 0;
}
.story-content .eyebrow {
  color: #abc6b0;
  font-size: 10px;
}
.story-content h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 66px);
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 24px 0;
}
.story-content > p:not(.eyebrow) {
  color: #b5ccbf;
  line-height: 1.8;
  font-size: 15px;
}
.login-story > small {
  color: #93b5a4;
  font-size: 11px;
}
.story-route {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 64px;
  max-width: 430px;
}
.story-route > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4d3c8;
  font-size: 12px;
  white-space: nowrap;
}
.story-route i {
  flex: 1;
  height: 1px;
  border-top: 1px dashed #769b82;
}
.story-route .story-bus {
  background: #e3d7a6;
  color: #224d3b;
  padding: 14px;
  border-radius: 16px;
}
.story-bus svg {
  width: 25px;
  height: 25px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 50px 35px;
  background: #fafbf7;
}
.login-card {
  width: 100%;
  max-width: 385px;
}
.login-card h2 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 25px 0 12px;
}
.login-card > .muted {
  font-size: 13px;
  margin-bottom: 27px;
}
.demo-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f0f3e9;
  border: 1px solid #e3e8d9;
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  margin: 18px 0;
  color: #4e6756;
}
.demo-note b {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 650;
}
.demo-note span {
  font-size: 11px;
  line-height: 1.6;
  display: block;
  color: #70816b;
}
.demo-note svg {
  margin-top: 2px;
  width: 18px;
}
.demo-roles {
  display: flex;
  padding: 4px;
  border-radius: 8px;
  background: #eef1e9;
  margin: 20px 0;
}
.demo-roles button {
  width: 33.33%;
  border: 0;
  background: transparent;
  color: #7a897b;
  border-radius: 5px;
  padding: 9px;
}
.demo-roles button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 5px #00000008;
  font-weight: 600;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 17px 0;
  color: #53655a;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfe5db;
  background: #fff;
  border-radius: 7px;
  color: var(--ink);
  padding: 12px;
  margin-top: 8px;
  min-height: 42px;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #a0aaa1;
  font-weight: 400;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="color"] {
  padding: 5px;
  width: 70px;
}
.error {
  color: #aa4333;
  font-size: 12px;
  line-height: 1.5;
  min-height: 8px;
  margin: 8px 0;
}
.login-help {
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  color: #919b93;
  margin-top: 24px;
}
.college-link {
  display: block;
  text-align: center;
  font-size: 11px;
  margin-top: 20px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  flex-shrink: 0;
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  padding: 30px 20px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100dvh;
  left: 0;
  top: 0;
  z-index: 20;
}
.sidebar .brand {
  font-size: 21px;
  gap: 9px;
  margin-left: 3px;
}
.sidebar .brand img {
  width: 35px;
  height: 35px;
}
.college-mini {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 650;
  color: #849484;
  line-height: 1.8;
  margin: 24px 8px 38px;
}
.college-mini span {
  display: block;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #9da79b;
}
.nav-label {
  color: #a0a99a;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin: 0 11px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 12px;
  border-radius: 7px;
  color: #7e8b7d;
  font-size: 12px;
  white-space: nowrap;
}
.sidebar nav button.active {
  background: #e7efe3;
  color: var(--green);
  font-weight: 600;
}
.sidebar nav button:hover {
  background: #edf2e9;
}
.sidebar nav svg {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.campus-card {
  padding: 23px 15px;
  background: #edf2e6;
  border: 1px solid #e2e9da;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}
.campus-card:after {
  content: "";
  position: absolute;
  border: 1px solid #dce6d1;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  right: -58px;
  bottom: -40px;
}
.campus-card > svg {
  color: #81976b;
  margin-bottom: 14px;
}
.campus-card b {
  display: block;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.2px;
}
.campus-card > span {
  display: block;
  color: #94a087;
  font-size: 10px;
  margin-top: 14px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #e4eadb;
  color: #6e8159;
  font-size: 12px;
  flex-shrink: 0;
}
.account > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.account b {
  font-size: 11px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account small {
  font-size: 9px;
  display: block;
  color: #9ba495;
  text-transform: capitalize;
  margin-top: 4px;
}
.account > svg {
  width: 15px;
  height: 15px;
  color: #9ba495;
}
.main-wrap {
  margin-left: 228px;
  width: calc(100% - 228px);
  min-width: 0;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #ffffff90;
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: #939e91;
  white-space: nowrap;
}
.breadcrumb span {
  padding: 0 12px;
  color: #bec5ba;
}
.breadcrumb b {
  font-weight: 500;
  color: #586f5a;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-tag {
  font-size: 8px;
  letter-spacing: 1px;
  color: #99834f;
  padding: 6px 9px;
  border: 1px solid #e9e0c7;
  background: #faf7e9;
  border-radius: 4px;
  font-weight: 600;
}
.connection {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #87957f;
  white-space: nowrap;
}
.connection i,
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d9c68;
  display: inline-block;
}
.connection .lost {
  color: #b07828;
}
#content {
  max-width: 1640px;
  margin: auto;
  padding: 31px 32px 28px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 9px;
}
.page-heading .muted {
  font-size: 12px;
  margin-top: 12px;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff80;
  color: #7f8c7a;
  white-space: nowrap;
}
.date-chip svg {
  width: 14px;
  height: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 16px;
  background: white;
  min-width: 0;
}
.stat-icon {
  background: #edf3e7;
  color: #729262;
  border-radius: 10px;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 43px;
}
.stat:nth-child(2) .stat-icon {
  background: #eaf3ee;
  color: #5c9580;
}
.stat:nth-child(3) .stat-icon {
  background: #f2efe4;
  color: #a29363;
}
.stat:nth-child(4) .stat-icon {
  background: #eeeff7;
  color: #9292b0;
}
.stat > div > span {
  font-size: 10px;
  color: #929e8b;
  display: block;
  margin-bottom: 7px;
}
.stat b {
  font-size: 25px;
  font-weight: 550;
  display: block;
  line-height: 1;
  letter-spacing: -0.6px;
}
.stat small {
  display: block;
  font-size: 9px;
  color: #a0aa98;
  font-weight: 400;
  margin-top: 9px;
  letter-spacing: 0;
}
.tracking-layout {
  display: grid;
  grid-template-columns: 280px minmax(250px, 1fr) 272px;
  gap: 17px;
  align-items: stretch;
}
.fleet {
  display: flex;
  flex-direction: column;
}
.fleet .panel-heading {
  padding: 20px 16px 13px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 14px;
  padding: 0 10px;
  color: #a4ae9c;
}
.search svg {
  width: 16px;
  height: 16px;
}
.search input {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 9px 0;
  font-size: 11px;
  min-height: 35px;
  background: none;
  outline: none;
}
.search:focus-within {
  outline: 2px solid #65a88e;
}
.filters {
  display: flex;
  gap: 6px;
  padding: 14px;
}
.filters button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  font-size: 10px;
  color: #8b9786;
  padding: 7px 9px;
}
.filters button.active {
  background: #eaf1e5;
  color: var(--green);
  font-weight: 600;
}
.bus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 15px;
  max-height: 465px;
  overflow: auto;
  flex: 1;
}
.bus-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s;
}
.bus-card:hover {
  border-color: #a6c1a1;
}
.bus-card.selected {
  border-color: #6fa177;
  background: #f5f9f0;
  box-shadow: inset 3px 0 #5e9061;
}
.bus-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bus-symbol {
  border: 1px solid #e5ebdf;
  background: #f7f9f4;
  padding: 5px;
  border-radius: 6px;
  color: #7c9472;
}
.bus-symbol svg {
  width: 16px;
  height: 16px;
}
.bus-card-top > b {
  font-size: 12px;
  font-weight: 650;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 4px;
  padding: 5px 6px;
  background: #f0f2ed;
  color: #9ca595;
  line-height: 1;
}
.badge i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.live,
.badge.simulated {
  background: #e7f1e6;
  color: #5e8f59;
}
.badge.stale {
  background: #fbefd8;
  color: #b8862e;
}
.bus-card .badge {
  margin-left: auto;
}
.bus-card h3 {
  font-size: 11px;
  margin: 12px 0 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bus-meta {
  display: flex;
  gap: 10px;
  color: #a0aa97;
  font-size: 9px;
  flex-wrap: wrap;
}
.bus-meta > span {
  display: flex;
  gap: 3px;
  align-items: center;
}
.bus-meta svg {
  width: 11px;
  height: 11px;
}
.bus-bottom {
  border-top: 1px solid #e9eee2;
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: #a4ad9b;
}
.bus-bottom > b {
  font-weight: 500;
  color: #6a9065;
  font-size: 9px;
}
.bus-bottom svg {
  width: 11px;
  height: 11px;
  margin-left: 3px;
}
.fleet-foot {
  border-top: 1px solid var(--line);
  padding: 13px 10px;
  text-align: center;
  color: #a4ae9c;
  font-size: 9px;
}
.fleet-foot svg {
  width: 11px;
  height: 11px;
  margin-right: 4px;
}
.map-panel {
  position: relative;
  min-height: 590px;
  display: flex;
  flex-direction: column;
}
.map-top {
  padding: 18px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.map-top > div {
  min-width: 0;
}
.map-top b {
  font-size: 11px;
  margin-left: 6px;
  font-weight: 600;
}
.map-subtitle {
  display: block;
  font-size: 9px;
  color: #a1ab96;
  margin-top: 6px;
  margin-left: 13px;
}
.map-top .button {
  font-size: 9px;
  padding: 6px 8px;
}
.map-top .button svg {
  width: 12px;
  height: 12px;
}
#map {
  min-height: 465px;
  flex: 1;
  background: #edf0e5;
  z-index: 1;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-tile {
  filter: saturate(0.55) brightness(1.03);
}
.leaflet-control-attribution {
  font-size: 8px !important;
}
.leaflet-control-zoom {
  border: 1px solid #d9e2d1 !important;
  box-shadow: 0 3px 10px #234c2512 !important;
}
.leaflet-control-zoom a {
  color: #657f5e !important;
  font-weight: 400 !important;
}
.map-disclaimer {
  padding: 9px 12px;
  font-size: 8px;
  color: #8f9d83;
  background: #f8faf5;
  line-height: 1.5;
  z-index: 2;
  border-top: 1px solid var(--line);
}
.bus-map-icon {
  border: 0;
  background: none;
}
.map-bus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: white;
  border: 1px solid #a0b69a;
  border-radius: 8px;
  height: 34px;
  box-shadow: 0 3px 9px #213d3025;
  color: #507b4a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.map-bus svg {
  width: 16px;
  height: 16px;
}
.map-bus.chosen {
  background: var(--green);
  color: white;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 5px #17664e20,
    0 3px 12px #203f3530;
  height: 38px;
}
.map-bus.old {
  background: #a58b57;
  color: white;
}
.detail {
  padding: 18px 19px;
  min-width: 0;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-top .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #a2ac98;
  margin: 0;
}
.detail-top .icon-button {
  width: 25px;
  height: 25px;
}
.detail-top svg {
  width: 15px;
  height: 15px;
}
.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 10px;
}
.detail-title h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.registration {
  font-size: 9px;
  margin: 8px 0 16px;
}
.detail > h3 {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
  margin-bottom: 18px;
}
.stop-label {
  font-size: 9px;
  color: #95a18b;
  margin: 0;
}
.stop-label select {
  font-size: 10px;
  margin-top: 7px;
  min-height: 34px;
  padding: 8px;
  color: #627759;
  background: #fbfcf8;
  border-color: #e3e9db;
}
.eta {
  background: #eef4e7;
  border: 1px solid #e5eddc;
  padding: 15px 14px;
  border-radius: 8px;
  margin-top: 16px;
}
.eta > span {
  color: #819475;
  font-size: 10px;
}
.eta svg {
  width: 12px;
  height: 12px;
  margin-right: 3px;
}
.eta b {
  font-size: 31px;
  letter-spacing: -1.4px;
  display: block;
  margin: 8px 0;
  font-weight: 550;
  color: #42703f;
}
.eta small {
  font-size: 8px;
  color: #98a58b;
  display: block;
  line-height: 1.6;
}
.estimate-note {
  font-size: 8px;
  color: #a9b29f;
  line-height: 1.6;
  margin: 8px 1px 18px;
}
.detail-route-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin: 15px 0 19px;
}
.detail-route-heading > b {
  font-weight: 550;
}
.detail-route-heading > span {
  color: #a7b09d;
  font-size: 9px;
}
.stop-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stop-timeline li {
  display: flex;
  gap: 13px;
  position: relative;
  padding-bottom: 23px;
  min-height: 45px;
}
.stop-timeline li:before {
  content: "";
  position: absolute;
  width: 1px;
  background: #e2e9da;
  left: 6px;
  top: 11px;
  bottom: 0;
}
.stop-timeline li:last-child {
  padding-bottom: 0;
}
.stop-timeline li:last-child:before {
  display: none;
}
.stop-dot {
  width: 13px;
  height: 13px;
  border: 2px solid #d9e2d2;
  border-radius: 50%;
  margin-top: 2px;
  background: white;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.stop-dot svg {
  width: 9px;
  height: 9px;
}
.boarding .stop-dot {
  border-color: #638d58;
  background: #638d58;
  box-shadow: 0 0 0 4px #edf3e7;
}
.stop-timeline b {
  font-size: 10px;
  font-weight: 450;
  display: block;
  line-height: 1.5;
  color: #7a8b72;
}
.stop-timeline small {
  font-size: 8px;
  color: #b0b8a7;
  display: block;
  margin-top: 4px;
}
.stop-timeline .boarding b {
  color: #507346;
  font-weight: 650;
}
.stop-timeline .boarding small {
  color: #87a173;
}
.detail-update {
  font-size: 8px;
  color: #a9b29f;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
  line-height: 1.7;
}
.detail-update svg {
  width: 11px;
  height: 11px;
  margin-right: 4px;
}
.notice-strip {
  margin-top: 20px;
  background: #f0f3e9;
  border: 1px solid #e4eadb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  font-size: 10px;
  color: #8b997e;
}
.notice-strip > svg {
  width: 16px;
  height: 16px;
  color: #a0ad8e;
}
.notice-strip > b {
  font-size: 10px;
  font-weight: 600;
  color: #687b5e;
  white-space: nowrap;
}
.notice-strip > span {
  line-height: 1.6;
  flex: 1;
}
.notice-strip > button {
  border: 0;
  background: transparent;
  color: #6b875c;
  font-size: 9px;
  white-space: nowrap;
}
.notice-strip > button svg {
  width: 12px;
  height: 12px;
}
footer {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 33px 25px;
  font-size: 9px;
  color: #a9b39f;
  display: flex;
  gap: 18px;
}
footer span {
  flex: 1;
}
footer a {
  color: #8d9e7f;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.route-card {
  padding: 25px;
}
.route-mark {
  background: var(--mint);
  color: var(--green);
  display: inline-flex;
  padding: 12px;
  border-radius: 10px;
  margin-right: 12px;
  margin-bottom: 22px;
}
.route-card > .muted {
  font-size: 11px;
}
.route-card h2 {
  font-size: 19px;
  margin-bottom: 22px;
}
.route-card ol {
  padding-left: 20px;
  margin-bottom: 28px;
  color: #8c9b82;
  font-size: 12px;
}
.route-card li {
  padding: 8px 0;
}
.route-card .button {
  width: 100%;
  font-size: 11px;
}
.notices-list {
  max-width: 900px;
  display: grid;
  gap: 15px;
}
.notice-card {
  padding: 25px;
  display: flex;
  gap: 20px;
}
.notice-card > svg {
  color: #8ca279;
}
.notice-card .muted {
  font-size: 10px;
}
.notice-card p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
}
.driver-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1000px;
}
.driver-card {
  padding: 38px;
  text-align: center;
}
.large-icon {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  background: var(--mint);
  color: var(--green);
  border-radius: 23px;
  margin: 0 auto 20px;
}
.large-icon svg {
  width: 37px;
  height: 37px;
}
.driver-card h2 {
  font-size: 27px;
}
.driver-card > .muted {
  margin: 10px 0;
}
.driver-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
#driver-status {
  padding: 22px 0 0;
}
#driver-status .badge {
  font-size: 11px;
  padding: 8px 10px;
}
#driver-status p {
  font-size: 12px;
  color: #88947f;
  margin-top: 15px;
}
#gps-message {
  font-size: 11px;
  line-height: 1.8;
  padding-top: 10px;
}
.driver-guide {
  padding: 32px;
}
.driver-guide ol {
  padding-left: 20px;
  color: #78976b;
  margin-top: 27px;
}
.driver-guide li {
  padding: 0 0 25px 10px;
  font-size: 13px;
}
.driver-guide li b {
  font-weight: 600;
  display: block;
  color: #506647;
  margin-bottom: 7px;
}
.driver-guide li span {
  font-size: 12px;
  color: #9aa78e;
  line-height: 1.7;
  display: block;
}
.admin-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.admin-fleet {
  margin-bottom: 24px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  background: #f8faf5;
  color: #93a085;
  font-size: 10px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}
td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
td b {
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  color: #a3ad98;
  font-size: 9px;
  margin-top: 5px;
}
.source-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8d9e7f;
  font-size: 11px;
}
.source-label svg {
  width: 15px;
  height: 15px;
}
.table-actions {
  display: flex;
  gap: 7px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.admin-row b {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.admin-row small {
  display: block;
  font-size: 10px;
  color: #9fab93;
  margin-top: 7px;
}
.admin-row p {
  font-size: 12px;
  color: #829175;
  line-height: 1.8;
}
.admin-row .badge {
  font-size: 9px;
}
dialog {
  width: 520px;
  max-width: calc(100vw - 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 100px #17362630;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #19392c55;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-heading h2 {
  font-size: 23px;
}
dialog > p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 14px;
}
dialog .muted {
  font-size: 11px;
}
pre {
  background: #f1f5ec;
  padding: 14px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
  overflow: auto;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
#device-result > p {
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: calc(100vw - 35px);
  padding: 14px 22px;
  border-radius: 9px;
  background: #254837;
  color: white;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 5px 30px #1b42212a;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 10000;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .tracking-layout {
    grid-template-columns: 300px minmax(400px, 1fr) 295px;
  }
  .bus-card {
    padding: 16px;
  }
  .bus-card h3 {
    font-size: 12px;
  }
  .bus-list {
    max-height: 530px;
  }
  .map-panel {
    min-height: 650px;
  }
  .detail {
    padding: 22px;
  }
  .stop-timeline li {
    padding-bottom: 27px;
  }
  .detail > h3 {
    font-size: 13px;
  }
}
@media (max-width: 1320px) {
  .sidebar {
    width: 200px;
    padding: 26px 15px 18px;
  }
  .main-wrap {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .sidebar .brand {
    font-size: 19px;
  }
  .sidebar .brand img {
    width: 31px;
    height: 31px;
  }
  #content {
    padding: 27px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .tracking-layout {
    grid-template-columns: 250px minmax(260px, 1fr);
    gap: 16px;
  }
  .detail {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    column-gap: 35px;
    padding: 22px;
  }
  .detail .detail-top,
  .detail .detail-title,
  .detail .registration,
  .detail > h3,
  .detail .stop-label,
  .detail .eta,
  .detail .estimate-note {
    grid-column: 1;
  }
  .detail .detail-top {
    grid-row: 1;
  }
  .detail .detail-title {
    grid-row: 2;
  }
  .detail .registration {
    grid-row: 3;
    margin-bottom: 12px;
  }
  .detail > h3 {
    grid-row: 4;
    margin-bottom: 15px;
  }
  .detail .stop-label {
    grid-row: 5;
  }
  .detail .eta {
    grid-row: 6;
  }
  .detail .estimate-note {
    grid-row: 7;
    margin-bottom: 0;
  }
  .detail .detail-route-heading {
    grid-column: 2;
    grid-row: 1/3;
    margin-top: 0;
    align-self: start;
  }
  .detail .stop-timeline {
    grid-column: 2;
    grid-row: 3/7;
  }
  .detail .detail-update {
    grid-column: 2;
    grid-row: 7;
    align-self: end;
    margin: 0;
  }
  .stat {
    gap: 10px;
    padding: 15px 12px;
  }
  .stat-icon {
    min-width: 32px;
    height: 37px;
  }
  .stat > div > span {
    font-size: 9px;
  }
  .stat small {
    font-size: 8px;
  }
  .stat b {
    font-size: 23px;
  }
  .map-panel {
    min-height: 590px;
  }
  .route-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px;
  }
  .sidebar .brand {
    margin: 0;
    justify-content: center;
  }
  .sidebar .brand img {
    width: 38px;
    height: 38px;
  }
  .sidebar .brand > span,
  .college-mini,
  .nav-label,
  .campus-card,
  .account > span:nth-child(2),
  .account > svg {
    display: none;
  }
  .sidebar nav {
    margin-top: 38px;
    gap: 13px;
  }
  .sidebar nav button {
    font-size: 0;
    justify-content: center;
    padding: 14px;
  }
  .sidebar nav svg {
    width: 21px;
    height: 21px;
  }
  .sidebar nav button {
    gap: 0;
  }
  .account {
    justify-content: center;
    padding-top: 20px;
  }
  .main-wrap {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .stats {
    gap: 10px;
  }
  .stat-icon {
    display: none;
  }
  .stat {
    padding: 16px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .topbar-right {
    gap: 10px;
  }
  .driver-layout {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .driver-card,
  .driver-guide {
    padding: 24px;
  }
  .admin-grid {
    gap: 18px;
  }
  .notice-strip {
    flex-wrap: wrap;
  }
  .notice-strip > span {
    flex-basis: 70%;
  }
}
@media (max-width: 680px) {
  .login-page {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 25px;
  }
  .login-story:before,
  .login-story:after,
  .story-route,
  .login-story > small {
    display: none;
  }
  .story-content {
    margin: 32px 0 10px;
  }
  .story-content .eyebrow {
    font-size: 8px;
  }
  .story-content h1 {
    font-size: 38px;
    margin: 16px 0;
  }
  .story-content h1 br:nth-child(2) {
    display: none;
  }
  .story-content > p:not(.eyebrow) {
    font-size: 12px;
  }
  .login-panel {
    padding: 32px 24px 45px;
  }
  .login-card h2 {
    font-size: 27px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 12px 14px 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #fbfcf8;
    z-index: 1000;
  }
  .sidebar .brand {
    justify-content: flex-start;
    flex: 1;
  }
  .sidebar .brand > span {
    display: inline;
    font-size: 19px;
  }
  .sidebar .brand img {
    width: 31px;
    height: 31px;
  }
  .sidebar nav {
    order: 3;
    margin: 0;
    width: 100%;
    flex-direction: row;
    gap: 3px;
    overflow: auto;
    scrollbar-width: none;
    padding-bottom: 9px;
  }
  .sidebar nav button {
    font-size: 9px;
    padding: 9px;
    gap: 6px;
    flex: 1;
  }
  .sidebar nav svg {
    width: 14px;
    height: 14px;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
  }
  .account {
    border: 0;
    padding: 0;
  }
  .account > svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  .account .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .main-wrap {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 47px;
    padding: 0 16px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb > span {
    padding: 0 5px;
  }
  .topbar-right {
    gap: 10px;
  }
  .demo-tag {
    font-size: 6px;
    padding: 5px;
    letter-spacing: 0.5px;
  }
  .connection {
    font-size: 8px;
  }
  .connection i {
    width: 4px;
    height: 4px;
  }
  #content {
    padding: 25px 15px 20px;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .page-heading .muted {
    font-size: 11px;
    margin-top: 10px;
  }
  .date-chip {
    display: none;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 8px;
    min-height: 35px;
    margin-top: 20px;
    gap: 4px;
  }
  .page-heading > .button svg {
    width: 14px;
    height: 14px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 15px;
    gap: 13px;
  }
  .stat-icon {
    display: grid;
    min-width: 33px;
    height: 37px;
  }
  .stat b {
    font-size: 23px;
  }
  .stat > div > span {
    font-size: 9px;
  }
  .stat small {
    font-size: 8px;
  }
  .tracking-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .fleet {
    order: 1;
  }
  .map-panel {
    order: 2;
    min-height: 370px;
  }
  .detail {
    order: 3;
    display: block;
    padding: 22px;
  }
  .bus-list {
    display: grid;
    grid-template-columns: repeat(4, 235px);
    overflow-x: auto;
    padding: 0 13px 15px;
    max-height: none;
    gap: 11px;
  }
  .bus-list > .empty {
    grid-column: 1/3;
  }
  .fleet .panel-heading {
    padding: 16px 15px 13px;
  }
  .fleet-foot {
    display: none;
  }
  .search {
    margin: 0 14px;
  }
  .filters {
    padding: 11px 14px;
  }
  .bus-card {
    padding: 12px;
  }
  .map-top {
    padding: 15px;
  }
  .map-top b {
    font-size: 12px;
  }
  .map-top .button {
    font-size: 10px;
  }
  #map {
    min-height: 320px;
  }
  .detail .eta {
    padding: 18px;
  }
  .detail .detail-route-heading {
    margin-top: 24px;
  }
  .detail .detail-update {
    margin-top: 20px;
  }
  .stop-timeline b {
    font-size: 12px;
  }
  .stop-timeline small {
    font-size: 10px;
  }
  .stop-timeline li {
    padding-bottom: 27px;
  }
  .detail .detail-title h2 {
    font-size: 28px;
  }
  .detail > h3 {
    font-size: 14px;
  }
  .detail .registration {
    font-size: 11px;
  }
  .stop-label {
    font-size: 11px;
  }
  .stop-label select {
    font-size: 12px;
    min-height: 40px;
  }
  .eta small,
  .estimate-note {
    font-size: 10px;
  }
  .detail-top .eyebrow {
    font-size: 9px;
  }
  .badge {
    font-size: 9px;
  }
  .notice-strip {
    gap: 9px;
    padding: 14px;
  }
  .notice-strip > span {
    flex-basis: 100%;
    order: 3;
    font-size: 10px;
  }
  .notice-strip > button {
    margin-left: auto;
  }
  .route-grid,
  .driver-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .route-card {
    padding: 22px;
  }
  .route-card h2 {
    font-size: 19px;
  }
  .driver-guide {
    padding: 27px;
  }
  .driver-card {
    padding: 30px;
  }
  .driver-card .button {
    min-height: 48px;
  }
  .admin-actions {
    gap: 7px;
  }
  .admin-actions .button {
    font-size: 10px;
    padding: 9px;
    gap: 6px;
  }
  .admin-actions svg {
    width: 15px;
    height: 15px;
  }
  .admin-fleet .panel-heading {
    align-items: flex-start;
  }
  .admin-fleet .panel-heading .muted {
    font-size: 9px;
    text-align: right;
    max-width: 120px;
  }
  th,
  td {
    padding: 14px;
  }
  .notice-card {
    padding: 20px;
    gap: 15px;
  }
  .notice-card p {
    font-size: 13px;
  }
  footer {
    padding: 0 16px 24px;
    font-size: 8px;
    gap: 10px;
  }
  footer span {
    display: none;
  }
  footer a {
    margin-left: auto;
  }
  dialog {
    padding: 23px;
  }
  .modal-heading h2 {
    font-size: 21px;
  }
  .demo-note {
    padding: 12px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .stop-label select,
  .search input {
    font-size: 16px;
  }
  .search input {
    padding: 10px 0;
  }
  .bus-list {
    scroll-snap-type: x proximity;
  }
  .bus-card {
    scroll-snap-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep supporting text readable on small screens and projectors. */
.bus-meta,
.bus-bottom,
.registration,
.stop-timeline small,
.detail-update,
.map-subtitle,
.stat small {
  color: #7c8974;
}
.estimate-note,
.eta small {
  color: #738267;
}
.stop-timeline b {
  color: #5b6e54;
}
.stat > div > span {
  color: #6d7e64;
}
/* Transport operations and map editing */
.breadcrumb button,
.text-button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.navigation-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0;
  font-size: 11px;
  line-height: 1.5;
}
.navigation-links a {
  color: var(--green, #17664e);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.campus-card .navigation-links {
  margin-top: 14px;
}
.campus-card .navigation-links a {
  color: inherit;
}
.campus-card .navigation-links {
  display: flex;
}
.bus-card {
  padding: 0;
  overflow: hidden;
}
.bus-select {
  width: 100%;
  padding: 18px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.bus-save {
  border: 0;
  border-top: 1px solid #dce5dc;
  background: #f4f7f2;
  width: 100%;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  color: #17664e;
}
.bus-save[aria-pressed="true"] {
  background: #e0eddf;
}
.bus-save svg {
  width: 16px;
  height: 16px;
}
.source-choice {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 20px 0 6px;
}
.source-choice select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid #dce4dc;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.source-help,
.estimate-note {
  font-size: 11px;
  line-height: 1.6;
  color: #68786d;
}
.selected-route-name {
  font-size: 15px;
  margin-top: 16px;
}
.detail-route-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin: 20px 0;
}
.detail-route-heading span {
  color: #68786d;
}
.stop-timeline .navigation-links {
  font-size: 10px;
}
.stop-timeline li {
  padding-bottom: 14px;
}
.eta small {
  display: block;
  font-size: 10px;
}
.saved {
  background: #e0eddf;
}
.editor-map {
  height: 320px;
  min-height: 240px;
  width: 100%;
  border: 1px solid #dce4dc;
  border-radius: 10px;
  margin: 12px 0;
  isolation: isolate;
}
.editor-map .map-stop-label {
  cursor: grab;
}
.map-stop-label {
  background: #fff;
  border: 2px solid #17664e;
  border-radius: 50%;
  min-width: 26px;
  height: 26px;
  padding: 2px;
  color: #17664e;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 6px #0002;
}
.map-bus {
  background: #17664e;
  border: 2px solid white;
  border-radius: 7px;
  color: white;
  padding: 6px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 7px #0003;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}
.google-bus {
  min-width: 70px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stop-edit-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e6ece5;
}
.stop-edit-row input {
  min-width: 0;
  flex: 1;
  margin: 0;
}
.stop-edit-row b {
  font-size: 12px;
}
.stop-number {
  font-size: 10px;
  flex: 0 0 26px;
  text-align: center;
  color: #17664e;
  font-weight: 700;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.check-label input {
  width: auto !important;
  margin: 0 !important;
}
.place-results {
  display: grid;
  gap: 5px;
}
.place-results button {
  text-align: left;
  border: 1px solid #dce4dc;
  border-radius: 5px;
  background: #f5f8f3;
  padding: 8px;
  cursor: pointer;
}
.demo-search-note {
  font-size: 11px;
  color: #68786d;
}
gmp-place-autocomplete {
  width: 100%;
  margin: 10px 0;
}
.operations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.operations-grid .panel {
  min-width: 0;
}
.setup-panel {
  padding: 24px;
}
.setup-panel h2,
.swap-panel h2 {
  font-size: 18px;
}
.setup-panel p,
.swap-panel p {
  font-size: 12px;
  line-height: 1.7;
  color: #65746a;
}
.ops-alert-panel {
  grid-column: 1/-1;
}
.admin-actions {
  flex-wrap: wrap;
}
.table-actions {
  flex-wrap: wrap;
  min-width: 190px;
}
.weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.weekday-options label {
  display: flex !important;
  align-items: center;
  gap: 4px;
}
.weekday-options input {
  width: auto !important;
  margin: 0 !important;
}
fieldset {
  border: 1px solid #dce4dc;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
}
.import-summary {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}
.import-summary span {
  font-size: 12px;
  color: #65746a;
}
.error-list {
  max-height: 160px;
  overflow: auto;
  font-size: 12px;
  color: #a33b2c;
}
.driver-navigation {
  font-size: 12px;
  margin-top: 20px;
}
.driver-navigation > div {
  padding: 6px 0;
}
.swap-panel {
  grid-column: 1/-1;
  padding: 24px;
}
.route-navigation {
  margin-top: 14px;
  font-size: 12px;
}
.route-navigation > div {
  border-top: 1px solid #e6ece5;
  padding: 7px 0;
}
.save-route-card {
  margin-top: 18px;
}
footer .text-button {
  font-size: 11px;
}
dialog {
  width: min(740px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #102e265e;
}
@media (max-width: 700px) {
  .operations-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }
  .editor-map {
    height: 280px;
  }
  .table-actions {
    min-width: 150px;
  }
  .navigation-links {
    gap: 6px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .topbar {
    gap: 8px;
  }
  .topbar-right {
    gap: 6px;
  }
  .demo-tag {
    font-size: 8px;
  }
  .swap-panel {
    padding: 18px;
  }
  footer {
    flex-wrap: wrap;
  }
  .admin-actions .button {
    flex: 1;
    white-space: nowrap;
  }
}
.bus-card {
  flex-shrink: 0;
}
.campus-card:after {
  pointer-events: none;
}
.map-panel {
  align-self: start;
  width: 100%;
  height: 640px;
}
#map {
  min-height: 0;
  flex: 1;
}
.detail {
  max-height: 900px;
  overflow: auto;
}
@media (max-width: 700px) {
  .map-panel {
    height: 440px;
  }
  .detail {
    max-height: none;
  }
}

.breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.global-clock {
  font-size: 11px;
  color: #53665b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.service-tabs {
  display: flex;
  border: 1px solid #d7e4d8;
  border-radius: 9px;
  padding: 4px;
  gap: 4px;
  margin: 16px 0;
}
.service-tabs button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 9px;
  color: #52695c;
  font-size: 12px;
}
.service-tabs button[aria-pressed="true"] {
  background: #17664e;
  color: white;
}
.service-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #f2f6ef;
  border-radius: 8px;
}
.service-summary small,
.driver-contact small {
  display: block;
  font-size: 10px;
  color: #6a7d6d;
  margin-bottom: 6px;
}
.service-summary b {
  font-size: 14px;
}
.driver-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  padding: 12px 0;
  border-block: 1px solid #e5ebe1;
}
.driver-contact b {
  display: block;
  font-size: 12px;
}
.driver-contact .muted {
  font-size: 10px;
}
.journey-progress {
  font-size: 12px;
  line-height: 1.6;
  color: #17664e;
  padding: 12px;
  background: #edf4e8;
  border-radius: 8px;
  margin: 16px 0;
}
.journey-stops {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 !important;
}
.journey-stops li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 24px !important;
  border: 0 !important;
}
.journey-stops li:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 25px;
  bottom: 0;
  width: 2px;
  background: #dae4d6;
}
.journey-stops li:last-child:before {
  display: none;
}
.journey-dot {
  border: 1px solid #d0ddca;
  background: #fff;
  border-radius: 50%;
  font-size: 11px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.journey-stops b {
  font-size: 12px;
}
.journey-stops small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #708068;
  margin-top: 5px;
}
.journey-stops .passed .journey-dot {
  background: #dcebd5;
  color: #17664e;
}
.journey-stops .next .journey-dot {
  background: #17664e;
  color: #fff;
  border-color: #17664e;
}
.journey-bus {
  font-size: 8px;
  font-weight: 700;
  color: #17664e;
  background: #e4eddc;
  padding: 4px;
  border-radius: 4px;
  margin-left: auto;
}
.badge.waiting {
  background: #f6edcf;
  color: #8b7129;
}
.metrics-panel {
  margin: 20px 0;
  padding: 0 20px 20px;
}
.metrics-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 12px 0;
}
.metrics-controls label {
  font-size: 11px;
}
.metrics-controls select,
.metrics-controls input {
  display: block;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #dce4d6;
  border-radius: 6px;
}
.metric-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.metric-tiles > div {
  padding: 20px;
  background: #f0f6eb;
  border-radius: 8px;
}
.metric-tiles b {
  display: block;
  font-size: 26px;
  color: #17664e;
}
.metric-tiles span {
  font-size: 11px;
}
.assignment-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5ebdf;
}
.assignment-row > span {
  flex: 1;
  min-width: 0;
}
.assignment-row small {
  display: block;
  color: #708068;
  font-size: 11px;
}
.assignment-row label {
  max-width: 220px;
}
.route-card label {
  display: block;
  font-size: 12px;
  margin-top: 14px;
}
.route-card select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #dce4d6;
  border-radius: 7px;
}
.route-card .wide {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .topbar-right {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .global-clock {
    font-size: 10px;
  }
  .metric-tiles {
    gap: 6px;
  }
  .metric-tiles > div {
    padding: 10px;
  }
  .metric-tiles b {
    font-size: 22px;
  }
  .metric-tiles span {
    font-size: 9px;
  }
  .metrics-panel {
    padding: 0 12px 15px;
  }
  .assignment-row {
    flex-wrap: wrap;
  }
  .assignment-row > span {
    flex-basis: 100%;
  }
}
.route-grid.single-route {
  grid-template-columns: minmax(0, 900px);
}
.single-route .route-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
}
.single-route .journey-heading {
  grid-column: 1/-1;
}
.single-route .journey-heading .service-tabs {
  max-width: 360px;
}
.single-route .journey-controls {
  border-left: 1px solid #e1e8dd;
  padding-left: 24px;
}
.assigned-view .search,
.assigned-view .filters,
.assigned-view .fleet-foot {
  display: none;
}
.assigned-view .bus-list {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
}
@media (max-width: 700px) {
  .single-route .route-card {
    display: block;
  }
  .single-route .journey-controls {
    border-left: 0;
    border-top: 1px solid #e1e8dd;
    padding: 16px 0 0;
    margin-top: 12px;
  }
  .single-route .journey-heading .service-tabs {
    max-width: none;
  }
}

/* Keep conditional form fields hidden when layout rules set display. */
[hidden] {
  display: none !important;
}

.driver-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.driver-stats .stat b {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.schedule-preview-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-preview-row small {
  color: var(--muted);
}
@media (max-width: 700px) {
  .driver-stats {
    grid-template-columns: 1fr;
  }
}

.required-mark { color: #9b352d; font-weight: 700; }
