:root {
  color-scheme: light;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2c2c2c;
  background: #1d1d1d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #2fd9a8;
  --ink: #2c2c2c;
  --muted: #777;
  --border: #e5e7eb;
  --error: #e63238;
  --error-outline: rgb(255 0 0 / 40%);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --page-gutter: var(--space-5);
  --section-gap: var(--space-4);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

/* Modern Minimalist Scrollbar Defaults */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 9999px;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.52);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  background: #1d1d1d;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.canvas-viewport:focus-visible {
  outline: 3px solid #2fd9a8;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.role-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(47, 217, 168, 0.1), transparent 38%),
    #f8faf9;
}

.role-panel {
  width: min(100% - 40px, 380px);
  margin-top: -24px;
  text-align: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.brand-mark,
.workspace-title-mark,
.app-mark {
  display: grid;
  place-items: center;
  color: #132c25;
  background: var(--brand);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-mark svg,
.workspace-title-mark svg,
.app-mark svg {
  width: 20px;
  height: 20px;
}

.role-panel h1 {
  margin: 0;
  color: #252725;
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.role-copy {
  margin: 12px 0 34px;
  color: #626a66;
  font-size: 15px;
}

.role-actions {
  display: grid;
  gap: 12px;
}

.role-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.role-button:hover {
  transform: translateY(-1px);
}

.role-button svg {
  width: 20px;
  height: 20px;
}

.role-button-primary {
  background: var(--brand);
}

.role-button-primary:hover {
  background: #25c99a;
}

.role-button-secondary {
  border-color: #dfe5e2;
  background: rgba(255, 255, 255, 0.78);
}

.role-button-secondary:hover {
  border-color: #b7c9c1;
  background: #fff;
}

.role-note {
  min-height: 20px;
  margin: 16px 0 0;
  color: #47524c;
  font-size: 13px;
}

.role-footer {
  position: absolute;
  bottom: 24px;
  color: #666e6a;
  font-size: 12px;
}

.workspace-page {
  display: flex;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background: #1d1d1d;
  color: #fff;
}

.workspace-header {
  display: grid;
  z-index: 2;
  height: 64px;
  flex: 0 0 64px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #1d1d1d;
}

.back-button,
.fit-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d0d0d0;
  cursor: pointer;
  font-size: 13px;
}

.back-button:hover,
.fit-button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.back-button svg {
  width: 18px;
  height: 18px;
}

.workspace-title {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #d0d0d0;
  font-size: 13px;
}

.workspace-title strong {
  color: #f4f4f4;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.workspace-title-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
}

.workspace-title-mark svg {
  width: 16px;
  height: 16px;
}

.workspace-divider,
.zoom-separator {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.zoom-controls {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-self: end;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: #262626;
}

.zoom-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.zoom-button:hover {
  background: rgba(255, 255, 255, 0.11);
}

.fullscreen-button svg {
  width: 16px;
  height: 16px;
}

.fullscreen-status:empty {
  display: none;
}

.fullscreen-status:not(:empty) {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 5;
  max-width: min(360px, calc(100vw - 32px));
  padding: 9px 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 7px;
  background: #351c22;
  color: #fecaca;
  font-size: 12px;
}

.zoom-level {
  min-width: 40px;
  color: #ededed;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.zoom-separator {
  margin: 0 5px;
}

.fit-button {
  padding: 7px 10px;
}

@media (max-width: 480px) {
  .workspace-header {
    height: 88px;
    flex-basis: 88px;
    grid-template-columns: 1fr 1fr;
    padding: 6px 12px;
  }

  .back-button {
    grid-column: 1;
    grid-row: 1;
    padding: 6px;
  }

  .workspace-title {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .zoom-controls {
    grid-column: 2;
    grid-row: 1;
    gap: 2px;
  }

  .zoom-button {
    width: 25px;
    height: 26px;
  }

  .zoom-level {
    min-width: 32px;
  }

  .zoom-separator {
    margin: 0 2px;
  }

  .fit-button {
    padding: 5px 6px;
    font-size: 12px;
  }
}

.canvas-viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#workspace-page:fullscreen {
  width: 100vw;
  height: 100vh;
}

.canvas-viewport.is-dragging {
  cursor: grabbing;
}

.canvas-world {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 393px;
  height: 852px;
}

.canvas-world.is-admin {
  width: 1380px;
  height: 870px;
}

.phone-screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 45px;
  background: #fff;
  color: var(--ink);
  user-select: none;
}

.phone-screen.is-admin {
  width: 1380px;
  height: 870px;
  border-radius: 16px;
  background: #0a0e14;
  color: #f1f5f9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
}

.phone-screen input {
  user-select: text;
  -webkit-user-select: text;
}

.auth-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, -50%);
}

.auth-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: 40px;
}

.app-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.app-mark svg {
  width: 27px;
  height: 27px;
}

.auth-brand h2 {
  margin: 0;
  color: #303030;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.auth-brand h2 span {
  color: #16a77f;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-field label {
  color: #363636;
  font-size: 11px;
  font-weight: 500;
}

.form-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  background: #f7f7f7;
  color: #454545;
  font-size: 12px;
  outline: none;
}

.form-field input::placeholder {
  color: #777;
}

.form-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 217, 168, 0.16);
}

.field-error {
  color: var(--error);
  font-size: 11px;
}

.form-field input[aria-invalid="true"] {
  border-color: var(--error-outline);
}

.is-error .form-field {
  gap: 7px;
  margin-bottom: 14px;
}

.is-error .form-field label,
.is-error .forgot-link {
  color: var(--error);
}

.is-error .form-field input {
  border-color: var(--error-outline);
  background: #fffafa;
  color: var(--error);
}

.form-alert {
  display: grid;
  min-height: 45px;
  place-items: center;
  margin: -2px 0 18px;
  padding: 8px;
  border: 1px solid var(--error-outline);
  border-radius: 7px;
  background: #ffe7e7;
  color: var(--error);
  font-size: 12px;
}

.text-link.forgot-link {
  align-self: flex-end;
  margin-top: -3px;
  margin-bottom: 27px;
  color: var(--brand);
  font-size: 11px;
}

.text-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
}

.text-link:hover {
  color: #14b888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #173b30;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  transition: background-color 140ms ease;
}

.login-button:hover {
  background: #23c99a;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 20px;
  color: #666;
  font-size: 11px;
}

.social-divider span:first-child,
.social-divider span:last-child {
  height: 1px;
  flex: 1;
  background: #e5e7eb;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dce0e4;
  border-radius: 8px;
  background: #fff;
  color: #707070;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
  padding: 0;
}

.social-button:hover {
  border-color: #aebbb5;
  background: #f8fbf9;
}

.social-button svg {
  width: 22px;
  height: 22px;
}

.register-copy {
  margin: 18px 0 0;
  color: #666;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.register-copy .text-link,
.register-copy .text-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.register-copy .text-link {
  font-size: inherit;
}

/* Mobile Auth Helper Bar & Chips */
.auth-helper-bar {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 0 16px;
}

.auth-helper-chip {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.auth-helper-chip:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.auth-helper-chip:active {
  transform: translateY(1px);
}

.screen-title {
  margin: 0 0 20px;
  color: #303030;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.register-content {
  top: 50%;
}

.register-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.register-form .form-field {
  margin-bottom: 14px;
}

.register-form .form-field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.register-form .form-field input {
  height: 38px;
  border-radius: 8px;
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.register-form .password-input-wrap input {
  padding-right: 56px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transform: translateY(-50%);
}

.terms-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
}

.terms-consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.terms-consent input:focus-visible {
  outline: 2px solid #176e54;
  outline-offset: 2px;
}

.terms-consent input[aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.terms-copy {
  margin: 0 0 14px;
  color: #696969;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
}

.terms-copy .text-link {
  font-size: inherit;
  color: var(--brand);
}

.terms-error {
  margin: 0 0 8px 23px;
  font-size: 10px;
}

.register-form .login-button {
  margin-top: 4px;
}

.text-link.service-link {
  align-self: center;
  margin-top: 6px;
  color: var(--brand);
  font-size: 11px;
}

.interaction-message {
  min-height: 16px;
  margin: 8px 0 0;
  color: #515b56;
  font-size: 11px;
  text-align: center;
}

.verification-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.verification-content > * {
  width: min(300px, calc(100% - 48px));
  max-width: calc(100% - 48px);
}

.verification-copy {
  margin: var(--space-4) 0 var(--space-5);
  color: #7b7b7b;
  font-size: 12px;
  line-height: 1.7;
}

.verification-copy span {
  color: #3c3c3c;
}

.verification-form {
  display: flex;
  flex-direction: column;
}

.verification-form .login-button {
  margin-top: 6px;
}

.verification-resend {
  margin: 12px 0 0;
  color: #7a7a7a;
  font-size: 11px;
}

.verification-robot {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

.mascot-illustration {
  display: block;
  width: 182px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.robot-copy {
  margin: 0;
  color: #515151;
  font-size: 12px;
  line-height: 1.7;
}

.success-content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 300px;
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -50%);
  text-align: center;
}

.success-content > * {
  animation: welcome-enter 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-content > .success-robot { animation-delay: 100ms; }
.success-content > .success-copy { animation-delay: 200ms; }
.success-content > .success-loading { animation-delay: 300ms; }

.success-content.is-leaving > * {
  animation: welcome-exit 320ms cubic-bezier(.4, 0, 1, 1) both;
}

.success-content.is-leaving > .success-robot { animation-delay: 40ms; }
.success-content.is-leaving > .success-copy { animation-delay: 80ms; }
.success-content.is-leaving > .success-heading { animation-delay: 120ms; }

@keyframes welcome-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcome-exit {
  to {
    opacity: 0;
    transform: translateY(-14px) scale(.985);
  }
}

@keyframes welcome-exit-fade {
  to { opacity: 0; }
}

.success-heading {
  margin: 0;
  color: #303030;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.success-heading span {
  display: inline-block;
  margin-top: 8px;
}

.success-robot {
  margin-top: 18px;
}

.success-copy {
  margin-top: 10px;
}

.success-loading {
  width: 18px;
  height: 18px;
  margin-top: 24px;
  color: var(--brand);
}

.success-loading svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 70 30;
  stroke-linecap: round;
  stroke-width: 3;
  animation: success-spin 800ms linear infinite;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes success-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .success-content > * { animation: none; }
  .success-content.is-leaving > * { animation: welcome-exit-fade 180ms linear both; }
  .success-content.is-leaving > .success-robot,
  .success-content.is-leaving > .success-copy,
  .success-content.is-leaving > .success-heading { animation-delay: 0ms; }
  .success-loading svg { animation: none; }
}

.backend-content {
  position: absolute;
  top: 245px;
  left: 50%;
  display: flex;
  width: 315px;
  align-items: center;
  flex-direction: column;
  transform: translateX(-50%);
  text-align: center;
}

.backend-illustration {
  display: block;
  width: 205px;
  height: 170px;
  margin: 0 0 12px;
  object-fit: contain;
  user-select: none;
}

.backend-content h2 {
  margin: 0;
  color: #303030;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.backend-content > p {
  margin: 17px 0 0;
  color: #686868;
  font-size: 12px;
  line-height: 1.8;
}

.backend-links {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 43px;
}

.backend-links button {
  font-size: 12px;
}

.secondary-link {
  color: #646464;
}

.back-to-login {
  margin-top: 23px;
  padding: 7px 12px;
  border: 1px solid #e4e9e6;
  border-radius: 6px;
  background: #fff;
  color: #515b56;
  cursor: pointer;
  font-size: 11px;
}

.back-to-login:hover {
  border-color: var(--brand);
}

.canvas-hint {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 11px 16px 13px;
  background: #1d1d1d;
  color: #b5b5b5;
  font-size: 11px;
  pointer-events: none;
  text-align: center;
}

.canvas-hint > span:first-child {
  color: #e0e0e0;
  font-size: 15px;
  vertical-align: -1px;
}

.hint-divider {
  padding: 0 7px;
  color: #777;
}

.success-continue {
  margin-top: 24px;
}

.commuter-app,
.ride-results,
.booking-confirmed {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f7f8f8;
  color: #202724;
}

.commuter-app {
  --home-radius-feature: 26px;
  --home-radius-card: 17px;
  --home-radius-control: 13px;
  --home-radius-icon: 10px;
}

.screen-enter {
  animation: commuter-screen-enter 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes commuter-screen-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-scroll {
  position: absolute;
  inset: 0 0 70px;
  overflow-y: auto;
  scrollbar-width: none;
}
.home-scroll > .home-header { position: sticky; z-index: 4; top: 0; }

.home-scroll::-webkit-scrollbar,
.tab-content::-webkit-scrollbar,
.settings-scroll::-webkit-scrollbar,
.ride-results::-webkit-scrollbar,
.booking-confirmed::-webkit-scrollbar,
.bottom-sheet::-webkit-scrollbar,
.bus-popup-scroll::-webkit-scrollbar,
.seat-detail-booking-scroll::-webkit-scrollbar { display: none; }

.home-scroll,
.tab-content,
.settings-scroll,
.ride-results,
.booking-confirmed,
.bottom-sheet,
.bus-popup-scroll,
.seat-detail-booking-scroll { scrollbar-width: none; }

.home-header {
  position: relative;
  height: 220px;
  min-height: 220px;
  padding: 0 var(--page-gutter);
  border-radius: 0 0 var(--home-radius-feature) var(--home-radius-feature);
  background: linear-gradient(145deg, #2fd9a8, #28b996);
  color: #fff;
}

.home-header-content {
  position: absolute;
  right: var(--page-gutter);
  bottom: var(--page-gutter);
  left: var(--page-gutter);
}

.home-greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-kicker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  color: #e7fff7;
  font-size: 12px;
  letter-spacing: .02em;
}

.location-kicker svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-greeting-row h1 {
  max-width: 280px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.notification-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: var(--home-radius-control);
  background: rgba(255, 255, 255, .24);
  color: white;
  cursor: pointer;
}

.notification-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.notification-button .notification-count {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid #28b994;
  border-radius: 50%;
  background: #b83d34;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.notification-button .notification-count[hidden] { display: none; }
.notification-button:focus-visible { outline: 2px solid #176e54; outline-offset: 2px; }

.destination-search {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: var(--home-radius-control);
  background: #fff;
  color: #7c8883;
}

.destination-search > svg,
.destination-search button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.destination-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #26352f;
  font-size: 14px;
  outline: none;
}

.destination-search input::placeholder {
  color: #69756f;
}

.destination-search button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #147d61;
  cursor: pointer;
}

.home-shortcuts {
  display: flex;
  width: 100%;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.home-shortcuts::-webkit-scrollbar { display: none; }

.home-shortcuts button {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.home-shortcuts button:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.3); }

.home-shortcuts svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pouch-panel {
  display: flex;
  height: 72px;
  align-items: center;
  gap: var(--space-3);
  margin: var(--section-gap) var(--page-gutter) 0;
  padding: var(--space-3) 14px;
  border: 1px solid #dce2e0;
  border-radius: var(--home-radius-card);
  background: #fff;
}

.pouch-panel > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.pouch-panel > div span {
  color: #858b89;
  font-size: 11px;
  font-weight: 500;
}

.pouch-panel > div strong {
  color: #202724;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.pouch-panel > button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #cdd7d3;
  border-radius: 10px;
  background: #fff;
  color: #26332e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pouch-panel > button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.pouch-panel > button:hover { border-color: #93b9aa; background: #f6fbf9; }
.pouch-panel > button:focus-visible { outline: 2px solid #176e54; outline-offset: 2px; }

.pouch-icon {
  display: block;
  width: 36px;
  height: 34px;
  flex: 0 0 36px;
}

.pouch-icon svg { display: block; width: 100%; height: 100%; }

.home-map-section {
  position: relative;
  height: 175px;
  margin: var(--section-gap) var(--page-gutter) 0;
  overflow: hidden;
  border: 1px solid #dce2e0;
  border-radius: var(--home-radius-card);
  background: #e8ecea;
}

.map-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #e9edeb;
  background-image:
    linear-gradient(28deg, transparent 48%, rgba(255,255,255,.95) 49%, rgba(255,255,255,.95) 52%, transparent 53%),
    linear-gradient(112deg, transparent 47%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.88) 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(199,208,203,.35) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(199,208,203,.35) 40px 41px);
}

.map-scene {
  position: absolute;
  inset: 0;
}

.map-block {
  position: absolute;
  display: block;
  border: 1px solid rgba(202, 213, 207, .5);
  border-radius: 4px;
  background: rgba(255, 255, 255, .56);
  transform: rotate(-16deg);
}

.map-block-one { top: 12%; left: 13%; width: 21%; height: 20%; }
.map-block-two { top: 60%; left: 5%; width: 24%; height: 17%; }
.map-block-three { top: 15%; right: 9%; width: 25%; height: 20%; }
.map-block-four { right: 21%; bottom: 4%; width: 19%; height: 22%; }

.map-park {
  position: absolute;
  border: 1px solid rgba(121, 172, 142, .48);
  border-radius: 5px;
  background: rgba(174, 216, 184, .62);
}

.map-park-one { top: 18%; left: 8%; width: 17%; height: 8%; transform: rotate(-12deg); }
.map-park-two { right: 8%; bottom: 31%; width: 18%; height: 10%; transform: rotate(9deg); }

.map-roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-roads path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.road-local {
  stroke: rgba(255, 255, 255, .76);
  stroke-width: 3;
}

.road-main {
  stroke: #fff;
  stroke-width: 15;
}

.road-secondary {
  stroke: rgba(255,255,255,.96);
  stroke-width: 8;
}

.route-line {
  stroke-width: 5;
  stroke-dasharray: 8 5;
  transition: stroke-width 400ms ease, opacity 400ms ease;
  animation: route-flow 2.5s linear infinite;
}
.route-line-normal { stroke: #159b72; }
.route-line-moderate { stroke: #e5a021; }
.route-line-congested { stroke: #d84e57; }

.map-junction {
  fill: #fff;
  stroke: #87bba4;
  stroke-width: 3;
}

.map-label {
  position: absolute;
  color: #6c7b74;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.map-label-one { left: 9%; bottom: 12%; }
.map-label-two { top: 15%; right: 15%; }

.map-marker {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 31px;
  place-items: center;
  filter: drop-shadow(0 2px 2px rgba(20, 45, 36, .2));
}

.map-marker::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(47, 217, 168, .68);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.55);
  animation: location-ping 2.2s ease-out infinite;
}

.map-marker svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: #118d6b;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-marker svg circle {
  fill: #fff;
}

.map-marker-start { top: 13%; left: 29%; }
.map-marker-bus { top: 38%; left: 51%; width: 30px; height: 30px; }
.map-art:not(.is-live):not(.is-compact) .map-marker-bus { animation: preview-bus-drift 14s ease-in-out infinite alternate; }
.map-marker-bus::before { border-color: rgba(215, 155, 53, .72); }
.map-marker-bus svg { padding: 4px; border-radius: 50%; background: #d79b35; fill: none; stroke: #fff; stroke-width: 1.7; }
.map-marker-destination { top: 21%; right: 21%; }

.map-district-label {
  position: absolute;
  z-index: 1;
  padding: 3px 5px;
  border: 1px solid rgba(207, 217, 211, .72);
  border-radius: 4px;
  background: rgba(255, 255, 255, .83);
  color: #66756d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  white-space: nowrap;
}

.district-malolos { top: 82%; left: 7%; }
.district-bocaue { top: 65%; right: 7%; }
.district-marilao { top: 47%; left: 6%; }
.district-balintawak { top: 27%; right: 7%; }
.district-trinoma { top: 8%; right: 18%; }

@keyframes location-ping {
  0% { opacity: .82; transform: translate(-50%, -50%) scale(.55); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes route-flow {
  to { stroke-dashoffset: -26; }
}

@keyframes preview-bus-drift {
  to { translate: 9px -7px; }
}

.expand-map {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  border: 1px solid #d8dfdc;
  border-radius: var(--home-radius-icon);
  background: #fff;
  color: #15785f;
  cursor: pointer;
}

.expand-map svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.map-compass { position: absolute; top: 8px; left: 9px; color: #66766e; font-size: 11px; font-weight: 700; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: var(--section-gap) var(--page-gutter) 0;
}

.home-stats > div {
  display: grid;
  min-height: 53px;
  grid-template-columns: 23px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  padding: 6px 7px;
  border: 1px solid #d8dfdc;
  border-radius: var(--home-radius-control);
  background: #fff;
}

.home-stats svg {
  width: 19px;
  height: 19px;
  grid-row: 1 / 3;
  fill: none;
  stroke: #168567;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-stats strong { align-self: end; font-size: 13px; line-height: 1.1; }
.home-stats span { align-self: start; color: #4f5d56; font-size: 11px; }

.vehicle-section {
  margin: var(--section-gap) var(--page-gutter) var(--section-gap);
}

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

.section-heading h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.section-heading > span { display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 12px; background: #d9f4eb; color: #126346; font-size: 11px; font-weight: 600; }
.section-heading > span i { width: 5px; height: 5px; border-radius: 50%; background: #147c5b; }

.vehicle-row {
  display: flex;
  width: 100%;
  min-height: 59px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #dce2e0;
  border-radius: var(--home-radius-control);
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.vehicle-row:hover { border-color: #76cbb1; }
.vehicle-logo,
.ride-logo {
  display: flex;
  width: 34px;
  height: 36px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: var(--home-radius-icon);
  background: #08795d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.vehicle-logo small,
.ride-logo small { font-size: 8px; }
.vehicle-logo.ochre { background: #a46a08; }
.vehicle-info { min-width: 0; flex: 1; }
.vehicle-info strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-info small { display: block; margin-top: 4px; overflow: hidden; color: #46534d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-eta { flex: 0 0 auto; color: #188b68; font-size: 12px; font-weight: 650; text-align: right; }
.vehicle-eta small { display: block; margin-top: 3px; color: #46534d; font-size: 11px; font-weight: 400; }
.vehicle-eta.soon { color: #a66b06; }
.home-demo-note { margin: 10px 0 14px; color: #46534d; font-size: 11px; text-align: center; }

.app-navigation {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px 5px;
  border-top: 1px solid #e4e8e6;
  border-radius: var(--home-radius-card) var(--home-radius-card) 0 0;
  background: #fff;
}

.nav-item {
  display: flex;
  min-width: 0;
  height: 56px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #737d78;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover { background: #f1f8f5; color: #123f32; }
.nav-item:active { transform: scale(.96); }
.nav-item.is-active { background: #e8f7f1; color: #123f32; font-weight: 650; }
.nav-item.is-active svg { stroke-width: 2.2; }

.nav-book {
  display: flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  margin-top: -18px;
  border: 0;
  border-radius: 17px;
  background: #23bf92;
  box-shadow: 0 3px 8px rgba(13, 98, 72, .25);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  transition: background-color 140ms ease, transform 140ms ease;
}

.nav-book svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.nav-book:hover { background: #18a97f; }
.nav-book:active { transform: scale(.96); }
.prototype-stamp { position: absolute; bottom: 76px; left: 0; width: 100%; margin: 0; color: #46534d; font-size: 11px; text-align: center; pointer-events: none; }
.home-scroll + .app-navigation + .prototype-stamp { background: rgba(255,255,255,.82); }

.modal-scrim {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(23, 31, 28, .42);
}
.modal-scrim.is-closing { pointer-events: none; }

.bottom-sheet {
  position: relative;
  width: 100%;
  max-height: 92%;
  overflow-y: auto;
  padding: var(--space-4) 22px var(--space-6);
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(19, 38, 30, .12);
  animation: bottom-sheet-rise 240ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes bottom-sheet-rise {
  from { opacity: .92; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.bottom-sheet.is-closing { animation: bottom-sheet-dismiss 140ms cubic-bezier(.4, 0, .8, 1) both; }
@keyframes bottom-sheet-dismiss {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: .98; transform: translateY(18px); }
}

.sheet-handle { display: block; width: 48px; height: 4px; margin: 0 auto 17px; border-radius: 4px; background: #d8ddda; }
.modal-close { position: absolute; top: 42px; right: 20px; display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #e4e7e9; color: #59615e; cursor: pointer; font-size: 20px; line-height: 1; }
.bottom-sheet h2,
.booking-dialog h2 { margin: 0; color: #171d1a; font-size: 19px; letter-spacing: -.035em; }
.sheet-subtitle { margin: 4px 0 18px; color: #7d8581; font-size: 11px; }

.route-fields { position: relative; display: grid; gap: var(--space-2); margin: var(--space-4) 0 18px; }
.route-fields::before { position: absolute; top: 26px; bottom: 26px; left: 11px; width: 1px; background: #bdc8c3; content: ""; }
.route-fields label { position: relative; display: flex; height: 39px; align-items: center; gap: 10px; padding: 0 10px; border: 1px solid #d9dfdc; border-radius: 8px; background: #fff; }
.route-fields input { width: 100%; min-width: 0; border: 0; color: #29332f; background: transparent; font-size: 12px; outline: none; }
.route-dot { z-index: 1; width: 12px; height: 12px; flex: 0 0 12px; border: 3px solid #2b90d9; border-radius: 50%; background: #fff; }
.destination-dot { border-color: #cb4d2f; }
.sheet-label { display: block; margin: 14px 0 var(--space-2); color: #68766e; font-size: 11px; }
.passenger-stepper { display: flex; height: 43px; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #d9dfdc; border-radius: 8px; background: #fff; color: #39423e; font-size: 12px; }
.passenger-stepper > div { display: flex; align-items: center; gap: 9px; }
.passenger-stepper strong { min-width: 12px; text-align: center; }
.passenger-stepper button { display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 1px solid #cbd3cf; border-radius: 50%; background: #fff; color: #167a5f; cursor: pointer; font-size: 15px; }
.passenger-stepper button:last-child { border-color: #107d5d; background: #107d5d; color: #fff; }
.payment-options { display: grid; gap: var(--space-2); }
.payment-option { position: relative; display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #d9dfdc; border-radius: 8px; cursor: pointer; }
.payment-option.selected, .payment-option:has(input:checked) { border-color: #32b993; background: #eefff8; }
.payment-option input { position: absolute; top: 50%; right: 8px; width: 14px; height: 14px; margin: 0; accent-color: #108363; transform: translateY(-50%); }
.payment-icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid #cdd6d2; border-radius: 5px; color: #82908a; font-size: 14px; }
.payment-icon.gcash { border-color: #1978dc; background: #0878ee; color: #fff; font-size: 16px; font-weight: 800; }
.payment-icon.card-icon { background: #a56d0b; color: white; }
.payment-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.payment-option > span:nth-of-type(2) { display: grid; gap: 3px; }
.payment-option strong { color: #303a35; font-size: 11px; }
.payment-option small { color: #8b938f; font-size: 8px; }
.payment-option em { color: #df5b56; font-style: normal; }
.payment-option > button { margin-left: auto; padding: 5px 7px; border: 0; border-radius: 4px; background: #11805f; color: #fff; cursor: pointer; font-size: 8px; }
.sheet-primary { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; gap: 9px; margin-top: var(--space-4); border: 0; border-radius: 7px; background: #107a5b; color: #fff; cursor: pointer; font-size: 12px; font-weight: 650; }
.sheet-primary span { font-size: 17px; line-height: 1; }

.home-shortcut-sheet { max-height: 88%; }
.home-shortcut-route-list,
.home-nearby-stop-list { display: grid; gap: 9px; }
.home-shortcut-route,
.home-nearby-route { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e1e7e4; border-radius: 10px; background: #fbfdfc; }
.home-shortcut-route > div:first-child,
.home-nearby-route > div { display: grid; flex: 1; min-width: 0; gap: 4px; }
.home-shortcut-route strong,
.home-nearby-route strong { color: #29332f; font-size: 12px; line-height: 1.35; }
.home-shortcut-route small,
.home-nearby-route small { color: #74817b; font-size: 10px; line-height: 1.4; }
.home-shortcut-route-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.home-route-toggle,
.home-route-use { min-height: 30px; padding: 0 9px; border: 1px solid #cbd9d2; border-radius: 7px; background: #fff; color: #18785d; cursor: pointer; font-size: 10px; font-weight: 650; white-space: nowrap; }
.home-route-toggle.is-saved,
.home-route-use { border-color: #148161; background: #148161; color: #fff; }
.home-shortcut-note { margin: 12px 0 0; color: #77827d; font-size: 10px; line-height: 1.5; }
.home-trip-readiness { display: grid; gap: 14px; }
.home-trip-readiness-heading { display: grid; gap: 6px; }
.home-trip-readiness-heading > strong { color: #29332f; font-size: 14px; line-height: 1.4; }
.home-trip-readiness-heading > small { color: #74817b; font-size: 10px; line-height: 1.4; }
.home-trip-readiness-status { display: inline-flex; width: fit-content; align-items: center; gap: 5px; color: #117a5c; font-size: 10px; font-weight: 700; }
.home-trip-readiness-status svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-trip-readiness-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin: 0; padding: 12px 0; border-top: 1px solid #e1e7e4; border-bottom: 1px solid #e1e7e4; }
.home-trip-readiness-facts div { display: grid; min-width: 0; gap: 4px; }
.home-trip-readiness-facts dt { color: #74817b; font-size: 10px; }
.home-trip-readiness-facts dd { overflow-wrap: anywhere; margin: 0; color: #29332f; font-size: 11px; font-weight: 650; line-height: 1.4; }
.home-trip-readiness-actions { display: flex; gap: 8px; }
.home-trip-readiness-primary,
.home-trip-readiness-secondary { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid #148161; border-radius: 7px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.home-trip-readiness-primary { background: #148161; color: #fff; }
.home-trip-readiness-secondary { background: #fff; color: #148161; }
.home-trip-readiness-empty { display: grid; justify-items: center; gap: 9px; padding: 12px 4px 2px; text-align: center; }
.home-trip-readiness-empty > svg { width: 30px; height: 30px; fill: none; stroke: #148161; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-trip-readiness-empty h3 { margin: 0; color: #29332f; font-size: 14px; }
.home-trip-readiness-empty p { max-width: 250px; margin: 0; color: #68766e; font-size: 11px; line-height: 1.5; }
.home-nearby-section-title { margin: 16px 0 8px; color: #536159; font-size: 11px; font-weight: 650; }
.home-nearby-vehicle-list { display: grid; gap: 7px; }
.home-nearby-vehicle { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e1e7e4; border-radius: 9px; }
.home-nearby-vehicle > span:first-child { display: grid; flex: 1; gap: 3px; }
.home-nearby-vehicle strong { color: #29332f; font-size: 11px; }
.home-nearby-vehicle small { color: #74817b; font-size: 9px; }
.home-nearby-eta { color: #16805f; font-size: 10px; font-weight: 650; white-space: nowrap; }
.home-nearby-vehicle button { min-height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: #148161; color: #fff; cursor: pointer; font-size: 10px; font-weight: 650; }
.home-stop-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; background: #e4f7f0; color: #138263; }
.home-stop-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ride-results { padding: 0 0 14px; overflow-y: auto; }
.results-header { display: flex; min-height: 87px; align-items: center; gap: var(--space-3); padding: 18px var(--page-gutter) 12px; background: #fff; }
.round-back { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #e3e6e8; color: #424b47; cursor: pointer; font-size: 24px; line-height: 1; }
.results-header h1 { margin: 0; color: #1d2421; font-size: 14px; font-weight: 700; line-height: 1.25; }
.results-header h1 span { display: block; }
.results-header p { margin: 3px 0 0; color: #858e89; font-size: 10px; }
.results-map { position: relative; height: 150px; margin: 0 var(--page-gutter) var(--space-4); overflow: hidden; border-radius: 10px; }
.map-art.is-compact .map-label { display: none; }
.map-art.is-compact .map-marker { transform: scale(.88); }
.map-art.is-compact .map-marker-start { top: 52%; left: 15%; }
.map-art.is-compact .map-marker-bus { top: 36%; left: 47%; }
.map-art.is-compact .map-marker-destination { top: 11%; right: 12%; }
.destination-label { position: absolute; right: 12px; top: 7px; padding: 4px 6px; border-radius: 4px; background: rgba(255,255,255,.9); color: #505d56; font-size: 8px; }
.result-filter { display: flex; gap: var(--space-2); margin: 0 var(--page-gutter) var(--space-3); }
.result-filter button { min-width: 85px; height: 28px; padding: 0 12px; border: 1px solid #dfe5e2; border-radius: 16px; background: #fff; color: #7a8580; cursor: pointer; font-size: 10px; }
.result-filter .filter-selected { border-color: #0f795b; background: #0f795b; color: #fff; }
.ride-list { display: grid; gap: 10px; padding: 0 var(--page-gutter); }
.ride-card { position: relative; display: grid; min-height: 92px; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 10px; border: 1px solid #dce3df; border-radius: 8px; background: #fff; }
.ride-logo { width: 33px; height: 35px; flex-basis: 33px; }
.ride-detail { min-width: 0; padding-top: 1px; }
.ride-detail h2 { margin: 0; color: #27332d; font-size: 10px; line-height: 1.25; }
.ride-detail p { margin: 3px 0 9px; color: #87908c; font-size: 8px; }
.ride-detail > span { color: #13815f; font-size: 8px; }
.ride-arrival { color: #168461; font-size: 10px; text-align: right; white-space: nowrap; }
.ride-arrival small { display: block; margin-top: 2px; color: #99a09d; font-size: 7px; }
.ride-book { position: absolute; right: 8px; bottom: 7px; min-width: 47px; height: 22px; border: 0; border-radius: 4px; background: #0f795b; color: #fff; cursor: pointer; font-size: 9px; font-weight: 600; }
.ride-book:disabled { background: #a5aaa8; cursor: not-allowed; }
.ride-card.is-sold-out .ride-logo { filter: grayscale(1); opacity: .55; }
.ride-card.is-sold-out .ride-detail > span,
.ride-card.is-sold-out .ride-arrival { color: #919895; }

.with-confirmation { overflow: hidden; }
.with-confirmation > .ride-results { position: absolute; inset: 0; width: 100%; height: 100%; }
.with-confirmation > .modal-scrim { align-items: center; padding: 14px; }
.top-up-modal-scrim { z-index: 10; align-items: center; padding: 18px; }
.booking-dialog { position: relative; width: 100%; padding: 19px 15px 13px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.booking-dialog .modal-close { top: 17px; right: 14px; }
.booking-dialog h2 { padding-right: 29px; font-size: 17px; }
.booking-dialog .sheet-subtitle { margin-bottom: 13px; }
.departure-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 9px; margin-top: 11px; }
.departure-fields label { color: #64716b; font-size: 9px; font-weight: 650; }
.departure-fields input { width: 100%; height: 33px; padding: 0 7px; border: 1px solid #dce4df; border-radius: 6px; background: #fff; color: #26352e; font: inherit; font-size: 10px; }
.departure-fields input:focus-visible { outline: 2px solid #168564; outline-offset: 1px; }
.departure-fields input[aria-invalid="true"] { border-color: #b94b3f; }
.booking-demo-note { margin: 6px 0 0; color: #77837d; font-size: 8px; line-height: 1.35; }
.booking-date-error { margin: 5px 0 0; color: #a14343; font-size: 9px; }
.top-up-message { display: grid; justify-items: center; gap: 12px; padding: 18px 8px; text-align: center; }
.top-up-message h2 { padding: 0; }
.top-up-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #e8f8f2; color: #107a5b; }
.top-up-icon svg { width: 24px; height: 24px; }
.password-updated-icon { background: #e8f8f2; color: #107a5b; }
.confirm-route { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid #e2e7e4; }
.confirm-route > div { display: grid; gap: 4px; }
.confirm-route strong { font-size: 11px; }
.confirm-route small { color: #88918d; font-size: 8px; line-height: 1.4; }
.confirm-route > div > span { color: #148160; font-size: 8px; }
.fare-breakdown { display: grid; gap: 8px; margin: 12px 0; }
.fare-breakdown div { display: flex; justify-content: space-between; color: #858d89; font-size: 10px; }
.fare-breakdown dd { margin: 0; }
.fare-breakdown .fare-total { padding-top: 8px; border-top: 1px solid #e3e7e5; color: #202824; font-size: 11px; font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-actions button { min-width: 68px; height: 32px; padding: 0 12px; border: 1px solid #d2dad6; border-radius: 5px; background: #fff; color: #68726d; cursor: pointer; font-size: 10px; }
.dialog-actions .confirm-action { border-color: #107a5b; background: #107a5b; color: #fff; font-weight: 650; }

.booking-confirmed { display: flex; align-items: center; flex-direction: column; padding: 28px 16px 16px; overflow-y: auto; background: linear-gradient(#2fc29b 0 34%, #f5f6f6 34%); text-align: center; }
.confirmed-back { position: absolute; top: 58px; left: 18px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255,255,255,.36); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
.confirmed-check { display: grid; width: 54px; height: 54px; place-items: center; margin-top: 52px; border-radius: 50%; background: rgba(255,255,255,.36); color: #fff; font-size: 26px; }
.booking-confirmed > h1 { margin: 14px 0 4px; color: #fff; font-size: 20px; letter-spacing: -.03em; }
.booking-confirmed > p:not(.prototype-stamp) { margin: 0; color: #e4fff6; font-size: 11px; }
.ticket-panel { width: 100%; margin-top: 19px; padding: 18px 15px 14px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(24, 45, 36, .15); text-align: left; }
.demo-qr { position: relative; width: 124px; height: 124px; margin: 0 auto 10px; border: 5px solid #fff; outline: 2px solid #202724; background-color: #fff; background-image: repeating-conic-gradient(#17211d 0% 25%, transparent 0% 50%); background-size: 12px 12px; }
.demo-qr::before,
.demo-qr::after,
.demo-qr i { position: absolute; z-index: 1; width: 31px; height: 31px; border: 5px solid #17211d; background: #fff; content: ""; }
.demo-qr::before { top: 2px; left: 2px; }
.demo-qr::after { top: 2px; right: 2px; }
.demo-qr i:first-child { bottom: 2px; left: 2px; }
.demo-qr i:nth-child(2) { top: 10px; left: 10px; width: 15px; height: 15px; border: 4px solid #17211d; background: #17211d; }
.demo-qr i:nth-child(3) { top: 10px; right: 10px; width: 15px; height: 15px; border: 4px solid #17211d; background: #17211d; }
.demo-qr b { position: absolute; bottom: 10px; left: 10px; z-index: 2; width: 15px; height: 15px; border: 4px solid #17211d; background: #17211d; }
.ticket-code-note { margin: 0 0 8px; color: #8a938e; font-size: 8px; text-align: center; }
.ticket-caption { display: block; color: #909894; font-size: 9px; text-align: center; }
.ticket-number { display: block; margin: 3px 0 12px; color: #1d2421; font-size: 17px; letter-spacing: -.02em; text-align: center; }
.ticket-route { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #e5e9e7; border-bottom: 1px solid #e5e9e7; }
.ticket-route > div { display: grid; gap: 4px; }
.ticket-route strong { font-size: 10px; }
.ticket-route small { color: #87908c; font-size: 8px; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px 0; }
.ticket-facts div { display: grid; gap: 3px; }
.ticket-facts span { color: #919995; font-size: 8px; }
.ticket-facts strong { color: #2c3933; font-size: 10px; }
.track-ride { display: flex; width: 100%; height: 37px; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 6px; background: #0d7959; color: white; cursor: pointer; font-size: 10px; font-weight: 650; }
.track-ride svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cancel-booking { width: 100%; height: 34px; flex: 0 0 auto; margin-top: 12px; border: 1px solid #bfc8c4; border-radius: 6px; background: transparent; color: #67716c; cursor: pointer; font-size: 10px; }
.booking-confirmed .prototype-stamp { bottom: 4px; color: #55635c; }

.tab-content { position: absolute; inset: 132px 0 70px; overflow-y: auto; padding: var(--space-5); }
.secondary-tab:has(.tab-map) .tab-content { inset: 0 0 70px; overflow: hidden; padding: 0; }
.tab-map { position: absolute; inset: 0; overflow: hidden; border-radius: 0; background: #e9edeb; cursor: grab; touch-action: none; user-select: none; }
.tab-map.is-dragging { cursor: grabbing; }
.tab-map .map-art.is-live { position: absolute; inset: 0; background-color: #e9edeb; }
.map-art.is-live .map-scene { inset: -15% -30%; width: auto; height: auto; transform-origin: center; will-change: transform; }
.map-art.is-live .map-roads { overflow: visible; }
.map-art.is-live .map-label-one { left: 23%; bottom: 12%; }
.map-art.is-live .map-label-two { top: 17%; right: 16%; }
.map-art.is-live .map-marker-start { top: 80%; left: 59%; }
.map-art.is-live .map-marker-bus { top: 52%; left: 46%; }
.map-art.is-live .map-marker-destination { top: 38%; right: auto; left: 52%; }
.map-art.is-live .map-marker { width: 29px; height: 34px; }
.map-art.is-live .map-marker-bus { z-index: 3; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.map-art.is-live .map-marker-bus-alt { z-index: 2; }
.map-art.is-live .map-marker-bus-alt svg { background: #138c71; }
.map-art.is-live .map-marker-bus { cursor: pointer; outline: none; }
.map-art.is-live .map-marker-bus:focus-visible { border-radius: 50%; outline: 2px solid #146d54; outline-offset: 3px; }
.map-art.is-live .map-marker-bus:hover,
.map-art.is-live .map-marker-bus:focus-visible { z-index: 5; }
.map-bus-tooltip {
  position: absolute;
  z-index: 4;
  bottom: calc(100% + 9px);
  left: 50%;
  display: grid;
  width: 166px;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 52, 41, .16);
  color: #2c2c2c;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
.map-bus-tooltip strong { color: #116f53; font-size: 13px; }
.map-bus-tooltip small { color: #4f5d56; font-size: 11px; }
.map-art.is-live .map-marker-bus:hover .map-bus-tooltip,
.map-art.is-live .map-marker-bus:focus-visible .map-bus-tooltip {
  opacity: 0;
  visibility: hidden;
}
.map-art.is-live .map-label { z-index: 2; padding: 4px 6px; border: 1px solid rgba(208, 218, 213, .8); border-radius: 4px; background: rgba(255,255,255,.88); color: #53675e; font-size: 8px; letter-spacing: .04em; }
.map-controls { position: absolute; z-index: 3; top: 210px; right: 12px; display: grid; justify-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(30, 50, 42, .1); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(24, 45, 36, .12); }
.map-controls button { display: grid; width: 31px; height: 31px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: #fff; color: #245b49; cursor: pointer; font-size: 21px; line-height: 1; }
.map-controls button:hover { background: #edf8f3; }
.map-controls button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map-controls output { color: #45544c; font-size: 10px; font-variant-numeric: tabular-nums; }
.map-controls > span { width: 22px; height: 1px; margin: 2px 0; background: #e1e7e4; }
.live-map-header {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 198px;
  padding: 0 18px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(145deg, #2fd9a8, #28b996);
  color: #fff;
  box-shadow: 0 8px 16px rgba(24, 45, 36, .1);
}
.live-map-header-content { position: absolute; top: 45px; right: 18px; left: 18px; display: grid; gap: 15px; }
.live-map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.live-map-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(12, 96, 77, .12);
  color: #fff;
  font-size: 12px;
}
.live-map-location {
  display: grid;
  flex: 1;
  gap: 6px;
  color: rgba(255,255,255,.9);
  font-size: 10px;
}
.live-map-location > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e7fff7;
  font-size: 11px;
  letter-spacing: .02em;
}
.live-map-location > span svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.live-map-location strong {
  display: block;
  color: #fff;
  font-size: 18px;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.notification-button.compact {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.24);
  color: #fff;
  cursor: pointer;
}
.notification-button.compact svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-button.compact .notification-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid #28b994;
  border-radius: 50%;
  background: #b83d34;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.live-map-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  margin: 0;
  padding: 0 9px 0 10px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #7c8883;
}
.live-map-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.live-map-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #26352f;
  font-size: 12px;
  outline: none;
}
.live-map-search input::placeholder { color: #69756f; }
.map-live-card {
  display: none;
  position: absolute;
  z-index: 4;
  right: 9px;
  top: 210px;
  left: 9px;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(37, 56, 47, .08);
  border-radius: 9px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  pointer-events: auto;
}
.map-live-card strong { font-size: 12px; }
.map-live-card span { color: #45544c; font-size: 12px; }
.map-seat-button {
  width: fit-content;
  margin-top: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: #dffbf0;
  color: #0c6b50;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
}
.map-seat-button:hover { background: #d2f5e6; }
.map-attribution { position: absolute; z-index: 2; bottom: 7px; left: 10px; margin: 0; color: #3f4d46; font-size: 10px; pointer-events: none; text-shadow: 0 1px 2px rgba(255,255,255,.9); }
.live-map-legend { position: absolute; z-index: 3; top: 210px; right: 56px; display: grid; gap: 5px; min-width: 104px; padding: 9px 10px; border: 1px solid #e4e9e7; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(24,45,36,.1); color: #56635e; font-size: 8px; }
.live-map-legend strong { margin-bottom: 1px; color: #718078; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.live-map-legend span { display: flex; align-items: center; gap: 6px; }
.live-map-legend span.is-current { margin: -2px -4px; padding: 2px 4px; border-radius: 5px; background: #f1f7f4; color: #253b31; font-weight: 700; }
.live-map-legend i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #14a979; }
.live-map-legend i.is-moderate { background: #ed9b22; }
.live-map-legend i.is-congested { background: #e14e55; }
.live-map-summary { margin: 0 2px; color: rgba(255,255,255,.9); font-size: 10px; line-height: 1.3; }
.bus-route-overview { margin: 0 0 9px; border: 1px solid #e2ebe6; border-radius: 9px; background: #f7faf8; }
.bus-route-overview summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; cursor: pointer; list-style: none; }
.bus-route-overview summary::-webkit-details-marker { display: none; }
.bus-route-overview-summary > span { display: grid; min-width: 0; gap: 3px; }
.bus-route-overview-summary strong { color: #27352e; font-size: 14px; line-height: 1.25; }
.bus-route-overview-summary small { color: #13815e; font-size: 12px; line-height: 1.4; white-space: normal; }
.bus-route-overview-summary svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #68786f; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform 140ms ease; }
.bus-route-overview[open] .bus-route-overview-summary svg { transform: rotate(180deg); }
.bus-route-overview-content { display: grid; gap: 10px; padding: 0 10px 10px; }
.bus-route-overview-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #59675f; font-size: 12px; }
.bus-route-overview-meta span:first-child,
.bus-route-overview-meta span:nth-child(2) { padding: 4px 7px; border-radius: 99px; background: #e5f6ed; color: #12815e; font-weight: 650; }
.bus-route-operations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bus-route-operations > div { display: grid; gap: 7px; min-width: 0; padding: 9px; border-radius: 8px; background: #edf2f5; }
.bus-route-operations > div > strong { color: #697883; font-size: 12px; line-height: 1.3; text-transform: uppercase; }
.bus-route-operations span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #46545c; font-size: 12px; line-height: 1.35; }
.bus-route-operations b { color: #138764; font-size: 12px; line-height: 1.35; text-align: right; white-space: normal; }
.bus-route-operations > div:first-child b { color: #d84b53; }
.bus-next-departure { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #d6f2e5; border-radius: 8px; background: #eefaf4; }
.bus-next-departure strong { color: #2d3933; font-size: 12px; line-height: 1.35; }
.bus-next-departure small { color: #5f7067; font-size: 12px; line-height: 1.35; }
.bus-route-overview > .bus-route-overview-content > p { margin: 0; color: #748078; font-size: 12px; text-align: right; }
.tab-map[data-traffic-state="normal"] .route-line-normal,
.tab-map[data-traffic-state="moderate"] .route-line-moderate,
.tab-map[data-traffic-state="congested"] .route-line-congested { stroke-width: 7; }
.tab-map .map-art.is-live { position: absolute; inset: 0; background-color: #e9edeb; }
.bus-popup-scrim { z-index: 8; }
.bus-capacity-popup {
  display: flex;
  height: 570px;
  max-height: calc(100% - 16px);
  flex-direction: column;
  overflow: hidden;
}
.bus-capacity-popup > .sheet-handle,
.bus-capacity-popup > h2,
.bus-capacity-popup > .sheet-subtitle,
.bus-capacity-popup > .sheet-primary,
.bus-capacity-popup > .bus-popup-note { flex: 0 0 auto; }
.bus-popup-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.bus-fleet-row { margin-top: 8px; }
.bus-fleet-row::before { display: none; }
.bus-capacity-stepper small { color: #7d8581; font-size: 10px; }
.bus-info-list .payment-option { cursor: default; }
.bus-popup-seat-layout {
  display: grid;
  gap: 6px;
  padding: 0 0 5px;
}
.bus-seat-front { display: flex; align-items: center; justify-content: space-between; margin: 2px 18px 7px; padding-bottom: 5px; border-bottom: 1px solid #e3eae6; color: #7a8780; font-size: 8px; }
.bus-seat-front strong { color: #53635a; font-size: 9px; }
.bus-seat-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 6px; }
.bus-seat-aisle { width: 1px; height: 22px; justify-self: center; background: #dfe7e3; }
.bus-popup-seat-layout .seat-seat { width: 100%; height: 26px; padding: 0; border-radius: 6px; cursor: pointer; font-size: 9px; }
.bus-popup-seat-layout .seat-seat.empty { border: 1px solid #b8e5d2; background: #e5f7ee; color: #14785b; }
.bus-popup-seat-layout .seat-seat.selected { border: 1px solid #0f795b; background: #0f795b; color: #fff; }
.bus-popup-seat-layout .seat-seat.occupied { border: 1px solid #e3e9e5; background: #e8ece9; color: #77837c; cursor: not-allowed; }
.bus-seat-selection { min-height: 12px; margin: 0 0 4px; color: #65736b; font-size: 9px; text-align: center; }
.bus-popup-note { margin: 7px 0 0; color: #78847d; font-size: 8px; text-align: center; }

.seat-capacity-page {
  min-height: 100%;
  padding: 20px 16px 18px;
  background: #1d1d1d;
}
.seat-capacity-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-5);
  height: 100%;
}
.seat-detail-booking {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #f3f7f4;
}
.seat-detail-background { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.seat-detail-background > .seat-capacity-page { height: 100%; min-height: 0; padding: 0; }
.seat-detail-background .seat-capacity-shell { display: block; height: 100%; padding: 18px 14px; }
.seat-detail-background .seat-capacity-panel { height: 100%; min-height: 0; }
.seat-detail-background .panel-book { display: none; }
.seat-detail-booking-scrim { z-index: 10; background: rgba(23, 31, 28, .4); backdrop-filter: blur(5px); }
.seat-detail-booking-sheet {
  display: flex;
  height: min(620px, 78%);
  max-height: 92%;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.seat-detail-booking-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.seat-picker {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe6e1;
  border-radius: 10px;
  background: #f8faf9;
  color: #1f302a;
  font-size: 12px;
}
.seat-detail-booking-footer {
  flex: 0 0 auto;
  margin: 10px -20px 0;
  padding: 10px 20px 18px;
  border-top: 1px solid #edf0ee;
  background: #fff;
  box-shadow: 0 -5px 14px rgba(19, 38, 30, .06);
}
.seat-detail-booking-footer .sheet-primary { margin-top: 0; }
.seat-capacity-panel {
  position: relative;
  height: 100%;
  min-height: 760px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 26px rgba(0,0,0,.18);
}
.panel-map {
  border: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, #1c2b2a 0%, #194c45 100%);
}
.seat-capacity-shell > .panel-map { overflow-x: hidden; overflow-y: auto; padding-bottom: 66px; scrollbar-width: none; }
.seat-capacity-shell > .panel-map::-webkit-scrollbar { display: none; }
.seat-detail-background .seat-capacity-shell > .panel-map { overflow: hidden; padding-bottom: 0; }
.seat-capacity-sticky { position: sticky; z-index: 4; top: 0; background: linear-gradient(180deg, #1c2b2a 0%, #194c45 100%); }
.seat-capacity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  color: #fff;
}
.seat-capacity-title-wrap {
  display: grid;
  gap: 6px;
}
.seat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.seat-live-badge i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd9a7;
  box-shadow: 0 0 0 3px rgba(61,217,167,.2);
}
.seat-capacity-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.03em;
}
.seat-capacity-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.seat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  margin: 0 16px 16px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
}
.seat-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255,255,255,.82);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seat-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 13px;
}
.seat-search input::placeholder { color: rgba(255,255,255,.7); }
.seat-category-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 14px;
}
.seat-category-tabs button {
  flex: 1;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 10px;
}
.seat-category-tabs button.is-active {
  background: rgba(12, 109, 82, .85);
  color: #fff;
}
.seat-map-surface {
  position: relative;
  height: 290px;
  margin: 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: #eaf1ee;
}
.seat-map-surface .map-art.is-live {
  position: absolute;
  inset: 0;
}
.seat-map-bubble {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(17, 76, 62, .08);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #237d62;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.seat-map-bubble.is-detail {
  left: 39%;
  top: 31%;
}
.seat-bus-card {
  margin: 16px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.seat-bus-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.seat-bus-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #d5fff4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.seat-bus-meta > div:last-child {
  display: grid;
  gap: 3px;
}
.seat-bus-meta strong {
  font-size: 12px;
}
.seat-bus-meta span {
  color: rgba(255,255,255,.7);
  font-size: 11px;
}
.seat-bus-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0 10px;
}
.seat-bus-rows div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
}
.seat-bus-rows span { color: rgba(255,255,255,.7); font-size: 10px; }
.seat-bus-rows strong { font-size: 13px; }
.seat-layout {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 4px;
}
.seat-seat {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.seat-seat.empty {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #b2d9cc;
}
.seat-seat.occupied {
  background: rgba(160,168,164,.28);
  color: rgba(255,255,255,.7);
}
.seat-seat.selected {
  background: #c8f5e4;
  color: #0d6d52;
}
.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
}
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.seat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.seat-dot.available { background: #bcebd3; }
.seat-dot.occupied { background: rgba(255,255,255,.28); }
.seat-dot.selected { background: #c8f5e4; }
.panel-book {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f7f4;
}
.seat-book-card {
  width: min(100%, 420px);
  margin: 20px;
  padding: 18px 18px 16px;
  border: 1px solid #dfe8e5;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 35px rgba(24,36,33,.08);
}
.seat-book-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.seat-book-header h3 {
  margin: 0;
  font-size: 18px;
}
.seat-book-header button {
  width: 28px;
  height: 28px;
  border: 1px solid #dfe8e5;
  border-radius: 50%;
  background: transparent;
  color: #5d6862;
  cursor: pointer;
  font-size: 20px;
}
.sheet-subtitle {
  margin: 8px 0 18px;
  color: #5d6561;
  font-size: 12px;
}
.route-fields {
  display: grid;
  gap: 10px;
}
.route-fields label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px 0 38px;
  border: 1px solid #dfe6e1;
  border-radius: 10px;
  background: #f8faf9;
}
.route-fields input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1b2e29;
  font-size: 12px;
}
.route-dot {
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.origin-dot { background: #2fd9a8; }
.destination-dot { background: #0b7ca1; }
.sheet-label {
  display: block;
  margin: 16px 0 8px;
  color: #53615c;
  font-size: 11px;
  font-weight: 600;
}
.passenger-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #dfe6e1;
  border-radius: 10px;
  background: #f8faf9;
}
.passenger-stepper > span { color: #2d3935; font-size: 12px; }
.passenger-stepper > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.passenger-stepper button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #dfe6e1;
  border-radius: 50%;
  background: #fff;
  color: #1f322f;
  cursor: pointer;
  font-size: 17px;
}
.passenger-stepper strong {
  min-width: 14px;
  text-align: center;
  color: #1f322f;
  font-size: 12px;
}
.payment-options {
  display: grid;
  gap: 8px;
}
.payment-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px 10px 42px;
  border: 1px solid #dfe6e1;
  border-radius: 10px;
  background: #f8faf9;
  cursor: pointer;
}
.payment-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.payment-option.selected {
  border-color: #2fd9a8;
  background: #ebfbf5;
}
.payment-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf5f2;
  color: #0c5b4c;
}
.payment-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.payment-icon.gcash {
  background: #1e8b5f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.payment-option > span:nth-of-type(2) {
  display: grid;
  gap: 3px;
  flex: 1;
}
.payment-option strong { color: #1f322f; font-size: 12px; }
.payment-option small {
  display: inline-flex;
  gap: 4px;
  color: #586a64;
  font-size: 10px;
}
.payment-option small em { color: #d76c39; font-style: normal; }
.payment-option > button {
  border: 0;
  background: transparent;
  color: #0d7c5d;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.sheet-primary {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: #2ec89d;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.sheet-primary span { font-size: 22px; line-height: 1; }
@media (max-width: 1100px) {
  .seat-capacity-shell {
    grid-template-columns: 1fr;
  }
  .seat-capacity-panel {
    min-height: 700px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-line,
  .map-marker::before,
  .map-art:not(.is-live):not(.is-compact) .map-marker-bus {
    animation: none;
  }
}
.empty-tab { margin: 50px 14px; color: #75817b; font-size: 13px; text-align: center; }
.saved-ticket { display: grid; width: 100%; gap: 7px; padding: 14px; border: 1px solid #dae2de; border-radius: 9px; background: #fff; color: #26322c; cursor: pointer; text-align: left; }
.saved-ticket strong { color: #0e795b; font-size: 12px; }
.saved-ticket span { font-size: 11px; }
.saved-ticket small { color: #77837c; font-size: 10px; }
.profile-summary { display: grid; justify-items: center; gap: 9px; padding: 35px 10px; }
.profile-avatar { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 50%; background: #d9f5eb; color: #107b5c; font-size: 22px; font-weight: 700; }
.profile-summary > strong { font-size: 15px; }
.profile-summary > span:last-of-type { color: #77837c; font-size: 11px; }
.profile-summary button { margin-top: 15px; padding: 9px 20px; border: 1px solid #d5deda; border-radius: 6px; background: #fff; color: #26765d; cursor: pointer; font-size: 11px; }

.settings-frame { background: #fff; }
.settings-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; background: #fff; scrollbar-width: none; }
.settings-scroll.profile-scroll { inset: 0 0 66px; }
.settings-scroll.ticket-scroll { inset: 0 0 66px; }
.settings-scroll.verification-scroll { inset: 0 0 66px; }
.settings-scroll::-webkit-scrollbar { display: none; }
.settings-header { position: sticky; z-index: 3; top: 0; height: 132px; padding: 8px 26px 0; background: linear-gradient(155deg, #2fd9a8, #36ae92); color: #fff; }
.profile-settings-header { height: 104px; padding: 0 18px; }
.device-status-spacer { height: 31px; }
.settings-title { display: flex; height: 93px; align-items: flex-end; gap: 10px; padding-bottom: 27px; }
.settings-title h1 { margin: 0; font-size: 18px; font-weight: 650; }
.profile-settings-title { display: flex; height: 73px; align-items: flex-end; padding-bottom: 17px; }
.profile-settings-title h1 { margin: 0; color: #fff; font-size: 20px; font-weight: 650; }
.settings-back { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; margin-bottom: -4px; padding: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }
.settings-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.settings-back:hover { background: rgba(255,255,255,.26); }
.settings-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.settings-scroll > .tab-content { position: relative; inset: auto; min-height: 720px; overflow: visible; padding: 0; background: #fff; }

.verification-app { background: #f7f9fa; }
.verify-account-header { height: 132px; }
.discount-verification-content { position: relative; display: grid; align-content: start; gap: 12px; min-height: 720px; padding: 12px 14px 22px; background: #f7f9fa; }
.verification-stepper { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr); align-items: center; gap: 4px; padding: 16px 10px; border: 1px solid #e5ebee; border-radius: 12px; background: #fff; }
.verification-step { display: flex; min-width: 0; align-items: center; gap: 5px; color: #8592a0; }
.verification-step > i { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: #eff3f6; color: #9aa6b2; font-size: 12px; font-style: normal; font-weight: 700; }
.verification-step > strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.verification-step.is-current { color: #26352e; }
.verification-step.is-current > i,
.verification-step.is-complete > i { background: #0d9e73; color: #fff; }
.verification-stepper > span { height: 1px; background: #dce4e8; }
.verification-section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8190a2; }
.verification-section-label strong { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.verification-section-label > span { color: #15966f; font-size: 12px; font-weight: 600; white-space: nowrap; }
.verification-types { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.verification-type { display: grid; min-width: 0; min-height: 96px; justify-items: center; align-content: center; gap: 4px; padding: 7px 4px; border: 1px solid #e1e8ec; border-radius: 12px; background: #fff; color: #3a4449; cursor: pointer; }
.verification-type.is-selected { border: 2px solid #08a879; background: #f1fbf6; color: #126e52; }
.verification-type-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #f0f3f5; color: #56636d; }
.verification-type.is-selected .verification-type-icon { background: #0fa87a; color: #fff; }
.verification-type-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.verification-type strong { font-size: 12px; line-height: 1.2; }
.verification-type small { color: #75828b; font-size: 12px; line-height: 1.2; }
.verification-type.is-selected small { color: #118361; font-weight: 650; }
.verification-upload-heading { margin-top: 1px; }
.verification-upload-list { display: grid; gap: 12px; }
.verification-upload-card { position: relative; display: grid; min-height: 164px; justify-items: center; align-content: center; gap: 7px; padding: 12px; border: 1px solid #dfe7eb; border-radius: 12px; background: #fff; text-align: center; }
.verification-upload-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #d9f6e9; color: #079c70; }
.verification-upload-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.verification-upload-card > strong { max-width: 100%; color: #25352e; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.verification-upload-card > small { max-width: 100%; color: #72808a; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.verification-upload-preview { width: min(100%, 220px); height: 90px; border-radius: 8px; background: #edf2f4; object-fit: contain; }
.verification-upload-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.verification-upload-actions > button:not(.verification-remove-upload) { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #0ca578; color: #fff; cursor: pointer; }
.verification-upload-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.verification-file-input { display: none; }
.verification-remove-upload { min-height: 36px; padding: 0 10px; border: 1px solid #dce5e0; border-radius: 7px; background: #fff; color: #63716a; cursor: pointer; font-size: 12px; }
.verification-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4cf; color: #514a37; font-size: 12px; line-height: 1.4; }
.verification-message { min-height: 0; margin: 0; color: #a14343; font-size: 12px; line-height: 1.35; }
.verification-primary { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 15px; background: #0ba578; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.verification-primary:disabled { background: #a6cfc0; cursor: not-allowed; }
.verification-primary span { font-size: 18px; line-height: 1; }
.verification-review { display: grid; gap: 12px; }
.verification-review h2,.verification-complete h2 { margin: 0; color: #26352e; font-size: 16px; }
.verification-review > p,.verification-complete > p { margin: 0; color: #64716a; font-size: 12px; line-height: 1.45; }
.verification-review-type { display: flex; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #e2e9ed; border-radius: 10px; background: #fff; font-size: 12px; }
.verification-review-files { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.verification-review-files > div { display: grid; gap: 7px; min-width: 0; padding: 9px; border: 1px solid #e2e9ed; border-radius: 10px; background: #fff; }
.verification-review-files strong,.verification-file-name { color: #36433c; font-size: 12px; overflow-wrap: anywhere; }
.verification-review-files img { width: 100%; height: 100px; border-radius: 7px; background: #edf2f4; object-fit: contain; }
.verification-confirm { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid #e2e9ed; border-radius: 9px; background: #fff; color: #435149; font-size: 12px; line-height: 1.4; }
.verification-confirm input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #0ba578; }
.verification-review-actions { display: grid; gap: 8px; }
.verification-secondary { min-height: 42px; border: 1px solid #dce5e0; border-radius: 9px; background: #fff; color: #456052; cursor: pointer; font-size: 12px; }
.verification-complete { display: grid; justify-items: center; gap: 12px; padding: 36px 10px; text-align: center; }
.verification-complete-icon { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 50%; background: #d9f6e9; color: #078b64; }
.verification-complete-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.verification-complete strong { color: #078b64; }
.profile-status-badge.is-pending { background: #fff1cd; color: #8a6414; }

.trip-history-page { min-height: 100%; background: #f5f7f6; }
.ticket-history-header { position: relative; z-index: 4; height: 194px; min-height: 194px; padding: 22px 20px 0; border-radius: 0 0 var(--home-radius-feature) var(--home-radius-feature); background: linear-gradient(145deg, #2fd9a8, #28b996); color: #fff; }
.settings-scroll .ticket-history-header { position: sticky; top: 0; }
.ticket-header-top { display: flex; align-items: center; gap: 10px; height: 40px; }
.ticket-header-top > span { font-size: 10px; font-weight: 700; letter-spacing: .12em; opacity: .84; }
.ticket-header-top .settings-back { width: 36px; height: 36px; flex-basis: 36px; margin: 0; }
.ticket-header-top .settings-back svg { width: 17px; height: 17px; }
.ticket-history-header > h1 { margin: 8px 0 3px; font-size: 21px; letter-spacing: -.03em; }
.ticket-history-header > p { margin: 0; color: rgba(255,255,255,.88); font-size: 10px; }
.ticket-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px -2px 0; }
.ticket-tabs button { display: flex; min-width: 0; height: 40px; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.36); border-radius: 9px 9px 0 0; background: transparent; color: rgba(255,255,255,.9); cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.ticket-tabs button.is-active { border-color: #fff; background: #fff; color: #167b5e; }
.ticket-tabs button span { display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border-radius: 99px; background: rgba(255,255,255,.2); font-size: 9px; }
.ticket-tabs button.is-active span { background: #e7f7f0; }
.ticket-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.trip-history-body { display: grid; gap: 12px; padding: 16px 16px 28px; }
.trip-history-list { display: grid; gap: 10px; }
.trip-history-card { padding: 12px; border: 1px solid #e0e7e3; border-radius: 12px; background: #fff; box-shadow: 0 2px 7px rgba(37,61,49,.04); }
.upcoming-ticket-card { border-color: #b8e8d8; }
.trip-history-card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; padding-bottom: 9px; border-bottom: 1px solid #edf0ee; }
.trip-history-code { color: #176f54; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.trip-history-card-header time { color: #58665f; font-size: 9px; font-weight: 600; }
.trip-history-status { margin-left: auto; padding: 4px 7px; border-radius: 99px; background: #eaf7f0; color: #167552; font-size: 8px; font-weight: 650; }
.trip-history-status.is-cancelled { background: #fff1ee; color: #a64e3f; }
.trip-history-status.is-upcoming { background: #e8f6f0; color: #167552; }
.trip-history-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; }
.trip-history-stops { position: relative; display: grid; gap: 9px; min-width: 0; }
.trip-history-stops::before { position: absolute; top: 6px; bottom: 6px; left: 5px; width: 1px; background: #d7e4dd; content: ""; }
.trip-history-stop { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.trip-history-stop > span { display: grid; gap: 3px; min-width: 0; }
.trip-history-stop strong { color: #303b35; font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.trip-history-stop small { color: #77837d; font-size: 8px; line-height: 1.3; overflow-wrap: anywhere; }
.trip-origin-dot,
.trip-destination-dot { position: relative; z-index: 1; width: 8px; height: 8px; flex: 0 0 8px; margin: 2px 0 0 1px; border: 2px solid #2ba981; border-radius: 50%; background: #2ba981; }
.trip-destination-dot { border-color: #df8c42; background: #df8c42; }
[data-trip-history-card] .trip-destination-dot { border-color: #df8c42; background: #df8c42; }
[data-ticket-tab="past"][data-trip-history-card] .trip-origin-dot,
[data-ticket-tab="past"][data-trip-history-card] .trip-destination-dot { border-color: #a9b6c5; background: #a9b6c5; }
.trip-history-fare { display: grid; align-content: start; justify-items: end; gap: 4px; min-width: 64px; text-align: right; }
.trip-history-fare strong { color: #26352e; font-size: 12px; font-variant-numeric: tabular-nums; }
.trip-history-fare span,
.trip-history-fare small { color: #74817a; font-size: 8px; line-height: 1.3; }
.trip-history-fare small { max-width: 92px; }
.trip-history-reference { margin: 0 0 9px; color: #718078; font-size: 8px; }
.trip-history-reference strong { color: #176f54; }
.trip-history-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; border-top: 1px solid #edf0ee; }
.trip-history-actions button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #f0f3f6; color: #5d6873; cursor: pointer; font-size: 9px; font-weight: 650; }
.trip-history-actions .trip-receipt-link { padding: 0; background: transparent; color: #078260; font-weight: 700; }
.trip-history-actions .trip-cancel-button { margin-left: auto; border: 1px solid #f0d7d2; background: #fff; color: #a64e3f; }
.trip-history-actions .trip-rebook-button { margin-left: auto; background: #08aa79; color: #fff; }
.trip-history-actions .trip-rebook-button:hover { background: #078a63; }
.trip-history-actions .trip-rebook-button:active { background: #067654; transform: translateY(1px); }
.trip-history-actions .trip-rebook-button:focus-visible { outline: 2px solid #087c5a; outline-offset: 2px; }
.trip-history-actions .trip-rate-button { border: 1px solid #e8c34a; background: #fff5c9; color: #735700; }
.trip-history-actions .trip-rate-button:hover { border-color: #d3a91f; background: #ffec9a; }
.trip-history-actions .trip-rate-button:active { background: #ffe16c; transform: translateY(1px); }
.trip-history-actions .trip-rate-button:focus-visible { outline: 2px solid #c69200; outline-offset: 2px; }
.trip-rating-scrim { position: fixed; z-index: 8; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(26,31,28,.58); overscroll-behavior: contain; }
.trip-rating-modal { position: relative; display: grid; width: min(100%, 340px); gap: 10px; overflow: hidden; padding: 22px 18px 16px; border: 1px solid #f0d77f; border-radius: 18px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.24); }
.trip-rating-close { position: absolute; top: 10px; right: 11px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff8df; color: #6c5712; cursor: pointer; font-size: 24px; line-height: 1; }
.trip-rating-modal-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #fff1ad; color: #d09b00; font-size: 22px; }
.trip-rating-modal h2 { margin: 0; padding-right: 35px; color: #26352e; font-size: 17px; }
.trip-rating-modal > p { margin: -4px 0 2px; color: #66736c; font-size: 11px; line-height: 1.45; }
.trip-rating-modal > .trip-rating-trip-summary { margin: 0; padding: 8px 9px; border-radius: 8px; background: #fff9e6; color: #6f5a17; font-size: 9px; font-weight: 650; }
.trip-rating-stars { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 0; }
.trip-rating-stars button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid #ecd98e; border-radius: 10px; background: #fff; color: #a9a08a; cursor: pointer; font-size: 25px; line-height: 1; }
.trip-rating-stars button.is-selected { border-color: #e6b822; background: #fff1ad; color: #d09b00; }
.trip-rating-stars button:hover { border-color: #d6a80e; color: #d09b00; }
.trip-rating-stars button:focus-visible,
.trip-rating-submit:focus-visible { outline: 2px solid #c69200; outline-offset: 2px; }
.trip-rating-comment-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #3f4b44; font-size: 10px; font-weight: 700; }
.trip-rating-comment-label span { color: #89938d; font-size: 9px; font-weight: 500; }
.trip-rating-modal textarea { width: 100%; min-height: 92px; resize: none; padding: 10px 11px; border: 1px solid #e5dfc8; border-radius: 9px; background: #fffefa; color: #26352e; font: inherit; font-size: 11px; line-height: 1.45; }
.trip-rating-modal textarea:focus-visible { outline: 2px solid #c69200; outline-offset: 2px; }
.trip-rating-character-count { justify-self: end; margin-top: -7px; color: #89938d; font-size: 8px; }
.trip-rating-modal .trip-rating-feedback { margin: 0; color: #6f5a17; font-size: 9px; }
.trip-rating-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.trip-rating-modal-actions button { min-height: 42px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.trip-rating-cancel { border: 1px solid #e5dfc8; background: #fff; color: #5e6862; }
.trip-rating-submit { min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: #dfb31c; color: #342600; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.trip-rating-submit:hover:not(:disabled) { background: #edc52f; }
.trip-rating-submit:disabled { background: #e7e1ca; color: #89816a; cursor: not-allowed; }
.trip-rating-saved { margin: 8px 0 0; color: #6f5a17; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .trip-rating-scrim { padding: 12px; }
  .trip-rating-modal { padding: 20px 14px 14px; }
  .trip-rating-stars { gap: 5px; }
  .trip-rating-stars button { width: 40px; height: 40px; }
}
.past-trip-panel { display: grid; gap: 12px; }
.trip-history-search { display: grid; gap: 6px; color: #55645c; font-size: 9px; font-weight: 650; }
.trip-history-search input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid #dfe7e2; border-radius: 9px; background: #fff; color: #26352e; font: inherit; font-size: 10px; }
.trip-history-search input:focus-visible { outline: 2px solid #168564; outline-offset: 2px; }
.ticket-empty-state { display: grid; justify-items: center; gap: 8px; padding: 31px 18px; border: 1px dashed #cbd9d1; border-radius: 13px; background: #fff; text-align: center; }
.ticket-empty-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e7f7f0; color: #118361; font-size: 23px; }
.ticket-empty-state h2 { margin: 2px 0 0; color: #26352e; font-size: 14px; }
.ticket-empty-state p { max-width: 250px; margin: 0; color: #74817a; font-size: 10px; line-height: 1.5; }
.ticket-empty-state button { min-height: 36px; margin-top: 4px; padding: 0 16px; border: 0; border-radius: 8px; background: #0d9e73; color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.trip-history-empty { margin: 8px 0; color: #74817a; font-size: 11px; text-align: center; }
.trip-history-disclaimer { margin: 0; color: #77837d; font-size: 8px; line-height: 1.4; text-align: center; }

.notification-page { padding: var(--space-5) var(--page-gutter) 32px; }
.notification-overview { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid #e9eeeb; }
.notification-overview > div { display: grid; gap: 4px; min-width: 0; }
.notification-overview strong { color: #303936; font-size: 13px; font-weight: 650; }
.notification-overview small { color: #4f5d56; font-size: 11px; }
.notification-mark-all { min-height: 44px; flex: 0 0 auto; padding: 0 10px; border: 1px solid #cfe4db; border-radius: 9px; background: #fff; color: #176e54; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.notification-mark-all:hover:not(:disabled) { background: #effaf5; }
.notification-mark-all:disabled { border-color: #e4e9e6; background: #f5f7f6; color: #858f89; cursor: not-allowed; }
.notification-mark-all:focus-visible,
.notification-filters button:focus-visible,
.notification-item:focus-visible { outline: 2px solid #176e54; outline-offset: 2px; }
.notification-filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); }
.notification-filters button { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; border: 1px solid #e7ece9; border-radius: 9px; background: #fff; color: #58645e; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.notification-filters button.is-active { border-color: #b8e8d8; background: #eefaf5; color: #126e52; }
.notification-filters button > span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 99px; background: #d9f4e9; color: #126e52; font-size: 11px; font-variant-numeric: tabular-nums; }
.notification-list { display: grid; }
.notification-item { display: grid; width: 100%; min-height: 90px; grid-template-columns: 34px minmax(0, 1fr) 7px; align-items: start; gap: var(--space-3); padding: 15px 10px; border: 0; border-bottom: 1px solid #edf0ee; border-radius: 0; background: #fff; color: inherit; cursor: pointer; text-align: left; }
.notification-item:hover { background: #f7faf8; }
.notification-item.is-unread { background: #f2faf6; }
.notification-item.is-unread:hover { background: #eaf7f1; }
.notification-item-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eaf7f1; color: #198565; }
.notification-item-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.notification-item-icon.is-ticket { background: #f0f2ff; color: #5664ad; }
.notification-item-icon.is-service { background: #fff6e6; color: #8b6318; }
.notification-item-icon.is-promo { background: #fff0ed; color: #a64e3f; }
.notification-item-copy { display: grid; min-width: 0; gap: 4px; }
.notification-item-copy strong { color: #303936; font-size: 13px; font-weight: 650; line-height: 1.3; }
.notification-item-copy > span { color: #46534d; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.notification-item-copy small { color: #4f5d56; font-size: 11px; line-height: 1.3; }
.notification-unread-dot { width: 7px; height: 7px; align-self: center; margin-top: 3px; border-radius: 50%; background: #1caf82; }
.notification-empty { margin: 38px 10px 25px; color: #596660; font-size: 12px; line-height: 1.5; text-align: center; }
.notification-disclaimer { margin: 20px 4px 0; color: #4f5d56; font-size: 11px; line-height: 1.5; text-align: center; }

.account-page { padding: 14px 17px 28px; }
.account-profile-page { display: grid; align-content: start; gap: var(--space-3); min-height: 740px; padding: var(--space-4) var(--page-gutter) 20px; background: #f6f8f9; }
.profile-user-card { display: flex; min-height: 84px; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #e5e9ec; border-radius: 11px; background: #fff; }
.profile-user-card .account-avatar { width: 64px; height: 64px; flex: 0 0 64px; }
.profile-user-card .account-avatar svg { width: 42px; height: 42px; }
.profile-user-copy { display: grid; min-width: 0; gap: 2px; }
.profile-user-copy strong { overflow: hidden; color: #242a2e; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-user-copy > span:not(.profile-status-badge) { overflow: hidden; color: #7a858c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-status-badge { width: fit-content; padding: 3px 8px; border-radius: 99px; background: #f8dddd; color: #a43d3d; font-size: 10px; line-height: 1.2; text-transform: uppercase; }
.profile-verify-button { display: flex; width: 100%; height: 42px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; background: #07986f; color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; }
.profile-verify-button span { font-size: 20px; line-height: 1; }
.profile-menu-card { overflow: hidden; border: 1px solid #e5e9ec; border-radius: 11px; background: #fff; }
.profile-menu-card h2 { min-height: 42px; margin: 0; padding: 13px 14px 8px; color: #31373b; font-size: 14px; font-weight: 700; }
.profile-menu-row { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; border: 0; border-top: 1px solid #eceff1; background: #fff; color: #343a3e; cursor: pointer; font-size: 14px; text-align: left; }
.profile-menu-row:hover { background: #f5faf8; }
.profile-menu-row span { color: #69757b; font-size: 20px; line-height: 1; }
.profile-toggle-row { position: relative; padding-right: 58px; }
.profile-toggle-row::before { position: absolute; top: 50%; right: 14px; width: 34px; height: 20px; border-radius: 99px; background: #cfd4d5; content: ""; transform: translateY(-50%); transition: background-color 140ms ease; }
.profile-toggle-row::after { position: absolute; top: 50%; right: 31px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); content: ""; transform: translateY(-50%); transition: transform 140ms ease; }
.profile-toggle-row.is-on::before { background: #078d68; }
.profile-toggle-row.is-on::after { transform: translate(13px, -50%); }
.profile-toggle-row:focus-visible { outline: 2px solid #176e54; outline-offset: -2px; }
.profile-detail-inline > summary,
.profile-extra-card > summary { list-style: none; }
.profile-detail-inline > summary::-webkit-details-marker,
.profile-extra-card > summary::-webkit-details-marker { display: none; }
.profile-detail-inline[open] > summary span,
.profile-extra-card[open] > summary span { transform: rotate(90deg); }
.profile-detail-inline .account-section-content { padding: 10px 12px; border-top: 1px solid #eceff1; }
.profile-extra-card > summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; color: #31373b; cursor: pointer; font-size: 14px; font-weight: 700; }
.profile-extra-content { padding: 10px 14px 12px; border-top: 1px solid #eceff1; }
.profile-extra-content .account-edit-field { margin-right: 0; margin-left: 0; }
.profile-extra-content .account-payment-list { padding: 0; }
.profile-extra-content .account-payment-row { grid-template-columns: 32px minmax(0, 1fr) 56px 32px; gap: 6px; }
.profile-extra-content .account-payment-row > small { font-size: 10px; }
.profile-message { margin: 0; }
.profile-support-banner { position: relative; display: grid; width: 100%; min-height: 48px; justify-items: center; align-content: center; gap: 3px; margin-top: 1px; padding: 6px 40px 6px 8px; border: 0; border-radius: 7px; background: #2d2e30; color: #fff; cursor: pointer; text-align: center; }
.profile-support-banner > span { font-size: 10px; }
.profile-support-banner small { color: #d2d6d4; font-size: 9px; }
.profile-support-banner i { position: absolute; top: 50%; right: 10px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #2fd9a8; color: #124b3b; font-size: 14px; font-style: normal; font-weight: 700; transform: translateY(-50%); }
.payment-settings-page { display: grid; align-content: start; gap: 14px; min-height: 720px; padding: 18px 14px 28px; background: #f1f2f3; }
.payment-page-note { margin: 0 2px 2px; color: #65716b; font-size: 11px; line-height: 1.45; }
.payment-settings-group { overflow: hidden; border: 1px solid #e8eaeb; border-radius: 11px; background: #fff; }
.payment-settings-group h2 { min-height: 48px; margin: 0; padding: 14px 14px 11px; border-bottom: 1px solid #eceeef; color: #30373b; font-size: 14px; font-weight: 650; }
.payment-method-row { display: grid; min-height: 62px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid #eff0f1; }
.payment-method-row:last-child { border-bottom: 0; }
.payment-method-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 8px; background: #f1f5f3; color: #168263; font-size: 15px; font-weight: 750; }
.payment-method-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.payment-method-icon.is-bank { background: #eef4ff; color: #3478c8; }
.payment-method-icon.is-card { background: #f2f3f5; color: #56636d; }
.payment-method-icon.is-gcash { background: #eef6ff; color: #1680d6; }
.payment-method-icon.is-maya { background: #edfaf3; color: #159466; }
.payment-method-icon.is-pouch { background: #fff2ed; color: #ca644d; }
.payment-method-icon.is-auto { background: #fff2ed; color: #cf694f; }
.payment-method-copy { display: grid; min-width: 0; gap: 4px; }
.payment-method-copy strong { overflow: hidden; color: #30373b; font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.payment-method-copy small { color: #76817b; font-size: 10px; line-height: 1.35; }
.payment-method-badge { width: fit-content; padding: 4px 7px; border-radius: 5px; background: #f0f2f2; color: #59635e; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.payment-method-action { min-height: 34px; padding: 0 9px; border: 1px solid #cde8dc; border-radius: 7px; background: #f1faf6; color: #157654; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; }
.payment-method-action.is-secondary { border-color: #e2a295; background: #fff; color: #b46050; }
.payment-method-add { display: flex; width: 100%; min-height: 56px; align-items: center; gap: 10px; padding: 9px 13px; border: 0; background: #fff; color: #48554e; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.payment-method-add:hover { background: #f8faf9; }
.payment-method-add > span:first-child:not(.payment-method-icon, .payment-method-copy, .payment-method-chevron, .payment-bank-wordmark) { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px dashed #cbd2ce; color: #748078; font-size: 18px; }
.payment-method-add .payment-method-copy { flex: 1; }
.payment-method-add .payment-method-icon { margin-right: 0; }
.payment-method-chevron { margin-left: auto; color: #56615b; font-size: 24px; line-height: 1; }
.payment-bank-wordmark { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #f7f4df; color: #8d7829; font-size: 10px; font-weight: 800; }
.payment-method-balance { color: #30373b; font-size: 12px; font-variant-numeric: tabular-nums; }
.payment-settings-message { min-height: 16px; margin: 0 2px; color: #536159; font-size: 11px; line-height: 1.4; }
.account-identity { display: flex; min-height: 100px; align-items: center; gap: 17px; padding: 0 0 6px; }
.account-avatar { display: grid; width: 68px; height: 68px; flex: 0 0 68px; place-items: center; border-radius: 50%; background: #eff1f4; color: #858d9b; }
.account-avatar svg { width: 44px; height: 44px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; }
.account-identity-copy { display: grid; gap: 3px; min-width: 0; }
.account-identity-copy strong { overflow: hidden; color: #292e32; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-identity-copy > span:not(.verified-label) { color: #5d6862; font-size: 11px; }
.verified-label { width: 110px; padding: 3px 8px; border-radius: 99px; background: #98d777; color: #245e1e; font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; }
.account-preferences { border-bottom: 1px solid #e8eaec; }
.account-preference { display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eceef0; }
.account-preference > div { display: grid; gap: 2px; min-width: 0; }
.account-preference strong { color: #34383c; font-size: 12px; font-weight: 600; }
.account-preference small { overflow: hidden; color: #5d6862; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.toggle-switch { position: relative; width: 31px; height: 18px; flex: 0 0 31px; padding: 0; border: 0; border-radius: 99px; background: #cfd4d5; cursor: pointer; transition: background-color 140ms ease; }
.toggle-switch::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); content: ""; transition: transform 140ms ease; }
.toggle-switch.is-on { background: #ff555d; }
.toggle-switch.is-on::after { transform: translateX(13px); }
.toggle-switch:focus-visible { outline: 2px solid #176e54; outline-offset: 2px; }
.account-sections { margin-top: 1px; }
.account-section { border-bottom: 1px solid #e8eaec; }
.account-section summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; color: #34383c; cursor: pointer; font-size: 13px; font-weight: 550; list-style: none; }
.account-section summary::-webkit-details-marker { display: none; }
.account-section summary::after { width: 7px; height: 7px; margin-right: 2px; border-right: 1.4px solid #4a5055; border-bottom: 1.4px solid #4a5055; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform 140ms ease; }
.account-section[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.account-section-content { padding: 0 0 10px; color: #747d83; font-size: 12px; }
.account-section[open] > .account-section-content { animation: disclosure-enter 180ms ease-out both; }
.account-section-content p { margin: 1px 0 7px; }
.account-edit-field { display: grid; gap: 4px; margin: 0 8px 9px; color: #343c38; font-size: 11px; font-weight: 600; }
.account-edit-control { display: flex; min-width: 0; gap: 6px; }
.account-edit-control input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #e0e6e2; border-radius: 8px; outline: none; background: #f6f7f6; color: #303638; font: inherit; font-size: 12px; font-weight: 450; }
.account-edit-control input:focus { border-color: #2fd9a8; box-shadow: 0 0 0 2px rgba(47,217,168,.15); }
.account-edit-control input[aria-invalid="true"] { border-color: #c94e4e; }
.account-edit-control button { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; border-radius: 7px; background: #303638; color: #fff; cursor: pointer; }
.account-edit-control button:hover { background: #1f2425; }
.account-edit-control button.is-saving { background: #158a67; }
.account-edit-control button:focus-visible,
.account-payment-link:focus-visible { outline: 2px solid #176e54; outline-offset: 2px; }
.account-edit-control button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-inline-message { margin: 2px 8px 0; }
.account-password-form .account-edit-field { margin-right: 0; margin-left: 0; }
.account-password-form .password-input-wrap input { width: 100%; height: 36px; padding: 0 56px 0 10px; border: 1px solid #e0e6e2; border-radius: 8px; outline: none; background: #f6f7f6; color: #303638; font: inherit; font-size: 12px; font-weight: 450; }
.account-password-form .password-input-wrap input:focus { border-color: #2fd9a8; box-shadow: 0 0 0 2px rgba(47,217,168,.15); }
.account-password-form .password-input-wrap input[aria-invalid="true"] { border-color: #c94e4e; }
.account-password-submit { min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: #158a67; color: #fff; cursor: pointer; font-size: 11px; font-weight: 600; }
.account-password-submit:hover { background: #107a5b; }
.account-password-submit:focus-visible { outline: 2px solid #176e54; outline-offset: 2px; }
.account-payment-list { padding: 0 5px 7px; }
.account-payment-row { display: grid; min-height: 44px; grid-template-columns: 32px minmax(0, 1fr) 68px 36px; align-items: center; gap: 7px; border-bottom: 1px solid #eef0ef; }
.account-payment-row:last-of-type { border-bottom: 0; }
.account-payment-row > strong { overflow: hidden; color: #303936; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-payment-row > small { color: #596660; font-size: 11px; text-align: right; }
.account-payment-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: #f0f4f2; color: #299b7a; }
.account-payment-icon svg,
.account-payment-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.payment-brand-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 750; }
.gcash-brand { background: #ecf4ff; color: #0874db; }
.maya-brand { background: #eaf9f0; color: #14905b; }
.account-payment-link { display: grid; width: 29px; height: 29px; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #596164; cursor: pointer; }
.account-payment-link:hover { background: #f0f4f2; color: #168361; }
.account-payment-toggle { justify-self: end; }
.account-section-content dl { display: grid; gap: 7px; margin: 1px 0 9px; }
.account-section-content dl > div { display: flex; justify-content: space-between; gap: 12px; }
.account-section-content dt { color: #858d92; }
.account-section-content dd { max-width: 65%; margin: 0; overflow-wrap: anywhere; color: #454d52; text-align: right; }
.account-section-content > button { display: flex; width: 100%; justify-content: space-between; padding: 7px 0 1px; border: 0; background: transparent; color: #198365; cursor: pointer; font-size: 12px; text-align: left; }
.account-section-content > button span { font-size: 15px; line-height: 10px; }
.account-support-link { display: flex; width: 100%; min-height: 64px; align-items: center; justify-content: space-between; padding: 0; border: 0; border-bottom: 1px solid #e8eaec; background: #fff; color: #34383c; cursor: pointer; font-size: 13px; text-align: left; }
.account-support-link span { color: #3d454b; font-size: 17px; }
.account-message { min-height: 17px; margin: 7px 0 0; color: #46534d; font-size: 11px; }
.account-signout { color: #b94141; }
.account-signout > span { color: inherit; font-size: 14px; line-height: normal; }
.account-signout:hover { background: #fff7f7; }
.account-signout:focus-visible { outline: 2px solid #176e54; outline-offset: -2px; }
.account-signout svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.faq-page { position: relative; display: flex; isolation: isolate; min-height: 720px; flex-direction: column; overflow: visible; padding: 28px var(--page-gutter) var(--space-5); background: #fff; }
.faq-page::before { position: absolute; z-index: 0; top: 620px; right: -205px; width: 390px; height: 390px; background: url("assets/3d-images/archery-target.png") center / contain no-repeat; content: ""; filter: blur(7px); opacity: .82; pointer-events: none; }
.faq-page > * { position: relative; z-index: 1; }
.faq-intro { display: grid; justify-items: center; gap: var(--space-4); }
.faq-page .faq-intro { position: sticky; z-index: 2; top: 132px; padding: 10px 0 12px; background: #fff; }
.faq-intro h2 { margin: 3px 0 0; color: #111; font-size: 18px; font-weight: 700; }
.faq-search { display: flex; width: 100%; height: 40px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #aeb8b2; border-radius: 99px; background: rgba(255,255,255,.97); color: #526058; }
.faq-search svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.faq-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #303a35; font-size: 12px; text-align: center; }
.faq-search input::placeholder { color: #5e6963; }
.faq-categories { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.faq-categories button { display: grid; min-width: 0; height: 70px; justify-items: center; align-content: center; gap: 3px; padding: 3px 1px; border: 1px solid #d9dedb; border-radius: 8px; background: rgba(255,255,255,.96); color: #4e5a54; cursor: pointer; }
.faq-categories button.is-active { border-color: #80ccb4; background: #eaf8f2; color: #126e53; }
.faq-categories img { width: 34px; height: 34px; object-fit: contain; }
.faq-categories span { overflow: hidden; max-width: 100%; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.faq-list-section { margin-top: var(--space-6); }
.faq-list-section h2 { margin: 0 0 var(--space-3); color: #111; font-size: 18px; font-weight: 700; text-align: center; }
.faq-list { display: grid; gap: var(--space-2); }
.faq-question { overflow: hidden; border: 1px solid #e2e6e4; border-radius: 8px; background: rgba(255,255,255,.97); box-shadow: 0 2px 7px rgba(32,52,43,.07); }
.faq-question[hidden] { display: none; }
.faq-question summary { position: relative; display: flex; min-height: 66px; align-items: center; padding: 10px 38px 10px 18px; color: #2d3430; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.4; list-style: none; }
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary::after { position: absolute; top: 50%; right: 11px; width: 6px; height: 6px; border-right: 1.4px solid #3d4742; border-bottom: 1.4px solid #3d4742; content: ""; transform: translateY(-70%) rotate(45deg); transition: transform 140ms ease; }
.faq-question[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq-question p { margin: 0; padding: 0 18px 16px; color: #4f5a54; font-size: 13px; line-height: 1.55; }
.faq-question[open] > p { animation: disclosure-enter 180ms ease-out both; }

@keyframes disclosure-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-empty { margin: 12px 2px; color: #4f5a54; font-size: 12px; text-align: center; }
.faq-contact { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); padding: 8px 12px 8px 16px; border-radius: 8px; background: #2d302f; color: #fff; }
.faq-contact > div { display: grid; gap: 2px; }
.faq-contact strong { font-size: 12px; font-weight: 550; }
.faq-contact small { color: #e2e7e4; font-size: 11px; }
.faq-contact button { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #20c99a; color: #fff; cursor: pointer; }
.faq-contact button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faq-message { min-height: 16px; margin: 4px 2px 0; color: #41534a; font-size: 11px; text-align: center; }
.faq-endcap { display: grid; justify-items: center; margin: auto 0 0; padding-top: 30px; padding-bottom: 22px; text-align: center; }
.faq-endcap img { display: block; width: 240px; height: 240px; margin-bottom: -52px; object-fit: contain; }
.faq-endcap h3 { margin: 5px 0 3px; color: #111; font-size: 18px; font-weight: 700; }
.faq-endcap p { margin: 0; color: #4d5651; font-size: 12px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .screen-enter,
  .bottom-sheet,
  .account-section[open] > .account-section-content,
  .faq-question[open] > p {
    animation: none !important;
  }
}

/* ==========================================================================
   USAD Admin System & Operations Portal Styles
   ========================================================================== */

.admin-auth-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(47, 217, 168, 0.08) 0%, rgba(12, 16, 23, 0) 55%),
    radial-gradient(circle at 15% 85%, rgba(20, 30, 45, 0.5) 0%, transparent 45%),
    #0c1017;
  color: #f1f5f9;
  overflow: hidden;
  user-select: none;
}

.admin-auth-card {
  position: relative;
  width: min(100% - 48px, 350px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.admin-app-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #0c1c17;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(47, 217, 168, 0.32);
}

.admin-app-mark svg {
  width: 24px;
  height: 24px;
}

.admin-auth-title {
  margin: 0 0 20px 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1.2;
}

.admin-auth-title span {
  color: var(--brand);
}

.admin-auth-alert {
  width: 100%;
  margin: -2px 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 6px;
  background: #231115;
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  animation: admin-alert-enter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes admin-alert-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.admin-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #1e2838;
  border-radius: 8px;
  background: #111722;
  color: #f1f5f9;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.admin-input::placeholder {
  color: #556477;
}

.admin-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 217, 168, 0.18);
  background: #131b28;
}

.admin-input[aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.6);
  background: #1a1216;
}

.admin-forgot-link {
  align-self: flex-end;
  margin-top: -3px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.admin-forgot-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.admin-login-button {
  display: grid;
  width: 100%;
  height: 46px;
  place-items: center;
  margin-bottom: 26px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #091713;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(47, 217, 168, 0.25);
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.admin-login-button:hover {
  background: #38e6b3;
  box-shadow: 0 6px 20px rgba(47, 217, 168, 0.35);
  transform: translateY(-1px);
}

.admin-login-button:active {
  transform: scale(0.99);
}

.admin-auth-tiles {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.admin-auth-tile {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  padding: 0;
  border: 1px solid #1e2838;
  border-radius: 12px;
  background: #111722;
  color: var(--brand);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.admin-auth-tile svg {
  width: 28px;
  height: 28px;
}

.admin-auth-tile:hover {
  border-color: var(--brand);
  background: rgba(47, 217, 168, 0.06);
  box-shadow: 0 8px 24px rgba(47, 217, 168, 0.2);
  transform: translateY(-2px);
}

.admin-auth-tile:active {
  transform: scale(0.96);
}

.admin-security-note {
  margin: 22px 0 0 0;
  color: #516074;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  max-width: 320px;
}

.admin-helper-bar {
  position: absolute;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 5;
}

.admin-helper-chip {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.admin-helper-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Simulated Scan / Auth Modals */
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  animation: admin-modal-fade 0.2s ease;
}

@keyframes admin-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-modal-box {
  width: min(100% - 32px, 400px);
  padding: 28px 24px 22px;
  border: 1px solid #1e2838;
  border-radius: 14px;
  background: #111722;
  color: #f1f5f9;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: admin-modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes admin-modal-pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.admin-modal-icon-wrapper {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(47, 217, 168, 0.1);
  color: var(--brand);
}

.admin-modal-icon-wrapper svg {
  width: 36px;
  height: 36px;
  z-index: 2;
}

.admin-pulse-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(47, 217, 168, 0.4);
  border-radius: 50%;
  animation: admin-pulse 2s infinite ease-in-out;
}

@keyframes admin-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.admin-modal-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 650;
  color: #ffffff;
}

.admin-modal-desc {
  margin: 0 0 22px 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.admin-modal-button-primary {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #0b1512;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.admin-modal-button-primary:hover {
  background: #38e6b3;
}

.admin-modal-button-secondary {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #283548;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
}

.admin-modal-button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Administrator Profile & Sign Out Button */
.admin-user-avatar-modal {
  width: 56px;
  height: 56px;
  font-size: 18px;
  background: rgba(47, 217, 168, 0.15);
  border: 2px solid var(--brand);
  color: var(--brand);
  box-shadow: 0 0 24px rgba(47, 217, 168, 0.25);
}

.admin-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(47, 217, 168, 0.12);
  border: 1px solid rgba(47, 217, 168, 0.35);
  color: #2FD9A8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-profile-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2FD9A8;
  box-shadow: 0 0 8px #2FD9A8;
}

.admin-profile-details {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #0c121d;
  border: 1px solid #1e2838;
  border-radius: 10px;
  text-align: left;
}

.admin-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

.admin-profile-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-profile-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.admin-profile-value {
  color: #e2e8f0;
  font-weight: 600;
  text-align: right;
  font-size: 12px;
}

.admin-signout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(220, 38, 38, 0.28) 100%);
  color: #fca5a5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.admin-signout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.admin-signout-btn:active {
  transform: translateY(0);
  background: #dc2626;
}

.admin-signout-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.admin-signout-btn:hover svg {
  transform: translateX(2px);
}


/* ==========================================================================
   Admin Operations Console Dashboard (Fleet Monitoring & Dispatch)
   ========================================================================== */

.admin-dashboard-layout {
  display: flex;
  width: 100%;
  height: 100%;
  background: #0b0f17;
  color: #f8fafc;
  overflow: hidden;
  user-select: text;
}

/* Sidebar */
.admin-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #0b0f17;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 24px 4px;
}

.admin-sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #10b981;
  color: #064e3b;
  display: grid;
  place-items: center;
}

.admin-sidebar-brand-icon svg {
  width: 20px;
  height: 20px;
}

.admin-sidebar-brand-text {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-nav-item:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: #263244;
}

.admin-nav-item.is-active {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  font-weight: 600;
  border-color: rgba(16, 185, 129, 0.28);
}

.admin-nav-item:active {
  transform: scale(.98);
}

.admin-nav-item:focus-visible {
  outline: 2px solid #2fd9a8;
  outline-offset: 2px;
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  margin-top: 14px;
  border-top: 1px solid #1e293b;
  cursor: pointer;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.admin-sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-user-logout-icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.admin-sidebar-user:hover .admin-user-logout-icon {
  color: #f87171;
  transform: translateX(1px);
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10b981;
  color: #10b981;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.admin-user-role {
  font-size: 11px;
  color: #94a3b8;
}

/* Main Panel */
.admin-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 28px 28px;
  background: #0b0f17;
  gap: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(0, 0, 0, 0.2);
}

.admin-main-container::-webkit-scrollbar,
.is-admin ::-webkit-scrollbar,
.phone-screen.is-admin ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.admin-main-container::-webkit-scrollbar-track,
.is-admin ::-webkit-scrollbar-track,
.phone-screen.is-admin ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  margin: 6px 2px;
}

.admin-main-container::-webkit-scrollbar-thumb,
.is-admin ::-webkit-scrollbar-thumb,
.phone-screen.is-admin ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  border: 1px solid rgba(12, 16, 23, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-main-container::-webkit-scrollbar-thumb:hover,
.is-admin ::-webkit-scrollbar-thumb:hover,
.phone-screen.is-admin ::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Header */
.admin-header-row {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 16px;
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1e293b;
}

.admin-header-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-header-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-select-corridor {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 14px;
  color: #f8fafc;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.admin-btn-assign {
  background: #10b981;
  color: #064e3b;
  border: 0;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s;
}

.admin-btn-assign:hover {
  background: #059669;
  color: #ffffff;
}

/* 4 Bento KPI Cards */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-kpi-context {
  margin: -8px 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.admin-metric-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.admin-metric-card .bento-metric-sublabel {
  line-height: 1.45;
}

.admin-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-metric-label {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: normal;
}

/* Soft Badges */
.admin-pill-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 9999px;
  border: none;
}

.admin-pill-badge.badge-total {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.admin-pill-badge.badge-registered {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.admin-pill-badge.badge-cost {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.admin-pill-badge.badge-shift {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

/* De-nested Bento Split Metrics */
.bento-split-2 {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.bento-split-3 {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.bento-split-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-split-divider {
  width: 1px;
  height: 40px;
  background: #1e293b;
}

.bento-metric-figure {
  font-size: 28px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bento-metric-figure.cyan {
  color: #38bdf8;
}

.bento-metric-figure.red {
  color: #ef4444;
}

.bento-metric-figure.green {
  color: #10b981;
}

.bento-metric-figure.muted {
  color: #94a3b8;
}

.bento-metric-sublabel {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.admin-fuel-kpi-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.admin-fuel-text-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Fuel Bar Chart */
.admin-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
  flex-shrink: 0;
}

.admin-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 16px;
}

.admin-bar-fill {
  width: 100%;
  border-radius: 2px;
  background: #3b82f6;
  transition: height 0.2s ease;
}

.admin-bar-fill.accent {
  background: #10b981;
}

.admin-bar-label {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1;
}

/* Active Shift Rate */
.admin-shift-rate-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-shift-text-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-shift-corridors {
  font-size: 11.5px;
  color: #94a3b8;
}

.admin-donut-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.admin-donut-svg {
  transform: rotate(-90deg);
  width: 52px;
  height: 52px;
}

.admin-donut-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
}

/* Active Fleet Directory (Table) */
.admin-directory-panel {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.admin-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 14px;
  margin-bottom: 16px;
  gap: 14px;
}

.admin-directory-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

/* Clean Text Tabs with 2px Bottom Indicator */
.admin-directory-tabs {
  display: flex;
  gap: 2px;
}

.admin-filter-pill {
  padding: 8px 14px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-filter-pill:hover {
  color: #f8fafc;
}

.admin-filter-pill.is-active {
  background: transparent;
  color: #f8fafc;
  font-weight: 600;
  border-bottom-color: #10b981;
}

.admin-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 6px 12px;
  width: 220px;
}

.admin-table-search svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.admin-table-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #f8fafc;
  font-size: 12px;
  width: 100%;
}

.admin-table-search input::placeholder {
  color: #64748b;
}

.admin-directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.admin-directory-table th {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #1e293b;
  background: transparent;
}

.admin-directory-table td {
  padding: 14px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  vertical-align: middle;
}

.admin-directory-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-bus-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #f8fafc;
}

.bus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bus-dot.green {
  background: #10b981;
}

.bus-dot.orange {
  background: #f59e0b;
}

.bus-dot.gray {
  background: #94a3b8;
}

.fuel-text {
  font-weight: 600;
}

.fuel-text.cyan {
  color: #38bdf8;
}

.fuel-text.yellow {
  color: #f59e0b;
}

/* Soft Badges with 6px Dot */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  border: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-badge.on-duty {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-badge.on-break {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.status-badge.off-duty,
.status-badge.standby {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.btn-telemetry {
  background: transparent;
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-telemetry:hover {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-row-actions {
  padding: 4px 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #111827;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-row-actions:hover {
  border-color: #64748b;
  background: #1e293b;
  color: #f8fafc;
}

.fleet-action-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
}

.fleet-action-menu > button:not(.admin-modal-button-secondary) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #263447;
  border-radius: 7px;
  background: #0f1622;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
}

.fleet-action-menu > button:not(.admin-modal-button-secondary):hover:not(:disabled) {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.07);
}

.fleet-action-menu > button:disabled {
  border-color: #1e293b;
  background: #0b0f17;
  color: #64748b;
  cursor: default;
  opacity: 0.78;
}

.fleet-action-menu > button:disabled strong {
  color: #94a3b8;
}

.fleet-action-menu > button strong {
  font-size: 12px;
  font-weight: 600;
}

.fleet-action-menu > button span {
  color: #94a3b8;
  font-size: 10.5px;
}

.fleet-action-menu .admin-modal-button-secondary {
  width: 100%;
  margin-top: 4px;
}

.fleet-action-prototype-note {
  margin: 4px 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  font-size: 11.5px;
  color: #94a3b8;
}

.admin-pagination button {
  padding: 5px 12px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11.5px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.admin-pagination button:hover {
  background: #1e293b;
}

/* Bottom Grid (Comments, Upcoming Shifts, Route Map) */
.admin-bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 16px;
}

.admin-bottom-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.admin-card-header-left svg {
  width: 15px;
  height: 15px;
  color: #10b981;
}

/* Comments List */
.admin-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-comment-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
}

.admin-comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-comment-author {
  color: #f8fafc;
  font-weight: 600;
}

.admin-comment-tag {
  color: #10b981;
  font-weight: 600;
}

.admin-comment-tag.gold {
  color: #f59e0b;
}

.admin-comment-time {
  color: #94a3b8;
  font-size: 11px;
}

.admin-comment-text {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

/* Shift Items */
.admin-shifts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-shift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 14px;
}

.admin-shift-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-shift-bus-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.admin-shift-bus-title .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
}

.admin-shift-people {
  font-size: 11px;
  color: #94a3b8;
}

.admin-shift-time-badge {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Map Panel */
.admin-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0f17;
  border: 1px solid #1e293b;
}

.admin-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   USAD Predictive Analytics Styles
   ========================================================================== */

/* Main Demand & Forecast Card */
.admin-analytics-card {
  background: #0f1622;
  border: 1px solid #1a2333;
  border-radius: 10px;
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
}

.analytics-legend {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.red {
  background: #ef4444;
}

.legend-dot.blue {
  background: #3b82f6;
}

.legend-dot.green {
  background: #10b981;
}

.analytics-confidence {
  font-size: 11px;
  color: #72849a;
}

/* Chart Container & Axis */
.analytics-chart-wrap {
  display: flex;
  height: 195px;
  gap: 8px;
  position: relative;
  padding-top: 10px;
  box-sizing: border-box;
}

.chart-y-axis {
  display: flex;
  align-items: stretch;
  align-self: flex-start;
  margin-top: 20px;
  color: #64748b;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  width: 68px;
  height: 140px;
  flex-shrink: 0;
  user-select: none;
}

.chart-y-axis-ticks {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 0;
  height: 140px;
}

.chart-y-axis-ticks span {
  white-space: nowrap;
  line-height: 12px;
}

.chart-plot-container {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Threshold lines */
.chart-threshold-line {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px dashed;
  pointer-events: auto;
  z-index: 4;
}

.chart-threshold-line::before {
  position: absolute;
  top: -6px;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.chart-threshold-line.line-peak {
  border-color: rgba(239, 68, 68, 0.45);
}

.chart-threshold-line.line-normal {
  border-color: rgba(59, 130, 246, 0.45);
}

.threshold-label {
  position: absolute;
  right: 6px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(17, 24, 39, 0.9);
  padding: 1px 5px;
  border-radius: 3px;
  z-index: 5;
  transform: translateY(-3px);
}

.chart-threshold-line:hover + .threshold-label,
.chart-threshold-line:focus-visible + .threshold-label,
.threshold-label:hover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.threshold-label.text-red {
  color: #ef4444;
}

.threshold-label.text-blue {
  color: #60a5fa;
}

/* Hourly Bars */
.chart-bars-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 165px;
  width: 100%;
  gap: 4px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  cursor: pointer;
  position: relative;
  min-width: 0;
}

.chart-bar-col:hover,
.chart-bar-col:focus-visible {
  z-index: 4;
}

.chart-bar-fill {
  flex: 0 0 auto;
  width: 100%;
  max-width: 28px;
  border-radius: 3px 3px 0 0;
  transform-origin: center bottom;
  transition: background-color 0.15s, transform 250ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms ease;
  position: relative;
}

.chart-bar-fill.low {
  background: #0f766e;
}

.chart-bar-fill.normal {
  background: #1d4ed8;
}

.chart-bar-fill.surge {
  background: #991b1b;
}

/* Selected Bar Styling */
.chart-bar-col.is-selected .chart-bar-fill {
  outline: 2px solid #ffffff;
  outline-offset: -1px;
}

.chart-bar-col:hover .chart-bar-fill,
.chart-bar-col:focus-visible .chart-bar-fill {
  outline: 1px solid #a7f3d0;
  outline-offset: 2px;
  transform: scaleY(1.04);
  filter: brightness(1.18) drop-shadow(0 0 5px rgba(47, 217, 168, 0.35));
}

.chart-bar-tooltip {
  position: absolute;
  z-index: 4;
  bottom: calc(var(--bar-height) + 31px);
  left: 50%;
  padding: 6px 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b0f17;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
  white-space: nowrap;
}

.chart-bar-col:hover .chart-bar-tooltip,
.chart-bar-col:focus-visible .chart-bar-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.bar-selected-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #334155;
  white-space: nowrap;
  pointer-events: none;
  animation: badge-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badge-pop {
  from { transform: translateX(-50%) translateY(4px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Heat Strip & Labels */
.bar-heat-pill {
  width: 100%;
  max-width: 28px;
  height: 4px;
  border-radius: 2px;
  margin-top: 5px;
  flex-shrink: 0;
}

.bar-heat-pill.green {
  background: #10b981;
}

.bar-heat-pill.blue {
  background: #3b82f6;
}

.bar-heat-pill.red {
  background: #ef4444;
}

.bar-time-label {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  height: 12px;
  white-space: nowrap;
  user-select: none;
}

/* 3 Metrics Strip - Bento De-nested with 1px Dividers */
.analytics-metrics-strip {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 4px;
}

.analytics-metric-box {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-metric-box:first-child {
  padding-left: 0;
}

.analytics-metric-divider {
  width: 1px;
  background: #1e293b;
  margin: 4px 8px;
}

.metric-box-label {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: normal;
  text-transform: none;
}

.metric-box-val {
  font-size: 28px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.1;
}

.metric-box-val.text-surge {
  color: #ef4444;
}

.metric-box-val.text-normal {
  color: #3b82f6;
}

.metric-box-val.text-low {
  color: #10b981;
}

/* Analytics Controls Bar */
.analytics-controls-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

.analytics-ctrl-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctrl-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.analytics-ctrl-select {
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #f8fafc;
  font-size: 12px;
  height: 36px;
  padding: 0 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.analytics-ctrl-select:focus {
  border-color: #10b981;
}

.analytics-profile-hint {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scale-val {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.analytics-slider {
  width: 100%;
  accent-color: #10b981;
  cursor: pointer;
  height: 4px;
}

.analytics-range-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #94a3b8;
  background: #111827;
  font-size: 12px;
  white-space: nowrap;
}

/* Bottom Grid for Analytics */
.analytics-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.analytics-bottom-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-icon-badge.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: none;
}

.card-icon-badge.cyan {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: none;
}

.card-icon-badge.mint {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: none;
}

.analytics-pill-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
}

.analytics-pill-badge.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.analytics-pill-badge.badge-cyan {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.analytics-pill-badge.badge-mint {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

/* Bento De-nested Content Styles */
.bento-denested-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.bento-stat-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.bento-stat-val {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
}

.bento-stat-val.text-red {
  color: #ef4444;
}

.bento-stat-val.text-amber {
  color: #f59e0b;
}

.bento-stat-desc {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 6px;
}

.bento-divider-line {
  height: 1px;
  background: #1e293b;
  margin: 2px 0;
}

.analytics-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  color: #94a3b8;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.recommendation-list strong {
  color: #f8fafc;
}

.analytics-action-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-approve-fleet {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #10b981;
  color: #0b0f17;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-approve-fleet:hover {
  background: #059669;
}

.btn-simulate-surge {
  padding: 0 16px;
  height: 40px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0b0f17;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-simulate-surge:hover {
  background: #1e293b;
}

/* ============================================================
   FLEET MONITORING & DISPATCH VIEW STYLES
   ============================================================ */

/* Header Pills (Right side) */
.admin-header-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  user-select: none;
}

.admin-header-pill svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.admin-header-pill.badge-telemetry {
  background: rgba(16, 185, 129, 0.12);
  border: none;
  color: #10b981;
  font-weight: 600;
  font-size: 12px;
}

.pulse-dot-mint {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Two-column layout grid */
.fleet-dispatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  transition: grid-template-columns 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-dispatch-grid.is-assignment-expanded {
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr);
}

.fleet-dispatch-grid.is-panel-closed {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1240px) {
  .fleet-dispatch-grid.is-assignment-expanded {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  }
}

.fleet-dispatch-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.fleet-dispatch-right-col {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
}

.fleet-dispatch-grid.is-assignment-expanded .fleet-dispatch-right-col {
  align-self: start;
}

/* 1. Radar Map Card */
.admin-radar-map-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.radar-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fleet-map-title {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 650;
}

.fleet-map-subtitle {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.corridor-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.corridor-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.corridor-pill-btn {
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.corridor-pill-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

.corridor-pill-btn.is-active {
  background: #1e293b;
  border-color: #10b981;
  color: #10b981;
  font-weight: 600;
}

.map-viewport-tools {
  display: flex;
  align-items: center;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  overflow: hidden;
}

.map-tool-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
}

.map-tool-btn svg {
  width: 14px;
  height: 14px;
}

.map-tool-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

.map-tool-divider {
  width: 1px;
  height: 16px;
  background: #1e293b;
}

/* Radar SVG Viewport */
.radar-map-viewport {
  position: relative;
  width: 100%;
  height: 300px;
  background: #101a24;
  border: 1px solid #1e293b;
  border-radius: 8px;
  overflow: hidden;
}

.radar-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

/* Tactical Map Markers & Radar Rings */
.bus-map-marker {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bus-map-marker:hover {
  transform: scale(1.1);
}

.bus-map-live-pulse {
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: busMapLivePulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes busMapLivePulse {
  0% {
    opacity: 0.65;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bus-map-live-pulse {
    animation: none;
    opacity: 0.35;
  }
}

/* Map Legend */
.radar-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 4px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.legend-dot-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot-circle.mint {
  background: #10b981;
}

.legend-dot-circle.amber {
  background: #f59e0b;
}

.legend-dot-circle.purple {
  background: #a78bfa;
}

.fleet-map-note {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #718096;
  font-size: 11px;
}

.fleet-map-gps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fd9a8;
  box-shadow: 0 0 8px rgba(47, 217, 168, 0.65);
}

/* 2. Active Fleet Telemetry Table Card */
.admin-telemetry-table-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.telemetry-table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.telemetry-card-title-wrap {
  display: flex;
  align-items: center;
}

.telemetry-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.telemetry-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.telemetry-tab-pill {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.telemetry-tab-pill:hover {
  color: #f8fafc;
}

.telemetry-tab-pill.is-active {
  background: transparent;
  border-bottom-color: #10b981;
  color: #f8fafc;
  font-weight: 600;
}

/* Telemetry Table Styles */
.telemetry-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
}

.fleet-telemetry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.fleet-telemetry-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  white-space: nowrap;
}

.fleet-telemetry-table td {
  padding: 14px;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}

.dispatch-row-manage {
  padding: 6px 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #17202d;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dispatch-row-manage:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #d1fae5;
}

.dispatch-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.dispatch-row-delete,
.staff-bulk-delete-btn {
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.16);
  color: #fca5a5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dispatch-row-delete {
  padding: 6px 9px;
  justify-self: end;
}

.dispatch-row-delete:hover,
.staff-bulk-delete-btn:not(:disabled):hover {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.32);
  color: #fecaca;
}

.dispatch-row-unavailable {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.fleet-telemetry-row {
  cursor: pointer;
  transition: background-color 0.15s;
  position: relative;
}

.fleet-telemetry-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fleet-telemetry-row.is-selected {
  background: rgba(16, 185, 129, 0.08);
  box-shadow: inset 3px 0 0 0 #10b981;
}

.fleet-seat-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #334155;
  border-radius: 7px;
  background: #0b0f17;
  color: #cbd5e1;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.fleet-seat-view-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fleet-seat-view-button:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.fleet-seat-view-button:focus-visible,
.seat-back-button:focus-visible {
  outline: 2px solid #2fd9a8;
  outline-offset: 2px;
}

.bus-cell-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bus-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.bus-active-dot.mint {
  background: #10b981;
}

.bus-active-dot.purple {
  background: #a78bfa;
}

.bus-number-text {
  font-weight: 600;
  color: #f8fafc;
  font-size: 13px;
}

.bus-badge-active-pill {
  font-size: 10px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
}

.trip-dest-title {
  font-weight: 600;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.3;
}

.trip-dest-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.status-pill-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.status-pill-telemetry .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill-telemetry.delayed {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.status-pill-telemetry.delayed .status-dot {
  background: #f59e0b;
}

.status-pill-telemetry.on-time {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-pill-telemetry.on-time .status-dot {
  background: #10b981;
}

.status-pill-telemetry.terminal {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.status-pill-telemetry.terminal .status-dot {
  background: #a78bfa;
}

.status-pill-telemetry.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.status-pill-telemetry.completed .status-dot {
  background: #10b981;
}

.next-stop-name {
  color: #f8fafc;
  font-weight: 500;
  font-size: 12px;
}

.next-stop-eta {
  color: #10b981;
  font-size: 12px;
  margin-top: 2px;
}

.next-stop-eta.muted {
  color: #94a3b8;
}

/* Occupancy Bar */
.occupancy-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.occupancy-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.occupancy-pct {
  font-weight: 600;
  color: #f8fafc;
}

.occupancy-seats {
  color: #94a3b8;
  font-size: 11px;
}

.occupancy-progress-bg {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}

.occupancy-progress-fill {
  height: 100%;
  border-radius: 2px;
}

.occupancy-progress-fill.amber {
  background: #f59e0b;
}

.occupancy-progress-fill.mint {
  background: #10b981;
}

.occupancy-progress-fill.purple {
  background: #a78bfa;
}

.driver-name-text {
  font-weight: 500;
  color: #f8fafc;
  font-size: 12px;
}

.driver-id-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

/* 3. Dispatch Control Panel (Right Column) */
.dispatch-control-panel-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dispatch-finish-trip-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #10b981;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.dispatch-finish-trip-button:hover {
  background: rgba(16, 185, 129, 0.18);
}

.dispatch-finished-note {
  padding: 10px 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 11px;
  line-height: 1.45;
}
.dispatch-assignment-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.dispatch-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dispatch-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dispatch-panel-shell {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
}

.dispatch-panel-shell > .dispatch-assignment-panel {
  flex: 1;
  min-width: 0;
}

.dispatch-panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #334155;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.dispatch-panel-close:hover {
  border-color: #64748b;
  color: #f8fafc;
}
.dispatch-assignment-panel > .dispatch-panel-header {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 16px 56px 16px 24px;
  border-bottom: 1px solid #1e293b;
}

.dispatch-assignment-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  animation: dispatch-assignment-reveal 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dispatch-assignment-overview,
.dispatch-assignment-actions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

@keyframes dispatch-assignment-reveal {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-dispatch-grid,
  .fleet-dispatch-grid.is-assignment-expanded .dispatch-assignment-panel-content {
    transition: none;
    animation: none;
  }
}

.dispatch-panel-title-wrap {
  display: flex;
  align-items: center;
}

.dispatch-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

/* Active Selection Box */
.dispatch-active-selection-box {
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selection-box-label {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: normal;
  text-transform: none;
}

.selection-box-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.selection-bus-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.selection-clock-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.selection-clock-btn:hover {
  color: #f8fafc;
}

.selection-alert-subtext {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.alert-dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.alert-dot-mint {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Key-Value Meta Rows */
.dispatch-specs-list {
  display: flex;
  flex-direction: column;
}

.dispatch-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
  font-size: 12px;
}

.dispatch-spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.dispatch-seat-dropdown {
  display: block;
}

.dispatch-seat-dropdown-trigger {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.dispatch-seat-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.dispatch-seat-trigger-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #f8fafc;
  text-align: right;
}

.dispatch-seat-trigger-value svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: #94a3b8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.18s ease;
}

.dispatch-seat-dropdown[open] .dispatch-seat-trigger-value svg {
  transform: rotate(180deg);
}

.dispatch-seat-dropdown-trigger:focus-visible {
  border-radius: 3px;
  outline: 2px solid #2fd9a8;
  outline-offset: 4px;
}

.dispatch-seat-dropdown-content {
  display: grid;
  gap: 8px;
  padding: 12px 0 2px;
}

.dispatch-seat-map {
  width: 100%;
  padding: 10px;
  border-color: #263244;
  background: #0b0f17;
}

.dispatch-seat-map .admin-seat-grid {
  max-height: 126px;
}

.dispatch-seat-map .admin-seat.is-available {
  cursor: pointer;
}

.dispatch-seat-map .admin-seat.is-available:hover,
.dispatch-seat-map .admin-seat.is-available.is-selected {
  border-color: #2fd9a8;
  background: rgba(47, 217, 168, 0.22);
  color: #a7f3d7;
}

.dispatch-seat-map .admin-seat.is-available:focus-visible {
  outline: 2px solid #2fd9a8;
  outline-offset: 2px;
}

.dispatch-seat-map .admin-seat.is-occupied {
  cursor: pointer;
}

.dispatch-seat-map .admin-seat.is-occupied:hover,
.dispatch-seat-map .admin-seat.is-occupied.is-selected {
  border-color: #64748b;
  background: #334155;
  color: #f8fafc;
}

.dispatch-seat-map .admin-seat.is-occupied:focus-visible {
  outline: 2px solid #2fd9a8;
  outline-offset: 2px;
}

.dispatch-seat-map .admin-seat-row {
  gap: 9px;
}

.dispatch-seat-booking-details {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #1e293b;
  border-radius: 7px;
  background: #111827;
}

.dispatch-seat-booking-details > p {
  margin: 0;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.5;
}

.dispatch-seat-book-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #0f9f77;
  border-radius: 6px;
  background: #0db783;
  color: #041b16;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.dispatch-seat-book-button:hover {
  border-color: #2fd9a8;
  background: #2fd9a8;
}

.dispatch-seat-book-button:focus-visible {
  outline: 2px solid #a7f3d7;
  outline-offset: 2px;
}

.dispatch-seat-release-button,
.dispatch-seat-release-confirm,
.dispatch-seat-release-cancel {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #475569;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.dispatch-seat-release-button {
  justify-self: start;
  background: #1e293b;
  color: #e2e8f0;
}

.dispatch-seat-release-button:hover,
.dispatch-seat-release-cancel:hover {
  border-color: #94a3b8;
  background: #273449;
}

.dispatch-seat-release-confirmation {
  display: grid;
  gap: 9px;
}

.dispatch-seat-release-confirmation p {
  margin: 0;
  color: #fcd34d;
  font-size: 10px;
  line-height: 1.5;
}

.dispatch-seat-release-confirmation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dispatch-seat-release-confirm {
  border-color: #b45309;
  background: #78350f;
  color: #fef3c7;
}

.dispatch-seat-release-confirm:hover {
  border-color: #f59e0b;
  background: #92400e;
}

.dispatch-seat-release-cancel {
  background: #1e293b;
  color: #cbd5e1;
}

.dispatch-seat-release-button:focus-visible,
.dispatch-seat-release-confirm:focus-visible,
.dispatch-seat-release-cancel:focus-visible {
  outline: 2px solid #2fd9a8;
  outline-offset: 2px;
}

.dispatch-seat-release-success {
  margin: 0;
  color: #6ee7b7;
  font-size: 10px;
  line-height: 1.5;
}

.dispatch-seat-booking-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 600;
}

.dispatch-seat-booking-heading span:last-child {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 400;
  text-align: right;
}

.dispatch-seat-booking-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dispatch-seat-booking-details dl > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dispatch-seat-booking-details dt {
  color: #94a3b8;
  font-size: 9px;
}

.dispatch-seat-booking-details dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dispatch-seat-dropdown-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 10px;
}

.spec-key-label {
  color: #94a3b8;
  font-weight: 500;
}

.spec-val-content {
  color: #f8fafc;
  font-weight: 600;
  text-align: right;
}

/* 2x2 Grid of Interventions */
.dispatch-interventions-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interventions-label {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: normal;
  text-transform: none;
}

.interventions-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.intervention-btn {
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.intervention-btn svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}

.intervention-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* Notes & Action Button */
.dispatch-note-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dispatch-note-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.dispatch-note-textarea {
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  color: #f8fafc;
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  outline: none;
  transition: border-color 0.15s;
}

.dispatch-note-textarea:focus {
  border-color: #10b981;
}

.dispatch-note-textarea::placeholder {
  color: #64748b;
}

.btn-send-dispatch-order {
  width: 100%;
  height: 42px;
  background: #10b981;
  color: #0b0f17;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.btn-send-dispatch-order:hover {
  background: #059669;
}

/* ============================================================
   STAFF AND RESOURCES VIEW STYLES
   ============================================================ */

.staff-header-roster-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  margin-left: 10px;
  vertical-align: middle;
}

.staff-header-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  height: 36px;
  padding: 0 12px;
  transition: border-color 0.15s;
}

.staff-header-search-wrap:focus-within {
  border-color: #10b981;
}

.staff-header-search-wrap svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.staff-header-search-input {
  background: transparent;
  border: 0;
  outline: none;
  color: #f8fafc;
  font-size: 12px;
  width: 180px;
}

.staff-header-search-input::placeholder {
  color: #64748b;
}

.staff-btn-export-csv {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  height: 36px;
  padding: 0 14px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.staff-btn-export-csv svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.staff-btn-export-csv:hover {
  background: #1e293b;
  color: #f8fafc;
}

.staff-btn-add-member {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #0b0f17;
  border: 0;
  border-radius: 6px;
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.staff-btn-add-member svg {
  width: 14px;
  height: 14px;
}

.staff-btn-add-member:hover {
  background: #059669;
}

/* Main Directory Card */
.staff-directory-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staff-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.staff-directory-title-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.staff-directory-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
}

.staff-role-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.staff-role-pill {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.staff-role-pill:hover {
  color: #f8fafc;
}

.staff-role-pill.is-active {
  background: transparent;
  border-bottom-color: #10b981;
  color: #f8fafc;
  font-weight: 600;
}

.staff-directory-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-count-summary {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.staff-count-summary strong {
  color: #f8fafc;
}

.staff-bulk-delete-btn {
  padding: 6px 10px;
}

.staff-bulk-delete-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.staff-depot-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.staff-depot-filter-btn svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.staff-depot-filter-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* Staff Table */
.staff-table-wrap {
  overflow-x: auto;
}

.staff-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.staff-data-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  white-space: nowrap;
}

.staff-data-table td {
  padding: 14px;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}

.staff-data-table tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.staff-data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.staff-data-table tr.is-selected {
  background: rgba(245, 158, 11, 0.08);
}

.staff-data-table tr.is-selected:hover {
  background: rgba(245, 158, 11, 0.12);
}

.staff-checkbox {
  width: 14px;
  height: 14px;
  accent-color: #10b981;
  cursor: pointer;
  margin: 0;
}

.staff-member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.staff-avatar.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.staff-data-table tr.is-selected .staff-avatar {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.staff-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
}

.staff-id-text {
  font-size: 11px;
  color: #94a3b8;
}

.staff-role-text {
  font-size: 12px;
  color: #cbd5e1;
}

.staff-bus-text {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.staff-depot-text {
  font-size: 12px;
  color: #cbd5e1;
}

.staff-rate-text {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.staff-max-hours-text {
  font-size: 12px;
  color: #cbd5e1;
}

/* Status Badges */
.staff-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: none;
}

.staff-status-badge.on-duty {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.staff-status-badge.on-break {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.staff-status-badge.off {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.status-dot-mint {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.status-dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.status-dot-gray {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.staff-action-more-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}

.staff-action-more-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* Pagination Row */
.staff-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
  font-size: 12px;
  color: #94a3b8;
}

.staff-pagination-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.staff-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  background: #0b0f17;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}

.staff-page-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

.staff-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.staff-page-btn.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #0b0f17;
  font-weight: 600;
}

.staff-page-ellipsis {
  color: #94a3b8;
  padding: 0 4px;
}

/* Bottom Status Bar */
/* ==========================================================================
   USAD Sensor & Camera Management Styles
   ========================================================================== */

.cctv-surveillance-container {
  margin-bottom: 14px;
}

.cctv-no-feeds {
  text-align: center;
  padding: 48px;
  color: #64748b;
  font-size: 13px;
  background: #0f1622;
  border: 1px solid #1a2333;
  border-radius: 8px;
}

.cctv-grid-layout.layout-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cctv-grid-layout.layout-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cctv-focus-layout {
  display: grid;
  grid-template-columns: 2.8fr 1fr;
  gap: 12px;
}

.cctv-focus-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.cctv-thumb-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1622;
  border: 1px solid #1a2434;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.cctv-thumb-card:hover {
  background: #151e2c;
  border-color: #2a3b50;
}

.cctv-thumb-card.is-active {
  border-color: #10b981;
  background: #111827;
}

.cctv-thumb-card img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.cctv-thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.cctv-thumb-code {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
}

.cctv-thumb-name {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Feed Cards */
.cctv-feed-card {
  background: #0b111a;
  border: 1px solid #1a2434;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cctv-feed-card:hover {
  border-color: #2a3b50;
}

.cctv-feed-card.is-large {
  min-height: 440px;
}

.cctv-osd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #0b121b;
  border-bottom: 1px solid #151f2c;
  font-size: 11px;
  user-select: none;
}

.cctv-osd-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.cctv-cam-code {
  font-family: monospace;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}

.cctv-cam-name {
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cctv-osd-status-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cctv-timestamp {
  font-family: monospace;
  font-size: 10px;
  color: #64748b;
}

.cctv-btn-expand {
  background: transparent;
  border: 0;
  color: #64748b;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 3px;
  padding: 0;
  transition: all 0.15s;
}

.cctv-btn-expand svg {
  width: 12px;
  height: 12px;
}

.cctv-btn-expand:hover {
  background: #1a2536;
  color: #ffffff;
}

/* Video Viewport */
.cctv-video-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.cctv-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) brightness(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cctv-video-viewport:hover .cctv-video-img {
  transform: scale(1.02);
}

.cctv-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 3px;
  opacity: 0.4;
}

.cctv-crosshair {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cctv-crosshair::before,
.cctv-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}

.cctv-crosshair::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0.15;
}

.cctv-crosshair::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  opacity: 0.15;
}

/* AI Detection Boxes */
.cctv-ai-box {
  position: absolute;
  pointer-events: none;
  border: 1.5px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 2px;
}

.cctv-ai-box.cyan {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.cctv-ai-box.amber {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.cctv-ai-label {
  position: absolute;
  top: -15px;
  left: -1px;
  font-size: 8.5px;
  font-weight: 700;
  font-family: monospace;
  padding: 1px 4px;
  background: #091a15;
  color: #2fd9a8;
  border: 1px solid rgba(47, 217, 168, 0.5);
  border-radius: 2px;
  white-space: nowrap;
}

.cctv-ai-box.cyan .cctv-ai-label {
  background: #071927;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
}

.cctv-ai-box.amber .cctv-ai-label {
  background: #231505;
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
}

/* Bottom OSD Bar */
.cctv-osd-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #0b121b;
  border-top: 1px solid #151f2c;
  font-size: 10.5px;
  color: #64748b;
  user-select: none;
}

.cctv-telemetry-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cctv-tag {
  font-family: monospace;
  font-size: 9.5px;
  color: #64748b;
}

.cctv-tag strong {
  color: #94a3b8;
}

.cctv-feed-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cctv-mini-btn {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  border-radius: 3px;
  padding: 0;
  transition: all 0.15s;
}

.cctv-mini-btn svg {
  width: 12px;
  height: 12px;
}

.cctv-mini-btn:hover {
  background: #1a2536;
  color: #ffffff;
}

/* Lower Settings & Telemetry Console Grid */
.cctv-console-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 16px;
  margin-top: 16px;
}

.cctv-settings-card,
.cctv-waveform-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cctv-console-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}

.cctv-console-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
}

.cctv-console-title-group svg {
  width: 15px;
  height: 15px;
  color: #10b981;
}

.cctv-settings-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cctv-setting-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 12px;
  border-right: 1px solid #1e293b;
}

.cctv-setting-col:last-child {
  border-right: none;
  padding-right: 0;
}

.cctv-col-heading {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0 0 6px 0;
  letter-spacing: normal;
  text-transform: none;
}

.cctv-kv-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  font-size: 12px;
}

.cctv-k {
  color: #94a3b8;
  font-size: 11px;
}

.cctv-v {
  font-weight: 600;
  color: #f8fafc;
  font-size: 13px;
}

.cctv-v.accent {
  color: #3b82f6;
}

.cctv-v.green {
  color: #10b981;
}

/* Waveform Monitor */
.cctv-waveform-tabs {
  display: flex;
  gap: 4px;
}

.cctv-tab-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.cctv-tab-btn:hover {
  color: #f8fafc;
}

.cctv-tab-btn.is-active {
  background: transparent;
  border-bottom-color: #10b981;
  color: #f8fafc;
  font-weight: 600;
}

.cctv-btn-calibrate {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.cctv-btn-calibrate:hover {
  background: #1e293b;
  color: #f8fafc;
}

.cctv-waveform-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cctv-waveform-svg {
  width: 100%;
  height: 80px;
  display: block;
  background: #0b0f17;
  border-radius: 6px;
  border: 1px solid #1e293b;
}

.cctv-wave-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

/* Top Toolbar & Layout Controls */
.cctv-layout-switcher {
  display: flex;
  gap: 4px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 3px;
}

.cctv-layout-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.cctv-layout-btn svg {
  width: 14px;
  height: 14px;
}

.cctv-layout-btn:hover {
  color: #f8fafc;
}

.cctv-layout-btn.is-active {
  background: #1e293b;
  color: #10b981;
}

.cctv-btn-ai {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  height: 36px;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cctv-btn-ai svg {
  width: 14px;
  height: 14px;
}

.cctv-btn-ai:hover {
  background: #1e293b;
  color: #f8fafc;
}

.cctv-btn-ai.is-active {
  background: #1e293b;
  border-color: #10b981;
  color: #10b981;
}

.cctv-ptz-pad-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.1s;
}

.cctv-ptz-pad-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* Feed Settings Popup & Animated Toggle Switches */
.cctv-settings-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cctv-btn-settings {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0b0f17;
  border: 1px solid #1e293b;
  border-radius: 6px;
  height: 36px;
  padding: 0 13px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cctv-btn-settings svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.18s ease;
}

.cctv-btn-settings:hover {
  background: #1e293b;
  color: #f8fafc;
}

.cctv-btn-settings:hover svg {
  color: #10b981;
  transform: rotate(25deg);
}

.cctv-btn-settings.is-active {
  background: #1e293b;
  border-color: #10b981;
  color: #10b981;
}

.cctv-btn-settings.is-active svg {
  color: #10b981;
  transform: rotate(45deg);
}

.cctv-settings-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: rgba(13, 21, 34, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #1f2e42;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 100;
  animation: cctvPopupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cctvPopupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cctv-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #182333;
}

.cctv-popup-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cctv-popup-close-btn {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 13px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
  padding: 0;
}

.cctv-popup-close-btn:hover {
  background: #182333;
  color: #ffffff;
}

.cctv-popup-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cctv-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.cctv-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  user-select: none;
}

.cctv-toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.cctv-toggle-desc {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.3;
}

/* Modern Sliding Toggle Switch Button */
.admin-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: #182434;
  border: 1px solid #28374c;
  cursor: pointer;
  padding: 0;
  outline: none;
  flex-shrink: 0;
  transition: background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toggle-switch:hover {
  border-color: #3b4e6b;
}

.admin-toggle-switch.is-on {
  background: #10b981;
  border-color: #10b981;
}

.admin-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.22s ease;
}

.admin-toggle-switch.is-on .admin-toggle-thumb {
  transform: translateX(20px);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   OPERATIONAL REPORTS & AUDITS FRAME
   ========================================================================== */

/* 4 Executive KPI Cards */
.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

@media (max-width: 1280px) {
  .admin-metrics-grid,
  .reports-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-metrics-grid,
  .reports-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.reports-kpi-card {
  min-width: 0;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.reports-kpi-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.reports-kpi-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  color: #94a3b8;
  text-transform: none;
}

.reports-growth-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  border: none;
}

.reports-growth-badge.positive {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.reports-growth-badge.target {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.reports-growth-badge.neutral {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.reports-kpi-figure {
  font-size: 28px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.1;
  margin-bottom: 8px;
}

.reports-kpi-figure.accent {
  color: #10b981;
}

.reports-kpi-sub {
  font-size: 12px;
  color: #94a3b8;
}

.reports-kpi-sub strong {
  color: #f8fafc;
}

/* Main Reports Table & Toolbar */
.reports-table-card {
  flex: 0 0 auto;
  min-width: 0;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.reports-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.reports-log-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.reports-log-date-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.reports-log-date {
  min-width: 170px;
  min-height: 38px;
  color-scheme: dark;
}

.reports-show-all-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b0f17;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.reports-show-all-btn:hover,
.reports-show-all-btn.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.reports-library-title {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reports-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.reports-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  text-align: left;
}

.reports-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  background: transparent;
  white-space: nowrap;
}

.reports-table td {
  padding: 14px;
  font-size: 13px;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}

.reports-table tbody tr {
  transition: background-color 0.15s ease;
}

.reports-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.reports-id-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reports-id-code {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
}

.reports-format-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0b0f17;
  color: #94a3b8;
  border: 1px solid #1e293b;
}

.reports-title-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reports-item-title {
  font-weight: 600;
  color: #f8fafc;
  font-size: 13px;
}

.reports-item-corridor {
  font-size: 12px;
  color: #94a3b8;
}

.reports-cat-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  white-space: nowrap;
}

.reports-period-text {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
}

.reports-metric-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reports-metric-primary {
  font-weight: 600;
  color: #10b981;
  font-size: 13px;
}

.reports-metric-secondary {
  font-size: 11px;
  color: #94a3b8;
}

.reports-status-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.reports-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.reports-status-pill.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.reports-status-pill.completed .status-dot {
  background: #10b981;
}

.reports-status-pill.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.reports-status-pill.pending .status-dot {
  background: #f59e0b;
}

.reports-status-pill.archived {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.reports-status-pill.archived .status-dot {
  background: #94a3b8;
}

.reports-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.reports-btn-view {
  background: #0b0f17;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reports-btn-view:hover {
  background: #1e293b;
  color: #f8fafc;
}

.reports-btn-download {
  background: rgba(16, 185, 129, 0.12);
  border: none;
  color: #10b981;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.reports-btn-download:hover {
  background: #10b981;
  color: #0b0f17;
}

.reports-header-row .admin-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reports-search-wrap {
  flex: 0 1 240px;
  min-width: 200px;
}

.peak-readiness-card {
  padding: 20px;
  border: 1px solid #254138;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(17, 24, 39, 0.98) 48%);
}

.peak-readiness-header,
.peak-readiness-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.peak-readiness-eyebrow {
  margin: 0 0 5px;
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.peak-readiness-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 650;
}

.peak-readiness-description {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.peak-readiness-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #3b8068;
  color: #94a3b8;
  white-space: nowrap;
}

.peak-readiness-summary strong {
  color: #d1fae5;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.peak-readiness-summary span {
  font-size: 11px;
  line-height: 1;
}

.peak-readiness-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 12px;
  color: #cbd5e1;
  font-size: 11px;
}

.peak-readiness-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.peak-readiness-checks i {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-size: 10px;
  font-style: normal;
}

.peak-ready-bus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 9px;
}

.peak-ready-bus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #263447;
  border-radius: 9px;
  background: rgba(11, 15, 23, 0.72);
}

.peak-ready-bus.is-dispatched {
  border-color: #334155;
}

.peak-ready-bus-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.peak-ready-bus-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
}
.seat-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.seat-summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 20px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.seat-summary-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.seat-summary-item strong {
  color: #f8fafc;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.seat-summary-item small {
  color: #94a3b8;
  font-size: 11px;
}

.seat-route-label,
.seat-sample-badge {
  color: #94a3b8;
  font-size: 12px;
}

.seat-sample-badge {
  padding: 5px 9px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid #334155;
  border-radius: 999px;
}

.seat-tracking-card {
  min-width: 0;
}

.seat-tracking-table {
  min-width: 820px;
}

.seat-tracking-table th[scope="row"] {
  color: #f8fafc;
  font-weight: 600;
}

.seat-bus-name,
.seat-tracking-table th[scope="row"] small {
  display: block;
}

.seat-tracking-table th[scope="row"] small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
}

.seat-bus-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11px;
  white-space: nowrap;
}

.seat-bus-status.on-duty {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.peak-ready-bus-icon svg {
  width: 18px;
  height: 18px;
}

.peak-ready-bus-identity div,
.peak-ready-bus-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.peak-ready-bus-identity strong {
  color: #f8fafc;
  font-size: 12px;
}

.peak-ready-bus-identity div span,
.peak-ready-bus-meta span {
  overflow: hidden;
  color: #94a3b8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reports-visualizations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#reports-decision-charts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reports-visual-toolbar,
.reports-visual-header,
.reports-insight-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reports-visual-toolbar {
  padding: 0 2px;
}

.reports-visual-title {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
}

.reports-visual-caption {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 11px;
}

.reports-period-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.reports-period-control .admin-select-corridor {
  min-width: 130px;
}

.reports-trend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
}

.reports-visual-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #111827;
}

.reports-chart-total {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.reports-chart-total span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.reports-trend-chart {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 230px;
  margin-top: 14px;
}

.reports-line-chart {
  position: relative;
  height: 230px;
  margin-top: 14px;
}

.reports-line-chart-svg {
  display: block;
  width: 100%;
  height: 198px;
  overflow: visible;
}

.reports-line-gridline {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
}

.reports-line-area {
  fill: rgba(47, 217, 168, 0.1);
}

.reports-line-path {
  fill: none;
  stroke: #2fd9a8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.reports-line-marker {
  fill: #111827;
  stroke: #2fd9a8;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transition: transform 150ms ease, filter 150ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.reports-line-point {
  cursor: crosshair;
  outline: none;
}

.reports-line-hit-area {
  fill: transparent;
  pointer-events: all;
  transition: fill 150ms ease;
}

.reports-line-point:hover .reports-line-hit-area,
.reports-line-point:focus-visible .reports-line-hit-area {
  fill: rgba(47, 217, 168, 0.075);
}

.reports-line-guide {
  stroke: rgba(110, 231, 183, 0.55);
  stroke-dasharray: 3 4;
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  vector-effect: non-scaling-stroke;
}

.reports-line-point:hover .reports-line-guide,
.reports-line-point:focus-visible .reports-line-guide {
  opacity: 1;
}

.reports-line-point:hover .reports-line-marker,
.reports-line-point:focus-visible .reports-line-marker {
  filter: drop-shadow(0 0 5px rgba(47, 217, 168, 0.65));
  transform: scale(1.55);
}

.reports-line-point:focus-visible .reports-line-marker {
  stroke: #a7f3d0;
  stroke-width: 4;
}

.reports-line-tooltip {
  position: absolute;
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b0f17;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
}

.reports-line-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.reports-line-xlabels {
  display: grid;
  grid-template-columns: repeat(var(--reports-point-count), minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
}

.reports-line-xlabels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peak-ready-bus-meta {
  text-align: right;
}

.peak-ready-status {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 650;
}

.peak-ready-status.is-dispatched {
  border-color: #334155;
  background: #17202d;
  color: #94a3b8;
}

.peak-dispatch-button,
.peak-reset-button {
  padding: 7px 11px;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.peak-dispatch-button:hover:not(:disabled) {
  border-color: #34d399;
  background: #24372f;
  color: #d1fae5;
}

.peak-dispatch-button:disabled {
  border-color: #334155;
  background: #151d29;
  color: #64748b;
  cursor: default;
}

.peak-readiness-footer {
  margin-top: 12px;
}

.peak-readiness-note,
.peak-readiness-announcement {
  color: #64748b;
  font-size: 10px;
}

.peak-readiness-announcement {
  min-height: 14px;
  margin: 6px 0 0;
  color: #6ee7b7;
}

.dispatch-remittances-card {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #111827;
}

.dispatch-remittances-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
}

.dispatch-remittances-header .peak-readiness-eyebrow {
  margin-bottom: 4px;
}

.dispatch-remittances-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
}

.dispatch-remittances-count {
  padding: 5px 8px;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 10px;
  white-space: nowrap;
}

.dispatch-remittances-note {
  margin: 0;
  padding: 0 20px 14px;
}
.seat-bus-status.on-break {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.seat-bus-status.off-duty {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.seat-capacity-total {
  color: #94a3b8;
}

.seat-occupancy-cell {
  display: flex;
  min-width: 150px;
  align-items: center;
  gap: 10px;
}

.seat-occupancy-cell strong {
  min-width: 36px;
  color: #cbd5e1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.seat-occupancy-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  background: #1e293b;
  border-radius: 999px;
}

.seat-occupancy-track span {
  display: block;
  height: 100%;
  background: #10b981;
  border-radius: inherit;
}

.seat-occupancy-track span.is-high {
  background: #f59e0b;
}

.seat-tracking-note {
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.dispatch-remittances-table-wrap {
  overflow-x: auto;
}

.dispatch-remittances-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dispatch-remittances-table th {
  padding: 10px 16px;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.dispatch-remittances-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
}

.dispatch-remittances-table tr:last-child td {
  border-bottom: 0;
}

.dispatch-remittances-table td:first-child {
  min-width: 180px;
}

.dispatch-remittances-table td:first-child strong,
.dispatch-remittances-table td:first-child span {
  display: block;
}

.dispatch-remittances-table td:first-child strong {
  color: #f8fafc;
  font-size: 12px;
}

.dispatch-remittances-table td:first-child span {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.dispatch-remittance-amount {
  color: #a7f3d0;
}

.dispatch-remittances-empty {
  margin: 0;
  padding: 18px 20px 20px;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 12px;
}

.peak-reset-button {
  border-color: #334155;
  background: transparent;
  color: #cbd5e1;
}

.peak-reset-button:hover {
  background: #1e293b;
}

@media (max-width: 700px) {
  .peak-readiness-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .peak-readiness-summary {
    min-width: 0;
  }

  .peak-readiness-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
.seat-back-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #334155;
  border-radius: 7px;
  background: #111827;
  color: #cbd5e1;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.seat-back-button:hover {
  border-color: #10b981;
  color: #6ee7b7;
}

.admin-seat-detail {
  gap: 18px;
}

.admin-seat-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-seat-detail-heading p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.admin-seat-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-seat-detail-summary > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0b0f17;
}

.admin-seat-detail-summary strong {
  color: #f8fafc;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.admin-seat-detail-summary span {
  color: #94a3b8;
  font-size: 11px;
}

.admin-seat-map {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 12px 14px 10px;
  border: 1px solid #263244;
  border-radius: 9px;
  background: #0b0f17;
}

.admin-seat-driver {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.admin-seat-driver span {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
}

.admin-seat-grid {
  display: grid;
  max-height: 150px;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: #334155 transparent;
  scrollbar-width: thin;
}

.admin-seat-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 12px;
}

.admin-seat-aisle {
  width: 1px;
  height: 100%;
  min-height: 22px;
  justify-self: center;
  background: #1e293b;
}

.admin-seat {
  display: grid;
  min-height: 22px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-seat.is-available {
  border-color: rgba(47, 217, 168, 0.42);
  background: rgba(47, 217, 168, 0.12);
  color: #6ee7c0;
  cursor: pointer;
}

.admin-seat.is-available:hover,
.admin-seat.is-available.is-selected {
  border-color: #2fd9a8;
  background: rgba(47, 217, 168, 0.22);
  color: #a7f3d7;
}

.admin-seat.is-available:focus-visible {
  outline: 2px solid #2fd9a8;
  outline-offset: 2px;
}

.admin-seat.is-occupied {
  background: #1e293b;
  color: #94a3b8;
  cursor: not-allowed;
}

.admin-seat.is-reserved {
  border-color: #475569;
  background: #273449;
  color: #cbd5e1;
  font-size: 9px;
  cursor: not-allowed;
}

.admin-seat-selection-note {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 720px) {
  .seat-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  @media (max-width: 420px) {
    .dispatch-seat-booking-details dl {
      grid-template-columns: 1fr;
    }

    .dispatch-seat-booking-heading {
      align-items: flex-start;
      flex-direction: column;
    }

    .dispatch-seat-booking-heading span:last-child {
      text-align: left;
    }
  }

  .seat-summary-item {
    padding: 15px 16px;
  }

  .admin-seat-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-seat-map {
    padding: 12px 10px 10px;
  }

  .admin-seat-row {
    gap: 10px;
  }
}
.reports-trend-column {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 7px;
}

.reports-trend-value {
  overflow: hidden;
  max-width: 100%;
  color: #94a3b8;
  font-size: 10px;
  text-overflow: clip;
  white-space: nowrap;
}

.reports-trend-track {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 166px;
  overflow: visible;
  border-radius: 5px 5px 0 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 40px, rgba(148, 163, 184, 0.08) 41px, transparent 42px);
  border-bottom: 1px solid #334155;
}

.reports-trend-bar {
  display: block;
  width: min(70%, 34px);
  min-height: 8px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #2fd9a8, #0d9476);
  height: var(--bar-height);
  transform-origin: center bottom;
  transition: transform 180ms ease, filter 180ms ease;
}

.reports-trend-bar.passengers {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.reports-trend-column:hover,
.reports-trend-column:focus-visible {
  z-index: 2;
}

.reports-trend-bar:hover,
.reports-trend-column:focus-visible .reports-trend-bar {
  outline: 1px solid #a7f3d0;
  outline-offset: 2px;
  transform: scaleY(1.04);
  filter: brightness(1.18) drop-shadow(0 0 5px rgba(47, 217, 168, 0.35));
}

.reports-chart-tooltip {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--bar-height) + 8px);
  left: 50%;
  padding: 6px 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b0f17;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.reports-trend-column:hover .reports-chart-tooltip,
.reports-trend-column:focus-visible .reports-chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reports-trend-label {
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

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

.reports-insight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 148px;
}

.reports-insight-heading {
  align-items: flex-start;
}

.reports-insight-heading .reports-visual-caption {
  margin: 2px 0 0;
  text-align: right;
}

.reports-mix-track,
.reports-deployment-track,
.reports-efficiency-track {
  position: relative;
  display: flex;
  height: 12px;
  margin: 16px 0 12px;
  overflow: visible;
  border-radius: 999px;
  background: #263244;
  cursor: crosshair;
  transition: filter 160ms ease;
}

.reports-mix-track:focus-visible,
.reports-deployment-track:focus-visible,
.reports-efficiency-track:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 4px;
}

.reports-mix-track::after,
.reports-deployment-track::after,
.reports-efficiency-track::after {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 6px 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b0f17;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.reports-mix-track:hover,
.reports-mix-track:focus-visible,
.reports-deployment-track:hover,
.reports-deployment-track:focus-visible,
.reports-efficiency-track:hover,
.reports-efficiency-track:focus-visible {
  z-index: 2;
  filter: brightness(1.15);
}

.reports-mix-track:hover::after,
.reports-mix-track:focus-visible::after,
.reports-deployment-track:hover::after,
.reports-deployment-track:focus-visible::after,
.reports-efficiency-track:hover::after,
.reports-efficiency-track:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reports-mix-cash,
.reports-mix-pouch,
.reports-deployment-track span,
.reports-efficiency-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: filter 160ms ease, transform 160ms ease;
}

.reports-mix-track > span:hover,
.reports-mix-track:focus-visible > span,
.reports-deployment-track > span:hover,
.reports-deployment-track:focus-visible > span,
.reports-efficiency-track > span:hover,
.reports-efficiency-track:focus-visible > span {
  outline: 1px solid #d1fae5;
  outline-offset: -1px;
  filter: brightness(1.12);
  transform: scaleY(1.22);
}

.reports-mix-cash {
  background: #2fd9a8;
}

.reports-mix-pouch {
  background: #60a5fa;
}

.reports-mix-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 11px;
}

.reports-mix-legend > span {
  display: grid;
  grid-template-columns: 8px auto auto;
  align-items: center;
  gap: 5px;
}

.reports-mix-legend small {
  grid-column: 2 / -1;
  color: #94a3b8;
  font-size: 10px;
}

.reports-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.reports-legend-dot.cash {
  background: #2fd9a8;
}

.reports-legend-dot.pouch {
  background: #60a5fa;
}

.reports-deployment-value,
.reports-efficiency-value {
  margin-top: 16px;
  color: #f8fafc;
  font-size: 25px;
  font-weight: 650;
}

.reports-deployment-value span,
.reports-efficiency-value span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.reports-deployment-track span {
  background: linear-gradient(90deg, #2fd9a8, #10b981);
}

.reports-deployment-legend,
.reports-efficiency-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 10px;
}

.reports-efficiency-track span {
  background: linear-gradient(90deg, #f59e0b, #2fd9a8);
}

.reports-efficiency-track i {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 18px;
  background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
  .chart-bar-fill,
  .chart-bar-tooltip {
    transition: none;
  }

  .reports-line-marker,
  .reports-line-hit-area,
  .reports-line-guide,
  .reports-trend-bar,
  .reports-chart-tooltip,
  .reports-mix-track,
  .reports-deployment-track,
  .reports-efficiency-track,
  .reports-mix-track::after,
  .reports-deployment-track::after,
  .reports-efficiency-track::after,
  .reports-mix-cash,
  .reports-mix-pouch,
  .reports-deployment-track span,
  .reports-efficiency-track span {
    transition: none;
  }

  .reports-line-tooltip {
    transition: none;
  }
}

@media (max-width: 700px) {
  .reports-trend-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

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

@media (max-width: 760px) {
  .reports-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-header-row .admin-header-actions {
    justify-content: flex-start;
  }

  .reports-library-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .reports-search-wrap {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 640px) {
  .reports-visual-toolbar,
  .reports-visual-header {
    align-items: flex-start;
  }

  .reports-visual-toolbar {
    flex-wrap: wrap;
  }

  .reports-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reports-visual-card {
    padding: 16px;
  }

  .reports-trend-chart {
    gap: 4px;
    height: 210px;
  }

  .reports-line-chart {
    height: 210px;
  }

  .reports-line-chart-svg {
    height: 180px;
  }

  .reports-trend-value,
  .reports-trend-label {
    font-size: 9px;
  }

  .reports-chart-total {
    font-size: 17px;
  }

  .reports-mix-legend {
    font-size: 10px;
  }
}
