/**
 * TransCity customer dashboard
 *
 * Public-facing layout built on the Dispatch Console tokens/components.
 */

.st-dash-wrap.st-client-app {
    width: min(1320px, calc(100% - 32px));
    max-width: 1320px;
    min-height: 0;
    margin: 32px auto 56px;
    padding: 0;
    background: transparent;
    color: var(--stc-text);
    color-scheme: light;
}

html body main#brx-content .brxe-section:has(.st-client-app) {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
}

.brxe-shortcode:has(> .st-client-app) {
    width: min(1320px, 100%);
    max-width: 1320px;
    box-sizing: border-box;
}

.st-client-app *,
.st-client-app *::before,
.st-client-app *::after {
    box-sizing: border-box;
}

.st-client-app .st-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--stc-s5);
    margin-bottom: var(--stc-s6);
    padding: 26px 28px;
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-sm);
}

.st-client-app .st-dash-subtitle {
    color: var(--stc-text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.st-client-app .st-dash-title {
    margin: 2px 0 0;
    color: var(--stc-navy);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.st-client-app .st-dash-header-actions {
    gap: var(--stc-s3);
}

.st-client-app .st-dash-header-actions .stc-btn.is-active {
    border-color: var(--stc-navy);
    background: var(--stc-navy);
    color: var(--stc-surface);
}

.st-client-app .st-dash-header-actions .stc-btn--logout {
    border-color: var(--stc-danger-border);
    color: var(--stc-danger);
}

.st-client-app .st-summary-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr 1fr;
    gap: var(--stc-s5);
    margin-bottom: var(--stc-s5);
}

.st-client-app .st-summary-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 148px;
    padding: 24px;
    position: relative;
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-sm);
}

.st-client-app .st-summary-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--stc-info-bg);
    color: var(--stc-info);
    box-shadow: inset 0 0 0 1px var(--stc-info-border);
    font-size: 24px;
    font-weight: 750;
}

.st-client-app .st-summary-icon svg,
.st-client-app .stcd-ride-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.st-client-app .st-summary-icon--total {
    background: var(--stc-success-bg);
    color: var(--stc-success);
    box-shadow: inset 0 0 0 1px var(--stc-success-border);
}

.st-client-app .st-summary-icon--completed {
    background: var(--stc-violet-bg);
    color: var(--stc-violet);
    box-shadow: inset 0 0 0 1px var(--stc-violet-border);
}

.st-client-app .st-summary-label {
    color: var(--stc-text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.st-client-app .st-summary-value {
    margin-top: 6px;
    color: var(--stc-text);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.st-client-app .st-summary-card:first-child .st-summary-value {
    max-width: 290px;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-client-app .st-summary-card .stc-badge {
    margin-top: 9px;
}

.st-client-app .st-summary-sub {
    margin-top: 6px;
    color: var(--stc-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.st-client-app--profile .st-summary-grid,
.st-client-app--ride .st-summary-grid {
    display: none;
}

.st-client-app .st-rides-toolbar {
    margin: 0 0 var(--stc-s4);
    padding: var(--stc-s4);
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
}

.st-client-app .st-rides-top {
    align-items: center;
    gap: var(--stc-s5);
}

.st-client-app .st-view-switch {
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid var(--stc-border);
    border-radius: 11px;
    background: var(--stc-surface-subtle);
}

.st-client-app .st-view-switch .st-btn {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--stc-navy);
    color: var(--stc-surface);
}

.st-client-app .st-view-switch .st-repeat-btn {
    background: transparent;
    color: var(--stc-text-secondary);
}

.st-client-app .st-status-form {
    min-width: 0;
}

.st-client-app .st-status-form > .st-label {
    display: none;
}

.st-client-app .st-status-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 4px;
    scrollbar-width: thin;
}

.st-client-app .st-status-select-form {
    display: none;
}

.st-client-app .st-status-pill {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stc-border);
    border-radius: 999px;
    background: var(--stc-surface);
    color: var(--stc-text-secondary);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.st-client-app .st-status-pill.active {
    border-color: var(--stc-info);
    background: var(--stc-info);
    color: var(--stc-surface);
}

.st-client-app .st-trip-list {
    display: grid;
    gap: var(--stc-s3);
}

.st-client-app .stcd-ride-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px, .85fr) minmax(280px, 1.6fr) minmax(135px, .72fr) minmax(108px, .58fr) minmax(132px, .62fr);
    align-items: center;
    min-height: 104px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid var(--stc-border);
    border-radius: 12px;
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-sm);
}

.st-client-app .stcd-ride-row--next {
    border-color: var(--stc-info);
}

.st-client-app .stcd-next-label {
    position: absolute;
    inset: 0 auto auto 0;
    padding: 5px 13px;
    border-radius: 0 0 10px 0;
    background: var(--stc-info-bg);
    color: var(--stc-info);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.st-client-app .stcd-ride-date,
.st-client-app .stcd-ride-service {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-client-app .stcd-ride-date {
    padding-right: 18px;
    border-right: 1px solid var(--stc-border);
}

.st-client-app .stcd-ride-row--next .stcd-ride-date {
    padding-top: 12px;
}

.st-client-app .stcd-ride-icon,
.st-client-app .stcd-service-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--stc-info-bg);
    color: var(--stc-info);
    font-size: 17px;
}

.st-client-app .stcd-ride-date small,
.st-client-app .stcd-ride-date strong,
.st-client-app .stcd-ride-total small,
.st-client-app .stcd-ride-total strong {
    display: block;
}

.st-client-app .stcd-ride-date small,
.st-client-app .stcd-ride-total small {
    color: var(--stc-text-secondary);
    font-size: 11px;
}

.st-client-app .stcd-ride-date strong {
    margin-top: 3px;
    color: var(--stc-navy);
    font-size: 17px;
}

.st-client-app .stcd-ride-route {
    display: grid;
    gap: 11px;
    padding: 0 22px;
}

.st-client-app .stcd-ride-route div {
    position: relative;
    min-width: 0;
    padding-left: 24px;
}

.st-client-app .stcd-ride-route div:first-child::after {
    position: absolute;
    top: 15px;
    bottom: -13px;
    left: 7px;
    border-left: 1px dashed var(--stc-border-strong);
    content: "";
}

.st-client-app .stcd-ride-route div > span {
    position: absolute;
    top: 5px;
    left: 2px;
    z-index: 1;
    width: 11px;
    height: 11px;
    border: 3px solid var(--stc-surface);
    border-radius: 50%;
    background: var(--stc-info);
    box-shadow: 0 0 0 1px var(--stc-info);
}

.st-client-app .stcd-ride-route div:last-child > span {
    background: var(--stc-text-secondary);
    box-shadow: 0 0 0 1px var(--stc-text-secondary);
}

.st-client-app .stcd-ride-route strong {
    display: block;
    overflow: hidden;
    color: var(--stc-text);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-client-app .stcd-ride-service {
    color: var(--stc-text);
    font-size: 13px;
    font-weight: 650;
}

.st-client-app .stcd-ride-service .stcd-service-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.st-client-app .stcd-ride-row > .stc-badge {
    justify-self: start;
}

.st-client-app .stcd-ride-total {
    justify-self: end;
    min-width: 122px;
}

.st-client-app .stcd-ride-total strong {
    margin: 1px 0 7px;
    color: var(--stc-navy);
    font-size: 18px;
}

.st-client-app .stcd-ride-total .stc-btn {
    width: 100%;
}

.st-client-app .stcd-ride-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-client-app .stcd-pay-closed {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.st-client-app .st-trip-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 150px;
    min-height: 118px;
    padding: 18px 20px;
    border: 1px solid var(--stc-border);
    border-radius: 12px;
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-sm);
    transition: border-color var(--stc-t-fast) var(--stc-ease), box-shadow var(--stc-t-fast) var(--stc-ease);
}

.st-client-app .st-trip-card:hover {
    border-color: var(--stc-border-strong);
    box-shadow: var(--stc-shadow-md);
}

.st-client-app .st-trip-card:first-child {
    border-color: var(--stc-info);
}

.st-client-app .st-trip-time {
    padding: 6px 20px 6px 0;
    border-right: 1px solid var(--stc-border);
}

.st-client-app .st-date-day {
    color: var(--stc-text-secondary);
    font-size: 13px;
}

.st-client-app .st-date-time {
    margin-top: 5px;
    color: var(--stc-text);
    font-size: 20px;
    font-weight: 700;
}

.st-client-app .st-price-tag {
    margin-top: 10px;
    color: var(--stc-navy);
    font-size: 17px;
    font-weight: 700;
}

.st-client-app .st-status-wrap {
    margin-top: 8px;
}

.st-client-app .st-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--stc-neutral-border);
    border-radius: 999px;
    background: var(--stc-neutral-bg);
    color: var(--stc-text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.st-client-app .st-confirmed,
.st-client-app .st-active,
.st-client-app .st-arrived {
    border-color: var(--stc-info-border);
    background: var(--stc-info-bg);
    color: var(--stc-info);
}

.st-client-app .st-completed {
    border-color: var(--stc-success-border);
    background: var(--stc-success-bg);
    color: var(--stc-success);
}

.st-client-app .st-cancelled,
.st-client-app .st-canceled {
    border-color: var(--stc-danger-border);
    background: var(--stc-danger-bg);
    color: var(--stc-danger);
}

.st-client-app .st-new,
.st-client-app .st-pending {
    border-color: var(--stc-warning-border);
    background: var(--stc-warning-bg);
    color: var(--stc-warning);
}

.st-client-app .st-trip-info {
    min-width: 0;
    padding: 6px 28px;
}

.st-client-app .st-route-line {
    margin: 0 0 9px;
    overflow: hidden;
    color: var(--stc-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-client-app .st-route-line strong {
    display: none;
}

.st-client-app .st-dot {
    margin-right: 8px;
    color: var(--stc-info);
}

.st-client-app .st-dot.st-d {
    color: var(--stc-danger);
}

.st-client-app .st-trip-meta,
.st-client-app .st-trip-chips,
.st-client-app .st-trip-note,
.st-client-app .st-trust-box {
    display: none;
}

.st-client-app .st-trip-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.st-client-app .st-card-actions > :not(.st-view-details-btn) {
    display: none;
}

.st-client-app .st-view-details-btn {
    min-height: 36px;
    border: 1px solid var(--stc-border-strong);
    border-radius: var(--stc-r-button);
    background: var(--stc-surface);
    color: var(--stc-navy);
    box-shadow: none;
}

.st-client-app .st-pagination {
    margin-top: var(--stc-s5);
}

.st-client-app .st-page-btn {
    border-color: var(--stc-border);
    background: var(--stc-surface);
    color: var(--stc-navy);
}

.stcd-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--stc-s5);
    margin-bottom: var(--stc-s5);
}

.stcd-page-head h2 {
    margin: 7px 0 2px;
    color: var(--stc-text);
    font-size: clamp(26px, 4vw, 30px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.stcd-page-head p {
    margin: 0;
    color: var(--stc-text-secondary);
}

.stcd-back-link {
    color: var(--stc-info);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.stcd-detail {
    display: grid;
    gap: var(--stc-s3);
    padding: var(--stc-s4);
}

.stcd-detail > .stc-panel {
    margin: 0;
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-sm);
}

.stcd-detail > .stcd-page-head {
    margin: 0;
    padding: var(--stc-s2) var(--stc-s1) var(--stc-s3);
    border-bottom: 1px solid var(--stc-border);
}

.stcd-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 18px 20px;
}

.stcd-detail-summary > div {
    display: flex;
    gap: 13px;
    min-width: 0;
    padding: 0 24px;
    border-right: 1px solid var(--stc-border);
}

.stcd-detail-summary > div:first-child {
    padding-left: 0;
}

.stcd-detail-summary > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.stcd-summary-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--stc-info-bg);
    color: var(--stc-info);
    font-weight: 750;
}

.stcd-summary-icon svg,
.stcd-service-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.stcd-detail-summary small,
.stcd-facts small,
.stcd-person span {
    display: block;
    color: var(--stc-text-secondary);
    font-size: 12px;
}

.stcd-detail-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--stc-text);
    font-size: 14px;
    line-height: 1.4;
}

.stcd-detail-summary em {
    display: block;
    margin-top: 2px;
    color: var(--stc-success);
    font-size: 12px;
    font-style: normal;
}

.stcd-route-panel {
    padding: 8px 22px;
}

.stcd-route-stop {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    position: relative;
    padding: 18px 0;
    align-items: center;
}

.stcd-route-stop > .stc-btn {
    align-self: center;
}

.stcd-route-stop > .stc-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.stcd-route-stop + .stcd-route-stop {
    border-top: 1px solid var(--stc-border);
}

.stcd-route-dot {
    width: 11px;
    height: 11px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: var(--stc-info);
    box-shadow: 0 0 0 4px var(--stc-info-bg);
}

.stcd-route-stop:not(:last-child) .stcd-route-dot::after {
    content: "";
    width: 1px;
    height: calc(100% + 32px);
    position: absolute;
    top: 11px;
    left: 5px;
    background: var(--stc-border-strong);
}

.stcd-route-stop--dropoff .stcd-route-dot {
    background: var(--stc-danger);
    box-shadow: 0 0 0 4px var(--stc-danger-bg);
}

.stcd-route-stop--waypoint .stcd-route-dot {
    background: var(--stc-warning);
    box-shadow: 0 0 0 4px var(--stc-warning-bg);
}

.stcd-route-stop small {
    display: block;
    color: var(--stc-text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.stcd-route-stop strong,
.stcd-route-stop span {
    display: block;
    margin-top: 3px;
}

.stcd-route-stop > div > span {
    color: var(--stc-text-secondary);
    font-size: 12px;
}

.stcd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    padding: 18px 20px;
}

.stcd-facts > div {
    padding: 3px 20px;
    border-right: 1px solid var(--stc-border);
}

.stcd-facts > div:first-child {
    padding-left: 0;
}

.stcd-facts > div:last-child {
    border-right: 0;
}

.stcd-facts strong {
    display: block;
    margin-top: 3px;
    color: var(--stc-text);
    font-size: 13px;
}

.stcd-people,
.stcd-payment,
.stcd-notes {
    padding: 20px 22px;
}

.stcd-people h3,
.stcd-payment h3,
.stcd-notes h3 {
    margin: 0 0 16px;
    color: var(--stc-text);
    font-size: 15px;
}

.stcd-people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--stc-s5);
}

.stcd-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.stcd-person + .stcd-person {
    padding-left: var(--stc-s5);
    border-left: 1px solid var(--stc-border);
}

.stcd-person-media {
    flex: 0 0 72px;
    width: 72px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--stc-surface-subtle);
    color: var(--stc-info);
    font-size: 20px;
    font-weight: 750;
}

.stcd-person-media--avatar {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--stc-info-bg);
}

.stcd-person-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.stcd-person strong {
    display: block;
    color: var(--stc-text);
    font-size: 14px;
}

.stcd-person a {
    display: inline-block;
    margin-top: 3px;
    color: var(--stc-info);
    font-size: 12px;
    text-decoration: none;
}

.stcd-payment > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    color: var(--stc-text-secondary);
    font-size: 13px;
}

.stcd-payment > div strong {
    color: var(--stc-text);
}

.stcd-payment .stcd-payment-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--stc-border);
    color: var(--stc-text);
    font-size: 15px;
    font-weight: 700;
}

.stcd-payment .stcd-payment-total strong {
    color: var(--stc-navy);
    font-size: 21px;
}

.stcd-notes p {
    margin: 0;
    color: var(--stc-text-secondary);
    font-size: 13px;
}

.stcd-notes .stcd-cancellation-note {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--stc-danger-border);
    border-radius: 9px;
    background: var(--stc-danger-bg);
    color: var(--stc-danger);
}

.stcd-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--stc-s2);
    flex-wrap: wrap;
    padding-top: var(--stc-s2);
}

.st-client-app .stcd-detail-actions .stcd-pay-closed {
    flex: 1 1 100%;
}

.st-client-app .stcd-detail-actions .stc-btn--primary {
    border-color: transparent;
    background: var(--stc-yellow);
    color: var(--stc-navy);
}

.st-client-app .stcd-detail-actions .stc-btn--secondary {
    border-color: var(--stc-border-strong);
    background: var(--stc-surface);
    color: var(--stc-text);
}

.st-client-app .stcd-detail-actions .stc-btn--danger {
    border-color: var(--stc-danger);
    background: var(--stc-danger);
    color: var(--stc-surface);
}

.stcd-empty {
    padding: 48px 24px;
    text-align: center;
}

.stcd-empty__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--stc-warning-bg);
    color: var(--stc-warning);
    font-weight: 800;
}

.stcd-empty h2 {
    margin: 0 0 6px;
}

.stcd-empty p {
    margin: 0 0 20px;
    color: var(--stc-text-secondary);
}

.st-client-app .st-profile-box {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.st-dash-wrap.st-client-app--profile,
.st-dash-wrap.st-client-app--ride {
    width: min(720px, calc(100% - 32px));
    max-width: 720px;
}

.st-client-app--profile .stcd-page-head,
.st-client-app--ride .stcd-page-head {
    margin-bottom: 0;
}

.st-client-app--profile .st-profile-section,
.st-client-app--ride .stc-panel {
    margin-bottom: 0;
    border-radius: 12px;
}

.st-client-app--profile .st-profile-section,
.st-client-app--profile .st-profile-danger,
.st-client-app--ride .stc-panel {
    box-shadow: none;
}

.st-client-app--ride .stcd-detail-summary {
    margin-bottom: 0;
    padding: 14px 16px;
}

.st-client-app--ride .stcd-route-panel {
    padding: 0 16px;
}

.st-client-app--ride .stcd-facts {
    padding: 14px 16px;
}

.st-client-app--ride .stcd-people,
.st-client-app--ride .stcd-payment,
.st-client-app--ride .stcd-notes {
    padding: 16px;
}

.st-client-app--profile .stcd-page-head .stc-btn--primary {
    border-color: var(--stc-info);
    background: var(--stc-info);
    color: var(--stc-surface);
}

.st-client-app .st-profile-section,
.st-client-app .st-profile-danger {
    margin-bottom: var(--stc-s4);
    padding: 24px;
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-sm);
}

.st-client-app .st-profile-section:first-child .st-profile-form {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 16px;
}

.st-client-app .st-profile-section:first-child .st-profile-photo-editor {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    min-height: 220px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.st-client-app .st-profile-section:first-child .st-profile-photo-editor::before {
    align-self: flex-start;
    margin-bottom: 12px;
    color: var(--stc-text);
    content: "Profile Photo";
    font-size: 16px;
    font-weight: 750;
}

.st-client-app .st-profile-photo-preview {
    width: 132px;
    height: 132px;
    font-size: 34px;
}

.st-client-app .st-profile-photo-copy {
    align-items: center;
}

.st-client-app .st-profile-photo-copy > strong {
    display: none;
}

.st-client-app .st-profile-photo-copy > span {
    order: 3;
    margin-top: 7px;
}

.st-client-app .st-profile-photo-button {
    border: 1px solid var(--stc-border-strong);
    background: var(--stc-surface);
    color: var(--stc-info);
}

.st-client-app .st-profile-photo-save[hidden] {
    display: none;
}

.st-client-app .st-profile-section:first-child .st-profile-grid,
.st-client-app .st-profile-section:first-child .st-input-group,
.st-client-app .st-profile-section:first-child .st-profile-save {
    grid-column: 2;
    margin: 0;
}

.st-client-app .st-profile-section:first-child .st-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.st-client-app .st-profile-form > .st-btn:not(.st-btn-muted) {
    width: 100%;
    border-color: var(--stc-info);
    background: var(--stc-info);
    color: var(--stc-surface);
}

.st-client-app .st-profile-password-hint {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--stc-info-border);
    border-radius: var(--stc-r-input);
    background: var(--stc-info-bg);
    color: var(--stc-info);
    font-size: 12px;
    font-weight: 650;
}

.st-client-app .st-profile-disclosure > summary {
    position: relative;
    list-style: none;
}

.st-client-app .st-profile-disclosure > summary::-webkit-details-marker {
    display: none;
}

.st-client-app .st-profile-disclosure > summary::after {
    position: absolute;
    top: 8px;
    right: 3px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--stc-text-secondary);
    border-bottom: 2px solid var(--stc-text-secondary);
    content: "";
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.st-client-app .st-profile-disclosure[open] > summary::after {
    transform: translateY(5px) rotate(225deg);
}

.st-client-app .st-profile-disclosure > .st-profile-form {
    margin-top: 18px;
}

.st-client-app .st-profile-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--stc-s5);
    border-color: var(--stc-danger-border);
    background: var(--stc-danger-bg);
}

.st-client-app .st-profile-title {
    color: var(--stc-text);
    font-size: 18px;
}

.st-client-app .st-profile-help {
    color: var(--stc-text-secondary);
}

.st-client-app .st-input {
    min-height: 42px;
    border: 1px solid var(--stc-border-strong);
    border-radius: var(--stc-r-input);
    background: var(--stc-surface);
    color: var(--stc-text);
    box-shadow: none;
}

.st-client-app .st-input:focus {
    border-color: var(--stc-info);
    box-shadow: var(--stc-focus);
    outline: 0;
}

.st-client-app .st-profile-form > .st-btn:not(.st-btn-muted),
.st-client-app .st-profile-photo-save {
    border: 0;
    background: var(--stc-info);
    color: var(--stc-surface);
    box-shadow: none;
}

.st-client-app .st-profile-danger .st-btn {
    border: 1px solid var(--stc-danger);
    background: transparent;
    color: var(--stc-danger);
}

.st-profile-delete-dialog {
    width: min(460px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-lg);
    color: var(--stc-text);
    font-family: 'City Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.st-profile-delete-dialog::backdrop {
    background: color-mix(in srgb, var(--stc-navy) 48%, transparent);
    backdrop-filter: blur(3px);
}

.st-profile-delete-dialog h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.st-profile-delete-dialog p {
    margin: 0;
    color: var(--stc-text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.st-profile-delete-dialog > div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.st-issue-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 100100;
    padding: 18px;
    background: color-mix(in srgb, var(--stc-navy) 48%, transparent);
    backdrop-filter: blur(3px);
}

.st-issue-overlay.is-open {
    display: flex;
}

.st-issue-dialog {
    width: min(520px, 100%);
    padding: 24px;
    border: 1px solid var(--stc-border);
    border-radius: var(--stc-r-card);
    background: var(--stc-surface);
    box-shadow: var(--stc-shadow-lg);
    color: var(--stc-text);
    font-family: 'City Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.st-issue-dialog h3 {
    margin: 0;
    font-size: 21px;
}

.st-issue-dialog > p {
    margin: 5px 0 18px;
    color: var(--stc-text-secondary);
    font-size: 13px;
}

.st-issue-field {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--stc-text);
    font-size: 13px;
    font-weight: 650;
}

.st-issue-field input,
.st-issue-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--stc-border-strong);
    border-radius: var(--stc-r-input);
    background: var(--stc-surface);
    color: var(--stc-text);
    font: inherit;
    font-weight: 400;
    resize: vertical;
}

.st-issue-field input:focus,
.st-issue-field textarea:focus {
    border-color: var(--stc-info);
    box-shadow: var(--stc-focus);
    outline: 0;
}

.st-issue-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--stc-danger);
    font-size: 12px;
    font-weight: 650;
}

.st-issue-status.is-success {
    color: var(--stc-success);
}

.st-issue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

@media (max-width: 960px) {
    .st-client-app .stcd-ride-row {
        grid-template-columns: minmax(155px, .8fr) minmax(240px, 1.4fr) minmax(105px, .56fr) minmax(126px, .62fr);
    }

    .st-client-app .stcd-ride-service {
        display: none;
    }

    .st-client-app {
        width: min(100% - 24px, 1320px);
        margin-top: 20px;
        padding: 0;
    }

    .st-client-app .st-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-client-app .st-summary-grid .st-summary-card:first-child {
        grid-column: 1 / -1;
    }

    .st-client-app .st-rides-top {
        align-items: stretch;
    }

    .st-client-app .st-trip-card {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .st-client-app .st-trip-action {
        grid-column: 1 / -1;
        padding-top: 14px;
        border-top: 1px solid var(--stc-border);
    }

    .st-client-app .st-view-details-btn {
        width: 100%;
    }

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

    .stcd-detail-summary > div,
    .stcd-detail-summary > div:first-child,
    .stcd-detail-summary > div:last-child {
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid var(--stc-border);
    }

    .stcd-detail-summary > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 680px) {
    .brxe-shortcode:has(> .st-client-app) {
        width: 100%;
        max-width: 100%;
        padding-inline: 12px;
    }

    .st-dash-wrap.st-client-app,
    .st-dash-wrap.st-client-app--profile,
    .st-dash-wrap.st-client-app--ride {
        width: 100%;
        max-width: 100%;
        margin: 16px auto 36px;
    }

    .st-client-app > *,
    .st-client-app .st-form-box,
    .st-client-app form {
        min-width: 0;
        max-width: 100%;
    }

    .st-client-app .st-profile-section:first-child .st-profile-form {
        grid-template-columns: 1fr;
    }

    .st-client-app .st-profile-section:first-child .st-profile-photo-editor,
    .st-client-app .st-profile-section:first-child .st-profile-grid,
    .st-client-app .st-profile-section:first-child .st-input-group {
        grid-column: 1;
        grid-row: auto;
    }

    .st-client-app .st-profile-section:first-child .st-profile-grid {
        grid-template-columns: 1fr;
    }

    .st-client-app .st-profile-section:first-child .st-profile-save {
        grid-column: 1;
    }

    .st-client-app .stcd-ride-row {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 20px 16px;
    }

    .st-client-app .stcd-ride-row--next {
        padding-top: 38px;
    }

    .st-client-app .stcd-ride-date {
        padding: 0;
        border-right: 0;
    }

    .st-client-app .stcd-ride-row--next .stcd-ride-date {
        padding-top: 0;
    }

    .st-client-app .stcd-ride-route {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 14px 0;
        border-top: 1px solid var(--stc-border);
        border-bottom: 1px solid var(--stc-border);
    }

    .st-client-app .stcd-ride-route strong {
        white-space: normal;
    }

    .st-client-app .stcd-ride-total {
        grid-column: 2;
        grid-row: 1;
    }

    .st-client-app .stcd-ride-row > .stc-badge {
        grid-column: 1;
        grid-row: 3;
    }

    .st-client-app .stcd-ride-total .stcd-ride-actions {
        position: absolute;
        right: 16px;
        bottom: 16px;
        align-items: flex-end;
    }

    .st-client-app .stcd-ride-total .stc-btn {
        width: auto;
    }

    .st-client-app .st-dash-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
        padding: 18px;
    }

    .st-client-app .st-dash-greeting {
        display: flex;
        align-items: baseline;
        gap: 5px;
        min-width: 0;
    }

    .st-client-app .st-dash-subtitle {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .st-client-app .st-dash-title {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        font-size: 22px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .st-client-app .st-dash-header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .st-client-app .st-dash-header-actions .stc-btn {
        min-height: 44px;
    }

    .st-client-app .st-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }

    .st-client-app .st-summary-card {
        min-height: 112px;
        gap: 12px;
        padding: 16px;
    }

    .st-client-app .st-summary-grid .st-summary-card:first-child {
        grid-column: 1 / -1;
        min-height: 124px;
    }

    .st-client-app .st-summary-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .st-client-app .st-summary-icon svg {
        width: 20px;
        height: 20px;
    }

    .st-client-app .st-summary-value {
        margin-top: 3px;
        font-size: 20px;
    }

    .st-client-app .st-summary-card:not(:first-child) .st-summary-sub {
        display: none;
    }

    .st-client-app .st-rides-toolbar {
        padding: 12px;
    }

    .st-client-app .st-rides-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .st-client-app .st-view-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .st-client-app .st-view-switch .st-btn {
        min-height: 44px;
    }

    .st-client-app .st-status-buttons {
        display: none;
    }

    .st-client-app .st-status-select-form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

    .st-client-app .st-status-select-form label {
        color: var(--stc-text-secondary);
        font-size: 13px;
        font-weight: 700;
    }

    .st-client-app .st-status-select-form select {
        width: 100%;
        min-height: 44px;
        padding: 0 36px 0 12px;
        border: 1px solid var(--stc-border-strong);
        border-radius: var(--stc-r-input);
        background: var(--stc-surface);
        color: var(--stc-text);
        font: inherit;
        font-size: 16px;
    }

    .st-client-app .st-status-select-form button {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .st-client-app .st-trip-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .st-client-app .st-trip-time {
        padding: 0 0 13px;
        border-right: 0;
        border-bottom: 1px solid var(--stc-border);
    }

    .st-client-app .st-trip-info {
        padding: 14px 0 8px;
    }

    .st-client-app .st-route-line {
        white-space: normal;
    }

    .stcd-page-head {
        flex-direction: column;
        gap: 12px;
    }

    .stcd-route-stop {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .stcd-route-stop .stc-btn {
        grid-column: 2;
        justify-self: start;
    }

    .stcd-facts,
    .stcd-people-grid {
        grid-template-columns: 1fr;
    }

    .stcd-facts > div,
    .stcd-facts > div:first-child {
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px solid var(--stc-border);
    }

    .stcd-facts > div:last-child {
        border-bottom: 0;
    }

    .stcd-person + .stcd-person {
        padding: var(--stc-s4) 0 0;
        border-top: 1px solid var(--stc-border);
        border-left: 0;
    }

    .stcd-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stcd-detail-actions .stc-btn {
        width: 100%;
    }

    .st-issue-actions {
        flex-direction: column-reverse;
    }

    .st-issue-actions .stc-btn {
        width: 100%;
    }

    .st-client-app .st-profile-danger {
        align-items: stretch;
        flex-direction: column;
    }

    .st-client-app .st-profile-section,
    .st-client-app .st-profile-danger {
        padding: 18px;
    }

    .st-client-app .st-profile-section:first-child .st-profile-section-head {
        display: block;
    }

    .st-client-app .st-profile-disclosure > summary {
        min-height: 44px;
        padding: 2px 36px 2px 0;
        cursor: pointer;
    }

    .st-client-app .st-profile-disclosure > summary::after {
        top: 11px;
        right: 6px;
    }

    .st-client-app .st-profile-disclosure > .st-profile-form {
        margin-top: 16px;
    }

    .st-client-app .st-profile-title {
        margin: 0;
        font-size: 17px;
    }

    .st-client-app .st-profile-help {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.45;
    }

    .st-client-app .st-input,
    .st-client-app .st-profile-form button,
    .st-client-app .st-notification-choice {
        min-height: 44px;
    }

    .st-client-app .st-input {
        font-size: 16px;
    }
}

@media (min-width: 681px) {
    .st-client-app .st-profile-section:first-child .st-profile-section-head {
        display: none;
    }

    .st-client-app .st-profile-section:first-child > .st-profile-form {
        margin-top: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    .st-client-app *,
    .st-issue-overlay *,
    .st-cancel-overlay *,
    .st-edit-overlay *,
    .st-rebook-overlay * {
        scroll-behavior: auto;
        animation-duration: .01ms;
        transition-duration: .01ms;
    }
}
.st-booking-change-btn { cursor: pointer; }
.st-booking-change-btn:disabled { opacity: .55; cursor: wait; }

.st-change-overlay { position:fixed; inset:0; z-index:100050; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(9,28,47,.68); opacity:0; visibility:hidden; transition:opacity .18s ease,visibility .18s ease; }
.st-change-overlay.is-open { opacity:1; visibility:visible; }
.st-change-dialog { width:min(760px,100%); max-height:92vh; overflow:auto; padding:26px; border-radius:22px; background:#fff; color:#172b4d; box-shadow:0 28px 80px rgba(6,31,55,.32); transform:translateY(10px); transition:transform .18s ease; }
.st-change-overlay.is-open .st-change-dialog { transform:none; }
.st-change-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding-bottom:16px; border-bottom:1px solid #dbe8f2; }
.st-change-head h3 { margin:3px 0 0; font-size:24px; line-height:1.2; color:#172b4d; }
.st-change-kicker { display:block; color:#087fc0; font-size:11px; line-height:1.2; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.st-change-close { border:0; background:transparent; color:#587086; font-size:28px; line-height:1; cursor:pointer; }
.st-change-intro { margin:16px 0 20px; color:#52677b; }
.st-change-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.st-change-grid--schedule { grid-template-columns:1fr 1fr .8fr; }
.st-change-grid--bags { grid-template-columns:repeat(4,minmax(0,1fr)); }
.st-change-dialog label,.st-change-bags legend { display:flex; flex-direction:column; gap:6px; color:#40566b; font-size:12px; font-weight:800; }
.st-change-dialog input,.st-change-dialog textarea { width:100%; border:1px solid #cbdce9; border-radius:10px; padding:10px 11px; background:#fff; color:#172b4d; font:inherit; font-weight:500; box-sizing:border-box; }
.st-change-dialog input:focus,.st-change-dialog textarea:focus { outline:0; border-color:#0991df; box-shadow:0 0 0 3px rgba(9,145,223,.14); }
.st-change-bags { margin:16px 0; padding:14px; border:1px solid #dbe8f2; border-radius:14px; }
.st-change-bags legend { padding:0 7px; color:#172b4d; }
.st-change-wide { margin-top:14px; }
.st-change-review,.st-change-current { margin-top:18px; padding:17px; border:1px solid #bcdcf0; border-radius:15px; background:#f4faff; }
.st-change-review h4,.st-change-current h4 { margin:0 0 12px; color:#172b4d; }
.st-change-review>div:not(.st-change-price) { display:grid; grid-template-columns:1fr 1.25fr auto 1.25fr; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #d9eaf5; font-size:13px; }
.st-change-review>div>strong { text-transform:capitalize; }
.st-change-review>div>b,.st-change-price>b { color:#0991df; }
.st-change-price { display:flex; align-items:center; justify-content:center; gap:24px; padding:16px 0 4px; }
.st-change-price span { display:flex; flex-direction:column; gap:3px; color:#587086; font-size:12px; }
.st-change-price strong { color:#172b4d; font-size:20px; }
/* Advisory availability warning: visible, but never styled as a blocker. */
.st-change-notice { margin:14px 0 0; padding:11px 13px; border-left:3px solid #f2b705; border-radius:9px; background:#fff8df; color:#5c4a00; font-size:13px; line-height:1.5; }
.st-change-status { min-height:22px; margin:14px 0 0; color:#8a4b00; font-weight:700; }
.st-change-status[data-kind="error"] { color:#b42318; }
.st-change-status[data-kind="success"] { color:#087a4b; }
.st-change-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:18px; padding-top:16px; border-top:1px solid #dbe8f2; }
@media(max-width:640px){.st-change-overlay{padding:0;align-items:flex-end}.st-change-dialog{max-height:96vh;border-radius:20px 20px 0 0;padding:20px}.st-change-grid,.st-change-grid--schedule,.st-change-grid--bags{grid-template-columns:1fr 1fr}.st-change-grid--route{grid-template-columns:1fr}.st-change-review>div:not(.st-change-price){grid-template-columns:1fr 1fr}.st-change-review>div>b{display:none}.st-change-price{justify-content:space-between;gap:10px}.st-change-actions .stc-btn{flex:1 1 42%}}
@media(prefers-reduced-motion:reduce){.st-change-overlay,.st-change-dialog{transition:none}}
