* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #07111f;
    --panel: #0b1628;
    --panel-2: #0f1e33;
    --line: #21324a;
    --line-soft: #142238;
    --text: #e8f0fb;
    --muted: #8ca0ba;
    --blue: #3b82f6;
    --green: #22c55e;
    --yellow: #facc15;
    --red: #ef4444;
    --orange: #fb923c;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 26%),
        var(--bg);
    color: var(--text);
    font-size: 13px;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-header {
    min-height: 70px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 13, 26, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.hdr-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
}

.logo svg {
    width: 21px;
    height: 21px;
}

.app-header h1 {
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.app-header p {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

button {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(15, 30, 51, 0.78);
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

button:hover {
    background: #13243b;
    border-color: #37506f;
}

button:active {
    transform: translateY(1px);
}

button svg {
    width: 14px;
    height: 14px;
}

button.btn-primary,
.upload-panel .action-field button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

button.active {
    background: rgba(59, 130, 246, 0.22);
    border-color: #3b82f6;
    color: #bfdbfe;
}

.btn-xs {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 8px;
}

.journey-browser {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(10, 23, 42, 0.92), rgba(7, 17, 31, 0.72));
}

.journey-browser-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.journey-browser-head .eyebrow {
    color: #60a5fa;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.journey-browser-head h2 {
    margin-top: 4px;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.btn-refresh { height: 32px; }

.journey-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 9px;
    max-height: 246px;
    overflow-y: auto;
    padding-right: 4px;
}

.journey-card-shell {
    position: relative;
    min-width: 0;
}

.journey-card {
    width: 100%;
    height: auto;
    min-height: 158px;
    padding: 12px 13px 43px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: start;
    justify-items: start;
    gap: 5px 10px;
    text-align: left;
    white-space: normal;
    background: linear-gradient(145deg, rgba(18, 37, 62, 0.95), rgba(10, 25, 44, 0.95));
}

.journey-card:hover,
.journey-card.active {
    border-color: #3b82f6;
    background: linear-gradient(145deg, rgba(30, 64, 108, 0.98), rgba(12, 35, 62, 0.98));
    transform: translateY(-1px);
}

.journey-card:disabled { cursor: wait; opacity: 0.72; }
.journey-card.waiting:disabled { cursor: not-allowed; opacity: 0.48; }

.journey-delete {
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    height: 28px;
    border-color: rgba(248, 113, 113, 0.35);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.2);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 800;
}

.journey-delete:hover {
    border-color: #f87171;
    background: rgba(153, 27, 27, 0.48);
    color: #fff;
}

.journey-card .journey-train {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.journey-card > strong { color: #fff; font-size: 14px; }

.journey-route,
.journey-time,
.journey-meta {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.journey-route { color: #86efac; font-weight: 750; }

.journey-empty {
    grid-column: 1 / -1;
    min-height: 90px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.journey-empty.error { color: #fca5a5; }

.upload-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.9fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(7, 17, 31, 0.78);
    border-bottom: 1px solid var(--line-soft);
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input,
.field select {
    height: 38px;
    width: 100%;
    background: rgba(11, 22, 40, 0.95);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 11px;
    font-size: 12px;
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.field input[type="file"] {
    padding-top: 7px;
}

.field input[type="file"]::file-selector-button {
    height: 24px;
    margin-right: 9px;
    border: 0;
    border-radius: 7px;
    padding: 0 9px;
    background: #1c2f4a;
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 22px 0;
}

.route-summary-row {
    padding-top: 10px;
}

.summary-card {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 30, 51, 0.96), rgba(9, 20, 36, 0.96));
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.summary-card span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.summary-card span svg {
    width: 13px;
    height: 13px;
}

.summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 23px;
    line-height: 1;
    font-weight: 820;
    letter-spacing: -0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-card.danger strong {
    color: var(--red);
}

.summary-card.success strong {
    color: var(--green);
}

.mapping-row {
    margin: 12px 22px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(11, 22, 40, 0.72);
}

.meta-cell {
    min-width: 0;
    padding: 10px 13px;
    border-right: 1px solid var(--line-soft);
}

.meta-cell:last-child {
    border-right: 0;
}

.meta-cell strong {
    display: block;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.meta-cell span {
    display: block;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.13);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
    font-size: 11px;
    font-weight: 800;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.status-badge.loading {
    background: rgba(250, 204, 21, 0.13);
    color: #fde68a;
    border-color: rgba(250, 204, 21, 0.28);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.32);
}

.main-layout {
    min-height: 650px;
    padding: 14px 22px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 14px;
}

.chart-panel,
.info-panel {
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chart-panel {
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

.chart-topbar {
    min-height: 48px;
    flex-shrink: 0;
    padding: 8px 14px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.legend-line {
    display: inline-block;
    width: 26px;
    height: 3px;
    border-radius: 99px;
    margin-right: 5px;
    vertical-align: middle;
}

.legend-line.actual { background: var(--green); }
.legend-line.effective { background: var(--yellow); }
.legend-line.overspeed { background: var(--red); height: 4px; }

.chart-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#chart {
    flex: 1;
    height: 590px;
    min-height: 590px;
    width: 100%;
    cursor: grab;
}

#chart:active {
    cursor: grabbing;
}

.caution-assessment-panel {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(9, 20, 36, 0.82);
}

.caution-assessment-panel[hidden] { display: none; }

.caution-assessment-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.caution-assessment-head .eyebrow { color: #fbbf24; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.caution-assessment-head h2 { margin-top: 3px; font-size: 16px; }
.caution-assessment-note { color: var(--muted); font-size: 10px; }

.caution-assessment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 9px;
}

.caution-assessment {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 30, 51, 0.82);
}

.caution-assessment.applied { border-left: 3px solid #fbbf24; }
.caution-assessment.inactive { border-left: 3px solid #60a5fa; background: rgba(15, 35, 61, 0.7); }
.caution-assessment-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.caution-assessment-title span { color: #94a3b8; font-size: 10px; }
.caution-assessment-title strong { color: #f8fafc; font-size: 11px; }
.caution-assessment-route { margin-top: 6px; color: #bfdbfe; font-size: 11px; font-weight: 750; }
.caution-assessment-facts { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; color: #cbd5e1; font-size: 10px; }
.caution-assessment p { margin: 7px 0 0; color: #94a3b8; font-size: 10px; line-height: 1.4; }

.info-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto 170px;
    min-height: 650px;
}

.info-hdr {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line-soft);
}

.info-hdr h2 {
    font-size: 13px;
    font-weight: 800;
}

.info-body {
    min-height: 0;
    overflow-y: auto;
    padding: 12px 15px;
}

.route-sequence-hdr {
    border-top: 1px solid var(--line-soft);
}

.route-sequence-body {
    max-height: 170px;
}

.info-body::-webkit-scrollbar {
    width: 8px;
}

.info-body::-webkit-scrollbar-thumb {
    background: #29415f;
    border-radius: 99px;
}

.info-empty {
    height: 100%;
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.info-empty svg {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    opacity: 0.45;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.caution-detail-card {
    margin-bottom: 7px;
    padding: 12px;
    border: 1px solid rgba(251, 146, 60, 0.5);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(124, 45, 18, 0.34), rgba(69, 26, 3, 0.2)),
        rgba(15, 30, 51, 0.9);
    box-shadow: inset 3px 0 0 #fb923c, 0 10px 24px rgba(0, 0, 0, 0.18);
}

.caution-detail-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.caution-alert-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fb923c;
    color: #431407;
    font-size: 16px;
    font-weight: 900;
}

.caution-detail-head div > span,
.caution-description > span,
.caution-detail-grid span {
    display: block;
    color: #fdba74;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.caution-detail-head div > strong {
    display: block;
    margin-top: 2px;
    color: #ffedd5;
    font-size: 15px;
}

.caution-id {
    padding: 3px 7px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(251, 146, 60, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.3);
    font-size: 9px;
    font-weight: 800;
}

.caution-route-band {
    margin-top: 10px;
    padding: 8px 9px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    background: rgba(7, 17, 31, 0.52);
    color: #ffedd5;
    font-size: 10px;
}

.caution-route-band strong:last-child { text-align: right; }
.caution-route-band > span { color: #fb923c; }

.caution-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
}

.caution-detail-grid > div {
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.4);
}

.caution-detail-grid strong {
    display: block;
    margin-top: 3px;
    color: #fff7ed;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.caution-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.caution-description p {
    margin-top: 4px;
    color: #ffedd5;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.caution-detail-foot {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #c7a98d;
    font-size: 8px;
}

.info-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(33, 50, 74, 0.45);
}

.info-row .ik {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.info-row .iv {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.info-row .iv.over { color: #fca5a5; }
.info-row .iv.safe { color: #86efac; }
.info-row .iv.caution { color: #fde68a; }

.info-divider {
    height: 1px;
    background: var(--line);
    margin: 7px 0;
}

.route-chip,
.compliance-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.route-chip {
    max-width: 210px;
    padding: 3px 9px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.36);
    color: #bfdbfe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compliance-badge {
    padding: 4px 10px;
}

.compliance-badge.safe {
    background: rgba(34, 197, 94, 0.13);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.compliance-badge.over {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

.route-seq-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 3px 9px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(33, 50, 74, 0.45);
}

.route-seq-index {
    grid-row: span 2;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #182a43;
    color: #cfe0f7;
    font-size: 10px;
    font-weight: 850;
}

.route-seq-main {
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-seq-sub {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .app-header {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
    }

    .upload-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px 18px;
    }

    .summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 18px;
        padding-right: 18px;
    }

    .mapping-row {
        margin-left: 18px;
        margin-right: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-left: 18px;
        padding-right: 18px;
    }

    .chart-panel {
        min-height: 620px;
    }

    #chart {
        min-height: 560px;
    }

    .info-panel {
        min-height: 620px;
    }
}

@media (max-width: 720px) {
    .upload-panel,
    .summary-row,
    .mapping-row {
        grid-template-columns: 1fr;
    }

    .app-header {
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions button {
        flex: 1;
    }

    .chart-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .main-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .info-row .iv {
        text-align: left;
    }
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.header-link:hover { background: rgba(255, 255, 255, 0.16); }
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #42e695;
    box-shadow: 0 0 0 4px rgba(66, 230, 149, 0.14);
}

.legend-signal {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.home-signal-detail-card {
    grid-column: 1 / -1;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(96, 165, 250, 0.55);
    border-radius: 10px;
    background: rgba(30, 64, 175, 0.14);
}
.home-signal-detail-card.aspect-green { border-color: rgba(53, 208, 127, .65); }
.home-signal-detail-card.aspect-yellow { border-color: rgba(241, 200, 75, .65); }

.home-signal-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.home-signal-detail-head div { display: grid; flex: 1; }
.home-signal-detail-head span { color: #93c5fd; font-size: 11px; }
.home-signal-detail-head strong { color: #eff6ff; }
.home-signal-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #07111f !important;
    background: #60a5fa;
    font-weight: 900;
}
.home-signal-end { padding: 4px 7px; border: 1px solid rgba(147, 197, 253, .4); border-radius: 999px; }
.home-signal-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-signal-detail-grid div { display: grid; gap: 2px; }
.home-signal-detail-grid span { color: #8fa7c1; font-size: 10px; text-transform: uppercase; }
.home-signal-detail-grid strong { color: #dbeafe; font-size: 12px; }

.signal-aspect-timeline {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(80px, .8fr) minmax(90px, 1fr);
    align-items: center;
    gap: 8px;
    margin: 10px 0 13px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(4, 12, 24, .5);
}
.aspect-stop { display: flex; align-items: center; gap: 8px; }
.aspect-stop > div { display: grid; }
.aspect-stop small { color: #8197ad; font-size: 9px; text-transform: uppercase; }
.aspect-stop strong { font-size: 12px; }
.aspect-stop time { color: #b8c7d8; font-size: 11px; font-variant-numeric: tabular-nums; }
.aspect-lamp {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
}
.aspect-stop.green .aspect-lamp { background: #35d07f; box-shadow: 0 0 10px rgba(53,208,127,.65); }
.aspect-stop.green strong { color: #6ee7a7; }
.aspect-stop.yellow .aspect-lamp { background: #f1c84b; box-shadow: 0 0 10px rgba(241,200,75,.6); }
.aspect-stop.yellow strong { color: #fde68a; }
.aspect-stop.red .aspect-lamp { background: #f35f68; box-shadow: 0 0 10px rgba(243,95,104,.65); }
.aspect-stop.red strong { color: #fda4aa; }
.aspect-transition { display: flex; align-items: center; gap: 5px; color: #9fb2c8; }
.aspect-transition span { height: 1px; flex: 1; background: #40546b; }
.aspect-transition strong { white-space: nowrap; font-size: 10px; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
    .signal-aspect-timeline { grid-template-columns: 1fr; }
    .aspect-transition { width: 70%; margin-left: 8px; transform: rotate(0deg); }
}

@media (max-width: 1180px) {
    .journey-browser {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 720px) {
    .journey-browser { padding: 14px 12px; }
    .journey-browser-head { align-items: flex-start; flex-direction: column; }
    .journey-list { grid-template-columns: 1fr; }
}
