:root {
  color-scheme: light;
  --app-page-bg: #f7f9fd;
  --app-scrollbar-track: #f7f9fd;
  --app-scrollbar-thumb: #b5c6dd;
  --app-scrollbar-thumb-hover: #8fa4c4;
  --app-font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --font-size-normal: 14px;
  --font-size-page-title: 32px;
  --font-size-section-title: 24px;
  font-family: var(--app-font-family);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--app-page-bg);
  scrollbar-gutter: stable;
  scrollbar-color: var(--app-scrollbar-thumb) var(--app-scrollbar-track);
}

body {
  font-family: var(--app-font-family);
  font-size: var(--font-size-normal);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  color: #092050;
  background: var(--app-page-bg);
  scrollbar-color: var(--app-scrollbar-thumb) var(--app-scrollbar-track);
}

body.modal-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--app-scrollbar-track);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--app-scrollbar-track);
  border-radius: 999px;
  background: var(--app-scrollbar-thumb);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--app-scrollbar-thumb-hover);
  background-clip: padding-box;
}

button {
  font: inherit;
}

.auth-body {
  color: #102044;
  background: #f5f8fd;
}

.auth-page {
  min-height: 100vh;
  min-height: 100svh;
}

.auth-hero {
  display: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #102044;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.auth-brand > span:last-child > span {
  color: #087eea;
}

.auth-brand-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
}

.auth-brand-mark img {
  position: absolute;
  top: -19px;
  left: -20px;
  width: 88px;
  max-width: none;
  height: auto;
}

.auth-brand-light {
  padding: 8px 17px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  background: rgba(3, 28, 70, 0.7);
  box-shadow: 0 10px 30px rgba(1, 21, 55, 0.2);
  backdrop-filter: blur(12px);
}

.auth-signin {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding:
    max(20px, env(safe-area-inset-top))
    clamp(16px, 5vw, 40px)
    max(18px, env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background:
          linear-gradient(
                  rgba(244, 248, 253, 0.62),
                  rgba(244, 248, 253, 0.75)
          ),
          url("../../images/loginbg.png") center / cover no-repeat;
}

.auth-signin > * {
  position: relative;
  z-index: 1;
}

.auth-signin-brand {
  display: flex;
  width: fit-content;
  margin: clamp(40px, 15vh, 140px) auto 22px;
}

.auth-signin-main {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(64px, 10vh, 96px) 0 clamp(24px, 4vh, 48px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.auth-signin-heading {
  text-align: center;
}

.auth-signin-heading h2 {
  margin: 0;
  color: #0d1f45;
  font-size: clamp(1.8rem, 7vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.auth-signin-heading p {
  margin: 9px 0 0;
  color: #69758d;
  font-size: 0.94rem;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  width: min(100%, 550px);
  gap: 18px;
  margin-top: 30px;
}

.auth-validation.validation-summary-errors {
  padding: 12px 14px;
  border: 1px solid #f4b6b6;
  border-radius: 8px;
  color: #a52121;
  background: #fff2f2;
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-validation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #172747;
  font-size: 0.83rem;
  font-weight: 700;
}

.auth-input-wrap > svg,
.auth-eye svg,
.auth-footer svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  object-fit: contain;
}

.auth-input-wrap {
  display: flex;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  color: #7e8ba1;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-input-wrap:focus-within {
  border-color: #3682eb;
  box-shadow: 0 0 0 3px rgba(9, 88, 214, 0.1);
}

.auth-input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: #172747;
  background: transparent;
  font: inherit;
}

.auth-input-wrap input::placeholder {
  color: #8c97aa;
}

.auth-field-error {
  display: block;
  margin-top: 6px;
  color: #a52121;
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-field-error:empty {
  display: none;
}

.auth-eye {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  place-content: center;
  color: #7e8ba1;
  background: transparent;
  cursor: pointer;
}

.auth-eye:hover,
.auth-eye[aria-pressed="true"] {
  color: #075de0;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #44526d;
  font-size: 0.83rem;
}

.auth-form-options a {
  color: #075de0;
  text-decoration: none;
  font-weight: 650;
}

.auth-form-options a:hover {
  text-decoration: underline;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #075de0;
}

.auth-submit,
.auth-google {
  display: flex;
  width: 100%;
  min-height: 49px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.auth-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(100deg, #0873ed, #0754d8);
  box-shadow: 0 9px 20px rgba(7, 84, 216, 0.2);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(7, 84, 216, 0.28);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7a8598;
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #dfe5ed;
  content: "";
}

.auth-google {
  border: 1px solid #c8d1df;
  color: #152442;
  background: #fff;
  font-size: 0.92rem;
}

.auth-google:hover {
  border-color: #9eafc6;
  background: #f8faff;
}

.auth-google-mark {
  margin-right: 11px;
  background: conic-gradient(from -35deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  background-clip: text;
  color: transparent;
  font-size: 1.25rem;
  font-weight: 900;
}

.auth-footer {
  display: flex;
  width: 100%;
  margin-top: 0;
  padding-top: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  color: #718097;
  font-size: 0.73rem;
}

.auth-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-footer svg {
  width: 17px;
  height: 17px;
}

@media (min-width: 1100px) {
  .auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(520px, 0.95fr);
  }

  .auth-hero {
    position: relative;
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background: #08316e url("../../images/loginbg.png") center bottom / cover no-repeat;
  }

  .auth-hero-overlay {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 90% 45%, rgba(69, 166, 255, 0.18), transparent 42%),
      linear-gradient(90deg, rgba(3, 28, 70, 0.38), rgba(8, 72, 157, 0.08));
  }

  .auth-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(40px, 5vw, 78px);
    flex-direction: column;
  }

  .auth-brand-light {
    font-size: clamp(2rem, 2.7vw, 2.8rem);
  }

  .auth-brand-light .auth-brand-mark {
    width: 58px;
    height: 58px;
  }

  .auth-brand-light .auth-brand-mark img {
    top: -23px;
    left: -24px;
    width: 106px;
  }

  .auth-hero-copy {
    margin-top: clamp(42px, 7vh, 82px);
  }

  .auth-hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .auth-hero-copy h1 span {
    color: #4ca9ff;
  }

  .auth-hero-copy > p {
    max-width: 630px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.3vw, 1.22rem);
    line-height: 1.55;
  }

  .auth-features {
    display: grid;
    max-width: 760px;
    margin-top: clamp(30px, 5vh, 54px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
  }

  .auth-feature,
  .auth-stats-message {
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .auth-feature-icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    place-content: center;
    color: #fff;
    background: rgba(40, 133, 255, 0.48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .auth-feature-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .auth-feature span:last-child {
    display: grid;
    gap: 4px;
  }

  .auth-feature strong,
  .auth-feature small {
    white-space: nowrap;
  }

  .auth-feature strong {
    font-size: 0.87rem;
  }

  .auth-feature small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
  }

  .auth-stats {
    display: grid;
    max-width: 830px;
    margin-top: auto;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 17px;
    grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(90px, 0.7fr));
    background: rgba(20, 69, 139, 0.58);
    backdrop-filter: blur(12px);
  }

  .auth-stats-message {
    padding-right: 20px;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .auth-stat {
    display: grid;
    padding: 0 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    align-content: center;
    gap: 5px;
  }

  .auth-stat strong {
    font-size: clamp(1.45rem, 2vw, 2rem);
  }

  .auth-stat span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.77rem;
  }

  .auth-signin {
    background: #f5f8fd;
  }

  .auth-signin::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../../images/loginbg.png") center bottom / cover no-repeat;
    content: "";
    filter: grayscale(1) saturate(0.4);
    opacity: 0.16;
  }

  .auth-signin::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(rgba(245, 248, 253, 0.62), rgba(245, 248, 253, 0.78)),
      radial-gradient(circle at 50% 86%, rgba(7, 93, 224, 0.12), transparent 48%);
    content: "";
  }

}

.main-body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--app-page-bg);
}

.main-header {
  position: sticky;
  z-index: 1200;
  top: 0;
  border-bottom: 1px solid #e2e9f4;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(28, 61, 112, 0.06);
  backdrop-filter: blur(12px);
}

.main-header-inner {
  position: relative;
  display: flex;
  min-height: 72px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding:
    max(8px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    8px
    max(14px, env(safe-area-inset-left));
}

.app-toast {
  position: fixed;
  z-index: 1400;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px;
  border: 1px solid;
  border-radius: 8px;
  align-items: start;
  gap: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(8, 25, 54, 0.22);
  opacity: 0.94;
}

.app-toast.is-success {
  border-color: #9bd8bd;
  color: #0b6d46;
  background: #f0fff7;
}

.app-toast.is-error {
  border-color: #f0a8a8;
  color: #9f2323;
  background: #fff4f4;
}

.app-toast.is-auto-fade {
  grid-template-columns: minmax(0, 1fr);
  pointer-events: none;
  animation: app-toast-auto-fade 2000ms ease-out forwards;
}

.app-toast.is-trip strong {
  font-size: 1rem;
}

.app-toast strong {
  display: block;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
}

.app-toast p {
  margin: 4px 0 0;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.4;
}

.app-toast-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  place-content: center;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.app-toast-close:hover,
.app-toast-close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  outline: 0;
}

.app-toast-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

@keyframes app-toast-auto-fade {
  0% {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }

  12% {
    opacity: 0.94;
    transform: translate3d(0, 0, 0);
  }

  70% {
    opacity: 0.84;
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
}

.main-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #08205b;
  text-decoration: none;
}

.main-brand-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
 }

.main-brand-mark img {
  position: absolute;
  top: -19px;
  left: -20px;
  width: 88px;
  max-width: none;
  height: auto;
}

.main-brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.38);
}

.main-brand-name span:last-child {
  color: #0789f7;
}

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

.header-notification,
.header-user-name {
  display: none;
}

.header-notification {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  place-content: center;
  color: #314b78;
  background: transparent;
  cursor: pointer;
}

.header-notification:hover {
  color: #073a9d;
  background: #edf5ff;
}

.header-notification svg,
.profile-avatar svg,
.profile-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0789f7;
}

.notification-menu {
  position: relative;
  display: none;
}

.notification-dropdown {
  position: absolute;
  z-index: 45;
  top: calc(100% + 10px);
  right: 0;
  width: min(440px, calc(100vw - 24px));
  height: min(310px, calc(100vh - 96px));
  height: min(310px, calc(100svh - 96px));
  overflow: visible;
  color: #102956;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.notification-dropdown[hidden] {
  display: none;
}

.notification-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.notification-dropdown-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 16px 18px 15px;
  border-bottom: 1px solid #dce8f8;
  align-items: center;
  gap: 12px;
}

.notification-header-copy {
  min-width: 0;
}

.notification-dropdown-header h2 {
  margin: 0;
  color: #102956;
  font-size: 1.18rem;
  line-height: 1.15;
}

.notification-dropdown-header p {
  margin: 3px 0 0;
  color: #6f82a2;
  font-size: 0.8rem;
  font-weight: 700;
}

.notification-dropdown-header form,
.notification-item form {
  margin: 0;
}

.notification-clear {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #0c4db5;
  background: #edf5ff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.notification-clear:hover {
  color: #086eff;
  border-color: #9ac5ff;
  background: #e4f1ff;
}

.notification-message {
  padding: 16px 18px;
  color: #607494;
  font-size: 0.84rem;
  line-height: 1.4;
}

.notification-message.is-error {
  color: #9f2323;
  background: #fff4f4;
}

.notification-list {
  display: grid;
  max-height: min(286px, calc(100vh - 152px));
  padding: 14px 16px 16px;
  overflow-y: auto;
  gap: 9px;
  overscroll-behavior: contain;
  scrollbar-color: #b5c6dd transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.notification-list::-webkit-scrollbar {
  width: 8px;
}

.notification-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b5c6dd;
  background-clip: content-box;
}

.notification-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 32px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d6e5f7;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(25, 54, 105, 0.07);
}

.notification-item.is-started {
  border-left: 3px solid #1a66d2;
}

.notification-item.is-completed {
  border-left: 3px solid #12805c;
}

.notification-item.is-canceled {
  border-left: 3px solid #c93345;
}

.notification-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2588ff;
  box-shadow: 0 0 9px rgba(37, 136, 255, 0.38);
}

.notification-item.is-completed .notification-item-dot {
  background: #12805c;
  box-shadow: 0 0 9px rgba(18, 128, 92, 0.36);
}

.notification-item.is-canceled .notification-item-dot {
  background: #c93345;
  box-shadow: 0 0 9px rgba(201, 51, 69, 0.34);
}

.notification-item-copy {
  min-width: 0;
}

.notification-item-copy > span:first-child {
  display: block;
  margin-bottom: 3px;
  color: #0c4db5;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.notification-item.is-completed .notification-item-copy > span:first-child {
  color: #12805c;
}

.notification-item.is-canceled .notification-item-copy > span:first-child {
  color: #c93345;
}

.notification-item-copy strong {
  display: block;
  min-width: 0;
  color: #19325a;
  font-size: 0.88rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.notification-item-copy p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #7284a2;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-time-row {
  display: inline-flex;
  min-width: 0;
  margin-top: 4px;
  align-items: center;
  gap: 6px;
  color: #7284a2;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.notification-time-row svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-time-row time {
  min-width: 0;
}

.notification-dismiss {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  place-content: center;
  color: #607494;
  background: transparent;
  cursor: pointer;
}

.notification-dismiss:hover {
  color: #0c4db5;
  background: #edf5ff;
}

.notification-dismiss svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-user-name {
  color: #253a60;
  font-weight: 650;
}

.profile-menu {
  position: relative;
}

.profile-menu-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 1px solid #d6e1f0;
  border-radius: 50%;
  place-content: center;
  color: #24518f;
  background: #f3f7fd;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.profile-menu-toggle:hover,
.profile-menu-toggle[aria-expanded="true"] {
  border-color: #8cb8ee;
  box-shadow: 0 0 0 4px rgba(8, 126, 234, 0.1);
}

.profile-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  place-content: center;
  background: linear-gradient(145deg, #e8f2ff, #cbdff8);
}

.profile-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(290px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #dce6f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(25, 54, 105, 0.18);
}

.profile-dropdown.is-open {
  display: flex;
}

.profile-logout-form {
  display: flex;
  flex: 1 1 0;
  margin: 0;
}

.profile-action {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 66px;
  padding: 8px 5px;
  border: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #425474;
  text-decoration: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
}

.profile-action:hover {
  color: #073a9d;
  background: #edf5ff;
}

.profile-action svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.menu-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  place-content: center;
  gap: 5px;
  color: #092b75;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.main-navigation {
  position: fixed;
  z-index: 1100;
  top: max(73px, calc(54px + env(safe-area-inset-top)));
  right: auto;
  bottom: 0;
  left: 0;
  display: block;
  width: min(280px, 84vw);
  padding: 16px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid #dce6f3;
  border-radius: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 8px 0 30px rgba(25, 54, 105, 0.16);
  transform: translateX(-105%);
  transition:
    transform 200ms ease,
    visibility 200ms ease;
}

.main-navigation.is-open {
  visibility: visible;
  transform: translateX(0);
}

.navigation-backdrop {
  position: fixed;
  z-index: 1050;
  top: max(73px, calc(54px + env(safe-area-inset-top)));
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 0;
  border: 0;
  visibility: hidden;
  background: rgba(13, 35, 72, 0.28);
  opacity: 0;
  cursor: pointer;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.navigation-backdrop.is-visible {
  visibility: visible;
  opacity: 1;
}

.sidebar-toggle {
  display: none;
}

.main-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-tab {
  position: relative;
  display: flex;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  color: #5e6d88;
  text-align: left;
  background: transparent;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.tab-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  white-space: nowrap;
}

.main-tab:hover,
.main-tab.is-active {
  color: #073a9d;
  background: #edf5ff;
}

.main-tab:focus-visible,
.menu-toggle:focus-visible,
.sidebar-toggle:focus-visible,
.header-notification:focus-visible,
.notification-clear:focus-visible,
.notification-dismiss:focus-visible,
.profile-menu-toggle:focus-visible,
.profile-action:focus-visible,
.main-brand:focus-visible,
.auth-submit:focus-visible,
.auth-google:focus-visible,
.auth-eye:focus-visible {
  outline: 3px solid rgba(9, 88, 214, 0.3);
  outline-offset: 3px;
}

.main-page {
  width: min(100%, 1440px);
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  margin: 0 auto;
}

.tab-panel {
  min-height: inherit;
  outline: none;
}

.tab-panel[hidden] {
  display: none;
}

.dashboard-content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
}

.dashboard-heading {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.dashboard-heading p {
  margin: 0 0 5px;
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-heading h1 {
  margin: 0;
  color: #102956;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
}

.dashboard-card {
  --card-color: #087eea;
  --card-soft-color: #eaf4ff;
  position: relative;
  display: flex;
  min-height: 142px;
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid #e1e9f5;
  border-radius: 20px;
  align-items: center;
  gap: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 65, 112, 0.07);
}

.dashboard-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 76px;
  border-radius: 0 0 0 76px;
  background: var(--card-soft-color);
  content: "";
  opacity: 0.7;
}

.dashboard-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  place-content: center;
  color: var(--card-color);
  background: var(--card-soft-color);
}

.dashboard-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-card-copy {
  position: relative;
  z-index: 1;
}

.dashboard-card-copy p {
  margin: 0 0 5px;
  color: #667792;
  font-size: 0.95rem;
  font-weight: 650;
}

.dashboard-card-copy strong {
  display: block;
  color: #102956;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-card-online {
  --card-color: #0d9d68;
  --card-soft-color: #e4f8f0;
}

.dashboard-card-active {
  --card-color: #087eea;
  --card-soft-color: #e7f3ff;
}

.dashboard-card-completed {
  --card-color: #6658d3;
  --card-soft-color: #eeebff;
}

.dashboard-card-canceled {
  --card-color: #d64d57;
  --card-soft-color: #ffebed;
}

.profile-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
}

.profile-heading {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.profile-heading p {
  margin: 0 0 5px;
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-heading h1 {
  margin: 0;
  color: #102956;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.profile-empty,
.operator-profile-card {
  border: 1px solid #dfe7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 65, 112, 0.07);
}

.profile-empty {
  padding: 22px;
  color: #60718c;
}

.operator-profile-card {
  overflow: hidden;
}

.operator-profile-hero {
  display: flex;
  padding: clamp(20px, 4vw, 34px);
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
  background:
    radial-gradient(circle at 92% 12%, rgba(8, 126, 234, 0.16), transparent 35%),
    linear-gradient(135deg, #f8fbff, #edf6ff);
}

.operator-profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: clamp(72px, 12vw, 108px);
  height: clamp(72px, 12vw, 108px);
  overflow: hidden;
  border: 1px solid #cfe0f5;
  border-radius: 28px;
  place-content: center;
  color: #0769da;
  background: linear-gradient(145deg, #e8f2ff, #cbdff8);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.58);
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.operator-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-profile-copy {
  min-width: 0;
}

.operator-profile-copy p {
  margin: 0 0 6px;
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.operator-profile-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #061d49;
  font-size: clamp(1.65rem, 5vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.operator-profile-meta {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #63738f;
  font-weight: 750;
}

.operator-profile-actions,
.operator-profile-form-actions {
  display: flex;
  padding: 16px clamp(18px, 3vw, 28px) 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.operator-profile-form {
  margin: 0;
}

.operator-profile-form-actions[hidden] {
  display: none;
}

.operator-password-form {
  margin: 0;
  padding-top: 4px;
}

.operator-password-form[hidden] {
  display: none;
}

.operator-profile-action {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #0c4db5;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
}

.operator-profile-action:hover,
.operator-profile-action:focus-visible {
  color: #086eff;
  border-color: #8dbdff;
  outline: 0;
}

.operator-profile-icon-action {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.operator-profile-icon-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operator-profile-action.is-primary {
  color: #fff;
  border-color: #086eff;
  background: #086eff;
}

.operator-profile-action.is-primary:hover,
.operator-profile-action.is-primary:focus-visible {
  color: #fff;
  border-color: #0754f0;
  background: #0754f0;
}

.profile-notice,
.profile-validation.validation-summary-errors {
  margin: 16px clamp(18px, 3vw, 28px) 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.profile-notice {
  border: 1px solid #a8dfc5;
  color: #0c7f50;
  background: #ecfff5;
}

.profile-validation.validation-summary-errors {
  border: 1px solid #f4b6b6;
  color: #a52121;
  background: #fff2f2;
}

.operator-status-pill {
  display: inline-flex;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  align-items: center;
  color: #7b8799;
  background: #eef2f7;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.operator-status-pill.is-active {
  color: #0bae63;
  background: #dff8e7;
}

.operator-status-pill.is-inactive {
  color: #b04754;
  background: #ffecef;
}

.operator-profile-grid {
  display: grid;
  padding: clamp(18px, 3vw, 28px);
  grid-template-columns: 1fr;
  gap: 12px;
}

.operator-profile-field {
  display: grid;
  min-width: 0;
  padding: 15px;
  border: 1px solid #e1e9f5;
  border-radius: 14px;
  gap: 6px;
  background: #f8fbff;
}

.operator-profile-field span {
  color: #7485a0;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-profile-field strong {
  overflow-wrap: anywhere;
  color: #102956;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.3;
}

.operator-profile-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #102956;
  background: transparent;
  font: inherit;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.3;
}

.operator-profile-field input:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.operator-profile-field input:not(:disabled) {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  background: #fff;
}

.operator-profile-field input:focus {
  border-color: #3682eb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(54, 130, 235, 0.14);
}

.operator-profile-form .operator-profile-field {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 4px 6px;
}

.operator-profile-form .operator-profile-field > span:first-child {
  color: #7485a0;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: none;
}

.operator-profile-form .operator-profile-field > span:first-child::after {
  content: ":";
}

.operator-profile-form .operator-profile-field input {
  width: 100%;
}

.operator-profile-form .profile-field-error {
  grid-column: 1 / -1;
  min-height: 0;
}

.profile-field-error {
  min-height: 16px;
  color: #a52121;
  font-size: 0.75rem;
  font-weight: 700;
}

.agents-content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
}

.agents-heading {
  display: grid;
  margin-bottom: clamp(20px, 3vw, 32px);
  gap: 16px;
}

.agents-heading p,
.agents-ratio span {
  margin: 0 0 5px;
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agents-heading h1 {
  margin: 0;
  color: #102956;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.agents-heading-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.agent-create-link {
  flex: 0 0 auto;
}

.agents-toolbar-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.agents-toolbar {
  display: flex;
  margin: 0 0 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.agents-toolbar-create-only {
  justify-content: flex-end;
}

.agents-ratio {
  display: inline-flex;
  width: fit-content;
  padding: 16px 20px;
  border: 1px solid #d7e5f5;
  border-radius: 18px;
  align-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 65, 112, 0.07);
}

.agents-ratio span {
  margin: 0;
  white-space: nowrap;
}

.agents-ratio strong {
  display: inline-block;
  color: #0d9d68;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.agent-search {
  min-width: min(100%, 280px);
  flex: 1 1 420px;
}

.agent-search-field {
  display: grid;
  width: min(100%, 420px);
  gap: 7px;
}

.agent-search-field span {
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.agent-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cdd9e8;
  border-radius: 8px;
  color: #102956;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.agent-search-field input:focus {
  border-color: #3682eb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(54, 130, 235, 0.14);
}

.agents-workspace {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.agents-directory-column {
  display: grid;
  width: min(100%, 420px);
  gap: 12px;
}

.agents-empty {
  padding: 22px;
  border: 1px dashed #cdd9e8;
  border-radius: 18px;
  color: #60718c;
  background: #fff;
}

.agents-empty[hidden],
.agent-row[hidden] {
  display: none;
}

.agents-list {
  display: grid;
  width: min(100%, 420px);
  gap: 12px;
}

.agent-row {
  display: grid;
  min-height: 88px;
  padding: clamp(12px, 1.6vw, 18px);
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 65, 106, 0.08);
}

.agent-card-profile {
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  min-width: 0;
  align-items: center;
  gap: clamp(10px, 1.6vw, 15px);
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.agent-card-profile:hover h2,
.agent-card-profile:focus-visible h2 {
  color: #086eff;
}

.agent-card-profile:focus-visible {
  outline: 3px solid rgba(9, 88, 214, 0.3);
  outline-offset: 4px;
}

.agent-avatar {
  display: grid;
  flex: 0 0 auto;
  width: clamp(44px, 5.5vw, 60px);
  height: clamp(44px, 5.5vw, 60px);
  border: 1px solid #dce5f1;
  border-radius: 50%;
  place-content: center;
  color: #0cbd6b;
  background: radial-gradient(circle at 50% 42%, #dff8e8 0 52%, #f7fbff 53% 100%);
  box-shadow: inset 0 0 0 4px #f8fbff;
}

.agent-avatar svg {
  width: clamp(24px, 3.4vw, 34px);
  height: clamp(24px, 3.4vw, 34px);
  fill: currentColor;
}

.agent-card-copy {
  min-width: 0;
}

.agent-card-copy h2 {
  margin: 0;
  overflow: hidden;
  color: #061d49;
  font-size: clamp(1rem, 1.9vw, 1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-card-status-line {
  display: flex;
  margin-top: 5px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.agent-card-username {
  overflow: hidden;
  color: #8a99b5;
  font-size: clamp(0.70rem, 1.3vw, 0.90rem);
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-session-pill {
  display: inline-flex;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  color: #7b8799;
  background: #eef2f7;
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  font-weight: 750;
  line-height: 1;
}

.agent-session-pill.is-online {
  color: #0bae63;
  background: #dff8e7;
}

.agent-online-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.agent-card-actions {
  display: grid;
  gap: 8px;
}

.agent-action {
  display: inline-flex;
  min-height: 36px;
  padding: 0 clamp(12px, 1.4vw, 18px);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.agent-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-action-location {
  border: 2px solid #086eff;
  color: #086eff;
  background: #fff;
}

.agent-action:hover {
  transform: translateY(-1px);
}

.agent-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.agent-action:focus-visible {
  outline: 3px solid rgba(9, 88, 214, 0.3);
  outline-offset: 3px;
}

.agents-directory-column .agent-row {
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 12px;
  gap: 10px;
}

.agents-directory-column .agent-card-profile {
  gap: 10px;
}

.agents-directory-column .agent-avatar {
  width: 44px;
  height: 44px;
}

.agents-directory-column .agent-avatar svg {
  width: 24px;
  height: 24px;
}

.agents-directory-column .agent-card-actions {
  grid-template-columns: 36px;
  justify-content: end;
}

.agents-directory-column .agent-action {
  width: 36px;
  min-height: 32px;
  height: 36px;
  padding: 0;
}

.agents-directory-column .agent-action-location {
  border-radius: 50%;
}

.agents-map-panel {
  position: relative;
  min-width: 0;
}

.agents-map-link {
  position: relative;
  display: block;
  min-height: clamp(360px, calc(100vh - 300px), 660px);
  overflow: hidden;
  border: 1px solid #d7e5f5;
  border-radius: 14px;
  color: inherit;
  background: #dbe5ef;
  box-shadow: 0 12px 30px rgba(36, 65, 112, 0.09);
  text-decoration: none;
}

.agents-map-link:hover,
.agents-map-link:focus-visible {
  border-color: #8dbdff;
  outline: 0;
  box-shadow:
    0 14px 34px rgba(36, 65, 112, 0.13),
    0 0 0 3px rgba(8, 110, 255, 0.14);
}

.agents-map-link .agents-map-canvas,
.agents-map-link .maplibregl-canvas,
.agents-map-link .maplibregl-control-container,
.agents-map-link .agents-map-marker {
  pointer-events: none;
}

.agents-map-canvas {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #dbe5ef;
}

.agents-map-link .agents-map-canvas {
  position: absolute;
  inset: 0;
}

.agents-map-status {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  max-width: min(300px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  color: #405875;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(37, 65, 106, 0.12);
  font-size: 0.84rem;
  font-weight: 750;
}

.agents-map-status[hidden] {
  display: none;
}

.agents-map-marker {
  display: block;
  width: 48px;
  height: 55px;
  line-height: 0;
  filter: drop-shadow(0 7px 12px rgba(6, 29, 73, 0.26));
}

.agents-map-marker svg {
  display: block;
  width: 48px;
  height: 55px;
}

.agents-map-popup {
  min-width: 150px;
  color: #14213d;
}

.agents-map-popup strong,
.agents-map-popup p {
  display: block;
}

.agents-map-popup strong {
  color: #14213d;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
}

.agents-map-popup p {
  margin: 4px 0 0;
  color: #4d5e73;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.agent-profile-dialog-open {
  overflow: hidden;
}

.agent-profile-dialog[hidden] {
  display: none;
}

.agent-profile-dialog {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  padding:
    max(18px, env(safe-area-inset-top))
    clamp(14px, 4vw, 32px)
    max(18px, env(safe-area-inset-bottom));
  place-items: center;
}

.agent-profile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 14, 31, 0.58);
  cursor: pointer;
}

.agent-profile-panel {
  position: relative;
  display: grid;
  width: min(100%, 860px);
  max-height: min(820px, calc(100vh - 36px));
  max-height: min(820px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 25, 54, 0.28);
}

.agent-profile-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  padding: 18px;
  border-bottom: 1px solid #e1e9f5;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: inherit;
}

.agent-profile-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.agent-profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid #dce5f1;
  border-radius: 50%;
  place-content: center;
  color: #0cbd6b;
  background: radial-gradient(circle at 50% 42%, #dff8e8 0 52%, #f7fbff 53% 100%);
  box-shadow: inset 0 0 0 4px #f8fbff;
}

.agent-profile-avatar svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.agent-profile-heading h2 {
  margin: 0;
  overflow: hidden;
  color: #061d49;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-profile-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.agent-profile-edit,
.agent-profile-close,
.agent-profile-cancel,
.agent-profile-save {
  min-height: 38px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.agent-profile-edit {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid #c7d8ee;
  align-items: center;
  justify-content: center;
  color: #0c4db5;
  background: #f7faff;
}

.agent-profile-edit svg,
.agent-profile-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-profile-close {
  display: grid;
  width: 38px;
  padding: 0;
  border: 1px solid #d7e5f5;
  place-content: center;
  color: #39516f;
  background: #f7faff;
}

.agent-profile-edit:hover,
.agent-profile-edit:focus-visible,
.agent-profile-close:hover,
.agent-profile-close:focus-visible {
  color: #086eff;
  border-color: #9fc6ff;
  outline: 0;
}

.agent-profile-view,
.agent-profile-form {
  padding: clamp(16px, 3vw, 24px);
}

.agent-profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.agent-profile-details > div {
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eef6;
}

.agent-profile-details dt,
.agent-edit-field > span:first-child {
  display: block;
  margin: 0 0 5px;
  color: #6980a3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-profile-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #102956;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
}

.agent-edit-grid {
  display: grid;
  gap: 14px;
}

.agent-edit-field input,
.agent-edit-field select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  color: #172747;
  background: #fff;
  font: inherit;
  font-size: 0.93rem;
  outline: 0;
}

.agent-edit-field input:focus,
.agent-edit-field select:focus {
  border-color: #3682eb;
  box-shadow: 0 0 0 3px rgba(9, 88, 214, 0.1);
}

.operator-password-input-wrap {
  position: relative;
  display: block;
}

.agent-edit-field .operator-password-input-wrap input {
  padding-right: 44px;
}

.operator-password-eye {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  place-content: center;
  color: #61708a;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.operator-password-eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operator-password-eye:hover,
.operator-password-eye:focus-visible,
.operator-password-eye[aria-pressed="true"] {
  color: #086eff;
}

.agent-profile-validation.validation-summary-errors {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #f4b6b6;
  border-radius: 8px;
  color: #a52121;
  background: #fff2f2;
  font-size: 0.84rem;
  line-height: 1.45;
}

.agent-profile-validation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-profile-form-actions {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.agent-profile-cancel,
.agent-profile-save {
  padding: 0 16px;
}

.agent-profile-cancel {
  border: 1px solid #c7d8ee;
  color: #39516f;
  background: #fff;
}

.agent-profile-save {
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, #087dff, #0754f0);
  box-shadow: 0 8px 18px rgba(7, 94, 235, 0.18);
}

.agent-profile-save:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.agent-profile-cancel:hover,
.agent-profile-cancel:focus-visible {
  color: #086eff;
  border-color: #9fc6ff;
  outline: 0;
}

.trips-content {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
}

.trips-heading {
  display: grid;
  margin-bottom: clamp(26px, 4vw, 44px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid #dfe7f2;
  gap: 16px;
}

.trips-heading-actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.trips-heading h1 {
  margin: 0;
  color: #102956;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.trips-count {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid #d7e5f5;
  border-radius: 0;
  align-items: center;
  gap: 8px;
  background: transparent;
  box-shadow: none;
}

.trips-refresh {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0c4db5;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.trips-refresh svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trips-refresh:hover,
.trips-refresh:focus-visible {
  color: #086eff;
  border-color: #8dbdff;
  outline: 0;
}

button.trips-refresh {
  font: inherit;
  cursor: pointer;
}

.trips-count span,
.trip-section-heading span,
.trip-history-date-field span,
.trip-field > span:first-child,
.trip-map-toolbar > span,
.trip-location-output span,
.current-trip-stats span,
.trip-list-metrics span {
  display: block;
  margin: 0 0 5px;
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trips-count span {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.trips-count strong {
  display: inline-block;
  color: #086eff;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.trips-layout,
.trips-list-layout {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.trip-create-panel,
.current-trips-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trip-create-panel {
  padding-bottom: clamp(28px, 5vw, 44px);
  border-bottom: 1px solid #dfe7f2;
}

.trip-section-heading {
  display: flex;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eef6;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trip-section-heading h2 {
  margin: 0;
  color: #061d49;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.15;
}

.trip-status-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 4px;
  background: #f8fbff;
}

.trip-status-tab {
  display: inline-flex;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  color: #60718c;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.trip-status-tab:hover,
.trip-status-tab:focus-visible,
.trip-status-tab.is-active {
  color: #0c4db5;
  border-color: #bfd7f6;
  outline: 0;
  background: #fff;
}

.trip-history-toolbar {
  display: flex;
  min-width: 0;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.trip-history-toolbar .trip-status-tabs {
  margin-top: 0;
}

.trip-history-date-filter {
  display: flex;
  min-width: 0;
  flex: 1 1 360px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.trip-history-date-field {
  display: grid;
  min-width: min(150px, 100%);
  flex: 1 1 150px;
}

.trip-history-date-submit {
  flex: 0 0 auto;
}

.trip-create-link {
  display: inline-flex;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #086eff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #086eff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.trip-create-link[hidden] {
  display: none;
}

.trip-create-link svg {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-create-link span {
  display: inline-flex;
  margin: 0;
  align-items: center;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
  text-transform: none;
}

.trip-create-link:hover,
.trip-create-link:focus-visible {
  color: #fff;
  border-color: #0754f0;
  outline: 0;
  background: #0754f0;
}

.trip-create-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.trip-create-mode {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 4px;
  background: #f8fbff;
}

.trip-create-mode label {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  color: #60718c;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
}

.trip-create-mode input {
  width: 15px;
  height: 15px;
  accent-color: #086eff;
}

.trip-create-mode label:has(input:checked) {
  color: #0c4db5;
  border-color: #bfd7f6;
  background: #fff;
}

.trip-single-fields,
.trip-chain-fields,
.trip-chain-list,
.trip-chain-row {
  display: grid;
  min-width: 0;
  gap: 15px;
}

.trip-single-fields[hidden],
.trip-chain-fields[hidden] {
  display: none;
}

.trip-chain-row {
  padding: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f9fbff;
}

.trip-chain-row-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trip-chain-row-actions {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trip-chain-row-header strong {
  color: #061d49;
  font-size: 0.96rem;
  line-height: 1.2;
}

.trip-predecessor-field {
  display: grid;
  width: min(360px, 100%);
  gap: 4px;
}

.trip-create-predecessor-field {
  width: 100%;
}

.trip-predecessor-field > span:first-child {
  color: #60718c;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.trip-predecessor-field select {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  color: #0c4db5;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
}

.trip-predecessor-field select:focus-visible {
  border-color: #8dbdff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(8, 110, 255, 0.14);
}

.trip-chain-grid,
.trip-chain-append-grid {
  display: grid;
  min-width: 0;
  gap: 13px;
}

.trip-chain-map-field {
  gap: 8px;
}

.trip-chain-remove,
.trip-chain-add {
  display: inline-flex;
  min-height: 34px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0c4db5;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
}

.trip-chain-remove {
  padding: 7px 10px;
  color: #a52121;
  border-color: #f0bbbb;
  background: #fff7f7;
}

.trip-chain-remove[hidden] {
  display: none;
}

.trip-chain-add {
  width: fit-content;
  padding: 8px 12px;
}

.trip-chain-add svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.trip-chain-modal-header-actions {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trip-chain-modal-add {
  min-height: 36px;
  padding: 8px 12px;
}

.trip-chain-remove:hover,
.trip-chain-remove:focus-visible,
.trip-chain-add:hover,
.trip-chain-add:focus-visible {
  border-color: #8dbdff;
  outline: 0;
}

.trip-create-modal,
.trip-edit-modal,
.trip-chain-modal,
.trip-note-modal,
.app-confirm-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 36px));
  max-height: min(820px, calc(100svh - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  color: #172747;
  background: #fff;
  box-shadow: 0 28px 70px rgba(16, 41, 86, 0.24);
}

.trip-chain-modal {
  width: min(920px, calc(100vw - 28px));
}

.agent-create-modal {
  width: min(820px, calc(100vw - 28px));
}

.trip-note-modal {
  width: min(620px, calc(100vw - 28px));
}

.app-confirm-modal {
  width: min(460px, calc(100vw - 28px));
}

.trip-create-modal::backdrop,
.trip-edit-modal::backdrop,
.trip-chain-modal::backdrop,
.trip-note-modal::backdrop,
.app-confirm-modal::backdrop {
  background: rgba(7, 17, 31, 0.46);
  backdrop-filter: blur(4px);
}

.trip-create-modal-shell,
.trip-edit-modal-shell,
.trip-chain-modal-shell,
.trip-note-modal-shell,
.app-confirm-modal-shell {
  display: grid;
  max-height: inherit;
  overflow: auto;
}

.trip-create-modal-header,
.trip-edit-modal-header,
.trip-chain-modal-header,
.trip-note-modal-header,
.app-confirm-modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-width: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e2eaf5;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.trip-create-modal-header h2,
.trip-edit-modal-header h2,
.trip-chain-modal-header h2,
.trip-note-modal-header h2,
.app-confirm-modal-header h2 {
  margin: 0;
  color: #061d49;
  font-size: 1.12rem;
  line-height: 1.2;
}

.app-confirm-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.app-confirm-heading > div {
  min-width: 0;
}

.app-confirm-heading > div > span {
  display: block;
  margin-bottom: 4px;
  color: #6980a3;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-confirm-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #087eea;
  background: #f3f8ff;
}

.app-confirm-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-chain-modal-header p {
  margin: 4px 0 0;
  color: #71829d;
  font-size: 0.86rem;
  font-weight: 750;
}

.trip-modal-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border: 1px solid #d6e2f1;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #60718c;
  background: #f8fbff;
  cursor: pointer;
}

.trip-modal-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.trip-modal-close:hover,
.trip-modal-close:focus-visible {
  color: #a52121;
  border-color: #f0bbbb;
  outline: 0;
}

.trip-create-modal .trip-create-form,
.trip-edit-modal .trip-edit-form {
  margin-top: 0;
  padding: 18px;
}

.trip-create-modal .trip-location-map {
  min-height: 210px;
  aspect-ratio: 16 / 8;
}

.trip-create-modal .trip-chain-map-field .trip-location-map,
.trip-edit-modal .trip-location-map {
  min-height: 138px;
  aspect-ratio: 16 / 5;
}

.trip-chain-modal-body {
  display: grid;
  max-height: min(544px, calc(100vh - 118px));
  max-height: min(544px, calc(100svh - 118px));
  overflow-y: auto;
  padding: 18px;
  overscroll-behavior: contain;
  scrollbar-color: #b5c6dd transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.trip-chain-modal-body::-webkit-scrollbar {
  width: 8px;
}

.trip-chain-modal-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b5c6dd;
  background-clip: content-box;
}

.trip-note-modal-body {
  display: grid;
  padding: 18px;
}

.app-confirm-modal-body {
  display: grid;
  padding: 18px 18px 8px;
}

.app-confirm-modal-body p {
  margin: 0;
  color: #415673;
  font-size: 0.96rem;
  line-height: 1.5;
}

.app-confirm-modal-actions {
  display: flex;
  min-width: 0;
  padding: 10px 18px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.app-confirm-action {
  display: inline-flex;
  min-height: 38px;
  min-width: 122px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(110deg, #087dff, #0754f0);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 94, 235, 0.2);
}

.app-confirm-action:hover,
.app-confirm-action:focus-visible {
  outline: 0;
  filter: brightness(1.04);
}

.app-confirm-action.is-danger {
  background: linear-gradient(110deg, #d83d4c, #a52121);
  box-shadow: 0 8px 18px rgba(165, 33, 33, 0.22);
}

.trip-note-modal-body p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #172747;
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.trip-chain-detail-list {
  display: grid;
}

.trip-chain-append-form {
  display: grid;
  min-width: 0;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2eaf5;
  gap: 14px;
}

.trip-chain-append-form[hidden] {
  display: none;
}

.trip-chain-append-heading h3 {
  margin: 0;
  color: #061d49;
  font-size: 0.98rem;
  line-height: 1.25;
}

.trip-chain-detail-row {
  display: grid;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #e2eaf5;
  gap: 14px;
}

.trip-chain-detail-row:first-child {
  padding-top: 0;
}

.trip-chain-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.trip-chain-detail-main {
  min-width: 0;
}

.trip-chain-detail-eyebrow {
  display: flex;
  min-width: 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trip-chain-detail-eyebrow > span:first-child {
  color: #0c4db5;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trip-chain-detail-main h3 {
  margin: 0;
  color: #061d49;
  font-size: 1rem;
  line-height: 1.25;
}

.trip-chain-detail-meta {
  display: flex;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #71829d;
  font-size: 0.84rem;
  font-weight: 700;
}

.trip-chain-detail-main p {
  margin: 9px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #566b88;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.trip-chain-detail-metrics > div {
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid #dfe7f2;
}

.trip-chain-detail-metrics span {
  display: block;
  margin-bottom: 5px;
  color: #6980a3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trip-chain-detail-metrics strong {
  display: block;
  color: #102956;
  font-size: 0.92rem;
  line-height: 1.2;
}

.trip-chain-detail-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.trip-modal-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.trip-modal-actions .trip-submit {
  width: auto;
  min-width: 148px;
  padding: 0 18px;
}

.trip-map-field {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.trip-map-toolbar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trip-map-toolbar > span {
  margin: 0;
}

.trip-map-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trip-location-button {
  display: inline-flex;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0c4db5;
  background: #f7faff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.trip-location-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
}

.trip-location-button:hover,
.trip-location-button:focus-visible {
  color: #086eff;
  border-color: #8dbdff;
  outline: 0;
}

.trip-location-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.trip-location-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #dbe5ef;
}

.trip-location-output {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f9fbff;
}

.trip-location-output span {
  margin-bottom: 4px;
}

.trip-location-output strong {
  display: block;
  overflow-wrap: anywhere;
  color: #102956;
  font-size: 0.9rem;
  line-height: 1.25;
}

.trip-history-date-field input,
.trip-field input,
.trip-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  color: #172747;
  background: #fff;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.4;
  outline: 0;
  overflow-wrap: anywhere;
}

.trip-field textarea {
  min-height: 96px;
  max-height: min(240px, 45vh);
  overflow: auto;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}

.trip-history-date-field input:focus,
.trip-field input:focus,
.trip-field textarea:focus {
  border-color: #3682eb;
  box-shadow: 0 0 0 3px rgba(9, 88, 214, 0.1);
}

.trip-field-error {
  display: block;
  margin-top: 6px;
  color: #a52121;
  font-size: 0.78rem;
  line-height: 1.35;
}

.trip-field-error:empty {
  display: none;
}

.trip-validation.validation-summary-errors {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.trip-validation.validation-summary-errors {
  border: 1px solid #f4b6b6;
  color: #a52121;
  background: #fff2f2;
}

.trip-validation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-submit {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(110deg, #087dff, #0754f0);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 94, 235, 0.2);
}

.trip-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.current-trips-list {
  display: grid;
  margin-top: 4px;
}

.current-trips-list-header,
.trip-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dfe7f2;
  gap: 8px;
  color: #6980a3;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.current-trip-sort {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0c4db5;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.trip-sort-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  opacity: 0.42;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.trip-sort-icon.is-ascending,
.trip-sort-icon.is-descending {
  opacity: 1;
}

.trip-sort-icon.is-descending {
  transform: rotate(180deg);
}

.current-trip-sort:hover,
.current-trip-sort:focus-visible,
.current-trip-sort.is-active {
  color: #086eff;
  border-color: #8dbdff;
  outline: 0;
  background: #f7faff;
}

.current-trip-row,
.trip-list-row {
  display: grid;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #e2eaf5;
  border-radius: 0;
  gap: 16px;
  background: transparent;
}

.current-trip-row.is-chain-summary {
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(237, 245, 255, 0.62) 18px,
    rgba(237, 245, 255, 0.42) 46%,
    transparent 78%
  );
}

.current-trip-row.is-deleting-trip,
.trip-chain-detail-row.is-deleting-trip {
  pointer-events: none;
  transform-origin: calc(100% - 28px) 50%;
  will-change: transform, opacity;
  animation: trip-delete-bin 260ms cubic-bezier(0.46, 0, 0.24, 1) forwards;
}

.trip-delete-form.is-catching-trip .trip-action-button.is-danger {
  animation: trip-bin-catch 260ms cubic-bezier(0.46, 0, 0.24, 1);
}

@keyframes trip-delete-bin {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  42% {
    opacity: 0.92;
    transform: translate3d(10px, -8px, 0) rotate(-2deg) scale(0.94);
  }

  100% {
    opacity: 0;
    transform: translate3d(48px, 32px, 0) rotate(8deg) scale(0.18);
  }
}

@keyframes trip-bin-catch {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, 1px, 0) scale(1.12);
  }
}

.current-trip-main,
.trip-list-main {
  min-width: 0;
}

.current-trip-chain-trigger {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.current-trip-chain-trigger:hover h3,
.current-trip-chain-trigger:focus-visible h3 {
  color: #086eff;
}

.current-trip-chain-trigger:focus-visible {
  outline: 2px solid #8dbdff;
  outline-offset: 4px;
}



.current-trip-actions {
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.trip-history-actions {
  flex-direction: column;
  gap: 4px;
}

.trip-action-button,
.trip-action-submit {
  display: inline-flex;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #c7d8ee;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #0c4db5;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.trip-action-button:hover,
.trip-action-button:focus-visible,
.trip-action-submit:hover,
.trip-action-submit:focus-visible {
  color: #086eff;
  border-color: #8dbdff;
  outline: 0;
}

.trip-icon-action,
.trip-location-action {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.trip-icon-action svg,
.trip-location-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-action-button.is-danger {
  color: #a52121;
  border-color: #f0bbbb;
  background: #fff7f7;
}

.trip-action-button.is-danger:hover,
.trip-action-button.is-danger:focus-visible {
  color: #8f1717;
  border-color: #e08a8a;
}

.trip-note-preview {
  display: flex;
  width: var(--trip-note-preview-width, 100%);
  max-width: 100%;
  min-width: 0;
  margin-top: 9px;
  align-items: center;
  gap: 8px;
}

.trip-note-snippet {
  min-width: 0;
  overflow: hidden;
  color: #566b88;
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-note-view {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: #0c4db5;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.trip-note-view[hidden] {
  display: none;
}

.trip-note-view:hover,
.trip-note-view:focus-visible {
  color: #086eff;
  outline: 0;
}

.trip-edit-form {
  display: grid;
  width: 100%;
  gap: 15px;
}

.trip-action-submit {
  color: #fff;
  border-color: #086eff;
  background: #086eff;
}

.trip-delete-form {
  margin: 0;
}

.current-trip-title-line,
.trip-list-title-line {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.current-trip-title-line h3,
.trip-list-title-line h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #061d49;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-status-pill {
  display: inline-flex;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  align-items: center;
  color: #996500;
  background: #fff0c7;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.trip-status-pill.is-active {
  color: #0bae63;
  background: #dff8e7;
}

.trip-status-pill.is-completed {
  color: #0bae63;
  background: #dff8e7;
}

.trip-status-pill.is-canceled {
  color: #a52121;
  background: #ffe8e8;
}

.trip-chain-pill {
  display: inline-flex;
  min-height: 22px;
  padding: 4px 9px;
  border: 1px solid #c6d8f0;
  border-radius: 999px;
  align-items: center;
  color: #0c4db5;
  background: #edf5ff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.current-trip-meta,
.trip-list-meta {
  display: flex;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #71829d;
  font-size: 0.86rem;
  font-weight: 700;
}

.current-trip-main p,
.trip-list-main p {
  margin: 9px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #566b88;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.current-trip-created {
  min-width: 0;
}

.current-trip-created strong,
.trip-history-actions strong {
  display: block;
  color: #102956;
  font-size: 0.92rem;
  line-height: 1.25;
}

.current-trip-stats,
.trip-list-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.current-trip-metric,
.trip-list-metric {
  min-width: 0;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 2px solid #dfe7f2;
  border-radius: 0;
  background: transparent;
}

.current-trip-stats strong,
.trip-list-metrics strong {
  display: block;
  color: #102956;
  font-size: 0.95rem;
  line-height: 1.2;
}

.trips-empty {
  margin-top: 18px;
  padding: 18px 0;
  border: 1px dashed #cdd9e8;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  color: #60718c;
  background: transparent;
}

.agents-map-body {
  min-height: 100vh;
  min-height: 100svh;
  color: #eef5ff;
  background: #08172b;
}

.agents-map-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto minmax(420px, 1fr);
}

.agents-map-header {
  display: grid;
  padding:
    max(18px, env(safe-area-inset-top))
    clamp(16px, 4vw, 30px)
    16px;
  gap: 16px;
  background: #08172b;
}

.agents-map-title span {
  color: #9fb2d0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agents-map-title span {
  display: block;
  margin-bottom: 5px;
}

.agents-map-title h1 {
  margin: 0;
  color: #f3f7ff;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.08;
}

.agents-map-full {
  min-height: 420px;
}

.agents-map-error {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 6vw, 44px);
  place-content: center;
  text-align: center;
}

.agents-map-error h1 {
  margin: 0;
  color: #f3f7ff;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.agents-map-error p {
  max-width: 520px;
  margin: 12px auto 0;
  color: #b7c6dd;
  line-height: 1.5;
}

.driver-route-body {
  min-height: 100vh;
  min-height: 100svh;
  color: #eef5ff;
  background: #08172b;
}

.driver-route-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto auto minmax(420px, 1fr);
}

.driver-route-page.is-route-status-hidden {
  grid-template-rows: auto minmax(420px, 1fr);
}

.driver-route-header {
  display: grid;
  padding:
    max(18px, env(safe-area-inset-top))
    clamp(16px, 4vw, 30px)
    16px;
  gap: 16px;
  background: #08172b;
}

.driver-route-title span,
.driver-route-metric span {
  color: #9fb2d0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.driver-route-title span {
  display: block;
  margin-bottom: 5px;
}

.driver-route-metric span {
  flex: 0 0 auto;
}

.driver-route-title h1 {
  margin: 0;
  color: #f3f7ff;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.08;
}

.driver-route-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
  gap: 10px;
}

.driver-route-metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #243754;
  border-radius: 8px;
  background: #101f36;
}

.driver-route-metric[hidden] {
  display: none;
}

.driver-route-metric strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-route-status {
  padding: 10px clamp(16px, 4vw, 30px);
  color: #c7d6ed;
  background: #0d2039;
  font-size: 0.88rem;
  font-weight: 700;
}

.driver-route-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 420px;
  background: #dbe5ef;
}

.driver-route-popup {
  min-width: 150px;
  color: #14213d;
}

.driver-route-popup strong,
.driver-route-popup p {
  display: block;
}

.driver-route-popup strong {
  color: #14213d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.driver-route-popup p {
  margin-top: 3px;
  color: #4d5e73;
  font-size: 0.82rem;
  font-weight: 700;
}

.driver-route-popup p span {
  color: #26364a;
  font-weight: 800;
}

.driver-route-page.is-route-status-hidden .driver-route-map {
  grid-row: 2;
}

.driver-route-error {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 6vw, 44px);
  place-content: center;
  text-align: center;
}

.driver-route-error h1 {
  margin: 0;
  color: #f3f7ff;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.driver-route-error p {
  max-width: 520px;
  margin: 12px auto 0;
  color: #b7c6dd;
  line-height: 1.5;
}

.driver-route-error small {
  display: block;
  margin-top: 12px;
  color: #7f93b1;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (min-width: 560px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 768px) {
  .agents-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .agents-heading-actions {
    justify-content: flex-end;
  }

  .trips-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .trips-heading-actions {
    justify-content: flex-end;
  }

  .operator-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .agent-card-actions {
    grid-template-columns: minmax(136px, 180px);
    justify-content: end;
  }

  .agents-directory-column .agent-card-actions {
    grid-template-columns: 36px;
  }

  .agent-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-edit-field-wide {
    grid-column: 1 / -1;
  }

  .trip-chain-grid,
  .trip-chain-append-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-chain-map-field {
    grid-column: 1 / -1;
  }

  .trip-chain-notes {
    grid-column: 1 / -1;
  }

  .current-trips-list-header {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 170px) minmax(110px, 140px) minmax(120px, 150px) minmax(150px, 220px);
    align-items: center;
  }

  .current-trip-row,
  .trip-list-row {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 170px) minmax(110px, 140px) minmax(120px, 150px) minmax(150px, 220px);
    align-items: center;
  }

  .trip-history-header,
  .trip-history-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) minmax(150px, 210px);
    align-items: start;
    column-gap: 16px;
  }

  .current-trip-stats,
  .trip-list-metrics {
    display: contents;
    padding-top: 2px;
  }

  .current-trip-metric,
  .trip-list-metric {
    padding-left: 0;
    border-left: 0;
  }

  .current-trip-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .trip-chain-detail-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px) minmax(120px, 170px);
    align-items: center;
  }

  .trip-chain-detail-actions {
    justify-content: flex-end;
  }

  .trip-history-actions {
    align-items: flex-end;
    text-align: right;
  }

  .driver-route-header {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 52vw);
    align-items: end;
  }

  .main-header-inner {
    min-height: 82px;
    padding-right: clamp(14px, 2vw, 28px);
    padding-left: clamp(14px, 2vw, 28px);
  }

  .main-brand-mark {
    width: 54px;
    height: 54px;
  }

  .main-brand-mark img {
    top: -21px;
    left: -22px;
    width: 98px;
  }

  .main-brand-name {
    font-size: 1.8rem;
  }

  .menu-toggle {
    display: none;
  }

  .header-notification {
    display: grid;
  }

  .notification-menu {
    display: block;
  }

  .header-user-name {
    display: block;
  }

  .navigation-backdrop {
    display: none;
  }

  .main-navigation {
    position: fixed;
    z-index: 1100;
    top: 83px;
    right: auto;
    bottom: 0;
    left: 0;
    display: block;
    width: 78px;
    padding: 16px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid #e2e9f4;
    border-radius: 0;
    visibility: visible;
    background: #fff;
    box-shadow: 4px 0 18px rgba(28, 61, 112, 0.05);
    transform: none;
    transition: width 200ms ease;
  }

  .main-navigation.is-expanded {
    width: 238px;
  }

  .sidebar-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    padding: 10px;
    border: 1px solid #dce6f3;
    border-radius: 12px;
    place-content: center;
    color: #29528e;
    background: #f8fbff;
    cursor: pointer;
    transition:
      margin 200ms ease,
      color 160ms ease,
      background-color 160ms ease;
  }

  .main-navigation.is-expanded .sidebar-toggle {
    margin-right: 2px;
  }

  .sidebar-toggle:hover {
    color: #073a9d;
    background: #edf5ff;
  }

  .sidebar-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 200ms ease;
  }

  .main-navigation.is-expanded .sidebar-toggle svg {
    transform: rotate(180deg);
  }

  .main-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .main-tab {
    width: 100%;
    min-height: 52px;
    padding: 12px 17px;
    overflow: hidden;
    border-radius: 12px;
    text-align: left;
    background: transparent;
    font-size: 1rem;
  }

  .main-tab::after {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #087eea;
    content: "";
    opacity: 0;
    transform: scaleY(0.4);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .main-tab:hover {
    color: #073a9d;
    background: #f4f8ff;
  }

  .main-tab.is-active {
    color: #073a9d;
    background: #edf5ff;
  }

  .main-tab.is-active::after {
    opacity: 1;
    transform: scaleY(1);
  }

  .tab-label {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      width 200ms ease,
      opacity 140ms ease;
  }

  .main-navigation.is-expanded .tab-label {
    width: 130px;
    opacity: 1;
  }

  .main-page {
    width: auto;
    min-height: calc(100vh - 83px);
    min-height: calc(100svh - 83px);
    margin-left: 78px;
    transition: margin-left 200ms ease;
  }

  .main-body.sidebar-expanded .main-page {
    margin-left: 238px;
  }
}

@media (min-width: 1280px) {
  .dashboard-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trips-layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(36px, 5vw, 64px);
  }

  .trip-create-panel {
    padding-right: clamp(24px, 3vw, 42px);
    padding-bottom: 0;
    border-right: 1px solid #dfe7f2;
    border-bottom: 0;
  }

  .dashboard-card {
    min-height: 166px;
    align-items: flex-start;
  }

  .dashboard-card-copy strong {
    margin-top: 12px;
  }
}

@media (min-width: 1100px) {
  .agents-workspace {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  }

  .agents-map-panel {
    position: sticky;
    top: 96px;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --app-page-bg: #07111f;
  --app-scrollbar-track: #07111f;
  --app-scrollbar-thumb: #314563;
  --app-scrollbar-thumb-hover: #45617f;
}

:root[data-theme="dark"] body {
  color: #e8eefc;
  background: #07111f;
}

:root[data-theme="dark"] .main-body {
  color: #e8eefc;
  background:
    radial-gradient(circle at 20% 10%, rgba(8, 126, 234, 0.16), transparent 30%),
    radial-gradient(circle at 92% 28%, rgba(13, 157, 104, 0.12), transparent 34%),
    #07111f;
}

:root[data-theme="dark"] .main-header {
  border-color: #1c2c46;
  background: rgba(9, 18, 33, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .main-brand,
:root[data-theme="dark"] .dashboard-heading h1,
:root[data-theme="dark"] .profile-heading h1,
:root[data-theme="dark"] .operator-profile-copy h2,
:root[data-theme="dark"] .operator-profile-field strong,
:root[data-theme="dark"] .agents-heading h1,
:root[data-theme="dark"] .agent-profile-heading h2,
:root[data-theme="dark"] .agent-profile-details dd,
:root[data-theme="dark"] .trips-heading h1,
:root[data-theme="dark"] .trip-create-modal-header h2,
:root[data-theme="dark"] .trip-edit-modal-header h2,
:root[data-theme="dark"] .trip-chain-modal-header h2,
:root[data-theme="dark"] .trip-section-heading h2,
:root[data-theme="dark"] .current-trip-title-line h3,
:root[data-theme="dark"] .trip-list-title-line h3,
:root[data-theme="dark"] .trip-chain-detail-main h3,
:root[data-theme="dark"] .current-trip-created strong,
:root[data-theme="dark"] .current-trip-stats strong,
:root[data-theme="dark"] .trip-list-metrics strong,
:root[data-theme="dark"] .trip-chain-detail-metrics strong,
:root[data-theme="dark"] .trip-history-actions strong,
:root[data-theme="dark"] .dashboard-card-copy strong,
:root[data-theme="dark"] .agent-card-copy h2 {
  color: #f4f7ff;
}

:root[data-theme="dark"] .header-user-name,
:root[data-theme="dark"] .dashboard-card-copy p,
:root[data-theme="dark"] .profile-heading p,
:root[data-theme="dark"] .operator-profile-copy p,
:root[data-theme="dark"] .operator-profile-meta,
:root[data-theme="dark"] .operator-profile-field span,
  :root[data-theme="dark"] .agents-heading p,
  :root[data-theme="dark"] .agents-ratio span,
  :root[data-theme="dark"] .agent-search-field span,
  :root[data-theme="dark"] .agent-profile-details dt,
  :root[data-theme="dark"] .agent-edit-field > span:first-child,
  :root[data-theme="dark"] .trips-count span,
:root[data-theme="dark"] .trip-history-date-field span,
:root[data-theme="dark"] .trip-field > span:first-child,
:root[data-theme="dark"] .trip-map-toolbar > span,
:root[data-theme="dark"] .trip-location-output span,
:root[data-theme="dark"] .current-trip-stats span,
:root[data-theme="dark"] .trip-list-metrics span,
:root[data-theme="dark"] .agent-card-username {
  color: #a9b7d0;
}

:root[data-theme="dark"] .header-notification,
:root[data-theme="dark"] .profile-menu-toggle,
:root[data-theme="dark"] .menu-toggle,
:root[data-theme="dark"] .sidebar-toggle,
:root[data-theme="dark"] .main-tab {
  color: #c6d6f2;
  background: #101b2d;
  border-color: #263852;
}

:root[data-theme="dark"] .header-notification:hover,
:root[data-theme="dark"] .profile-menu-toggle:hover,
:root[data-theme="dark"] .profile-menu-toggle[aria-expanded="true"],
:root[data-theme="dark"] .sidebar-toggle:hover,
:root[data-theme="dark"] .main-tab:hover,
:root[data-theme="dark"] .main-tab.is-active {
  color: #8bc4ff;
  background: #132d4c;
}

:root[data-theme="dark"] .profile-avatar {
  background: linear-gradient(145deg, #17365a, #0f243d);
}

:root[data-theme="dark"] .profile-dropdown {
  border-color: #263852;
  background: #0d1728;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .notification-dropdown {
  border-color: rgba(137, 174, 232, 0.62);
  background:
    linear-gradient(180deg, rgba(13, 30, 56, 0.98), rgba(7, 17, 33, 0.99));
  box-shadow:
    0 18px 42px rgba(2, 10, 25, 0.48),
    inset 0 0 0 1px rgba(91, 154, 255, 0.16);
}

:root[data-theme="dark"] .notification-dropdown-header {
  border-color: rgba(137, 174, 232, 0.24);
}

:root[data-theme="dark"] .notification-item {
  border-color: rgba(82, 126, 196, 0.28);
  background: rgba(17, 37, 69, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(91, 154, 255, 0.06),
    0 8px 18px rgba(2, 10, 25, 0.18);
}

:root[data-theme="dark"] .notification-list {
  scrollbar-color: #5f83ba transparent;
}

:root[data-theme="dark"] .notification-list::-webkit-scrollbar-thumb {
  background: #5f83ba;
  background-clip: content-box;
}

:root[data-theme="dark"] .notification-item-dot {
  background: #5b9dff;
  box-shadow: 0 0 9px rgba(91, 157, 255, 0.58);
}

:root[data-theme="dark"] .notification-item.is-completed .notification-item-dot {
  background: #35c695;
  box-shadow: 0 0 9px rgba(53, 198, 149, 0.42);
}

:root[data-theme="dark"] .notification-item.is-canceled .notification-item-dot {
  background: #ff6372;
  box-shadow: 0 0 9px rgba(255, 99, 114, 0.4);
}

:root[data-theme="dark"] .notification-dropdown-header h2,
:root[data-theme="dark"] .notification-item-copy strong {
  color: #f3f7ff;
}

:root[data-theme="dark"] .notification-item-copy > span:first-child {
  color: #67a7ff;
}

:root[data-theme="dark"] .notification-item.is-completed .notification-item-copy > span:first-child {
  color: #35c695;
}

:root[data-theme="dark"] .notification-item.is-canceled .notification-item-copy > span:first-child {
  color: #ff7b88;
}

:root[data-theme="dark"] .notification-dropdown-header p,
:root[data-theme="dark"] .notification-message,
:root[data-theme="dark"] .notification-item-copy p,
:root[data-theme="dark"] .notification-time-row {
  color: #8fa6cc;
}

:root[data-theme="dark"] .notification-clear {
  border-color: rgba(121, 164, 236, 0.76);
  color: #67a7ff;
  background: rgba(58, 103, 185, 0.2);
}

:root[data-theme="dark"] .notification-clear:hover {
  color: #8fc0ff;
  border-color: rgba(143, 192, 255, 0.9);
  background: rgba(72, 122, 210, 0.28);
}

:root[data-theme="dark"] .notification-message.is-error {
  color: #ffb3ba;
  background: rgba(80, 25, 38, 0.35);
}

:root[data-theme="dark"] .notification-dismiss {
  color: #91a8cc;
}

:root[data-theme="dark"] .notification-dismiss:hover {
  color: #dceaff;
  background: rgba(99, 146, 218, 0.16);
}

:root[data-theme="dark"] .profile-action {
  color: #d5def0;
}

:root[data-theme="dark"] .profile-action:hover,
:root[data-theme="dark"] .profile-theme-toggle[aria-pressed="true"] {
  color: #8bc4ff;
  background: #132d4c;
}

:root[data-theme="dark"] .main-navigation {
  border-color: #1c2c46;
  background: #091221;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .navigation-backdrop {
  background: rgba(0, 0, 0, 0.54);
}

:root[data-theme="dark"] .app-toast {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .app-toast.is-success {
  color: #75f2ad;
  border-color: rgba(36, 223, 136, 0.45);
  background: #10251b;
}

:root[data-theme="dark"] .app-toast.is-error {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
  background: #2a1419;
}

:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .profile-empty,
:root[data-theme="dark"] .operator-profile-card,
:root[data-theme="dark"] .agents-ratio,
:root[data-theme="dark"] .agent-row,
:root[data-theme="dark"] .agents-empty,
:root[data-theme="dark"] .agents-map-link {
  border-color: #22344f;
  background: rgba(13, 25, 43, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .agents-map-link:hover,
:root[data-theme="dark"] .agents-map-link:focus-visible {
  border-color: #2d8dff;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(45, 141, 255, 0.18);
}

:root[data-theme="dark"] .agents-map-status {
  color: #c6d6f2;
  border-color: #263852;
  background: rgba(13, 25, 43, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .operator-profile-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(8, 126, 234, 0.22), transparent 35%),
    linear-gradient(135deg, #101b2d, #0d243f);
}

:root[data-theme="dark"] .operator-profile-avatar {
  border-color: #284061;
  color: #8bc4ff;
  background: linear-gradient(145deg, #17365a, #0f243d);
  box-shadow: inset 0 0 0 5px rgba(7, 17, 31, 0.58);
}

:root[data-theme="dark"] .operator-profile-field {
  border-color: #22344f;
  background: #101b2d;
}

:root[data-theme="dark"] .operator-profile-field input {
  color: #f4f7ff;
}

:root[data-theme="dark"] .operator-profile-field input:not(:disabled) {
  border-color: #263852;
  background: #0d1728;
}

:root[data-theme="dark"] .operator-profile-form .operator-profile-field > span:first-child {
  color: #a9b7d0;
}

:root[data-theme="dark"] .operator-profile-field input:focus {
  border-color: #2d8dff;
  box-shadow: 0 0 0 3px rgba(45, 141, 255, 0.18);
}

:root[data-theme="dark"] .operator-profile-action {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .operator-profile-action:hover,
:root[data-theme="dark"] .operator-profile-action:focus-visible {
  color: #8bc4ff;
  border-color: #2d8dff;
  background: #132d4c;
}

:root[data-theme="dark"] .operator-profile-action.is-primary {
  color: #07111f;
  border-color: #8bc4ff;
  background: #8bc4ff;
}

:root[data-theme="dark"] .operator-profile-action.is-primary:hover,
:root[data-theme="dark"] .operator-profile-action.is-primary:focus-visible {
  color: #07111f;
  border-color: #b7dcff;
  background: #b7dcff;
}

:root[data-theme="dark"] .profile-notice {
  color: #75f2ad;
  border-color: rgba(36, 223, 136, 0.45);
  background: rgba(18, 112, 68, 0.24);
}

:root[data-theme="dark"] .profile-validation.validation-summary-errors {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
  background: rgba(150, 42, 55, 0.22);
}

:root[data-theme="dark"] .profile-field-error {
  color: #ffb3ba;
}

:root[data-theme="dark"] .profile-empty {
  color: #b7c4d9;
}

:root[data-theme="dark"] .operator-status-pill {
  color: #b8c4d7;
  background: #1b2739;
}

:root[data-theme="dark"] .operator-status-pill.is-active {
  color: #24df88;
  background: rgba(18, 112, 68, 0.36);
}

:root[data-theme="dark"] .operator-status-pill.is-inactive {
  color: #ff8d9a;
  background: rgba(150, 42, 55, 0.34);
}

:root[data-theme="dark"] .dashboard-card::after {
  opacity: 0.22;
}

:root[data-theme="dark"] .dashboard-card-online {
  --card-soft-color: rgba(13, 157, 104, 0.2);
}

:root[data-theme="dark"] .dashboard-card-active {
  --card-soft-color: rgba(8, 126, 234, 0.22);
}

:root[data-theme="dark"] .dashboard-card-completed {
  --card-soft-color: rgba(102, 88, 211, 0.22);
}

:root[data-theme="dark"] .dashboard-card-canceled {
  --card-soft-color: rgba(214, 77, 87, 0.2);
}

:root[data-theme="dark"] .agents-ratio strong {
  color: #2be08e;
}

:root[data-theme="dark"] .trips-count strong {
  color: #8bc4ff;
}

:root[data-theme="dark"] .trips-heading,
:root[data-theme="dark"] .trips-count,
:root[data-theme="dark"] .trip-create-panel,
:root[data-theme="dark"] .trip-section-heading,
:root[data-theme="dark"] .trip-status-tabs,
:root[data-theme="dark"] .current-trips-list-header,
:root[data-theme="dark"] .current-trips-list,
:root[data-theme="dark"] .current-trip-row {
  border-color: #22344f;
}

:root[data-theme="dark"] .current-trip-row.is-chain-summary {
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(19, 45, 76, 0.48) 18px,
    rgba(19, 45, 76, 0.34) 46%,
    transparent 78%
  );
}



:root[data-theme="dark"] .trip-status-tabs {
  background: #101b2d;
}

:root[data-theme="dark"] .trip-create-mode {
  border-color: #22344f;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-create-mode label {
  color: #a9b7d0;
}

:root[data-theme="dark"] .trip-create-mode label:has(input:checked) {
  color: #8bc4ff;
  border-color: #27476d;
  background: #132d4c;
}

:root[data-theme="dark"] .trip-chain-row {
  border-color: #22344f;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-chain-row-header strong,
:root[data-theme="dark"] .trip-chain-append-heading h3 {
  color: #e8eefc;
}

:root[data-theme="dark"] .trip-status-tab {
  color: #a9b7d0;
}

:root[data-theme="dark"] .trip-status-tab:hover,
:root[data-theme="dark"] .trip-status-tab:focus-visible,
:root[data-theme="dark"] .trip-status-tab.is-active {
  color: #8bc4ff;
  border-color: #27476d;
  background: #132d4c;
}

:root[data-theme="dark"] .trips-refresh {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trips-refresh:hover,
:root[data-theme="dark"] .trips-refresh:focus-visible {
  color: #8bc4ff;
  border-color: #2d8dff;
}

:root[data-theme="dark"] .trip-create-link {
  color: #07111f;
  border-color: #8bc4ff;
  background: #8bc4ff;
}

:root[data-theme="dark"] .trip-create-link:hover,
:root[data-theme="dark"] .trip-create-link:focus-visible {
  color: #07111f;
  border-color: #b7dcff;
  background: #b7dcff;
}

:root[data-theme="dark"] .trip-create-modal,
:root[data-theme="dark"] .trip-edit-modal,
:root[data-theme="dark"] .trip-chain-modal,
:root[data-theme="dark"] .trip-note-modal,
:root[data-theme="dark"] .app-confirm-modal {
  color: #e8eefc;
  border-color: #263852;
  background: #0d1728;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .trip-create-modal-header,
:root[data-theme="dark"] .trip-edit-modal-header,
:root[data-theme="dark"] .trip-chain-modal-header,
:root[data-theme="dark"] .trip-note-modal-header,
:root[data-theme="dark"] .app-confirm-modal-header {
  border-color: #22344f;
  background: #0d1728;
}

:root[data-theme="dark"] .trip-create-modal-header h2,
:root[data-theme="dark"] .trip-edit-modal-header h2,
:root[data-theme="dark"] .trip-chain-modal-header h2,
:root[data-theme="dark"] .trip-note-modal-header h2,
:root[data-theme="dark"] .app-confirm-modal-header h2 {
  color: #f4f7ff;
}

:root[data-theme="dark"] .app-confirm-heading > div > span {
  color: #8fa4c4;
}

:root[data-theme="dark"] .app-confirm-icon {
  color: #8bc4ff;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .app-confirm-modal-body p {
  color: #a9b7d0;
}

:root[data-theme="dark"] .trip-modal-close {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-modal-close:hover,
:root[data-theme="dark"] .trip-modal-close:focus-visible {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
}

:root[data-theme="dark"] .current-trip-sort,
:root[data-theme="dark"] .trip-action-button {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .current-trip-sort:hover,
:root[data-theme="dark"] .current-trip-sort:focus-visible,
:root[data-theme="dark"] .current-trip-sort.is-active,
:root[data-theme="dark"] .trip-action-button:hover,
:root[data-theme="dark"] .trip-action-button:focus-visible {
  color: #8bc4ff;
  border-color: #2d8dff;
  background: #132d4c;
}

:root[data-theme="dark"] .trip-sort-icon {
  color: #8bc4ff;
}

:root[data-theme="dark"] .trip-action-button.is-danger {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
  background: rgba(150, 42, 55, 0.22);
}

:root[data-theme="dark"] .trip-note-snippet,
:root[data-theme="dark"] .trip-note-modal-body p {
  color: #a9b7d0;
}

:root[data-theme="dark"] .trip-note-view {
  color: #8bc4ff;
}

:root[data-theme="dark"] .trip-note-view:hover,
:root[data-theme="dark"] .trip-note-view:focus-visible {
  color: #b7dcff;
}

:root[data-theme="dark"] .trip-chain-add {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-predecessor-field > span:first-child {
  color: #a9b7d0;
}

:root[data-theme="dark"] .trip-predecessor-field select {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-predecessor-field select:focus-visible {
  color: #8bc4ff;
  border-color: #2d8dff;
  background: #132d4c;
}

:root[data-theme="dark"] .trip-chain-remove {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
  background: rgba(150, 42, 55, 0.22);
}

:root[data-theme="dark"] .trip-chain-pill {
  color: #8bc4ff;
  border-color: #27476d;
  background: #132d4c;
}

:root[data-theme="dark"] .trip-chain-modal-header p,
:root[data-theme="dark"] .trip-chain-detail-meta,
:root[data-theme="dark"] .trip-chain-detail-main p,
:root[data-theme="dark"] .trip-chain-detail-metrics span {
  color: #a9b7d0;
}

:root[data-theme="dark"] .trip-chain-detail-list,
:root[data-theme="dark"] .trip-chain-append-form,
:root[data-theme="dark"] .trip-chain-detail-row {
  border-color: #22344f;
}

:root[data-theme="dark"] .trip-chain-detail-metrics > div {
  border-color: #263852;
}

:root[data-theme="dark"] .trip-chain-detail-eyebrow > span:first-child {
  color: #8bc4ff;
}

:root[data-theme="dark"] .agents-empty {
  color: #b7c4d9;
}

:root[data-theme="dark"] .agent-search-field input,
:root[data-theme="dark"] .trip-history-date-field input,
:root[data-theme="dark"] .trip-field input,
:root[data-theme="dark"] .trip-field textarea {
  color: #e8eefc;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-location-button {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-location-button:hover,
:root[data-theme="dark"] .trip-location-button:focus-visible {
  color: #8bc4ff;
  border-color: #2d8dff;
}

:root[data-theme="dark"] .trip-location-map,
:root[data-theme="dark"] .trip-location-output {
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .trip-location-output strong {
  color: #e8eefc;
}

:root[data-theme="dark"] .agent-search-field input:focus,
:root[data-theme="dark"] .trip-history-date-field input:focus,
:root[data-theme="dark"] .trip-field input:focus,
:root[data-theme="dark"] .trip-field textarea:focus {
  border-color: #2d8dff;
  box-shadow: 0 0 0 3px rgba(45, 141, 255, 0.18);
}

:root[data-theme="dark"] .trip-validation.validation-summary-errors {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
  background: rgba(150, 42, 55, 0.22);
}

:root[data-theme="dark"] .current-trip-row,
:root[data-theme="dark"] .trip-list-row,
:root[data-theme="dark"] .trips-empty {
  color: #b7c4d9;
  border-color: #22344f;
  background: transparent;
}

:root[data-theme="dark"] .current-trip-main p,
:root[data-theme="dark"] .current-trip-meta,
:root[data-theme="dark"] .trip-list-main p,
:root[data-theme="dark"] .trip-list-meta {
  color: #a9b7d0;
}

:root[data-theme="dark"] .current-trip-metric,
:root[data-theme="dark"] .trip-list-metric {
  border-color: #263852;
  background: transparent;
}

:root[data-theme="dark"] .trip-status-pill {
  color: #ffd36d;
  background: rgba(153, 101, 0, 0.3);
}

:root[data-theme="dark"] .trip-status-pill.is-active {
  color: #24df88;
  background: rgba(18, 112, 68, 0.36);
}

:root[data-theme="dark"] .trip-status-pill.is-completed {
  color: #75f2ad;
  background: rgba(18, 112, 68, 0.36);
}

:root[data-theme="dark"] .trip-status-pill.is-canceled {
  color: #ffb3ba;
  background: rgba(150, 42, 55, 0.34);
}

:root[data-theme="dark"] .agent-avatar {
  border-color: #284061;
  color: #20d884;
  background: radial-gradient(circle at 50% 42%, #123c2d 0 52%, #0e192a 53% 100%);
  box-shadow: inset 0 0 0 4px #0c1626;
}

:root[data-theme="dark"] .agent-session-pill {
  color: #b8c4d7;
  background: #1b2739;
}

:root[data-theme="dark"] .agent-session-pill.is-online {
  color: #24df88;
  background: rgba(18, 112, 68, 0.36);
}

:root[data-theme="dark"] .agent-action-location {
  color: #8bc4ff;
  border-color: #2d8dff;
  background: #101b2d;
}

:root[data-theme="dark"] .agent-profile-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

:root[data-theme="dark"] .agent-profile-panel {
  border-color: #22344f;
  background: #0d192b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .agent-profile-header,
:root[data-theme="dark"] .agent-profile-details > div {
  border-color: #22344f;
}

:root[data-theme="dark"] .agent-profile-avatar {
  border-color: #284061;
  color: #20d884;
  background: radial-gradient(circle at 50% 42%, #123c2d 0 52%, #0e192a 53% 100%);
  box-shadow: inset 0 0 0 4px #0c1626;
}

:root[data-theme="dark"] .agent-profile-edit,
:root[data-theme="dark"] .agent-profile-close,
:root[data-theme="dark"] .agent-profile-cancel {
  color: #c6d6f2;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .agent-profile-edit:hover,
:root[data-theme="dark"] .agent-profile-edit:focus-visible,
:root[data-theme="dark"] .agent-profile-close:hover,
:root[data-theme="dark"] .agent-profile-close:focus-visible,
:root[data-theme="dark"] .agent-profile-cancel:hover,
:root[data-theme="dark"] .agent-profile-cancel:focus-visible {
  color: #8bc4ff;
  border-color: #2d8dff;
}

:root[data-theme="dark"] .agent-edit-field input,
:root[data-theme="dark"] .agent-edit-field select {
  color: #e8eefc;
  border-color: #263852;
  background: #101b2d;
}

:root[data-theme="dark"] .agent-edit-field input:focus,
:root[data-theme="dark"] .agent-edit-field select:focus {
  border-color: #2d8dff;
  box-shadow: 0 0 0 3px rgba(45, 141, 255, 0.18);
}

:root[data-theme="dark"] .agent-profile-validation.validation-summary-errors {
  color: #ffb3ba;
  border-color: rgba(255, 141, 154, 0.45);
  background: rgba(150, 42, 55, 0.22);
}

:root[data-theme="dark"] .operator-password-eye {
  color: #9fb2d1;
}

:root[data-theme="dark"] .operator-password-eye:hover,
:root[data-theme="dark"] .operator-password-eye:focus-visible,
:root[data-theme="dark"] .operator-password-eye[aria-pressed="true"] {
  color: #8bc4ff;
}

body :where(p, span, a, button, label, input, textarea, select, time, small, dd, dt, li, strong, b) {
  font-family: var(--app-font-family);
  font-style: normal;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body :where(p, span, a, button, label, input, textarea, select, time, small, dd, dt, li, strong, b, th, td, h3, h4, h5, h6) {
  font-size: var(--font-size-normal) !important;
}

body :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  h1 *,
  h2 *,
  h3 *,
  h4 *,
  h5 *,
  h6 *,
  .trip-list-header,
  .trip-list-header *,
  .current-trips-list-header,
  .current-trips-list-header *
) {
  font-family: var(--app-font-family);
  font-style: normal;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body :where(
  main > h1,
  .auth-signin-heading h2,
  .dashboard-heading h1,
  .profile-heading h1,
  .agents-heading h1,
  .trips-heading h1,
  .driver-route-title h1,
  .driver-route-error h1
) {
  font-size: var(--font-size-page-title) !important;
}

body :where(
  main > h2,
  .trip-section-heading h2,
  .trip-create-modal-header h2,
  .trip-edit-modal-header h2,
  .trip-chain-modal-header h2,
  .trip-note-modal-header h2,
  .agent-profile-heading h2,
  .notification-dropdown-header h2,
  .operator-profile-copy h2
) {
  font-size: var(--font-size-section-title) !important;
}

body :where(h1 *, h2 *, h3 *, h4 *, h5 *, h6 *) {
  font-size: inherit !important;
}

.dashboard-card-copy p,
.dashboard-card-copy strong,
.main-brand-name {
  font-size: var(--font-size-section-title) !important;
}

.main-brand-name *,
.auth-brand * {
  font-size: inherit !important;
}

.main-brand-name,
.main-brand-name *,
.auth-brand,
.auth-brand * {
  font-weight: 700 !important;
}

@media (prefers-reduced-motion: reduce) {
  .auth-input-wrap,
  .auth-submit,
  .auth-google,
  .menu-toggle span,
  .profile-menu-toggle,
  .sidebar-toggle,
  .sidebar-toggle svg,
  .main-tab,
  .main-tab::after,
  .tab-label,
  .main-navigation,
  .navigation-backdrop,
  .main-page,
  .app-toast.is-trip,
  .current-trip-row.is-deleting-trip,
  .trip-chain-detail-row.is-deleting-trip,
  .trip-delete-form.is-catching-trip .trip-action-button.is-danger {
    transition: none;
    animation: none;
  }
}


.client-trip-notifications-body {
  height: 100vh;
  height: 100svh;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  color: #102044;
  background: #f7f9fd;
}

.client-trip-notifications {
  --client-trip-panel-bg: transparent;
  --client-trip-panel-border: transparent;
  --client-trip-header-border: #dbe4f0;
  --client-trip-card-bg: #fbfdff;
  --client-trip-card-border: #cfe0f5;
  --client-trip-title-color: #0e2347;
  --client-trip-text-color: #102044;
  --client-trip-muted-color: #667893;
  --client-trip-button-bg: #ffffff;
  --client-trip-button-border: #c7d8ee;
  --client-trip-button-active-bg: #edf5ff;
  --client-trip-button-active-color: #0c4db5;
  --client-trip-status-color: #7b8aa3;
  --client-trip-notifications-title-size: 20px;
  --client-trip-notifications-brand-size: 12px;
  --client-trip-notifications-control-size: 12px;
  --client-trip-notification-message-size: 10px;
  --client-trip-notification-address-size: 13px;
  --client-trip-notification-detail-size: 10.5px;
  --client-trip-notification-time-size: 10.5px;
  --client-trip-notification-dismiss-size: 24px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: 100%;
  max-width: 720px;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  align-content: start;
  gap: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-trip-notifications-header {
  display: flex;
  min-width: 0;
  min-height: 56px;
  padding: 0 0 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--client-trip-header-border);
}

.client-trip-notifications-copy {
  min-width: 0;
}

.client-trip-notifications-brand {
  display: block;
  color: #5b6b84;
  font-size: var(--client-trip-notifications-brand-size) !important;
  line-height: 1.2;
}

.client-trip-notifications-header h1 {
  margin: 2px 0 0;
  color: var(--client-trip-title-color);
  font-size: var(--client-trip-notifications-title-size) !important;
  line-height: 1.15;
}

.client-trip-notifications-title-full {
  display: inline;
}

.client-trip-notifications-title-compact {
  display: none;
}

.client-trip-notifications-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.client-trip-notifications-header strong {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #1a66d2;
  font-size: 13px !important;
  line-height: 1;
}

.client-trip-notifications-actions form {
  margin: 0;
}

.client-trip-notifications-clear {
  display: inline-flex;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--client-trip-button-border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #0c4db5;
  background: var(--client-trip-button-bg);
  font-size: var(--client-trip-notifications-control-size) !important;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.client-trip-notifications-clear:hover,
.client-trip-notifications-clear:focus-visible {
  color: #086eff;
  border-color: #8dbdff;
  outline: 0;
  background: var(--client-trip-button-active-bg);
}

.client-trip-notifications-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.client-trip-notifications-filters a {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dfec;
  border-radius: 8px;
  color: #36506f;
  background: #ffffff;
  font-size: 13px !important;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.client-trip-notifications-filters a[aria-pressed="true"] {
  border-color: #1a66d2;
  color: #ffffff;
  background: #1a66d2;
}

.client-trip-notifications-status,
.client-trip-notifications-empty,
.client-trip-notifications-error {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--client-trip-card-border);
  border-radius: 8px;
  color: #4d607b;
  background: var(--client-trip-card-bg);
}

.client-trip-notifications-error {
  border-color: #f0b8bf;
  color: #9b1c2a;
  background: #fff5f6;
}

.client-trip-notifications-error h2 {
  margin: 0 0 4px;
  color: #7f1722;
  font-size: 16px !important;
  line-height: 1.2;
}

.client-trip-notifications-error p,
.client-trip-notifications-empty,
.client-trip-notifications-status {
  margin: 0;
  font-size: 13px !important;
}

.client-trip-notifications-list {
  display: grid;
  min-height: 0;
  max-height: calc(100vh - 136px);
  max-height: calc(100svh - 136px);
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  scrollbar-color: #b5c6dd transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.client-trip-notifications-list::-webkit-scrollbar {
  width: 8px;
}

.client-trip-notifications-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b5c6dd;
  background-clip: content-box;
}

.client-trip-notification {
  display: grid;
  --client-trip-status-color: #7b8aa3;
  grid-template-columns: 10px minmax(0, 1fr) auto var(--client-trip-notification-dismiss-size);
  grid-template-rows: auto;
  min-height: 70px;
  gap: 11px;
  padding: 9px 11px 9px 13px;
  align-items: center;
  border: 1px solid var(--client-trip-card-border);
  border-left-width: 3px;
  border-left-color: var(--client-trip-status-color);
  border-radius: 8px;
  background: var(--client-trip-card-bg);
  box-shadow: none;
}

.client-trip-notification::before {
  content: none;
}

.client-trip-notification.is-started {
  --client-trip-status-color: #1a66d2;
}

.client-trip-notification.is-completed {
  --client-trip-status-color: #12805c;
}

.client-trip-notification.is-canceled {
  --client-trip-status-color: #c93345;
}

.client-trip-notification-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--client-trip-status-color);
  box-shadow: 0 0 8px rgba(26, 102, 210, 0.3);
}

.client-trip-notification.is-completed .client-trip-notification-dot {
  box-shadow: 0 0 8px rgba(18, 128, 92, 0.3);
}

.client-trip-notification.is-canceled .client-trip-notification-dot {
  box-shadow: 0 0 8px rgba(201, 51, 69, 0.28);
}

.client-trip-notification-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}

.client-trip-notification-message {
  display: inline-flex;
  margin: 0 0 4px;
  color: var(--client-trip-status-color);
  font-size: var(--client-trip-notification-message-size) !important;
  font-weight: 600;
  line-height: 1.2;
}

.client-trip-notification-main h2 {
  margin: 0;
  color: var(--client-trip-text-color);
  font-size: var(--client-trip-notification-address-size) !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-trip-notification-main p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--client-trip-muted-color);
  font-size: var(--client-trip-notification-detail-size) !important;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-trip-notification-time-row {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  align-items: center;
  justify-self: end;
  gap: 5px;
  color: var(--client-trip-muted-color);
  font-size: var(--client-trip-notification-time-size) !important;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.client-trip-notification-time-row svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-trip-notification-time-row time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-trip-notification form {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  margin: 0;
  place-items: center;
}

.client-trip-notification-dismiss {
  display: grid;
  width: var(--client-trip-notification-dismiss-size);
  height: var(--client-trip-notification-dismiss-size);
  padding: 0;
  border: 0;
  border-radius: 6px;
  place-items: center;
  color: #607494;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.client-trip-notification-dismiss:hover,
.client-trip-notification-dismiss:focus-visible {
  color: #0c4db5;
  outline: 0;
  background: var(--client-trip-button-active-bg);
}

.client-trip-notification-dismiss svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .client-trip-notifications-body {
  color: #e8eefc;
  background: #07111f;
}

:root[data-theme="dark"] .client-trip-notifications {
  --client-trip-header-border: rgba(126, 164, 224, 0.24);
  --client-trip-card-bg: rgba(17, 34, 60, 0.9);
  --client-trip-card-border: rgba(99, 137, 195, 0.34);
  --client-trip-title-color: #f4f7ff;
  --client-trip-text-color: #f0f5ff;
  --client-trip-muted-color: #9eb1cf;
  --client-trip-button-bg: rgba(16, 31, 54, 0.95);
  --client-trip-button-border: rgba(126, 164, 224, 0.48);
  --client-trip-button-active-bg: rgba(79, 126, 202, 0.24);
  --client-trip-button-active-color: #85bbff;
}

:root[data-theme="dark"] .client-trip-notifications-filters a {
  border-color: rgba(99, 137, 195, 0.34);
  color: #c5d5ef;
  background: rgba(17, 34, 60, 0.9);
}

:root[data-theme="dark"] .client-trip-notifications-filters a[aria-pressed="true"] {
  border-color: #5c9fff;
  color: #07111f;
  background: #5c9fff;
}

:root[data-theme="dark"] .client-trip-notification.is-started {
  --client-trip-status-color: #5c9fff;
}

:root[data-theme="dark"] .client-trip-notification.is-completed {
  --client-trip-status-color: #35c695;
}

:root[data-theme="dark"] .client-trip-notification.is-canceled {
  --client-trip-status-color: #ff6372;
}

:root[data-theme="dark"] .client-trip-notifications-brand,
:root[data-theme="dark"] .client-trip-notifications-empty,
:root[data-theme="dark"] .client-trip-notifications-status {
  color: #9eb1cf;
}

:root[data-theme="dark"] .client-trip-notifications-clear {
  color: #85bbff;
}

:root[data-theme="dark"] .client-trip-notification-dismiss {
  color: #91a8cc;
}

:root[data-theme="dark"] .client-trip-notification-dismiss:hover,
:root[data-theme="dark"] .client-trip-notification-dismiss:focus-visible {
  color: #dceaff;
}

.client-trip-notifications-body.is-embedded {
  min-height: 0;
  padding: 6px;
  background: transparent;
}

.client-trip-notifications-body.is-embedded .client-trip-notifications {
  --client-trip-panel-bg: rgba(255, 255, 255, 0.99);
  --client-trip-panel-border: #bed5f5;
  --client-trip-header-border: #d8e5f6;
  --client-trip-card-bg: #fbfdff;
  --client-trip-card-border: #cfe0f5;
  --client-trip-title-color: #071734;
  --client-trip-text-color: #0a1932;
  --client-trip-muted-color: #526580;
  --client-trip-notifications-title-size: 16px;
  --client-trip-notifications-control-size: 10px;
  --client-trip-notification-message-size: 9px;
  --client-trip-notification-address-size: 12px;
  --client-trip-notification-detail-size: 9.5px;
  --client-trip-notification-time-size: 9.5px;
  --client-trip-notification-dismiss-size: 22px;
  max-width: none;
  height: calc(100vh - 12px);
  height: calc(100svh - 12px);
  padding: 0;
  gap: 0;
  border: 1px solid var(--client-trip-panel-border);
  border-radius: 14px;
  background: var(--client-trip-panel-bg);
  box-shadow:
    0 14px 32px rgba(25, 54, 105, 0.13),
    inset 0 0 0 1px rgba(8, 110, 255, 0.04);
}

.client-trip-notifications-body.is-embedded .client-trip-notifications-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 9px 14px;
  align-items: center;
  border-bottom-color: var(--client-trip-header-border);
}

.client-trip-notifications-body.is-embedded .client-trip-notifications-brand,
.client-trip-notifications-body.is-embedded .client-trip-notifications-title-full,
.client-trip-notifications-body.is-embedded .client-trip-notifications-header strong,
.client-trip-notifications-body.is-embedded .client-trip-notifications-filters {
  display: none;
}

.client-trip-notifications-body.is-embedded .client-trip-notifications-title-compact {
  display: inline;
}

.client-trip-notifications-body.is-embedded .client-trip-notifications-clear {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-weight: 700;
  background: var(--client-trip-button-bg);
}

.client-trip-notifications-body.is-embedded .client-trip-notifications-status,
.client-trip-notifications-body.is-embedded .client-trip-notifications-empty,
.client-trip-notifications-body.is-embedded .client-trip-notifications-error {
  margin: 10px 12px 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 10px !important;
}

.client-trip-notifications-body.is-embedded .client-trip-notifications-list {
  max-height: calc(100vh - 76px);
  max-height: calc(100svh - 76px);
  padding: 10px 12px 12px;
  gap: 8px;
}

.client-trip-notifications-body.is-embedded .client-trip-notification {
  grid-template-columns: 8px minmax(0, 1fr) auto var(--client-trip-notification-dismiss-size);
  grid-template-rows: auto;
  min-height: 60px;
  padding: 7px 9px 7px 11px;
  align-items: center;
  gap: 8px;
  border-left-width: 3px;
  border-radius: 8px;
  background: var(--client-trip-card-bg);
}

.client-trip-notifications-body.is-embedded .client-trip-notification-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--client-trip-status-color);
  box-shadow: 0 0 8px rgba(26, 102, 210, 0.3);
}

.client-trip-notifications-body.is-embedded .client-trip-notification.is-completed .client-trip-notification-dot {
  box-shadow: 0 0 8px rgba(18, 128, 92, 0.3);
}

.client-trip-notifications-body.is-embedded .client-trip-notification.is-canceled .client-trip-notification-dot {
  box-shadow: 0 0 8px rgba(201, 51, 69, 0.28);
}

.client-trip-notifications-body.is-embedded .client-trip-notification-main {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.client-trip-notifications-body.is-embedded .client-trip-notification-main p {
  margin-top: 3px;
  font-weight: 500;
}

.client-trip-notifications-body.is-embedded .client-trip-notification-time-row {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  width: auto;
  justify-self: end;
  justify-content: end;
  margin: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--client-trip-muted-color);
  font-weight: 500;
  text-align: right;
}

.client-trip-notifications-body.is-embedded .client-trip-notification-time-row svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-trip-notifications-body.is-embedded .client-trip-notification form {
  grid-column: 4;
  grid-row: 1;
  place-items: center;
}

.client-trip-notifications-body.is-embedded .client-trip-notification-dismiss {
  border-radius: 6px;
}

.client-trip-notifications-body.is-embedded .client-trip-notification-dismiss svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 400px) {
  .client-trip-notifications-body.is-embedded .client-trip-notifications {
    --client-trip-notification-time-size: 9px;
  }

  .client-trip-notifications-body.is-embedded .client-trip-notification {
    grid-template-columns: 8px minmax(0, 1fr) auto var(--client-trip-notification-dismiss-size);
    grid-template-rows: auto;
    min-height: 60px;
  }

  .client-trip-notifications-body.is-embedded .client-trip-notification-time-row {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-self: end;
    margin-top: 0;
  }

  .client-trip-notifications-body.is-embedded .client-trip-notification form {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
  }
}

:root[data-theme="dark"] .client-trip-notifications-body.is-embedded {
  background: transparent;
}

:root[data-theme="dark"] .client-trip-notifications-body.is-embedded .client-trip-notifications {
  --client-trip-panel-bg: rgba(10, 19, 34, 0.99);
  --client-trip-panel-border: rgba(126, 164, 224, 0.46);
  --client-trip-header-border: rgba(126, 164, 224, 0.24);
  --client-trip-card-bg: rgba(17, 34, 60, 0.9);
  --client-trip-card-border: rgba(99, 137, 195, 0.34);
  --client-trip-title-color: #f4f7ff;
  --client-trip-text-color: #f0f5ff;
  --client-trip-muted-color: #9eb1cf;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(91, 154, 255, 0.12);
}

@media (max-width: 700px) {
  .client-trip-notifications-body:not(.is-embedded) {
    min-height: 0;
    padding: 8px 10px;
    background: transparent;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications {
    --client-trip-panel-bg: rgba(255, 255, 255, 0.99);
    --client-trip-panel-border: #bed5f5;
    --client-trip-card-bg: #fbfdff;
    --client-trip-card-border: #cfe0f5;
    --client-trip-notifications-title-size: 18px;
    --client-trip-notification-message-size: 10px;
    --client-trip-notification-address-size: 13px;
    --client-trip-notification-detail-size: 10.5px;
    --client-trip-notification-time-size: 10.5px;
    --client-trip-notification-dismiss-size: 24px;
    max-width: 430px;
    height: calc(100vh - 16px);
    height: calc(100svh - 16px);
    padding: 0;
    gap: 0;
    border: 1px solid var(--client-trip-panel-border);
    border-radius: 18px;
    background: var(--client-trip-panel-bg);
    box-shadow:
      0 18px 42px rgba(25, 54, 105, 0.14),
      inset 0 0 0 1px rgba(8, 110, 255, 0.04);
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 12px 16px;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-brand,
  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-title-full,
  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-header strong,
  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-filters {
    display: none;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-title-compact {
    display: inline;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notifications-list {
    max-height: calc(100vh - 96px);
    max-height: calc(100svh - 96px);
    padding: 14px 16px 16px;
    gap: 10px;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notification {
    grid-template-columns: 10px minmax(0, 1fr) auto var(--client-trip-notification-dismiss-size);
    grid-template-rows: auto;
    min-height: 70px;
    padding: 9px 11px 9px 13px;
    align-items: center;
    gap: 11px;
    border-left-width: 3px;
    border-radius: 8px;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notification-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--client-trip-status-color);
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notification-main {
    grid-column: 2;
    grid-row: 1;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notification-time-row {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    align-items: center;
    gap: 5px;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notification-time-row svg {
    display: block;
    width: 13px;
    height: 13px;
  }

  .client-trip-notifications-body:not(.is-embedded) .client-trip-notification form {
    grid-column: 4;
    grid-row: 1;
    place-items: center;
  }
}
