:root {
  --brand: #b6ff2e;
  --brand-deep: #84c900;
  --ink: #0b0d0d;
  --muted: #687078;
  --paper: #f5f6f3;
  --panel: #ffffff;
  --line: #dfe3df;
  --danger: #b72d2d;
  --shadow: 0 18px 50px rgba(8, 10, 10, 0.12);
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-inverse {
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

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

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

.button-primary:hover {
  background: #a7ee22;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: #cfd4cf;
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-wide {
  width: 100%;
}

.auth-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, #080a0a 0 49.999%, var(--paper) 50% 100%);
}

.auth-header {
  width: min(1180px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.auth-header .brand {
  color: #fff;
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.site-link:hover {
  color: var(--ink);
}

.auth-main {
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-intro {
  min-width: 0;
  padding: clamp(70px, 11vh, 130px) clamp(56px, 7vw, 110px) 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.auth-intro h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(42px, 4.2vw, 67px);
  font-weight: 600;
  line-height: 1.04;
}

.auth-lead {
  max-width: 510px;
  margin: 30px 0 0;
  color: #bfc4c0;
  font-size: 16px;
  line-height: 1.7;
}

.rate-line {
  margin-top: 80px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: #c8ccc9;
  font-size: 13px;
  font-weight: 500;
}

.rate-value {
  color: var(--brand);
  font-size: 48px;
  font-weight: 600;
}

.auth-panel {
  align-self: center;
  width: min(460px, calc(100% - 32px));
  margin: 20px 0 80px auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.panel-copy {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.invite-note,
.test-note {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  color: #2d352d;
  background: #effadc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.test-note {
  border-left-color: #e2a900;
  background: #fff8dd;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  color: #495057;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 52px;
  border: 1px solid #cfd5d0;
  border-radius: 6px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:focus {
  border-color: #7fae25;
  box-shadow: 0 0 0 3px rgba(182, 255, 46, 0.2);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 12px;
  font-weight: 600;
}

.legal-copy {
  margin: 22px 0 0;
  color: #8b918c;
  font-size: 9px;
  line-height: 1.6;
}

.form-error {
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

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

.floating-header {
  width: min(1180px, calc(100% - 32px));
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
}

.floating-header-bar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px 0 14px;
  color: #fff;
  background: rgba(7, 9, 8, 0.88);
  box-shadow: 0 16px 42px rgba(8, 10, 9, 0.2);
  backdrop-filter: blur(20px);
}

.floating-header-bar .brand {
  min-width: 0;
}

.header-context {
  margin-left: auto;
  color: #9fa69f;
  font-size: 11px;
  font-weight: 600;
}

.header-menu-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #343936;
  border-radius: 6px;
  color: var(--brand);
  background: #171a18;
}

.header-menu-button:hover {
  border-color: #596158;
  background: #202420;
}

.header-menu-button:focus-visible,
.dialog-close:focus-visible,
.details-button:focus-visible,
.test-trip-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

.header-menu-button .close-icon {
  display: none;
}

.header-menu-button[aria-expanded="true"] .menu-icon {
  display: none;
}

.header-menu-button[aria-expanded="true"] .close-icon {
  display: block;
}

.header-menu {
  width: 290px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  overflow: hidden;
  border: 1px solid #252a26;
  border-radius: 8px;
  color: #e7eae7;
  background: rgba(10, 12, 11, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
}

.header-menu-nav {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.header-menu-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
}

.header-menu-nav a:hover {
  color: #fff;
  background: #202420;
}

.header-menu-nav svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.header-menu-footer {
  display: grid;
  gap: 12px;
  padding: 16px 23px 18px;
  border-top: 1px solid #272c28;
  color: #9ca39d;
  font-size: 10px;
  font-weight: 600;
}

.header-menu-footer button {
  width: max-content;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
}

.header-menu-footer a:hover,
.header-menu-footer button:hover {
  color: var(--brand);
}

.dashboard {
  min-width: 0;
}

.dashboard-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 126px 0 72px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  scroll-margin-top: 110px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.page-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.wallet-panel {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 36px 42px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(182, 255, 46, 0.08), transparent 40%),
    #0a0c0b;
}

.wallet-panel p {
  margin: 0 0 14px;
  color: #b4bbb6;
  font-size: 13px;
  font-weight: 600;
}

.wallet-panel strong {
  display: block;
  margin: 0 0 14px;
  color: var(--brand);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 1;
}

.wallet-panel span {
  color: #9da59f;
  font-size: 11px;
}

.wallet-mark {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid #343a35;
  border-radius: 50%;
  color: var(--brand);
  background: #141715;
  font-size: 56px;
  font-weight: 500;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--panel);
}

.summary-item {
  min-width: 0;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.summary-item strong {
  display: inline-block;
  margin-top: 7px;
  font-size: 30px;
  font-weight: 600;
}

.summary-item small {
  margin-left: 6px;
  color: #959b96;
  font-size: 10px;
}

.referral-panel {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 54px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 38px;
  background: var(--panel);
}

.referral-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.referral-copy > p:last-child {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.referral-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.link-field {
  position: relative;
}

.link-field input {
  padding-right: 50px;
  color: #313631;
  background: #f6f7f4;
  font-size: 12px;
}

.copy-button {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #58605a;
  background: #e7eae6;
}

.copy-button:hover {
  color: var(--ink);
  background: #dce1db;
}

.copy-button svg {
  width: 17px;
  height: 17px;
}

.friends-section {
  margin-top: 58px;
  scroll-margin-top: 110px;
}

.section-heading {
  min-height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.text-button {
  border: 0;
  padding: 8px 0;
  color: #426b00;
  background: none;
  font-size: 11px;
  font-weight: 700;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  height: 68px;
  padding: 0 18px;
  border-bottom: 1px solid #e8ebe8;
  text-align: left;
  vertical-align: middle;
}

th {
  height: 44px;
  color: #7d847e;
  background: #f7f8f6;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

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

tbody tr:hover {
  background: #fbfcfa;
}

th:first-child {
  width: 25%;
}

th:nth-child(2) {
  width: 12%;
}

th:nth-child(3) {
  width: 17%;
}

th:nth-child(4) {
  width: 18%;
}

th:nth-child(5) {
  width: 18%;
}

th:last-child {
  width: 10%;
}

td {
  color: #313631;
  font-size: 12px;
  font-weight: 500;
}

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

.driver-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #263000;
  background: #e7fbc0;
  font-size: 11px;
  font-weight: 700;
}

.driver-cell strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-cell small {
  display: block;
  margin-top: 4px;
  color: #909690;
  font-size: 9px;
}

.earning-cell {
  color: #426b00;
  font-weight: 600;
}

.program-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 5px;
  padding: 0 9px;
  color: #5f665f;
  background: #edf0ec;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.program-status.complete {
  color: #365900;
  background: #e5f9bd;
}

.test-trip-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d8ded8;
  border-radius: 5px;
  color: #5f675f;
  background: #fff;
}

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

.details-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d8ded8;
  border-radius: 5px;
  color: #303630;
  background: #fff;
}

.details-button:hover {
  color: #2e4b00;
  border-color: var(--brand);
  background: #f4ffe0;
}

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

.test-trip-button:hover {
  color: #2e4b00;
  border-color: var(--brand);
  background: #f4ffe0;
}

.test-trip-button svg {
  width: 15px;
  height: 15px;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed #cdd2cd;
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4d710a;
  background: #e9fbc8;
}

.empty-icon svg {
  width: 22px;
  height: 22px;
}

.empty-state h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.friends-mobile-list {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100% - 32px));
  border-radius: 7px;
  padding: 14px 18px;
  color: #fff;
  background: #141715;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 600;
}

.trip-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.trip-dialog::backdrop {
  background: rgba(5, 7, 6, 0.66);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 24px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 24px;
}

.dialog-header > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #4e554f;
  background: #f7f8f6;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.dialog-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f8f5;
}

.dialog-summary > div {
  padding: 18px 32px;
}

.dialog-summary > div:first-child {
  border-right: 1px solid var(--line);
}

.dialog-summary span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
}

.dialog-summary > div:last-child strong {
  color: #426b00;
}

.trip-list {
  max-height: 430px;
  overflow-y: auto;
  padding: 8px 32px 20px;
}

.trip-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #e8ebe8;
}

.trip-item:last-child {
  border-bottom: 0;
}

.trip-item span {
  display: block;
  color: #8a918b;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.trip-item strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
}

.trip-item > div:last-child strong {
  color: #426b00;
}

.dialog-empty {
  padding: 48px 32px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 980px) {
  .auth-shell {
    background: var(--paper);
  }

  .auth-header {
    width: min(680px, calc(100% - 40px));
  }

  .auth-header .brand {
    color: var(--ink);
  }

  .auth-main {
    width: min(680px, calc(100% - 40px));
    min-height: auto;
    display: block;
    padding: 28px 0 64px;
  }

  .auth-intro {
    padding: 36px 0 46px;
    color: var(--ink);
  }

  .auth-intro h1 {
    font-size: clamp(38px, 8vw, 56px);
  }

  .auth-lead {
    color: var(--muted);
  }

  .rate-line {
    margin-top: 34px;
    color: #6e756f;
  }

  .rate-value {
    color: #548a00;
  }

  .auth-panel {
    width: 100%;
    margin: 0;
  }

  .dashboard-inner {
    width: min(760px, calc(100% - 40px));
    padding-top: 118px;
  }

  .referral-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .table-wrap {
    display: none;
  }

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

  .friend-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: var(--panel);
  }

  .friend-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .friend-card-actions {
    display: flex;
    gap: 6px;
  }

  .friend-card-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e8e5;
  }

  .friend-card-stat span {
    display: block;
    color: #858c86;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .friend-card-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
  }
}

@media (max-width: 620px) {
  .auth-header {
    width: calc(100% - 32px);
    height: 76px;
  }

  .auth-header .brand span,
  .site-link {
    font-size: 11px;
  }

  .auth-header .brand img {
    width: 40px;
    height: 40px;
  }

  .auth-main {
    width: calc(100% - 32px);
    padding-top: 12px;
  }

  .auth-intro {
    padding: 22px 0 34px;
  }

  .auth-intro h1 {
    font-size: 35px;
    line-height: 1.08;
  }

  .auth-lead {
    margin-top: 20px;
    font-size: 13px;
  }

  .rate-line {
    align-items: center;
  }

  .rate-value {
    font-size: 36px;
  }

  .auth-panel {
    padding: 28px 22px;
  }

  .auth-panel h2 {
    font-size: 23px;
  }

  .floating-header {
    width: calc(100% - 16px);
    top: 8px;
  }

  .floating-header-bar {
    height: 64px;
    gap: 10px;
    padding: 0 10px;
  }

  .floating-header-bar .brand {
    gap: 9px;
    font-size: 14px;
  }

  .floating-header-bar .brand img {
    width: 40px;
    height: 40px;
  }

  .header-context {
    display: none;
  }

  .header-menu-button {
    margin-left: auto;
  }

  .header-menu {
    width: min(290px, calc(100vw - 16px));
  }

  .dashboard-inner {
    width: calc(100% - 32px);
    padding: 112px 0 52px;
  }

  .page-heading {
    display: block;
  }

  .page-heading .button {
    width: 100%;
    margin-top: 22px;
  }

  .wallet-panel {
    min-height: 200px;
    padding: 28px 24px;
  }

  .wallet-panel strong {
    font-size: 44px;
  }

  .wallet-mark {
    width: 72px;
    height: 72px;
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.55;
    font-size: 34px;
  }

  .wallet-panel span {
    max-width: 220px;
    display: block;
    line-height: 1.5;
  }

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

  .summary-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .summary-item strong {
    margin: 0;
    font-size: 24px;
  }

  .referral-panel {
    padding: 26px 22px;
  }

  .referral-actions {
    grid-template-columns: 1fr;
  }

  .referral-actions .button {
    width: 100%;
  }

  .friends-section {
    margin-top: 44px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-card {
    padding: 18px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }

  .trip-dialog {
    max-height: calc(100vh - 20px);
  }

  .dialog-header {
    padding: 24px 20px 20px;
  }

  .dialog-header h2 {
    font-size: 20px;
  }

  .dialog-summary > div {
    padding: 16px 20px;
  }

  .trip-list {
    max-height: 480px;
    padding: 4px 20px 18px;
  }

  .trip-item {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
  }
}

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