:root {
    color-scheme: dark;
    --ink-950: #01050c;
    --ink-900: #030a14;
    --ink-850: #07111e;
    --ink-800: #0a1624;
    --ink-700: #102238;
    --blue-500: #0788ff;
    --blue-400: #23a7ff;
    --blue-300: #76c8ff;
    --silver-100: #f5f8fc;
    --silver-200: #dce3eb;
    --silver-300: #aeb9c7;
    --silver-400: #7e8a99;
    --line: rgba(143, 174, 210, 0.19);
    --line-strong: rgba(35, 167, 255, 0.42);
    --panel: rgba(7, 17, 30, 0.78);
    --panel-solid: #07111e;
    --success: #5dd8ad;
    --danger: #ff8294;
    --shadow-blue: 0 20px 65px rgba(0, 104, 220, 0.2);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shell: min(1180px, calc(100% - 40px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--silver-200);
    background:
        radial-gradient(circle at 10% 18%, rgba(0, 119, 255, 0.08), transparent 28rem),
        var(--ink-950);
    font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img {
    display: block;
    max-width: 100%;
}

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

a {
    color: inherit;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #00101f;
    background: var(--silver-100);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--blue-300);
    outline-offset: 3px;
}

.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.auth-page .site-header,
.account-page .site-header {
    position: sticky;
    background: rgba(1, 6, 14, 0.9);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    width: 92px;
    height: 76px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.site-nav,
.site-nav__links,
.site-nav__actions {
    display: flex;
    align-items: center;
}

.site-nav {
    flex: 1;
    justify-content: space-between;
    gap: 28px;
}

.site-nav__links,
.site-nav__actions {
    gap: 10px;
}

.site-nav__links {
    margin-left: auto;
    margin-right: auto;
    gap: clamp(18px, 3vw, 38px);
}

.site-nav__links a {
    position: relative;
    padding-block: 12px;
    color: var(--silver-200);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-nav__links a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    background: var(--blue-400);
    content: "";
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after {
    transform: scaleX(1);
}

.site-nav__actions form {
    margin: 0;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    display: flex;
    min-width: 76px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--silver-200);
    cursor: pointer;
    font-size: 0.84rem;
    list-style: none;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu__options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 130px;
    padding: 6px;
    background: #07111f;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.language-menu__options a {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
}

.language-menu__options a:hover,
.language-menu__options a:focus-visible {
    color: white;
    background: rgba(35, 167, 255, 0.13);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: white;
    background: rgba(7, 17, 30, 0.8);
    cursor: pointer;
}

.menu-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

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

.button--primary {
    color: white;
    background: linear-gradient(135deg, #066fe2, #009bff);
    border-color: rgba(103, 197, 255, 0.4);
    box-shadow: 0 12px 28px rgba(0, 116, 232, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--primary:hover {
    background: linear-gradient(135deg, #087cf7, #1cabff);
    box-shadow: 0 16px 34px rgba(0, 130, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button--ghost {
    color: var(--silver-100);
    background: rgba(3, 10, 20, 0.5);
    border-color: rgba(180, 198, 218, 0.34);
}

.button--ghost:hover {
    border-color: var(--blue-400);
    background: rgba(13, 36, 60, 0.72);
}

.button--small {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.86rem;
}

.button--full {
    width: 100%;
}

.button--danger {
    color: #ffe9ec;
    background: rgba(130, 29, 45, 0.52);
    border-color: rgba(255, 130, 148, 0.42);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.hero {
    position: relative;
    min-height: 850px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero__image,
.hero__veil {
    position: absolute;
    inset: 0;
}

.hero__image {
    background-image: url("../images/velor-connect-hero.png");
    background-position: center;
    background-size: cover;
    transform: scale(1.015);
}

.hero__veil {
    background:
        linear-gradient(90deg, rgba(0, 5, 12, 0.98) 0%, rgba(0, 7, 17, 0.92) 34%, rgba(0, 7, 17, 0.28) 64%, rgba(0, 5, 12, 0.12) 100%),
        linear-gradient(0deg, #01050c 0%, transparent 30%, rgba(1, 5, 12, 0.12) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 200px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--blue-400);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.3em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 28px;
    color: var(--silver-100);
    font-size: clamp(3.2rem, 6.8vw, 6.4rem);
    font-weight: 420;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero h1 span {
    display: block;
}

.hero__lede {
    max-width: 580px;
    margin-bottom: 34px;
    color: var(--silver-200);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.benefit-panel {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 42px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    background: linear-gradient(130deg, rgba(10, 23, 39, 0.9), rgba(3, 11, 21, 0.78));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.benefit {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 8px 20px;
    border-right: 1px solid var(--line);
}

.benefit:last-child {
    border-right: 0;
}

.benefit__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--blue-400);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 1.45rem;
}

.benefit h2 {
    margin-bottom: 5px;
    color: var(--silver-100);
    font-size: 0.95rem;
    font-weight: 650;
}

.benefit p {
    margin-bottom: 0;
    color: var(--silver-300);
    font-size: 0.8rem;
    line-height: 1.55;
}

.section {
    position: relative;
    padding-block: clamp(88px, 11vw, 150px);
}

.section h2 {
    margin-bottom: 0;
    color: var(--silver-100);
    font-size: clamp(2.1rem, 4.8vw, 4rem);
    font-weight: 480;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.section-heading {
    margin-bottom: 50px;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
    align-items: end;
    gap: 70px;
}

.section-heading--split > p,
.section-heading--center > p:last-child {
    max-width: 590px;
    margin-bottom: 4px;
    color: var(--silver-300);
    font-size: 1.02rem;
}

.section-heading--center {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.section-heading--center > p:last-child {
    margin: 22px auto 0;
}

.section--preferences {
    background:
        radial-gradient(circle at 65% 30%, rgba(0, 139, 255, 0.08), transparent 32rem),
        linear-gradient(180deg, #030913, #02070e);
}

.preference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.preference-card {
    position: relative;
    min-height: 240px;
    padding: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(13, 30, 50, 0.83), rgba(4, 12, 22, 0.88));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.preference-card::before {
    position: absolute;
    top: 0;
    left: 26px;
    width: 68px;
    height: 1px;
    background: var(--blue-400);
    box-shadow: 0 0 22px rgba(35, 167, 255, 0.8);
    content: "";
}

.preference-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-blue);
    transform: translateY(-4px);
}

.preference-card__value {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 34px;
    place-items: center;
    color: var(--blue-400);
    border: 1px solid rgba(35, 167, 255, 0.38);
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 640;
}

.preference-card h3 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.18rem;
}

.preference-card p {
    margin-bottom: 0;
    color: var(--silver-300);
    font-size: 0.93rem;
}

.preference-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 850px;
    margin: 34px auto 0;
    color: var(--silver-300);
    text-align: center;
}

.preference-note span {
    color: var(--blue-400);
}

.section--steps {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(8, 112, 217, 0.11), transparent 32rem),
        var(--ink-950);
    border-block: 1px solid var(--line);
}

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps-grid::before {
    position: absolute;
    top: 53px;
    right: 12%;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent);
    content: "";
}

.step-card {
    position: relative;
    padding: 0 18px;
    text-align: center;
}

.step-card__number {
    position: relative;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    margin: 0 auto -8px;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, #078dfc, #0067d7);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 750;
    box-shadow: 0 0 22px rgba(0, 137, 255, 0.45);
}

.step-card__marker {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    background: radial-gradient(circle, rgba(35, 167, 255, 0.18), rgba(4, 12, 23, 0.96));
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.step-card h3 {
    margin-bottom: 9px;
    color: var(--silver-100);
    font-size: 1.08rem;
}

.step-card p {
    margin-bottom: 0;
    color: var(--silver-300);
    font-size: 0.91rem;
}

.section--private {
    background: linear-gradient(180deg, #02070f, #030a14);
}

.private-panel {
    display: grid;
    grid-template-columns: 130px minmax(0, 1.2fr) minmax(260px, 0.7fr);
    align-items: center;
    gap: 38px;
    padding: clamp(34px, 5vw, 58px);
    background: linear-gradient(120deg, rgba(13, 28, 46, 0.86), rgba(4, 12, 23, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
}

.private-panel__mark {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    overflow: hidden;
    background: rgba(1, 6, 13, 0.7);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.private-panel__copy h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.private-panel__copy > p:last-child {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--silver-300);
}

.private-panel__services {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    color: var(--silver-200);
    list-style: none;
}

.private-panel__services li {
    position: relative;
    padding-left: 27px;
}

.private-panel__services li::before {
    position: absolute;
    top: 0.2em;
    left: 0;
    color: var(--blue-400);
    content: "✓";
}

.section--connect {
    padding-top: 0;
    background: #030a14;
}

.connect-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: clamp(38px, 6vw, 70px);
    background:
        radial-gradient(circle at 95% 0%, rgba(0, 151, 255, 0.18), transparent 24rem),
        linear-gradient(135deg, #071524, #050c16);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-blue);
}

.connect-panel > div:first-child {
    max-width: 720px;
}

.connect-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.connect-panel p:last-child {
    margin-bottom: 0;
    color: var(--silver-300);
}

.connect-panel__actions {
    display: flex;
    min-width: max-content;
    flex-direction: column;
    gap: 12px;
}

.site-footer {
    padding-block: 36px;
    color: var(--silver-400);
    background: #01050b;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

.site-footer__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.site-footer__brand {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--silver-100);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: 0.28em;
    text-decoration: none;
}

.site-footer p {
    margin-bottom: 0;
}

.flash {
    position: relative;
    z-index: 20;
    padding-block: 12px;
    border-bottom: 1px solid;
    font-size: 0.92rem;
}

.flash--success {
    color: #b9f4df;
    background: rgba(18, 91, 67, 0.55);
    border-color: rgba(93, 216, 173, 0.35);
}

.flash--error {
    color: #ffd2d8;
    background: rgba(100, 27, 39, 0.6);
    border-color: rgba(255, 130, 148, 0.35);
}

.auth-page,
.account-page {
    background:
        linear-gradient(rgba(1, 6, 14, 0.9), rgba(1, 6, 14, 0.96)),
        url("../images/velor-connect-hero.png") center / cover fixed,
        var(--ink-950);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(260px, 390px);
    min-height: calc(100vh - 95px);
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 8vw, 110px);
    padding-block: 70px 100px;
}

.auth-card,
.auth-assurance,
.locked-portal-card,
.error-shell {
    background: linear-gradient(145deg, rgba(11, 26, 44, 0.94), rgba(3, 11, 21, 0.96));
    border: 1px solid var(--line);
    box-shadow: 0 32px 85px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
}

.auth-card {
    width: 100%;
    max-width: 560px;
    padding: clamp(30px, 5vw, 50px);
    border-radius: var(--radius-lg);
}

.auth-card--wide {
    max-width: 650px;
}

.auth-card__heading h1,
.account-heading h1,
.error-shell h1 {
    margin-bottom: 14px;
    color: var(--silver-100);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 480;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.auth-card__heading > p:last-child,
.account-heading > p:last-child,
.error-shell > p {
    color: var(--silver-300);
}

.auth-form {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

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

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

.field label {
    color: var(--silver-200);
    font-size: 0.88rem;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: white;
    background: rgba(1, 7, 15, 0.78);
    border: 1px solid rgba(146, 173, 205, 0.27);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(146, 173, 205, 0.5);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(35, 167, 255, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.field__help,
.field__error,
.form-terms {
    margin: 0;
    font-size: 0.78rem;
}

.field__help,
.form-terms {
    color: var(--silver-400);
}

.field__error {
    color: #ffabb7;
}

.form-alert {
    padding: 12px 14px;
    margin-top: 24px;
    color: #ffd2d8;
    background: rgba(120, 28, 43, 0.24);
    border: 1px solid rgba(255, 130, 148, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.auth-card__alternate {
    margin: 28px 0 0;
    color: var(--silver-300);
    text-align: center;
}

.auth-card__alternate a {
    color: var(--blue-300);
    font-weight: 650;
}

.auth-assurance {
    padding: 34px;
    border-radius: var(--radius-md);
}

.auth-assurance h2 {
    margin-bottom: 16px;
    color: var(--silver-100);
    font-size: 1.8rem;
    font-weight: 520;
    line-height: 1.18;
}

.auth-assurance p:last-child {
    margin-bottom: 0;
    color: var(--silver-300);
}

.account-shell {
    min-height: calc(100vh - 95px);
    padding-block: 90px 120px;
}

.account-heading {
    margin-bottom: 42px;
}

.locked-portal-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    max-width: 820px;
    padding: clamp(30px, 5vw, 52px);
    border-radius: var(--radius-lg);
}

.locked-portal-card__icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--blue-400);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 2rem;
}

.locked-portal-card h2 {
    margin-bottom: 12px;
    color: var(--silver-100);
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 500;
}

.locked-portal-card p:last-child {
    margin-bottom: 0;
    color: var(--silver-300);
}

.muted {
    color: var(--silver-300) !important;
}

.narrow-shell {
    max-width: 820px;
}

.account-heading--actions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.account-heading--actions > div:first-child {
    max-width: 790px;
}

.portal-card,
.driver-card,
.trip-list-card,
.action-panel,
.empty-panel,
.sticky-form-actions {
    background: linear-gradient(145deg, rgba(11, 26, 44, 0.94), rgba(3, 11, 21, 0.96));
    border: 1px solid var(--line);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.portal-card {
    padding: clamp(24px, 4vw, 38px);
    border-radius: var(--radius-md);
}

.portal-card h1,
.invitation-card > h1 {
    color: var(--silver-100);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 480;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.portal-card h2,
.portal-card h3 {
    color: var(--silver-100);
}

.portal-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 540;
    line-height: 1.18;
}

.portal-card h3 {
    margin-bottom: 6px;
}

.portal-card--featured {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-blue);
}

.portal-card--centered {
    text-align: center;
}

.portal-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.portal-card__topline .eyebrow,
.portal-card__topline p {
    margin-bottom: 0;
}

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

.dashboard-grid .portal-card:first-child {
    grid-row: span 2;
}

.driver-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-block: 26px;
}

.driver-summary--large {
    padding-block: 24px;
    margin-block: 28px;
    border-block: 1px solid var(--line);
}

.driver-summary h2,
.driver-summary p {
    margin-bottom: 3px;
}

.driver-avatar {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    color: var(--blue-300);
    background: linear-gradient(145deg, rgba(35, 167, 255, 0.18), rgba(4, 12, 22, 0.9));
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 720;
}

.driver-avatar--large {
    width: 88px;
    height: 88px;
    font-size: 2rem;
}

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

.status-chip {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 10px;
    color: var(--blue-300);
    background: rgba(35, 167, 255, 0.09);
    border: 1px solid rgba(35, 167, 255, 0.28);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.status-chip--active {
    color: #b9f4df;
    background: rgba(18, 91, 67, 0.28);
    border-color: rgba(93, 216, 173, 0.35);
}

.status-chip--large {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.78rem;
}

.card-actions,
.console-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.card-actions form,
.console-actions form {
    margin: 0;
}

.text-link,
.back-link {
    color: var(--blue-300);
    font-weight: 650;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--silver-300);
    font-size: 0.88rem;
}

.route-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block: 18px;
    color: var(--silver-200);
}

.route-line strong {
    font-weight: 580;
}

.route-line span {
    color: var(--blue-400);
}

.card-note,
.security-note,
.data-source,
.demo-disclaimer,
.polling-note {
    color: var(--silver-400);
    font-size: 0.82rem;
}

.card-note {
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.compact-list {
    display: grid;
}

.compact-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.compact-list a:last-child {
    border-bottom: 0;
}

.invitation-card {
    text-align: left;
}

.invitation-card .security-note {
    margin: 22px 0 0;
    text-align: center;
}

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

.driver-card {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.driver-card--default {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-blue);
}

.driver-card__vehicle {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.driver-card__vehicle--placeholder {
    display: grid;
    place-items: center;
    color: rgba(118, 200, 255, 0.36);
    background: radial-gradient(circle at 50% 70%, rgba(0, 126, 255, 0.2), transparent 48%), #040c16;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: 0.35em;
}

.driver-card__body {
    padding: 26px;
}

.detail-grid {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.detail-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid--stack {
    gap: 0;
}

.detail-grid > div {
    min-width: 0;
}

.detail-grid--stack > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-grid--stack > div:last-child {
    border-bottom: 0;
}

.detail-grid dt {
    color: var(--silver-400);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 3px 0 0;
    color: var(--silver-100);
}

.portal-form {
    display: grid;
    gap: 24px;
}

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

.form-section {
    min-width: 0;
}

.form-section legend {
    padding: 0;
    margin-bottom: 12px;
    color: var(--silver-100);
    font-size: 1.18rem;
    font-weight: 680;
}

.form-section__icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    place-items: center;
    color: var(--blue-400);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.field--compact {
    max-width: 180px;
}

.input-suffix {
    position: relative;
}

.input-suffix input {
    padding-right: 42px;
}

.input-suffix span {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--silver-400);
    transform: translateY(-50%);
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.choice-pill input {
    position: absolute;
    opacity: 0;
}

.choice-pill span {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 13px;
    color: var(--silver-300);
    background: rgba(1, 7, 15, 0.65);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
}

.choice-pill input:checked + span {
    color: white;
    background: rgba(0, 126, 255, 0.2);
    border-color: var(--blue-400);
}

.choice-pill input:focus-visible + span {
    outline: 3px solid var(--blue-300);
    outline-offset: 2px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.check-list--horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block: 18px;
}

.check-list label,
.switch-row,
.confirm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--silver-200);
}

.check-list label,
.switch-row {
    padding: 12px 14px;
    background: rgba(1, 7, 15, 0.55);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.check-list input,
.switch-row input,
.confirm-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-500);
}

.sticky-form-actions {
    position: sticky;
    z-index: 8;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px);
}

.sticky-form-actions p {
    margin: 0;
    color: var(--silver-300);
    font-size: 0.84rem;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 24px;
}

.booking-main {
    display: grid;
    gap: 18px;
}

.booking-summary {
    position: sticky;
    top: 118px;
}

.booking-summary > p:not(.eyebrow) {
    color: var(--silver-300);
}

.form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mode-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-block: 14px 20px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.mode-banner strong {
    flex: 0 0 auto;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mode-banner--demo {
    color: #ffe8bd;
    background: rgba(113, 68, 8, 0.23);
    border-color: rgba(247, 180, 62, 0.34);
}

.mode-banner--live {
    color: #b9f4df;
    background: rgba(18, 91, 67, 0.2);
    border-color: rgba(93, 216, 173, 0.3);
}

.optional-details {
    margin-top: 16px;
}

.optional-details summary,
.cancellation-panel summary,
.console-message-row summary {
    color: var(--blue-300);
    cursor: pointer;
    font-weight: 650;
}

.optional-details .form-grid {
    margin-top: 16px;
}

.airport-fields {
    margin-top: 18px;
}

.feature-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0;
    list-style: none;
}

.feature-list li::before {
    margin-right: 9px;
    color: var(--blue-400);
    content: "✓";
}

.demo-disclaimer {
    padding: 12px;
    color: #ffe8bd;
    background: rgba(113, 68, 8, 0.2);
    border-radius: 8px;
}

.trip-section + .trip-section {
    margin-top: 64px;
}

.section-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-subheading h2 {
    margin: 0;
    color: var(--silver-100);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 520;
}

.section-subheading > span {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: var(--blue-300);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 0.8rem;
}

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

.trip-list-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    border-radius: var(--radius-md);
}

.trip-list-card__date {
    display: grid;
    width: 58px;
    height: 64px;
    place-items: center;
    align-content: center;
    color: var(--blue-300);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    line-height: 1.1;
    text-transform: uppercase;
}

.trip-list-card__date strong {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.trip-list-card__date span {
    color: white;
    font-size: 1.35rem;
}

.trip-list-card__main .route-line {
    margin-block: 9px;
}

.trip-list-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--silver-400);
    font-size: 0.82rem;
}

.trip-list-card__meta strong {
    color: var(--silver-100);
}

.empty-panel {
    padding: 36px;
    border-radius: var(--radius-md);
}

.empty-panel h3 {
    margin-bottom: 7px;
    color: var(--silver-100);
}

.empty-panel p {
    margin: 0;
    color: var(--silver-300);
}

.polling-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -26px;
}

.polling-note span {
    color: var(--success);
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

.trip-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 54px;
    margin-bottom: 18px;
    border-color: var(--line-strong);
}

.trip-route-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.trip-route-visual > div:not(.route-connector) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 10px;
}

.trip-route-visual small {
    color: var(--silver-400);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trip-route-visual strong {
    grid-column: 2;
    color: var(--silver-100);
    font-size: 0.9rem;
}

.route-dot {
    grid-row: span 2;
    width: 14px;
    height: 14px;
    border: 3px solid var(--blue-400);
    border-radius: 50%;
}

.route-dot--destination {
    border-color: var(--success);
}

.route-connector {
    width: 44px;
    height: 1px;
    background: var(--line-strong);
}

.trip-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
}

.trip-hero-meta dt {
    color: var(--silver-400);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trip-hero-meta dd {
    margin: 3px 0 0;
    color: var(--silver-100);
}

.action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 28px 32px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
}

.action-panel--attention {
    background: radial-gradient(circle at 100% 0%, rgba(0, 145, 255, 0.18), transparent 22rem), linear-gradient(145deg, rgba(11, 31, 52, 0.96), rgba(3, 11, 21, 0.98));
    border-color: var(--line-strong);
    box-shadow: var(--shadow-blue);
}

.action-panel h2,
.action-panel p {
    margin-bottom: 6px;
}

.action-panel h2 {
    color: white;
    font-size: 2.2rem;
}

.trip-detail > .mode-banner {
    margin-bottom: 18px;
}

.trip-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 18px;
}

.trip-detail-main,
.trip-detail-aside {
    display: grid;
    gap: 18px;
}

.trip-detail-aside {
    position: sticky;
    top: 112px;
}

.status-timeline {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.status-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    padding-bottom: 22px;
}

.status-timeline li:not(:last-child)::before {
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 6px;
    width: 1px;
    background: var(--line-strong);
    content: "";
}

.status-timeline li > span {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 4px;
    background: var(--blue-400);
    border: 3px solid #09182a;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line-strong);
}

.status-timeline strong,
.status-timeline small {
    display: block;
}

.status-timeline strong {
    color: var(--silver-100);
}

.status-timeline small {
    margin-top: 3px;
    color: var(--silver-400);
}

.offer-list {
    display: grid;
}

.offer-list > div {
    display: grid;
    grid-template-columns: 1fr auto 80px;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
}

.offer-list > div:last-child {
    border-bottom: 0;
}

.offer-list span,
.offer-list small {
    color: var(--silver-400);
}

.offer-list strong {
    color: var(--silver-100);
}

.message-thread {
    display: grid;
    gap: 10px;
    max-height: 420px;
    padding-right: 4px;
    overflow-y: auto;
}

.message-bubble {
    max-width: 82%;
    padding: 12px 14px;
    background: rgba(15, 36, 59, 0.74);
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px;
}

.message-bubble--mine {
    margin-left: auto;
    background: rgba(0, 111, 224, 0.23);
    border-color: rgba(35, 167, 255, 0.28);
    border-radius: 14px 14px 4px 14px;
}

.message-bubble strong,
.message-bubble small {
    color: var(--silver-400);
    font-size: 0.7rem;
}

.message-bubble p {
    margin: 4px 0;
    color: var(--silver-100);
}

.message-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) auto;
    align-items: end;
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.data-source {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.cancellation-panel summary {
    color: #ffabb7;
}

.cancellation-panel[open] summary {
    margin-bottom: 18px;
}

.money-breakdown {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 16px 0 22px;
}

.money-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 8px;
}

.money-breakdown dd {
    margin: 0;
}

.money-breakdown__total {
    margin-top: 6px;
    color: var(--silver-100);
    border-top: 1px solid var(--line);
    font-weight: 720;
}

.confirm-row {
    align-items: flex-start;
    margin-block: 16px;
    font-size: 0.78rem;
}

.demo-console .mode-banner {
    margin-top: -22px;
    margin-bottom: 24px;
}

.console-login {
    max-width: 560px;
}

.console-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.console-toolbar form:first-child {
    min-width: min(100%, 430px);
}

.copy-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.copy-field input {
    min-width: 0;
    padding: 12px 14px;
    color: white;
    background: rgba(1, 7, 15, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.invite-output {
    margin-bottom: 30px;
    border-color: rgba(247, 180, 62, 0.34);
}

.console-rides {
    display: grid;
    gap: 14px;
}

.console-ride .route-line {
    padding-block: 14px;
    border-block: 1px solid var(--line);
}

.counter-form {
    display: flex;
    align-items: end;
    gap: 8px;
}

.counter-form input {
    width: 120px;
    min-height: 42px;
}

.console-message-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.console-message-row > form {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.error-shell {
    max-width: 720px;
    min-height: 440px;
    padding: clamp(40px, 7vw, 80px);
    margin-top: 90px;
    margin-bottom: 110px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.error-code {
    margin-bottom: -20px;
    color: rgba(35, 167, 255, 0.16) !important;
    font-size: clamp(7rem, 22vw, 13rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.8;
}

.error-shell .button {
    margin-top: 20px;
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% - 4px);
        right: 20px;
        left: 20px;
        display: none;
        max-height: calc(100vh - 110px);
        padding: 20px;
        overflow-y: auto;
        background: rgba(3, 11, 21, 0.98);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__links,
    .site-nav__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-nav__links {
        gap: 2px;
        margin: 0 0 16px;
    }

    .site-nav__links a {
        padding: 11px 10px;
    }

    .site-nav__actions form,
    .site-nav__actions .button {
        width: 100%;
    }

    .language-menu summary {
        justify-content: flex-start;
    }

    .language-menu__options {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .benefit-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit:nth-child(2) {
        border-right: 0;
    }

    .benefit:nth-child(-n + 2) {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
    }

    .benefit:nth-child(n + 3) {
        padding-top: 20px;
    }

    .hero {
        min-height: 980px;
    }

    .preference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .private-panel {
        grid-template-columns: 110px 1fr;
    }

    .private-panel__services {
        grid-column: 2;
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-shell {
        grid-template-columns: minmax(0, 650px);
    }

    .auth-assurance {
        display: none;
    }

    .booking-layout,
    .trip-detail-grid {
        grid-template-columns: 1fr;
    }

    .booking-summary,
    .trip-detail-aside {
        position: static;
    }

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

    .trip-hero-card {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

    .message-form .button {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    .site-header__inner {
        min-height: 78px;
    }

    .brand {
        width: 74px;
        height: 66px;
    }

    .brand img {
        width: 74px;
        height: 74px;
    }

    .hero {
        min-height: 1050px;
    }

    .hero__image {
        background-position: 66% center;
    }

    .hero__veil {
        background:
            linear-gradient(90deg, rgba(0, 5, 12, 0.97), rgba(0, 7, 17, 0.58)),
            linear-gradient(0deg, #01050c 3%, rgba(1, 5, 12, 0.3) 62%, rgba(1, 5, 12, 0.48) 100%);
    }

    .hero__content {
        padding-top: 150px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .hero__lede {
        max-width: 92%;
    }

    .benefit-panel {
        bottom: 28px;
        padding: 12px;
    }

    .benefit {
        grid-template-columns: 42px 1fr;
        padding-inline: 12px;
    }

    .benefit__icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .section-heading--split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 58px;
    }

    .steps-grid::before {
        display: none;
    }

    .private-panel {
        grid-template-columns: 1fr;
    }

    .private-panel__mark {
        width: 92px;
        height: 92px;
    }

    .private-panel__services {
        grid-column: auto;
    }

    .connect-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 32px;
    }

    .connect-panel__actions {
        min-width: 0;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        padding-block: 36px 70px;
    }

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

    .account-heading--actions,
    .action-panel,
    .console-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-grid,
    .driver-grid,
    .preference-form-grid,
    .trip-detail-aside {
        grid-template-columns: 1fr;
    }

    .dashboard-grid .portal-card:first-child {
        grid-row: auto;
    }

    .form-grid--three,
    .form-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticky-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .trip-list-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .trip-list-card > .button {
        grid-column: 2;
        justify-self: start;
    }

    .trip-route-visual {
        grid-template-columns: 1fr;
    }

    .route-connector {
        width: 1px;
        height: 28px;
        margin-left: 6px;
    }

    .console-message-row,
    .console-message-row > form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: 1220px;
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }

    .benefit-panel {
        grid-template-columns: 1fr;
    }

    .benefit,
    .benefit:nth-child(2) {
        padding-block: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .benefit:last-child {
        border-bottom: 0;
    }

    .preference-grid,
    .steps-grid,
    .private-panel__services {
        grid-template-columns: 1fr;
    }

    .preference-card {
        min-height: 220px;
    }

    .locked-portal-card {
        grid-template-columns: 1fr;
    }

    .account-shell {
        padding-block: 54px 80px;
    }

    .portal-card__topline,
    .route-line,
    .trip-list-card__meta,
    .mode-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-actions--stack-mobile,
    .card-actions--stack-mobile .button,
    .sticky-form-actions .button {
        width: 100%;
    }

    .detail-grid--compact,
    .form-grid--three,
    .form-grid--four,
    .check-list--horizontal,
    .trip-hero-meta,
    .message-form {
        grid-template-columns: 1fr;
    }

    .message-form .button {
        grid-column: auto;
    }

    .trip-list-card {
        grid-template-columns: 1fr;
    }

    .trip-list-card > .button {
        grid-column: auto;
    }

    .trip-list-card__date {
        width: 100%;
        height: auto;
        padding: 8px 12px;
        justify-content: start;
        grid-auto-flow: column;
        gap: 6px;
    }

    .offer-list > div {
        grid-template-columns: 1fr auto;
    }

    .offer-list small {
        grid-column: span 2;
    }

    .message-bubble {
        max-width: 94%;
    }

    .copy-field {
        grid-template-columns: 1fr;
    }

    .counter-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .counter-form input {
        width: 100%;
    }
}

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