/* Chauffeur interface. Scoped away from administration, login and full-screen GPS. */
body.is-driver {
  --red: #c7193e;
  --red-dark: #aa1533;
  --red-pale: #fff0f4;
  --ink: #242d3b;
  --muted: #697587;
  --line: #e5e9ef;
  --bg: #f6f7fa;
  background: var(--bg);
  color: var(--ink);
}
.is-driver .topbar {
  height: 80px;
  padding: 0 32px;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.is-driver .brand {
  font-size: 26px;
  letter-spacing: -1.3px;
}
.is-driver .brand-icon {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e33153, #bb1537);
  box-shadow: 0 5px 15px #c7193e20;
}
.is-driver .brand small {
  color: #7a8492;
  letter-spacing: 0.16em;
}
.is-driver .topbar nav {
  gap: 25px;
}
.is-driver .topbar nav a {
  font-size: 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #697587;
}
.is-driver .topbar nav a.active {
  color: #b81736;
}
.is-driver .topbar nav a.active:after {
  bottom: 3px;
  background: #c7193e;
  border-radius: 3px;
}
.is-driver .nav-count {
  background: #fff0f4;
  color: #b81736;
  border-radius: 6px;
}
.is-driver .management {
  background: #fff;
  border: 1px solid #e5e9ef;
  color: #536175;
  box-shadow: none;
  border-radius: 11px;
  min-height: 42px;
}
.is-driver .management:hover {
  background: #fff0f4;
  color: #b81736;
}
.is-driver .account-shortcut {
  border-radius: 12px;
  background: #f1f4f8;
  color: #536175;
}
.is-driver .shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: calc(100svh - 80px);
}
.is-driver .sidebar {
  position: sticky;
  top: 80px;
  height: calc(100svh - 80px);
  overflow-y: auto;
  background: #fff;
  color: #657185;
  border-right: 1px solid #e5e9ef;
  padding: 30px 16px;
  gap: 7px;
}
.is-driver .side-label {
  color: #8992a0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 5px 12px 13px;
}
.is-driver .side-link {
  color: #647084;
  min-height: 46px;
  padding: 12px;
  border-radius: 11px;
  font-size: 13px;
  gap: 10px;
}
.is-driver .side-link.active {
  background: #fff0f4;
  color: #b81736;
  box-shadow: inset 3px 0 #c7193e;
}
.is-driver .side-link.active .icon {
  color: #c7193e;
}
.is-driver .side-link:hover {
  background: #f6f7fa;
  color: #303b4c;
}
.is-driver .side-number {
  background: #f0f3f8;
  color: #697587;
  font-size: 10px;
  border-radius: 6px;
}
.is-driver .side-divider {
  background: #edf0f5;
  margin: 20px 10px;
}
.is-driver .side-note {
  background: linear-gradient(140deg, #fff0f4, #fff);
  border: 1px solid #f0dce3;
  border-radius: 16px;
  color: #384355;
  margin: 24px 0 14px;
  padding: 18px;
}
.is-driver .side-note strong {
  font-size: 13px;
}
.is-driver .side-note p {
  color: #748092;
  font-size: 12px;
  line-height: 1.7;
}
.is-driver .side-note button,
.is-driver .note-icon {
  color: #b81736;
}
.is-driver .sidebar-bottom {
  color: #8a94a2;
  border-color: #edf0f5;
  font-size: 10px;
}
.is-driver #clock {
  color: #526175;
}
.is-driver #main {
  width: 100%;
  min-width: 0;
  max-width: 1420px;
  padding: 30px clamp(24px, 3.3vw, 48px) 48px;
  margin: 0 auto;
}
.is-driver .breadcrumb {
  font-size: 11px;
  color: #8a93a1;
  margin-bottom: 26px;
}
.is-driver .page-heading {
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.is-driver .page-heading h1 {
  font-size: clamp(30px, 3.1vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin: 8px 0 12px;
}
.is-driver .page-heading p {
  font-size: 14px;
  color: #748092;
  line-height: 1.7;
}
.is-driver .eyebrow {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #8a94a2;
  font-weight: 750;
}
.is-driver .date-pill {
  font-size: 12px;
  padding: 10px 13px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  box-shadow: none;
}
.driver-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  background: linear-gradient(120deg, #a91334, #d82147);
  color: #fff;
  border-radius: 24px;
  padding: 30px 34px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.driver-welcome > div {
  position: relative;
  z-index: 1;
}
.driver-welcome > div > span {
  font-size: 9px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #ffced9;
}
.driver-welcome h2 {
  font-size: clamp(25px, 2.7vw, 35px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 12px 0;
}
.driver-welcome p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 400px;
  color: #ffe3ea;
  margin: 0;
}
.driver-welcome:after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 45px solid #ffffff07;
  border-radius: 50%;
  right: -80px;
  top: -80px;
}
.driver-welcome-numbers {
  display: flex;
  gap: 28px;
  align-items: start;
}
.driver-welcome-numbers > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.driver-welcome-numbers strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.driver-welcome-numbers span {
  font-size: 10px;
  color: #ffd6df;
  max-width: 90px;
  line-height: 1.5;
}
.driver-sections {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 28px;
}
.driver-sections a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 15px;
  border-radius: 11px;
  border: 1px solid #e5e9ef;
  background: #fff;
  color: #657185;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.driver-sections a.active {
  background: #242e3e;
  border-color: #242e3e;
  color: #fff;
}
.driver-sections a .icon {
  width: 16px;
  height: 16px;
}
.driver-sections a:hover:not(.active) {
  border-color: #e2a6b4;
  color: #b81736;
}
.is-driver .section-heading {
  margin: 0 0 18px;
}
.is-driver .section-heading h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}
.is-driver .section-heading h2 small {
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
  color: #8490a0;
}
.is-driver .toolbar {
  display: flex;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  align-items: center;
}
.is-driver .toolbar > .search {
  flex: 1;
  max-width: none;
  min-height: 50px;
  background: #fff;
  border: 1px solid #dfe5ed;
  box-shadow: 0 3px 10px #22334e03;
  border-radius: 13px;
  padding: 12px 16px;
}
.is-driver .search input {
  font-size: 15px;
  min-width: 0;
  width: 100%;
}
.is-driver .search:focus-within {
  border-color: #c7193e;
  box-shadow: 0 0 0 3px #c7193e0c;
}
.is-driver .filters {
  display: flex;
  gap: 4px;
  background: #eaf0f5;
  padding: 4px;
  border: 0;
  border-radius: 11px;
  white-space: nowrap;
}
.is-driver .filters button {
  min-height: 40px;
  font-size: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #718093;
  border: 0;
}
.is-driver .filters button.active {
  background: #fff;
  box-shadow: 0 2px 5px #22334e0c;
  color: #b81736;
}
.is-driver .lines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.is-driver .line-card {
  position: relative;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px #24344f03;
  animation: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.is-driver .line-card:hover {
  transform: translateY(-3px);
  border-color: #e1aab8;
  box-shadow: 0 10px 24px #24344f09;
}
.is-driver .card-body {
  display: block;
  padding: 22px;
  text-decoration: none;
  color: inherit;
}
.is-driver .card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding-right: 37px;
  margin: 0 0 22px;
}
.is-driver .line-number {
  display: grid;
  place-items: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 4px;
  border-radius: 13px;
  background: #c7193e;
  color: #fff;
  box-shadow: 0 3px 8px #c7193e12;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.04em;
  overflow: hidden;
}
.is-driver .line-number.hlp {
  background: #33445b;
  box-shadow: none;
}
.driver-card-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.driver-card-label > span {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #8a95a5;
  font-weight: 700;
}
.driver-card-label > strong {
  font-size: 11px;
  color: #697587;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.driver-card-journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0 0 21px;
  padding: 0 0 0 20px;
  border-left: 2px solid #f1dfe5;
  min-height: 60px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.driver-card-journey strong,
.driver-card-journey > span {
  display: block;
  overflow-wrap: anywhere;
  position: relative;
}
.driver-card-journey > span {
  color: #718093;
  font-weight: 500;
}
.driver-card-journey strong:before,
.driver-card-journey > span:before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #c7193e;
  background: #fff;
}
.driver-card-journey > span:before {
  background: #c7193e;
}
.is-driver .line-card .badge {
  font-size: 10px;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: 7px;
}
.is-driver .line-card .fav {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid #edf0f4;
  border-radius: 11px;
  background: #fff;
  color: #9ca6b5;
}
.is-driver .line-card .fav.selected {
  background: #fff4e4;
  border-color: #f3e4c9;
  color: #b17a13;
}
.is-driver .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid #f0f2f6;
  background: #fff;
  text-decoration: none;
  color: #8a95a5;
  font-size: 11px;
}
.is-driver .card-bottom strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b81736;
  font-size: 11px;
  font-weight: 700;
}
.is-driver .card-bottom .icon {
  width: 15px;
  height: 15px;
}
.is-driver .empty {
  grid-column: 1/-1;
  border: 1px dashed #d7dfe9;
  border-radius: 18px;
  background: #ffffff99;
  padding: 40px 24px;
}
.is-driver .empty h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
.is-driver .empty p {
  font-size: 13px;
  line-height: 1.8;
  color: #748092;
}
.is-driver .road-launch {
  margin: 25px 0 15px;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: none;
}
.is-driver .road-brand strong {
  font-size: 13px;
}
.is-driver .road-brand small {
  font-size: 11px;
  color: #8490a0;
}
.is-driver .bottom-label {
  font-size: 10px;
  color: #96a0ae;
  margin-top: 24px;
  gap: 12px;
}
.is-driver .footer {
  margin: 0;
  padding: 20px 30px;
  border-top: 1px solid #e5e9ef;
  background: #fff;
  color: #8490a0;
  font-size: 11px;
}
.is-driver #main .btn {
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.4;
}
.is-driver #main .btn.primary {
  background: #c7193e;
  border-color: #c7193e;
  color: #fff;
}
.is-driver #main .btn.primary:hover {
  background: #aa1533;
}
.is-driver #main .btn:focus-visible,
.is-driver #main a:focus-visible,
.is-driver .mobile-nav a:focus-visible {
  outline: 3px solid #326bab;
  outline-offset: 3px;
}
.is-driver .detail-heading {
  gap: 15px;
  min-width: 0;
}
.is-driver .detail-heading > div {
  min-width: 0;
}
.is-driver .detail-heading p {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.is-driver .detail-heading .line-number {
  width: 57px;
  min-width: 57px;
  height: 57px;
  font-size: 25px;
}
.is-driver .driver-detail-favorite {
  background: #fff;
  border-color: #e0e6ee;
  white-space: nowrap;
  color: #697587;
}
.is-driver .variant-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border: 0;
  padding: 6px;
  background: #e9eef4;
  border-radius: 13px;
  margin: 20px 0;
}
.is-driver .variant-tabs button {
  background: transparent;
  color: #697587;
  border: 0;
  min-height: 43px;
  border-radius: 9px;
  font-size: 13px;
  padding: 11px 18px;
}
.is-driver .variant-tabs button.active {
  background: #fff;
  color: #b81736;
  box-shadow: 0 2px 6px #25344e0c;
}
.is-driver .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.is-driver .panel {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 20px;
  box-shadow: 0 3px 12px #24344f03;
  overflow: hidden;
}
.is-driver .panel-inner {
  padding: 24px;
}
.is-driver .panel h3 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.is-driver .direction-tabs {
  background: #f0f3f7;
  border-radius: 12px;
  border: 0;
  padding: 5px;
  gap: 5px;
  margin-bottom: 20px;
}
.is-driver .direction-tabs button {
  min-height: 48px;
  border-radius: 9px;
  font-size: 12px;
  padding: 12px;
  white-space: normal;
  line-height: 1.5;
  color: #697587;
}
.is-driver .direction-tabs button.active {
  background: #fff;
  color: #b81736;
  box-shadow: 0 2px 6px #25344e08;
}
.is-driver .version-heading {
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.is-driver .version-heading h3 {
  font-size: 14px;
  line-height: 1.5;
}
.is-driver #route-map {
  height: 390px;
  border-radius: 13px;
  border: 1px solid #e8ebf1;
}
.is-driver .comparison-note {
  font-size: 11px;
  color: #718093;
  line-height: 1.7;
}
.is-driver .map-endpoints {
  font-size: 11px;
  line-height: 1.6;
  color: #697587;
  gap: 20px;
  overflow-wrap: anywhere;
}
.is-driver .detail-aside {
  display: grid;
  gap: 18px;
  position: static;
}
.is-driver .detail-aside > .panel:first-child {
  border-top: 3px solid #c7193e;
}
.is-driver .detail-aside > .panel:first-child > .panel-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.is-driver .detail-aside > .panel:first-child > .panel-inner > * {
  order: 6;
  margin-top: 0;
  margin-bottom: 0;
}
.is-driver .detail-aside > .panel:first-child .aside-label {
  order: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #8490a0;
}
.is-driver .detail-aside > .panel:first-child h3 {
  order: 1;
  font-size: 20px;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}
.is-driver .detail-aside > .panel:first-child .route-navigation-launch {
  order: 2;
  min-height: 53px;
  background: #c7193e;
  border-color: #c7193e;
  color: #fff;
  box-shadow: 0 4px 10px #c7193e18;
  margin: 0;
}
.is-driver #main .detail-aside > .panel:first-child .download {
  order: 3;
  min-height: 49px;
  background: #fff;
  color: #b81736;
  border: 1px solid #edd4dc;
  box-shadow: none;
}
.is-driver .detail-aside > .panel:first-child .download-sub {
  order: 4;
  font-size: 11px;
  color: #8490a0;
  line-height: 1.8;
  padding: 4px 0;
}
.is-driver .detail-aside > .panel:first-child .driver-file-details {
  order: 5;
  border-top: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
  padding: 12px 0;
  background: none;
  border-radius: 0;
}
.driver-file-details > summary {
  font-size: 11px;
  color: #718093;
  cursor: pointer;
  line-height: 1.6;
}
.is-driver .driver-file-details .file-data {
  border: 0;
  padding: 14px 0 0;
  margin: 0;
  font-size: 11px;
  gap: 12px;
}
.is-driver .detail-aside > .panel:first-child .btn.link {
  order: 8;
  font-size: 12px;
}
.is-driver .tip-list {
  font-size: 12px;
  color: #748092;
  line-height: 1.8;
}
.is-driver .tip-list li {
  margin-bottom: 10px;
}
.is-driver .info {
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.65;
}
.is-driver .info.amber {
  background: #fff8ec;
  border: 1px solid #f0dfc0;
}
.is-driver .public-deviation {
  padding: 12px 0;
}
.is-driver .public-deviation b {
  font-size: 13px;
}
.is-driver .manual-note {
  font-size: 10px;
  line-height: 1.6;
}
.is-driver .history {
  margin-top: 20px;
  border-radius: 14px;
}
.is-driver .history > summary {
  padding: 18px 22px;
  font-size: 12px;
  color: #748092;
}
.is-driver .history-row {
  font-size: 12px;
  padding: 18px 22px;
  gap: 15px;
}
.is-driver .driver-stops {
  margin: 20px 0;
}
.is-driver .driver-stops-heading h3 {
  font-size: 18px;
}
.is-driver .driver-stops-list button {
  font-size: 14px;
  min-height: 54px;
  line-height: 1.5;
}
.is-driver .driver-stops-heading p {
  font-size: 12px;
}
.is-driver .driver-stops-help {
  font-size: 12px;
}
.is-driver .navigation-resume {
  border: 1px solid #d7e4f3;
  border-radius: 16px;
  background: #f1f7fe;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.is-driver .navigation-resume strong {
  font-size: 14px;
}
.is-driver .navigation-resume p {
  font-size: 12px;
  color: #697587;
}
.is-driver .account-panel {
  max-width: 660px;
  margin: 24px auto;
  padding: 32px;
  background: #fff;
}
.is-driver .account-panel .account-avatar {
  background: #fff0f4;
  color: #c7193e;
  border-radius: 18px;
}
.is-driver .account-panel h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.is-driver .account-panel > .btn {
  margin-top: 12px;
  min-height: 48px;
}
.is-driver #modal {
  border-radius: 20px;
  border: 1px solid #e4e8f0;
  box-shadow: 0 30px 100px #1c2c4a30;
}
.is-driver #modal .modal-header {
  padding: 24px;
  border-bottom: 1px solid #e8edf3;
}
.is-driver #modal .modal-body {
  padding: 24px;
}
.is-driver #modal .modal-header h2 {
  font-size: 22px;
  letter-spacing: -0.035em;
}
.is-driver #modal .btn {
  min-height: 46px;
  border-radius: 11px;
}
.is-driver #modal input:not([type='checkbox']),
.is-driver #modal select,
.is-driver #modal textarea {
  font-size: 16px;
  border-radius: 10px;
}
.is-driver #modal .modal-header p {
  font-size: 12px;
}
.is-driver #modal .modal-actions {
  gap: 10px;
}
.is-driver .mobile-nav {
  display: none;
}
@media (min-width: 1500px) {
  .is-driver .lines-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .is-driver .lines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .is-driver .detail-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .is-driver .driver-welcome {
    padding: 26px;
    gap: 22px;
  }
  .driver-welcome-numbers {
    gap: 18px;
  }
  .is-driver .topbar nav {
    gap: 16px;
  }
  .is-driver .panel-inner {
    padding: 20px;
  }
}
@media (max-width: 1000px) {
  .is-driver .sidebar {
    display: none;
  }
  .is-driver .shell {
    display: block;
  }
  .is-driver #main {
    max-width: 1100px;
    padding: 26px 28px 40px;
  }
  .is-driver .topbar {
    padding: 0 25px;
    height: 74px;
  }
  .is-driver .detail-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
  .driver-welcome h2 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .is-driver .topbar {
    height: 68px;
    padding: 0 18px;
    gap: 12px;
  }
  .is-driver .topbar nav {
    display: none;
  }
  .is-driver .brand {
    font-size: 23px;
    margin-right: auto;
  }
  .is-driver .brand-icon {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }
  .is-driver .brand small {
    font-size: 7px;
  }
  .is-driver .management {
    padding: 10px;
    min-height: 40px;
    border-radius: 10px;
    font-size: 11px;
  }
  .is-driver .account-shortcut {
    display: none;
  }
  .is-driver #main {
    padding: 22px 18px 28px;
  }
  .is-driver .page-heading {
    margin-bottom: 22px;
    gap: 12px;
    align-items: flex-start;
  }
  .is-driver .page-heading h1 {
    font-size: 33px;
  }
  .is-driver .page-heading p {
    font-size: 13px;
  }
  .is-driver .page-heading .date-pill {
    display: none;
  }
  .is-driver .breadcrumb {
    font-size: 10px;
    margin-bottom: 21px;
  }
  .driver-welcome {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 20px;
    gap: 23px;
  }
  .driver-welcome h2 {
    font-size: 29px;
  }
  .driver-welcome p {
    font-size: 12px;
    max-width: 360px;
  }
  .driver-welcome-numbers {
    gap: 30px;
    border-top: 1px solid #ffffff25;
    padding-top: 18px;
  }
  .driver-welcome-numbers strong {
    font-size: 24px;
  }
  .driver-welcome-numbers > div {
    gap: 5px;
  }
  .driver-welcome-numbers span {
    font-size: 10px;
  }
  .driver-sections {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    margin: 20px -1px 24px;
    padding: 3px 1px 8px;
    scrollbar-width: none;
  }
  .driver-sections::-webkit-scrollbar {
    display: none;
  }
  .driver-sections a {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 42px;
    padding: 11px 13px;
  }
  .is-driver .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .is-driver .toolbar > .search {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
  }
  .is-driver .search input {
    font-size: 16px;
  }
  .is-driver .filters {
    width: 100%;
    justify-content: space-between;
  }
  .is-driver .filters button {
    flex: 1;
    min-height: 40px;
    font-size: 12px;
    padding: 9px 8px;
  }
  .is-driver .section-heading h2 {
    font-size: 21px;
  }
  .is-driver .section-heading h2 small {
    font-size: 10px;
  }
  .is-driver .lines-grid {
    gap: 14px;
  }
  .is-driver .card-body {
    padding: 18px;
  }
  .is-driver .card-top {
    gap: 10px;
    margin-bottom: 20px;
  }
  .is-driver .line-number {
    width: 45px;
    min-width: 45px;
    height: 45px;
    font-size: 21px;
  }
  .driver-card-label > span {
    font-size: 7px;
  }
  .driver-card-label > strong {
    font-size: 10px;
  }
  .driver-card-journey {
    font-size: 13px;
    gap: 12px;
    margin-bottom: 18px;
  }
  .is-driver .line-card .fav {
    top: 16px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .is-driver .card-bottom {
    padding: 14px 18px;
  }
  .is-driver .line-card .badge {
    font-size: 9px;
    max-width: 100%;
  }
  .is-driver .road-launch {
    padding: 16px;
    border-radius: 14px;
    gap: 12px;
  }
  .is-driver .road-brand {
    gap: 10px;
  }
  .is-driver .road-brand strong {
    font-size: 12px;
  }
  .is-driver .road-brand small {
    font-size: 10px;
  }
  .is-driver .road-launch .btn {
    font-size: 11px;
    white-space: nowrap;
    min-height: 42px;
  }
  .is-driver .bottom-label {
    display: block;
    font-size: 10px;
    line-height: 1.8;
  }
  .is-driver .bottom-label > span {
    display: flex;
    margin-top: 8px;
  }
  .is-driver .footer {
    padding: 15px 18px calc(98px + env(safe-area-inset-bottom));
    font-size: 10px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .is-driver .shell {
    padding-bottom: 15px;
    min-height: calc(100svh - 68px);
  }
  .is-driver .mobile-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: #fffffff5;
    backdrop-filter: blur(18px);
    border-top: 1px solid #e7ebf1;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px #25344e05;
    gap: 2px;
    height: auto;
  }
  .is-driver .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-height: 50px;
    padding: 7px 2px;
    border-radius: 11px;
    font-size: 9px;
    color: #8a95a5;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
  }
  .is-driver .mobile-nav a.active {
    background: #fff0f4;
    color: #bd1939;
  }
  .is-driver .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .is-driver .detail-heading .line-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 23px;
  }
  .is-driver .detail-heading {
    gap: 12px;
    align-items: flex-start;
  }
  .is-driver .detail-heading h1 {
    font-size: 29px;
    overflow-wrap: anywhere;
  }
  .is-driver .detail-heading p {
    font-size: 12px;
  }
  .is-driver .page-heading:has(.detail-heading) {
    flex-wrap: wrap;
  }
  .is-driver .driver-detail-favorite {
    padding: 10px 13px;
    font-size: 11px;
    min-height: 42px;
    margin-left: auto;
  }
  .is-driver .variant-tabs {
    margin: 18px 0;
    padding: 5px;
    gap: 5px;
  }
  .is-driver .variant-tabs button {
    font-size: 12px;
    min-height: 42px;
    padding: 10px 16px;
  }
  .is-driver .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .is-driver .detail-aside {
    display: contents;
  }
  .is-driver .detail-aside > .panel:first-child {
    grid-row: 1;
  }
  .is-driver .detail-grid > div:first-child {
    grid-row: 2;
  }
  .is-driver .detail-aside > .panel:first-child > .panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    padding: 20px;
  }
  .is-driver .detail-aside > .panel:first-child .aside-label,
  .is-driver .detail-aside > .panel:first-child h3,
  .is-driver .detail-aside > .panel:first-child .download-sub,
  .is-driver .detail-aside > .panel:first-child .driver-file-details {
    grid-column: 1/-1;
  }
  .is-driver .detail-aside > .panel:first-child h3 {
    font-size: 21px;
  }
  .is-driver .detail-aside > .panel:first-child .route-navigation-launch,
  .is-driver #main .detail-aside > .panel:first-child .download {
    min-height: 54px;
    font-size: 12px;
    padding: 11px 12px;
    width: 100%;
  }
  .is-driver .panel {
    border-radius: 17px;
  }
  .is-driver .panel-inner {
    padding: 18px;
  }
  .is-driver .direction-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
  }
  .is-driver .direction-tabs button {
    flex: 1;
    font-size: 11px;
    min-height: 52px;
    padding: 10px;
  }
  .is-driver #route-map {
    height: 310px;
    border-radius: 12px;
  }
  .is-driver .map-endpoints {
    font-size: 10px;
    gap: 15px;
  }
  .is-driver .driver-stops .panel-inner {
    padding: 20px;
  }
  .is-driver .driver-stops-heading h3 {
    font-size: 18px;
  }
  .is-driver .driver-stops-list {
    max-height: 380px;
  }
  .is-driver .driver-stops-list button {
    font-size: 13px;
    min-height: 55px;
    padding: 12px 0;
  }
  .is-driver .driver-stops-heading p {
    font-size: 11px;
  }
  .is-driver .driver-trip-help {
    display: none;
  }
  .is-driver .history > summary {
    font-size: 12px;
    padding: 17px 18px;
  }
  .is-driver .history-row {
    padding: 17px 18px;
    flex-wrap: wrap;
  }
  .is-driver .info {
    font-size: 12px;
    padding: 15px;
    gap: 10px;
  }
  .is-driver .account-panel {
    padding: 24px;
    margin: 5px 0 20px;
    max-width: none;
  }
  .is-driver .account-panel h1 {
    font-size: 28px;
  }
  .is-driver #modal {
    width: calc(100vw - 18px);
    max-height: calc(100svh - 28px);
    border-radius: 18px;
  }
  .is-driver #modal .modal-header,
  .is-driver #modal .modal-body {
    padding: 20px;
  }
  .is-driver #modal .modal-header h2 {
    font-size: 21px;
  }
  .is-driver .navigation-resume {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .is-driver .navigation-resume > div {
    flex-basis: 100%;
  }
  .is-driver .navigation-resume .btn {
    flex: 1;
    min-height: 45px;
  }
}
@media (max-width: 460px) {
  .is-driver .lines-grid {
    grid-template-columns: 1fr;
  }
  .is-driver .line-card {
    border-radius: 18px;
  }
  .is-driver .card-body {
    padding: 20px;
  }
  .is-driver .card-top {
    margin-bottom: 19px;
  }
  .is-driver .driver-card-label > span {
    font-size: 8px;
  }
  .driver-card-label > strong {
    font-size: 11px;
  }
  .driver-card-journey {
    font-size: 15px;
    min-height: 65px;
    gap: 12px;
  }
  .is-driver .line-card .fav {
    top: 20px;
    right: 17px;
    width: 39px;
    height: 39px;
  }
  .is-driver .card-bottom {
    padding: 15px 20px;
  }
  .is-driver .line-card .badge {
    font-size: 10px;
  }
  .is-driver .detail-aside > .panel:first-child > .panel-inner {
    grid-template-columns: 1fr;
  }
  .is-driver .detail-aside > .panel:first-child .route-navigation-launch,
  .is-driver #main .detail-aside > .panel:first-child .download {
    grid-column: 1/-1;
  }
  .is-driver .detail-aside > .panel:first-child .route-navigation-launch {
    min-height: 53px;
  }
  .is-driver #main .detail-aside > .panel:first-child .download {
    min-height: 46px;
    font-size: 12px;
  }
  .is-driver .page-heading h1 {
    font-size: 31px;
  }
  .is-driver .management {
    font-size: 10px;
  }
  .is-driver .management .icon {
    width: 16px;
    height: 16px;
  }
  .is-driver .driver-stops-toggle {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-driver * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Driver sign-in uses the same visual language, with its internal-code warning retained. */
.is-guest:not(.is-admin) {
  background: #f6f7fa;
}
.is-guest:not(.is-admin) .driver-login {
  max-width: 1060px;
  margin: 26px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e3e8f0;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 60px #24344e07;
}
.is-guest:not(.is-admin) .login-story {
  background: linear-gradient(135deg, #a91334, #d82147);
  padding: 46px;
  color: #fff;
}
.is-guest:not(.is-admin) .login-story h1 {
  font-size: 40px;
  letter-spacing: -0.05em;
  line-height: 1.13;
}
.is-guest:not(.is-admin) .login-story p {
  font-size: 14px;
  line-height: 1.8;
  color: #ffe3eb;
}
.is-guest:not(.is-admin) .login-pill {
  border: 1px solid #ffffff30;
  color: #ffe3eb;
  background: #ffffff0a;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 10px;
}
.is-guest:not(.is-admin) .driver-login-form {
  padding: 38px;
}
.is-guest:not(.is-admin) .driver-login-form h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  color: #242d3b;
}
.is-guest:not(.is-admin) .driver-login-form .field label {
  font-size: 13px;
  font-weight: 650;
  color: #526175;
}
.is-guest:not(.is-admin) .driver-login-form input {
  min-height: 52px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  font-size: 16px;
  background: #fbfcfd;
}
.is-guest:not(.is-admin) .driver-login-form input:focus {
  border-color: #c7193e;
  outline: 3px solid #c7193e10;
}
.is-guest:not(.is-admin) .driver-login-form [type='submit'] {
  min-height: 52px;
  border-radius: 12px;
  background: #c7193e;
  font-size: 14px;
}
.is-guest:not(.is-admin) .application-code-notice {
  border: 1px solid #f1d6df;
  border-radius: 13px;
  background: #fff2f6;
  padding: 15px;
  color: #713145;
  line-height: 1.7;
}
.is-guest:not(.is-admin) .application-code-notice strong {
  font-size: 13px;
}
.is-guest:not(.is-admin) .application-code-notice p {
  font-size: 12px;
}
.is-guest:not(.is-admin) .login-privacy {
  color: #8490a0;
  font-size: 11px;
  line-height: 1.7;
}
.is-guest:not(.is-admin) .admin-entry {
  font-size: 12px;
  color: #748092;
}
.is-driver #main .detail-aside > .panel:first-child .download:hover {
  background: #fff3f6;
}
@media (max-width: 760px) {
  .is-guest:not(.is-admin) .driver-login {
    display: block;
    margin: 10px auto;
    border-radius: 20px;
    max-width: 500px;
  }
  .is-guest:not(.is-admin) .login-story {
    padding: 26px 26px 24px;
    min-height: 0;
  }
  .is-guest:not(.is-admin) .login-story h1 {
    font-size: 30px;
    margin: 14px 0 10px;
  }
  .is-guest:not(.is-admin) .login-story p {
    font-size: 12px;
  }
  .is-guest:not(.is-admin) .login-route-art {
    display: none;
  }
  .is-guest:not(.is-admin) .login-trust {
    font-size: 10px;
    margin: 18px 0 0;
  }
  .is-guest:not(.is-admin) .driver-login-form {
    padding: 26px;
  }
  .is-guest:not(.is-admin) .driver-login-form h2 {
    font-size: 27px;
  }
  .is-guest:not(.is-admin) .application-code-notice p {
    font-size: 12px;
  }
}
