:root {
    color-scheme: light;
    --ops-bg: #eef3f8;
    --ops-panel: rgba(255, 255, 255, 0.92);
    --ops-panel-strong: #ffffff;
    --ops-ink: #101828;
    --ops-muted: #667085;
    --ops-line: rgba(15, 23, 42, 0.10);
    --ops-line-strong: rgba(15, 23, 42, 0.18);
    --ops-brand: #0f766e;
    --ops-brand-soft: rgba(15, 118, 110, 0.12);
    --ops-gold: #b45309;
    --ops-gold-soft: rgba(180, 83, 9, 0.12);
    --ops-danger: #b42318;
    --ops-danger-soft: rgba(180, 35, 24, 0.12);
    --ops-success: #177245;
    --ops-success-soft: rgba(23, 114, 69, 0.12);
    --ops-shadow: 0 18px 60px rgba(15, 23, 42, 0.16);
    --ops-radius-xl: 30px;
    --ops-radius-lg: 22px;
    --ops-radius-md: 16px;
    --ops-radius-sm: 12px;
    --ops-lane-min: 88px;
    --ops-hour-label-width: 52px;
    --ops-hour-gap: 10px;
    --ops-stack-step: 9px;
    --ops-block-gutter-width: 16px;
    --ops-block-layer-left: calc(var(--ops-hour-label-width) + var(--ops-hour-gap));
}

html, body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%);
    color: var(--ops-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button {
    font: inherit;
}

.rbs-ops-shell-page {
    margin: 0;
}

.rbs-ops-shell-page__main {
    min-height: 100vh;
    padding: 14px;
    box-sizing: border-box;
}

#rbs-ops-shell-root {
    width: min(100%, 520px);
    margin: 0 auto;
    border-radius: 34px;
    background: var(--ops-panel);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: var(--ops-shadow);
    overflow: hidden;
}

.rbs-ops-shell-app {
    min-height: min(100vh - 28px, 980px);
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.06), transparent 26%),
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.rbs-ops-shell-status {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(249, 250, 251, 0.92);
    backdrop-filter: blur(14px);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--ops-muted);
}

.rbs-ops-shell-stage {
    flex: 1;
    min-height: 0;
}

.rbs-ops-shell-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.rbs-ops-shell-header {
    padding: 16px;
    border-radius: var(--ops-radius-xl);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.rbs-ops-shell-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #475467;
}

.rbs-ops-shell-title {
    margin: 0;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.rbs-ops-shell-subtitle {
    margin: 10px 0 0;
    color: var(--ops-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rbs-ops-shell-account-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(8px);
}

.rbs-ops-shell-day-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.rbs-ops-shell-logout {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.rbs-ops-shell-day-control {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.rbs-ops-shell-day-control.is-primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.rbs-ops-shell-day-empty {
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.56);
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.rbs-ops-shell-day-live {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rbs-ops-shell-day-live.is-active {
    border-color: rgba(2, 122, 72, 0.28);
    background: linear-gradient(180deg, rgba(236, 253, 243, 0.95), rgba(255, 255, 255, 0.96));
}

.rbs-ops-shell-day-live__copy {
    flex: 1 1 220px;
    min-width: 0;
}

.rbs-ops-shell-day-live__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667085;
}

.rbs-ops-shell-day-live__status {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 800;
    color: #101828;
}

.rbs-ops-shell-day-live__help {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #667085;
}

.rbs-ops-shell-day-live__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.rbs-ops-shell-day-live__notice {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 247, 237, 0.95);
    border: 1px solid rgba(180, 83, 9, 0.18);
    color: #7a2e0b;
    font-size: 12px;
    line-height: 1.45;
}

.rbs-ops-shell-day-live__today {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.rbs-ops-shell-day-live__modes {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.rbs-ops-shell-day-live__mode {
    min-height: 36px;
    min-width: 52px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rbs-ops-shell-day-live__mode.is-selected {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #101828;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.rbs-ops-shell-day-live.is-active .rbs-ops-shell-day-live__mode.is-selected[data-mode="auto"],
.rbs-ops-shell-day-live.is-active .rbs-ops-shell-day-live__mode.is-selected[data-mode="on"] {
    background: #027a48;
    border-color: #027a48;
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 122, 72, 0.28);
}

.rbs-ops-shell-day-live__mode.is-selected[data-mode="off"] {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
    box-shadow: 0 4px 14px rgba(180, 35, 24, 0.24);
}

.rbs-ops-shell-day-live__mode:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.rbs-ops-shell-day-live__mode:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rbs-ops-shell-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.rbs-ops-shell-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 18px;
}

.rbs-ops-shell-timeline-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--ops-hour-gap);
    overflow: visible;
}

.rbs-ops-shell-block-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--ops-block-layer-left);
    pointer-events: none;
    z-index: 0;
}

.rbs-ops-shell-block-overlay {
    position: absolute;
    left: 0;
    right: 0;
    box-sizing: border-box;
    border-radius: 18px;
    cursor: pointer;
    pointer-events: auto;
}

.rbs-ops-shell-block-overlay-wash {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(180, 83, 9, 0.14);
    border: 1px solid rgba(180, 83, 9, 0.22);
    pointer-events: none;
}

.rbs-ops-shell-block-overlay.is-selected .rbs-ops-shell-block-overlay-wash {
    background: rgba(180, 83, 9, 0.22);
    border-color: rgba(180, 83, 9, 0.42);
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.18);
}

.rbs-ops-shell-block-overlay.is-scope-corridor {
    right: 8%;
    left: 22%;
}

.rbs-ops-shell-block-overlay.is-scope-corridor .rbs-ops-shell-block-overlay-wash {
    background: repeating-linear-gradient(
        135deg,
        rgba(180, 83, 9, 0.10) 0,
        rgba(180, 83, 9, 0.10) 8px,
        rgba(180, 83, 9, 0.03) 8px,
        rgba(180, 83, 9, 0.03) 16px
    );
    border-style: dashed;
    border-color: rgba(180, 83, 9, 0.34);
}

.rbs-ops-shell-block-overlay.is-scope-corridor.is-selected .rbs-ops-shell-block-overlay-wash {
    background: repeating-linear-gradient(
        135deg,
        rgba(180, 83, 9, 0.16) 0,
        rgba(180, 83, 9, 0.16) 8px,
        rgba(180, 83, 9, 0.06) 8px,
        rgba(180, 83, 9, 0.06) 16px
    );
    border-color: rgba(180, 83, 9, 0.48);
}

.rbs-ops-shell-block-overlay.is-scope-corridor .rbs-ops-shell-block-overlay-handle {
    border-left-style: dashed;
}

.rbs-ops-shell-block-overlay-handle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    min-height: 100%;
    padding: 8px 10px 8px 12px;
    border-left: 4px solid rgba(180, 83, 9, 0.72);
    box-sizing: border-box;
}

.rbs-ops-shell-block-overlay-label {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rbs-ops-shell-block-overlay-title {
    font-size: 12px;
    font-weight: 800;
    color: #7a2e0b;
    letter-spacing: 0.02em;
}

.rbs-ops-shell-block-overlay-meta {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(122, 46, 11, 0.82);
    word-break: break-word;
}

.rbs-ops-shell-block-overlay:focus-visible {
    outline: 2px solid rgba(180, 83, 9, 0.45);
    outline-offset: 2px;
}

.rbs-ops-shell-hour {
    display: grid;
    grid-template-columns: var(--ops-hour-label-width) 1fr;
    gap: var(--ops-hour-gap);
    align-items: start;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.rbs-ops-shell-hour-label {
    position: sticky;
    top: 58px;
    align-self: start;
    display: grid;
    gap: 6px;
    padding-top: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #475467;
}

.rbs-ops-shell-hour-label-text {
    display: block;
}

.rbs-ops-shell-hour-block-hit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 24px;
    padding: 2px 4px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.12);
    color: #7a2e0b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.rbs-ops-shell-hour-block-hit:focus-visible {
    outline: 2px solid rgba(180, 83, 9, 0.45);
    outline-offset: 2px;
}

.rbs-ops-shell-hour-track {
    min-height: var(--ops-lane-min);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.rbs-ops-shell-hour-scaffold {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: var(--ops-lane-min);
    width: 100%;
    border-radius: 18px;
    box-sizing: border-box;
    pointer-events: none;
}

.rbs-ops-shell-hour-rides {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

.rbs-ops-shell-hour-rides .rbs-ops-shell-card,
.rbs-ops-shell-hour-rides .rbs-ops-shell-slot-card {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.rbs-ops-shell-slot-card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 14px 12px 12px 14px;
    box-sizing: border-box;
    border-radius: 22px;
    background: var(--ops-panel-strong);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rbs-ops-shell-slot-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--ops-brand);
}

.rbs-ops-shell-slot-card[data-tone="success"]::before {
    background: var(--ops-success);
}

.rbs-ops-shell-slot-card[data-tone="warn"]::before {
    background: var(--ops-gold);
}

.rbs-ops-shell-slot-card[data-tone="danger"]::before {
    background: var(--ops-danger);
}

.rbs-ops-shell-slot-head {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-slot-time-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.rbs-ops-shell-slot-load {
    display: grid;
    gap: 6px;
}

.rbs-ops-shell-slot-load-hero {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--ops-ink);
}

.rbs-ops-shell-slot-load-count {
    font-size: 34px;
    line-height: 1;
}

.rbs-ops-shell-slot-load-divider,
.rbs-ops-shell-slot-load-capacity {
    font-size: 20px;
    line-height: 1;
    color: var(--ops-muted);
}

.rbs-ops-shell-slot-load-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--ops-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rbs-ops-shell-slot-load-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rbs-ops-shell-slot-load-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.88), rgba(23, 114, 69, 0.92));
}

.rbs-ops-shell-slot-route {
    font-size: 15px;
    font-weight: 750;
    color: #344054;
    word-break: break-word;
}

.rbs-ops-shell-slot-tiers {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-tier {
    display: grid;
    gap: 8px;
    padding: 10px 10px 10px 12px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.rbs-ops-shell-tier.has-ride-request {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28), 0 10px 24px rgba(245, 158, 11, 0.18);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.rbs-ops-shell-ride-request {
    display: grid;
    gap: 4px;
    margin: -2px -2px 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 55%, #ea580c 100%);
    color: #fff7ed;
    animation: rbs-ops-ride-request-pulse 1.8s ease-in-out infinite;
}

.rbs-ops-shell-ride-request__title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rbs-ops-shell-ride-request__summary {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

@keyframes rbs-ops-ride-request-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

.rbs-ops-shell-tier-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.rbs-ops-shell-tier-rider {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.rbs-ops-shell-tier-rider strong {
    font-size: 15px;
    line-height: 1.2;
}

.rbs-ops-shell-tier-pax {
    font-size: 12px;
    font-weight: 800;
    color: var(--ops-brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rbs-ops-shell-tier-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.rbs-ops-shell-tier-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 999px;
    background: #fff;
    color: rgba(102, 112, 133, 0.92);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.rbs-ops-shell-tier-star:hover,
.rbs-ops-shell-tier-star:focus-visible {
    border-color: rgba(247, 144, 9, 0.45);
    color: #f79009;
    outline: none;
}

.rbs-ops-shell-tier-star.is-marked {
    border-color: rgba(247, 144, 9, 0.55);
    background: rgba(247, 144, 9, 0.12);
    color: #f79009;
}

.rbs-ops-shell-tier-star:disabled {
    opacity: 0.55;
    cursor: wait;
}

.rbs-ops-shell-tier-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ops-muted);
    margin-bottom: 2px;
}

.rbs-ops-shell-tier-address,
.rbs-ops-shell-tier-contact {
    font-size: 13px;
    line-height: 1.35;
    color: #344054;
    word-break: break-word;
}

.rbs-ops-shell-tier-address a,
.rbs-ops-shell-tier-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rbs-ops-shell-tier-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.rbs-ops-shell-tier-contact-sep {
    color: rgba(102, 112, 133, 0.72);
}

.rbs-ops-shell-tier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rbs-ops-shell-tier-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.rbs-ops-shell-tier-action.is-primary {
    background: var(--ops-brand-soft);
    border-color: rgba(15, 118, 110, 0.18);
    color: var(--ops-brand);
}

.rbs-ops-shell-modal__sheet--compact {
    max-width: 420px;
}

.rbs-ops-shell-modal--sms .rbs-ops-shell-modal__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.rbs-ops-shell-modal--sms .rbs-ops-shell-modal__actions .rbs-ops-shell-modal__button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    text-align: center;
}

.rbs-ops-shell-modal--sms .rbs-ops-shell-modal__footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
}

.rbs-ops-shell-sms-payment-links-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.rbs-ops-shell-sms-payment-links-link:hover,
.rbs-ops-shell-sms-payment-links-link:focus-visible {
    color: #115e59;
}

.rbs-ops-shell-sms-presets {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.rbs-ops-shell-sms-preset {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.rbs-ops-shell-sms-custom-label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #475467;
}

.rbs-ops-shell-sms-custom {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font: inherit;
    resize: vertical;
}

.rbs-ops-shell-sms-status {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475467;
}

.rbs-ops-shell-tier-email {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    word-break: break-word;
    text-align: left;
}

.rbs-ops-shell-tier-email:hover,
.rbs-ops-shell-tier-email:focus-visible {
    color: #0f766e;
}

.rbs-ops-shell-email-preview {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.92);
}

.rbs-ops-shell-email-preview__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #667085;
}

.rbs-ops-shell-email-preview__subject {
    font-size: 12px;
    line-height: 1.4;
    color: #344054;
    word-break: break-word;
}

.rbs-ops-shell-email-preview__body {
    font-size: 13px;
    line-height: 1.5;
    color: #475467;
    white-space: pre-wrap;
    word-break: break-word;
}

.rbs-ops-shell-modal__detail-footnote {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ops-muted);
}

.rbs-ops-shell-empty {
    min-height: var(--ops-lane-min);
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 20px;
    border: 1px dashed rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.48);
    color: #98a2b3;
    font-size: 12px;
}

.rbs-ops-shell-card {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 13px 12px 12px 14px;
    box-sizing: border-box;
    border-radius: 22px;
    background: var(--ops-panel-strong);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rbs-ops-shell-card.is-launchable,
.rbs-ops-shell-card.is-commandable {
    cursor: pointer;
}

.rbs-ops-shell-card.is-launchable:focus-visible,
.rbs-ops-shell-card.is-commandable:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.40);
    outline-offset: 2px;
}

.rbs-ops-shell-card.is-launchable:hover,
.rbs-ops-shell-card.is-commandable:hover {
    transform: translateY(-1px);
}

.rbs-ops-shell-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--ops-brand);
}

.rbs-ops-shell-card[data-tone="success"]::before {
    background: var(--ops-success);
}

.rbs-ops-shell-card[data-tone="warn"]::before {
    background: var(--ops-gold);
}

.rbs-ops-shell-card[data-tone="danger"]::before {
    background: var(--ops-danger);
}

.rbs-ops-shell-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.rbs-ops-shell-card-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.rbs-ops-shell-time {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.rbs-ops-shell-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rbs-ops-shell-chip.on-time,
.rbs-ops-shell-chip.cluster {
    background: var(--ops-brand-soft);
    color: var(--ops-brand);
    border-color: rgba(15, 118, 110, 0.16);
}

.rbs-ops-shell-chip.warn {
    background: var(--ops-gold-soft);
    color: var(--ops-gold);
    border-color: rgba(180, 83, 9, 0.18);
}

.rbs-ops-shell-chip.danger {
    background: var(--ops-danger-soft);
    color: var(--ops-danger);
    border-color: rgba(180, 35, 24, 0.18);
}

.rbs-ops-shell-route {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.rbs-ops-shell-meta {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ops-muted);
}

.rbs-ops-shell-footnote {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #475467;
}

.rbs-ops-shell-denied,
.rbs-ops-shell-unavailable {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.rbs-ops-shell-denied h2,
.rbs-ops-shell-unavailable h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
}

.rbs-ops-shell-denied p,
.rbs-ops-shell-unavailable p {
    margin: 0;
    color: var(--ops-muted);
    line-height: 1.55;
}

.rbs-ops-shell-handoff {
    margin-top: 2px;
    padding: 16px;
    border-radius: var(--ops-radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(246, 248, 250, 0.98) 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rbs-ops-shell-handoff-header {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.rbs-ops-shell-handoff-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #475467;
}

.rbs-ops-shell-handoff-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.rbs-ops-shell-handoff-subtitle {
    margin: 0;
    color: var(--ops-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-handoff-body {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-handoff-note,
.rbs-ops-shell-handoff-date {
    font-size: 13px;
    line-height: 1.5;
    color: #344054;
}

.rbs-ops-shell-handoff-date {
    padding: 10px 12px;
    border-radius: var(--ops-radius-md);
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    font-weight: 700;
}

.rbs-ops-shell-handoff-card {
    padding: 12px 12px 11px;
    border-radius: var(--ops-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rbs-ops-shell-handoff-card.is-preview {
    background: rgba(15, 118, 110, 0.04);
    border-color: rgba(15, 118, 110, 0.14);
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
}

.rbs-ops-shell-handoff-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #344054;
}

.rbs-ops-shell-handoff-card-title {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.rbs-ops-shell-handoff-card.is-preview .rbs-ops-shell-handoff-card-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rbs-ops-shell-handoff-card-meta {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ops-muted);
}

.rbs-ops-shell-handoff-card.is-preview .rbs-ops-shell-handoff-card-meta {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rbs-ops-shell-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(10px);
}

.rbs-ops-shell-modal[aria-hidden="false"] {
    display: flex;
}

@media (min-width: 961px) {
    body.rbs-booking-focus-active .rbs-ops-shell-modal--booking-focus[aria-hidden="false"] {
        z-index: 10000;
        background: transparent;
        backdrop-filter: none;
    }
}

.rbs-ops-shell-modal__backdrop {
    position: absolute;
    inset: 0;
}

.rbs-ops-shell-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(90vh, 940px);
    overflow: auto;
    margin: 12px;
    border-radius: 26px 26px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 -18px 58px rgba(15, 23, 42, 0.28);
    padding: 16px;
    color: #101828;
}

.rbs-ops-shell-modal__sheet--ride {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
}

.rbs-ops-shell-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rbs-ops-shell-modal__eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
    color: #475467;
}

.rbs-ops-shell-modal__title {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.rbs-ops-shell-modal__subtitle {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-modal__close,
.rbs-ops-shell-modal__action {
    min-height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
}

.rbs-ops-shell-modal__body {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rbs-ops-shell-modal__detail-shell {
    display: grid;
    gap: 12px;
}

.rbs-ops-shell-modal__detail-hero {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, rgba(15, 118, 110, 0.03) 100%);
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.rbs-ops-shell-modal__detail-eyebrow {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.rbs-ops-shell-modal__detail-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.rbs-ops-shell-modal__detail-subtitle {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-modal__detail-grid {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-modal__detail-card {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.94);
}

.rbs-ops-shell-modal__detail-card span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rbs-ops-shell-modal__detail-card strong {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

.rbs-ops-shell-modal__detail-note,
.rbs-ops-shell-modal__detail-footnote {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background: rgba(15, 118, 110, 0.06);
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-modal__fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rbs-ops-shell-modal__fact span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.rbs-ops-shell-modal__fact strong {
    text-align: right;
    font-size: 13px;
    font-weight: 800;
}

.rbs-ops-shell-modal__note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.07);
    border: 1px solid rgba(15, 118, 110, 0.12);
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.rbs-ops-shell-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.rbs-ops-shell-add-booking {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.rbs-ops-shell-add-block {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.rbs-ops-shell-modal__sheet--booking {
    max-height: min(88vh, 980px);
    overflow: auto;
}

.rbs-ops-shell-modal__sheet--block {
    max-height: min(88vh, 940px);
}

.rbs-ops-shell-modal__context-grid {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-modal__context-note {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-modal__action-result {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
}

.rbs-ops-shell-modal__action-result[data-tone="success"] {
    border-color: rgba(23, 114, 69, 0.18);
    background: rgba(23, 114, 69, 0.06);
}

.rbs-ops-shell-modal__action-result[data-tone="warning"] {
    border-color: rgba(180, 83, 9, 0.18);
    background: rgba(180, 83, 9, 0.06);
}

.rbs-ops-shell-modal__action-result[data-tone="failed"],
.rbs-ops-shell-modal__action-result[data-tone="error"],
.rbs-ops-shell-modal__action-result[data-tone="blocked"] {
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.06);
}

.rbs-ops-shell-modal__action-result-title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.rbs-ops-shell-modal__action-result-message,
.rbs-ops-shell-modal__action-result-meta {
    font-size: 13px;
    line-height: 1.5;
    color: #475467;
}

.rbs-ops-shell-modal__detail-grid--actions {
    gap: 12px;
}

.rbs-ops-shell-modal__footer-actions {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-modal__footer-actions .rbs-btn {
    width: 100%;
}

.rbs-ops-shell-modal__history--ops {
    gap: 10px;
}

.rbs-ops-shell-modal__action-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.94);
}

.rbs-ops-shell-modal__action-card.is-danger {
    border-color: rgba(180, 35, 24, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 246, 0.96) 100%);
}

.rbs-ops-shell-modal__action-card-title,
.rbs-ops-shell-modal__action-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    color: #101828;
}

.rbs-ops-shell-modal__action-card-meta {
    margin: 0 0 10px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.rbs-ops-shell-action-form {
    display: grid;
    gap: 12px;
}

.rbs-ops-shell-field {
    display: grid;
    gap: 6px;
}

.rbs-ops-shell-field label,
.rbs-ops-shell-field__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #667085;
}

.rbs-ops-shell-field input[type="date"],
.rbs-ops-shell-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #101828;
    font: inherit;
}

.rbs-ops-shell-field textarea {
    min-height: 88px;
    resize: vertical;
}

.rbs-ops-shell-confirm-panel,
.rbs-ops-shell-option-panel {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(248, 250, 252, 0.94);
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.rbs-ops-shell-confirm-panel.is-danger {
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.04);
}

.rbs-ops-shell-confirm-panel__label,
.rbs-ops-shell-option-panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    cursor: pointer;
}

.rbs-ops-shell-confirm-panel__label input[type="checkbox"],
.rbs-ops-shell-option-panel input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: var(--ops-brand);
}

.rbs-ops-shell-confirm-panel.is-danger .rbs-ops-shell-confirm-panel__label input[type="checkbox"] {
    accent-color: var(--ops-danger);
}

.rbs-ops-shell-confirm-panel__copy,
.rbs-ops-shell-option-panel__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rbs-ops-shell-confirm-panel__copy strong,
.rbs-ops-shell-option-panel__copy strong {
    font-size: 14px;
    line-height: 1.25;
    color: #101828;
}

.rbs-ops-shell-confirm-panel__copy span,
.rbs-ops-shell-option-panel__copy span {
    font-size: 12px;
    line-height: 1.45;
    color: #667085;
}

.rbs-ops-shell-confirm-panel:has(input:checked),
.rbs-ops-shell-option-panel:has(input:checked) {
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.06);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.rbs-ops-shell-confirm-panel.is-danger:has(input:checked) {
    border-color: rgba(180, 35, 24, 0.28);
    background: rgba(180, 35, 24, 0.08);
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.10);
}

.rbs-ops-shell-option-stack {
    display: grid;
    gap: 8px;
}

.rbs-ops-shell-action-form__actions {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.rbs-ops-shell-modal__button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #101828;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.rbs-ops-shell-modal__button.is-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.rbs-ops-shell-modal__button.is-danger {
    background: var(--ops-danger);
    border-color: var(--ops-danger);
    color: #fff;
}

.rbs-ops-shell-modal__button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.rbs-ops-shell-modal__actions .rbs-ops-shell-modal__button {
    min-width: 120px;
}

.rbs-ops-shell-modal__status {
    margin: 0 0 10px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.rbs-ops-shell-modal__inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rbs-ops-shell-modal__inline-grid label,
.rbs-ops-shell-modal__action-card label:not(.rbs-ops-shell-modal__checkbox) {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #344054;
}

.rbs-ops-shell-modal__inline-grid input,
.rbs-ops-shell-modal__inline-grid select,
.rbs-ops-shell-modal__action-card textarea,
.rbs-ops-shell-modal__action-card input[type="date"],
.rbs-ops-shell-modal__action-card input[type="time"],
.rbs-ops-shell-modal__action-card input[type="text"],
.rbs-ops-shell-modal__action-card select {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #101828;
}

.rbs-ops-shell-modal__action-card textarea {
    min-height: 88px;
    resize: vertical;
}

.rbs-ops-shell-modal__action-card form {
    display: grid;
    gap: 10px;
}

.rbs-ops-shell-modal__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.rbs-ops-shell-modal__action-card .rbs-ops-shell-modal__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rbs-ops-shell-modal__checkbox input[type="radio"],
.rbs-ops-shell-modal__checkbox input[type="checkbox"] {
    margin: 0;
    width: auto;
    min-height: auto;
    flex-shrink: 0;
}

.rbs-ops-shell-modal__button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rbs-ops-shell-modal__button-row .rbs-btn,
.rbs-ops-shell-modal__button-row .rbs-ops-shell-modal__action {
    flex: 1 1 160px;
}

.rbs-ops-shell-modal__booking-overlap-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.rbs-ops-shell-modal__booking-overlap-list li {
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

.rbs-ops-shell-modal__helper {
    margin: -4px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.rbs-ops-shared-surface {
    display: grid;
    gap: 10px;
}

.rbs-ops-shared-surface__summary,
.rbs-ops-shared-surface__controls {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.86);
}

.rbs-ops-shell-modal__history {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.90);
}

.rbs-ops-shell-modal__history h3 {
    margin: 0;
    font-size: 15px;
}

.rbs-ops-shell-modal__history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.rbs-ops-shell-modal__history th,
.rbs-ops-shell-modal__history td {
    padding: 8px 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: top;
}

.rbs-ops-shell-modal__note.is-error {
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.08);
    color: #7a271a;
}

@media (max-width: 520px) {
    :root {
        --ops-block-layer-left: 0px;
    }

    .rbs-ops-shell-block-layer {
        left: 0;
        right: auto;
        width: var(--ops-block-gutter-width);
    }

    .rbs-ops-shell-hour {
        grid-template-columns: var(--ops-block-gutter-width) 1fr;
        grid-template-rows: auto 1fr;
        column-gap: 8px;
        row-gap: 6px;
    }

    .rbs-ops-shell-hour-label {
        grid-column: 1 / -1;
        grid-row: 1;
        position: static;
        top: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding-top: 0;
    }

    .rbs-ops-shell-hour-label-text {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .rbs-ops-shell-hour-block-hit {
        width: auto;
        flex: 0 1 auto;
    }

    .rbs-ops-shell-hour-track {
        grid-column: 2;
        grid-row: 2;
    }

    .rbs-ops-shell-hour::after {
        content: "";
        grid-column: 1;
        grid-row: 2;
        display: block;
        min-height: var(--ops-lane-min);
        pointer-events: none;
    }

    .rbs-ops-shell-block-overlay.is-scope-corridor {
        right: 0;
        left: 0;
    }

    .rbs-ops-shell-block-overlay {
        overflow: hidden;
    }

    .rbs-ops-shell-block-overlay-handle {
        padding: 0;
        border-left-width: 3px;
    }

    .rbs-ops-shell-block-overlay-label {
        display: none;
    }
}

.rbs-ops-login-page {
    margin: 0;
}

.rbs-ops-login-page__main {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.rbs-ops-login-card {
    width: min(100%, 520px);
    border-radius: 34px;
    background: var(--ops-panel);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: var(--ops-shadow);
    overflow: hidden;
}

.rbs-ops-login-card--gate {
    margin: 0 auto;
}

.rbs-ops-login-card__hero {
    display: grid;
    gap: 8px;
    padding: 22px 20px 18px;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, rgba(15, 118, 110, 0.03) 100%);
    border-bottom: 1px solid rgba(15, 118, 110, 0.10);
}

.rbs-ops-login-card__eyebrow {
    color: var(--ops-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rbs-ops-login-card__title {
    margin: 0;
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.rbs-ops-login-card__subtitle {
    margin: 0;
    color: var(--ops-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rbs-ops-login-card__panel {
    display: grid;
    gap: 14px;
    padding: 18px 20px 22px;
}

.rbs-ops-login-card__points {
    display: grid;
    gap: 8px;
}

.rbs-ops-login-card__point {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ops-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.rbs-ops-login-card__error {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(180, 35, 24, 0.18);
    background: var(--ops-danger-soft);
    color: var(--ops-danger);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.rbs-ops-login-form {
    display: grid;
    gap: 10px;
}

.rbs-ops-login-form__label {
    color: var(--ops-ink);
    font-size: 13px;
    font-weight: 800;
}

.rbs-ops-login-form__input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    color: var(--ops-ink);
    font: inherit;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.rbs-ops-login-form__input:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.rbs-ops-login-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ops-muted);
    font-size: 14px;
    font-weight: 600;
}

.rbs-ops-login-form__remember input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.rbs-ops-login-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 18px;
    border: 1px solid #0f172a;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.rbs-ops-login-form__submit--link {
    text-align: center;
}

.rbs-ops-login-form__submit:hover,
.rbs-ops-login-form__submit:focus-visible {
    background: #111c34;
    border-color: #111c34;
    color: #fff;
    outline: none;
}

.rbs-ops-login-card__footer {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.rbs-ops-login-card__recovery {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--ops-brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.rbs-ops-login-card__recovery:hover,
.rbs-ops-login-card__recovery:focus-visible {
    text-decoration: underline;
    outline: none;
}

.rbs-ops-day-login-required {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 8px 0 18px;
}

.rbs-ops-shell-view-toggle.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.rbs-ops-dispatch-dropbar {
    position: sticky;
    top: 0;
    z-index: 4;
    width: min(100%, 520px);
    margin: 0 auto 10px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rbs-ops-dispatch-dropbar__label {
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #667085;
}

.rbs-ops-dispatch-dropbar__zones {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.rbs-ops-dispatch-dropbar.is-empty {
    text-align: center;
}

.rbs-ops-dispatch-dropbar__empty {
    margin: 0;
    font-size: 0.78rem;
    color: #8c8f94;
}

.rbs-ops-dispatch-dropzone {
    display: grid;
    gap: 2px;
    min-height: 52px;
    border: 1px dashed #c3c4c7;
    border-radius: 10px;
    background: #f6f7f7;
    padding: 8px 10px;
    text-align: center;
}

.rbs-ops-dispatch-dropzone__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d2327;
}

.rbs-ops-dispatch-dropzone__hint {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8c8f94;
}

.rbs-ops-dispatch-dropbar.is-drivers-1 .rbs-ops-dispatch-dropzone {
    flex: 1 1 100%;
}

.rbs-ops-dispatch-dropbar.is-drivers-2 .rbs-ops-dispatch-dropzone {
    flex: 1 1 calc(50% - 4px);
}

.rbs-ops-dispatch-dropbar.is-drivers-3 .rbs-ops-dispatch-dropzone {
    flex: 1 1 calc(33.333% - 6px);
}

.rbs-ops-dispatch-dropbar.is-drivers-many .rbs-ops-dispatch-dropzone {
    flex: 0 0 96px;
}

.rbs-ops-dispatch-dropzone.is-drop-ready {
    border-color: #60a5fa;
    background: #eff6ff;
}

.rbs-ops-dispatch-dropzone.is-drop-hover {
    border-style: solid;
    border-color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18);
}

.rbs-ops-dispatch-board {
    display: grid;
    gap: 6px;
    width: min(100%, 520px);
    margin: 0 auto;
}

.rbs-ops-dispatch-empty {
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
    color: #50575e;
    text-align: center;
}

.rbs-ops-dispatch-row.is-saving {
    opacity: 0.72;
}

.rbs-ops-dispatch-ride {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 0;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
}

.rbs-ops-dispatch-ride.is-dragging {
    opacity: 0.55;
}

.rbs-ops-dispatch-ride__drag {
    appearance: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 44px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f6f7f7;
    color: #667085;
    cursor: grab;
    touch-action: none;
}

.rbs-ops-dispatch-ride__drag:active {
    cursor: grabbing;
}

.rbs-ops-dispatch-ride__grip {
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: -0.12em;
}

.rbs-ops-dispatch-ride__main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rbs-ops-dispatch-ride__line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.rbs-ops-dispatch-ride__time {
    font-size: 0.74rem;
    font-weight: 800;
    color: #1d2327;
}

.rbs-ops-dispatch-ride__rider {
    font-size: 0.86rem;
    font-weight: 700;
    color: #101517;
}

.rbs-ops-dispatch-ride__driver {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1d4ed8;
}

.rbs-ops-dispatch-ride__driver.is-unassigned {
    color: #b45309;
}

.rbs-ops-dispatch-ride__route {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.72rem;
    color: #50575e;
    line-height: 1.25;
}

.rbs-ops-dispatch-ride__arrow {
    color: #8c8f94;
}

.rbs-ops-dispatch-ride__details {
    appearance: none;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    background: #f6f7f7;
    color: #1d2327;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    white-space: nowrap;
}

.rbs-ops-dispatch-ride__status {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    line-height: 1.3;
}

.rbs-ops-dispatch-ride__status.is-error {
    color: #b32d2e;
}

.rbs-ops-dispatch-ride__status.is-success {
    color: #1d4ed8;
}

.rbs-ops-dispatch-drag-ghost {
    position: fixed;
    z-index: 10050;
    transform: translate(-50%, -50%);
    pointer-events: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    background: rgba(239, 246, 255, 0.96);
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

@media (max-width: 520px) {
    .rbs-ops-login-page__main {
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .rbs-ops-login-card,
    .rbs-ops-login-card--gate {
        width: 100%;
        border-radius: 28px;
    }

    .rbs-ops-login-card__hero,
    .rbs-ops-login-card__panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rbs-ops-day-login-required {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}
