:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #edf4f7;
  --ink: #18212f;
  --muted: #617083;
  --line: #dce5eb;
  --primary: #146c94;
  --primary-dark: #0f536f;
  --primary-strong: #0f536f;
  --accent: #f5b84b;
  --success: #18845f;
  --danger: #c2413d;
  --warning: #b66a14;
  --shadow: 0 18px 45px rgba(31, 47, 68, 0.12);
  --shadow-soft: 0 10px 28px rgba(31, 47, 68, 0.07);
  --focus: 0 0 0 3px rgba(20, 108, 148, 0.22);
  --radius: 8px;
  --nav-height: 76px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --visual-viewport-width: 100vw;
  --visual-viewport-height: 100dvh;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d131d;
  --surface: #151d2a;
  --surface-2: #1d2837;
  --ink: #edf4f8;
  --muted: #a7b5c6;
  --line: #2c3b4d;
  --primary: #4aa8d2;
  --primary-dark: #8ed0ed;
  --primary-strong: #b6e3f4;
  --accent: #f4c15d;
  --success: #4cc99a;
  --danger: #f1716c;
  --warning: #f3aa52;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  --focus: 0 0 0 3px rgba(74, 168, 210, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(20, 108, 148, 0.08), rgba(246, 248, 251, 0) 260px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(74, 168, 210, 0.14), rgba(13, 19, 29, 0) 260px),
    var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th,
label,
button {
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary,
input,
select,
textarea {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: inherit;
  text-decoration: none;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #146c43;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.phone-link::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, #d7ffe0 0 16%, transparent 17%),
    linear-gradient(145deg, #32c766, #138a43);
  box-shadow: 0 3px 7px rgba(19, 138, 67, 0.25);
}

.phone-link:hover {
  color: #0f5f39;
}

.app-shell {
  min-height: 100vh;
}

.app-shell.mobile {
  --bottom-nav-clearance: calc(var(--nav-height) + 44px + var(--safe-area-bottom));
  --passenger-route-action-clearance: calc(var(--bottom-nav-clearance) + 16px);
  --passenger-route-topbar-clearance: 8px;
  --passenger-route-sheet-min-visible-height: 15rem;
  --passenger-route-sheet-toolbar-min-height: 30px;
  --passenger-route-sheet-safe-lift:
    min(
      360px,
      max(
        0px,
        calc(
          var(--visual-viewport-height, 100dvh)
          - var(--bottom-nav-clearance)
          - var(--passenger-route-sheet-min-visible-height)
          - var(--passenger-route-sheet-toolbar-min-height, 30px)
        )
      )
    );
  --passenger-route-sheet-available-height:
    max(
      var(--passenger-route-sheet-min-visible-height),
      calc(
        var(--visual-viewport-height, 100dvh)
        - var(--bottom-nav-clearance)
        - var(--passenger-route-topbar-clearance, 8px)
      )
    );
  --passenger-route-sheet-low-lift: var(--bottom-nav-clearance);
  --passenger-route-sheet-nav-lift: calc(var(--bottom-nav-clearance) - var(--nav-height) - var(--safe-area-bottom));
  padding-bottom: var(--bottom-nav-clearance);
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  position: relative;
  width: min(100%, 430px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-language-picker {
  display: grid;
  gap: 7px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-language-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.auth-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: -2px 0 18px;
}

.auth-primary-actions-login {
  grid-template-columns: 1fr;
  gap: 9px;
}

.auth-primary-actions-register {
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-registration-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.auth-primary-actions .btn {
  min-height: 48px;
}

.auth-primary-actions .btn.active {
  box-shadow: var(--focus);
}

.pwa-install-card {
  display: grid;
  gap: 10px;
  margin: -4px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(74, 168, 210, 0.08);
}

.pwa-install-card span {
  display: grid;
  gap: 4px;
}

.pwa-install-card strong {
  color: var(--ink);
  font-size: 15px;
}

.pwa-install-card small {
  color: var(--muted);
  line-height: 1.35;
}

.pwa-install-card.installed {
  background: rgba(45, 184, 120, 0.1);
}

.auth-login-panel {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.language-flag,
.flag-icon {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 38px;
  min-width: 38px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #eef3f6;
  box-shadow: 0 1px 2px rgba(31, 47, 68, 0.12);
}

.flag-icon {
  width: 26px;
  min-width: 26px;
  height: 18px;
  border-radius: 3px;
  vertical-align: -4px;
}

.flag-pl {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}

.flag-en {
  background:
    linear-gradient(to right, transparent 0 42%, #cf142b 42% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 0 37%, #cf142b 37% 63%, transparent 63%),
    #ffffff;
}

.flag-de {
  background: linear-gradient(to bottom, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.flag-uk {
  background: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50% 100%);
}

.flag-sk {
  background:
    linear-gradient(to bottom, #fff 0 33.33%, #0b4ea2 33.33% 66.66%, #ee1c25 66.66% 100%);
}

.flag-sk::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 24%;
  width: 24%;
  height: 52%;
  border: 1px solid #fff;
  border-radius: 3px 3px 7px 7px;
  background:
    linear-gradient(to right, transparent 0 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(to bottom, transparent 0 30%, #fff 30% 44%, transparent 44%),
    linear-gradient(to bottom, #d7141a 0 46%, #0b4ea2 46% 100%);
}

.flag-cs {
  background:
    conic-gradient(from 124deg at 0% 50%, #11457e 0 112deg, transparent 0),
    linear-gradient(to bottom, #fff 0 50%, #d7141a 50% 100%);
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.flag-world {
  background: linear-gradient(135deg, #146c94 0 50%, #f5b84b 50% 100%);
}

.language-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-language-picker .select {
  min-height: 38px;
  width: 190px;
  padding: 8px 38px 8px 10px;
  background-color: rgba(255, 255, 255, 0.96);
}

.auth-brand-title {
  display: block;
  margin: 0 0 20px;
  text-align: center;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.auth-brand-link {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.auth-brand-link:hover {
  color: var(--primary-dark);
}

.auth-back-button {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.auth-back-icon,
.auth-back-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.auth-back-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-back-button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.auth-brand-link:focus-visible,
.auth-back-button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 400;
}

.auth-card h1,
.screen-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.auth-card p,
.screen-header p,
.muted {
  color: var(--muted);
}

.auth-card p {
  margin: 10px 0 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.field label {
  color: #324155;
  font-size: 13px;
  font-weight: 400;
}

.required-marker {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  border: 1px solid color-mix(in srgb, var(--warning) 55%, transparent);
  border-radius: 999px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  padding: 1px 7px;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}

.required-marker.soft {
  color: var(--muted);
  background: transparent;
}

.required-label,
.field > span:has(> .required-label-text) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  line-height: 1.25;
}

.required-label-text {
  min-width: 0;
}

.required-label .required-marker,
.field > span:has(> .required-label-text) > .required-marker {
  flex: 0 0 auto;
  margin-left: 0;
}

.driver-register-form .field,
.driver-register-form .input,
.driver-register-form .select {
  min-width: 0;
}

.driver-register-form .input,
.driver-register-form .select {
  width: 100%;
}

.driver-register-form .field > span:has(> .required-label-text) {
  min-height: 38px;
}

.driver-register-form .required-label {
  min-height: 38px;
}

.driver-register-form .soft-required-label {
  min-height: 42px;
}

.driver-register-form input[type="date"] {
  min-width: 0;
}

.driver-registration-details,
.company-employee-panel {
  --driver-form-divider: rgba(0, 0, 0, 0.38);
}

.driver-registration-details .driver-form-row,
.company-employee-panel .driver-form-row {
  align-items: start;
  gap: 16px;
  padding-top: 18px;
}

.driver-registration-details h2 + .driver-form-row,
.company-employee-panel form > .driver-form-row:first-child {
  padding-top: 8px;
}

.driver-registration-details .driver-form-row + .driver-form-row,
.driver-registration-details .driver-form-action-row + .driver-form-row,
.company-employee-panel .driver-form-row + .driver-form-row,
.company-employee-panel .driver-form-action-row + .driver-form-row {
  border-top: 1px solid var(--driver-form-divider);
}

.driver-registration-details .field,
.company-employee-panel .driver-form-row .field {
  align-self: stretch;
  grid-template-rows: minmax(38px, auto) auto;
}

.driver-registration-details .field > span,
.company-employee-panel .driver-form-row .field > span {
  padding-top: 2px;
}

.driver-registration-details .input,
.driver-registration-details .select,
.company-employee-panel .driver-form-row .input,
.company-employee-panel .driver-form-row .select {
  min-height: 56px;
}

.driver-form-action-row {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px 0;
}

.driver-form-action-row .btn {
  width: min(100%, 220px);
}

.driver-form-action-row .additional-license-list {
  width: 100%;
}

.license-city-stack,
.additional-license-list {
  display: grid;
  gap: 10px;
}

.additional-license-row {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.license-city-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.remove-license-row::before,
.remove-license-row::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.remove-license-row::before {
  transform: rotate(45deg);
}

.remove-license-row::after {
  transform: rotate(-45deg);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5.25 7 9.25l4-4' fill='none' stroke='%23617083' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 14px;
}

.textarea {
  min-height: 82px;
  resize: vertical;
}

.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.totp-qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.totp-qr-code {
  display: block;
  width: min(210px, 70vw);
  height: min(210px, 70vw);
  image-rendering: pixelated;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 47, 68, 0.08);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.accent {
  background: var(--accent);
  color: #1b2635;
}

.btn.outline {
  border-color: var(--line);
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
}

.btn.danger {
  background: var(--danger);
  color: #fff;
}

.btn.small {
  min-height: 40px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn.full {
  width: 100%;
}

.app-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
}

.app-icon-button > svg {
  display: block;
  margin: 0;
}

.app-icon-button > span:not(.notification-badge) {
  margin: 0;
  line-height: 1;
}

.app-icon-button[data-icon="close"] {
  font-size: 0;
}

.app-icon-button[data-icon="close"]::before,
.app-icon-button[data-icon="close"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.app-icon-button[data-icon="close"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.app-icon-button[data-icon="close"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-button {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.icon-button.small {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.btn.social {
  position: relative;
  width: 100%;
  justify-content: center;
  border-color: var(--line);
  padding-left: 54px;
  padding-right: 54px;
  background: #fff;
  text-align: center;
}

.btn.social:hover {
  border-color: rgba(20, 108, 148, 0.45);
  background: rgba(20, 108, 148, 0.06);
}

.social-logo {
  position: absolute;
  left: 16px;
  top: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  place-items: center;
}

.social-logo svg {
  display: block;
  width: 24px;
  height: 24px;
}

:root[data-theme="dark"] .btn.social.apple .social-logo path {
  fill: #ffffff;
}

.social-label {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-button {
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 400;
  padding: 0;
}

.topbar {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  min-height: calc(64px + var(--safe-area-top));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(220, 229, 235, 0.9);
  background: rgba(246, 248, 251, 0.9);
  padding: calc(12px + var(--safe-area-top)) calc(16px + var(--safe-area-right)) 12px calc(16px + var(--safe-area-left));
  backdrop-filter: blur(14px);
}

.topbar-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.theme-select {
  width: auto;
  min-width: 190px;
  min-height: 40px;
  padding: 8px 10px;
}

.topbar-title {
  display: grid;
  flex: 1 1 260px;
  min-width: 180px;
  gap: 2px;
}

.topbar-title-wrap {
  display: flex;
  flex: 1 1 260px;
  min-width: 180px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-icon-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.topbar-logout-pill {
  display: inline-flex;
  min-width: 78px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  padding: 0 16px;
  white-space: nowrap;
}

.topbar-logout-pill:hover {
  border-color: rgba(74, 168, 210, 0.45);
  color: var(--primary);
}

.topbar-logout-pill:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.topbar-title strong {
  font-size: 17px;
}

.topbar-title span {
  color: var(--muted);
  font-size: 12px;
}

.notification-center {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.notification-bell:hover {
  border-color: rgba(74, 168, 210, 0.45);
  color: var(--primary);
}

.notification-bell:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.notification-bell-svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--ink);
}

.notification-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notification-text-action {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  padding: 6px 8px;
  font-size: 12px;
}

.notification-text-action:hover:not(:disabled) {
  background: rgba(74, 168, 210, 0.12);
}

.notification-text-action:disabled {
  color: var(--muted);
  opacity: 0.55;
}

.notification-close {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.notification-close::before,
.notification-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.notification-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.notification-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.notification-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 11px;
}

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--muted);
}

.notification-item.urgent .notification-dot {
  background: var(--danger);
}

.notification-item.live .notification-dot {
  background: var(--success);
}

.notification-item.info .notification-dot,
.notification-item.system .notification-dot {
  background: var(--primary);
}

.notification-item.read {
  opacity: 0.68;
}

.notification-item.read .notification-dot {
  background: var(--line);
}

.notification-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.notification-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.notification-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  padding: 18px 14px;
  text-align: center;
}

.notification-foot {
  display: grid;
  gap: 10px;
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 11px 16px 14px;
  font-size: 12px;
  line-height: 1.4;
}

.notification-clear {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 12px;
  text-align: center;
}

.notification-clear:hover:not(:disabled) {
  border-color: rgba(194, 65, 61, 0.45);
  color: var(--danger);
}

.notification-clear:disabled {
  color: var(--muted);
  opacity: 0.55;
}

.theme-settings {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.theme-settings-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.theme-settings-button:hover {
  border-color: rgba(74, 168, 210, 0.45);
  color: var(--primary);
}

.theme-settings-button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.theme-settings-svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-settings-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(270px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px;
}

.theme-settings-title {
  display: block;
  padding: 3px 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.theme-settings-list {
  display: grid;
  gap: 6px;
}

.theme-settings-option {
  display: grid;
  min-height: 42px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.theme-settings-option:hover {
  border-color: rgba(74, 168, 210, 0.35);
  background: rgba(74, 168, 210, 0.1);
}

.theme-settings-option.active {
  border-color: rgba(74, 168, 210, 0.45);
  background: rgba(74, 168, 210, 0.16);
  color: var(--primary-strong);
}

.theme-quick-svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.viewport-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 4px;
}

.viewport-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
}

.viewport-button.active {
  background: #e4f2f7;
  color: var(--primary);
}

.viewport-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid currentColor;
}

.viewport-icon.desktop {
  width: 21px;
  height: 14px;
  border-radius: 3px;
}

.viewport-icon.desktop::before {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -6px;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.viewport-icon.desktop::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -8px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.viewport-icon.tablet {
  width: 16px;
  height: 22px;
  border-radius: 4px;
}

.viewport-icon.phone {
  width: 12px;
  height: 22px;
  border-radius: 5px;
}

.screen {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px max(16px, var(--safe-area-right)) calc(28px + var(--safe-area-bottom)) max(16px, var(--safe-area-left));
}

.viewport-preview-desktop .screen {
  width: 100%;
  max-width: none;
}

.owner-preview-read-only-note {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid rgba(20, 108, 148, 0.22);
  background: rgba(20, 108, 148, 0.08);
  color: var(--primary-strong);
  padding: 9px 16px;
  text-align: center;
}

.screen-header {
  display: grid;
  gap: 8px;
  margin: 6px 0 18px;
  max-width: 920px;
}

.screen-header.with-actions {
  align-items: start;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.card.compact {
  padding: 12px;
}

.card.compact:hover {
  border-color: rgba(20, 108, 148, 0.24);
}

.accordion-card,
.integration-card {
  padding: 0;
  overflow: hidden;
}

.accordion-summary,
.integration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.accordion-summary::-webkit-details-marker,
.integration-summary::-webkit-details-marker {
  display: none;
}

.accordion-title,
.integration-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.accordion-title span,
.integration-title span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.accordion-title small,
.integration-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accordion-meta,
.integration-summary-meta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding-right: 3px;
}

.accordion-icon {
  box-sizing: border-box;
  display: inline-grid;
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-align: center;
}

.accordion-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate3d(-50%, -50%, 0);
}

.accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.driver-contacts-list {
  gap: 14px;
}

.driver-contact-accordion {
  width: 100%;
}

.contact-priority-list {
  gap: 10px;
}

.contact-priority-table {
  display: grid;
  gap: 8px;
}

.contact-priority-table-head,
.contact-priority-row-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.contact-priority-table-head {
  padding: 0 48px 2px 14px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.contact-priority-row {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-priority-row[draggable="true"] {
  cursor: grab;
}

.contact-priority-row.dragging {
  opacity: 0.55;
}

.contact-priority-row.drop-target {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 24%, transparent);
}

.contact-priority-row-summary {
  position: relative;
  min-height: 62px;
  padding: 12px 48px 12px 14px;
  cursor: grab;
  list-style: none;
}

.contact-priority-row-summary::-webkit-details-marker {
  display: none;
}

.contact-priority-title span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.contact-priority-details {
  padding-top: 0;
}

.contact-priority-driver {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.contact-priority-driver > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-priority-driver small {
  color: var(--muted);
  font-size: 12px;
}

.contact-priority-row-summary .accordion-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.contact-action-row {
  display: grid;
  grid-template-columns: 1fr;
}

.contact-action-row .btn {
  width: 100%;
}

.contact-priority-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  color: var(--primary);
  font-size: 14px;
}

details[open] > summary .accordion-icon::before {
  content: "";
}

details[open] > summary .accordion-icon::after {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scaleY(0);
}

.accordion-content,
.integration-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 15px 15px;
}

details:not([open]) > .accordion-content,
details:not([open]) > .integration-details {
  display: none;
}

.transfer-summary {
  align-items: center;
}

.transfer-title {
  gap: 5px;
}

.transfer-summary-meta {
  display: inline-flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.transfer-date-pill {
  display: grid;
  min-width: 132px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.74);
}

.transfer-date-pill small,
.ride-date-stack small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.transfer-date-pill strong,
.ride-date-stack strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.transfer-details > .card {
  margin: 0;
  box-shadow: none;
}

.ride-date-stack {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: var(--muted);
  text-align: right;
}

.integration-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.integration-detail-grid {
  display: grid;
  gap: 10px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title h2,
.card-title h3 {
  margin: 0;
  font-size: 18px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.quick-action {
  display: grid;
  min-height: 76px;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(31, 47, 68, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 108, 148, 0.36);
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 47, 68, 0.08);
}

.quick-action span {
  color: var(--ink);
  font-size: 15px;
}

.quick-action small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action.primary {
  border-color: rgba(20, 108, 148, 0.38);
  background: #eaf6fa;
}

.quick-action.super {
  border-color: rgba(245, 184, 75, 0.54);
  background: #fff7e5;
}

.passenger-route-search {
  position: relative;
  isolation: isolate;
  display: grid;
  margin: 0 0 16px;
}

.dashboard-map-layer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.dashboard-map-layer .live-map {
  min-height: clamp(300px, 46vh, 560px);
  margin: 0;
  border: 0;
  border-radius: 0;
}

.dashboard-map-layer .driver-marker-dot {
  width: 22px;
  height: 22px;
  border-width: 4px;
  box-shadow: 0 10px 24px rgba(31, 47, 68, 0.3);
}

.dashboard-map-layer .map-caption {
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.passenger-location-status {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 8px 10px;
  backdrop-filter: blur(14px);
}

.passenger-location-status > span {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.passenger-location-status.outside-service {
  border-color: color-mix(in srgb, var(--warning) 66%, var(--line));
}

.passenger-location-status .btn,
.passenger-location-status select {
  flex: 0 1 auto;
  min-height: 34px;
  width: auto;
  max-width: min(240px, 42%);
  padding-block: 6px;
}

.loyalty-rules-table {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.loyalty-rules-table table {
  min-width: 720px;
}

.driver-loyalty-card {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.driver-loyalty-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.driver-loyalty-card-copy strong {
  font-size: 18px;
  font-weight: 400;
}

.driver-loyalty-card-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.driver-loyalty-card-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 14px;
}

.driver-loyalty-card-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.driver-loyalty-modal-backdrop {
  z-index: 100;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.driver-loyalty-modal {
  position: relative;
  display: grid;
  width: min(100%, 900px);
  max-height: calc(var(--visual-viewport-height, 100dvh) - var(--safe-area-top) - var(--safe-area-bottom) - 40px);
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: max(22px, var(--safe-area-top));
  padding-bottom: max(22px, var(--safe-area-bottom));
}

.driver-loyalty-modal-header {
  display: grid;
  gap: 6px;
  padding-right: 44px;
}

.driver-loyalty-modal-header h2,
.driver-loyalty-modal-header p {
  margin: 0;
}

.loyalty-points-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--primary) var(--surface-muted);
  scrollbar-width: thin;
}

.loyalty-points-table-scroll table {
  min-width: 720px;
}

.loyalty-points-scrollbar-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: none;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 12%, transparent);
  scrollbar-color: var(--primary) var(--surface-muted);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.loyalty-points-scrollbar-top > div {
  height: 1px;
}

.loyalty-points-scrollbar-top::-webkit-scrollbar,
.loyalty-points-table-scroll::-webkit-scrollbar {
  display: block;
  height: 12px;
}

.loyalty-points-scrollbar-top::-webkit-scrollbar-track,
.loyalty-points-table-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--surface-muted);
}

.loyalty-points-scrollbar-top::-webkit-scrollbar-thumb,
.loyalty-points-table-scroll::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface-muted);
  border-radius: 999px;
  background: var(--primary);
}

@media (max-width: 1024px) {
  .driver-loyalty-modal {
    width: 100%;
  }

  .loyalty-points-scrollbar-top {
    display: block;
  }
}

@media (max-width: 560px) {
  .driver-loyalty-card {
    align-items: flex-start;
  }

  .driver-loyalty-modal-backdrop {
    padding: calc(10px + var(--safe-area-top)) calc(10px + var(--safe-area-right)) calc(10px + var(--safe-area-bottom)) calc(10px + var(--safe-area-left));
  }

  .driver-loyalty-modal {
    max-height: calc(var(--visual-viewport-height, 100dvh) - var(--safe-area-top) - var(--safe-area-bottom) - 20px);
    padding-inline: 14px;
  }
}

html[data-cockpit-embedded-phone="true"] .loyalty-points-scrollbar-top,
html[data-cockpit-embedded-phone="true"] .loyalty-points-table-scroll {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}

html[data-cockpit-embedded-phone="true"] .loyalty-points-scrollbar-top::-webkit-scrollbar,
html[data-cockpit-embedded-phone="true"] .loyalty-points-table-scroll::-webkit-scrollbar {
  display: block;
  width: auto;
  height: 12px;
}

.passenger-route-search-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-height: var(--route-sheet-height, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: calc(-1 * var(--route-sheet-lift, 86px) - var(--passenger-route-sheet-nav-lift, 0px) + var(--passenger-route-topbar-clearance, 8px)) 10px 0;
  border: 1px solid var(--line);
  border-radius: 28px 28px 22px 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  transition: max-height 0.18s ease, margin-top 0.18s ease;
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.app-shell.mobile .passenger-route-search-form.sheet-full::after {
  display: block;
  grid-column: 1 / -1;
  block-size: var(--passenger-route-action-clearance);
  content: "";
}

.route-search-fields,
.route-search-field,
.passenger-route-search-form gmp-place-autocomplete.google-place-autocomplete,
[data-form="ride-preview"] gmp-place-autocomplete.google-place-autocomplete {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.map-pick-button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 7px 10px;
  text-align: center;
}

.map-pick-button:hover,
.map-pick-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--ink);
}

.google-place-manual-toggle {
  width: 100%;
  min-height: 32px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 6px 10px;
  text-align: center;
}

.google-place-manual-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--ink);
}

.map-access-status {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-access-status strong,
.map-access-status span {
  display: block;
}

.map-access-status strong {
  color: var(--ink);
  font-weight: 700;
}

.map-access-status span {
  margin-top: 2px;
}

.map-access-status.confirmed_by_google strong {
  color: #34d399;
}

.map-access-status.nearest_road_suggested strong,
.map-access-status.unconfirmed strong {
  color: #fbbf24;
}

.map-access-status.unavailable strong {
  color: #fca5a5;
}

:root[data-theme="light"] .map-access-status.confirmed_by_google strong {
  color: #047857;
}

:root[data-theme="light"] .map-access-status.nearest_road_suggested strong,
:root[data-theme="light"] .map-access-status.unconfirmed strong {
  color: #a16207;
}

:root[data-theme="light"] .map-access-status.unavailable strong {
  color: #b91c1c;
}

.passenger-route-search-form.sheet-low {
  --route-sheet-height: 370px;
  --route-sheet-lift: 190px;
}

.passenger-route-search-form.sheet-mid {
  --route-sheet-height: min(72vh, 720px);
  --route-sheet-lift: 150px;
}

.passenger-route-search-form.sheet-full {
  --route-sheet-height: min(82vh, 840px);
  --route-sheet-lift: 250px;
}

.passenger-route-search-form.baggage-open {
  --route-sheet-height: min(94dvh, 940px);
  --route-sheet-lift: 320px;
}

.passenger-route-search-form.sheet-low.baggage-open {
  --route-sheet-height: min(92dvh, 820px);
  --route-sheet-lift: 480px;
}

.passenger-route-search-form.sheet-mid.baggage-open {
  --route-sheet-height: min(94dvh, 900px);
  --route-sheet-lift: 480px;
}

.passenger-route-search-form.sheet-full.baggage-open {
  --route-sheet-height: min(96dvh, 960px, var(--passenger-route-sheet-available-height));
  --route-sheet-lift: var(--passenger-route-sheet-safe-lift);
}

.passenger-route-search.sheet-low .dashboard-map-layer .live-map {
  min-height: clamp(440px, 64vh, 760px);
}

.passenger-route-search.sheet-low .passenger-route-search-form.sheet-low,
.passenger-route-search.sheet-low .passenger-route-search-form.sheet-low.baggage-open {
  --route-sheet-height: none;
  --route-sheet-lift: calc(var(--passenger-route-sheet-low-lift, 0px) - var(--passenger-route-sheet-nav-lift, 0px));
  overflow: visible;
}

.route-sheet-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height:
    var(--passenger-route-sheet-toolbar-min-height, 30px);
}

.route-sheet-grip {
  display: grid;
  width: 100%;
  min-height: 28px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.route-sheet-grip span {
  display: block;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 42%, transparent);
}

.route-sheet-state-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 3px;
}

.route-sheet-state {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 9px;
}

.route-sheet-state.active {
  background: var(--primary);
  color: #fff;
}

.route-search-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.route-search-field,
.route-search-later {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  padding: 9px 12px;
}

.route-search-field span,
.route-search-field > label,
.route-search-later span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.route-search-field input,
.route-search-later input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 0;
}

.route-search-field input::placeholder {
  color: var(--muted);
}

.number-stepper {
  display: grid;
  grid-template-columns: 30px minmax(34px, 1fr) 30px;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.number-stepper-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.number-stepper-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.number-stepper-input {
  min-width: 0;
  text-align: center;
}

.number-stepper-input::-webkit-outer-spin-button,
.number-stepper-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.number-stepper-input[type="number"] {
  -moz-appearance: textfield;
}

.route-baggage-panel {
  display: grid;
  overflow: hidden;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.route-baggage-panel.open {
  overflow: visible;
}

.route-baggage-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
}

.route-baggage-toggle::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--primary);
  border-bottom: 1.6px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.route-baggage-panel.open .route-baggage-toggle::after {
  transform: rotate(225deg);
}

.route-baggage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 12px 18px;
}

.route-baggage-grid .field {
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  text-align: center;
}

.route-baggage-grid .field > span {
  width: 100%;
  justify-self: center;
  text-align: center;
  white-space: normal;
}

.route-baggage-grid .number-stepper {
  width: 100%;
}

.route-baggage-panel:not(.open) .route-baggage-grid {
  display: none;
}

.route-search-field.dropoff {
  position: relative;
  padding-left: 42px;
}

.route-search-field.dropoff::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-50%);
}

.route-search-submit {
  min-height: 50px;
  border-radius: 18px;
}

.route-action-stack {
  display: grid;
  gap: 8px;
}

.route-price-result {
  display: grid;
  justify-items: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(24, 132, 95, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 132, 95, 0.12), rgba(24, 132, 95, 0.05));
  color: var(--ink);
  padding: 12px;
  animation: route-price-slide 180ms ease-out both;
}

.route-price-result strong {
  color: var(--success);
  font-size: 26px;
  line-height: 1;
}

.route-price-result small {
  color: var(--muted);
  font-size: 12px;
}

.route-order-submit {
  min-height: 50px;
  border-radius: 18px;
}

.route-order-submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@keyframes route-price-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-order-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dashboard-order-options,
.dashboard-order-summary {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
}

.dashboard-order-summary .map-placeholder {
  margin: 0;
}

.passenger-active-ride-panel {
  margin: 0 0 16px;
}

.dashboard-stats-panel summary .passenger-active-ride-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-stats-panel summary .passenger-active-ride-summary span {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passenger-active-ride-panel summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passenger-destination-hub {
  display: grid;
  gap: 18px;
  margin: 2px 0 18px;
}

.passenger-destination-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.destination-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.destination-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.destination-section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.destination-carousel {
  display: grid;
  grid-auto-columns: minmax(186px, 226px);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.destination-card {
  position: relative;
  display: grid;
  grid-template-rows: 132px 1fr;
  height: 242px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.save-later-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.58);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 36, 0.2);
}

.save-later-badge::before {
  content: "";
  width: 18px;
  height: 22px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M6 3.5h12a2 2 0 0 1 2 2v18.2l-8-5.1-8 5.1V5.5a2 2 0 0 1 2-2Z' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.save-later-badge.saved {
  background: rgba(74, 168, 210, 0.92);
  color: #fff;
}

.save-later-badge.saved::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M6 3.5h12a2 2 0 0 1 2 2v18.2l-8-5.1-8 5.1V5.5a2 2 0 0 1 2-2Z' fill='%23fff' stroke='%23fff' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.destination-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 108, 148, 0.36);
  box-shadow: 0 14px 30px rgba(31, 47, 68, 0.12);
}

:root[data-theme="dark"] .destination-card:hover {
  border-color: rgba(74, 168, 210, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.destination-thumb {
  display: block;
  height: 132px;
  min-height: 132px;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--destination-image, linear-gradient(145deg, #146c94, #78c6d9));
  background-position: center;
  background-size: cover;
}

.destination-zakopane .destination-thumb {
  background-image:
    linear-gradient(150deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%),
    var(--destination-image, linear-gradient(145deg, #124d66, #69b4c7 58%, #e4d3a1));
}

.destination-thermal .destination-thumb {
  background-image:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.38), transparent 24%),
    var(--destination-image, linear-gradient(145deg, #0d766f, #6bd1c6 58%, #f2c46b));
}

.destination-trail .destination-thumb {
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 40%),
    var(--destination-image, linear-gradient(145deg, #28583d, #74a66b 55%, #c8d6a4));
}

.destination-tour .destination-thumb {
  background-image:
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.3), transparent 22%),
    var(--destination-image, linear-gradient(145deg, #33406c, #6e87bd 54%, #d7b36a));
}

.destination-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
}

.destination-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.destination-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.destination-modal {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 540px);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.destination-modal-image,
.saved-attraction-thumb {
  display: block;
  min-height: 160px;
  border-radius: 16px;
  background-image:
    linear-gradient(150deg, rgba(15, 23, 36, 0.12), rgba(15, 23, 36, 0)),
    var(--destination-image, linear-gradient(145deg, #146c94, #78c6d9));
  background-position: center;
  background-size: cover;
}

.saved-attractions-panel {
  margin-bottom: 16px;
}

.saved-attractions-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--primary) #e8eef3;
}

.saved-attractions-strip::-webkit-scrollbar {
  height: 10px;
}

.saved-attractions-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef3;
}

.saved-attractions-strip::-webkit-scrollbar-thumb {
  border: 2px solid #e8eef3;
  border-radius: 999px;
  background: var(--primary);
}

.saved-attractions-list,
.passenger-day-plan {
  display: grid;
  gap: 12px;
}

.saved-attractions-list.saved-attractions-strip {
  display: flex;
}

.saved-attraction-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 10px;
}

.saved-attractions-strip .saved-attraction-card {
  flex: 0 0 min(430px, 86vw);
  scroll-snap-align: start;
}

.saved-attraction-thumb {
  min-height: 132px;
}

.saved-attraction-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.saved-attraction-copy h3,
.saved-attraction-copy p {
  margin: 0;
}

.saved-attraction-copy p {
  color: var(--muted);
}

.inline-time-field {
  display: grid;
  gap: 5px;
  max-width: 180px;
  color: var(--muted);
  font-size: 12px;
}

.passenger-plan-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 10px;
}

.passenger-plan-item time {
  color: var(--primary-dark);
}

.passenger-plan-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.passenger-plan-item small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passenger-schedule-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.passenger-schedule-title h2 {
  display: grid;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  line-height: 1.15;
}

.passenger-schedule-title h2 span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.passenger-schedule-now {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

.passenger-time-cell {
  justify-items: end;
}

.passenger-day-schedule-scroll {
  height: min(68vh, 720px);
  min-height: 460px;
}

.schedule-event.saved-plan {
  border-color: rgba(74, 168, 210, 0.58);
  background: #e2f3f9;
  color: #124e68;
}

.schedule-event.saved-plan small,
.schedule-event.saved-plan em {
  color: #28677f;
}

.panel-note {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  border: 1px solid rgba(20, 108, 148, 0.18);
  border-radius: var(--radius);
  background: rgba(20, 108, 148, 0.07);
  padding: 12px 14px;
}

.panel-note span {
  color: var(--ink);
}

.panel-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.company-security-summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  padding: 13px 16px;
  color: var(--ink);
}

.company-security-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.company-security-summary span {
  color: var(--muted);
}

.company-security-summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.company-security-summary .btn {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .company-security-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .company-security-summary .btn {
    width: 100%;
  }
}

.dashboard-accordion {
  margin-top: 14px;
}

.admin-new-rides-scroll {
  max-height: min(520px, 58vh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: var(--primary) color-mix(in srgb, var(--surface-muted) 80%, transparent);
  scrollbar-width: thin;
}

.admin-new-rides-scroll::-webkit-scrollbar {
  width: 10px;
}

.admin-new-rides-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
}

.admin-new-rides-scroll::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--surface) 88%, transparent);
  border-radius: 999px;
  background: var(--primary);
}

.dashboard-stats-panel {
  margin: 0 0 14px;
}

.dashboard-stats-panel summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
}

.dashboard-stats-panel summary:hover {
  border-color: var(--primary);
}

.dashboard-stats-panel summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
  outline-offset: 2px;
}

.dashboard-stats-panel summary::-webkit-details-marker {
  display: none;
}

.dashboard-stats-panel summary span {
  font-size: 18px;
  font-weight: 400;
}

.dashboard-stats-panel summary small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
}

.dashboard-stats-panel summary::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  margin-top: -3px;
  border-right: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.dashboard-stats-panel[open] summary::after {
  transform: rotate(225deg);
}

.dashboard-stats-content {
  margin-top: 12px;
}

.company-report-list {
  display: grid;
  gap: 14px;
}

.company-report-overview {
  margin-bottom: 14px;
}

.pricing-basic-list {
  display: grid;
  gap: 8px;
}

.pricing-basic-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
}

.pricing-basic-row span {
  color: var(--muted);
}

.pricing-basic-row strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 18px;
  text-align: right;
  white-space: nowrap;
}

.company-report-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 64%, transparent);
}

.company-report-filters .field {
  margin: 0;
}

.company-report-filters .field span {
  color: var(--ink);
}

@media (max-width: 560px) {
  .company-report-card summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-report-card summary small {
    text-align: left;
  }

  .company-report-filters {
    grid-template-columns: 1fr;
  }
}

.admin-forms-content {
  display: grid;
  gap: 12px;
}

.admin-form-company-search {
  margin: 0;
}

.admin-form-company-search > span {
  color: var(--ink);
  font-size: 14px;
}

.admin-form-company-search .input {
  width: 100%;
}

.partner-embed-row[hidden],
.admin-form-search-empty[hidden] {
  display: none;
}

.dashboard-stats-panel[open] .dashboard-stats-content {
  animation: dashboard-stats-reveal 180ms ease-out;
}

.driver-dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 14px;
}

.driver-status-card,
.driver-vehicle-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.driver-status-card .button-row {
  margin-top: 0;
}

.driver-dashboard-panel {
  margin: 0 0 14px;
}

.driver-dashboard-panel summary .driver-panel-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.driver-dashboard-panel summary .driver-panel-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-panel-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-style: normal;
}

.driver-panel-meta span {
  font-size: 13px;
}

.viewport-preview-phone .active-ride-panel summary,
.app-shell.mobile .active-ride-panel summary {
  align-items: flex-start;
}

.viewport-preview-phone .active-ride-panel .driver-panel-meta,
.app-shell.mobile .active-ride-panel .driver-panel-meta {
  align-self: flex-start;
  align-items: flex-start;
}

.viewport-preview-phone .active-ride-panel .ride-status-badges,
.app-shell.mobile .active-ride-panel .ride-status-badges {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.driver-dashboard-content {
  display: grid;
  gap: 12px;
}

.driver-dashboard-content > .card {
  margin: 0;
}

.driver-schedule-card + .location-card {
  margin-top: 14px;
}

.new-rides-panel.has-rides summary {
  animation: driver-new-rides-pulse 1.55s ease-in-out infinite;
  border-color: rgba(74, 168, 210, 0.54);
}

@keyframes driver-new-rides-pulse {
  0%,
  100% {
    box-shadow: var(--shadow-soft), 0 0 0 0 rgba(74, 168, 210, 0);
  }
  50% {
    box-shadow: var(--shadow-soft), 0 0 0 5px rgba(74, 168, 210, 0.16);
  }
}

@keyframes dashboard-stats-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.route-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin: 10px 0;
  color: var(--ink);
}

.route-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.route-dot.end {
  border-radius: 3px;
  border-color: var(--accent);
}

.route-address {
  display: grid;
  gap: 2px;
}

.route-address small {
  color: var(--muted);
  font-weight: 400;
}

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

.metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
  padding: 11px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.metric strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.section-heading {
  margin: 18px 0 10px;
}

.section-heading.compact h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 400;
}

.passenger-history-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.passenger-history-filters .field {
  flex: 0 0 168px;
}

.passenger-history-filters .history-filter-day {
  flex-basis: 180px;
}

.passenger-history-filters .history-filter-year {
  flex-basis: 128px;
}

.passenger-history-filters .history-filter-clear {
  flex: 0 0 auto;
  min-height: 49px;
  white-space: nowrap;
}

.passenger-history-results {
  display: grid;
  gap: 12px;
}

.passenger-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.passenger-history-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.history-card-summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 54px 14px 14px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.history-card-summary::-webkit-details-marker {
  display: none;
}

.history-card-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  transform: translateY(-50%);
}

.history-card-summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
  transition: transform 0.16s ease;
}

.passenger-history-card[open] .history-card-summary::before {
  transform: translateY(-28%) rotate(225deg);
}

.history-card-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 400;
}

.history-card-summary .badge {
  margin-left: auto;
}

.history-card-details {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.passenger-history-card:not([open]) .history-card-details {
  display: none;
}

.history-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.history-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.history-card-footer span,
.history-card-footer small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.history-group > summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 54px 14px 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.history-group > summary::-webkit-details-marker {
  display: none;
}

.history-group > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  transform: translateY(-50%);
}

.history-group > summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
  transition: transform 0.16s ease;
}

.history-group[open] > summary::before {
  transform: translateY(-28%) rotate(225deg);
}

.history-month-group[open] > summary,
.history-day-group[open] > summary {
  border-bottom: 1px solid var(--line);
}

.history-group-label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.history-group-title {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.history-group-meta {
  color: var(--muted);
  font-size: 13px;
}

.history-group-content {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.history-group:not([open]) > .history-group-content {
  display: none;
}

.history-day-group {
  background: color-mix(in srgb, var(--surface-2) 88%, var(--surface));
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.badge.new {
  color: #714900;
  background: #fff1c6;
}

.badge.accepted,
.badge.driver_arriving {
  color: #0c5775;
  background: #d8eef7;
}

.badge.in_progress {
  color: #7a3900;
  background: #ffe1c3;
}

.badge.completed {
  color: #086145;
  background: #d8f5e6;
}

.badge.cancelled {
  color: #8d2521;
  background: #f8dddd;
}

.ride-status-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.badge-detail {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(74, 168, 210, 0.35);
  border-radius: 999px;
  padding: 4px 9px;
  color: #0c5775;
  background: rgba(216, 238, 247, 0.72);
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.live-status {
  position: relative;
  animation: ride-status-pulse 1.25s ease-in-out infinite;
}

.live-status-detail {
  animation: ride-status-detail-pulse 1.25s ease-in-out infinite;
}

@keyframes ride-status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(243, 170, 82, 0.42);
    transform: translateZ(0) scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(243, 170, 82, 0);
    transform: translateZ(0) scale(1.035);
  }
}

@keyframes ride-status-detail-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 168, 210, 0.42);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 168, 210, 0);
  }
}

.list {
  display: grid;
  gap: 12px;
}

.empty {
  border: 1px dashed #c5d3dc;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: calc(var(--nav-height) + var(--safe-area-bottom));
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px calc(8px + var(--safe-area-right)) calc(8px + var(--safe-area-bottom)) calc(8px + var(--safe-area-left));
  box-shadow: 0 -14px 35px rgba(31, 47, 68, 0.08);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.bottom-nav a.active {
  color: var(--primary);
  background: #e4f2f7;
}

.bottom-nav.driver-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

.bottom-nav.driver-nav > a,
.driver-nav-courses > summary {
  min-width: 0;
  padding: 0 3px;
  text-align: center;
  white-space: nowrap;
}

.driver-nav-courses {
  position: relative;
  display: flex;
  height: 100%;
  align-items: stretch;
  min-width: 0;
}

.driver-nav-courses > summary {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  list-style: none;
}

.driver-nav-courses > summary::-webkit-details-marker {
  display: none;
}

.driver-nav-courses > summary::after {
  position: absolute;
  right: max(8px, 12%);
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateY(2px) rotate(45deg);
  content: "";
}

.driver-nav-courses.active > summary,
.driver-nav-courses[open] > summary {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
}

.driver-nav-courses-menu {
  position: absolute;
  z-index: 35;
  bottom: calc(100% + 10px);
  left: 50%;
  display: grid;
  width: min(260px, calc(100vw - 28px));
  gap: 6px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 58%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.driver-nav-courses-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 12px;
  text-align: left;
}

.driver-nav-courses-menu a.active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
}

.status-timeline {
  display: grid;
  gap: 8px;
}

.status-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.status-step i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e7edf1;
  color: #607284;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
}

.status-step.done {
  color: var(--ink);
}

.status-step.done i {
  background: var(--primary);
  color: #fff;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cbd6de;
  transition: background 0.16s ease;
}

.switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(31, 47, 68, 0.25);
  content: "";
  transition: transform 0.16s ease;
}

.switch.on {
  background: var(--success);
}

.switch.on::after {
  transform: translateX(24px);
}

.admin-layout {
  display: grid;
  min-height: 100vh;
}

.admin-sidebar {
  display: none;
  position: relative;
  z-index: 30;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 400;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav a {
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 11px 12px;
  font-weight: 400;
}

.admin-nav-group {
  border-radius: var(--radius);
}

.admin-nav-group summary {
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary::after {
  content: "⌄";
  float: right;
}

.admin-nav-group[open] summary::after {
  content: "⌃";
}

.admin-nav-submenu {
  display: grid;
  gap: 4px;
  margin: 4px 0 2px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.admin-nav-submenu a {
  min-height: 38px;
  padding: 9px 10px;
}

.admin-nav a.active {
  color: var(--primary);
  background: #e4f2f7;
}

.admin-nav-group summary.active {
  color: var(--primary);
  background: #e4f2f7;
}

.admin-main {
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.table-scroll-shell {
  min-width: 0;
}

.table-scroll-shell .table-wrap {
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.table-top-scrollbar {
  position: sticky;
  top: calc(var(--table-top-scrollbar-offset, 0px) + 6px);
  z-index: 11;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  scrollbar-color: var(--primary) #e8eef3;
  scrollbar-width: thin;
}

.table-top-scrollbar > div {
  height: 1px;
}

.table-top-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.table-top-scrollbar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef3;
}

.table-top-scrollbar::-webkit-scrollbar-thumb {
  border: 3px solid #e8eef3;
  border-radius: 999px;
  background: var(--primary);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #405066;
  background: #f1f6f8;
  font-size: 12px;
  text-transform: uppercase;
}

thead th {
  position: sticky;
  z-index: 1;
  top: 0;
}

tbody tr:hover td {
  background: #f9fcfd;
}

tr:last-child td {
  border-bottom: 0;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(220, 229, 235, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  box-shadow: 0 8px 22px rgba(31, 47, 68, 0.04);
  backdrop-filter: blur(10px);
}

.alert {
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #74320f;
  background: #fff0db;
  border: 1px solid #f7cf9c;
}

.alert.success {
  color: #0c5f42;
  background: #ddf7e8;
  border-color: #a5e4c2;
}

.kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.demo-logins {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.demo-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.demo-login code {
  color: var(--ink);
  font-weight: 400;
}

.social-login {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auth-method-options {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.auth-email-toggle {
  min-height: 48px;
}

.auth-email-toggle.active {
  border-color: rgba(20, 108, 148, 0.55);
  background: rgba(20, 108, 148, 0.08);
  box-shadow: var(--focus);
}

.social-login.no-divider {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.social-divider::before,
.social-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.social-buttons {
  display: grid;
  gap: 9px;
}

.register-email-toggle {
  border-color: rgba(245, 184, 75, 0.72);
  background: #f5b84b;
  color: #1b2635;
  box-shadow: 0 8px 18px rgba(245, 184, 75, 0.18);
}

.register-email-toggle:hover {
  background: #e8a93a;
}

.register-email-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-method-options .register-email-form,
.auth-method-options .auth-login-form {
  margin: 4px 0 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.driver-register-link {
  display: grid;
  justify-items: center;
  margin-top: 8px;
}

.driver-company-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
}

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

.company-employee-panel {
  display: grid;
  gap: 14px;
}

.company-owner-card .card-title {
  align-items: start;
}

.company-owner-card .company-owner-badge {
  align-self: start;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  flex: 0 0 auto;
  justify-content: center;
  padding: 7px 12px;
  line-height: 1.15;
  text-align: center;
}

.driver-register-card {
  width: min(100%, 760px);
}

.driver-register-card .social-login {
  margin-top: 0;
}

.sms-login {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sms-login-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
}

.sms-login-form.compact {
  margin-top: 0;
}

.auth-create-account {
  margin-top: 10px;
  border-color: rgba(245, 184, 75, 0.72);
  background: #f5b84b;
  color: #1b2635;
  box-shadow: 0 8px 18px rgba(245, 184, 75, 0.22);
}

.auth-create-account:hover {
  background: #e8a93a;
}

.legal-consents {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.legal-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  color: #253244;
  font-size: 13px;
  line-height: 1.35;
}

.legal-consent input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  accent-color: var(--primary);
}

.legal-consent a {
  color: var(--primary-strong);
  text-decoration: none;
}

.legal-consent a:hover {
  text-decoration: underline;
}

.legal-consent.optional {
  color: var(--muted);
}

.legal-consents small {
  color: var(--muted);
  line-height: 1.35;
}

.legal-shell .auth-card {
  max-width: 560px;
}

.legal-document {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  color: #2e3b4e;
  line-height: 1.55;
}

.captcha-panel {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  color: #253244;
}

.captcha-panel > span {
  font-size: 14px;
}

.captcha-panel small {
  color: var(--muted);
  line-height: 1.35;
}

.captcha-mock {
  grid-template-columns: auto 1fr;
  align-items: center;
  cursor: pointer;
}

.captcha-mock input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.captcha-mock small {
  grid-column: 2;
}

.hcaptcha-widget {
  min-height: 78px;
  overflow: hidden;
}

.biometric-login {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.biometric-login small {
  color: var(--muted);
  line-height: 1.4;
}

.biometric-card {
  margin-bottom: 14px;
}

.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(20px + var(--safe-area-top)) calc(20px + var(--safe-area-right)) calc(20px + var(--safe-area-bottom)) calc(20px + var(--safe-area-left));
  background: rgba(31, 47, 68, 0.46);
  backdrop-filter: blur(3px);
}

.modal-panel {
  width: min(100%, 430px);
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ride-offer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: stretch;
  padding: calc(14px + var(--safe-area-top)) calc(14px + var(--safe-area-right)) calc(14px + var(--safe-area-bottom)) calc(14px + var(--safe-area-left));
  background: rgba(12, 20, 31, 0.74);
  backdrop-filter: blur(5px);
}

.ride-offer-inline {
  display: block;
  margin: 0 auto 14px;
  padding: 0 14px;
}

.ride-offer-inline .ride-offer-panel {
  width: min(100%, 980px);
  min-height: 0;
  max-height: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.ride-offer-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(100%, 560px);
  min-height: calc(var(--visual-viewport-height) - 28px - var(--safe-area-top) - var(--safe-area-bottom));
  max-height: calc(var(--visual-viewport-height) - 28px - var(--safe-area-top) - var(--safe-area-bottom));
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  background: #f7fafc;
  padding: 20px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.ride-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ride-offer-price {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  background: linear-gradient(145deg, #153f5b, #146c94);
  color: #fff;
  padding: 18px;
}

.ride-offer-price span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.ride-offer-price strong {
  font-size: 42px;
  line-height: 1;
}

.ride-offer-route {
  display: grid;
  gap: 10px;
}

.ride-offer-route div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.ride-offer-route small {
  color: var(--muted);
}

.ride-offer-route span {
  color: var(--ink);
  font-size: 17px;
}

.ride-offer-actions {
  display: grid;
  gap: 10px;
}

.counter-fare-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.counter-fare-box summary {
  min-height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
  color: var(--primary);
}

.counter-fare-box[open] summary {
  margin-bottom: 10px;
  background: #e9f5f8;
}

.counter-fare-box.compact {
  margin-top: 10px;
}

.compliance-box,
.audit-box {
  background: var(--surface);
}

.compliance-box summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.compliance-box summary .accordion-icon,
.counter-fare-box summary .accordion-icon {
  align-self: center;
  flex: 0 0 28px;
  margin: 0 2px 0 8px;
  transform: translateY(0);
}

.compliance-box summary span:first-child {
  color: var(--ink);
  font-size: 16px;
}

.counter-fare-box.compliance-box[open] summary {
  border-color: rgba(74, 168, 210, 0.45);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-2));
}

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

.audit-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.audit-item span,
.audit-item small {
  color: var(--muted);
  font-size: 13px;
}

.audit-item strong {
  color: var(--ink);
}

.fare-proposal-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(20, 108, 148, 0.26);
  border-radius: var(--radius);
  background: #eef8fb;
  padding: 12px;
}

.fare-proposal-card h4 {
  margin: 2px 0 0;
}

.fare-proposal-prices {
  display: grid;
  gap: 6px;
}

.break-panel {
  margin-bottom: 14px;
}

.inline-break-panel {
  margin: 4px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.inline-break-panel .card-title {
  margin-bottom: 2px;
}

.inline-break-panel .card-title h2 {
  font-size: 18px;
}

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

.break-tile {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #253244;
  font-weight: 400;
}

.break-tile:hover {
  border-color: var(--primary);
  background: #e9f5f8;
}

.manual-break {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.manual-break .btn {
  grid-column: 1 / -1;
}

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

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

.vehicle-card.active {
  border-color: var(--primary);
  background: #e9f5f8;
}

.vehicle-card > div {
  display: grid;
  gap: 3px;
}

.vehicle-card span,
.vehicle-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.vehicle-photo-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.vehicle-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-photo-thumb {
  position: relative;
  width: 74px;
  height: 58px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f6;
}

.vehicle-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 33, 47, 0.76);
  color: #fff;
  line-height: 1;
}

.vehicle-photo-empty {
  display: grid;
  min-width: 180px;
  min-height: 58px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-photo-upload {
  width: fit-content;
}

.vehicle-photo-upload input {
  display: none;
}

.expenses-card {
  margin-top: 14px;
}

.driver-expense-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.driver-expense-grid .field {
  min-width: 0;
}

.driver-expense-grid .field:last-child {
  grid-column: 1 / -1;
}

.driver-expense-grid .input,
.driver-expense-grid .select {
  min-width: 0;
  max-width: 100%;
}

.driver-expense-grid input[type="date"] {
  width: 100%;
}

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

.mini-row span,
.mini-row small {
  display: block;
}

.mini-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.driver-choice-grid {
  display: grid;
  gap: 9px;
}

.driver-choice-note {
  border: 1px solid #bdd7e2;
  border-radius: var(--radius);
  background: #eef8fb;
  color: #24445a;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.driver-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.driver-choice.selected {
  border-color: var(--primary);
  background: #e9f5f8;
}

.driver-choice.disabled {
  opacity: 0.65;
}

.driver-choice input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.driver-choice span {
  display: grid;
  gap: 3px;
}

.driver-choice small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #324155;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 400;
}

.mobile-admin-nav-group {
  display: inline-grid;
  gap: 6px;
}

.mobile-admin-nav-group summary {
  cursor: pointer;
  list-style: none;
}

.mobile-admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.mobile-admin-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 8px;
}

.pill.active {
  border-color: #a7d0df;
  background: #e4f2f7;
  color: var(--primary);
}

.admin-nav-group {
  position: relative;
}

.admin-nav-group::after {
  content: "";
  position: absolute;
  top: 0;
  right: -24px;
  width: 28px;
  height: 100%;
}

.admin-nav-trigger {
  display: block;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 11px 12px;
  font-weight: 400;
}

.admin-nav-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  float: right;
  transform: rotate(-45deg);
}

.admin-nav-group:hover > .admin-nav-trigger,
.admin-nav-group:focus-within > .admin-nav-trigger {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
}

.admin-nav-group summary::after {
  content: "v";
}

.admin-nav-group[open] summary::after {
  content: "^";
}

.admin-nav-group summary::after,
.admin-nav-trigger::after {
  margin-right: 4px;
}

.admin-nav-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 2px);
  z-index: 80;
  display: grid;
  min-width: 170px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 47, 68, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  visibility: hidden;
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 0s linear 280ms;
}

.admin-nav-group:hover .admin-nav-submenu,
.admin-nav-group:focus-within .admin-nav-submenu,
.admin-nav-group:has(.admin-nav-submenu:hover) .admin-nav-submenu,
.admin-nav-group.is-menu-open .admin-nav-submenu,
.admin-nav-group.is-hover-open .admin-nav-submenu,
.admin-nav-group[open] .admin-nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.mobile-admin-nav-group {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.mobile-admin-nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  width: calc(100% + 24px);
  height: 20px;
}

.mobile-admin-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mobile-admin-nav-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group:hover > .mobile-admin-nav-trigger,
.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group:focus-within > .mobile-admin-nav-trigger,
.mobile-admin-nav-group.is-menu-open > .mobile-admin-nav-trigger,
.mobile-admin-nav-group.is-hover-open > .mobile-admin-nav-trigger {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
}

.mobile-admin-submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 90;
  display: flex;
  min-width: 210px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(31, 47, 68, 0.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 120ms ease,
    visibility 0s linear 280ms;
}

.mobile-admin-nav-group.is-menu-open .mobile-admin-submenu,
.mobile-admin-nav-group[open] .mobile-admin-submenu,
.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group:hover .mobile-admin-submenu,
.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group:focus-within .mobile-admin-submenu,
.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group:has(.mobile-admin-submenu:hover) .mobile-admin-submenu,
.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group.is-hover-open .mobile-admin-submenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.admin-layout {
  grid-template-columns: 1fr;
}

.admin-layout .screen {
  padding-bottom: calc(118px + var(--safe-area-bottom));
}

.admin-mobile-nav {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 85;
  width: min(var(--admin-nav-preview-width, 1440px), calc(100% - var(--admin-nav-preview-gap, 0px)));
  min-height: calc(var(--nav-height) + var(--safe-area-bottom));
  transform: translateX(-50%);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px calc(8px + var(--safe-area-right)) calc(8px + var(--safe-area-bottom)) calc(8px + var(--safe-area-left));
  box-shadow: 0 -14px 35px rgba(31, 47, 68, 0.1);
  backdrop-filter: blur(14px);
}

.admin-mobile-nav.viewport-preview-desktop {
  --admin-nav-preview-width: 1440px;
  --admin-nav-preview-gap: 0px;
}

:root[data-owner-preview-embedded="true"] .admin-mobile-nav.viewport-preview-desktop {
  --admin-nav-preview-width: 1980px;
}

.admin-mobile-nav.viewport-preview-tablet {
  --admin-nav-preview-width: 820px;
  --admin-nav-preview-gap: 32px;
}

.admin-mobile-nav.viewport-preview-phone {
  --admin-nav-preview-width: 390px;
  --admin-nav-preview-gap: 24px;
}

.admin-mobile-nav-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-mobile-nav-scroll::-webkit-scrollbar {
  display: none;
}

.admin-mobile-nav-scroll > .pill,
.admin-mobile-nav-scroll > .mobile-admin-nav-group {
  min-width: 0;
}

.admin-mobile-nav .pill {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 0 4px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-mobile-nav .pill.active {
  color: var(--primary);
  background: #e4f2f7;
}

.company-mobile-nav .pill {
  cursor: pointer;
  font-family: inherit;
}

.company-mobile-nav .mobile-admin-submenu .pill {
  cursor: pointer;
}

.company-mobile-nav .pill.active {
  color: var(--primary);
  background: #e4f2f7;
}

.admin-mobile-nav .mobile-admin-nav-group {
  position: relative;
  display: grid;
  align-items: stretch;
}

.admin-mobile-nav .mobile-admin-nav-group::after {
  top: auto;
  bottom: calc(100% - 4px);
  left: 50%;
  width: min(540px, calc(100vw - 32px));
  height: 34px;
  transform: translateX(-50%);
}

.admin-mobile-nav:not(.viewport-preview-desktop) .mobile-admin-nav-group::after {
  display: none;
}

.admin-mobile-nav .mobile-admin-submenu {
  position: fixed;
  top: auto;
  bottom: calc(var(--nav-height) + 10px);
  left: 50%;
  z-index: 95;
  width: min(540px, calc(100% - 32px));
  min-width: 0;
  justify-content: center;
  transform: translateX(-50%);
  border-color: rgba(74, 168, 210, 0.86);
  background: color-mix(in srgb, var(--surface) 96%, var(--primary) 4%);
  box-shadow:
    0 0 0 1px rgba(74, 168, 210, 0.28),
    0 0 20px rgba(74, 168, 210, 0.26),
    0 18px 42px rgba(7, 14, 24, 0.24);
}

.admin-mobile-nav.viewport-preview-desktop .mobile-admin-nav-group::after {
  top: auto;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 22px;
  transform: none;
}

.admin-mobile-nav.viewport-preview-desktop .mobile-admin-submenu {
  position: absolute;
  top: auto;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 120;
  width: max-content;
  min-width: 100%;
  max-width: min(360px, calc(100vw - 32px));
  justify-content: flex-start;
  transform: none;
  border-color: rgba(74, 168, 210, 0.9);
  background: color-mix(in srgb, var(--surface) 96%, var(--primary) 4%);
  box-shadow:
    0 0 0 1px rgba(74, 168, 210, 0.35),
    0 0 22px rgba(74, 168, 210, 0.35),
    0 18px 42px rgba(7, 14, 24, 0.28);
}

.admin-mobile-nav.viewport-preview-desktop .settings-nav-group .mobile-admin-submenu {
  right: 0;
  left: auto;
}

.admin-mobile-nav.viewport-preview-desktop .courses-nav-group .mobile-admin-submenu {
  right: auto;
  left: 0;
}

.check-grid {
  display: grid;
  gap: 8px;
}

.check-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 11px;
  color: #324155;
  font-weight: 400;
}

.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.payment-icon-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.payment-icon {
  display: inline-grid;
  width: 42px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff, #edf3f7);
  color: #253244;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 12px rgba(31, 47, 68, 0.08);
  vertical-align: middle;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.payment-icon:hover {
  border-color: rgba(20, 108, 148, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 18px rgba(31, 47, 68, 0.16);
  transform: translateY(-1px);
}

.payment-icon.payment-cash {
  background: linear-gradient(145deg, #f1fff5, #d9f3e4);
}

.payment-icon.payment-card_terminal {
  background: linear-gradient(145deg, #f8fbff, #e3edf5);
}

.payment-icon.payment-blik {
  background: linear-gradient(145deg, #ffffff, #f1f4f7);
}

.payment-icon.payment-revolut {
  background: linear-gradient(145deg, #eef6ff, #e8e8ff);
}

.payment-icon .pay-svg {
  width: 36px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 5px 4px rgba(31, 47, 68, 0.18));
}

.payment-icon .pay-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px rgba(31, 47, 68, 0.18));
}

.payment-icon.payment-blik .pay-svg {
  width: 39px;
}

.payment-icon.payment-revolut .pay-svg {
  width: 39px;
}

.payment-check-grid {
  grid-template-columns: repeat(4, minmax(58px, 1fr));
}

.payment-check-item {
  justify-content: center;
  padding: 8px;
}

.payment-check-item .payment-icon {
  pointer-events: none;
}

.payment-choice-grid {
  display: grid;
  gap: 9px;
}

.payment-choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 12px;
  color: #253244;
  font-weight: 400;
}

.payment-choice.selected {
  border-color: var(--primary);
  background: #e9f5f8;
}

.payment-choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.payment-info-choice {
  cursor: default;
  user-select: none;
}

.payment-info-choice .payment-icon {
  width: 36px;
  height: 32px;
  pointer-events: none;
}

.payment-info-choice.empty {
  color: var(--muted);
}

.payment-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.revolut-payment-card {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.92), rgba(238, 242, 255, 0.82));
}

.blik-payment-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86));
}

.fare-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
  margin: 14px 0;
  padding: 14px;
  color: #18212f;
  background: #fff5dc;
}

.fare-total strong {
  font-size: 24px;
}

.map-placeholder {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(20, 108, 148, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(20, 108, 148, 0.12) 1px, transparent 1px),
    #e9f2f5;
  background-size: 34px 34px;
}

.maps-diagnostics {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.maps-diagnostics summary {
  padding: 12px 16px;
  cursor: pointer;
}

.maps-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.maps-diagnostics-grid strong {
  color: var(--ink);
}

@media (max-width: 800px) {
  .maps-diagnostics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.map-placeholder::before {
  position: absolute;
  inset: 32px 22px;
  border: 6px solid rgba(245, 184, 75, 0.85);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.live-map {
  min-height: 230px;
}

.live-map::before {
  display: none;
}

.google-map-shell {
  background:
    linear-gradient(90deg, rgba(20, 108, 148, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(20, 108, 148, 0.1) 1px, transparent 1px),
    #dbeaf0;
}

gmp-place-autocomplete.google-place-autocomplete {
  display: block;
  width: 100%;
  max-width: 100%;
  color-scheme: light;
}

:root[data-theme="dark"] gmp-place-autocomplete.google-place-autocomplete {
  color-scheme: dark;
}

.google-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.google-map-shell[data-google-map-state="ready"] .google-map-canvas {
  opacity: 1;
}

.google-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  color: #24455d;
}

.google-map-fallback span {
  display: inline-flex;
  justify-self: center;
  margin-bottom: 7px;
  border: 1px solid rgba(20, 108, 148, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 6px 12px;
  color: #146c94;
  font-size: 12px;
  letter-spacing: 0;
}

.google-map-fallback strong {
  display: block;
  max-width: 360px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  color: #17344a;
  font-size: 14px;
  font-weight: 500;
}

.google-map-shell[data-google-map-state="ready"] .google-map-fallback {
  display: none;
}

.map-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.google-map-shell[data-region-render-mode="google_polygon"] .taxi-zone-layer,
.google-map-shell[data-region-render-mode="google_polygon"] .taxi-zone-polygons,
.google-map-shell[data-region-render-mode="google_polygon"] .taxi-zone-label {
  display: none !important;
}

.taxi-zone-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.taxi-zone-polygons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.taxi-zone-polygon {
  fill: color-mix(in srgb, var(--zone-color) 22%, transparent);
  stroke: color-mix(in srgb, var(--zone-color) 80%, #111827);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.taxi-zone-polygon.city {
  stroke-dasharray: 5 3;
}

.taxi-zone-label {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 32px;
  border: 2px solid color-mix(in srgb, var(--zone-color) 74%, #111827);
  border-radius: 8px;
  background: color-mix(in srgb, var(--zone-color) 18%, transparent);
  color: #111827;
  font-size: 12px;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.22);
}

.taxi-zone-label {
  z-index: 3;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.taxi-zone-label span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.taxi-zone-legend {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 36px;
  display: grid;
  gap: 4px;
  max-width: min(92%, 420px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 12px;
}

.taxi-zone-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.taxi-zone-legend i {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.taxi-zone-map {
  margin-top: 12px;
}

.map-road {
  position: absolute;
  border-radius: 999px;
  background: rgba(245, 184, 75, 0.76);
}

.map-road.main {
  top: 48%;
  left: -8%;
  width: 116%;
  height: 10px;
  transform: rotate(-17deg);
}

.map-road.side {
  top: 12%;
  left: 46%;
  width: 8px;
  height: 86%;
  transform: rotate(24deg);
}

.driver-marker {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate(-50%, -50%);
}

.driver-marker-dot {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(31, 47, 68, 0.24);
}

.driver-marker-label {
  max-width: 170px;
  border: 1px solid rgba(220, 229, 235, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 7px 9px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 8px 22px rgba(31, 47, 68, 0.14);
}

.driver-marker-label small {
  display: block;
  color: var(--muted);
}

.google-map-shell[data-google-map-state="ready"] .driver-marker[data-marker-lat] {
  display: none;
}

.schedule-vehicle-map {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.schedule-vehicle-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.schedule-vehicle-map-heading h3,
.schedule-vehicle-map-heading p {
  margin: 0;
}

.schedule-vehicle-map-heading h3 {
  font-size: 20px;
}

.schedule-vehicle-map-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.backoffice-region-map {
  min-height: 380px;
}

.backoffice-driver-marker .driver-marker-label {
  min-width: 150px;
}

.google-map-info {
  color: #111827;
  font: 14px/1.4 system-ui, sans-serif;
}

@media (max-width: 640px) {
  .schedule-vehicle-map-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .backoffice-region-map {
    min-height: 320px;
  }

  .backoffice-driver-marker .driver-marker-label {
    display: none;
  }
}

.location-card {
  margin-top: 14px;
}

.stand-ride-card,
.navigation-card {
  margin-top: 14px;
}

.company-lookup-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  padding: 14px;
}

.location-card .btn {
  margin-top: 12px;
}

.navigation-map {
  min-height: 190px;
}

.navigation-map::before {
  display: none;
}

.nav-line {
  position: absolute;
  top: 50%;
  left: 17%;
  width: 66%;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 184, 75, 0.88);
  transform: rotate(-13deg);
}

.nav-pin {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(31, 47, 68, 0.22);
}

.nav-pin.pickup {
  top: 61%;
  left: 18%;
  background: var(--primary);
}

.nav-pin.dropoff {
  top: 31%;
  right: 18%;
  background: var(--danger);
}

.map-caption {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

:root[data-theme="dark"] .google-map-shell {
  background:
    linear-gradient(90deg, rgba(74, 168, 210, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(74, 168, 210, 0.12) 1px, transparent 1px),
    #111b28;
}

:root[data-theme="dark"] .google-map-fallback {
  color: #dce8f4;
}

:root[data-theme="dark"] .google-map-fallback span,
:root[data-theme="dark"] .google-map-fallback strong,
:root[data-theme="dark"] .taxi-zone-label span,
:root[data-theme="dark"] .taxi-zone-legend,
:root[data-theme="dark"] .map-caption {
  border-color: rgba(66, 84, 104, 0.92);
  background: rgba(15, 23, 36, 0.88);
  color: #e6eff8;
}

.embed-shell {
  min-height: 100vh;
  background: var(--bg);
  padding: 16px;
}

.embed-shell .card {
  max-width: 980px;
  margin: 0 auto;
}

.tour-embed-card .card-title {
  align-items: flex-start;
}

.tour-embed-card h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.tour-summary,
.tour-section {
  display: grid;
  gap: 12px;
}

.tour-section {
  margin-top: 14px;
}

.tour-section h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.tour-itinerary {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.tour-itinerary.compact {
  margin-top: 0;
}

.tour-card .meta-grid {
  margin: 12px 0;
}

.availability-grid {
  margin-top: 14px;
}

.availability-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.availability-panel .card-title {
  align-items: flex-start;
}

.availability-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.availability-panel p {
  margin: 0;
}

.availability-form {
  display: grid;
  gap: 10px;
}

.availability-card .availability-panel {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.shortcode-box {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.shortcode-box + .shortcode-box {
  margin-top: 12px;
}

.shortcode-box code {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  padding: 10px;
  color: #253244;
  white-space: nowrap;
}

.partner-embed-list,
.partner-embed-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.partner-embed-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.partner-embed-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.partner-embed-row code {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  color: #253244;
  padding: 9px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partner-embed-row small {
  color: var(--muted);
}

.profile-settings-list,
.driver-profile-form {
  display: grid;
  gap: 12px;
}

.profile-settings-card {
  margin: 0;
}

.profile-settings-card .accordion-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px 10px;
}

.profile-settings-card .accordion-title {
  grid-column: 1;
  grid-row: 1;
}

.profile-settings-card .accordion-title span {
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.profile-settings-card .accordion-meta {
  display: contents;
}

.profile-settings-card .accordion-meta > :not(.accordion-icon) {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  max-width: 100%;
}

.profile-settings-card .accordion-meta > .pill-row,
.profile-settings-card .accordion-meta > .badge,
.profile-settings-card .accordion-meta > .pill {
  flex-wrap: wrap;
  gap: 6px;
}

.profile-settings-card .accordion-meta > .accordion-icon {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}

.profile-settings-content {
  min-width: 0;
}

.profile-settings-content .form-grid,
.profile-settings-content .vehicle-list,
.profile-settings-content .partner-embed-list {
  margin-top: 0;
}

.profile-settings-content .button-row {
  margin-top: 0;
}

.profile-section-save-wrap {
  display: none;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-settings-card-dirty .profile-section-save-wrap {
  display: block;
}

.profile-section-save {
  width: 100%;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--primary) 82%, #fff);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #061018;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  box-shadow:
    0 0 0 0 rgba(74, 168, 210, 0.45),
    0 14px 30px rgba(74, 168, 210, 0.22);
  animation: profile-save-pulse 1.05s ease-in-out infinite;
}

.profile-section-save:disabled {
  cursor: default;
  opacity: 0.9;
}

@keyframes profile-save-pulse {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(74, 168, 210, 0.42),
      0 14px 30px rgba(74, 168, 210, 0.2);
  }

  50% {
    filter: brightness(1.18);
    transform: scale(1.012);
    box-shadow:
      0 0 0 10px rgba(74, 168, 210, 0),
      0 18px 40px rgba(74, 168, 210, 0.36);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-section-save {
    animation: none;
  }
}

.admin-schedule-card {
  overflow: hidden;
}

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.admin-schedule-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title meta"
    "region meta";
  align-items: start;
  gap: 8px 12px;
}

.admin-schedule-title h2 {
  grid-area: title;
}

.admin-schedule-title .schedule-region-select {
  grid-area: region;
  width: min(100%, 500px);
  min-width: 0;
  max-width: 500px;
  flex: none;
}

.admin-schedule-title .schedule-region-select span {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.admin-schedule-title > .pill {
  grid-area: meta;
  justify-self: end;
}

.admin-schedule-card:not(.driver-schedule-card) .schedule-controls {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}

.admin-schedule-card:not(.driver-schedule-card) .schedule-controls .btn,
.admin-schedule-card:not(.driver-schedule-card) .schedule-date-input {
  min-height: 52px;
  height: 52px;
}

.admin-schedule-card:not(.driver-schedule-card) [data-bind-admin="schedule-date"] {
  width: 240px;
}

.admin-schedule-card:not(.driver-schedule-card) .schedule-controls .schedule-region-select {
  width: min(100%, 500px);
  min-width: 0;
  max-width: 500px;
  flex: none;
  margin: 2px 0 12px;
}

.admin-schedule-card:not(.driver-schedule-card) .schedule-controls .schedule-region-select span {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.schedule-search-controls-hidden {
  display: none !important;
}

.admin-schedule-search-strip {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(245, 184, 75, 0.72);
  border-radius: var(--radius);
  background: rgba(245, 184, 75, 0.06);
}

.admin-schedule-search-strip span {
  color: #f4c15d;
  font-size: 16px;
}

.admin-schedule-search-strip .input {
  border-color: rgba(245, 184, 75, 0.7);
  background: var(--surface);
}

.schedule-date-input {
  width: auto;
  min-width: 160px;
}

.schedule-search,
.schedule-region-select {
  display: grid;
  gap: 4px;
  min-width: min(100%, 280px);
  flex: 1 1 240px;
}

.schedule-search.admin-schedule-search-strip {
  gap: 24px;
}

.schedule-region-select {
  max-width: 240px;
}

.schedule-search span,
.schedule-region-select span {
  color: #111827;
  font-size: 14px;
}

.schedule-search .input,
.schedule-region-select .select {
  width: 100%;
}

.schedule-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
}

.schedule-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

.schedule-filter.active {
  border-color: rgba(20, 108, 148, 0.35);
  background: rgba(20, 108, 148, 0.1);
  color: var(--primary-dark);
}

.schedule-filter small {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(24, 33, 47, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 4px 0 10px;
  color: #42546a;
  font-size: 12px;
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.schedule-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.schedule-legend i.reserved-unassigned {
  border-color: rgba(194, 65, 61, 0.5);
  background: rgba(194, 65, 61, 0.2);
}

.schedule-legend i.reserved-assigned {
  border-color: rgba(216, 132, 35, 0.52);
  background: rgba(245, 184, 75, 0.34);
}

.schedule-legend i.in-progress {
  border-color: rgba(24, 132, 95, 0.5);
  background: rgba(24, 132, 95, 0.22);
}

.schedule-legend i.completed {
  border-color: rgba(148, 163, 184, 0.42);
  background: #e9eef3;
}

.schedule-legend i.schedule-conflict {
  border-color: rgba(194, 65, 61, 0.68);
  background: rgba(255, 231, 231, 0.95);
}

.schedule-legend i.offer {
  border-color: rgba(245, 184, 75, 0.48);
  background: rgba(245, 184, 75, 0.18);
}

.schedule-legend i.transfer-return {
  border-color: rgba(64, 126, 201, 0.52);
  background: rgba(64, 126, 201, 0.2);
}

.schedule-legend i.tour-hold {
  border-color: rgba(151, 79, 190, 0.52);
  background: rgba(151, 79, 190, 0.18);
}

.schedule-legend i.group-assignment {
  border-color: rgba(74, 168, 210, 0.56);
  background: rgba(74, 168, 210, 0.2);
}

.schedule-legend i.break {
  border-color: rgba(93, 111, 132, 0.5);
  background: rgba(93, 111, 132, 0.2);
}

.schedule-scroll-hint {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-scroll-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(20, 108, 148, 0.25), rgba(245, 184, 75, 0.55)),
    #edf4f7;
}

.admin-schedule-horizontal-control {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin: 8px 0 12px;
}

.admin-schedule-horizontal-control > span {
  display: none;
}

.admin-schedule-scroll-arrow {
  position: relative;
  width: 24px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #edf4f7;
  cursor: pointer;
}

.admin-schedule-scroll-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--primary);
  transform: translate(-55%, -50%);
}

.admin-schedule-scroll-arrow.right::before {
  border-right: 0;
  border-left: 8px solid var(--primary);
  transform: translate(-45%, -50%);
}

.admin-schedule-scroll-arrow:hover {
  background: #e4eef4;
}

.admin-schedule-top-scrollbar {
  position: sticky;
  top: 0;
  z-index: 18;
  height: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  scrollbar-color: var(--primary) #e8eef3;
  scrollbar-width: thin;
}

.admin-schedule-horizontal-control .admin-schedule-top-scrollbar {
  position: relative;
  top: auto;
  display: block;
  width: 100%;
  z-index: auto;
  height: 18px;
  overflow: hidden;
  border: 1px solid #d7e1e9;
  border-radius: 999px;
  background: #f7fbfd;
  cursor: grab;
  touch-action: none;
}

.admin-schedule-horizontal-control .admin-schedule-top-scrollbar:active {
  cursor: grabbing;
}

.admin-schedule-horizontal-control .admin-schedule-top-scrollbar::after {
  content: "";
  position: absolute;
  top: 2px;
  left: var(--schedule-scroll-thumb-left, 0);
  width: var(--schedule-scroll-thumb-width, 100%);
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(14, 48, 70, 0.18);
}

.admin-schedule-top-scrollbar > div {
  height: 1px;
}

.admin-schedule-horizontal-control .admin-schedule-top-scrollbar > div {
  display: none;
}

.admin-schedule-top-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.admin-schedule-top-scrollbar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef3;
}

.admin-schedule-top-scrollbar::-webkit-scrollbar-thumb {
  border: 3px solid #e8eef3;
  border-radius: 999px;
  background: var(--primary);
}

.day-schedule-scroll {
  height: min(72vh, 760px);
  min-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scrollbar-color: var(--primary) #e8eef3;
  scrollbar-width: auto;
}

.admin-day-schedule-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.driver-schedule-card .day-schedule-scroll {
  height: min(68vh, 720px);
}

.day-schedule-scroll::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.day-schedule-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef3;
}

.day-schedule-scroll::-webkit-scrollbar-thumb {
  border: 3px solid #e8eef3;
  border-radius: 999px;
  background: var(--primary);
}

.day-schedule-board {
  display: grid;
  background: #fff;
}

.day-schedule-head,
.day-schedule-body {
  display: grid;
  grid-template-columns: repeat(var(--schedule-columns), minmax(176px, 1fr)) 74px;
}

.day-schedule-head {
  position: sticky;
  top: 0;
  z-index: 9;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
  box-shadow: 0 8px 18px rgba(31, 47, 68, 0.06);
}

.schedule-head-cell {
  display: grid;
  gap: 2px;
  min-height: 76px;
  align-content: start;
  padding: 10px;
  border-left: 1px solid var(--line);
  background: #f7fafc;
}

.schedule-head-cell span {
  font-size: 14px;
  color: var(--ink);
}

.schedule-head-cell small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.schedule-head-cell .schedule-driver-line {
  color: var(--ink);
}

.schedule-head-cell .schedule-phone-line {
  color: #324155;
}

.schedule-head-cell.time-cell {
  position: sticky;
  right: 0;
  z-index: 10;
  align-content: center;
  justify-items: end;
  gap: 6px;
  border-left: 1px solid var(--line);
  background: #f7fafc;
  box-shadow: -10px 0 18px rgba(31, 47, 68, 0.08);
  text-align: right;
  color: var(--muted);
}

.schedule-now-button {
  min-height: 30px;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
}

.schedule-now-button:hover {
  border-color: #020617;
  background: #020617;
}

:root[data-theme="dark"] .schedule-now-button {
  border-color: rgba(255, 255, 255, 0.88);
  background: #fff;
  color: #dc2626;
}

:root[data-theme="dark"] .schedule-now-button:hover {
  border-color: #fff;
  background: #fff5f5;
  color: #b91c1c;
}

.day-schedule-body {
  position: relative;
  z-index: 1;
  min-height: var(--schedule-height);
  background: #fff;
}

.schedule-time-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.schedule-time-line {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
  height: 0;
  border-top: 1px solid rgba(230, 237, 242, 0.9);
}

.schedule-time-line.half-hour {
  border-top: 2px solid rgba(181, 196, 209, 0.96);
}

.schedule-time-line.hour {
  border-top: 3px solid rgba(130, 151, 170, 0.98);
}

.schedule-lane,
.schedule-hour-column {
  position: relative;
  min-height: var(--schedule-height);
  border-left: 1px solid var(--line);
}

.schedule-lane {
  z-index: 1;
}

.schedule-hour-column {
  position: sticky;
  right: 0;
  z-index: 3;
  background: rgba(247, 250, 252, 0.9);
  box-shadow: -10px 0 18px rgba(31, 47, 68, 0.07);
}

.schedule-hour {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
}

.schedule-event {
  box-sizing: border-box;
  position: absolute;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 0;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid rgba(20, 108, 148, 0.3);
  border-radius: var(--radius);
  background: #e8f0f4;
  color: #163247;
  box-shadow: 0 8px 18px rgba(31, 47, 68, 0.08);
}

.schedule-event.is-clickable {
  cursor: pointer;
}

.schedule-event.is-clickable:hover {
  border-color: rgba(20, 108, 148, 0.58);
  box-shadow: 0 10px 22px rgba(31, 47, 68, 0.14);
}

.schedule-event span {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-event small,
.schedule-event em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: normal;
}

.schedule-event small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.schedule-event em {
  white-space: nowrap;
}

.schedule-event.tour {
  border-color: rgba(24, 132, 95, 0.35);
  background: #e8f2ee;
}

.schedule-event.tour-hold {
  border-color: rgba(151, 79, 190, 0.5);
  background: #eee6f5;
  color: #653080;
}

.schedule-event.tour-hold small,
.schedule-event.tour-hold em {
  color: #784493;
}

.schedule-event.transfer-return {
  border-color: rgba(64, 126, 201, 0.5);
  background: #e0eaf6;
  color: #24558d;
}

.schedule-event.transfer-return small,
.schedule-event.transfer-return em {
  color: #35689f;
}

.schedule-event.group-assignment {
  border-color: rgba(74, 168, 210, 0.58);
  background: #e3f3fb;
  color: #155f7f;
}

.schedule-event.group-assignment small,
.schedule-event.group-assignment em {
  color: #24708f;
}

.schedule-event.reserved-unassigned {
  border-color: rgba(194, 65, 61, 0.5);
  background: #f5dddd;
  color: #7f1d1d;
}

.schedule-event.reserved-unassigned small,
.schedule-event.reserved-unassigned em {
  color: #8f3331;
}

.schedule-event.reserved-assigned {
  border-color: rgba(216, 132, 35, 0.54);
  background: #fdecce;
  color: #70430b;
}

.schedule-event.reserved-assigned small,
.schedule-event.reserved-assigned em {
  color: #8a5a18;
}

.schedule-event.in-progress {
  border-color: rgba(24, 132, 95, 0.48);
  background: #d8ece5;
  color: #145f46;
}

.schedule-event.in-progress small,
.schedule-event.in-progress em {
  color: #256f56;
}

.schedule-event.completed {
  border-color: rgba(148, 163, 184, 0.42);
  background: #eef2f6;
  color: #596779;
  box-shadow: none;
}

.schedule-event.completed small,
.schedule-event.completed em {
  color: #718096;
}

.schedule-event.schedule-conflict {
  border-color: rgba(194, 65, 61, 0.68);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(194, 65, 61, 0.12) 0,
      rgba(194, 65, 61, 0.12) 8px,
      rgba(255, 255, 255, 0.1) 8px,
      rgba(255, 255, 255, 0.1) 16px
    ),
    rgba(255, 231, 231, 0.92);
  color: #7f1d1d;
  box-shadow: 0 8px 20px rgba(194, 65, 61, 0.14);
}

.schedule-event.schedule-conflict small,
.schedule-event.schedule-conflict em {
  color: #8f3331;
}

.schedule-conflict-note {
  font-weight: 400;
  white-space: nowrap;
}

.schedule-event.offer {
  border-color: rgba(245, 184, 75, 0.48);
  background: #fef3df;
}

.schedule-event.break {
  border-color: rgba(93, 111, 132, 0.36);
  background: #eef0f3;
}

.schedule-event.cancelled {
  border-color: rgba(194, 65, 61, 0.34);
  background: #faeded;
}

.schedule-empty {
  position: absolute;
  top: 24px;
  right: 10px;
  left: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(247, 250, 252, 0.86);
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

.schedule-now-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 4;
  border-top: 2px dashed var(--danger);
  pointer-events: none;
}

.schedule-now-line span {
  position: absolute;
  top: -13px;
  left: 50%;
  display: inline-block;
  width: max-content;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
}

.admin-ride-modal {
  width: min(100%, 760px);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.admin-ride-backdrop {
  z-index: 140;
}

.admin-layout:has(~ .admin-ride-backdrop) .admin-mobile-nav,
.company-layout:has(~ .admin-ride-backdrop) + .admin-mobile-nav {
  visibility: hidden;
  pointer-events: none;
}

.admin-complete-ride-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-finish-details {
  margin-top: 0;
}

.trail-reminder-accordion summary {
  align-items: center;
}

.trail-reminder-summary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-stats-panel summary .trail-reminder-summary span {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trail-reminder-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trail-reminder-content {
  display: grid;
  gap: 12px;
}

.trail-reminder-accordion:not([open]) .trail-reminder-content {
  display: none;
}

.trail-reminder-card .meta-grid {
  margin-top: 12px;
}

.trail-reminder-flow {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  color: #53677f;
  font-size: 12px;
}

.trail-reminder-flow span {
  color: inherit;
}

.trail-reminder-flow i {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #53677f;
  font-style: normal;
}

.trail-reminder-flow i.active {
  background: rgba(20, 108, 148, 0.12);
  color: var(--primary-dark);
}

.trail-reminder-flow i.fast {
  background: rgba(245, 184, 75, 0.26);
  color: #71460b;
}

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

.admin-driver-edit-row td {
  background: #f8fbfd;
  padding: 0;
}

.admin-driver-edit {
  border-top: 1px solid var(--line);
}

.admin-driver-edit summary {
  display: grid;
  min-height: 48px;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--primary-dark);
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.admin-driver-edit summary::-webkit-details-marker {
  display: none;
}

.admin-driver-edit-summary {
  display: grid;
  width: min(100%, 620px);
  gap: 3px;
}

.admin-driver-edit-summary > span,
.admin-driver-edit-summary small {
  overflow-wrap: anywhere;
}

.admin-driver-edit summary small {
  color: var(--muted);
}

.admin-driver-edit-form {
  border-top: 1px solid var(--line);
  padding: 14px;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .bottom-nav,
:root[data-theme="dark"] .admin-sidebar {
  border-color: var(--line);
  background: rgba(15, 22, 33, 0.92);
}

:root[data-theme="dark"] .viewport-switch {
  border-color: var(--line);
  background: rgba(15, 22, 33, 0.78);
}

:root[data-theme="dark"] .driver-registration-details,
:root[data-theme="dark"] .company-employee-panel {
  --driver-form-divider: rgba(255, 255, 255, 0.46);
}

:root[data-theme="dark"] .notification-bell,
:root[data-theme="dark"] .notification-close,
:root[data-theme="dark"] .theme-settings-button,
:root[data-theme="dark"] .topbar-logout-pill {
  border-color: var(--line);
  background: rgba(15, 22, 33, 0.78);
  color: var(--ink);
  box-shadow: none;
}

:root[data-theme="dark"] .notification-popover,
:root[data-theme="dark"] .theme-settings-popover {
  background: var(--surface);
}

:root[data-theme="dark"] .viewport-button.active,
:root[data-theme="dark"] .theme-settings-option.active {
  border-color: rgba(74, 168, 210, 0.5);
  background: rgba(74, 168, 210, 0.18);
  color: var(--primary-strong);
}

:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .dashboard-stats-panel summary,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .quick-action,
:root[data-theme="dark"] .filters,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .legal-consents,
:root[data-theme="dark"] .captcha-panel,
:root[data-theme="dark"] .sms-login-form,
:root[data-theme="dark"] .driver-company-box,
:root[data-theme="dark"] .company-lookup-panel,
:root[data-theme="dark"] .totp-qr-panel,
:root[data-theme="dark"] .check-item,
:root[data-theme="dark"] .partner-embed-row,
:root[data-theme="dark"] .mini-row,
:root[data-theme="dark"] .counter-fare-box,
:root[data-theme="dark"] .payment-link-card,
:root[data-theme="dark"] .vehicle-photo-empty,
:root[data-theme="dark"] .audit-item,
:root[data-theme="dark"] .ride-offer-panel,
:root[data-theme="dark"] .ride-offer-route div,
:root[data-theme="dark"] .accordion-icon,
:root[data-theme="dark"] .schedule-filter,
:root[data-theme="dark"] .fare-proposal-card,
:root[data-theme="dark"] .break-tile,
:root[data-theme="dark"] .vehicle-card,
:root[data-theme="dark"] .driver-offer-overlay .card {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .shortcode-box code,
:root[data-theme="dark"] .partner-embed-row code,
:root[data-theme="dark"] .sms-login-form.compact {
  border-color: var(--line);
  background-color: #0f1724;
  color: var(--ink);
}

:root[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5.25 7 9.25l4-4' fill='none' stroke='%23a7b5c6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .table-top-scrollbar {
  border-color: var(--line);
  background: var(--surface);
  scrollbar-color: var(--primary) #172334;
}

:root[data-theme="dark"] .table-top-scrollbar::-webkit-scrollbar-track {
  background: #172334;
}

:root[data-theme="dark"] .table-top-scrollbar::-webkit-scrollbar-thumb {
  border-color: #172334;
  background: var(--primary);
}

:root[data-theme="dark"] .field span,
:root[data-theme="dark"] .field label {
  color: #d7e2ef;
}

:root[data-theme="dark"] .field small,
:root[data-theme="dark"] .driver-choice small,
:root[data-theme="dark"] .mini-row small,
:root[data-theme="dark"] .check-item small,
:root[data-theme="dark"] .legal-consents small,
:root[data-theme="dark"] .captcha-panel small,
:root[data-theme="dark"] .partner-embed-row small {
  color: #aebdd0;
}

:root[data-theme="dark"] .check-item,
:root[data-theme="dark"] .legal-consent,
:root[data-theme="dark"] .captcha-panel,
:root[data-theme="dark"] .legal-document,
:root[data-theme="dark"] .vehicle-photo-empty,
:root[data-theme="dark"] .ride-offer-route span,
:root[data-theme="dark"] .audit-item strong {
  color: #e6eff8;
}

:root[data-theme="dark"] .vehicle-card span,
:root[data-theme="dark"] .vehicle-card small,
:root[data-theme="dark"] .fare-proposal-card p {
  color: #aebdd0;
}

:root[data-theme="dark"] .vehicle-card.active,
:root[data-theme="dark"] .break-tile:hover {
  border-color: rgba(74, 168, 210, 0.72);
  background: rgba(74, 168, 210, 0.16);
  color: #f2f8fd;
}

:root[data-theme="dark"] .legal-consent.optional {
  color: #b5c2d2;
}

:root[data-theme="dark"] .legal-consent a {
  color: var(--primary-strong);
}

:root[data-theme="dark"] .payment-icon {
  border-color: #45566a;
  background: linear-gradient(145deg, #eef5fb, #cbd8e5);
  color: #142033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 7px 14px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .payment-icon.payment-cash {
  background: linear-gradient(145deg, #dff8e7, #8ed6a8);
}

:root[data-theme="dark"] .payment-icon.payment-card_terminal {
  background: linear-gradient(145deg, #f1f7ff, #afc4d8);
}

:root[data-theme="dark"] .payment-icon.payment-blik {
  background: linear-gradient(145deg, #ffffff, #dfe6ee);
}

:root[data-theme="dark"] .payment-icon.payment-revolut {
  background: linear-gradient(145deg, #eaf4ff, #c7c8f5);
}

:root[data-theme="dark"] .accordion-icon,
:root[data-theme="dark"] .schedule-filter small {
  border-color: var(--line);
  background: #0f1724;
  color: #b8c7d8;
}

:root[data-theme="dark"] .schedule-scroll-track {
  background:
    linear-gradient(90deg, rgba(74, 168, 210, 0.55), rgba(244, 193, 93, 0.75)),
    #172131;
}

:root[data-theme="dark"] .payment-choice,
:root[data-theme="dark"] .driver-choice {
  border-color: var(--line);
  background: #0f1724;
  color: #eef5fb;
}

:root[data-theme="dark"] .payment-choice.selected,
:root[data-theme="dark"] .driver-choice.selected {
  border-color: rgba(74, 168, 210, 0.78);
  background: rgba(74, 168, 210, 0.16);
  color: #f2f8fd;
}

:root[data-theme="dark"] .driver-choice.disabled {
  border-color: #465568;
  background: #202a36;
  color: #d7e2ef;
  opacity: 1;
}

:root[data-theme="dark"] .driver-choice.disabled small {
  color: #b5c2d2;
}

:root[data-theme="dark"] .company-lookup-panel h2,
:root[data-theme="dark"] .company-lookup-panel h3,
:root[data-theme="dark"] .company-lookup-panel p,
:root[data-theme="dark"] .company-lookup-panel .muted {
  color: #d7e2ef;
}

:root[data-theme="dark"] .company-lookup-panel .field span {
  color: #dbe7f4;
}

:root[data-theme="dark"] .fare-total {
  border: 1px solid rgba(244, 193, 93, 0.32);
  background: rgba(244, 193, 93, 0.14);
  color: #f6e3b8;
}

:root[data-theme="dark"] .input::placeholder,
:root[data-theme="dark"] .textarea::placeholder {
  color: #718199;
}

:root[data-theme="dark"] .btn {
  border-color: var(--line);
  background: #162131;
  color: var(--ink);
}

:root[data-theme="dark"] .btn.primary {
  border-color: transparent;
  background: var(--primary);
  color: #06101a;
}

:root[data-theme="dark"] .auth-primary-actions .btn.accent {
  border-color: transparent;
  background: var(--accent);
  color: #1b2635;
}

:root[data-theme="dark"] .trail-reminder-flow {
  border-color: #2c3f58;
  background: #0f1724;
  color: #d6e2f2;
}

:root[data-theme="dark"] .trail-reminder-flow i {
  background: #162131;
  color: #d6e2f2;
}

:root[data-theme="dark"] .trail-reminder-flow i.active {
  background: rgba(74, 168, 210, 0.22);
  color: #9bd8f3;
}

:root[data-theme="dark"] .trail-reminder-flow i.fast {
  background: rgba(244, 193, 93, 0.2);
  color: #f7d58c;
}

:root[data-theme="dark"] .btn.outline,
:root[data-theme="dark"] .schedule-filter,
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .transfer-date-pill,
:root[data-theme="dark"] .admin-mobile-nav,
:root[data-theme="dark"] .admin-nav-group summary,
:root[data-theme="dark"] .admin-nav-submenu,
:root[data-theme="dark"] .mobile-admin-submenu {
  border-color: var(--line);
  background: #121b29;
  color: var(--ink);
}

:root[data-theme="dark"] .quick-action.primary,
:root[data-theme="dark"] .admin-nav a.active,
:root[data-theme="dark"] .admin-nav-group summary.active,
:root[data-theme="dark"] .bottom-nav a.active,
:root[data-theme="dark"] .schedule-filter.active,
:root[data-theme="dark"] .pill.active {
  border-color: rgba(74, 168, 210, 0.5);
  background: rgba(74, 168, 210, 0.18);
  color: var(--primary-strong);
}

:root[data-theme="dark"] .admin-mobile-nav.viewport-preview-desktop .mobile-admin-submenu {
  border-color: rgba(91, 195, 240, 0.9);
  background: color-mix(in srgb, #121b29 92%, var(--primary) 8%);
  box-shadow:
    0 0 0 1px rgba(91, 195, 240, 0.35),
    0 0 24px rgba(91, 195, 240, 0.32),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .admin-mobile-nav .mobile-admin-submenu {
  border-color: rgba(91, 195, 240, 0.9);
  background: color-mix(in srgb, #121b29 92%, var(--primary) 8%);
  box-shadow:
    0 0 0 1px rgba(91, 195, 240, 0.35),
    0 0 24px rgba(91, 195, 240, 0.32),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .quick-action.super {
  border-color: rgba(244, 193, 93, 0.45);
  background: rgba(244, 193, 93, 0.14);
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] .day-schedule-head,
:root[data-theme="dark"] .schedule-head-cell,
:root[data-theme="dark"] .schedule-head-cell.time-cell,
:root[data-theme="dark"] .schedule-hour-column {
  background: #111a28;
  color: var(--muted);
}

:root[data-theme="dark"] td,
:root[data-theme="dark"] th,
:root[data-theme="dark"] .schedule-lane,
:root[data-theme="dark"] .schedule-hour-column {
  border-color: var(--line);
}

:root[data-theme="dark"] tbody tr:hover td,
:root[data-theme="dark"] .admin-driver-edit-row td {
  background: #121b29;
}

:root[data-theme="dark"] .day-schedule-scroll,
:root[data-theme="dark"] .day-schedule-board,
:root[data-theme="dark"] .admin-schedule-top-scrollbar {
  border-color: var(--line);
  background: #0f1724;
}

:root[data-theme="dark"] .admin-schedule-top-scrollbar {
  scrollbar-color: var(--primary) #172334;
}

:root[data-theme="dark"] .admin-schedule-horizontal-control .admin-schedule-top-scrollbar {
  border-color: #d8e4ec;
  background: #f7fbfd;
}

:root[data-theme="dark"] .admin-schedule-scroll-arrow {
  background: #edf4f7;
}

:root[data-theme="dark"] .admin-schedule-scroll-arrow:hover {
  background: #e4eef4;
}

:root[data-theme="dark"] .admin-schedule-horizontal-control .admin-schedule-top-scrollbar::after {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .admin-schedule-top-scrollbar::-webkit-scrollbar-track {
  background: #172334;
}

:root[data-theme="dark"] .admin-schedule-top-scrollbar::-webkit-scrollbar-thumb {
  border-color: #172334;
}

:root[data-theme="dark"] .day-schedule-body {
  background: #0f1724;
}

:root[data-theme="dark"] .schedule-time-line {
  border-top-color: rgba(45, 59, 78, 0.8);
}

:root[data-theme="dark"] .schedule-time-line.half-hour {
  border-top-color: rgba(91, 112, 136, 0.98);
}

:root[data-theme="dark"] .schedule-time-line.hour {
  border-top-color: rgba(132, 156, 181, 1);
}

:root[data-theme="dark"] .panel-note,
:root[data-theme="dark"] .driver-choice-note,
:root[data-theme="dark"] .alert,
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .schedule-empty {
  border-color: var(--line);
  background: rgba(74, 168, 210, 0.1);
  color: var(--muted);
}

:root[data-theme="dark"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

:root[data-theme="dark"] .phone-link {
  color: #73d69d;
}

:root[data-theme="dark"] .route-line,
:root[data-theme="dark"] .route-address,
:root[data-theme="dark"] .metric strong,
:root[data-theme="dark"] .quick-action span,
:root[data-theme="dark"] .accordion-title span,
:root[data-theme="dark"] .integration-title span,
:root[data-theme="dark"] .card-title h2,
:root[data-theme="dark"] .card-title h3,
:root[data-theme="dark"] .transfer-date-pill strong,
:root[data-theme="dark"] .ride-date-stack strong {
  color: var(--ink);
}

:root[data-theme="dark"] .route-address small,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .metric span,
:root[data-theme="dark"] .quick-action small,
:root[data-theme="dark"] .accordion-title small,
:root[data-theme="dark"] .integration-title small,
:root[data-theme="dark"] .transfer-date-pill small,
:root[data-theme="dark"] .ride-date-stack small {
  color: var(--muted);
}

:root[data-theme="dark"] .schedule-legend {
  color: #c7d4e3;
}

:root[data-theme="dark"] .schedule-scroll-hint {
  color: #b8c6d6;
}

:root[data-theme="dark"] .schedule-search span,
:root[data-theme="dark"] .schedule-region-select span {
  color: #edf4f8;
}

:root[data-theme="dark"] .admin-schedule-search-strip {
  border-color: rgba(244, 193, 93, 0.78);
  background: rgba(244, 193, 93, 0.08);
}

:root[data-theme="dark"] .admin-schedule-search-strip span {
  color: #f4c15d;
}

:root[data-theme="dark"] .admin-schedule-search-strip .input {
  border-color: rgba(244, 193, 93, 0.78);
  background: #0f1724;
}

:root[data-theme="dark"] .schedule-head-cell .schedule-phone-line {
  color: #c7d4e3;
}

:root[data-theme="dark"] .schedule-event {
  background: #162333;
}

:root[data-theme="dark"] .schedule-event.tour {
  background: #122a25;
}

:root[data-theme="dark"] .schedule-event.transfer-return {
  border-color: rgba(114, 177, 241, 0.62);
  background: #1e3656;
  color: #d5eaff;
}

:root[data-theme="dark"] .schedule-event.transfer-return small,
:root[data-theme="dark"] .schedule-event.transfer-return em {
  color: #b7d8f7;
}

:root[data-theme="dark"] .schedule-event.group-assignment {
  border-color: rgba(105, 198, 239, 0.64);
  background: #173650;
  color: #d8f2ff;
}

:root[data-theme="dark"] .schedule-event.group-assignment small,
:root[data-theme="dark"] .schedule-event.group-assignment em {
  color: #b9e2f5;
}

:root[data-theme="dark"] .schedule-event.tour-hold {
  border-color: rgba(205, 145, 238, 0.62);
  background: #35274f;
  color: #f0d6ff;
}

:root[data-theme="dark"] .schedule-event.tour-hold small,
:root[data-theme="dark"] .schedule-event.tour-hold em {
  color: #dbb8ed;
}

:root[data-theme="dark"] .schedule-event.cancelled {
  border-color: rgba(241, 113, 108, 0.72);
  background: #3e222b;
  color: #ffd2cf;
}

:root[data-theme="dark"] .schedule-event.cancelled small,
:root[data-theme="dark"] .schedule-event.cancelled em {
  color: #f4b0ac;
}

:root[data-theme="dark"] .schedule-event.reserved-unassigned {
  background: #351f29;
  color: #ffd2cf;
}

:root[data-theme="dark"] .schedule-event.reserved-unassigned small,
:root[data-theme="dark"] .schedule-event.reserved-unassigned em {
  color: #f4b0ac;
}

:root[data-theme="dark"] .schedule-event.reserved-assigned,
:root[data-theme="dark"] .schedule-event.offer {
  background: #493c25;
  color: #ffe0aa;
}

:root[data-theme="dark"] .schedule-event.reserved-assigned small,
:root[data-theme="dark"] .schedule-event.reserved-assigned em,
:root[data-theme="dark"] .schedule-event.offer small,
:root[data-theme="dark"] .schedule-event.offer em {
  color: #f2c97d;
}

:root[data-theme="dark"] .schedule-event.in-progress {
  background: #123328;
  color: #b9f2d9;
}

:root[data-theme="dark"] .schedule-event.in-progress small,
:root[data-theme="dark"] .schedule-event.in-progress em {
  color: #9edfc5;
}

:root[data-theme="dark"] .schedule-event.completed {
  background: #26313f;
  color: #d5dde7;
}

:root[data-theme="dark"] .schedule-event.completed small,
:root[data-theme="dark"] .schedule-event.completed em {
  color: #aebdce;
}

:root[data-theme="dark"] .schedule-event.break {
  background: #202a38;
  color: #d2dce8;
}

:root[data-theme="dark"] .badge.new {
  background: rgba(244, 193, 93, 0.18);
  color: #ffd782;
}

:root[data-theme="dark"] .badge.accepted,
:root[data-theme="dark"] .badge.driver_arriving {
  background: rgba(74, 168, 210, 0.2);
  color: #aee3f5;
}

:root[data-theme="dark"] .badge.in_progress {
  background: rgba(243, 170, 82, 0.18);
  color: #ffd099;
}

:root[data-theme="dark"] .badge.completed {
  background: rgba(76, 201, 154, 0.18);
  color: #b9f2d9;
}

:root[data-theme="dark"] .badge.cancelled {
  background: rgba(241, 113, 108, 0.18);
  color: #ffc1bd;
}

:root[data-theme="dark"] .badge-detail {
  border-color: rgba(74, 168, 210, 0.5);
  background: rgba(74, 168, 210, 0.14);
  color: #c7edf8;
}

.inline-field {
  min-width: 210px;
}

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

@media (prefers-reduced-motion: reduce) {
  .live-status,
  .live-status-detail,
  .driver-new-rides-alert,
  .profile-save-button.pulse {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (min-width: 720px) {
  .screen {
    padding: 28px 24px 42px;
  }

  .passenger-route-search-form {
    grid-template-columns: 1fr;
  }

  .route-search-fields {
    grid-template-columns: minmax(170px, 0.8fr) minmax(260px, 1.2fr);
  }

  .route-search-fields .passengers {
    grid-column: 1 / -1;
  }

  .dashboard-order-panel {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  }

  .availability-form {
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: end;
  }

  .screen-header.with-actions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
  }

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

  .driver-dashboard-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: minmax(260px, 1fr) 220px;
  }

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

@media (max-width: 719px) {
  .transfer-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .transfer-summary-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .transfer-date-pill {
    min-width: min(100%, 170px);
  }

  .ride-date-stack {
    justify-items: start;
    width: 100%;
    text-align: left;
  }

  .admin-schedule-title {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "region"
      "meta";
  }

  .admin-schedule-title > .pill {
    justify-self: start;
  }

  .admin-schedule-card:not(.driver-schedule-card) .schedule-controls {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-schedule-card:not(.driver-schedule-card) .schedule-region-select,
  .admin-schedule-card:not(.driver-schedule-card) .schedule-search {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .admin-schedule-search-strip {
    grid-template-columns: 1fr;
  }

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

  .payment-link-card {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-link-card .btn,
  .payment-link-card a.btn {
    justify-content: center;
    width: 100%;
  }

  .topbar {
    align-items: start;
    flex-wrap: wrap;
    padding-right: calc(12px + var(--safe-area-right));
    padding-left: calc(12px + var(--safe-area-left));
  }

  .topbar-title-wrap,
  .topbar-title {
    min-width: 0;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .theme-picker {
    flex: 1 1 210px;
  }

  .theme-select {
    flex: 1;
    min-width: 170px;
  }

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

  .screen-header h1 {
    font-size: 25px;
  }

  .card-title {
    align-items: stretch;
  }

  .card-title .button-row,
  .card-title .btn {
    width: 100%;
  }

  .dashboard-map-layer .live-map {
    min-height: 340px;
  }

  .dashboard-map-layer .driver-marker-label {
    display: none;
  }

  .passenger-route-search-form {
    margin-right: 0;
    margin-left: 0;
    padding-bottom: calc(96px + var(--safe-area-bottom));
    scroll-padding-bottom: calc(96px + var(--safe-area-bottom));
  }

  .passenger-route-search-form.sheet-low {
    --route-sheet-height: 380px;
    --route-sheet-lift: 305px;
  }

  .passenger-route-search-form.sheet-mid {
    --route-sheet-height: 68vh;
    --route-sheet-lift: 235px;
  }

  .passenger-route-search-form.sheet-full {
    --route-sheet-height: 78vh;
    --route-sheet-lift: 300px;
  }

  .passenger-route-search-form.baggage-open {
    --route-sheet-height: 92dvh;
    --route-sheet-lift: 320px;
  }

  .passenger-route-search-form.sheet-low.baggage-open {
    --route-sheet-height: 90dvh;
    --route-sheet-lift: 480px;
  }

  .passenger-route-search-form.sheet-mid.baggage-open {
    --route-sheet-height: 92dvh;
    --route-sheet-lift: 480px;
  }

  .passenger-route-search-form.sheet-full.baggage-open {
    --route-sheet-height: min(94dvh, 960px, var(--passenger-route-sheet-available-height));
    --route-sheet-lift: var(--passenger-route-sheet-safe-lift);
  }

  .route-sheet-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .route-sheet-state-buttons {
    justify-self: end;
  }

  .passenger-schedule-title {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .passenger-schedule-title .passenger-schedule-now {
    width: auto;
    max-width: 180px;
    min-height: 38px;
    padding-inline: 12px;
    white-space: normal;
  }

  .passenger-history-filters,
  .passenger-history-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (min-width: 980px) {
  .bottom-nav {
    right: auto;
    width: min(620px, calc(100% - 32px));
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }
}

.viewport-preview {
  width: min(100%, var(--preview-width, 100%));
  margin-right: auto;
  margin-left: auto;
  background: var(--bg);
}

.viewport-preview-desktop {
  --preview-width: 1440px;
}

:root[data-owner-preview-embedded="true"] .viewport-preview-desktop {
  --preview-width: 1980px;
}

:root[data-owner-preview-embedded="true"],
:root[data-owner-preview-embedded="true"] body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

:root[data-owner-preview-embedded="true"] #app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

:root[data-owner-preview-embedded="true"] .app-shell,
:root[data-owner-preview-embedded="true"] .admin-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.viewport-preview-tablet {
  --preview-width: 820px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(31, 47, 68, 0.12);
}

.viewport-preview-phone {
  --preview-width: 390px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(31, 47, 68, 0.14);
}

.viewport-preview-tablet .topbar {
  flex-wrap: wrap;
}

.viewport-preview-phone .topbar {
  align-items: stretch;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  padding: 12px;
}

.viewport-preview-phone .topbar-title-wrap,
.viewport-preview-phone .topbar-actions,
.viewport-preview-phone .viewport-switch {
  width: 100%;
}

.viewport-preview-phone .topbar-title-wrap,
.viewport-preview-phone .topbar-actions {
  flex: 0 0 auto;
  min-width: 0;
}

.viewport-preview-phone .topbar-title {
  min-width: 0;
}

.viewport-preview-phone .topbar-title strong {
  font-size: 16px;
}

.viewport-preview-phone .topbar-title span {
  font-size: 11px;
}

.viewport-preview-phone .notification-bell,
.viewport-preview-phone .theme-settings-button {
  width: 38px;
  height: 38px;
  box-shadow: none;
}

.viewport-preview-phone .topbar-logout-pill {
  min-width: 74px;
  height: 38px;
  padding: 0 13px;
  box-shadow: none;
}

.viewport-preview-phone .notification-bell-svg {
  width: 19px;
  height: 19px;
}

.viewport-preview-phone .topbar-title-wrap {
  position: relative;
  align-items: center;
  gap: 10px;
}

.viewport-preview-phone .topbar-icon-actions {
  margin-left: auto;
  gap: 8px;
}

.viewport-preview-phone .notification-center {
  position: static;
}

.viewport-preview-phone .theme-settings {
  position: static;
}

.viewport-preview-phone .notification-popover {
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  width: auto;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.viewport-preview-phone .theme-settings-popover {
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  width: auto;
}

.viewport-preview-phone .theme-picker {
  display: none;
}

.viewport-preview-phone .viewport-switch {
  justify-content: space-between;
  padding: 3px;
}

.viewport-preview-phone .viewport-button {
  flex: 1;
  min-height: 32px;
  padding: 5px 8px;
}

.viewport-preview-phone .topbar-actions {
  justify-content: stretch;
  gap: 6px;
}

.viewport-preview-phone .theme-select,
.viewport-preview-phone .topbar-actions .btn {
  width: 100%;
  min-width: 0;
}

.viewport-preview-phone .topbar-actions .btn {
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
}

.viewport-preview-phone .screen {
  padding: 18px 16px 128px;
}

.viewport-preview-phone .screen-header h1 {
  font-size: 25px;
}

.viewport-preview-phone .partner-embed-list {
  gap: 10px;
}

.viewport-preview-phone .partner-embed-row {
  padding: 10px;
}

.viewport-preview-phone .partner-embed-row code {
  font-size: 12px;
  line-height: 1.35;
  padding: 8px;
}

.viewport-preview-phone .passenger-route-search-form,
.viewport-preview-phone .route-search-fields,
.viewport-preview-phone .dashboard-order-panel {
  grid-template-columns: minmax(0, 1fr) !important;
}

.viewport-preview-phone .passenger-route-search-form {
  border-radius: 20px;
  padding: 10px;
}

.viewport-preview-phone .route-search-field,
.viewport-preview-phone .route-search-later,
.viewport-preview-phone .route-search-submit,
.viewport-preview-phone .dashboard-order-options,
.viewport-preview-phone .dashboard-order-summary {
  width: 100%;
  min-width: 0;
}

.viewport-preview-phone .dashboard-order-options,
.viewport-preview-phone .dashboard-order-summary {
  padding: 12px;
}

.viewport-preview-phone .dashboard-map-layer .live-map {
  min-height: 340px;
}

.viewport-preview-phone .dashboard-map-layer .driver-marker-label {
  display: none;
}

.viewport-preview-phone .passenger-route-search-form {
  margin-right: 0;
  margin-left: 0;
}

.viewport-preview-phone .passenger-route-search-form.sheet-low {
  --route-sheet-height: 380px;
  --route-sheet-lift: 305px;
}

.viewport-preview-phone .passenger-route-search-form.sheet-mid {
  --route-sheet-height: 68vh;
  --route-sheet-lift: 235px;
}

.viewport-preview-phone .passenger-route-search-form.sheet-full {
  --route-sheet-height: 78vh;
  --route-sheet-lift: 300px;
}

.viewport-preview-phone .passenger-route-search-form.baggage-open {
  --route-sheet-height: 92dvh;
  --route-sheet-lift: 320px;
}

.viewport-preview-phone .passenger-route-search-form.sheet-low.baggage-open {
  --route-sheet-height: 90dvh;
  --route-sheet-lift: 480px;
}

.viewport-preview-phone .passenger-route-search-form.sheet-mid.baggage-open {
  --route-sheet-height: 92dvh;
  --route-sheet-lift: 480px;
}

.viewport-preview-phone .passenger-route-search-form.sheet-full.baggage-open {
  --route-sheet-height: min(94dvh, 960px, var(--passenger-route-sheet-available-height));
  --route-sheet-lift: var(--passenger-route-sheet-safe-lift);
}

.viewport-preview-phone .route-sheet-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.viewport-preview-phone .route-sheet-state-buttons {
  justify-self: end;
}

.viewport-preview-phone .grid.two,
.viewport-preview-phone .grid.three,
.viewport-preview-phone .meta-grid,
.viewport-preview-phone .filters,
.viewport-preview-phone .integration-detail-grid,
.viewport-preview-phone .driver-expense-grid {
  grid-template-columns: 1fr !important;
}

.viewport-preview-phone .saved-attraction-card,
.viewport-preview-phone .passenger-plan-item {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.viewport-preview-phone .passenger-history-filters,
.viewport-preview-phone .passenger-history-grid {
  grid-template-columns: 1fr;
}

.viewport-preview-phone .saved-attraction-thumb {
  min-height: 154px;
}

.viewport-preview-tablet .grid.three,
.viewport-preview-tablet .driver-expense-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.viewport-preview-phone .quick-actions {
  grid-template-columns: 1fr;
}

.viewport-preview-phone .card-title {
  align-items: stretch;
}

.viewport-preview-phone .company-owner-card .card-title {
  align-items: flex-start;
}

.viewport-preview-phone .company-owner-card .company-owner-badge {
  align-self: flex-start;
}

.viewport-preview-phone .card-title .button-row,
.viewport-preview-phone .card-title .btn {
  width: 100%;
}

.viewport-preview-phone .passenger-schedule-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.viewport-preview-phone .passenger-schedule-title .passenger-schedule-now {
  width: auto;
  max-width: 180px;
  min-height: 38px;
  padding-inline: 12px;
  white-space: normal;
}

.viewport-preview-phone .table-wrap {
  margin-right: -16px;
  margin-left: -16px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.app-shell.viewport-preview-tablet .bottom-nav,
.app-shell.viewport-preview-phone .bottom-nav {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}

.app-shell.viewport-preview-tablet .bottom-nav {
  width: min(620px, calc(100% - 32px));
  bottom: calc(18px + var(--safe-area-bottom));
}

.app-shell.viewport-preview-phone .bottom-nav {
  width: min(390px, calc(100% - 24px));
  bottom: calc(12px + var(--safe-area-bottom));
}

.app-shell.mobile .passenger-route-search-form {
  padding-bottom: var(--bottom-nav-clearance);
  scroll-padding-bottom: var(--bottom-nav-clearance);
}

.app-shell.viewport-preview-phone .bottom-nav.driver-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 7px;
}

.app-shell.viewport-preview-phone .bottom-nav.driver-nav > a,
.app-shell.viewport-preview-phone .driver-nav-courses > summary {
  min-height: 48px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.1;
  padding: 0 2px;
}

.app-shell.viewport-preview-phone .driver-schedule-card .day-schedule-scroll,
.app-shell.viewport-preview-phone .passenger-day-schedule-scroll,
.app-shell.mobile .driver-schedule-card .day-schedule-scroll,
.app-shell.mobile .passenger-day-schedule-scroll {
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-shell.viewport-preview-phone .driver-schedule-card .day-schedule-scroll::-webkit-scrollbar,
.app-shell.viewport-preview-phone .passenger-day-schedule-scroll::-webkit-scrollbar,
.app-shell.mobile .driver-schedule-card .day-schedule-scroll::-webkit-scrollbar,
.app-shell.mobile .passenger-day-schedule-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app-shell.viewport-preview-phone .driver-day-schedule-board,
.app-shell.viewport-preview-phone .passenger-day-schedule-board,
.app-shell.mobile .driver-day-schedule-board,
.app-shell.mobile .passenger-day-schedule-board {
  min-width: 100% !important;
}

.app-shell.viewport-preview-phone .driver-day-schedule-board .day-schedule-head,
.app-shell.viewport-preview-phone .driver-day-schedule-board .day-schedule-body,
.app-shell.viewport-preview-phone .passenger-day-schedule-board .day-schedule-head,
.app-shell.viewport-preview-phone .passenger-day-schedule-board .day-schedule-body,
.app-shell.mobile .driver-day-schedule-board .day-schedule-head,
.app-shell.mobile .driver-day-schedule-board .day-schedule-body,
.app-shell.mobile .passenger-day-schedule-board .day-schedule-head,
.app-shell.mobile .passenger-day-schedule-board .day-schedule-body {
  grid-template-columns: minmax(0, 1fr) 58px;
}

.app-shell.viewport-preview-phone .driver-schedule-card .schedule-head-cell,
.app-shell.viewport-preview-phone .passenger-day-schedule-board .schedule-head-cell,
.app-shell.mobile .driver-schedule-card .schedule-head-cell,
.app-shell.mobile .passenger-day-schedule-board .schedule-head-cell {
  min-width: 0;
  padding: 9px;
}

.app-shell.viewport-preview-phone .driver-schedule-card .schedule-head-cell.time-cell,
.app-shell.viewport-preview-phone .passenger-day-schedule-board .schedule-head-cell.time-cell,
.app-shell.mobile .driver-schedule-card .schedule-head-cell.time-cell,
.app-shell.mobile .passenger-day-schedule-board .schedule-head-cell.time-cell {
  padding-inline: 6px;
}

.app-shell.viewport-preview-phone .driver-history-filters,
.app-shell.viewport-preview-phone .passenger-history-filters,
.app-shell.mobile .driver-history-filters,
.app-shell.mobile .passenger-history-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
  padding: 14px;
}

.app-shell.viewport-preview-phone .driver-history-filters .field,
.app-shell.viewport-preview-phone .passenger-history-filters .field,
.app-shell.viewport-preview-phone .driver-history-filters .history-filter-clear,
.app-shell.viewport-preview-phone .passenger-history-filters .history-filter-clear,
.app-shell.mobile .driver-history-filters .field,
.app-shell.mobile .passenger-history-filters .field,
.app-shell.mobile .driver-history-filters .history-filter-clear,
.app-shell.mobile .passenger-history-filters .history-filter-clear {
  flex: none;
  width: 100%;
  min-width: 0;
}

.app-shell.viewport-preview-phone .history-card-summary,
.app-shell.mobile .history-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 14px 48px 14px 14px;
}

.app-shell.viewport-preview-phone .history-card-summary .badge,
.app-shell.mobile .history-card-summary .badge {
  justify-self: end;
  max-width: 132px;
}

.admin-layout.viewport-preview-tablet,
.admin-layout.viewport-preview-phone {
  grid-template-columns: 1fr;
}

.admin-layout.viewport-preview-tablet .admin-sidebar,
.admin-layout.viewport-preview-phone .admin-sidebar {
  display: none;
}

.admin-layout.viewport-preview-tablet .admin-mobile-nav {
  right: auto;
  bottom: calc(18px + var(--safe-area-bottom));
  left: 50%;
  width: min(820px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}

.admin-mobile-nav.viewport-preview-tablet {
  bottom: calc(18px + var(--safe-area-bottom));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}

.admin-layout.viewport-preview-phone .admin-mobile-nav {
  right: auto;
  bottom: calc(12px + var(--safe-area-bottom));
  left: 50%;
  width: min(390px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 7px;
}

.admin-mobile-nav.viewport-preview-phone {
  bottom: calc(12px + var(--safe-area-bottom));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px;
}

.admin-mobile-nav.viewport-preview-phone .admin-mobile-nav-scroll {
  gap: 5px;
}

.admin-mobile-nav.viewport-preview-phone.company-mobile-nav .admin-mobile-nav-scroll {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-layout.viewport-preview-phone .admin-mobile-nav .pill {
  min-height: 48px;
  border-radius: 10px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.1;
}

.admin-mobile-nav.viewport-preview-phone .pill {
  min-height: 46px;
  border-radius: 9px;
  gap: 3px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.1;
}

.admin-mobile-nav.viewport-preview-phone .mobile-admin-nav-trigger::after {
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-width: 1.4px;
}

.admin-layout.viewport-preview-phone .admin-mobile-submenu,
.admin-layout.viewport-preview-phone .mobile-admin-submenu {
  bottom: calc(12px + 66px);
  width: min(370px, calc(100% - 24px));
}

.admin-mobile-nav.viewport-preview-phone .mobile-admin-submenu {
  bottom: calc(12px + var(--safe-area-bottom) + 66px);
  width: min(370px, calc(100% - 24px));
}

.admin-layout.viewport-preview-phone .admin-schedule-title {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "region"
    "meta";
  gap: 12px;
}

.admin-layout.viewport-preview-phone .admin-schedule-title h2 {
  font-size: 24px;
  line-height: 1.2;
}

.admin-layout.viewport-preview-phone .admin-schedule-title .schedule-region-select {
  width: 100%;
  max-width: none;
}

.admin-layout.viewport-preview-phone .admin-schedule-title .schedule-region-select span {
  font-size: 18px;
}

.admin-layout.viewport-preview-phone .admin-schedule-title > .pill {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.admin-layout.viewport-preview-phone .admin-schedule-card:not(.driver-schedule-card) .schedule-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-layout.viewport-preview-phone .admin-schedule-card:not(.driver-schedule-card) .schedule-controls .btn,
.admin-layout.viewport-preview-phone .admin-schedule-card:not(.driver-schedule-card) .schedule-date-input {
  width: 100%;
  min-width: 0;
}

.admin-layout.viewport-preview-phone .admin-schedule-search-strip {
  grid-template-columns: 1fr;
  gap: 10px;
}

.group-roster-box {
  display: grid;
  gap: 12px;
}

.group-current-fare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(76, 181, 223, 0.12);
}

.group-current-fare span {
  color: var(--muted);
  font-size: 13px;
}

.group-current-fare strong {
  font-size: 22px;
  line-height: 1;
}

.legacy-group-map {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(76, 181, 223, 0.16) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(76, 181, 223, 0.12) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, rgba(78, 205, 196, 0.22), rgba(255, 204, 77, 0.12)),
    var(--panel);
}

.legacy-group-map::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 8px;
  transform: rotate(-12deg);
  border-radius: 999px;
  background: rgba(255, 204, 77, 0.42);
}

.legacy-group-map.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

.group-driver-map-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 999px;
  background: #4cb5df;
  color: #06111d;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.group-driver-map-dot.current {
  background: #ffcc4d;
}

.group-map-caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 3;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #24384a;
  font-size: 12px;
}

.group-driver-grid {
  display: grid;
  gap: 10px;
}

.group-driver-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
}

.group-driver-card.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(76, 181, 223, 0.35);
}

.group-driver-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.group-driver-card-head small,
.group-driver-meta {
  color: var(--muted);
  font-size: 12px;
}

.group-driver-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

.group-driver-fare {
  white-space: nowrap;
}

.group-driver-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

:root[data-theme="dark"] .group-map-caption {
  background: rgba(8, 16, 29, 0.9);
  color: var(--text);
}

/* Live Test Cockpit is isolated from production views by its own namespace. */
.live-cockpit-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.live-cockpit-entry > span {
  display: grid;
  gap: 4px;
}

.live-cockpit-entry small {
  color: var(--muted);
}

.live-cockpit-screen {
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
}

.live-cockpit-view-scale-controls {
  display: grid;
  width: min(100%, 1100px);
  grid-template-columns: minmax(220px, 320px) auto minmax(240px, 1fr);
  align-items: end;
  gap: 16px;
  margin: 0 auto 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.live-cockpit-view-scale-controls > label,
.live-cockpit-view-scale-status {
  display: grid;
  gap: 5px;
}

.live-cockpit-view-scale-controls > label > span,
.live-cockpit-view-scale-controls > small,
.live-cockpit-view-scale-status small {
  color: var(--muted);
  font-size: 12px;
}

.live-cockpit-pan-viewport {
  width: min(100%, 1180px);
  max-height: min(1180px, calc(100vh - 80px));
  margin: 14px auto 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius);
}

.live-cockpit-pan-viewport.is-panning,
.live-cockpit-pan-viewport.is-panning * {
  cursor: grabbing !important;
  user-select: none;
}

.live-cockpit-pan-viewport.is-panning iframe {
  pointer-events: none;
}

.live-cockpit-scaled-content {
  display: grid;
  width: 1180px;
  gap: 18px;
  padding: 2px 2px 24px;
  zoom: var(--cockpit-view-scale, 1);
}

.live-cockpit-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1540px;
  margin: 0 auto 18px;
}

.live-cockpit-page-header > span {
  display: grid;
  gap: 5px;
}

.live-cockpit-page-header h1,
.live-cockpit-page-header p {
  margin: 0;
}

.live-cockpit-page-header p {
  color: var(--muted);
}

.live-cockpit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1540px;
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.live-cockpit-toolbar .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.live-cockpit-scenario-timeline {
  display: grid;
  gap: 14px;
  max-width: 1540px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 52%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.live-cockpit-scenario-heading,
.live-cockpit-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.live-cockpit-scenario-heading > span:first-child {
  display: grid;
  gap: 3px;
}

.live-cockpit-scenario-heading small,
.live-cockpit-scenario-heading p {
  color: var(--muted);
}

.live-cockpit-scenario-heading p {
  margin: 0;
}

.live-cockpit-playback-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.live-cockpit-playback-status.playing {
  border-color: color-mix(in srgb, var(--success) 55%, var(--line));
  background: color-mix(in srgb, var(--success) 13%, var(--surface));
  color: var(--success);
}

.live-cockpit-playback-status.completed {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  color: var(--primary-strong);
}

.live-cockpit-range-row strong {
  min-width: 96px;
  text-align: right;
  white-space: nowrap;
}

.live-cockpit-range {
  width: 100%;
  min-width: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.live-cockpit-timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-cockpit-timeline-controls .btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.live-cockpit-workspace {
  display: contents;
}

.live-cockpit-screen:has(.live-cockpit-workspace) {
  overflow-x: clip;
}

.live-cockpit-admin-zone,
.live-cockpit-phones-grid,
.live-cockpit-control-panel {
  width: 100%;
  margin-inline: auto;
}

.live-cockpit-admin-zone {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  max-width: 1540px;
}

.live-cockpit-phones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: start;
  justify-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 8px 20px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.live-cockpit-phone-station {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  width: min(100%, var(--cockpit-station-width, 390px));
}

.live-cockpit-phone-sizing {
  display: grid;
  width: min(100%, 1100px);
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.live-cockpit-phone-sizing > label,
.live-cockpit-scale-control {
  display: grid;
  gap: 6px;
}

.live-cockpit-phone-sizing label > span,
.live-cockpit-calibration-panel small {
  color: var(--muted);
  font-size: 12px;
}

.live-cockpit-calibration-panel {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(180px, 1fr) minmax(190px, 280px);
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
}

.live-cockpit-calibration-panel > span {
  display: grid;
  gap: 3px;
}

.live-cockpit-calibration-reference {
  position: relative;
  width: var(--cockpit-calibration-width, 378px);
  height: 28px;
  border-right: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat;
}

.live-cockpit-calibration-reference span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 2px 8px;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

.live-cockpit-scale-control output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .live-cockpit-view-scale-controls,
  .live-cockpit-phone-sizing,
  .live-cockpit-calibration-panel {
    grid-template-columns: 1fr;
  }

  .live-cockpit-calibration-reference {
    justify-self: start;
  }
}

html[data-cockpit-embedded-phone="true"],
html[data-cockpit-embedded-phone="true"] body,
html[data-cockpit-embedded-phone="true"] * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-cockpit-embedded-phone="true"]::-webkit-scrollbar,
html[data-cockpit-embedded-phone="true"] body::-webkit-scrollbar,
html[data-cockpit-embedded-phone="true"] *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html[data-cockpit-embedded-phone="true"] .destination-carousel {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 719px) {
  .passenger-location-status {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .passenger-location-status .btn,
  .passenger-location-status select {
    max-width: 100%;
    flex: 1 1 150px;
  }
}

.live-cockpit-device-picker {
  display: grid;
  width: 100%;
  gap: 5px;
}

.live-cockpit-device-picker > span {
  color: var(--muted);
  font-size: 12px;
}

.live-cockpit-device-stage {
  position: relative;
  width: var(--cockpit-display-width, 300px);
  height: var(--cockpit-display-height, 620px);
  flex: 0 0 auto;
}

.live-cockpit-device {
  position: relative;
  box-sizing: content-box;
  width: var(--cockpit-device-width, 390px);
  height: var(--cockpit-device-height, 844px);
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 34%, var(--line));
  border-radius: var(--cockpit-device-radius, 36px);
  background: color-mix(in srgb, var(--ink) 92%, #000);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
  transform: scale(var(--cockpit-device-scale, 1));
  transform-origin: top left;
}

.live-cockpit-device-decoration {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 50%;
  display: none;
  transform: translateX(-50%);
  background: #05070a;
  pointer-events: none;
}

.live-cockpit-device-statusbar {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.live-cockpit-device-statusbar.decoration-notch {
  top: 12px;
}

.live-cockpit-status-time {
  min-width: 54px;
  font-variant-numeric: tabular-nums;
}

.live-cockpit-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-cockpit-signal {
  font-size: 9px;
  letter-spacing: 0;
}

.live-cockpit-wifi {
  font-size: 18px;
  transform: rotate(180deg);
}

.live-cockpit-battery {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 11px;
  padding: 1px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.live-cockpit-battery::after {
  position: absolute;
  top: 3px;
  right: -3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  content: "";
}

.live-cockpit-battery i {
  width: 74%;
  border-radius: 1px;
  background: currentColor;
}

.live-cockpit-device.decoration-dynamic-island .live-cockpit-device-decoration {
  display: block;
  width: 118px;
  height: 32px;
  border-radius: 999px;
}

.live-cockpit-device.decoration-notch .live-cockpit-device-decoration {
  display: block;
  top: 8px;
  width: 168px;
  height: 34px;
  border-radius: 0 0 18px 18px;
}

.live-cockpit-device.decoration-punch-hole .live-cockpit-device-decoration {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid #111821;
  border-radius: 50%;
}

.live-cockpit-device-screen {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: max(16px, calc(var(--cockpit-device-radius, 36px) - 8px));
  background: var(--bg);
}

.live-cockpit-app-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
  pointer-events: auto;
  touch-action: auto;
}

.live-cockpit-phone-frame {
  border-radius: max(16px, calc(var(--cockpit-device-radius, 36px) - 8px));
}

.live-cockpit-device-debug {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.live-cockpit-device-debug > div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.live-cockpit-device-debug dt {
  color: var(--muted);
  font-size: 11px;
}

.live-cockpit-device-debug dd {
  margin: 0;
  font-size: 12px;
}

.live-cockpit-map-diagnostics {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.live-cockpit-map-diagnostics header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.live-cockpit-map-diagnostics header small {
  color: var(--muted);
}

.live-cockpit-map-diagnostics dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.live-cockpit-map-diagnostics dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 10px;
  align-items: start;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.live-cockpit-map-diagnostics dt {
  color: var(--muted);
  font-size: 11px;
}

.live-cockpit-map-diagnostics dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.live-cockpit-admin-stage {
  display: grid;
  grid-template-rows: auto minmax(480px, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.live-cockpit-admin-stage > header {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.live-cockpit-admin-stage > header small {
  color: var(--muted);
}

.live-cockpit-admin-frame {
  min-height: 520px;
}

.live-cockpit-control-panel {
  align-content: start;
}

.live-cockpit-phone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 28px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.live-cockpit-phone-header > span:first-child,
.live-cockpit-person > span:last-child {
  display: grid;
  gap: 2px;
}

.live-cockpit-phone-header small,
.live-cockpit-person small,
.live-cockpit-route small,
.live-cockpit-price-row small,
.live-cockpit-state-grid small,
.live-cockpit-control-header small,
.live-cockpit-event small {
  color: var(--muted);
}

.live-cockpit-phone-time {
  font-size: 13px;
  color: var(--muted);
}

.live-cockpit-phone-body {
  overflow-y: auto;
  padding: 20px 16px;
}

.live-cockpit-phone-body h2 {
  margin: 5px 0 18px;
  font-size: 24px;
}

.live-cockpit-phone-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 62px;
  padding: 7px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.live-cockpit-phone-nav span {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

.live-cockpit-phone-nav .active {
  background: color-mix(in srgb, var(--primary) 18%, var(--surface));
  color: var(--primary-strong);
}

.live-cockpit-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.live-cockpit-empty p {
  margin: 0;
}

.live-cockpit-empty-icon {
  display: block;
  width: 44px;
  height: 44px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px var(--bg);
  background: var(--primary);
}

.live-cockpit-empty-icon.driver {
  border-radius: 8px;
}

.live-cockpit-ride-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.driver-active-inline-actions {
  margin-top: 12px;
}

.live-cockpit-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary-strong);
  font-size: 13px;
}

.live-cockpit-status.is-live {
  animation: live-cockpit-pulse 1.25s ease-in-out infinite;
}

@keyframes live-cockpit-pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 18%, transparent);
    border-color: var(--success);
  }
}

.live-cockpit-route {
  display: grid;
  gap: 14px;
}

.live-cockpit-route > span {
  display: grid;
  gap: 3px;
  padding-left: 17px;
  border-left: 3px solid var(--primary);
}

.live-cockpit-route > span:last-child {
  border-color: var(--accent);
}

.live-cockpit-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.live-cockpit-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 20%, var(--surface));
  color: var(--primary-strong);
}

.live-cockpit-avatar.passenger {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--ink);
}

.live-cockpit-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-cockpit-price-row > span {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.live-cockpit-control-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 14px;
  min-height: 260px;
  height: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  max-width: 1540px;
}

.live-cockpit-control-panel > .live-cockpit-control-header {
  grid-column: 1 / -1;
}

.live-cockpit-control-panel .live-cockpit-timeline {
  max-height: 420px;
}

.live-cockpit-manual-payment code {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.live-cockpit-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-cockpit-control-header > span:first-child {
  display: grid;
  gap: 3px;
}

.live-cockpit-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-cockpit-state-grid > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.live-cockpit-state-grid code {
  overflow-wrap: anywhere;
}

.live-cockpit-manual-payment {
  padding: 12px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.live-cockpit-manual-payment p {
  margin: 4px 0 0;
  color: var(--muted);
}

.live-cockpit-timeline {
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
}

.live-cockpit-timeline h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.live-cockpit-log-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.live-cockpit-event {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.live-cockpit-event > span:last-child {
  display: grid;
  gap: 3px;
}

.live-cockpit-event code {
  color: var(--primary-strong);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.live-cockpit-event-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

@media (max-width: 900px) {
  .live-cockpit-screen {
    padding: 16px;
  }

  .live-cockpit-page-header,
  .live-cockpit-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .live-cockpit-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .live-cockpit-toolbar .btn {
    flex: 0 0 auto;
  }

  .live-cockpit-scenario-heading,
  .live-cockpit-range-row {
    align-items: stretch;
    flex-direction: column;
  }

  .live-cockpit-range-row strong {
    text-align: left;
  }

  .live-cockpit-timeline-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-cockpit-timeline-controls .btn:last-child {
    grid-column: 1 / -1;
  }

  .live-cockpit-admin-zone,
  .live-cockpit-control-panel {
    width: 100%;
  }

  .live-cockpit-phones-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    justify-content: start;
  }

  .live-cockpit-control-panel {
    grid-template-columns: 1fr;
  }

  .live-cockpit-control-panel > .live-cockpit-control-header {
    grid-column: auto;
  }
}

.google-zone-native-label {
  padding: 4px 8px;
  border: 1px solid rgba(35, 89, 117, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #102334;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(9, 27, 43, 0.18);
}

.test-data-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid #f1b541;
  border-radius: 999px;
  color: #f1b541;
  font-size: 11px;
  line-height: 1.4;
}

.test-data-badge-demo {
  border-color: rgba(81, 178, 214, 0.75);
  color: #51b2d6;
}

.test-data-badge-symulacja {
  border-color: rgba(241, 181, 65, 0.8);
  color: #f1b541;
}

.test-data-badge-e2e {
  border-color: rgba(125, 211, 252, 0.85);
  color: #7dd3fc;
}

.test-simulator-panel {
  border-color: rgba(241, 181, 65, 0.55);
}

.test-simulator-content {
  display: grid;
  gap: 18px;
}

.test-data-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.test-data-manager-grid .switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 27, 42, 0.22);
}

.test-data-manager-grid .switch-row span,
.test-data-manager-grid .switch-row strong,
.test-data-manager-grid .switch-row small {
  display: block;
  min-width: 0;
}

.test-data-manager-grid .switch-row small {
  color: var(--muted);
}

.test-simulator-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.test-simulator-controls label {
  display: grid;
  gap: 7px;
}

.test-simulator-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.test-simulator-current,
.test-assignment-notice {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(81, 178, 214, 0.35);
  border-radius: 12px;
  background: rgba(81, 178, 214, 0.1);
}

.test-simulator-current {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.test-simulator-current span,
.test-assignment-notice {
  min-width: 0;
}

.test-simulator-current strong,
.test-simulator-current small,
.test-assignment-notice strong,
.test-assignment-notice span {
  display: block;
}

.test-simulator-current small,
.test-assignment-notice span {
  color: var(--muted);
}

.test-assignment-notice.is-conflict {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(248, 113, 113, 0.1);
}

.test-simulator-log ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.test-simulator-log li {
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr;
  gap: 10px;
  align-items: baseline;
}

.viewport-preview-phone .test-data-manager-grid,
.viewport-preview-phone .test-simulator-controls,
.viewport-preview-phone .test-simulator-current,
.app-shell.mobile .test-data-manager-grid,
.app-shell.mobile .test-simulator-controls,
.app-shell.mobile .test-simulator-current {
  grid-template-columns: minmax(0, 1fr);
}

.viewport-preview-phone .test-data-manager-grid .switch-row,
.app-shell.mobile .test-data-manager-grid .switch-row {
  align-items: center;
  gap: 10px;
}

.viewport-preview-phone .test-data-manager-grid .switch-row > span,
.app-shell.mobile .test-data-manager-grid .switch-row > span {
  overflow: hidden;
}

.viewport-preview-phone .test-data-manager-grid .switch-row strong,
.viewport-preview-phone .test-data-manager-grid .switch-row small,
.app-shell.mobile .test-data-manager-grid .switch-row strong,
.app-shell.mobile .test-data-manager-grid .switch-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewport-preview-phone .test-simulator-actions,
.app-shell.mobile .test-simulator-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.viewport-preview-phone .test-simulator-actions .btn,
.app-shell.mobile .test-simulator-actions .btn {
  width: 100%;
}

@media (max-width: 680px) {
  .test-data-manager-grid {
    grid-template-columns: 1fr;
  }

  .test-simulator-controls {
    grid-template-columns: 1fr;
  }

  .test-simulator-current {
    grid-template-columns: 1fr;
  }

  .test-simulator-log li {
    grid-template-columns: 1fr;
  }

}
