:root {
    color-scheme: dark;
    --bg: #101718;
    --sidebar: #111a1b;
    --surface: #172122;
    --surface-raised: #1a2526;
    --surface-hover: #202d2e;
    --border: #293637;
    --border-soft: #243031;
    --text: #edf3ee;
    --muted: #8d9b99;
    --faint: #687775;
    --lime: #c4f268;
    --lime-soft: #1d2b1b;
    --green: #a8e75a;
    --cyan: #73d5c1;
    --purple: #bf9bff;
    --orange: #f3af72;
    --red: #ff817a;
    --yellow: #edcb72;
    --font: "DM Sans", sans-serif;
    --display: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;
}

* {
    margin: 0;padding: 0;
    box-sizing: border-box;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

button,
select {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 5;
    width: 244px;
    display: flex;
    flex-direction: column;
    padding: 25px 16px 14px;
    background: var(--sidebar);
    border-right: 1px solid #273233;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin: 1px 0 29px 5px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--lime);
}

.brand-mark svg {
    width: 34px;
    height: 34px;
}

.brand-name {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.05;
}

.brand-name>span {
    color: var(--lime);
}

.brand-name small {
    display: block;
    padding-top: 5px;
    color: #788683;
    font: 500 8px var(--mono);
    letter-spacing: 1.35px;
}

.workspace-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 9px 8px;
    border: 1px solid #303c3d;
    border-radius: 8px;
    background: #182122;
}

.workspace-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #384637;
    color: #d2f29c;
    font: 600 14px var(--display);
}

.workspace-switcher>span:nth-child(2),
.profile>span:nth-child(2),
.sidebar-live>span:last-child {
    min-width: 0;
    flex: 1;
}

.workspace-switcher strong,
.profile strong,
.sidebar-live strong {
    display: block;
    overflow: hidden;
    color: #e2eae5;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-switcher small,
.profile small,
.sidebar-live small {
    display: block;
    margin-top: 3px;
    color: #82908d;
    font-size: 10px;
}

.chevron {
    width: 13px;
    flex-shrink: 0;
    fill: none;
    stroke: #82908d;
    stroke-width: 1.5;
}

.nav-label {
    margin: 32px 0 11px 9px;
    color: #70807d;
    font: 500 9px var(--mono);
    letter-spacing: 1.1px;
}

.primary-nav {
    display: grid;
    gap: 3px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 39px;
    padding: 0 10px;
    border-radius: 6px;
    color: #9aa8a5;
    font-size: 12px;
    transition: background .18s ease, color .18s ease;
}

.nav-item:hover {
    background: #1c2829;
    color: #e5eee7;
}

.nav-item.active {
    background: #202d2b;
    color: #d9f1b7;
}

.nav-icon {
    width: 17px;
    color: #a0afaa;
    font-size: 17px;
    line-height: 1;
    text-align: center;
}

.nav-item.active .nav-icon {
    color: var(--lime);
}

.active-dot {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
    transform: translateY(-50%);
}

.nav-count {
    margin-left: auto;
    min-width: 19px;
    padding: 2px 5px;
    border-radius: 10px;
    background: #394732;
    color: #d4f39b;
    font: 10px var(--mono);
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-live {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 4px 15px;
    padding: 12px 9px;
    border: 1px solid #293636;
    border-radius: 7px;
    background: #172021;
}

.live-indicator {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px #a8e75a66;
}

.sidebar-live .live-indicator {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
}

.help-link {
    margin-bottom: 13px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 3px 2px;
    border-top: 1px solid #2a3636;
}

.avatar {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border: 1px solid #645d7d;
    border-radius: 50%;
    background: #373344;
    color: #ded5ff;
    font-size: 10px;
    font-weight: 700;
}

.profile-more {
    color: #889592;
    font-size: 19px;
    letter-spacing: 1px;
}

.main-content {
    min-height: 100vh;
    margin-left: 244px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    border-bottom: 1px solid #263233;
    background: #111919eF;
    backdrop-filter: blur(12px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #859390;
    font-size: 11px;
}

.breadcrumb strong {
    color: #d1dbd5;
    font-weight: 500;
}

.breadcrumb-slash {
    color: #586562;
}

.topbar-right {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 17px;
    color: #9ba8a4;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.service-status .live-indicator {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

.topbar-divider {
    width: 1px;
    height: 17px;
    background: #354140;
}

.date-label {
    font: 9px var(--mono);
    letter-spacing: .5px;
}

.icon-button {
    display: grid;
    position: relative;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #33403e;
    border-radius: 6px;
    background: transparent;
    color: #b9c6bf;
    cursor: pointer;
}

.notification-button span {
    font-size: 17px;
    transform: rotate(180deg);
}

.notification-button i {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 5px;
    height: 5px;
    border: 1px solid var(--bg);
    border-radius: 50%;
    background: var(--lime);
}

.page-content {
    max-width: 1550px;
    margin: 0 auto;
    padding: 29px 38px 20px;
}

.welcome-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a3b19e;
    font: 9px var(--mono);
    letter-spacing: 1.05px;
}

.eyebrow-line {
    width: 17px;
    height: 1px;
    background: var(--lime);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin: 10px 0 6px;
    font: 700 31px/1.13 var(--display);
    letter-spacing: -1.25px;
}

.title-period {
    color: var(--lime);
}

.welcome-copy {
    margin: 0;
    color: #91a09c;
    font-size: 12px;
}

.mobile-break {
    display: none;
}

.welcome-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.scenario-select-wrap {
    display: grid;
    gap: 5px;
    color: #82908d;
    font: 8px var(--mono);
    letter-spacing: .8px;
}

.scenario-select-wrap select {
    width: 194px;
    height: 35px;
    appearance: none;
    padding: 0 28px 0 10px;
    border: 1px solid #344140;
    border-radius: 6px;
    outline: none;
    background: #182223 url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%2396a39e' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 9px center;
    color: #dce5de;
    font: 11px var(--font);
    cursor: pointer;
}

.scenario-select-wrap select:focus {
    border-color: #87a758;
}

.button-primary {
    height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #d4f38e;
    border-radius: 6px;
    background: var(--lime);
    color: #1b2715;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.button-primary:hover {
    background: #d6fa93;
    transform: translateY(-1px);
}

.sparkle {
    font-size: 14px;
}

.button-shortcut {
    margin-left: 3px;
    padding-left: 7px;
    border-left: 1px solid #839d5a;
    font-size: 13px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.kpi-card {
    position: relative;
    min-height: 126px;
    overflow: hidden;
    padding: 14px 15px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: border-color .2s ease, transform .2s ease;
}

.kpi-card:hover {
    border-color: #405047;
    transform: translateY(-2px);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-label {
    color: #9aa8a2;
    font: 9px var(--mono);
    letter-spacing: .65px;
}

.kpi-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 6px;
    font-size: 13px;
}

.green-icon {
    background: #253527;
    color: var(--green);
}

.yellow-icon {
    background: #332f22;
    color: var(--yellow);
}

.blue-icon {
    background: #222f37;
    color: #81ccef;
}

.red-icon {
    background: #372726;
    color: var(--red);
}

.kpi-value {
    position: relative;
    z-index: 1;
    margin: 9px 0 4px;
    font: 700 26px/1 var(--display);
    letter-spacing: -.9px;
}

.kpi-unit {
    margin-left: 2px;
    color: #a9b5af;
    font: 500 12px var(--font);
    letter-spacing: 0;
}

.kpi-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #869490;
    font-size: 9px;
}

.trend-up {
    color: #b6e782;
    font-weight: 600;
}

.neutral-tag {
    color: #b5c8b5;
}

.alert-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f49b87;
    font-weight: 600;
}

.alert-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
}

.kpi-sparkline {
    position: absolute;
    right: 13px;
    bottom: 11px;
    width: 35%;
    height: 27px;
    opacity: .8;
}

.kpi-sparkline svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.kpi-sparkline path {
    fill: none;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

.spark-green path {
    stroke: #a8e75a;
}

.spark-yellow path {
    stroke: #edcb72;
}

.spark-blue path {
    stroke: #73c4e2;
}

.spark-red path {
    stroke: #e87d75;
}

.network-section {
    margin-top: 25px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-heading h2,
.panel-heading h2 {
    margin: 0 0 3px;
    font: 650 15px var(--display);
    letter-spacing: -.25px;
}

.section-heading p,
.panel-heading p {
    margin: 0;
    color: #84918d;
    font-size: 10px;
}

.section-heading-right {
    display: flex;
    align-items: center;
    gap: 17px;
}

.updated-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #92a09a;
    font-size: 9px;
}

.updated-label .live-indicator {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

.text-button,
.subtle-link {
    border: 0;
    background: transparent;
    color: #c8e798;
    font-size: 10px;
    cursor: pointer;
}

.text-button span,
.subtle-link span,
.comparison-link span {
    margin-left: 4px;
    font-size: 12px;
}

.text-button:hover,
.subtle-link:hover {
    color: var(--lime);
}

.network-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .88fr);
    gap: 13px;
}

.map-card,
.arrivals-card,
.panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.map-card,
.arrivals-card,
.panel,
.recommendation-card {
    transition: border-color .2s ease, box-shadow .2s ease;
}

.map-card:hover,
.arrivals-card:hover,
.panel:hover,
.recommendation-card:hover {
    border-color: #3b4945;
    box-shadow: 0 8px 28px #00000013;
}

.map-card {
    overflow: hidden;
}

.map-toolbar {
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 1px solid #293536;
}

.map-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-title strong {
    font-size: 10px;
    font-weight: 600;
}

.map-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 9px #c4f26877;
}

.map-live-badge {
    margin-left: 2px;
    padding: 3px 5px;
    border: 1px solid #3b4933;
    border-radius: 3px;
    color: #bfe589;
    font: 7px var(--mono);
    letter-spacing: .4px;
}

.map-menu,
.more-button {
    border: 0;
    background: transparent;
    color: #a6b1aa;
    font-size: 19px;
    letter-spacing: 1px;
    cursor: pointer;
}

.map-canvas {
    position: relative;
    height: 266px;
    overflow: hidden;
    background-color: #172323;
    background-image: linear-gradient(19deg, transparent 45%, #30403950 45.3%, #30403950 47%, transparent 47.3%), linear-gradient(112deg, transparent 35%, #35443e38 35.3%, #35443e38 36.3%, transparent 36.6%), linear-gradient(0deg, transparent 75%, #2c3a34 75.3%, #2c3a34 77%, transparent 77.3%);
}

.map-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: linear-gradient(#41504922 1px, transparent 1px), linear-gradient(90deg, #41504922 1px, transparent 1px);
    background-size: 27px 27px;
}

.map-water {
    position: absolute;
    left: -8%;
    bottom: -72%;
    width: 80%;
    height: 90%;
    border: 14px solid #31494825;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.campus-label {
    position: absolute;
    z-index: 1;
    color: #87968b;
    font: 7px/1.45 var(--mono);
    letter-spacing: .55px;
    text-align: center;
    opacity: .86;
}

.campus-library {
    top: 52%;
    left: 40%;
}

.campus-science {
    top: 17%;
    left: 54%;
}

.campus-student {
    top: 61%;
    left: 23%;
}

.campus-sports {
    top: 72%;
    left: 70%;
}

.campus-north {
    top: 10%;
    right: 6%;
}

.route-map {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.route-shadow {
    fill: none;
    stroke: #121919;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .68;
    vector-effect: non-scaling-stroke;
}

.route-line {
    fill: none;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}

.route-one {
    stroke: var(--lime);
}

.route-two {
    stroke: var(--purple);
}

.route-three {
    stroke: var(--orange);
}

.map-stops circle {
    fill: #263230;
    stroke: #9ba99b;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

.vehicle-marker {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 2px solid #192322;
    border-radius: 7px;
    box-shadow: 0 2px 8px #0008;
    font-size: 12px;
    cursor: pointer;
    transition: transform .18s ease;
}

.vehicle-marker:hover {
    z-index: 4;
    transform: scale(1.18);
}

.vehicle-a {
    top: 46%;
    left: 57%;
    background: var(--lime);
    color: #182217;
}

.vehicle-b {
    top: 61%;
    left: 42%;
    background: #c4a2ff;
    color: #21182c;
}

.vehicle-c {
    top: 30%;
    left: 68%;
    background: #f2b47b;
    color: #2e2117;
}

.map-scale {
    position: absolute;
    bottom: 12px;
    left: 13px;
    z-index: 3;
    white-space: nowrap;
    color: #96a49d;
    font: 8px var(--mono);
}

.map-scale span {
    width: 24px;
    height: 5px;
    border-right: 1px solid #a5b4aa;
    border-bottom: 1px solid #a5b4aa;
    border-left: 1px solid #a5b4aa;
}

.map-zoom {
    position: absolute;
    right: 11px;
    bottom: 10px;
    z-index: 3;
    display: grid;
    width: 26px;
    height: 48px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    border: 1px solid #3b4844;
    border-radius: 5px;
    background: #192323eF;
    color: #d7e0d8;
    font-size: 15px;
    overflow: hidden;
}

.map-zoom button {
    display: grid;
    width: 100%;
    min-height: 0;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.map-zoom button + button {
    border-top: 1px solid #3b4844;
}

.map-zoom button:hover {
    background: #ffffff12;
}

.map-zoom button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.map-legend {
    min-height: 37px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border-top: 1px solid #293536;
}

.legend-routes {
    display: flex;
    align-items: center;
    gap: 13px;
}

.legend-routes span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b4beb8;
    font-size: 9px;
}

.legend-line {
    width: 12px;
    height: 2px;
    border-radius: 2px;
}

.line-green {
    background: var(--lime);
}

.line-purple {
    background: var(--purple);
}

.line-orange {
    background: var(--orange);
}

.map-assumption {
    color: #778580;
    font: 8px var(--mono);
}

.arrivals-card {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 11px;
}

.arrivals-heading,
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.arrivals-heading h3 {
    margin: 0 0 3px;
    font: 650 13px var(--display);
}

.arrivals-heading p {
    margin: 0;
    color: #82908c;
    font-size: 9px;
}

.subtle-link {
    padding: 2px 0 0;
    font-size: 9px;
}

.arrivals-list {
    margin-top: 9px;
}

.arrival-row {
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #2a3535;
}

.route-badge {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 7px;
    font: 600 10px var(--mono);
}

.badge-a {
    background: #303d23;
    color: var(--lime);
}

.badge-b {
    background: #33283e;
    color: #d1baff;
}

.badge-c {
    background: #3c3025;
    color: #f1bd8d;
}

.arrival-info {
    min-width: 0;
    flex: 1;
}

.arrival-info strong,
.arrival-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrival-info strong {
    font-size: 10px;
    font-weight: 600;
}

.arrival-info small {
    margin-top: 3px;
    color: #83918c;
    font-size: 8px;
}

.arrival-time {
    min-width: 58px;
    text-align: right;
}

.arrival-time>strong {
    color: #e2ebdc;
    font: 600 15px var(--display);
    white-space: nowrap;
}

.arrival-time>strong small {
    color: #aab5ac;
    font: 9px var(--font);
}

.arrival-time>small {
    display: block;
    margin-top: 3px;
    color: #8d9d94;
    font-size: 8px;
}

.eta-quality {
    margin-top: auto;
    padding-top: 12px;
}

.eta-quality-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #87948f;
    font: 8px var(--mono);
    letter-spacing: .5px;
}

.eta-value {
    color: #c6e795;
    font: 10px var(--mono);
    letter-spacing: 0;
}

.accuracy-track {
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 5px;
    background: #35413b;
}

.accuracy-track span {
    display: block;
    width: 70%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a0d55a, #d0ef89);
}

.eta-quality p {
    margin: 6px 0 0;
    color: #83908c;
    font-size: 8px;
}

.info-dot {
    display: inline-grid;
    width: 12px;
    height: 12px;
    place-items: center;
    border: 1px solid #60716b;
    border-radius: 50%;
    background: transparent;
    color: #b4c1b9;
    font: 8px var(--mono);
    cursor: help;
}

.lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, .86fr);
    gap: 13px;
    margin-top: 16px;
}

.panel {
    min-width: 0;
    padding: 13px 14px 0;
}

.panel-heading {
    margin-bottom: 13px;
}

.chart-period {
    padding: 5px 8px;
    border: 1px solid #34403f;
    border-radius: 5px;
    background: #1a2424;
    color: #b8c3bc;
    font-size: 8px;
    cursor: pointer;
}

.chart-period span {
    margin-left: 5px;
    color: #98a69e;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

thead {
    border-bottom: 1px solid #2b3837;
}

th {
    padding: 0 7px 9px;
    color: #778580;
    font: 8px var(--mono);
    letter-spacing: .48px;
}

th:first-child,
td:first-child {
    padding-left: 1px;
}

td {
    height: 49px;
    padding: 6px 7px;
    border-bottom: 1px solid #283333;
    color: #d7e0da;
    font-size: 9px;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-route {
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.route-dot-a {
    background: var(--lime);
}

.route-dot-b {
    background: var(--purple);
}

.route-dot-c {
    background: var(--orange);
}

.route-dot-d {
    background: #80bdd6;
}

.table-route strong,
.table-route small {
    display: block;
}

.table-route strong {
    font-size: 9px;
    font-weight: 600;
}

.table-route small {
    margin-top: 3px;
    color: #87948f;
    font-size: 8px;
}

td>strong {
    font-size: 9px;
    font-weight: 500;
}

.table-sub {
    display: block;
    margin-top: 4px;
    color: #899691;
    font: 8px var(--mono);
}

.load-value {
    display: block;
    margin-bottom: 5px;
    font: 9px var(--mono);
}

.load-value small {
    color: #87938e;
    font-size: 8px;
}

.load-track {
    display: block;
    width: 78px;
    height: 4px;
    overflow: hidden;
    border-radius: 5px;
    background: #39423d;
}

.load-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.load-green {
    background: var(--lime);
}

.load-red {
    background: var(--red);
}

.load-blue {
    background: #7acde0;
}

.load-purple {
    background: var(--purple);
}

.status-pill {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 8px;
}

.status-on-time {
    background: #263529;
    color: #b8e28b;
}

.status-crowded {
    background: #3a2c27;
    color: #f2b08a;
}

.status-delay {
    background: #3c2929;
    color: #ffaaa0;
}

.table-footer {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #2a3635;
    color: #82908b;
    font-size: 8px;
}

.table-live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.table-footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c4e899;
    font-size: 8px;
    cursor: pointer;
}

.table-footer button span {
    margin-left: 3px;
    font-size: 11px;
}

.chart-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 17px 0 4px;
}

.chart-summary strong {
    font: 700 21px var(--display);
    letter-spacing: -.6px;
}

.chart-summary>span:nth-child(2) {
    color: #91a09a;
    font-size: 9px;
}

.chart-peak {
    margin-left: auto;
    color: #d1dcae;
    font-size: 8px;
}

.chart-peak i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--lime);
}

.demand-chart {
    height: 126px;
    display: flex;
    gap: 8px;
    padding: 0 4px 0 0;
}

.chart-y-axis {
    width: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 21px;
    color: #75827e;
    font: 7px var(--mono);
    text-align: right;
}

.chart-plot {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-bottom: 21px;
}

.chart-gridline {
    position: absolute;
    right: 0;
    left: 0;
    border-top: 1px dashed #36413c;
}

.grid-80 {
    top: 0;
}

.grid-60 {
    top: 25%;
}

.grid-40 {
    top: 50%;
}

.grid-20 {
    top: 75%;
}

.chart-bars {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    padding: 0 6px;
}

.chart-bars.hour-window {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bar-column[hidden] {
    display: none;
}

.bar-column {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
}

.bar-column i {
    position: absolute;
    bottom: 0;
    width: min(24px, 70%);
    min-height: 4px;
    border: 1px solid #51604a;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #a5d65e70, #a5d65e25);
}

.bar-column.peak-bar i {
    border-color: #d1f48a;
    background: linear-gradient(180deg, #c5f277dd, #a2d74d70);
    box-shadow: 0 0 14px #b8ed6920;
}

.bar-value {
    z-index: 1;
    margin-bottom: auto;
    padding-top: 1px;
    color: #abb8ad;
    font: 7px var(--mono);
}

.peak-bar .bar-value {
    color: #d8f79f;
}

.bar-column>span {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    color: #87938e;
    font: 7px var(--mono);
    white-space: nowrap;
    transform: translateX(-50%);
}

.forecast-foot {
    display: flex;
    justify-content: space-between;
    padding: 9px 0 10px;
    border-top: 1px solid #2a3534;
    color: #87948e;
    font-size: 8px;
}

.forecast-foot span:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b3c8a0;
    font: 8px var(--mono);
}

.forecast-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
}

.recommendations-section {
    margin-top: 23px;
}

.recommendation-heading {
    margin-bottom: 12px;
}

.proposed-load-summary {
    margin: 0 0 10px;
    color: #a8b9b5;
    font-size: 10px;
}

.recommendation-count {
    padding: 5px 8px;
    border: 1px solid #394732;
    border-radius: 20px;
    background: #202a1e;
    color: #c8e99a;
    font-size: 9px;
}

.recommendation-count span {
    margin-right: 3px;
    color: var(--lime);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.recommendation-card {
    padding: 14px 15px 0;
    border: 1px solid #374432;
    border-radius: 8px;
    background: linear-gradient(120deg, #1c2820, #192323 65%);
}

.rec-secondary {
    border-color: #30383a;
    background: linear-gradient(120deg, #1c2227, #192323 65%);
}

.rec-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rec-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bddb8f;
    font: 8px var(--mono);
    letter-spacing: .4px;
}

.rec-type span {
    font-size: 12px;
}

.rec-secondary .rec-type {
    color: #bac4db;
}

.impact-tag {
    padding: 4px 6px;
    border-radius: 3px;
    background: #33442a;
    color: #c9ea9e;
    font: 7px var(--mono);
    letter-spacing: .5px;
}

.impact-medium {
    background: #343140;
    color: #c9baf3;
}

.recommendation-card h3 {
    margin: 12px 0 5px;
    font: 650 13px var(--display);
    letter-spacing: -.2px;
}

.recommendation-card>p {
    min-height: 31px;
    margin-bottom: 11px;
    color: #95a29c;
    font-size: 9px;
    line-height: 1.6;
}

.rec-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #344038;
    border-bottom: 1px solid #344038;
}

.rec-metrics>div+div {
    padding-left: 10px;
    border-left: 1px solid #344038;
}

.rec-metrics span {
    display: block;
    color: #82908a;
    font: 7px var(--mono);
    letter-spacing: .25px;
}

.rec-metrics strong {
    display: block;
    margin-top: 5px;
    color: #d9e5d4;
    font: 600 12px var(--display);
}

.rec-metrics small {
    color: #a2afa5;
    font: 8px var(--font);
}

.rec-footer {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.feasible-check {
    color: #abd378;
    font-size: 8px;
}

.feasible-check::first-letter {
    font-weight: 700;
}

.rec-secondary .feasible-check {
    color: #b6b0d1;
}

.apply-button {
    padding: 6px 9px;
    border: 1px solid #617a46;
    border-radius: 4px;
    background: #33452b;
    color: #d6f2b0;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}

.apply-button:hover {
    background: #435a37;
}

.apply-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.apply-button.applied {
    border-color: #526d3c;
    background: #293a26;
    color: #c5eb9d;
}

.infeasible-check {
    color: var(--red) !important;
}

.apply-button span {
    margin-left: 5px;
    font-size: 12px;
}

.secondary-apply {
    border-color: #4a4657;
    background: #302d39;
    color: #d1c8ec;
}

.secondary-apply:hover {
    background: #3b3748;
}

.comparison-panel {
    display: flex;
    min-height: 77px;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    margin-top: 18px;
    padding: 12px 15px;
    border: 1px solid #354232;
    border-radius: 8px;
    background: linear-gradient(105deg, #202c20, #1b2423 67%, #1b2423);
}

.comparison-copy {
    display: flex;
    min-width: 210px;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.comparison-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border-radius: 7px;
    background: #34472b;
    color: var(--lime);
    font-size: 15px;
}

.comparison-copy strong {
    display: block;
    font: 650 11px var(--display);
}

.comparison-copy p {
    margin: 4px 0 0;
    color: #909c95;
    font-size: 8px;
}

.comparison-stat {
    min-width: 77px;
}

.comparison-stat>span {
    display: block;
    color: #8a968f;
    font: 7px var(--mono);
    letter-spacing: .35px;
}

.comparison-stat strong {
    display: block;
    margin-top: 5px;
    color: #c8eb98;
    font: 650 16px var(--display);
}

.comparison-stat strong span {
    color: #a9b8a4;
    font: 8px var(--font);
}

.comparison-link {
    padding: 6px 0 6px 10px;
    border: 0;
    border-left: 1px solid #3a4539;
    background: transparent;
    color: #c5e792;
    font-size: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.comparison-link:hover {
    color: var(--lime);
}

.method-panel {
    margin-top: 12px;
    border: 1px solid #293535;
    border-radius: 7px;
    background: #151e1f;
}

.method-panel summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
}

.method-panel summary::-webkit-details-marker {
    display: none;
}

.method-icon {
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    place-items: center;
    border: 1px solid #53614d;
    border-radius: 50%;
    color: #cee89b;
    font: 10px var(--mono);
}

.method-panel summary>span:nth-child(2) {
    flex: 1;
}

.method-panel summary strong {
    display: block;
    color: #ccd7cf;
    font-size: 9px;
    font-weight: 600;
}

.method-panel summary small {
    display: block;
    margin-top: 3px;
    color: #82908b;
    font-size: 8px;
}

.method-toggle {
    color: #9ba99e;
    font-size: 16px;
    transition: transform .2s ease;
}

.method-panel[open] .method-toggle {
    transform: rotate(45deg);
}

.method-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 20px;
    padding: 3px 15px 15px 40px;
}

.method-content strong {
    color: #cedbd0;
    font-size: 9px;
}

.method-content p {
    margin: 5px 0 0;
    color: #8e9c95;
    font-size: 8px;
    line-height: 1.65;
}

.method-service {
    grid-column: 1 / -1;
    padding-top: 11px;
    border-top: 1px solid #2b3835;
}

.method-service p b {
    color: #ccdda9;
    font-weight: 600;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 4px;
    color: #687672;
    font: 7px var(--mono);
    letter-spacing: .55px;
}

.footer-divider {
    margin: 0 4px;
    color: #8ca178;
}

.toast {
    position: fixed;
    z-index: 10;
    right: 25px;
    bottom: 24px;
    max-width: 370px;
    padding: 12px 16px;
    border: 1px solid #566842;
    border-radius: 7px;
    background: #222e21;
    box-shadow: 0 10px 35px #0005;
    color: #e1efd4;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(9px);
    transition: opacity .2s ease, transform .2s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-break {
    display: none;
}

@media (min-width: 1500px) {
    .page-content {
        padding-right: 49px;
        padding-left: 49px;
    }

    .topbar {
        padding-right: 49px;
        padding-left: 49px;
    }

    .map-canvas {
        height: 290px;
    }
}

@media (max-width: 1150px) {
    .sidebar {
        width: 213px;
    }

    .main-content {
        margin-left: 213px;
    }

    .page-content {
        padding-right: 23px;
        padding-left: 23px;
    }

    .topbar {
        padding: 0 23px;
    }

    .kpi-grid {
        gap: 9px;
    }

    .kpi-card {
        padding-right: 10px;
        padding-left: 11px;
    }

    .network-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr);
    }

    .lower-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(270px, .9fr);
    }

    .comparison-panel {
        gap: 10px;
        padding-right: 11px;
        padding-left: 11px;
    }

    .comparison-copy {
        min-width: 175px;
    }
}

@media (max-width: 920px) {
    .sidebar {
        width: 65px;
        align-items: center;
        padding: 19px 7px 12px;
    }

    .brand {
        margin: 1px 0 29px;
    }

    .brand-mark {
        width: 37px;
    }

    .brand-name,
    .workspace-switcher>span:nth-child(2),
    .workspace-switcher .chevron,
    .nav-label,
    .help-link {
        display: none;
    }

    .workspace-switcher {
        justify-content: center;
        width: 43px;
        height: 43px;
        min-height: 43px;
        padding: 5px;
    }

    .workspace-icon {
        width: 29px;
        height: 29px;
    }

    .primary-nav {
        width: 100%;
        margin-top: 25px;
    }

    .nav-item {
        justify-content: center;
        width: 48px;
        height: 42px;
        gap: 0;
        padding: 0;
        font-size: 0;
    }

    .nav-icon {
        font-size: 17px;
    }

    .active-dot {
        right: 4px;
        width: 4px;
        height: 4px;
    }

    .nav-count {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 14px;
        padding: 1px 3px;
        font-size: 8px;
    }

    .sidebar-live {
        justify-content: center;
        width: 42px;
        height: 39px;
        margin: 0 0 10px;
        padding: 0;
    }

    .sidebar-live>span:last-child,
    .help-link,
    .profile>span:not(.avatar) {
        display: none;
    }

    .profile {
        justify-content: center;
        width: 47px;
        padding: 11px 0 2px;
    }

    .main-content {
        margin-left: 65px;
    }

    .network-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(235px, .9fr);
        gap: 9px;
    }

    .lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .demand-section {
        padding-bottom: 0;
    }

    .demand-chart {
        height: 145px;
    }

    .chart-plot {
        margin-bottom: 21px;
    }

    .bar-column i {
        width: min(31px, 60%);
    }

    .arrivals-card {
        padding-right: 11px;
        padding-left: 11px;
    }

    .comparison-panel {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .comparison-copy {
        flex: 1 0 100%;
    }

    .comparison-stat {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .sidebar {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: space-around;
        padding: 4px 9px calc(4px + env(safe-area-inset-bottom));
        border-top: 1px solid #303c3d;
        border-right: 0;
        background: #111a1bf5;
    }

    .brand,
    .workspace-switcher,
    .nav-label,
    .sidebar-bottom {
        display: none;
    }

    .primary-nav {
        display: flex;
        width: 100%;
        justify-content: space-around;
        margin: 0;
    }

    .primary-nav .nav-item {
        display: flex;
        width: 45px;
        height: 42px;
    }

    .primary-nav .nav-item:not(.active) {
        display: flex;
    }

    .primary-nav .nav-item::after {
        display: none;
    }

    .primary-nav .nav-item.active {
        background: transparent;
    }

    .nav-icon {
        font-size: 19px;
    }

    .active-dot {
        top: 3px;
        right: 4px;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    .topbar {
        height: 47px;
        padding: 0 15px;
    }

    .topbar-right {
        gap: 9px;
    }

    .service-status {
        font-size: 0;
        gap: 0;
    }

    .service-status .live-indicator {
        width: 7px;
        height: 7px;
    }

    .topbar-divider {
        display: none;
    }

    .date-label {
        font-size: 8px;
    }

    .page-content {
        padding: 23px 14px 14px;
    }

    .welcome-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 17px;
    }

    h1 {
        font-size: 28px;
    }

    .mobile-break {
        display: initial;
    }

    .welcome-actions {
        width: 100%;
        align-items: flex-end;
    }

    .scenario-select-wrap {
        flex: 1;
        min-width: 0;
    }

    .scenario-select-wrap select {
        width: 100%;
    }

    .button-primary {
        flex: 0 0 auto;
        padding: 0 9px;
        font-size: 10px;
    }

    .button-shortcut {
        display: none;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .kpi-card {
        min-height: 116px;
        padding: 12px 10px 10px;
    }

    .kpi-label {
        font-size: 7px;
    }

    .kpi-value {
        font-size: 23px;
    }

    .kpi-foot {
        flex-wrap: wrap;
        max-width: 130px;
        font-size: 8px;
        gap: 3px 5px;
    }

    .kpi-sparkline {
        right: 8px;
        width: 31%;
        height: 21px;
    }

    .network-section {
        margin-top: 21px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 14px;
    }

    .section-heading p {
        max-width: 260px;
        font-size: 9px;
        line-height: 1.45;
    }

    .section-heading-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 7px;
    }

    .updated-label {
        font-size: 8px;
        white-space: nowrap;
    }

    .text-button {
        font-size: 9px;
        white-space: nowrap;
    }

    .network-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .map-canvas {
        height: 220px;
    }

    .map-legend {
        padding: 0 8px;
    }

    .legend-routes {
        gap: 9px;
    }

    .legend-routes span {
        font-size: 8px;
    }

    .map-assumption {
        font-size: 7px;
    }

    .arrivals-card {
        min-height: 238px;
        padding: 12px;
    }

    .arrival-row {
        min-height: 46px;
    }

    .eta-quality {
        margin-top: 11px;
    }

    .lower-grid {
        gap: 9px;
        margin-top: 12px;
    }

    .panel {
        padding: 12px 10px 0;
    }

    .panel-heading {
        margin-bottom: 10px;
    }

    .panel-heading h2 {
        font-size: 13px;
    }

    .panel-heading p {
        font-size: 8px;
    }

    th {
        padding: 0 5px 8px;
        font-size: 7px;
    }

    td {
        height: 46px;
        padding: 5px;
        font-size: 8px;
    }

    .table-route strong {
        font-size: 8px;
    }

    .table-route small,
    .table-sub {
        font-size: 7px;
    }

    .load-track {
        width: 58px;
    }

    .status-pill {
        padding: 4px;
        font-size: 7px;
    }

    .demand-chart {
        height: 137px;
    }

    .chart-bars {
        gap: 4px;
    }

    .chart-bars.hour-window {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .chart-summary {
        margin-top: 14px;
    }

    .chart-peak {
        font-size: 7px;
    }

    .recommendations-section {
        margin-top: 19px;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .recommendation-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .recommendation-card>p {
        min-height: initial;
    }

    .recommendation-count {
        font-size: 8px;
        white-space: nowrap;
    }

    .rec-metrics span {
        font-size: 6px;
    }

    .rec-metrics>div+div {
        padding-left: 7px;
    }

    .comparison-panel {
        gap: 12px 8px;
        padding: 12px 10px;
    }

    .comparison-copy {
        min-width: 100%;
    }

    .comparison-copy p {
        font-size: 7px;
    }

    .comparison-stat {
        min-width: 0;
    }

    .comparison-stat>span {
        font-size: 6px;
    }

    .comparison-stat strong {
        font-size: 14px;
    }

    .comparison-link {
        padding-left: 7px;
        font-size: 7px;
    }

    .method-content {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 14px;
    }

    .method-service {
        grid-column: auto;
    }

    .page-footer {
        gap: 9px;
        font-size: 6px;
    }

    .page-footer span:last-child {
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media (max-width: 380px) {
    .page-content {
        padding-right: 10px;
        padding-left: 10px;
    }

    .topbar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .breadcrumb {
        gap: 6px;
        font-size: 9px;
    }

    .kpi-label {
        font-size: 6px;
        letter-spacing: .3px;
    }

    .kpi-foot {
        max-width: 118px;
        font-size: 7px;
    }

    .section-heading-right {
        gap: 5px;
    }

    .updated-label {
        font-size: 7px;
    }

    .recommendation-count {
        padding: 4px 6px;
        font-size: 7px;
    }

    .rec-metrics {
        gap: 5px;
    }

    .rec-metrics > div + div {
        padding-left: 5px;
    }
}

.purpose-line {
    display: block;
    min-height: 1.13em;
    margin-top: 2px;
    color: #8debd2;
    background: linear-gradient(90deg, #b7f36b 0%, #76e3c5 52%, #79cfff 100%);
    background-clip: text;
    font-size: .76em;
    letter-spacing: -.9px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px #76e3c522;
    transition: opacity .18s ease, transform .18s ease;
}

.purpose-line.is-changing {
    opacity: .18;
    transform: translateX(-12px);
}

.purpose-letter {
    display: inline-block;
    color: #c8ff88;
    white-space: pre;
    -webkit-text-fill-color: #c8ff88;
    text-shadow: 0 0 14px #9ef56c55;
    animation: purpose-letter-in .32s both cubic-bezier(.2, .75, .25, 1);
}

@keyframes purpose-letter-in {
    from {
        opacity: 0;
        transform: translateX(-.3em);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .purpose-line {
        max-width: 100%;
        font-size: .78em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .purpose-line,
    .purpose-letter {
        transition: none;
        animation: none;
    }
}

:root {
    --bg: #0a1016;
    --sidebar: #0c141c;
    --surface: #111c25;
    --surface-raised: #16232d;
    --surface-hover: #1a2a34;
    --border: #243642;
    --border-soft: #1d2e39;
    --text: #eff6f4;
    --muted: #9aaeb1;
    --faint: #71888d;
    --lime: #b7f36b;
    --lime-soft: #1b3024;
    --green: #9de884;
    --cyan: #66dfc8;
    --purple: #c4a5ff;
    --orange: #ffb779;
}

html {
    background: var(--bg);
}

body {
    background:
        radial-gradient(ellipse at 78% -10%, #12352f66, transparent 36rem),
        radial-gradient(ellipse at 5% 42%, #17294445, transparent 30rem),
        var(--bg);
    color: var(--text);
}

::selection {
    background: #b7f36b55;
    color: #fff;
}

.sidebar {
    background: linear-gradient(180deg, #0d171f 0%, #0b131b 100%);
    border-right-color: #243641;
    box-shadow: 12px 0 36px #00000012;
}

.brand-mark {
    filter: drop-shadow(0 0 12px #b7f36b55);
}

.workspace-switcher {
    border-color: #2a414b;
    border-radius: 11px;
    background: linear-gradient(145deg, #162630, #111c25);
    box-shadow: inset 0 1px #ffffff08;
}

.workspace-icon {
    border: 1px solid #b7f36b2b;
    border-radius: 9px;
    background: linear-gradient(145deg, #35513a, #23372e);
}

.nav-item {
    height: 41px;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-item:hover {
    background: #1a2b34;
    color: #f1f8f5;
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(100deg, #243c34, #1a2b30);
    box-shadow: inset 2px 0 var(--lime), inset 0 1px #ffffff08;
    color: #e7f8db;
}

.sidebar-live {
    border-color: #274238;
    border-radius: 10px;
    background: linear-gradient(135deg, #14251f, #121d23);
}

.profile {
    border-color: #263944;
}

.topbar {
    border-bottom-color: #223541;
    background: #0c151de8;
    backdrop-filter: blur(18px) saturate(140%);
}

.icon-button {
    border-color: #2d424e;
    border-radius: 9px;
    background: #14212a;
    transition: border-color .2s ease, background .2s ease;
}

.icon-button:hover {
    border-color: #6aa595;
    background: #1c3035;
}

.page-content {
    max-width: 1640px;
}

h1 {
    color: #f4f8f4;
    font-size: clamp(29px, 2.4vw, 38px);
    letter-spacing: -1.6px;
}

.eyebrow {
    color: #aac2b3;
}

.scenario-select-wrap select {
    border-color: #304652;
    border-radius: 9px;
    background-color: #13212a;
    box-shadow: inset 0 1px #ffffff08;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.scenario-select-wrap select:hover {
    border-color: #547468;
}

.scenario-select-wrap select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px #b7f36b20;
}

.button-primary {
    min-height: 38px;
    border-color: #caf894;
    border-radius: 9px;
    background: linear-gradient(135deg, #c6f783, #a6e85c);
    box-shadow: 0 6px 18px #9ad95b24, inset 0 1px #ffffff90;
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}

.button-primary:hover {
    background: linear-gradient(135deg, #d5ff9a, #b2f16b);
    box-shadow: 0 9px 24px #9ad95b38, inset 0 1px #ffffffa8;
    filter: saturate(1.08);
    transform: translateY(-2px);
}

.button-primary:disabled {
    cursor: not-allowed;
    filter: saturate(.65);
    opacity: .72;
    transform: none;
}

.kpi-grid {
    gap: 15px;
}

.kpi-card {
    min-height: 137px;
    padding: 16px 17px 13px;
    border-color: #263b47;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 100% 0%, #203a393d, transparent 55%),
        linear-gradient(145deg, #15232c, #101a23 82%);
    box-shadow: 0 10px 28px #00000012, inset 0 1px #ffffff08;
}

.kpi-card:hover {
    border-color: #45625c;
    box-shadow: 0 14px 34px #00000025, 0 0 0 1px #b7f36b0d;
    transform: translateY(-3px);
}

.kpi-icon {
    width: 27px;
    height: 27px;
    border: 1px solid #ffffff0d;
    border-radius: 8px;
}

.kpi-value {
    margin-top: 12px;
    font-size: 29px;
    letter-spacing: -1.3px;
}

.kpi-sparkline {
    width: 39%;
    height: 30px;
    opacity: .72;
}

.network-section {
    margin-top: 30px;
}

.section-heading h2,
.panel-heading h2 {
    font-size: 16px;
    letter-spacing: -.35px;
}

.network-grid {
    gap: 15px;
}

.map-card,
.arrivals-card,
.panel {
    border-color: #263b47;
    border-radius: 14px;
    background: linear-gradient(145deg, #14212b, #101a23);
    box-shadow: 0 12px 32px #00000017, inset 0 1px #ffffff07;
}

.map-card:hover,
.arrivals-card:hover,
.panel:hover,
.recommendation-card:hover {
    border-color: #3d5a5b;
    box-shadow: 0 16px 36px #00000026, inset 0 1px #ffffff0a;
}

.map-toolbar {
    height: 48px;
    border-bottom-color: #263b46;
}

.map-live-badge {
    border-color: #42604a;
    border-radius: 5px;
    background: #1b302533;
}

.map-canvas {
    background-color: #122129;
    background-image:
        radial-gradient(ellipse at 55% 48%, #1f474133, transparent 52%),
        linear-gradient(19deg, transparent 45%, #304c4355 45.3%, #304c4355 47%, transparent 47.3%),
        linear-gradient(112deg, transparent 35%, #354a453d 35.3%, #354a453d 36.3%, transparent 36.6%),
        linear-gradient(0deg, transparent 75%, #2c403c 75.3%, #2c403c 77%, transparent 77.3%);
}

.map-grid {
    opacity: .2;
    background-image: linear-gradient(#64817920 1px, transparent 1px), linear-gradient(90deg, #64817920 1px, transparent 1px);
    background-size: 31px 31px;
}

.route-shadow {
    stroke: #061015;
    stroke-width: 9;
    opacity: .88;
}

.route-line {
    stroke-width: 2.5;
    stroke-dasharray: 1 0;
    filter: drop-shadow(0 0 4px currentColor);
}

.route-one {
    color: var(--lime);
}

.route-two {
    color: var(--purple);
}

.route-three {
    color: var(--orange);
}

.map-stops circle {
    fill: #192b30;
    stroke: #c0d2bd;
}

.vehicle-marker {
    border-color: #0d171e;
    border-radius: 9px;
    box-shadow: 0 5px 16px #0009, 0 0 0 4px #ffffff0b;
}

.vehicle-marker:hover {
    box-shadow: 0 7px 20px #000b, 0 0 0 6px #ffffff12;
}

.map-zoom {
    border-color: #3b535d;
    border-radius: 8px;
    background: #101d25eF;
    box-shadow: 0 4px 12px #0005;
}

.map-legend {
    min-height: 42px;
    border-top-color: #263b46;
}

.arrivals-card {
    padding: 17px 16px 13px;
}

.arrival-row {
    min-height: 54px;
    border-bottom-color: #263943;
}

.route-badge {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border: 1px solid #ffffff10;
    border-radius: 9px;
}

.eta-quality {
    padding: 13px 11px 10px;
    border: 1px solid #29413b;
    border-radius: 10px;
    background: linear-gradient(120deg, #162b29, #14232a);
}

.accuracy-track {
    background: #2c413a;
}

.accuracy-track span {
    background: linear-gradient(90deg, #71d6ad, #c9f47b);
    box-shadow: 0 0 10px #91e77744;
}

.lower-grid {
    gap: 15px;
    margin-top: 18px;
}

.panel {
    padding: 16px 16px 0;
}

.panel-heading {
    margin-bottom: 15px;
}

.chart-period {
    border-color: #314853;
    border-radius: 8px;
    background: #16252e;
    transition: border-color .2s ease, background .2s ease;
}

.chart-period:hover {
    border-color: #55786e;
    background: #1c3036;
}

th,
.forecast-foot {
    border-color: #263b46;
}

tbody tr {
    transition: background .18s ease;
}

tbody tr:hover {
    background: #1a2b342e;
}

.load-track {
    overflow: hidden;
    border-radius: 99px;
    background: #273942;
}

.load-track i {
    border-radius: inherit;
    transition: width .35s ease;
}

.status-pill {
    border-radius: 99px;
}

.demand-chart {
    border-radius: 10px;
    background: linear-gradient(180deg, #111f28, #101b24);
}

.chart-gridline {
    border-top-color: #2b3d45;
}

.bar-column i {
    border-color: #76a46b;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #91db8c9c, #47aa9160);
    transition: height .35s ease, filter .2s ease;
}

.bar-column:hover i {
    filter: brightness(1.25);
}

.bar-column.peak-bar i {
    border-color: #ccf587;
    background: linear-gradient(180deg, #d4ff8fe8, #7edb9a89);
    box-shadow: 0 0 19px #a7ef7a3d;
}

.recommendation-grid {
    gap: 15px;
}

.recommendation-card {
    overflow: hidden;
    padding: 16px 17px 0;
    border-color: #345344;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 100% 0%, #3353452b, transparent 45%),
        linear-gradient(145deg, #192b2b, #131f27 70%);
    box-shadow: 0 10px 28px #00000013, inset 0 1px #ffffff09;
}

.recommendation-card::before {
    display: block;
    position: absolute;
    width: 4px;
    height: 42px;
    margin: -16px 0 0 -17px;
    border-radius: 0 0 4px;
    background: linear-gradient(180deg, var(--lime), #66d5ae);
    content: "";
}

.rec-secondary {
    border-color: #344451;
    background:
        radial-gradient(ellipse at 100% 0%, #5042712b, transparent 45%),
        linear-gradient(145deg, #1a2631, #131e27 70%);
}

.rec-secondary::before {
    background: linear-gradient(180deg, #c4a5ff, #74cde3);
}

.impact-tag {
    border-radius: 99px;
}

.recommendation-card h3 {
    font-size: 14px;
    letter-spacing: -.3px;
}

.recommendation-card > p {
    color: #a8b9b5;
    font-size: 10px;
    line-height: 1.65;
}

.rec-metrics {
    border-color: #30434a;
}

.rec-metrics > div + div {
    border-left-color: #30434a;
}

.apply-button {
    padding: 7px 11px;
    border-color: #587d51;
    border-radius: 8px;
    background: linear-gradient(135deg, #314b37, #253c34);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.apply-button:hover {
    border-color: #8ebb6a;
    background: linear-gradient(135deg, #3c5c40, #2b493e);
    transform: translateY(-1px);
}

.secondary-apply {
    border-color: #514b69;
    border-radius: 8px;
    background: linear-gradient(135deg, #332f48, #262b3a);
}

.secondary-apply:hover {
    border-color: #8273a8;
    background: linear-gradient(135deg, #413b5a, #30364b);
}

.comparison-panel {
    min-height: 88px;
    border-color: #3c5949;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 2% 50%, #8bdc6720, transparent 26rem),
        linear-gradient(110deg, #192c29, #14232b 70%);
    box-shadow: 0 10px 28px #00000016, inset 0 1px #ffffff09;
}

.comparison-icon {
    border: 1px solid #a9e47733;
    border-radius: 10px;
    background: linear-gradient(145deg, #344d36, #253d37);
    box-shadow: 0 0 18px #a9e47712;
}

.comparison-stat strong {
    color: #e7f5dd;
}

.comparison-link {
    border-radius: 7px;
    transition: color .2s ease, background .2s ease;
}

.comparison-link:hover {
    background: #ffffff0a;
    color: #d8f9a5;
}

.method-panel {
    overflow: hidden;
    border-color: #293d47;
    border-radius: 13px;
    background: linear-gradient(145deg, #14212a, #101a23);
}

.method-panel[open] {
    box-shadow: 0 12px 32px #0000001c;
}

.method-panel summary {
    min-height: 67px;
}

.method-content {
    border-top-color: #293d47;
}

.toast {
    border: 1px solid #405a52;
    border-radius: 12px;
    background: #17272beF;
    box-shadow: 0 16px 38px #0008, inset 0 1px #ffffff0c;
    backdrop-filter: blur(15px);
}

button,
select {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1150px) {
    .kpi-grid {
        gap: 11px;
    }

    .kpi-card {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 640px) {
    .sidebar {
        border-top-color: #2c414a;
        background: #0d171fee;
        box-shadow: 0 -9px 30px #0004;
        backdrop-filter: blur(18px) saturate(140%);
    }

    .primary-nav .nav-item {
        border-radius: 11px;
    }

    .primary-nav .nav-item.active {
        background: #21352f;
        box-shadow: inset 0 0 0 1px #b7f36b20;
    }

    .kpi-card {
        min-height: 120px;
        border-radius: 12px;
    }

    .network-section {
        margin-top: 25px;
    }

    .recommendation-card {
        border-radius: 12px;
    }

    .comparison-panel {
        border-radius: 12px;
    }
}

@media (max-width: 380px) {
    .kpi-grid {
        gap: 7px;
    }

    .kpi-card {
        padding-right: 8px;
        padding-left: 9px;
    }

    .recommendation-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .recommendation-card::before {
        margin-left: -12px;
    }
}