:root {
    --v2-ink: #0b1b24;
    --v2-ink-soft: #29414d;
    --v2-muted: #60727b;
    --v2-canvas: #f6f8f5;
    --v2-paper: #fff;
    --v2-line: #dce4df;
    --v2-route: #087f6a;
    --v2-route-dark: #066655;
    --v2-route-soft: #ddf3ec;
    --v2-route-faint: #eef9f5;
    --v2-warning: #e9a23b;
    --v2-warning-soft: #fff1d8;
    --v2-danger: #c9463d;
    --v2-danger-soft: #fde8e5;
    --v2-shadow: 0 18px 45px rgba(11, 27, 36, .1);
}

html,
body {
    background: var(--v2-canvas);
    color: var(--v2-ink);
    font-family: "Source Sans 3", sans-serif;
}

.platform-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--v2-line);
    box-shadow: none;
    color: var(--v2-ink);
    backdrop-filter: blur(16px);
}

.v2-top-navigation {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: auto minmax(14rem, 25rem) 1fr auto;
    margin: 0 auto;
    max-width: 1480px;
    min-height: 72px;
    padding: .75rem 1.5rem;
}

.v2-brand-lockup {
    align-items: center;
    color: var(--v2-ink);
    display: inline-flex;
    gap: .7rem;
    text-decoration: none;
}

.v2-brand-mark {
    align-items: center;
    background: var(--v2-route);
    border-radius: .75rem;
    color: var(--v2-paper);
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: .78rem;
    font-weight: 700;
    height: 2.4rem;
    justify-content: center;
    letter-spacing: -.04em;
    width: 2.4rem;
}

.v2-brand-copy {
    display: grid;
    line-height: 1.05;
}

.v2-brand-copy strong {
    font-family: "Sora", sans-serif;
    font-size: .92rem;
}

.v2-brand-copy small {
    color: var(--v2-muted);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    margin-top: .23rem;
    text-transform: uppercase;
}

.v2-global-search {
    align-items: center;
    background: #edf2ee;
    border: 1px solid transparent;
    border-radius: .75rem;
    color: var(--v2-muted);
    display: flex;
    gap: .6rem;
    min-height: 2.75rem;
    padding: 0 .85rem;
}

.v2-global-search:focus-within {
    border-color: var(--v2-route);
    box-shadow: 0 0 0 3px rgba(8, 127, 106, .1);
}

.v2-global-search input {
    background: transparent;
    border: 0;
    color: var(--v2-ink);
    min-width: 0;
    outline: 0;
    width: 100%;
}

.v2-primary-navigation {
    align-items: center;
    display: flex;
    gap: .2rem;
    justify-content: center;
    min-width: 0;
}

.v2-nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .58rem;
    color: var(--v2-ink-soft);
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: .76rem;
    font-weight: 600;
    min-height: 2.45rem;
    padding: 0 .7rem;
    text-decoration: none;
    white-space: nowrap;
}

.v2-nav-link.active,
.v2-nav-link:hover,
.v2-nav-cluster[open] > summary {
    background: #edf2ee;
    color: var(--v2-ink);
}

.v2-nav-cluster,
.v2-account-menu {
    position: relative;
}

.v2-nav-cluster summary,
.v2-account-menu summary {
    cursor: pointer;
    list-style: none;
}

.v2-nav-cluster summary::-webkit-details-marker,
.v2-account-menu summary::-webkit-details-marker {
    display: none;
}

.v2-nav-cluster-menu,
.v2-account-popover {
    background: var(--v2-paper);
    border: 1px solid var(--v2-line);
    border-radius: .9rem;
    box-shadow: var(--v2-shadow);
    display: grid;
    min-width: 13.5rem;
    padding: .5rem;
    position: absolute;
    right: 0;
    top: calc(100% + .55rem);
    z-index: 40;
}

.v2-menu-link {
    border-radius: .6rem;
    color: var(--v2-ink-soft);
    font-size: .86rem;
    font-weight: 600;
    padding: .65rem .75rem;
    text-decoration: none;
}

.v2-menu-link.active,
.v2-menu-link:hover {
    background: var(--v2-route-faint);
    color: var(--v2-route-dark);
}

.v2-header-actions {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.v2-new-load-button,
.v2-login-button,
.v2-logout-button {
    align-items: center;
    border: 0;
    border-radius: .65rem;
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: .76rem;
    font-weight: 600;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0 .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.v2-new-load-button {
    background: var(--v2-ink);
    color: var(--v2-paper);
}

.v2-login-button {
    border: 1px solid var(--v2-line);
    color: var(--v2-ink);
}

.v2-account-menu summary {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.v2-account-avatar {
    align-items: center;
    background: var(--v2-route-soft);
    border-radius: 50%;
    color: var(--v2-route-dark);
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.v2-account-copy {
    display: grid;
    line-height: 1.1;
    max-width: 9rem;
}

.v2-account-copy strong {
    font-size: .78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-account-copy small {
    color: var(--v2-muted);
    font-size: .66rem;
    margin-top: .2rem;
}

.v2-account-popover {
    gap: .5rem;
    min-width: 12rem;
    padding: .75rem;
}

.v2-session-state {
    align-items: center;
    color: var(--v2-muted);
    display: flex;
    font-size: .78rem;
    gap: .5rem;
    padding: .35rem;
}

.v2-session-state i {
    background: var(--v2-route);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(8, 127, 106, .1);
    height: .48rem;
    width: .48rem;
}

.v2-logout-button {
    background: #edf2ee;
    color: var(--v2-ink);
    cursor: pointer;
    width: 100%;
}

.v2-platform-main {
    padding: 0;
}

.v2-workspace-frame {
    max-width: none;
}

.v2-page-content {
    padding: 0;
}

.v2-dashboard {
    margin: 0 auto;
    max-width: 1440px;
    padding: 2.6rem 1.5rem 4.5rem;
}

.v2-dashboard-heading {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.v2-eyebrow,
.v2-panel-label {
    color: var(--v2-route-dark);
    font-family: "Sora", sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 .45rem;
    text-transform: uppercase;
}

.v2-dashboard-heading h1,
.v2-priority-card h2,
.v2-panel-heading h2 {
    color: var(--v2-ink);
    font-family: "Sora", sans-serif;
    letter-spacing: -.045em;
    margin: 0;
}

.v2-dashboard-heading h1 {
    font-size: clamp(2.25rem, 4vw, 3.45rem);
    line-height: 1.03;
}

.v2-dashboard-heading p:last-child {
    color: var(--v2-muted);
    font-size: 1.06rem;
    margin: .55rem 0 0;
}

.v2-button {
    align-items: center;
    background: var(--v2-paper);
    border: 1px solid var(--v2-line);
    border-radius: .65rem;
    color: var(--v2-ink);
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: .78rem;
    font-weight: 600;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1rem;
    text-decoration: none;
}

.v2-button:hover {
    border-color: #b6c7be;
    color: var(--v2-ink);
    transform: translateY(-1px);
}

.v2-button-primary {
    background: var(--v2-ink);
    border-color: var(--v2-ink);
    color: var(--v2-paper);
}

.v2-button-primary:hover {
    color: var(--v2-paper);
}

.v2-dashboard-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 15rem minmax(0, 1fr);
}

.v2-filter-panel,
.v2-priority-card,
.v2-metric-grid article,
.v2-operations-panel {
    background: var(--v2-paper);
    border: 1px solid var(--v2-line);
    border-radius: .9rem;
}

.v2-filter-panel {
    align-self: start;
    display: grid;
    gap: .22rem;
    padding: 1.1rem;
    position: sticky;
    top: 6rem;
}

.v2-filter-panel > .v2-panel-label {
    margin: .25rem .65rem .65rem;
}

.v2-filter-panel a {
    align-items: center;
    border-radius: .62rem;
    color: var(--v2-ink-soft);
    display: flex;
    font-size: .85rem;
    gap: .8rem;
    justify-content: space-between;
    min-height: 2.7rem;
    padding: .55rem .7rem;
    text-decoration: none;
}

.v2-filter-panel a strong {
    color: var(--v2-muted);
    font-size: .78rem;
}

.v2-filter-panel a:hover,
.v2-filter-panel a.is-active {
    background: var(--v2-route-soft);
    color: var(--v2-route-dark);
}

.v2-dashboard-workspace {
    display: grid;
    gap: 1.25rem;
}

.v2-priority-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, .65fr);
    min-height: 15.5rem;
    overflow: hidden;
}

.v2-priority-card > div:first-child {
    align-self: center;
    padding: clamp(1.6rem, 3.6vw, 2.6rem);
}

.v2-priority-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.08;
    max-width: 42rem;
}

.v2-priority-card p:not(.v2-eyebrow) {
    color: var(--v2-muted);
    font-size: 1rem;
    margin: .8rem 0 1.2rem;
    max-width: 40rem;
}

.v2-route-visual {
    background: var(--v2-route-soft);
    min-height: 13rem;
    overflow: hidden;
    position: relative;
}

.v2-route-visual::before,
.v2-route-visual::after {
    border: 1px solid rgba(8, 127, 106, .18);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.v2-route-visual::before {
    height: 15rem;
    right: -4rem;
    top: -5rem;
    width: 15rem;
}

.v2-route-visual::after {
    bottom: -4rem;
    height: 10rem;
    left: -3rem;
    width: 10rem;
}

.v2-route-line {
    background: var(--v2-route);
    border-radius: 99px;
    height: .25rem;
    left: 17%;
    position: absolute;
    top: 49%;
    transform: rotate(-14deg);
    width: 66%;
}

.v2-route-origin,
.v2-route-destination {
    border: .35rem solid var(--v2-paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(8, 127, 106, .15);
    height: 1.55rem;
    position: absolute;
    width: 1.55rem;
}

.v2-route-origin {
    background: var(--v2-ink);
    left: 13%;
    top: 57%;
}

.v2-route-destination {
    background: var(--v2-route);
    right: 13%;
    top: 34%;
}

.v2-metric-grid {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-metric-grid article {
    min-width: 0;
    padding: 1.2rem;
}

.v2-metric-grid span {
    color: var(--v2-muted);
    display: block;
    font-size: .8rem;
}

.v2-metric-grid strong {
    color: var(--v2-ink);
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    letter-spacing: -.05em;
    line-height: 1;
    margin: .55rem 0 .8rem;
}

.v2-metric-grid a,
.v2-text-link {
    color: var(--v2-route-dark);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.v2-operations-panel {
    overflow: hidden;
}

.v2-panel-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.4rem 1.5rem 1rem;
}

.v2-panel-heading h2 {
    font-size: 1.3rem;
}

.v2-operation-rows {
    border-top: 1px solid var(--v2-line);
}

.v2-operation-rows a {
    align-items: center;
    color: var(--v2-ink);
    display: grid;
    gap: .9rem;
    grid-template-columns: 2.6rem 1fr auto auto;
    min-height: 5rem;
    padding: .85rem 1.5rem;
    text-decoration: none;
}

.v2-operation-rows a + a {
    border-top: 1px solid var(--v2-line);
}

.v2-operation-rows a:hover {
    background: var(--v2-route-faint);
}

.v2-operation-icon {
    align-items: center;
    background: var(--v2-route-soft);
    border-radius: .7rem;
    color: var(--v2-route-dark);
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: .78rem;
    font-weight: 700;
    height: 2.6rem;
    justify-content: center;
    width: 2.6rem;
}

.v2-operation-rows span:nth-child(2) {
    display: grid;
}

.v2-operation-rows small {
    color: var(--v2-muted);
    margin-top: .15rem;
}

.v2-operation-rows b {
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
}

.v2-operation-rows i {
    color: var(--v2-muted);
    font-style: normal;
}

.v2-feedback {
    border-radius: .8rem;
    margin: 2rem auto;
    max-width: 75rem;
    padding: 1rem 1.15rem;
}

.v2-feedback-warning {
    background: var(--v2-warning-soft);
    color: #83510a;
}

.v2-feedback-error {
    background: var(--v2-danger-soft);
    color: var(--v2-danger);
}

.v2-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem auto;
    max-width: 75rem;
}

.v2-dashboard-loading {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: center;
    min-height: 20rem;
}

.v2-dashboard-loading span {
    animation: v2-pulse 1s ease-in-out infinite alternate;
    background: var(--v2-route);
    border-radius: 50%;
    height: .8rem;
    width: .8rem;
}

@keyframes v2-pulse {
    from { opacity: .35; transform: scale(.8); }
    to { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 1180px) {
    .v2-top-navigation {
        grid-template-columns: auto 1fr auto;
    }

    .v2-global-search {
        display: none;
    }

    .v2-primary-navigation {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .v2-account-copy {
        display: none;
    }

    .v2-dashboard-layout {
        grid-template-columns: 13rem minmax(0, 1fr);
    }

    .v2-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .v2-top-navigation {
        grid-template-columns: auto auto;
        padding: .75rem 1rem;
    }

    .v2-primary-navigation {
        grid-column: 1 / -1;
        order: 3;
    }

    .v2-header-actions {
        justify-self: end;
    }

    .v2-new-load-button {
        display: none;
    }

    .v2-dashboard {
        padding: 2rem 1rem 3.5rem;
    }

    .v2-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .v2-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .v2-filter-panel {
        display: flex;
        overflow-x: auto;
        position: static;
    }

    .v2-filter-panel > .v2-panel-label {
        display: none;
    }

    .v2-filter-panel a {
        flex: 0 0 auto;
    }

    .v2-priority-card {
        grid-template-columns: 1fr;
    }

    .v2-route-visual {
        min-height: 10rem;
    }
}

@media (max-width: 520px) {
    .v2-brand-copy small,
    .v2-account-menu {
        display: none;
    }

    .v2-primary-navigation {
        scrollbar-width: none;
    }

    .v2-nav-link {
        padding: 0 .58rem;
    }

    .v2-metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .v2-metric-grid article {
        padding: 1rem;
    }

    .v2-operation-rows a {
        grid-template-columns: 2.6rem 1fr auto;
        padding-inline: 1rem;
    }

    .v2-operation-rows i {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
