.b2b-access-page {
    min-height: calc(100vh - 88px);
    display: grid;
    align-items: center;
    padding: clamp(66px, 7vw, 92px) 0 clamp(32px, 4vw, 52px);
}

.b2b-access-page.is-dashboard {
    align-items: start;
    padding-top: clamp(62px, 6vw, 88px);
}

.b2b-auth-shell {
    width: min(1140px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(430px, .9fr);
    gap: clamp(20px, 3.6vw, 38px);
    align-items: center;
    padding: clamp(16px, 2.5vw, 28px);
    border-radius: 28px;
    background:
        linear-gradient(120deg, rgba(255, 138, 29, .08), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(248, 250, 252, .86), rgba(255, 255, 255, .96));
    border: 1px solid rgba(15, 23, 42, .06);
}

.b2b-auth-shell.is-register {
    width: min(1080px, 100%);
    grid-template-columns: minmax(0, .78fr) minmax(440px, .9fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: center;
}

.b2b-auth-copy {
    padding: clamp(8px, 2vw, 20px);
}

.b2b-auth-copy h1 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: clamp(40px, 4.5vw, 66px);
    line-height: 1.02;
    letter-spacing: 0;
}

.b2b-auth-shell.is-register .b2b-auth-copy h1 {
    font-size: clamp(34px, 3.6vw, 52px);
}

.b2b-auth-shell.is-register .b2b-auth-copy p {
    font-size: 15px;
    line-height: 1.6;
}

.b2b-auth-copy p,
.b2b-card p {
    max-width: 520px;
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.b2b-benefits {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    max-width: 360px;
}

.b2b-auth-shell.is-register .b2b-benefits {
    gap: 9px;
    margin-top: 20px;
}

.b2b-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 138, 29, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: #344054;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.b2b-auth-shell.is-register .b2b-benefits span {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.b2b-benefits i {
    color: #ff8a1d;
}

.b2b-auth-card,
.b2b-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .11);
}

.b2b-auth-card {
    padding: clamp(26px, 3vw, 38px);
}

.b2b-auth-shell.is-register .b2b-auth-card {
    padding: clamp(22px, 2.4vw, 30px);
}

.b2b-auth-card h2,
.b2b-card h2 {
    color: #111827;
    margin: 8px 0 20px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
}

.b2b-auth-shell.is-register .b2b-auth-card h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 2.7vw, 34px);
}

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

.b2b-auth-shell.is-register .b2b-form {
    gap: 10px 14px;
}

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

.b2b-form label,
.b2b-form span {
    display: block;
}

.b2b-form label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.b2b-form input,
.b2b-form textarea {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    padding: 11px 13px;
    font: inherit;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.b2b-form textarea {
    min-height: 78px;
    resize: vertical;
}

.b2b-auth-shell.is-register .b2b-form textarea {
    min-height: 70px;
}

.b2b-form input:focus,
.b2b-form textarea:focus {
    outline: 3px solid rgba(255, 138, 29, .2);
    border-color: #ff8a1d;
}

.b2b-login-form {
    gap: 18px;
}

/* Avoid iOS focus auto-zoom on agency access forms; keep manual zoom available. */
@media (max-width: 1024px) {
    .b2b-auth-shell.is-login .b2b-login-form input[type="email"],
    .b2b-auth-shell.is-login .b2b-login-form input[type="password"],
    .b2b-auth-shell.is-register .b2b-form input:not([type="hidden"]),
    .b2b-auth-shell.is-register .b2b-form textarea {
        font-size: 16px;
        line-height: 1.5;
    }
}

.b2b-form .field-wide,
.b2b-form button {
    grid-column: 1 / -1;
}

.b2b-form .primary-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a1d, #ff7a00);
    color: #fff;
    font-weight: 700;
    margin-top: 4px;
    box-shadow: 0 18px 38px rgba(255, 138, 29, .3);
    cursor: pointer;
}

.b2b-form .primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(255, 138, 29, .36);
}

.b2b-auth-switch {
    margin: 14px 0 0;
    color: #667085;
    text-align: center;
    font-weight: 700;
}

.b2b-auth-switch a {
    color: #ff8a1d;
    text-decoration: none;
    font-weight: 700;
}

.b2b-auth-switch a:hover {
    text-decoration: underline;
}

.b2b-status-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
}

.b2b-discount-grid {
    display: flex;
    gap: 12px;
}

.b2b-discount-grid span {
    display: grid;
    gap: 4px;
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

.b2b-discount-grid strong {
    color: #ff8a1d;
    font-size: 24px;
}

.b2b-net-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.b2b-dashboard {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.b2b-dashboard-hero,
.b2b-panel {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 54px rgba(15, 23, 42, .07);
}

.b2b-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(20px, 2.4vw, 30px);
    background:
        linear-gradient(135deg, rgba(255, 247, 237, .7), rgba(255, 255, 255, .96) 48%),
        #fff;
}

.b2b-dashboard-hero h1,
.b2b-panel h2 {
    margin: 8px 0;
    color: #111827;
    line-height: 1.05;
    letter-spacing: 0;
}

.b2b-dashboard-hero h1 {
    font-size: clamp(30px, 3.1vw, 44px);
    max-width: 760px;
}

.b2b-dashboard-hero p,
.b2b-panel-head p,
.b2b-empty-state p,
.b2b-booking-main p,
.b2b-message-card p {
    margin: 0;
    color: #667085;
}

.b2b-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.b2b-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.b2b-dashboard-stats > span {
    display: grid;
    gap: 8px;
    min-height: 86px;
    padding: 15px 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
    position: relative;
    overflow: hidden;
}

.b2b-dashboard-stats > span::before {
    content: "";
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #ff8a1d;
}

.b2b-dashboard-stats > span strong {
    color: #ff8a1d;
    font-size: 26px;
    line-height: 1;
}

.b2b-panel {
    padding: clamp(18px, 2.2vw, 26px);
}

.b2b-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.b2b-booking-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: -2px 0 12px;
}

.b2b-booking-filter label {
    display: grid;
    position: relative;
    grid-template-columns: 1fr;
    align-items: center;
}

.b2b-booking-filter label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.b2b-booking-filter i {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff8a1d;
    pointer-events: none;
}

.b2b-booking-filter input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    padding: 0 16px 0 44px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.b2b-booking-filter input:focus {
    outline: 3px solid rgba(255, 138, 29, .16);
    border-color: rgba(255, 138, 29, .58);
}

.b2b-booking-filter-count {
    min-width: 108px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid rgba(255, 138, 29, .2);
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
    white-space: nowrap;
}

.b2b-booking-filter-count strong {
    color: #ff7a00;
    font-size: 18px;
    line-height: 1;
}

.b2b-filter-empty {
    margin-bottom: 12px;
    border: 1px dashed rgba(255, 138, 29, .28);
    border-radius: 16px;
    background: #fff7ed;
}

.b2b-filter-empty[hidden] {
    display: none;
}

.b2b-booking-list,
.b2b-message-list {
    display: grid;
    gap: 12px;
}

.b2b-booking-card {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
}

.b2b-booking-card[open] {
    border-color: rgba(255, 138, 29, .18);
}

.b2b-booking-card summary::-webkit-details-marker,
.b2b-message-card summary::-webkit-details-marker {
    display: none;
}

.b2b-booking-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .58fr) auto;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.b2b-booking-main {
    min-width: 0;
}

.b2b-booking-main > span,
.b2b-message-card > span {
    color: #ff8a1d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.b2b-booking-main h3,
.b2b-message-card h3 {
    margin: 6px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.b2b-booking-meta {
    display: grid;
    gap: 10px;
    color: #475467;
    font-weight: 700;
    justify-items: stretch;
}

.b2b-booking-meta > span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.b2b-date-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
}

.b2b-date-pair > span {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    align-items: center;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 13px;
    background: #f9fafb;
}

.b2b-date-pair > span > i {
    grid-row: 1 / span 2;
}

.b2b-date-pair > span > small {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.b2b-date-pair > span > strong {
    color: #344054;
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
}

.b2b-travelers-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 138, 29, .24);
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.b2b-travelers-trigger small {
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
}

.b2b-travelers-trigger:hover {
    border-color: rgba(255, 138, 29, .44);
    background: #ffedd5;
}

.b2b-booking-meta i {
    color: #ff8a1d;
}

.b2b-booking-finance {
    display: grid;
    grid-template-columns: repeat(3, minmax(94px, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 138, 29, .2);
    border-radius: 16px;
    background: #fff7ed;
}

.b2b-booking-finance > span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .84);
}

.b2b-booking-finance > span > small {
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.b2b-booking-finance > span > strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.b2b-booking-finance > span:last-child strong {
    color: #ff7a00;
}

.b2b-operation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 9px;
    justify-content: start;
    padding-top: 2px;
    align-self: center;
}

.b2b-op-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.b2b-op-pill.ready {
    background: #ecfdf3;
    color: #067647;
}

.b2b-op-pill.pending {
    background: #fff7ed;
    color: #c2410c;
}

.b2b-op-pill.cancelled {
    background: #fef3f2;
    color: #b42318;
}

.b2b-op-pill.muted {
    opacity: .68;
}

.b2b-booking-actions {
    display: flex;
    justify-content: flex-end;
    align-self: center;
}

.b2b-booking-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "meta meta"
        "ops actions";
    gap: 14px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.b2b-booking-details .b2b-booking-meta {
    grid-area: meta;
}

.b2b-booking-details .b2b-operation-grid {
    grid-area: ops;
}

.b2b-booking-details .b2b-booking-actions {
    grid-area: actions;
}

.b2b-accordion-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(255, 138, 29, .24);
    border-radius: 999px;
    background: #fff;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.b2b-accordion-toggle i {
    font-size: 11px;
    transition: transform .18s ease;
}

.b2b-booking-card[open] > .b2b-booking-summary .b2b-accordion-toggle,
.b2b-message-card[open] > .b2b-message-summary .b2b-accordion-toggle {
    border-color: rgba(255, 138, 29, .34);
    background: #fff7ed;
}

.b2b-booking-card[open] > .b2b-booking-summary .b2b-accordion-toggle i,
.b2b-message-card[open] > .b2b-message-summary .b2b-accordion-toggle i {
    transform: rotate(180deg);
}

.b2b-booking-actions .primary-btn,
.b2b-dashboard-actions .primary-btn,
.b2b-dashboard-actions .secondary-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.b2b-booking-actions .primary-btn {
    min-width: 218px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
}

.b2b-dashboard-actions .secondary-btn {
    border: 1px solid rgba(255, 138, 29, .28);
    color: #c2410c;
    background: #fff;
}

.b2b-dashboard-actions .primary-btn {
    border: 1px solid rgba(15, 23, 42, .12);
    color: #111827;
    background: #f9fafb;
    box-shadow: none;
}

.b2b-dashboard-actions .primary-btn:hover {
    border-color: rgba(15, 23, 42, .22);
    background: #111827;
    color: #fff;
}

.b2b-dashboard-actions .secondary-btn:hover {
    border-color: rgba(255, 138, 29, .48);
    background: #fff7ed;
}

.b2b-muted-action {
    color: #98a2b3;
    font-weight: 700;
    white-space: nowrap;
}

.b2b-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 180px;
    text-align: center;
    color: #667085;
}

.b2b-empty-state.compact {
    min-height: 110px;
}

.b2b-empty-state i {
    color: #ff8a1d;
    font-size: 28px;
}

.b2b-empty-state h3 {
    margin: 0;
    color: #111827;
}

.b2b-message-card {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
}

.b2b-message-summary {
    position: relative;
    display: grid;
    gap: 4px;
    padding-right: 142px;
    cursor: pointer;
    list-style: none;
}

.b2b-message-summary .b2b-accordion-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.b2b-message-body {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    color: #344054;
    line-height: 1.65;
}

.b2b-passenger-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 14000;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100% - 28px));
    max-height: min(760px, calc(100vh - 48px));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #111827;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .26);
}

.b2b-passenger-dialog:not([open]) {
    display: none;
}

.b2b-passenger-dialog::backdrop {
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(4px);
}

.b2b-passenger-form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(760px, calc(100vh - 48px));
}

.b2b-dialog-head,
.b2b-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.b2b-dialog-head h3 {
    margin: 6px 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.b2b-dialog-head p {
    margin: 0;
    color: #667085;
}

.b2b-dialog-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.b2b-passenger-list {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 18px 22px;
}

.b2b-passenger-card {
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 16px;
    background: #fff;
}

.b2b-passenger-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

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

.b2b-passenger-card summary span {
    display: grid;
    gap: 3px;
}

.b2b-passenger-card summary strong {
    color: #111827;
}

.b2b-passenger-card summary small {
    color: #667085;
    font-weight: 700;
}

.b2b-passenger-card summary em {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.b2b-passenger-card summary em.complete {
    background: #ecfdf3;
    color: #067647;
}

.b2b-passenger-card summary em.pending {
    background: #fff7ed;
    color: #c2410c;
}

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

.b2b-passenger-grid label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.b2b-passenger-grid input,
.b2b-passenger-grid select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    padding: 10px 12px;
    font: inherit;
}

.b2b-passenger-grid .field-wide {
    grid-column: 1 / -1;
}

.b2b-passenger-grid small {
    color: #667085;
}

.b2b-dialog-actions {
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-bottom: 0;
}

.b2b-dialog-actions .primary-btn,
.b2b-dialog-actions .secondary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.b2b-dialog-actions .secondary-btn {
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
    color: #344054;
}

@media (max-width: 1100px) {
    .b2b-dashboard {
        width: min(1040px, 100%);
        gap: 16px;
    }

    .b2b-dashboard-hero {
        align-items: flex-start;
    }

    .b2b-dashboard-hero h1 {
        font-size: clamp(28px, 3.5vw, 38px);
    }

    .b2b-booking-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .b2b-booking-summary .b2b-booking-finance {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .b2b-date-pair,
    .b2b-booking-finance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .b2b-operation-grid {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .b2b-booking-actions {
        justify-content: flex-start;
    }

    .b2b-booking-details {
        grid-template-columns: 1fr;
        grid-template-areas:
            "meta"
            "ops"
            "actions";
    }
}

@media (max-width: 920px) {
    .b2b-access-page {
        align-items: start;
        padding-top: 76px;
    }

    .b2b-auth-shell,
    .b2b-auth-shell.is-register,
    .b2b-status-card {
        grid-template-columns: 1fr;
    }

    .b2b-auth-copy {
        text-align: center;
        padding-bottom: 0;
    }

    .b2b-auth-copy p {
        margin: 0 auto;
    }

    .b2b-benefits {
        margin: 22px auto 0;
    }

    .b2b-benefits span {
        width: 100%;
        justify-content: center;
    }

    .b2b-dashboard-hero,
    .b2b-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .b2b-booking-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .b2b-booking-filter-count {
        justify-content: flex-start;
    }

    .b2b-dashboard-actions {
        justify-content: flex-start;
    }

    .b2b-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .b2b-booking-finance {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .b2b-access-page {
        padding: 74px 0 36px;
    }

    .b2b-auth-copy h1 {
        font-size: 36px;
    }

    .b2b-auth-card {
        border-radius: 16px;
        padding: 22px;
    }

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

    .b2b-discount-grid {
        flex-direction: column;
    }

    .b2b-dashboard-stats,
    .b2b-operation-grid,
    .b2b-booking-finance,
    .b2b-date-pair {
        grid-template-columns: 1fr;
    }

    .b2b-dashboard-stats > span {
        min-height: 76px;
        padding: 14px;
    }

    .b2b-booking-card {
        padding: 13px;
        border-radius: 16px;
    }

    .b2b-booking-filter {
        gap: 8px;
    }

    .b2b-booking-filter label {
        grid-template-columns: 1fr;
    }

    .b2b-booking-filter input,
    .b2b-booking-filter-count {
        min-height: 42px;
    }

    .b2b-booking-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .b2b-booking-summary .b2b-booking-finance {
        grid-column: 1 / -1;
    }

    .b2b-booking-summary .b2b-accordion-toggle {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    .b2b-message-summary {
        padding-right: 0;
    }

    .b2b-message-summary .b2b-accordion-toggle {
        position: static;
        transform: none;
        justify-self: flex-start;
        margin-top: 6px;
    }

    .b2b-booking-main {
        padding-bottom: 12px;
    }

    .b2b-booking-meta {
        justify-items: stretch;
    }

    .b2b-travelers-trigger {
        width: 100%;
        justify-content: center;
    }

    .b2b-dashboard-actions .primary-btn,
    .b2b-dashboard-actions .secondary-btn,
    .b2b-booking-actions .primary-btn,
    .b2b-dialog-actions .primary-btn,
    .b2b-dialog-actions .secondary-btn {
        width: 100%;
    }

    .b2b-passenger-grid,
    .b2b-dialog-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-passenger-dialog {
        width: calc(100% - 18px);
        max-height: calc(100dvh - 18px);
        border-radius: 18px;
    }

    .b2b-passenger-form {
        max-height: calc(100dvh - 18px);
    }

    .b2b-dialog-head,
    .b2b-dialog-actions {
        padding: 16px;
    }

    .b2b-passenger-list {
        padding: 14px;
    }

    .b2b-passenger-card summary {
        padding: 12px;
    }
}

/* Account typography follows the public homepage hierarchy. */
.b2b-auth-copy :is(h1, h2, h3),
.b2b-auth-card :is(h1, h2, h3),
.b2b-dashboard-hero h1,
.b2b-panel h2,
.b2b-card h2 {
    font-weight: 600;
}
.b2b-benefits span,
.b2b-form label,
.b2b-auth-switch,
.b2b-auth-switch a {
    font-weight: 600;
}
.b2b-auth-copy p,
.b2b-card p {
    font-weight: 400;
}

/* Remaining balance checkout: scoped to agency booking cards only. */
.b2b-balance-payment{margin:14px 0;padding:16px;border:1px solid #ffdfc3;border-radius:16px;background:linear-gradient(135deg,#fff9f2,#fff);min-width:0}
.b2b-booking-details>.b2b-balance-payment,
.b2b-booking-details>.b2b-balance-completed,
.b2b-booking-details>.b2b-balance-review,
.b2b-booking-details>.b2b-balance-wait{grid-column:1/-1;justify-self:stretch;width:100%;margin:0}
.b2b-balance-payment-main{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:14px;align-items:center}
.b2b-balance-lock{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#fff0df;color:#ff881b}
.b2b-balance-copy{min-width:0}.b2b-balance-copy>strong{display:block;font-size:15px;line-height:1.5;color:#101828}
.b2b-balance-copy p{margin:3px 0 6px;color:#667085;font-size:12px;line-height:1.6}
.b2b-balance-amount{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:12px;color:#7a4216;align-items:baseline}.b2b-balance-amount b{font-size:18px;color:#101828}
.b2b-balance-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 18px;border:0;border-radius:12px;background:#000;color:#fff;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;white-space:nowrap}
.b2b-balance-button:disabled{opacity:.6;cursor:wait}.b2b-balance-button:hover:not(:disabled){background:#252525}.b2b-balance-button:focus-visible{outline:3px solid #ff881b;outline-offset:3px}
.b2b-balance-trust{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0 0;font-size:11px;color:#667085;line-height:1.6}
.b2b-balance-visa{font:bold italic 17px Arial,sans-serif;color:#173cde;margin-left:3px}.b2b-balance-mastercard{position:relative;width:30px;height:18px;display:inline-block}
.b2b-balance-mastercard:before,.b2b-balance-mastercard:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;top:0}.b2b-balance-mastercard:before{left:0;background:#eb001b}.b2b-balance-mastercard:after{right:0;background:#ff9900;opacity:.9}
.b2b-balance-status{margin:12px 0 0;font-size:12px;line-height:1.7;color:#894010;overflow-wrap:anywhere}.b2b-balance-status:empty,.b2b-balance-checkout:empty{display:none}
.b2b-balance-checkout{margin-top:14px;border-radius:12px;overflow:hidden;border:1px solid #e3e8ef}.b2b-balance-checkout iframe{display:block;width:100%;height:1180px;border:0;background:#fff}
.b2b-balance-completed,.b2b-balance-review,.b2b-balance-wait{display:flex;align-items:flex-start;gap:8px;margin:16px 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.b2b-balance-completed{color:#008756}.b2b-balance-review,.b2b-balance-wait{color:#894010}.b2b-balance-completed i,.b2b-balance-wait i{margin-top:4px}
@media(max-width:700px){.b2b-balance-payment-main{grid-template-columns:38px minmax(0,1fr);gap:12px}.b2b-balance-lock{width:38px;height:38px}.b2b-balance-button{grid-column:1/-1;width:100%;min-height:48px;font-size:14px;white-space:normal}.b2b-balance-payment{padding:14px}.b2b-balance-copy>strong{font-size:14px}.b2b-balance-checkout iframe{height:1360px}}
