:root {
    --glass: rgba(18, 19, 24, 0.88);
    --glass2: rgba(25, 27, 36, 0.95);
    --brand: #3b66f5;
    --brand-glow: rgba(59, 102, 245, 0.4);
    --cyan: #6df7f2;
    --ok: #23ca63;
    --warn: #ff6a11;
    --bad: #da4447;
    --gold: #ffc107;
    --text: #fff;
    --muted: #838a9b;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    --lcd-bg: #0a140f;
    --lcd-text: #5ee89a;
    --lcd-dim: #2d6b47;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%; height: 100%; overflow: hidden;
    background: transparent !important;
    font-family: 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

body.preview-mode {
    background: linear-gradient(165deg, #08090d, #13151c) !important;
}

#cef-app { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; color: var(--text); }
#cef-app.active { pointer-events: auto; }
#cef-app button { border: none; outline: none; font-family: inherit; cursor: pointer; }
#cef-app h2, #cef-app h3, #cef-app p { color: var(--text); }
#cef-app strong, #cef-app b { color: #fff; font-weight: 800; }
#cef-app .contract__paper,
#cef-app .contract__paper p,
#cef-app .contract__paper li,
#cef-app .contract__paper span { color: #2a2a2a !important; }
#cef-app .contract__paper b,
#cef-app .contract__paper strong { color: #111 !important; font-weight: 800; }
#cef-app .contract__header > div:last-child { color: #2a2a2a !important; }
#cef-app .contract__doc-num,
#cef-app .contract__doc-num span { color: #666 !important; }
#cef-app .contract__clauses li { color: #444 !important; }
#cef-app .contract__sign-lbl { color: #555 !important; }
#cef-app .inspect__score b { color: #fff !important; }
#cef-app .validator__passenger-name,
#cef-app .validator__progress-text,
#cef-app .validator__device-brand,
#cef-app .validator__verdict,
#cef-app .validator__result-title,
#cef-app .validator__result-sub,
#cef-app .validator__btn span,
#cef-app .validator__btn-key { color: inherit !important; }
#cef-app .validator__passenger-name { color: #fff !important; }
#cef-app .validator__passenger-seat { color: #ffb800 !important; }
#cef-app .validator__ticket-route,
#cef-app .validator__ticket-serial,
#cef-app .validator__ticket-bottom,
#cef-app .validator__ticket-date,
#cef-app .validator__ticket-stamp { color: inherit !important; }

#dev_bar {
    position: fixed; left: 10px; top: 10px; z-index: 9999;
    display: flex; flex-wrap: wrap; gap: 5px; pointer-events: auto;
}
#dev_bar button {
    padding: 5px 10px; border-radius: 6px;
    background: var(--glass2); border: 1px solid var(--border);
    color: var(--muted); font-size: 10px; font-weight: 700;
}
#dev_bar button:hover, #dev_bar button.active { color: #fff; border-color: var(--brand); }

body:not(.preview-mode) #dev_bar { display: none !important; }

/* ═══ БЛОК ВОДІЯ ═══ */
#bus_hud {
    position: fixed; right: 22px; top: 50%;
    transform: translateY(-50%);
    display: none; pointer-events: auto; z-index: 50;
}
#bus_hud.visible { display: block; }

.driver-unit { display: flex; align-items: center; gap: 10px; flex-direction: row; }

.bkc__bezel {
    width: 284px;
    background: linear-gradient(180deg, #2e3138, #1a1c22 15%, #14161a);
    border: 2px solid #3a3f4a; border-radius: 10px;
    padding: 8px; box-shadow: var(--shadow);
}
#bus_hud.bus-hud--warn .bkc__bezel { border-color: rgba(255, 106, 17, 0.5); }
#bus_hud.bus-hud--danger .bkc__bezel { border-color: rgba(218, 68, 71, 0.55); }

.bkc__plate {
    display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px;
}
.bkc__model { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: #6a7080; }
.bkc__online {
    margin-left: auto; display: flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 900; color: var(--ok); letter-spacing: 1px;
}
.bkc__online i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 6px var(--ok); animation: blink 2s ease infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.bkc__fold {
    background: #252830; border: 1px solid #3a3f4a; color: var(--muted);
    width: 22px; height: 20px; border-radius: 4px; font-size: 10px; margin-left: 6px;
}

.bkc__lcd {
    background: var(--lcd-bg); border: 3px inset #0d2818; border-radius: 4px;
    padding: 10px 12px; font-family: Consolas, monospace;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
}
.bkc__lcd-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.bkc__lcd-row:last-child { margin-bottom: 0; }
.bkc__lcd-row--route { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--lcd-dim); }
.bkc__lcd-row--split { flex-direction: row; justify-content: space-between; gap: 12px; }
.bkc__lcd-row--split > div { flex: 1; }
.bkc__lcd-lbl { font-size: 8px; font-weight: 700; letter-spacing: 1.2px; color: var(--lcd-dim); }
.bkc__lcd-val { font-size: 13px; font-weight: 700; color: var(--lcd-text); }
.bkc__lcd-val em { font-style: normal; font-size: 18px; font-weight: 900; color: #7dffc0; margin-right: 6px; }
.bkc__lcd-val--big { font-size: 16px; font-weight: 800; }

.bkc__status { display: flex; gap: 6px; margin-top: 8px; }
.bkc__stat {
    flex: 1; background: #1e2128; border: 1px solid #333; border-radius: 6px;
    padding: 7px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.bkc__stat--comfort { flex: 1.4; }
.bkc__stat--mini { flex: 1; align-items: center; text-align: center; padding: 7px 6px; }
.bkc__stat-lbl {
    font-size: 7px; font-weight: 700; letter-spacing: 0.4px; color: #6a7080;
    text-transform: uppercase; line-height: 1.2;
}
.bkc__stat--mini .bkc__stat-lbl { font-size: 6.5px; }
.bkc__bar { height: 4px; background: #111; border-radius: 2px; overflow: hidden; }
.bkc__bar div { height: 100%; background: var(--ok); border-radius: 2px; transition: 0.3s; }
.bkc__stat-num {
    font-family: Consolas, monospace; font-size: 13px; font-weight: 900; color: #c8cdd8;
}
.bkc__stat--comfort .bkc__stat-num { font-size: 12px; color: var(--lcd-text); }

#bus_hud.collapsed .bkc__lcd, #bus_hud.collapsed .bkc__status { display: none; }

/* Апаратні кнопки [ ] */
.hw-keys {
    display: flex; flex-direction: column; gap: 8px; justify-content: center;
}

.hw-key {
    width: 52px; height: 52px; border-radius: 8px;
    background: linear-gradient(180deg, #3a3f4a 0%, #252830 40%, #1a1c22 100%);
    border: 2px solid #4a5060; border-bottom-width: 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; transition: 0.1s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hw-key:active, .hw-key.active {
    transform: translateY(2px); border-bottom-width: 2px;
    background: linear-gradient(180deg, #2a4fd4, #1e3a9e);
    border-color: var(--brand); box-shadow: 0 0 12px var(--brand-glow);
}
.hw-key__cap {
    font-family: Consolas, monospace; font-size: 18px; font-weight: 900; color: #e8ecf4;
    line-height: 1;
}
.hw-key__lbl { font-size: 7px; font-weight: 800; letter-spacing: 0.5px; color: #8b92a3; }
.hw-key.active .hw-key__lbl, .hw-key:active .hw-key__lbl { color: #c8d4ff; }
.hw-key--letter .hw-key__cap { font-size: 16px; font-family: 'Segoe UI', Arial, sans-serif; }
.hw-key--letter .hw-key__lbl { font-size: 6.5px; letter-spacing: 0.3px; }
.hw-key--wide { width: 56px; min-height: 58px; padding: 4px 2px; gap: 1px; }
.hw-key__lbl--sm { font-size: 5.5px; line-height: 1.1; letter-spacing: 0.15px; }

/* ═══ ПЛАНШЕТ ═══ */
#bus_tablet {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: rgba(6, 7, 10, 0.65); pointer-events: auto; backdrop-filter: blur(4px);
}
#bus_tablet.visible { display: flex; }

.tablet {
    width: min(580px, 96vw); max-height: 86vh;
    background: linear-gradient(165deg, rgba(22, 24, 32, 0.96), rgba(14, 15, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(59, 102, 245, 0.08);
    display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(14px);
    animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tablet__top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px 12px;
    background: linear-gradient(180deg, rgba(59, 102, 245, 0.08), transparent);
    border-bottom: 1px solid var(--border);
}
.tablet__brand { min-width: 0; }
.tablet__label {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; opacity: 0.85;
}
.tablet__top h2 {
    font-size: 16px; font-weight: 900; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.tablet__close {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: rgba(218, 68, 71, 0.14); border: 1px solid rgba(218, 68, 71, 0.25);
    color: var(--bad); font-size: 14px; font-weight: 700; transition: 0.2s;
}
.tablet__close:hover { background: rgba(218, 68, 71, 0.22); }

.tablet__tabs {
    display: flex; gap: 6px; padding: 10px 14px 0;
    border-bottom: 1px solid var(--border);
}
.tablet__tab {
    flex: 1; padding: 11px 8px 12px; border-radius: 10px 10px 0 0;
    background: transparent; border: 1px solid transparent; border-bottom: none;
    color: var(--muted); font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.4px; transition: 0.2s;
    position: relative;
}
.tablet__tab:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.tablet__tab.active {
    color: #fff; background: rgba(59, 102, 245, 0.12);
    border-color: rgba(59, 102, 245, 0.3);
}
.tablet__tab.active::after {
    content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px;
    background: var(--brand); border-radius: 2px 2px 0 0;
}

.tablet__body { padding: 16px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.tablet__foot {
    padding: 12px 18px 16px; border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
}
.btn--foot { padding: 12px; font-size: 11px; margin: 0; }

.pane { display: none; }
.pane.active { display: block; animation: fadeUp 0.2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.routes-empty {
    padding: 24px 16px; text-align: center; border-radius: 12px;
    border: 1px dashed var(--border); color: var(--muted);
    font-size: 12px; font-weight: 700;
}
.depot-banner {
    display: none; margin-top: 10px; padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 106, 17, 0.12); border: 1px solid rgba(255, 106, 17, 0.35);
    font-size: 11px; font-weight: 700; line-height: 1.45; color: #ffd4a8; text-align: left;
}
.depot-banner.visible { display: block; }
.routes { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 4px; }
.route-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
    background: var(--glass2); border: 1px solid var(--border); color: #fff; text-align: left; transition: 0.2s;
}
.route-card:hover:not(.locked) { border-color: rgba(59, 102, 245, 0.35); }
.route-card.selected { border-color: var(--brand); background: rgba(59, 102, 245, 0.1); }
.route-card.locked { opacity: 0.38; cursor: not-allowed; }
.route-card__num {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: rgba(109, 247, 242, 0.1); border: 1px solid rgba(109, 247, 242, 0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; color: var(--cyan);
}
.route-card__body { flex: 1; min-width: 0; }
.route-card__name { font-size: 13px; font-weight: 800; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-card__meta { font-size: 11px; color: var(--muted); font-weight: 600; }
.route-card__pay { font-size: 13px; font-weight: 900; color: var(--ok); flex-shrink: 0; }

.btn--compact { padding: 12px; font-size: 12px; margin-top: 12px; border-radius: 11px; }

.trip-strip {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    padding: 10px 12px; border-radius: 10px;
    background: var(--glass2); border: 1px solid var(--border);
}
.trip-strip__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.trip-strip__num {
    padding: 2px 8px; border-radius: 5px; flex-shrink: 0;
    background: rgba(59, 102, 245, 0.2); font-size: 10px; font-weight: 900; color: var(--cyan);
}
.trip-strip__name {
    font-size: 13px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trip-strip__phase {
    flex-shrink: 0; padding: 4px 8px; border-radius: 12px; font-size: 9px; font-weight: 800;
    background: rgba(35, 202, 99, 0.12); color: var(--ok); text-transform: uppercase;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.stat-row--3 { margin-bottom: 8px; }
.stat-chip {
    padding: 8px 10px; border-radius: 9px;
    background: var(--glass2); border: 1px solid var(--border);
}
.stat-chip span {
    display: block; font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.4px; color: var(--muted); margin-bottom: 4px;
}
.stat-chip b { font-size: 13px; font-weight: 900; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-chip em { font-style: normal; font-size: 12px; font-weight: 900; color: var(--ok); }
.stat-chip__sub {
    display: block; font-size: 9px; font-weight: 600; color: var(--muted); margin-bottom: 5px;
}
.stat-chip__sub b { display: inline; font-size: 9px; color: var(--cyan); font-weight: 800; }
.stat-chip--comfort { grid-column: span 1; }
.stat-chip--bar span { margin-bottom: 5px; }
.stat-chip__bar {
    height: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden;
}
.stat-chip__bar div { height: 100%; background: var(--ok); border-radius: 2px; transition: 0.3s; }

.ticket-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: 12px; background: var(--glass2); border: 1px solid var(--border);
}
.ticket-card__info { flex: 1; min-width: 0; }
.ticket-card__info strong { display: block; font-size: 13px; font-weight: 900; margin-bottom: 4px; }
.ticket-card__info p { font-size: 11px; color: var(--muted); line-height: 1.45; font-weight: 600; }
.ticket-card .btn--compact { margin: 0; flex-shrink: 0; width: auto; min-width: 110px; padding: 11px 16px; }

.cash-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.cash-chip {
    padding: 8px 10px; border-radius: 9px; text-align: center;
    background: var(--glass2); border: 1px solid var(--border);
}
.cash-chip span { display: block; font-size: 8px; color: var(--muted); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; }
.cash-chip b { font-size: 13px; font-weight: 900; color: var(--ok); }

.log--compact .log__head, .log--compact .log__row {
    padding: 7px 10px; font-size: 11px;
}
.log--compact .log__head { font-size: 9px; }
.log--compact { max-height: 160px; overflow-y: auto; }

.alert {
    display: none; padding: 8px 10px; border-radius: 8px; margin-top: 4px;
    background: rgba(218, 68, 71, 0.1); border: 1px solid rgba(218, 68, 71, 0.35);
    color: #ffb0b0; font-size: 11px; font-weight: 700;
}
.alert.visible { display: block; }

.cash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cash-box {
    padding: 14px 12px; border-radius: 12px; text-align: center;
    background: var(--glass2); border: 1px solid var(--border);
}
.cash-box span { display: block; font-size: 10px; color: var(--muted); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.cash-box b { font-size: 17px; font-weight: 900; color: var(--ok); }

.log { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--glass2); }
.log__head, .log__row {
    display: grid; grid-template-columns: 52px 1fr 68px; padding: 10px 14px;
    font-size: 12px; font-weight: 600;
}
.log__head {
    background: rgba(0, 0, 0, 0.25); color: var(--muted);
    font-size: 10px; font-weight: 800; text-transform: uppercase;
}
.log__row { border-top: 1px solid var(--border); color: #fff; }
.log__row .plus { color: var(--ok); text-align: right; font-weight: 800; }
.log__row .minus { color: var(--bad); text-align: right; font-weight: 800; }

.btn {
    width: 100%; padding: 13px; border-radius: 11px;
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
}
.btn--primary {
    background: linear-gradient(135deg, var(--brand), #2a4fd4);
    color: #fff; box-shadow: 0 8px 20px var(--brand-glow);
}
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; filter: none; box-shadow: none; }
.btn--outline {
    margin-top: 8px; background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.btn--outline:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn--secondary {
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff; font-weight: 800;
}
.btn--secondary:hover {
    background: rgba(59, 102, 245, 0.15); border-color: rgba(59, 102, 245, 0.4); color: #fff;
}
.btn--cancel {
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff; font-weight: 800;
}
.btn--cancel:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.btn--danger { background: rgba(218, 68, 71, 0.18); border: 1px solid rgba(218, 68, 71, 0.45); color: #ffb4b4; }
.btn--danger:hover { background: rgba(218, 68, 71, 0.28); }

/* ═══ ПОСАДКА (нижня панель) ═══ */
#bus_stop_overlay {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    display: none; pointer-events: none; z-index: 55; width: min(520px, 92vw);
}
#bus_stop_overlay.visible { display: block; animation: boardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
#bus_stop_overlay.boarding-out {
    animation: boardSlideOut 0.65s cubic-bezier(0.55, 0, 0.45, 1) forwards;
    pointer-events: none;
}
@keyframes boardIn {
    from { opacity: 0; transform: translateX(-50%) translateY(28px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes boardSlideOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    35% { opacity: 1; transform: translateX(-50%) translateY(4px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(72px); }
}

.boarding {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow);
    backdrop-filter: blur(10px); padding: 16px 20px;
    display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#bus_stop_overlay.boarding-out .boarding {
    animation: boardPanelCollapse 0.65s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}
@keyframes boardPanelCollapse {
    0% { transform: scale(1); opacity: 1; max-height: 200px; }
    40% { transform: scale(0.99); opacity: 1; }
    100% { transform: scale(0.97); opacity: 0; max-height: 48px; padding-top: 8px; padding-bottom: 8px; }
}
.boarding.boarding--active { border-color: rgba(35, 202, 99, 0.45); box-shadow: var(--shadow), 0 0 24px rgba(35, 202, 99, 0.12); }
.boarding.boarding--wait { border-color: rgba(255, 106, 17, 0.45); }
.boarding.boarding--done { border-color: rgba(35, 202, 99, 0.55); box-shadow: var(--shadow), 0 0 28px rgba(35, 202, 99, 0.2); }
.boarding.boarding--done .boarding__bar div {
    background: linear-gradient(90deg, var(--ok), #7dffb0);
    box-shadow: 0 0 10px rgba(35, 202, 99, 0.45);
}
.boarding.boarding--done .boarding__content {
    animation: boardSuccessPulse 0.5s ease;
}
@keyframes boardSuccessPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.boarding__tag {
    font-size: 9px; font-weight: 900; letter-spacing: 1.5px;
    color: var(--warn); margin-bottom: 4px;
}
.boarding--active .boarding__tag { color: var(--ok); }
.boarding--done .boarding__tag { color: var(--ok); }
.boarding__name { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.boarding__bar {
    height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.boarding__bar div {
    height: 100%; background: linear-gradient(90deg, var(--brand), var(--cyan));
    border-radius: 3px; transition: width 0.4s ease;
}
.boarding--wait .boarding__bar div { background: rgba(255, 106, 17, 0.35); }
.boarding__meta {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 11px; font-weight: 700; color: var(--muted);
}
.boarding__doors {
    padding: 10px 14px; border-radius: 10px; text-align: center;
    font-size: 10px; font-weight: 900; letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
    color: var(--muted); white-space: nowrap;
}
.boarding__doors.open { color: var(--ok); border-color: rgba(35, 202, 99, 0.4); background: rgba(35, 202, 99, 0.08); }

@keyframes ticketCheckIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ticketCheckOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.95) translateY(16px); }
}
@keyframes overlayFadeOutSlow {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes resultIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes ticketSwitchIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes inspectFlashOk {
    0% { background: rgba(35, 202, 99, 0.22); opacity: 1; }
    100% { background: transparent; opacity: 0; }
}
@keyframes inspectFlashBad {
    0% { background: rgba(218, 68, 71, 0.22); opacity: 1; }
    100% { background: transparent; opacity: 0; }
}

/* ═══ ОВЕРЛЕЇ ═══ */
.overlay {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.75); pointer-events: auto; z-index: 100;
}
.overlay.visible { display: flex; }
.overlay.overlay--closing {
    animation: overlayFadeOut 0.36s ease forwards;
    pointer-events: none;
}
@keyframes overlayFadeOut {
    from { opacity: 1; background: rgba(0, 0, 0, 0.75); }
    to { opacity: 0; background: rgba(0, 0, 0, 0); }
}

/* ═══ СКАНЕР КВИТКІВ — URP VAL-PRO (біля БК) ═══ */

.ticket-dock {
    display: none;
    flex: 0 0 auto;
    align-self: center;
    pointer-events: auto;
}

.ticket-dock.visible {
    display: block;
    animation: ticketDockIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ticketDockIn {
    from { opacity: 0; transform: translateX(16px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.ticket-dock.ticket-dock--closing {
    animation: ticketDockOut 0.3s ease forwards;
    pointer-events: none;
}

@keyframes ticketDockOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(12px) scale(0.95); }
}

.validator-panel {
    width: 300px;
    background: #24272b;
    border-radius: 20px;
    padding: 16px 16px 20px;
    box-sizing: border-box;
    border: 1px solid #111;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.1),
        inset 0 -4px 6px rgba(0, 0, 0, 0.5),
        0 16px 36px rgba(0, 0, 0, 0.55);
    position: relative;
}

#ticket_check_panel.validator--closing {
    transform: scale(0.94) translateX(8px);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.24s ease;
}

.validator-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 6px;
    background: #ffb800;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.validator__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 14px;
}

.validator__led {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 2px solid #111;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.validator__led.on {
    background: #ffb800;
    box-shadow: 0 0 8px #ffb800, inset 0 2px 4px rgba(255, 255, 255, 0.35);
}
.validator__led.scanning {
    background: #3b82f6;
    animation: validatorLedBlink 0.4s ease-in-out infinite alternate;
}
.validator__led.ok { background: #10b981; box-shadow: 0 0 10px #10b981; }
.validator__led.err { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

.validator__device-brand {
    font-size: 12px; font-weight: 800;
    color: #8892a3 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.validator__progress-text {
    font: 700 12px/1 Consolas, monospace;
    color: #fff !important;
    background: #111;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #333;
}

.validator__timer {
    font: 700 12px/1 Consolas, monospace;
    color: #7dd3fc !important;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    min-width: 42px;
    text-align: center;
}
.validator__timer.is-warn {
    color: #ffb347 !important;
    border-color: rgba(255, 179, 71, 0.45);
}
.validator__timer.is-crit {
    color: #ff6b6b !important;
    border-color: rgba(255, 107, 107, 0.5);
    animation: timerPulse 0.75s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.validator__screen {
    background: #121518;
    border: 3px solid #111;
    border-radius: 12px;
    min-height: 228px;
    position: relative;
    padding: 14px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8), 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: border-color 0.28s ease;
}

.validator__screen--ok { border-color: #10b981 !important; }
.validator__screen--warn { border-color: #ffb800 !important; }
.validator__screen--bad { border-color: #ef4444 !important; }

.validator__passenger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 2px dashed #2d3748;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.validator__passenger-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.validator__passenger-seat {
    font-size: 11px;
    font-weight: 800;
    color: #ffb800 !important;
    background: rgba(255, 184, 0, 0.1);
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.validator__ticket-slot {
    position: relative;
    height: 138px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.validator__ticket-slot.switch-out {
    transform: translateX(-24px) rotate(-2deg);
    opacity: 0;
}

.validator__ticket-slot.switch-in {
    animation: validatorTicketIn 0.26s ease;
}

@keyframes validatorTicketIn {
    from { opacity: 0; transform: translateX(20px) rotate(2deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}

.validator__ticket {
    background: #f8f7f2;
    height: 100%;
    border-radius: 4px;
    padding: 11px 12px 10px 16px;
    box-sizing: border-box;
    color: #1a1a1a;
    position: relative;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
    border-bottom: 3px dotted #ccc;
}

.validator__ticket::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: #9ca3af;
    border-radius: 4px 0 0 4px;
    transition: background 0.2s;
}

.validator__ticket.is-ok::before { background: #10b981; }
.validator__ticket.is-bad::before { background: #ef4444; }

.validator__ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-left: 8px;
    margin-bottom: 6px;
}

.validator__ticket-route {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #111 !important;
    line-height: 1.2;
}

.validator__ticket-serial {
    font: 700 10px/1.2 Consolas, monospace;
    color: #555 !important;
    white-space: nowrap;
}

.validator__ticket-barcode {
    height: 34px;
    margin: 0 8px 4px;
    background: repeating-linear-gradient(90deg,
        #111, #111 2px, transparent 2px, transparent 4px,
        #111 4px, #111 5px, transparent 5px, transparent 8px,
        #111 8px, #111 11px, transparent 11px, transparent 13px,
        #111 13px, #111 14px, transparent 14px, transparent 17px
    );
    opacity: 0.88;
}

.validator__ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 8px 0 8px;
    min-height: 26px;
}

.validator__ticket-date {
    font: 700 10px/1.3 Consolas, monospace;
    color: #444 !important;
    flex: 1;
    min-width: 0;
}

.validator__ticket-bottom {
    margin-left: 8px;
    font: 700 10px/1.3 Consolas, monospace;
    color: #444 !important;
}

.validator__ticket-stamp {
    position: relative;
    flex-shrink: 0;
    border: 2px solid;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-8deg);
    background: rgba(248, 247, 242, 0.95);
    color: #111 !important;
    white-space: nowrap;
}

.validator__ticket-stamp.ok { color: #059669 !important; border-color: #059669; }
.validator__ticket-stamp.bad { color: #dc2626 !important; border-color: #dc2626; }
.validator__ticket-stamp.none { color: #dc2626 !important; border-color: #dc2626; border-style: dashed; }

.validator__scan-beam {
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 2px;
    background: #ff3333;
    box-shadow: 0 0 6px #ff3333, 0 0 14px rgba(255, 51, 51, 0.55);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.validator__scan-beam::after {
    content: '';
    position: absolute;
    top: 0; left: -9px;
    width: 20px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.14), transparent);
}

#inspect_scanframe.is-scanning .validator__scan-beam {
    opacity: 1;
    animation: validatorLaserScan 0.42s ease-in-out forwards;
}

@keyframes validatorLaserScan {
    0% { left: 4%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 96%; opacity: 0; }
}

@keyframes validatorLedBlink {
    0% { opacity: 0.45; }
    100% { opacity: 1; }
}

.validator__verdict {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scale(0.92);
    background: #111;
    color: #fff !important;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    opacity: 0;
    z-index: 20;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    white-space: nowrap;
}

.validator__verdict.show.ok {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    color: #10b981 !important;
    border-color: #10b981;
}

.validator__verdict.show.bad {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    color: #ef4444 !important;
    border-color: #ef4444;
}

.validator__result {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    background: rgba(18, 21, 24, 0.96);
    border-radius: 8px;
}

.validator__result.visible {
    display: flex;
    animation: resultIn 0.3s ease;
}

.validator__result-icon {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1;
}

.validator__done-icon--success { color: #10b981 !important; text-shadow: 0 0 12px rgba(16, 185, 129, 0.35); }
.validator__done-icon--partial { color: #ffb800 !important; }
.validator__done-icon--fail { color: #ef4444 !important; text-shadow: 0 0 12px rgba(239, 68, 68, 0.35); }

.validator__result-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 6px;
    line-height: 1.35;
}

.validator__result-sub {
    font-size: 11px;
    color: #9ca3af !important;
    font-family: Consolas, monospace;
    line-height: 1.45;
}

.validator__flash {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    border-radius: 8px;
}

.validator__flash.ok-flash { animation: inspectFlashOk 0.3s ease; }
.validator__flash.bad-flash { animation: inspectFlashBad 0.3s ease; }

.validator__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 16px;
}

.validator__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #111;
    border: 1px solid #333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: transform 0.18s ease, background 0.18s ease;
}

.validator__dot.current {
    background: #3b82f6;
    border-color: #60a5fa;
    transform: scale(1.15);
}

.validator__dot.done { background: #10b981; border-color: #34d399; }
.validator__dot.done.bad { background: #ef4444; border-color: #f87171; }

.validator__actions {
    display: flex;
    gap: 12px;
}

.validator__actions.hidden { display: none !important; }

.validator__actions--disabled {
    pointer-events: none;
}

.validator__actions--disabled .validator__btn {
    cursor: not-allowed;
    filter: grayscale(0.9) brightness(0.72);
    transform: none !important;
}

.validator__actions--disabled .validator__btn--success {
    background: linear-gradient(to bottom, #4b5563, #374151);
    box-shadow: 0 4px 0 #1f2937, inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.validator__actions--disabled .validator__btn--danger {
    background: linear-gradient(to bottom, #57534e, #44403c);
    box-shadow: 0 4px 0 #292524, inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.validator__actions--disabled .validator__btn span,
.validator__actions--disabled .validator__btn-key {
    color: #9ca3af !important;
}

.validator__btn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 800;
    color: #fff !important;
    text-transform: uppercase;
    transition: transform 0.08s ease;
}

.validator__btn span { color: #fff !important; }

.validator__btn--success {
    background: linear-gradient(to bottom, #10b981, #059669);
    box-shadow: 0 5px 0 #047857, 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.validator__btn--success:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #047857, 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.validator__btn--danger {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    box-shadow: 0 5px 0 #b91c1c, 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.validator__btn--danger:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #b91c1c, 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.validator__btn-key {
    font: 700 10px/1 Consolas, monospace;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.28);
    padding: 2px 7px;
    border-radius: 4px;
    border: none;
}
/* ═══ ДОГОВІР ═══ */
.contract { width: min(480px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
.contract__paper {
    background: #f4f0e6; border: 1px solid #c8bfb0; border-radius: 2px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); margin-bottom: 14px;
    overflow: hidden; flex: 1; min-height: 0; overflow-y: auto;
    position: relative;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.contract__stamp-seal {
    position: absolute; right: 28px; bottom: 88px; z-index: 3;
    padding: 8px 14px; border: 3px solid #b33; border-radius: 4px;
    color: #b33; font-size: 14px; font-weight: 900; letter-spacing: 2px;
    transform: scale(2.2) rotate(-12deg); opacity: 0; pointer-events: none;
    background: rgba(255, 255, 255, 0.4);
}
.contract--signing .contract__stamp-seal {
    animation: contractStampIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.contract--signing .contract__paper {
    animation: contractPaperGlow 0.6s ease;
}
.contract--signing .contract__btns { opacity: 0.3; pointer-events: none; }
.contract--closing {
    animation: contractWrapOut 0.5s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}
@keyframes contractStampIn {
    0% { opacity: 0; transform: scale(2.5) rotate(-20deg); }
    70% { opacity: 0.95; transform: scale(0.95) rotate(-10deg); }
    100% { opacity: 0.88; transform: scale(1) rotate(-12deg); }
}
@keyframes contractPaperGlow {
    0%, 100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 12px 48px rgba(35, 202, 99, 0.25), 0 0 0 1px rgba(35, 202, 99, 0.2); }
}
@keyframes contractWrapOut {
    to { opacity: 0; transform: translateY(-40px) scale(0.94); }
}
#cef-app .contract__stamp-seal { color: #b33 !important; }
.contract__header {
    padding: 14px 18px; background: #e0d9cc; border-bottom: 2px solid #c0b5a4;
    text-align: center;
}
.contract__doc-num { font-size: 10px; color: #666; margin-bottom: 4px; font-weight: 700; }
.contract__header > div:last-child {
    font-size: 12px; font-weight: 900; letter-spacing: 0.8px; color: #2a2a2a;
}
.contract__body { padding: 18px 20px 20px; font-size: 12px; line-height: 1.55; }
.contract__party { margin-bottom: 6px !important; }
.contract__clauses {
    margin: 14px 0 16px 18px; padding: 0;
    font-size: 11px; color: #444; line-height: 1.55;
}
.contract__clauses li { margin-bottom: 6px; }
.contract__sign-block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #bbb; }
.contract__sign-lbl {
    display: block; font-size: 10px; font-weight: 800; color: #555 !important;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
#rent_signature {
    display: block; width: 100%; height: 110px;
    background: #fff; border: 1px dashed #999; border-radius: 2px;
    cursor: crosshair; touch-action: none;
}
.contract__clear {
    margin-top: 8px; padding: 6px 12px; border-radius: 6px;
    background: #e8e2d6; border: 1px solid #ccc; color: #555 !important;
    font-size: 11px; font-weight: 700;
}
.contract__clear:hover { background: #ddd5c8; }
.contract__btns { display: flex; gap: 10px; }
.contract__btns .btn { margin: 0; flex: 1; }

/* ═══ МОДАЛКИ ═══ */
.modal {
    width: 360px; padding: 24px; background: var(--glass);
    border: 1px solid var(--border); border-radius: 18px;
    box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(12px);
    animation: popIn 0.35s ease;
}
.modal--wide { width: 400px; }
.modal__icon {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900;
}
.modal__icon.ok { background: rgba(35, 202, 99, 0.15); color: var(--ok); border: 1px solid rgba(35, 202, 99, 0.35); }
.modal__icon.brand { background: rgba(59, 102, 245, 0.15); color: var(--brand); border: 1px solid rgba(59, 102, 245, 0.35); }
.modal__title { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.modal__hint {
    margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
    background: rgba(59, 102, 245, 0.12); border: 1px solid rgba(59, 102, 245, 0.28);
    font-size: 11px; font-weight: 700; line-height: 1.45; color: #d8e4ff; text-align: left;
}
.modal__levelup {
    display: none; padding: 10px; margin-bottom: 12px; border-radius: 10px;
    background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.35);
    color: var(--gold); font-size: 12px; font-weight: 800;
}
.modal__levelup.visible { display: block; }
.modal__stats { margin-bottom: 16px; text-align: left; }
.modal__actions { display: flex; flex-direction: column; gap: 8px; }
.modal__actions .btn { margin: 0; }
.modal__row {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 13px;
}
.modal__row span { color: var(--muted); font-weight: 600; }
.modal__row strong { font-weight: 800; color: #fff; }
.modal__row .val-success { color: var(--ok); }
.modal__row .val-danger { color: var(--bad); }
.modal__row .val-gold { color: var(--gold); }

#bus_toasts {
    position: fixed; left: 50%; bottom: 168px;
    transform: translateX(-50%);
    display: flex; flex-direction: column-reverse; align-items: stretch;
    gap: 8px; pointer-events: none; z-index: 58;
    width: min(520px, 92vw);
}
.bus-toast {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(12, 18, 32, 0.94), rgba(20, 28, 48, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 12px; font-weight: 700; line-height: 1.45; color: #fff;
    animation: toastIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(10px);
}
.bus-toast::before {
    content: 'ℹ'; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; background: rgba(59, 102, 245, 0.22); color: var(--cyan);
}
.bus-toast.success { border-color: rgba(35, 202, 99, 0.45); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(35, 202, 99, 0.12); }
.bus-toast.success::before { content: '✓'; background: rgba(35, 202, 99, 0.2); color: var(--ok); }
.bus-toast.warning { border-color: rgba(255, 106, 17, 0.45); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 106, 17, 0.1); }
.bus-toast.warning::before { content: '!'; background: rgba(255, 106, 17, 0.2); color: var(--warn); }
.bus-toast.error { border-color: rgba(218, 68, 71, 0.45); }
.bus-toast.error::before { content: '✕'; background: rgba(218, 68, 71, 0.2); color: var(--bad); }
.bus-toast.info { border-color: rgba(59, 102, 245, 0.45); }
.bus-toast.info::before { content: '⌨'; }
.bus-toast.bus-toast--keys {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 212, 255, 0.14);
}
.bus-toast.bus-toast--keys .bus-toast__keys {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.bus-toast.bus-toast--keys kbd {
    padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 900;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff; font-family: Consolas, monospace;
}
.bus-toast.bus-toast--out { animation: toastOut 0.32s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.96); }
}
