.admin-panel {
            position: fixed;
            z-index: 199;
            background: var(--surface);
            border-top: 1px solid var(--border);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            bottom: 0;
            left: 0;
            right: 0;
            border-radius: 18px 18px 0 0;
            transform: translateY(100%);
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
        }

        .admin-panel.open {
            transform: translateY(0);
        }

        .ap-drag-handle {
            width: 36px;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            margin: 10px auto 0;
        }

        .ap-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 18px 8px;
            border-bottom: 1px solid var(--border);
        }

        .ap-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: 0.02em;
        }

        .ap-close-btn {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 16px;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 5px;
            transition: all 0.12s;
            line-height: 1;
        }

        .ap-close-btn:hover {
            color: var(--text);
            background: var(--surface2);
        }

        .ap-body {
            padding: 14px 18px 28px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .ap-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .ap-section-label {
            font-size: 9px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--muted);
            padding-bottom: 2px;
        }

        /* Date row */
        .ap-date-row {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .ap-date-input {
            flex: 1;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--mono);
            font-size: 13px;
            padding: 10px 12px;
            outline: none;
            transition: border-color 0.15s;
            -webkit-appearance: none;
            appearance: none;
        }

        .ap-date-input:focus {
            border-color: var(--accent);
        }

        .ap-today-btn {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--muted);
            font-family: var(--sans);
            font-size: 12px;
            padding: 10px 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
        }

        .ap-today-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Panel buttons */
        .ap-btn {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 13px;
            font-weight: 500;
            padding: 12px 16px;
            cursor: pointer;
            width: 100%;
            text-align: left;
            transition: all 0.15s;
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 46px;
        }

        .ap-btn:active {
            transform: scale(0.98);
        }

        .ap-btn:hover:not(:disabled) {
            border-color: var(--border);
            background: #252a38;
        }

        .ap-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .ap-btn-primary {
            background: rgba(61, 142, 240, 0.12);
            border-color: rgba(61, 142, 240, 0.3);
            color: var(--accent);
            font-weight: 600;
            font-size: 14px;
            justify-content: center;
            text-align: center;
            min-height: 50px;
        }

        .ap-btn-primary:hover:not(:disabled) {
            background: rgba(61, 142, 240, 0.2);
        }

        .ap-btn-danger {
            background: rgba(224, 92, 92, 0.08);
            border-color: rgba(224, 92, 92, 0.25);
            color: var(--danger);
            justify-content: center;
            text-align: center;
        }

        .ap-btn-danger:hover:not(:disabled) {
            background: rgba(224, 92, 92, 0.15);
        }

        .ap-actions-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
        }

        .ap-btn-action {
            padding: 12px 8px;
            justify-content: center;
            text-align: center;
            font-size: 12px;
            font-weight: 500;
        }

        /* Stats in panel */
        .ap-stats-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            background: var(--bg);
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .ap-stat {
            padding: 12px 4px;
            text-align: center;
            border-right: 1px solid var(--border);
        }

        .ap-stat:last-child {
            border-right: none;
        }

        .ap-stat-val {
            font-family: var(--syne);
            font-size: 22px;
            font-weight: 600;
            color: var(--text);
            line-height: 1;
        }

        .ap-stat-label {
            font-size: 9px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
            margin-top: 4px;
        }

        /* Status message in panel */
        .ap-status {
            font-size: 12px;
            text-align: center;
            min-height: 16px;
            color: var(--success);
            transition: opacity 0.3s;
        }

        .ap-status.err {
            color: var(--danger);
        }

        /* ════════════════════════════════
     FAB — floating action button
  ════════════════════════════════ */
        .fab {
            display: none;
            position: fixed;
            bottom: 24px;
            right: 20px;
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), #3a7ce0);
            color: #fff;
            font-size: 26px;
            line-height: 1;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 24px rgba(77, 150, 247, 0.4), 0 0 0 1px rgba(77, 150, 247, 0.1);
            z-index: 150;
            align-items: center;
            justify-content: center;
            transition: all 0.22s;
            font-family: var(--sans);
        }

        .fab:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 32px rgba(77, 150, 247, 0.55), 0 0 0 1px rgba(77, 150, 247, 0.2);
        }

        .fab:active {
            transform: scale(0.95);
        }

        body.is-admin .fab {
            display: flex;
        }

        /* ════════════════════════════════
     WEATHER BANNER
  ════════════════════════════════ */
        .wx-banner {
            display: none;
            padding: 9px 16px;
            border-bottom: 1px solid rgba(245, 166, 35, 0.35);
            background: rgba(245, 166, 35, 0.1);
            color: #f5a623;
            font-size: 12px;
            gap: 10px;
            align-items: center;
        }

        .wx-banner.show {
            display: flex;
        }

        .wx-banner.severe {
            border-bottom-color: rgba(224, 92, 92, 0.35);
            background: rgba(224, 92, 92, 0.1);
            color: #e05c5c;
        }

        .wx-banner-text {
            flex: 1;
            line-height: 1.4;
        }

        .wx-badge {
            font-family: var(--mono);
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid rgba(245, 166, 35, 0.4);
            background: rgba(245, 166, 35, 0.15);
            white-space: nowrap;
        }

        .wx-banner.severe .wx-badge {
            border-color: rgba(224, 92, 92, 0.4);
            background: rgba(224, 92, 92, 0.15);
        }

        /* Weather pill shown on every port transfer */
        .wx-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            font-family: var(--mono);
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            vertical-align: middle;
            background: rgba(61, 142, 240, 0.12);
            border: 1px solid rgba(61, 142, 240, 0.25);
            color: var(--muted);
        }

        .wx-pill.warn {
            background: rgba(245, 166, 35, 0.15);
            border-color: rgba(245, 166, 35, 0.4);
            color: #f5a623;
        }

        .wx-pill.severe {
            background: rgba(224, 92, 92, 0.15);
            border-color: rgba(224, 92, 92, 0.4);
            color: #e05c5c;
        }



        .add-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 6px;
            font-family: var(--sans);
            font-size: 12px;
            font-weight: 500;
            padding: 7px 14px;
            cursor: pointer;
            transition: opacity 0.15s;
            white-space: nowrap;
        }

        .add-btn:hover {
            opacity: 0.85;
        }

        .add-btn:active {
            transform: scale(0.96);
        }

        .admin-hint {
            font-size: 11px;
            color: rgba(61, 142, 240, 0.5);
            margin-left: auto;
        }

        /* ════════════════════════════════
     CONTENT WRAPPER
  ════════════════════════════════ */
        .content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 12px 12px 80px;
        }

        /* ════════════════════════════════
     MOBILE CARDS
  ════════════════════════════════ */
        .transfers-cards {
            display: flex;
            flex-direction: column;
        }

        /* ══════════════════════════════════════
     MOBILE CARDS — compact, tap-to-detail
  ══════════════════════════════════════ */

        .card {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            position: relative;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            overflow: hidden;
            min-height: 66px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 12px 16px 12px 22px;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        .card:first-child {
            border-radius: 12px 12px 0 0;
            border-top: 1px solid var(--border);
        }

        .card:last-child {
            border-radius: 0 0 12px 12px;
        }

        .card:only-child {
            border-radius: 12px;
        }

        .card:active {
            background: var(--surface2);
            transform: scale(0.97);
            border-radius: 12px;
        }

        .card.past {
            opacity: 0.32;
        }

        /* Left accent bar */
        .card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
        }

        .card.type-arrival::before {
            background: var(--arr-bar);
        }

        .card.type-departure::before {
            background: var(--dep-bar);
        }

        .card.type-special::before {
            background: var(--spc-bar);
        }

        .card.next-up::before {
            background: var(--accent);
        }

        /* Type backgrounds */
        .card.type-arrival {
            background: var(--arr-bg);
        }

        .card.type-departure {
            background: var(--dep-bg);
        }

        .card.type-special {
            background: var(--spc-bg);
        }

        .card.next-up {
            background: var(--next-bg);
        }

        /* "next" pill */
        .next-pill {
            display: inline-flex;
            align-items: center;
            background: var(--accent);
            color: #fff;
            font-family: var(--mono);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 2px 6px;
            border-radius: 3px;
            margin-left: 6px;
            vertical-align: middle;
            flex-shrink: 0;
        }

        /* ── Card row 1: time + route + pax ── */
        .card-row1 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 3px;
        }

        .card-time {
            font-family: var(--mono);
            font-size: 16px;
            font-weight: 500;
            color: var(--text);
            flex-shrink: 0;
            letter-spacing: 0.02em;
            min-width: 46px;
        }

        .card.past .card-time {
            color: var(--muted);
        }

        .card-route {
            flex: 1;
            font-size: 15px;
            font-weight: 500;
            color: var(--text);
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .route-arr {
            color: var(--muted);
            font-size: 11px;
            flex-shrink: 0;
        }

        .card-pax {
            font-family: var(--sans);
            font-size: 15px;
            font-weight: 600;
            width: 36px;
            height: 36px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .pax-badge {
            border-radius: 12px;
            color: #fff !important;
            border: none !important;
            box-shadow: none !important;
        }

        .card-pax.pax-ok, .pax-badge.pax-ok {
            background: var(--success);
            color: #fff;
            border: none;
            box-shadow: none;
        }

        .card-pax.pax-warn, .pax-badge.pax-warn {
            background: var(--warn);
            color: #fff;
            border: none;
            box-shadow: none;
        }

        .card-pax.pax-full, .pax-badge.pax-full {
            background: var(--danger);
            color: #fff;
            border: none;
            box-shadow: none;
        }

        :root.light .card-pax.pax-ok, :root.light .pax-badge.pax-ok {
            background: #1a8040;
            color: #fff;
            border: none;
            box-shadow: none;
        }

        :root.light .card-pax.pax-warn, :root.light .pax-badge.pax-warn {
            background: #d98200;
            color: #fff;
            border: none;
            box-shadow: none;
        }

        :root.light .card-pax.pax-full, :root.light .pax-badge.pax-full {
            background: #d32f2f;
            color: #fff;
            border: none;
            box-shadow: none;
        }

        /* ── Card row 2: dept + driver chip ── */
        .card-row2 {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 54px;
            /* align under route text */
        }

        .card-dept-small {
            flex: 1;
            min-width: 0;
            font-size: 12px;
            color: var(--muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .card-driver-chip {
            flex-shrink: 0;
            font-size: 11px;
            font-weight: 500;
            padding: 2px 8px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }

        .card-driver-chip.assigned {
            background: rgba(61, 142, 240, 0.15);
            color: var(--accent);
        }

        .card-driver-chip.unassigned {
            background: rgba(98, 106, 144, 0.12);
            color: var(--muted);
            font-style: italic;
        }

        :root.light .card-driver-chip.assigned {
            background: #deeaff;
            color: #1a40a0;
        }

        :root.light .card-driver-chip.unassigned {
            background: #ffecc8;
            color: #8a5800;
        }

        .driver-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .driver-dot.ok {
            background: var(--success);
        }

        .driver-dot.no {
            background: var(--warn);
        }

        /* type badge (arrival/departure) on row 1 */
        .type-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 9px;
            font-weight: 600;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            padding: 3px 8px;
            border-radius: 20px;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .type-badge.arrival {
            background: var(--arr-badge-bg);
            color: var(--arr-badge);
        }

        .type-badge.departure {
            background: var(--dep-badge-bg);
            color: var(--dep-badge);
        }

        .type-badge.special {
            background: var(--spc-badge-bg);
            color: var(--spc-badge);
        }

        /* weather pill on card row */
        .wx-pill {
            font-size: 10px;
            font-weight: 600;
            padding: 1px 5px;
            border-radius: 3px;
            background: rgba(61, 142, 240, 0.1);
            color: var(--muted);
            border: 1px solid rgba(61, 142, 240, 0.15);
            flex-shrink: 0;
        }

        .wx-pill.warn {
            background: rgba(245, 166, 35, 0.12);
            color: var(--warn);
            border-color: rgba(245, 166, 35, 0.25);
        }

        .wx-pill.severe {
            background: rgba(224, 92, 92, 0.12);
            color: var(--danger);
            border-color: rgba(224, 92, 92, 0.25);
        }

        /* admin badge on card when driver unset */
        .card-admin-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--warn);
            flex-shrink: 0;
            display: none;
        }

        body.is-admin .card-admin-dot {
            display: block;
        }

        /* ════════════════════════════════
     DETAIL BOTTOM SHEET
  ════════════════════════════════ */
        .detail-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(3px);
            z-index: 195;
        }

        .detail-overlay.visible {
            display: block;
        }

        .detail-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--surface);
            backdrop-filter: blur(20px) saturate(1.3);
            -webkit-backdrop-filter: blur(20px) saturate(1.3);
            border-radius: 20px 20px 0 0;
            border-top: 1px solid var(--glass-border);
            z-index: 196;
            max-height: 92vh;
            overflow-y: auto;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
            overscroll-behavior: contain;
        }

        .detail-sheet.open {
            transform: translateY(0);
        }

        .ds-handle {
            width: 36px;
            height: 4px;
            background: var(--gold-dim);
            border-radius: 2px;
            margin: 10px auto 0;
        }

        /* Header bar: big time + route */
        .ds-head {
            padding: 14px 20px 12px;
            border-bottom: 1px solid var(--border);
        }

        .ds-time-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 4px;
        }

        .ds-time {
            font-family: var(--serif);
            font-size: 34px;
            font-weight: 500;
            color: var(--text);
            letter-spacing: -0.01em;
            line-height: 1;
        }

        .ds-next-pill {
            background: var(--accent);
            color: #fff;
            font-family: var(--mono);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 3px 7px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .ds-close {
            margin-left: auto;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--muted);
            font-size: 14px;
            line-height: 1;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
        }

        .ds-route {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .ds-route-arr {
            color: var(--muted);
            font-size: 13px;
        }

        .ds-type-badge {
            display: inline-flex;
            align-items: center;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 3px 8px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .ds-type-badge.arrival {
            background: var(--arr-badge-bg);
            color: var(--arr-badge);
        }

        .ds-type-badge.departure {
            background: var(--dep-badge-bg);
            color: var(--dep-badge);
        }

        .ds-type-badge.special {
            background: var(--spc-badge-bg);
            color: var(--spc-badge);
        }

        /* Body sections */
        .ds-body {
            padding: 0 20px 32px;
        }

        .ds-section {
            padding: 14px 0;
            border-bottom: 1px solid var(--border);
        }

        .ds-section:last-child {
            border-bottom: none;
        }

        .ds-row {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 10px;
        }

        .ds-row:last-child {
            margin-bottom: 0;
        }

        .ds-label {
            font-family: var(--mono);
            font-size: 9px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
            min-width: 64px;
            flex-shrink: 0;
            padding-top: 2px;
        }

        .ds-val {
            font-size: 15px;
            font-weight: 500;
            color: var(--text);
            flex: 1;
            line-height: 1.4;
        }

        .ds-val.warn {
            color: var(--warn);
            font-style: italic;
        }

        .ds-val.ok {
            color: var(--accent);
        }

        /* Pax + capacity in detail sheet */
        .ds-cap-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ds-pax-big {
            font-family: var(--syne);
            font-size: 28px;
            font-weight: 600;
            width: 52px;
            height: 52px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .ds-pax-big.pax-ok {
            background: #1a6640;
            color: #fff;
        }

        .ds-pax-big.pax-warn {
            background: #a06000;
            color: #fff;
        }

        .ds-pax-big.pax-full {
            background: #b02020;
            color: #fff;
        }

        :root.light .ds-pax-big.pax-ok {
            background: #1a8040;
        }

        :root.light .ds-pax-big.pax-warn {
            background: #c07800;
        }

        :root.light .ds-pax-big.pax-full {
            background: #c02020;
        }

        .ds-cap-bar-wrap {
            flex: 1;
        }

        .ds-cap-track {
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 5px;
        }

        .ds-cap-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.3s;
        }

        .pax-ok .ds-cap-fill,
        .ds-cap-fill.c-ok {
            background: var(--success);
        }

        .pax-warn .ds-cap-fill,
        .ds-cap-fill.c-warn {
            background: var(--warn);
        }

        .pax-full .ds-cap-fill,
        .ds-cap-fill.c-full {
            background: var(--danger);
        }

        .ds-cap-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
        }

        .ds-cap-seats {
            color: var(--muted);
        }

        .ds-cap-status {
            font-weight: 600;
        }

        .c-ok .ds-cap-status {
            color: var(--success);
        }

        .c-warn .ds-cap-status {
            color: var(--warn);
        }

        .c-full .ds-cap-status {
            color: var(--danger);
        }

        /* Luggage warn in sheet */
        .ds-luggage {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(245, 166, 35, 0.1);
            border: 1px solid rgba(245, 166, 35, 0.3);
            border-radius: 10px;
            padding: 10px 14px;
            margin-top: 10px;
        }

        .ds-luggage-icon {
            font-size: 22px;
            flex-shrink: 0;
        }

        .ds-luggage-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--warn);
        }

        .ds-luggage-sub {
            font-size: 11px;
            color: rgba(245, 166, 35, 0.75);
        }

        /* Weather in sheet */
        .ds-wx {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 14px;
            margin-top: 0;
        }

        .ds-wx.ds-wx-warn {
            border-color: rgba(245, 166, 35, 0.4);
            background: rgba(245, 166, 35, 0.06);
        }

        .ds-wx.ds-wx-severe {
            border-color: rgba(224, 92, 92, 0.4);
            background: rgba(224, 92, 92, 0.06);
        }

        .ds-wx-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .ds-wx-ico {
            font-size: 18px;
            flex-shrink: 0;
        }

        .ds-wx-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
        }

        .ds-wx-sky {
            font-size: 11px;
            color: var(--muted);
        }

        .ds-wx-fields {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .ds-wx-field-lbl {
            font-size: 9px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 2px;
        }

        .ds-wx-field-val {
            font-size: 20px;
            font-weight: 600;
            font-family: var(--sans);
            color: var(--text);
            line-height: 1;
        }

        .ds-wx-field-sub {
            font-size: 11px;
            color: var(--muted);
            margin-top: 1px;
        }

        .ds-wx-warn .ds-wx-field-val {
            color: var(--warn);
        }

        .ds-wx-severe .ds-wx-field-val {
            color: var(--danger);
        }

        .ds-wx-note {
            font-size: 11px;
            padding: 8px 10px;
            border-radius: 6px;
            margin-top: 8px;
        }

        .ds-wx-note-warn {
            background: rgba(245, 166, 35, 0.1);
            color: var(--warn);
        }

        .ds-wx-note-severe {
            background: rgba(224, 92, 92, 0.1);
            color: var(--danger);
        }

        /* Ship in sheet */
        .ds-ship {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 14px;
        }

        .ds-ship-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .ds-ship-ico {
            font-size: 18px;
            flex-shrink: 0;
        }

        .ds-ship-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
        }

        .ds-ship-eta {
            font-size: 13px;
            color: var(--muted);
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .ds-ship-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 7px;
            border-radius: 4px;
            font-family: var(--mono);
        }

        .ds-ship-badge.ok {
            background: rgba(63, 207, 142, 0.15);
            color: var(--success);
        }

        .ds-ship-badge.late {
            background: rgba(224, 92, 92, 0.12);
            color: var(--danger);
        }

        .ds-ship-badge.early {
            background: rgba(245, 166, 35, 0.12);
            color: var(--warn);
        }

        .ds-ship-badge.ontime {
            background: rgba(63, 207, 142, 0.12);
            color: var(--success);
        }

        .ds-ship-badge.nodata {
            background: rgba(90, 96, 128, 0.15);
            color: var(--muted);
        }

        /* Admin section in sheet */
        .ds-admin-section {
            display: none;
            padding: 14px 0;
            border-top: 1px solid var(--border);
        }

        body.is-admin .ds-admin-section {
            display: block;
        }

        .ds-admin-label {
            font-size: 9px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 12px;
        }

        .ds-field-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .ds-field-row:last-child {
            margin-bottom: 0;
        }

        .ds-field-lbl {
            font-size: 12px;
            color: var(--muted);
            flex-shrink: 0;
            min-width: 44px;
        }

        .ds-select {
            flex: 1;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 13px;
            padding: 10px 12px;
            outline: none;
            cursor: pointer;
            transition: border-color 0.15s;
            min-height: 44px;
        }

        .ds-select:focus {
            border-color: var(--accent);
        }

        .ds-text-input {
            flex: 1;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 13px;
            padding: 10px 12px;
            outline: none;
            transition: border-color 0.15s;
            min-height: 44px;
        }

        .ds-text-input:focus {
            border-color: var(--accent);
        }

        .ds-custom-row {
            display: none;
            margin-bottom: 10px;
        }

        .ds-custom-row.show {
            display: flex;
        }

        .ds-save-btn {
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-family: var(--sans);
            font-size: 13px;
            font-weight: 500;
            padding: 10px 16px;
            cursor: pointer;
            flex-shrink: 0;
            min-height: 44px;
            transition: opacity 0.15s;
        }

        .ds-save-btn:hover {
            opacity: 0.85;
        }

        .ds-save-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .ds-action-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
        }

        .ds-edit-btn {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 13px;
            font-weight: 500;
            padding: 12px;
            cursor: pointer;
            text-align: center;
            transition: all 0.15s;
            min-height: 48px;
        }

        .ds-edit-btn:hover {
            background: #252a38;
        }

        .ds-del-btn {
            background: rgba(224, 92, 92, 0.08);
            border: 1px solid rgba(224, 92, 92, 0.25);
            border-radius: 10px;
            color: var(--danger);
            font-family: var(--sans);
            font-size: 13px;
            font-weight: 500;
            padding: 12px;
            cursor: pointer;
            text-align: center;
            transition: all 0.15s;
            min-height: 48px;
        }

        .ds-del-btn:hover {
            background: rgba(224, 92, 92, 0.15);
        }

        /* ════════════════════════════════
     DESKTOP TABLE
  ════════════════════════════════ */
        .transfers-cards {
            display: flex;
            flex-direction: column;
        }

        .transfers-table {
            display: none;
        }

        body.desktop .transfers-cards {
            display: none;
        }

        body.desktop .transfers-table {
            display: block;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: visible;
        }

        /* Round the table corners without overflow:hidden by clipping the table itself */
        body.desktop .tbl {
            border-radius: 12px;
        }

        body.desktop .tbl thead tr th:first-child {
            border-top-left-radius: 10px;
        }

        body.desktop .tbl thead tr th:last-child {
            border-top-right-radius: 10px;
        }

        body.desktop .tbl tbody tr:last-child td:first-child {
            border-bottom-left-radius: 10px;
        }

        body.desktop .tbl tbody tr:last-child td:last-child {
            border-bottom-right-radius: 10px;
        }

        /* When thead is stuck (scrolled past table top), remove top corners */
        body.desktop.thead-stuck .tbl thead tr th:first-child {
            border-top-left-radius: 0;
        }

        body.desktop.thead-stuck .tbl thead tr th:last-child {
            border-top-right-radius: 0;
        }

        body.desktop.thead-stuck .transfers-table {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        body.desktop .stats-bar {
            display: none;
        }

        body.desktop .header-stats {
            display: flex;
        }

        body.desktop .content {
            padding: 16px 8px 60px;
        }

        body.desktop .detail-overlay,
        body.desktop .detail-sheet {
            display: none !important;
        }

        body.desktop .add-form-overlay {
            align-items: center;
        }

        body.desktop .add-form {
            border-radius: 14px;
            max-width: 480px;
        }

        body.desktop .add-form.batch-mode {
            max-width: 860px;
        }

        body.desktop .form-field.time-field {
            grid-column: auto;
        }

        /* restore 2-col on desktop */
        /* Reset type-badge to fixed px in table so --u doesn't affect desktop */
        body.desktop .type-badge {
            font-size: 10px;
            padding: 3px 10px;
            margin-bottom: 0;
            margin-right: 8px;
            display: inline-flex;
        }

        /* Desktop admin panel: side drawer from right */
        body.desktop .admin-panel {
            top: 0;
            bottom: 0;
            right: 0;
            left: auto;
            width: 320px;
            border-radius: 0;
            border-top: none;
            border-left: 1px solid var(--border);
            transform: translateX(100%);
            max-height: 100vh;
            box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
        }

        body.desktop .admin-panel.open {
            transform: translateX(0);
        }

        body.desktop .ap-drag-handle {
            display: none;
        }

        body.desktop .fab {
            bottom: 32px;
            right: 32px;
        }

        .tbl {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 17px;
        }

        .tbl thead tr {
            background: var(--surface2);
        }

        .tbl th {
            font-size: 10px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--muted);
            font-weight: 500;
            padding: 14px 18px;
            text-align: left;
            white-space: nowrap;
            position: sticky;
            top: var(--sticky-thead-top, 60px);
            background: var(--surface2);
            box-shadow: 0 1px 0 var(--border);
            z-index: 10;
        }

        .tbl tbody tr.data-row {
            border-bottom: 1px solid var(--border);
            transition: background 0.15s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
        }

        .tbl tbody tr.data-row:hover {
            background: var(--surface2);
            transform: scale(1.005) translateX(4px);
            box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.15);
            z-index: 2;
            position: relative;
        }

        .tbl tbody tr.data-row.past {
            opacity: 0.38;
        }

        .tbl tbody tr.data-row.next-up {
            background: var(--next-bg);
        }

        .tbl tbody tr.data-row.next-up td:first-child {
            border-left: 2px solid var(--accent);
        }

        .tbl tbody tr.data-row.type-arrival td:first-child {
            border-left: 3px solid var(--arr-bar);
        }

        .tbl tbody tr.data-row.type-departure td:first-child {
            border-left: 3px solid var(--dep-bar);
        }

        .tbl tbody tr.data-row.type-special td:first-child {
            border-left: 3px solid var(--spc-bar);
        }

        .tbl tbody tr.data-row.type-arrival {
            background: var(--arr-bg);
        }

        .tbl tbody tr.data-row.type-departure {
            background: var(--dep-bg);
        }

        .tbl tbody tr.data-row.type-special {
            background: var(--spc-bg);
        }

        .tbl td {
            padding: 20px 18px;
            vertical-align: middle;
            color: var(--text);
        }

        .td-time {
            font-family: var(--serif);
            font-size: 24px;
            font-weight: 500;
            white-space: nowrap;
            width: 90px;
        }

        .td-time-inner {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .td-route {
            white-space: nowrap;
            font-weight: 500;
            font-size: 16px;
        }

        .td-dept {
            color: var(--muted);
            font-size: 14px;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .td-details {
            font-size: 15px;
            color: var(--text);
            max-width: 460px;
            font-weight: 400;
        }

        .td-driver {
            min-width: 160px;
            font-size: 15px;
        }

        .td-pax {
            width: 60px;
            text-align: center;
        }

        .td-actions {
            width: 50px;
            text-align: center;
        }

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

        .tbl-driver-select {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 12px;
            padding: 5px 8px;
            outline: none;
            cursor: pointer;
            transition: border-color 0.15s;
            max-width: 130px;
        }

        .tbl-driver-select:focus {
            border-color: var(--accent);
        }

        .tbl-save-btn {
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 500;
            padding: 5px 10px;
            cursor: pointer;
            white-space: nowrap;
            transition: opacity 0.15s;
        }

        .tbl-save-btn:hover {
            opacity: 0.85;
        }

        .tbl-save-btn.saved {
            background: var(--success);
        }

        .tbl-delete-btn {
            background: none;
            border: 1px solid rgba(224, 92, 92, 0.25);
            border-radius: 5px;
            color: var(--danger);
            font-size: 12px;
            width: 28px;
            height: 28px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.15s;
        }

        .tbl tbody tr:hover .tbl-delete-btn {
            opacity: 1;
        }

        .tbl-delete-btn:hover {
            background: rgba(224, 92, 92, 0.1);
        }

        .tbl .next-badge {
            font-size: 7px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            font-family: var(--mono);
        }

        /* ════════════════════════════════
     DESKTOP TABLE — EXPAND ROWS
  ════════════════════════════════ */

        /* Data rows are clickable on desktop */
        body.desktop .tbl tbody tr.data-row {
            cursor: pointer;
            user-select: none;
        }

        /* border-bottom on tr (line below) already covers data rows — no td duplication */
        body.desktop .tbl tbody tr.data-row.expanded td {
            border-bottom-color: transparent;
        }

        body.desktop .tbl tbody tr.data-row.expanded {
            background: var(--surface2) !important;
        }

        body.desktop .tbl tbody tr.data-row.type-arrival.expanded {
            background: rgba(42, 122, 80, 0.2) !important;
        }

        body.desktop .tbl tbody tr.data-row.type-departure.expanded {
            background: rgba(26, 90, 154, 0.2) !important;
        }

        body.desktop .tbl tbody tr.data-row.type-special.expanded {
            background: rgba(120, 50, 140, 0.2) !important;
        }

        /* Expand row */
        .tbl tbody tr.expand-row>td {
            padding: 0;
            border-bottom: none;
            /* suppress ghost line when collapsed; open rule below overrides */
        }

        .tbl tbody tr.expand-row.open>td {
            border-bottom: 1px solid var(--border);
        }

        .tbl tbody tr.expand-row>td {
            background: rgba(255, 255, 255, 0.015);
        }

        .tbl tbody tr.expand-row.type-arrival>td {
            border-left: 3px solid var(--arr-bar);
            background: rgba(42, 122, 80, 0.06);
        }

        .tbl tbody tr.expand-row.type-departure>td {
            border-left: 3px solid var(--dep-bar);
            background: rgba(26, 90, 154, 0.06);
        }

        .tbl tbody tr.expand-row.type-special>td {
            border-left: 3px solid var(--spc-bar);
            background: rgba(120, 50, 140, 0.06);
        }

        .tbl tbody tr.expand-row.next-up>td {
            border-left: 2px solid var(--accent);
        }

        .expand-panel {
            overflow: hidden;
            max-height: 0;
            width: 100%;
            box-sizing: border-box;
            transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .expand-row.open .expand-panel {
            max-height: 900px;
        }

        /* Two-column layout inside panel */
        .expand-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            width: 100%;
            box-sizing: border-box;
            padding: 0 40px 0 40px;
        }

        .exp-left {
            padding: 32px 48px 32px 0;
            border-right: 1px solid var(--border);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px 36px;
            align-content: start;
        }

        .exp-right {
            padding: 32px 0 32px 48px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .exp-f {
            min-width: 0;
        }

        .exp-l {
            font-size: 11px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--muted);
            font-weight: 500;
            margin-bottom: 8px;
        }

        .exp-v {
            font-size: 17px;
            font-weight: 400;
            color: var(--text);
            line-height: 1.5;
        }

        .exp-v.big {
            font-family: var(--serif);
            font-size: 28px;
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .exp-v.bold {
            font-weight: 500;
            font-size: 19px;
        }

        .exp-v.names {
            font-size: 17px;
            line-height: 1.6;
            color: var(--text);
            font-weight: 500;
        }

        /* Capacity bar */
        .cap-bar-track {
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            overflow: hidden;
            margin: 6px 0 6px;
        }

        .cap-bar-fill {
            height: 100%;
            border-radius: 2px;
        }

        .c-ok .cap-bar-fill {
            background: var(--success);
        }

        .c-warn .cap-bar-fill {
            background: var(--warn);
        }

        .c-full .cap-bar-fill {
            background: var(--danger);
        }

        .cap-meta {
            display: flex;
            justify-content: space-between;
        }

        .cap-seats {
            font-size: 14px;
            color: var(--muted);
        }

        .cap-status {
            font-size: 14px;
            font-weight: 600;
        }

        .c-ok .cap-status {
            color: var(--success);
        }

        .c-warn .cap-status {
            color: var(--warn);
        }

        .c-full .cap-status {
            color: var(--danger);
        }

        /* Driver pill */
        .driver-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 14px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
        }

        .driver-pill.assigned {
            background: rgba(63, 207, 142, 0.1);
            color: var(--success);
        }

        .driver-pill.unset {
            background: rgba(245, 166, 35, 0.1);
            color: var(--warn);
            font-style: italic;
        }

        .driver-pill-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .driver-pill.assigned .driver-pill-dot {
            background: var(--success);
        }

        .driver-pill.unset .driver-pill-dot {
            background: var(--warn);
        }

        /* Luggage warning */
        .luggage-warn {
            display: flex;
            align-items: center;
            gap: 14px;
            background: rgba(245, 166, 35, 0.1);
            border: 1px solid rgba(245, 166, 35, 0.3);
            border-radius: 8px;
            padding: 12px 16px;
        }

        .luggage-icon {
            font-size: 22px;
            line-height: 1;
            flex-shrink: 0;
        }

        .luggage-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--warn);
            letter-spacing: 0.01em;
        }

        .luggage-sub {
            font-size: 13px;
            color: rgba(245, 166, 35, 0.75);
            margin-top: 2px;
        }

        /* ── SHIP TRACKING ── */
        .ship-section-mobile {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: rgba(61, 142, 240, 0.07);
            border: 1px solid rgba(61, 142, 240, 0.18);
            border-radius: 8px;
            padding: 10px 12px;
            margin: 4px 0;
        }

        .ship-icon-m {
            font-size: 16px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .ship-detail-m {
            flex: 1;
        }

        .ship-name-m {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
        }

        .ship-eta-m {
            font-size: 12px;
            color: var(--muted);
            margin-top: 3px;
            line-height: 1.5;
        }

        .ship-eta-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 4px;
            vertical-align: middle;
        }

        .ship-eta-badge.late {
            background: rgba(224, 92, 92, 0.15);
            color: var(--danger);
        }

        .ship-eta-badge.delayed {
            background: rgba(224, 92, 92, 0.15);
            color: var(--danger);
        }

        /* alias */
        .ship-eta-badge.ontime {
            background: rgba(63, 207, 142, 0.15);
            color: var(--success);
        }

        .ship-eta-badge.early {
            background: rgba(63, 207, 142, 0.15);
            color: var(--success);
        }

        .ship-eta-badge.nodata {
            background: rgba(90, 96, 128, 0.12);
            color: var(--muted);
        }

        /* Desktop expand ship section */
        .exp-ship {
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: rgba(61, 142, 240, 0.05);
            border: 1px solid rgba(61, 142, 240, 0.15);
            border-radius: 10px;
            padding: 16px 24px;
            margin: 0 40px 16px;
        }

        .exp-ship-header {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .exp-ship-ico {
            font-size: 20px;
        }

        .exp-ship-nm {
            font-family: var(--sans);
            font-size: 18px;
            font-weight: 600;
        }

        .exp-ship-fields {
            display: flex;
            gap: 32px;
            flex-wrap: wrap;
        }

        .exp-ship-field {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .exp-ship-lbl {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--muted);
        }

        .exp-ship-val {
            font-size: 16px;
            font-weight: 500;
            color: var(--text);
        }

        .exp-ship-upd {
            font-size: 11px;
            color: var(--muted);
        }

        /* Weather card inside exp-left — fits the gap, mirrors exp-ship/luggage aesthetic */
        .exp-wx {
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: rgba(61, 142, 240, 0.06);
            border: 1px solid rgba(61, 142, 240, 0.18);
            border-radius: 10px;
            padding: 14px 16px;
        }

        /* Wrapper that spans both exp-left grid columns */
        .exp-wx-wrap {
            grid-column: 1 / -1;
        }

        .exp-wx-warn {
            background: rgba(245, 166, 35, 0.07);
            border-color: rgba(245, 166, 35, 0.28);
        }

        .exp-wx-severe {
            background: rgba(224, 92, 92, 0.07);
            border-color: rgba(224, 92, 92, 0.28);
        }

        .exp-wx-header {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .exp-wx-ico {
            font-size: 20px;
            flex-shrink: 0;
        }

        .exp-wx-title-group {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .exp-wx-title {
            font-family: var(--sans);
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
        }

        .exp-wx-sky {
            font-size: 11px;
            color: var(--muted);
        }

        .exp-wx-fields {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            margin-top: 2px;
        }

        .exp-wx-field {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .exp-wx-lbl {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--muted);
        }

        .exp-wx-val {
            font-size: 16px;
            font-weight: 600;
        }

        .exp-wx-sub {
            font-size: 11px;
            color: var(--muted);
        }

        .exp-wx-note {
            font-size: 12px;
            line-height: 1.5;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
        }

        .exp-wx-note-warn {
            color: #f5a623;
        }

        .exp-wx-note-severe {
            color: #e05c5c;
        }

        /* Ship input in admin expand footer */
        .tbl-ship-input {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 12px;
            padding: 5px 8px;
            outline: none;
            transition: border-color 0.15s;
            width: 150px;
        }

        .tbl-ship-input:focus {
            border-color: var(--accent);
        }

        .tbl-ship-sep {
            width: 1px;
            height: 18px;
            background: var(--border);
            flex-shrink: 0;
            margin: 0 4px;
        }

        /* Admin footer inside expand panel */
        .expand-admin {
            display: none;
            border-top: 1px solid var(--border);
            padding: 10px 26px;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.01);
        }

        body.desktop.is-admin .expand-admin {
            display: flex;
        }

        .exp-adm-label {
            font-size: 10px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--muted);
            flex-shrink: 0;
        }

        /* Pax badge reset for table — globally it's position:absolute for cards */
        body.desktop .td-pax .pax-badge {
            position: static;
            width: auto;
            font-size: 15px;
            padding: 4px 11px;
            display: inline-block;
        }

        /* Chevron column */
        .td-chv {
            width: 32px;
            text-align: center;
            padding-right: 10px !important;
        }

        .tbl-chv {
            display: inline-block;
            font-size: 10px;
            color: var(--muted);
            transition: transform 0.25s ease, color 0.15s;
            pointer-events: none;
        }

        body.desktop tr.expanded .tbl-chv {
            transform: rotate(180deg);
            color: var(--text);
        }

        /* ════════════════════════════════
     PIN OVERLAY
  ════════════════════════════════ */
        .pin-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 200;
            align-items: center;
            justify-content: center;
        }

        .pin-overlay.visible {
            display: flex;
        }

        .pin-box {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 28px 24px;
            width: 280px;
            text-align: center;
        }

        .pin-title {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 6px;
            letter-spacing: 0.04em;
        }

        .pin-subtitle {
            font-size: 11px;
            color: var(--muted);
            margin-bottom: 20px;
        }

        .pin-dots {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .pin-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid var(--border);
            transition: all 0.15s;
        }

        .pin-dot.filled {
            background: var(--accent);
            border-color: var(--accent);
        }

        .pin-dot.error {
            background: var(--danger);
            border-color: var(--danger);
        }

        .pin-pad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 12px;
        }

        .pin-key {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--mono);
            font-size: 16px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.1s;
            user-select: none;
        }

        .pin-key:active {
            background: var(--border);
            transform: scale(0.96);
        }

        .pin-key.del {
            font-size: 14px;
            color: var(--muted);
        }

        .pin-cancel {
            background: none;
            border: none;
            color: var(--muted);
            font-family: var(--sans);
            font-size: 12px;
            cursor: pointer;
            padding: 6px;
            width: 100%;
            transition: color 0.15s;
        }

        .pin-cancel:hover {
            color: var(--text);
        }

        .pin-error-msg {
            font-size: 11px;
            color: var(--danger);
            margin-top: 8px;
            min-height: 16px;
        }

        /* ════════════════════════════════
     ADD FORM OVERLAY
  ════════════════════════════════ */
        .add-form-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 200;
            align-items: flex-end;
            justify-content: center;
        }

        .add-form-overlay.visible {
            display: flex;
        }

        .add-form {
            background: var(--surface);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 16px 16px 0 0;
            padding: 20px 18px 32px;
            width: 100%;
            animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .form-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .form-close {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 18px;
            cursor: pointer;
            padding: 0 4px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 10px;
        }

        .form-field {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .form-field.full {
            grid-column: 1 / -1;
        }

        /* Time and Pax now share width, no overrides needed */

        .form-label {
            font-size: 10px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .form-input,
        .form-select {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 15px;
            padding: 12px 12px;
            outline: none;
            transition: border-color 0.15s;
            width: 100%;
            min-height: 48px;
            /* touch target */
        }

        .form-input:focus,
        .form-select:focus {
            border-color: var(--accent);
        }

        .form-input::placeholder {
            color: var(--muted);
            opacity: 0.5;
        }

        /* ── LOCATION COMBOBOX ── */
        .loc-wrap {
            position: relative;
        }

        .loc-input {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 13px;
            padding: 9px 28px 9px 10px;
            outline: none;
            width: 100%;
            transition: border-color 0.15s;
            box-sizing: border-box;
            cursor: text;
        }

        .loc-input:focus {
            border-color: var(--accent);
        }

        .loc-input.err {
            border-color: var(--danger) !important;
            background: rgba(224, 92, 92, 0.07);
        }

        .loc-arrow {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 10px;
            color: var(--muted);
            pointer-events: none;
        }

        .loc-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 3px);
            left: 0;
            right: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            z-index: 500;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        .loc-dropdown.open {
            display: block;
        }

        .loc-opt {
            padding: 8px 12px;
            font-size: 13px;
            cursor: pointer;
            color: var(--text);
            transition: background 0.1s;
        }

        .loc-opt:hover,
        .loc-opt.active {
            background: rgba(61, 142, 240, 0.12);
            color: var(--accent);
        }

        .loc-opt.hidden {
            display: none;
        }

        /* Inline combobox inside batch table cells */
        .bloc-wrap {
            position: relative;
        }

        .bloc-input {
            background: transparent;
            border: 1px solid transparent;
            border-radius: 5px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 12px;
            padding: 5px 20px 5px 6px;
            outline: none;
            width: 100%;
            transition: border-color 0.15s;
            box-sizing: border-box;
        }

        .bloc-input:focus {
            border-color: var(--accent);
            background: var(--surface2);
        }

        .bloc-input.err {
            border-color: var(--danger) !important;
            background: rgba(224, 92, 92, 0.07);
        }

        .bloc-arrow {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 9px;
            color: var(--muted);
            pointer-events: none;
        }

        .bloc-dropdown {
            display: none;
            position: fixed;
            min-width: 140px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            z-index: 600;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .bloc-dropdown.open {
            display: block;
        }

        .bloc-opt {
            padding: 7px 12px;
            font-size: 12px;
            cursor: pointer;
            color: var(--text);
            transition: background 0.1s;
            white-space: nowrap;
        }

        .bloc-opt:hover,
        .bloc-opt.active {
            background: rgba(61, 142, 240, 0.12);
            color: var(--accent);
        }

        .bloc-opt.hidden {
            display: none;
        }

        .form-submit {
            width: 100%;
            background: linear-gradient(135deg, var(--accent), #3a7ce0);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-family: var(--sans);
            font-size: 14px;
            font-weight: 500;
            padding: 14px;
            cursor: pointer;
            margin-top: 6px;
            transition: opacity 0.2s, transform 0.15s;
        }

        .form-submit:hover {
            opacity: 0.9;
        }

        .form-submit:active:not(:disabled) {
            transform: scale(0.98);
        }

        .form-submit:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* Add form tabs */
        .add-form-tabs {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 12px;
        }

        .add-tab {
            background: none;
            border: none;
            font-family: var(--sans);
            font-size: 13px;
            font-weight: 500;
            color: var(--muted);
            padding: 5px 14px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s;
        }

        .add-tab:hover {
            color: var(--text);
            background: var(--surface2);
        }

        .add-tab.active {
            color: var(--accent);
            background: rgba(61, 142, 240, 0.1);
        }

        /* Batch table */
        .batch-hint {
            font-size: 11px;
            color: var(--muted);
            margin-bottom: 10px;
        }

        .batch-table-wrap {
            overflow-x: auto;
            margin-bottom: 10px;
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        .batch-tbl {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

        .batch-tbl th {
            padding: 7px 8px;
            text-align: left;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--muted);
            border-bottom: 1px solid var(--border);
            white-space: nowrap;
            background: var(--surface2);
        }

        .batch-tbl th:first-child {
            border-radius: 8px 0 0 0;
        }

        .batch-tbl th:last-child {
            border-radius: 0 8px 0 0;
        }

        .batch-tbl td {
            padding: 5px 4px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        .batch-tbl tr:last-child td {
            border-bottom: none;
        }

        .batch-cell-input,
        .batch-cell-select {
            background: transparent;
            border: 1px solid transparent;
            border-radius: 5px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 12px;
            padding: 5px 6px;
            width: 100%;
            outline: none;
            transition: border-color 0.15s;
            min-width: 0;
        }

        .batch-cell-input:focus,
        .batch-cell-select:focus {
            border-color: var(--accent);
            background: var(--surface2);
        }

        .batch-cell-input.err,
        .batch-cell-select.err {
            border-color: var(--danger) !important;
            background: rgba(224, 92, 92, 0.07);
        }

        .batch-tbl td:nth-child(1) {
            width: 86px;
        }

        /* Time */
        .batch-tbl td:nth-child(2) {
            width: 120px;
        }

        /* Dept */
        .batch-tbl td:nth-child(3) {
            width: 120px;
        }

        /* From */
        .batch-tbl td:nth-child(4) {
            width: 120px;
        }

        /* To */
        .batch-tbl td:nth-child(5) {
            width: 52px;
        }

        /* Pax */
        .batch-tbl td:nth-child(6) {
            min-width: 160px;
        }

        /* Details */
        .batch-tbl td:nth-child(7) {
            width: 32px;
            text-align: center;
        }

        .batch-row-del {
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 14px;
            padding: 2px 4px;
            border-radius: 4px;
            transition: all 0.1s;
            line-height: 1;
        }

        .batch-row-del:hover {
            color: var(--danger);
            background: rgba(224, 92, 92, 0.1);
        }

        .batch-add-row-btn {
            background: none;
            border: 1px dashed var(--border);
            color: var(--muted);
            font-family: var(--sans);
            font-size: 12px;
            padding: 7px;
            border-radius: 7px;
            cursor: pointer;
            width: 100%;
            margin-bottom: 10px;
            transition: all 0.15s;
        }

        .batch-add-row-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .batch-row-result {
            font-size: 11px;
            padding-left: 4px;
        }

        .batch-row-result.ok {
            color: var(--success);
        }

        .batch-row-result.err {
            color: var(--danger);
        }

        /* ════════════════════════════════
     EDIT TRANSFER OVERLAY
  ════════════════════════════════ */
        .edit-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 200;
            align-items: flex-end;
            justify-content: center;
        }

        .edit-overlay.visible {
            display: flex;
        }

        .edit-form {
            background: var(--surface);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 16px 16px 0 0;
            padding: 20px 18px 32px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .edit-field-group {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

        .edit-field-group:last-of-type {
            border-bottom: none;
        }

        .edit-field-ico {
            font-size: 16px;
            flex-shrink: 0;
            width: 24px;
            text-align: center;
        }

        .edit-field-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--muted);
            flex-shrink: 0;
            width: 80px;
        }

        .edit-field-val {
            flex: 1;
        }

        .edit-input,
        .edit-select {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 13px;
            padding: 8px 10px;
            outline: none;
            width: 100%;
            transition: border-color 0.15s;
        }

        .edit-input:focus,
        .edit-select:focus {
            border-color: var(--accent);
        }

        .edit-input::placeholder {
            color: var(--muted);
            opacity: 0.5;
        }

        .edit-custom-input {
            display: none;
            margin-top: 6px;
        }

        .edit-custom-input.show {
            display: block;
        }

        .edit-submit {
            width: 100%;
            background: linear-gradient(135deg, var(--accent), #3a7ce0);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-family: var(--sans);
            font-size: 14px;
            font-weight: 500;
            padding: 14px;
            cursor: pointer;
            margin-top: 14px;
            transition: opacity 0.2s, transform 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .edit-submit:hover {
            opacity: 0.85;
        }

        .edit-submit:active:not(:disabled) {
            transform: scale(0.98);
        }

        .edit-submit:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .edit-btn-spin {
            display: none;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        .edit-submit.loading .edit-btn-spin {
            display: block;
        }

        /* Edit button in admin sections */
        .edit-transfer-btn {
            background: rgba(61, 142, 240, 0.12);
            border: 1px solid rgba(61, 142, 240, 0.25);
            color: var(--accent);
            border-radius: 6px;
            font-family: var(--sans);
            font-size: 11px;
            font-weight: 500;
            padding: 5px 10px;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }

        .edit-transfer-btn:hover {
            background: rgba(61, 142, 240, 0.22);
        }

        /* Loading state for save/delete buttons */
        .save-driver-btn:disabled,
        .tbl-save-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .delete-btn:disabled,
        .tbl-delete-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        /* Custom driver inline input */
        .custom-driver-row {
            display: none;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
        }

        .custom-driver-row.show {
            display: flex;
        }

        .custom-driver-input {
            flex: 1;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text);
            font-family: var(--sans);
            font-size: 12px;
            padding: 6px 10px;
            outline: none;
            transition: border-color 0.15s;
        }

        .custom-driver-input:focus {
            border-color: var(--accent);
        }

        /* ════════════════════════════════
     EMPTY / LOADING / TOAST
  ════════════════════════════════ */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--muted);
        }

        .empty-icon {
            font-size: 36px;
            margin-bottom: 12px;
        }

        .empty-text {
            font-size: 13px;
        }

        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
            gap: 10px;
            color: var(--muted);
            font-size: 13px;
        }

        .spin {
            width: 16px;
            height: 16px;
            border: 2px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: var(--surface);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            padding: 12px 20px;
            font-size: 13px;
            color: var(--text);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            white-space: nowrap;
            z-index: 300;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .driver-filter-bar {
            padding: 12px 20px;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .driver-filter-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .driver-filter-select {
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 6px 16px;
            border-radius: 8px;
            font-family: var(--syne);
            font-size: 15px;
            font-weight: 600;
            outline: none;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
        }
        
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ── PULL TO REFRESH & PULSE ANIMATIONS ── */
        .ptr-indicator {
            height: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            color: var(--muted);
            font-size: 20px;
            width: 100%;
            transition: height 0.2s, opacity 0.2s;
        }
        
        .ptr-icon {
            transform-origin: center center;
            transition: transform 0.1s;
        }
        
        .ptr-icon.spinning {
            animation: ptrSpin 1s infinite linear;
        }
        
        @keyframes ptrSpin {
            100% { transform: rotate(360deg); }
        }

        .pulsing {
            animation: pulseGlow 1.5s infinite ease-in-out;
            color: var(--accent) !important;
            text-shadow: 0 0 12px rgba(10, 132, 255, 0.4);
        }

        :root.light .pulsing {
            text-shadow: 0 0 12px rgba(0, 122, 255, 0.3);
        }

        @keyframes pulseGlow {
            0% { opacity: 0.5; }
            50% { opacity: 1; }
            100% { opacity: 0.5; }
        }

        .toast.success {
            border-color: rgba(63, 207, 142, 0.35);
            color: var(--success);
        }

        .toast.error {
            border-color: rgba(224, 92, 92, 0.35);
            color: var(--danger);
        }

        /* ── ANIMATIONS AND EFFECTS ── */
        @keyframes listItemFade {
            0% { opacity: 0; transform: translateY(12px) scale(0.98); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        .anim-item {
            opacity: 0;
            animation: listItemFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
