.analysis-dashboard {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem
}

.analysis-dashboard__hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start
}

.analysis-dashboard__hero-copy {
    min-width: 0
}

.analysis-dashboard__eyebrow {
    margin: 0 0 .35rem;
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.analysis-dashboard__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.1
}

.analysis-dashboard__subtitle {
    margin: .45rem 0 0;
    max-width: 42rem;
    color: #64748b;
    font-size: .94rem;
    line-height: 1.55
}

.analysis-dashboard__pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-start
}

.analysis-dashboard__pill {
    display: inline-flex;
    flex-direction: column;
    gap: .1rem;
    min-height: 3rem;
    padding: .65rem .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    box-shadow: 0 1px 2px #0f172a0a
}

.analysis-dashboard__pill strong {
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.analysis-dashboard__pill span {
    color: #0f172a;
    font-size: .88rem;
    font-weight: 700
}

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

.analysis-dashboard__kpi {
    display: grid;
    gap: .55rem;
    min-height: 8rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px #0f172a0f
}

.analysis-dashboard__kpi--success {
    background: #ecfdf3;
    border-color: #a7f3d0
}

.analysis-dashboard__kpi--warning {
    background: #fff7ed;
    border-color: #fdba74
}

.analysis-dashboard__kpi--neutral,
.analysis-dashboard__kpi--locked {
    background: #f8fafc;
    border-color: #dbe4ee
}

.analysis-dashboard__kpi-label {
    color: #475569;
    font-size: .85rem;
    font-weight: 700
}

.analysis-dashboard__kpi-value {
    color: #0f172a;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.05
}

.analysis-dashboard__kpi--success .analysis-dashboard__kpi-value {
    color: #047857
}

.analysis-dashboard__kpi--warning .analysis-dashboard__kpi-value {
    color: #b45309
}

.analysis-dashboard__kpi--locked .analysis-dashboard__kpi-value {
    color: #64748b
}

.analysis-dashboard__kpi-helper,
.analysis-dashboard__supporting-note,
.analysis-dashboard__summary-note {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.5
}

.analysis-dashboard__summary-note--warning {
    color: #92400e
}

.analysis-dashboard__scroll-shell {
    overflow-x: auto;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    background: #fcfcfd
}

.analysis-dashboard__content-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr .95fr;
    gap: .9rem;
    align-items: start
}

.analysis-dashboard__card {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px #0f172a0f
}

.analysis-dashboard__card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    align-items: center
}

.analysis-dashboard__card-header h5 {
    margin: 0;
    color: #0f172a;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase
}

.analysis-dashboard__card-body {
    display: grid;
    gap: .85rem
}

.analysis-dashboard__toggle {
    display: inline-flex;
    gap: .3rem;
    padding: .25rem;
    border-radius: 999px;
    background: #f1f5f9
}

.analysis-dashboard__toggle-button {
    border: none;
    background: transparent;
    color: #475569;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer
}

.analysis-dashboard__toggle-button.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px #0f172a14
}

.analysis-dashboard__data-list {
    display: grid;
    gap: .65rem
}

.analysis-dashboard__data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .85rem;
    padding-top: .65rem;
    border-top: 1px solid #edf2f7
}

.analysis-dashboard__data-row:first-child {
    padding-top: 0;
    border-top: none
}

.analysis-dashboard__data-meta {
    min-width: 0
}

.analysis-dashboard__data-label {
    color: #334155;
    font-size: .9rem;
    font-weight: 600
}

.analysis-dashboard__data-helper {
    margin-top: .15rem;
    color: #64748b;
    font-size: .75rem;
    line-height: 1.45
}

.analysis-dashboard__data-value {
    color: #0f172a;
    font-size: .92rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap
}

.analysis-dashboard__data-value--locked {
    color: #64748b
}

.analysis-dashboard__matrix {
    min-width: 38rem
}

.analysis-dashboard__matrix-row {
    display: grid
}

.analysis-dashboard__matrix-row>div {
    min-height: 4.2rem;
    padding: .85rem 1rem;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7
}

.analysis-dashboard__matrix-row--header>div {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #f8fafc
}

.analysis-dashboard__label-column {
    position: sticky;
    left: 0;
    z-index: 1;
    display: grid;
    gap: .2rem;
    align-content: center;
    background: #f8fafc
}

.analysis-dashboard__label-column strong {
    color: #334155;
    font-size: .88rem
}

.analysis-dashboard__label-column span {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.4
}

.analysis-dashboard__label-column--header {
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase
}

.analysis-dashboard__matrix-cell {
    display: grid;
    gap: .25rem;
    align-content: center;
    min-width: 0;
    background: #fff
}

.analysis-dashboard__matrix-cell strong {
    color: #0f172a;
    font-size: .95rem
}

.analysis-dashboard__matrix-cell span {
    color: #64748b;
    font-size: .75rem;
    line-height: 1.4
}

.analysis-dashboard__matrix-cell--locked strong {
    color: #64748b
}

.analysis-dashboard__matrix-section-title {
    padding: .65rem 1rem;
    border-bottom: 1px solid #edf2f7;
    background: #f1f5f9;
    color: #64748b;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.analysis-dashboard__bars {
    display: grid;
    gap: .85rem
}

.analysis-dashboard__bar-row {
    display: grid;
    gap: .4rem
}

.analysis-dashboard__bar-header {
    display: flex;
    justify-content: space-between;
    gap: .75rem
}

.analysis-dashboard__bar-label,
.analysis-dashboard__bar-value {
    font-size: .84rem;
    font-weight: 700
}

.analysis-dashboard__bar-value {
    color: #0f172a;
    white-space: nowrap
}

.analysis-dashboard__bar-value--locked {
    color: #64748b
}

.analysis-dashboard__bar-track {
    height: .8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0
}

.analysis-dashboard__bar-fill {
    height: 100%;
    border-radius: 999px
}

.analysis-dashboard__bar-fill--dark {
    background: #0f172a
}

.analysis-dashboard__bar-fill--amber {
    background: #f59e0b
}

.analysis-dashboard__bar-fill--violet {
    background: #6366f1
}

.analysis-dashboard__bar-fill--green {
    background: #16a34a
}

.analysis-dashboard__bar-fill--cyan {
    background: #0284c7
}

.analysis-dashboard__bar-fill--locked {
    background: #cbd5e1
}

@media (max-width: 1180px) {
    .analysis-dashboard__kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .analysis-dashboard__content-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 720px) {
    .analysis-dashboard__kpi-grid {
        grid-template-columns: 1fr
    }

    .analysis-dashboard__card,
    .analysis-dashboard__kpi {
        padding: .9rem
    }

    .analysis-dashboard__hero {
        gap: .85rem
    }

    .analysis-dashboard__pill-row {
        width: 100%
    }

    .analysis-dashboard__pill {
        min-width: calc(50% - .25rem);
        flex: 1 1 calc(50% - .25rem);
        border-radius: 1rem
    }

    .analysis-dashboard__bar-header,
    .analysis-dashboard__data-row {
        gap: .65rem
    }

    .analysis-dashboard__data-value,
    .analysis-dashboard__bar-value {
        white-space: normal
    }

    .analysis-dashboard__matrix {
        --analysis-dashboard-matrix-label-min: 8rem;
        --analysis-dashboard-matrix-label-max: .5fr;
        min-width: 30rem
    }
}

.compare-dashboard {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem
}

.compare-dashboard__hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start
}

.compare-dashboard__hero--compact {
    align-items: center;
    gap: .75rem
}

.compare-dashboard__hero-copy {
    min-width: 0
}

.compare-dashboard__eyebrow {
    margin: 0 0 .35rem;
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.compare-dashboard__hero--compact .compare-dashboard__eyebrow {
    margin: 0
}

.compare-dashboard__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.1
}

.compare-dashboard__subtitle {
    margin: .45rem 0 0;
    max-width: 42rem;
    color: #64748b;
    font-size: .94rem;
    line-height: 1.55
}

.compare-dashboard__pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.compare-dashboard__pill {
    display: inline-flex;
    flex-direction: column;
    gap: .1rem;
    min-height: 2.5rem;
    padding: .5rem .75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    box-shadow: 0 1px 2px #0f172a0a
}

.compare-dashboard__pill strong {
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.compare-dashboard__pill span {
    color: #0f172a;
    font-size: .88rem;
    font-weight: 700
}

.compare-dashboard__card {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px #0f172a0f
}

.compare-dashboard__card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    align-items: center
}

.compare-dashboard__card-header h5 {
    margin: 0;
    color: #0f172a;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase
}

.compare-dashboard__card-copy,
.compare-dashboard__summary-note,
.compare-dashboard__supporting-note {
    margin: .35rem 0 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.5
}

.compare-dashboard__summary-note--warning {
    color: #92400e
}

.compare-dashboard__scroll-shell {
    overflow-x: auto;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    background: #fcfcfd
}

.compare-dashboard__kpi-grid {
    display: grid;
    min-width: 52rem
}

.compare-dashboard__investment-header,
.compare-dashboard__label-column,
.compare-dashboard__kpi-cell {
    min-height: 5rem;
    padding: .95rem 1rem;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7
}

.compare-dashboard__investment-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #fff
}

.compare-dashboard__investment-header strong,
.compare-dashboard__matrix-row--header strong {
    display: block;
    color: #0f172a;
    font-size: .92rem
}

.compare-dashboard__investment-header span,
.compare-dashboard__matrix-row--header span:last-child {
    color: #64748b;
    font-size: .76rem;
    font-weight: 700
}

.compare-dashboard__label-column {
    position: sticky;
    left: 0;
    z-index: 1;
    display: grid;
    gap: .2rem;
    align-content: center;
    background: #f8fafc
}

.compare-dashboard__label-column strong {
    color: #334155;
    font-size: .88rem
}

.compare-dashboard__label-column span {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.4
}

.compare-dashboard__label-column--header {
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase
}

.compare-dashboard__kpi-cell,
.compare-dashboard__matrix-cell {
    display: grid;
    gap: .25rem;
    align-content: center;
    min-width: 0;
    background: #fff
}

.compare-dashboard__kpi-cell strong,
.compare-dashboard__matrix-cell strong {
    color: #0f172a;
    font-size: .95rem
}

.compare-dashboard__kpi-cell span,
.compare-dashboard__matrix-cell span {
    color: #64748b;
    font-size: .75rem;
    line-height: 1.4
}

.compare-dashboard__kpi-cell--locked strong,
.compare-dashboard__matrix-cell--locked strong {
    color: #64748b
}

.compare-dashboard__kpi-cell--highlight {
    background: #ecfdf3
}

.compare-dashboard__best-badge {
    display: inline-flex;
    width: fit-content;
    padding: .18rem .5rem;
    border: 1px solid #a6f4c5;
    border-radius: 999px;
    background: #fff;
    color: #027a48 !important;
    font-size: .68rem !important;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase
}

.compare-dashboard__toggle {
    display: inline-flex;
    gap: .3rem;
    padding: .25rem;
    border-radius: 999px;
    background: #f1f5f9
}

.compare-dashboard__toggle-button {
    border: none;
    background: transparent;
    color: #475569;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer
}

.compare-dashboard__toggle-button.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px #0f172a14
}

.compare-dashboard__visibility {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.compare-dashboard__visibility-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.25rem;
    padding: .45rem .8rem;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer
}

.compare-dashboard__visibility-chip.active {
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px #0f172a14
}

.compare-dashboard__visibility-chip:disabled {
    opacity: 1;
    cursor: default
}

.compare-dashboard__chart {
    display: grid;
    gap: .9rem
}

.compare-dashboard__chart-row {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    padding: .95rem;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    background: #fcfcfd
}

.compare-dashboard__chart-label {
    color: #0f172a;
    font-size: .9rem;
    font-weight: 800
}

.compare-dashboard__chart-bars {
    display: grid;
    gap: .8rem
}

.compare-dashboard__chart-line {
    display: grid;
    gap: .35rem
}

.compare-dashboard__chart-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center
}

.compare-dashboard__chart-name {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #475569;
    font-size: .8rem;
    font-weight: 700
}

.compare-dashboard__chart-meta strong {
    color: #0f172a;
    font-size: .82rem;
    white-space: nowrap
}

.compare-dashboard__chart-value--locked {
    color: #64748b !important
}

.compare-dashboard__bar-track {
    height: .75rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0
}

.compare-dashboard__bar-fill {
    height: 100%;
    border-radius: 999px
}

.compare-dashboard__bar-fill--locked {
    background: #cbd5e1 !important
}

.compare-dashboard__matrix {
    min-width: 52rem
}

.compare-dashboard__matrix-row {
    display: grid
}

.compare-dashboard__matrix-row>div {
    min-height: 4.35rem;
    padding: .85rem 1rem;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7
}

.compare-dashboard__matrix-row--header>div {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #f8fafc
}

.compare-dashboard__matrix-section-title {
    padding: .65rem 1rem;
    border-bottom: 1px solid #edf2f7;
    background: #f1f5f9;
    color: #64748b;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.compare-dashboard__swatch {
    width: .7rem;
    height: .7rem;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto
}

.compare-dashboard__swatch--ink,
.compare-dashboard__bar-fill--ink {
    background: #0f172a
}

.compare-dashboard__swatch--violet,
.compare-dashboard__bar-fill--violet {
    background: #6366f1
}

.compare-dashboard__swatch--cyan,
.compare-dashboard__bar-fill--cyan {
    background: #0284c7
}

.compare-dashboard__swatch--emerald,
.compare-dashboard__bar-fill--emerald {
    background: #059669
}

.compare-dashboard__swatch--amber,
.compare-dashboard__bar-fill--amber {
    background: #d97706
}

.compare-dashboard__swatch--rose,
.compare-dashboard__bar-fill--rose {
    background: #e11d48
}

@media (max-width: 960px) {
    .compare-dashboard__chart-row {
        grid-template-columns: 1fr
    }
}

@media (max-width: 720px) {
    .compare-dashboard__card {
        padding: .9rem
    }

    .compare-dashboard__pill {
        min-width: calc(50% - .25rem);
        flex: 1 1 calc(50% - .25rem);
        border-radius: 1rem
    }

    .compare-dashboard__chart-meta {
        flex-wrap: wrap
    }

    .compare-dashboard__kpi-grid,
    .compare-dashboard__matrix {
        --compare-dashboard-label-min: 8rem;
        --compare-dashboard-label-max: .45fr;
        min-width: 44rem
    }
}

:root {
    font-family: Inter, Segoe UI, system-ui, sans-serif;
    color: #111827;
    background: #f5f7fb;
    --surface: #f5f7fb;
    --surface-panel: #ffffff;
    --surface-panel-soft: #f8fafc;
    --surface-panel-tint: #f1f5f9;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --line: #dbe3ef;
    --line-strong: #cbd5e1;
    --brand: #0f766e;
    --brand-dark: #0f172a;
    --brand-soft: #e6fffb;
    --accent: #2563eb;
    --danger: #b91c1c;
    --success: #047857;
    --warning: #b45309;
    --radius-sm: .55rem;
    --radius-md: .85rem;
    --radius-lg: 1.1rem;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, .1);
    --shadow-focus: 0 0 0 3px rgba(15, 118, 110, .16)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    height: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 12% 0%, rgba(15, 118, 110, .08), transparent 26rem), linear-gradient(180deg, #f8fafc 0%, var(--surface) 32rem);
    overflow: hidden
}

button,
input,
select,
textarea {
    font: inherit
}

input,
select,
textarea {
    font-weight: 400
}

button:not(:disabled) {
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(15, 118, 110, .68);
    outline-offset: 2px
}

#root {
    min-height: 100%
}

.app-shell {
    --sidebar-width: 240px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: 100dvh;
    height: 100vh;
    min-height: 100dvh;
    min-height: 100vh;
    max-width: 100%;
    overflow: hidden
}

.app-shell.sidebar-collapsed {
    --sidebar-width: 88px
}

.badge {
    font-size: .85rem;
    color: var(--brand);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 500
}

.app-sidebar {
    padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
    height: 100dvh;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    overscroll-behavior: contain;
    scrollbar-gutter: stable
}

.sidebar-close {
    margin-left: 0;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    background: #94a3b814;
    color: #e2e8f0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center
}

.mobile-signout {
    margin-top: auto;
    display: none
}

.mobile-signout button {
    width: 100%;
    justify-content: center
}

.sidebar-overlay {
    display: none
}

.sidebar-brand .badge {
    color: #93c5fd;
    margin-bottom: .5rem
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem
}

.sidebar-brand-main {
    min-width: 0
}

.sidebar-title {
    margin: 0;
    font-weight: 500
}

.sidebar-brand-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem
}

.sidebar-toggle {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .22);
    background: #94a3b814;
    color: #e2e8f0;
    border-radius: .7rem;
    flex-shrink: 0
}

.app-sidebar button.sidebar-toggle:hover,
.app-sidebar button.sidebar-close:hover {
    background: #94a3b829;
    color: #f8fafc
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.sidebar-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
    color: #94a3b8;
    margin: 0 0 .5rem
}

.app-sidebar button {
    border: none;
    background: transparent;
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-size: .95rem;
    text-align: left;
    color: #cbd5f5;
    cursor: pointer
}

.app-sidebar button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px
}

.app-sidebar .sidebar-nav-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem;
    width: 100%;
    text-align: left;
    transition: background-color .18s ease, color .18s ease, transform .18s ease
}

.sidebar-nav-button:hover {
    background: #94a3b81f
}

.sidebar-button-icon {
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    border: 1px solid rgba(148, 163, 184, .16);
    background: #94a3b814;
    color: inherit
}

.sidebar-button-text {
    min-width: 0
}

.sidebar-icon-svg {
    width: 1rem;
    height: 1rem
}

.sidebar-toggle .sidebar-icon-svg,
.sidebar-close .sidebar-icon-svg {
    width: 1.15rem;
    height: 1.15rem
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding-left: 2.25rem;
    margin-top: -.1rem
}

.app-sidebar .sidebar-subnav button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
    font-size: .88rem;
    padding: .45rem .65rem;
    text-align: left;
    transition: background-color .18s ease
}

.sidebar-subnav button:hover {
    background: #94a3b81a
}

.sidebar-subnav-button {
    width: 100%
}

.sidebar-subnav-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    color: #94a3b8
}

.sidebar-subnav button.active .sidebar-subnav-icon,
.sidebar-subnav button:hover .sidebar-subnav-icon {
    color: #dbeafe
}

.app-sidebar button.active {
    background: #94a3b833;
    color: #f8fafc;
    font-weight: 500
}

.app-sidebar button.active .sidebar-button-icon {
    background: #60a5fa29;
    border-color: #60a5fa3d;
    color: #dbeafe
}

.app-sidebar button:hover .sidebar-button-icon {
    background: #94a3b824
}

.app-sidebar button.ghost {
    justify-content: flex-start;
    color: #cbd5f5;
    border: none;
    background: transparent
}

.app-sidebar.collapsed {
    padding: 2rem .75rem;
    align-items: stretch
}

.app-sidebar.collapsed .sidebar-brand {
    flex-direction: column;
    align-items: center
}

.app-sidebar.collapsed .sidebar-brand-main,
.app-sidebar.collapsed .sidebar-label,
.app-sidebar.collapsed .sidebar-button-text,
.app-sidebar.collapsed .sidebar-subnav {
    display: none
}

.app-sidebar.collapsed .sidebar-brand-actions {
    margin-left: 0;
    flex-direction: column
}

.app-sidebar.collapsed .sidebar-nav-button,
.app-sidebar.collapsed .sidebar-toggle,
.app-sidebar.collapsed .mobile-signout button {
    justify-content: center;
    padding: .65rem .5rem
}

button.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.35rem;
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
    color: var(--text);
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    line-height: 1.1;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease
}

button.ghost:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #e2e8f0;
    color: var(--text)
}

button.ghost:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none
}

.app-sidebar button.ghost {
    border: none;
    background: transparent;
    color: #cbd5f5;
    padding: .5rem .75rem;
    box-shadow: none
}

.app-main {
    height: 100dvh;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 1.5rem 1.75rem 1.75rem;
    max-width: 100%;
    min-width: 0
}

.app-main main {
    max-width: 1360px;
    margin: 0 auto;
    overflow-x: hidden
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem
}

.content-header.auth-content-header {
    display: none
}

.content-header h1 {
    margin: .25rem 0 0
}

.page-eyebrow {
    margin: 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280
}

.header-meta {
    display: flex;
    align-items: center;
    gap: .75rem
}

.plan-pill,
.workspace-pill,
.user-pill {
    background: var(--surface-panel-tint);
    color: var(--text);
    border: 1px solid var(--line);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500
}

.workspace-pill,
.user-pill {
    max-width: min(32vw, 22rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

button.mobile-menu {
    display: none
}

.burger-icon {
    display: inline-flex;
    flex-direction: column;
    gap: .2rem
}

.burger-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111827
}

.usage-pill {
    background: var(--brand-soft);
    color: #115e59;
    border: 1px solid rgba(15, 118, 110, .18);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500
}

.header-meta .ghost {
    min-height: 2.4rem
}

.metrics {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.15rem
}

.metric-group-header h4 {
    margin: 0 0 .35rem
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .85rem
}

.metrics article {
    padding: .9rem 1rem;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 1px 4px #0f172a14
}

.metrics .label {
    margin: 0 0 .5rem;
    color: #6b7280;
    font-size: .85rem;
    cursor: help
}

.metrics .value {
    font-size: 1.75rem;
    margin: 0
}

.metrics .value.locked {
    color: #9ca3af
}

.metrics .formula {
    margin: .65rem 0 0;
    color: #4b5563;
    font-size: .85rem;
    line-height: 1.4
}

.metrics .note {
    margin: .35rem 0 0;
    color: #6b7280;
    font-size: .8rem
}

.field-hint {
    display: block;
    margin-top: .35rem;
    color: #6b7280;
    font-size: .8rem
}

.panel {
    padding: 1rem;
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 1px 4px #0f172a14;
    max-width: 100%
}

.auth-shell {
    display: flex;
    justify-content: center
}

.auth-shell .status-card {
    width: min(420px, 100%)
}

.auth-card {
    position: relative;
    padding-bottom: 2.8rem
}

.help-icon {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-panel-tint);
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    cursor: help
}

.help-icon:hover,
.help-icon:focus-visible,
.help-popover.is-open .help-icon {
    border-color: #0f766e73;
    background: #ecfdf5;
    color: var(--brand-strong)
}

.help-icon:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px
}

.help-popover {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1
}

.help-popover__content {
    position: fixed;
    z-index: 80;
    width: max-content;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: .7rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    white-space: normal
}

.help-popover__content:after {
    content: "";
    position: absolute;
    left: var(--help-popover-arrow-left, .55rem);
    bottom: -.35rem;
    width: .65rem;
    height: .65rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    transform: rotate(45deg)
}

.help-popover__content--bottom:after {
    top: -.35rem;
    bottom: auto;
    border: 0;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line)
}

.auth-card-help {
    position: absolute;
    right: 1rem;
    bottom: 1rem
}

.analysis-layout {
    display: grid;
    gap: 1.15rem
}

.results-stack {
    display: grid;
    gap: .85rem;
    margin-top: 1.1rem
}

.action-row {
    position: relative
}

.action-row.gated {
    opacity: .6
}

.action-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #ffffffd9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #111827;
    border-radius: .6rem;
    text-align: center;
    padding: 0 1rem
}

@media (min-width: 1024px) {

    .analysis-layout,
    .library-layout {
        grid-template-columns: minmax(0, 1fr);
        align-items: start
    }
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
    margin-top: .85rem
}

.input-grid label {
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    color: var(--text-soft);
    font-weight: 400;
    letter-spacing: .01em
}

.input-label-help-row {
    display: inline-flex;
    align-items: center;
    gap: .4rem
}

.help-icon--field {
    width: 1.1rem;
    height: 1.1rem;
    font-size: .68rem
}

.inline-field {
    display: flex;
    gap: .75rem;
    align-items: flex-end
}

.inline-field select {
    flex: 1
}

.input-grid input,
.input-grid select,
.input-grid textarea {
    margin-top: .4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .68rem .75rem;
    font-size: .95rem;
    font-weight: 400;
    outline: none;
    color: var(--text);
    background: var(--surface-panel);
    box-shadow: inset 0 1px 2px #0f172a0a;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease
}

.input-grid input:focus,
.input-grid select:focus,
.input-grid textarea:focus {
    border-color: var(--brand);
    box-shadow: var(--shadow-focus);
    background: #fff
}

.field-error {
    border-color: #dc2626
}

.field-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px #dc262633
}

.field-error-text {
    margin-top: .35rem;
    color: #dc2626;
    font-size: .8rem
}

.input-grid textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit
}

.input-grid .full-width {
    grid-column: 1 / -1
}

.actions {
    margin-top: 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap
}

.actions.wrap {
    flex-wrap: wrap
}

.actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.7rem;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: .72rem 1.18rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.1;
    box-shadow: 0 12px 24px #0f172a24;
    transition: box-shadow .16s ease
}

.actions button:hover:not(:disabled) {
    background: var(--brand);
    box-shadow: 0 16px 30px #0f172a29
}

.actions button.ghost {
    background: #e2e8f0;
    color: var(--text);
    border: 1px solid #cbd5e1;
    box-shadow: none
}

.actions button.danger {
    background: var(--danger)
}

.actions button:disabled {
    opacity: .6;
    cursor: not-allowed;
    filter: grayscale(.25);
    transform: none
}

.link-row {
    margin-top: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem
}

.link-button {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--brand);
    font-size: .95rem;
    font-weight: 400;
    text-decoration: none
}

.link-button:hover:not(:disabled) {
    color: #115e59;
    text-decoration: underline;
    text-underline-offset: .18em
}

.link-button:disabled {
    opacity: .6;
    cursor: progress;
    text-decoration: none
}

.archive-action-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: .86rem;
    white-space: nowrap
}

.empty-card {
    margin-top: .85rem;
    padding: .9rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--line-strong);
    background: var(--surface-panel-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.locked-card {
    margin-top: .85rem;
    padding: .9rem;
    border-radius: var(--radius-md);
    border: 1px solid #f59e0b;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.pane-card {
    margin-top: .85rem;
    padding: .9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-panel);
    box-shadow: var(--shadow-sm)
}

.pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.table-wrapper {
    overflow-x: auto;
    margin-top: .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-panel);
    box-shadow: var(--shadow-sm)
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: .85rem;
    flex-wrap: wrap
}

.pagination-actions {
    display: inline-flex;
    gap: .5rem
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
    table-layout: auto
}

.data-table th,
.data-table td {
    padding: .72rem .85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    word-break: break-word
}

.data-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase
}

.data-table tr:last-child td {
    border-bottom: none
}

.data-table tbody tr {
    transition: background-color .14s ease
}

.data-table tbody tr:hover {
    background: #f8fafc
}

.data-table tr.selected {
    background: #eef2ff
}

.data-table input:not([type=checkbox]),
.data-table select,
.data-table textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfe;
    color: var(--text);
    padding: .5rem .6rem;
    font-size: .88rem;
    font-weight: 400;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease
}

.data-table input:not([type=checkbox]):focus,
.data-table select:focus,
.data-table textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px #0f766e1f;
    background: #fff
}

.table-actions {
    display: flex;
    gap: .5rem;
    align-items: center
}

.data-table td>button:not(.link-button):not(.icon-button),
.table-actions button:not(.link-button):not(.icon-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: .48rem .8rem;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-size: .86rem;
    font-weight: 400;
    line-height: 1.1;
    box-shadow: none
}

.data-table td>button:not(.link-button):not(.icon-button):hover:not(:disabled),
.table-actions button:not(.link-button):not(.icon-button):hover:not(:disabled) {
    background: var(--brand);
    border-color: var(--brand)
}

.data-table td>button.ghost:not(.link-button):not(.icon-button),
.table-actions button.ghost:not(.link-button):not(.icon-button) {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: var(--text)
}

.enterprise-member-actions {
    flex-wrap: nowrap;
    gap: .25rem
}

.organization-users-table th:last-child,
.organization-users-table td.member-action-cell {
    width: 5.25rem;
    min-width: 5.25rem;
    white-space: nowrap
}

.organization-users-table .enterprise-member-actions {
    justify-content: flex-end
}

.member-role-select {
    min-width: 7rem;
    max-width: 9rem
}

.member-action-icon {
    width: 2rem;
    height: 2rem;
    box-shadow: none
}

.member-action-svg {
    width: 1rem;
    height: 1rem
}

.member-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    padding: .18rem .58rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: .74rem;
    font-weight: 500;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease
}

.member-action-button:hover:not(:disabled) {
    border-color: #0f766e57;
    background: var(--brand-soft);
    color: #115e59
}

.member-action-button:disabled {
    opacity: .55;
    cursor: progress
}

.member-action-button--danger:hover:not(:disabled) {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c
}

.member-action-note {
    color: #64748b;
    font-size: .72rem;
    font-weight: 400;
    white-space: nowrap
}

.enterprise-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem
}

.enterprise-onboarding-panel {
    display: grid;
    gap: .75rem;
    padding: .95rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc
}

.enterprise-onboarding-panel h5 {
    margin: 0;
    font-size: .92rem
}

.invite-link-row {
    display: flex;
    gap: .75rem;
    align-items: center
}

.invite-link-row input {
    flex: 1 1 auto
}

.workspace-context-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin: .9rem 0 0
}

.workspace-context-list>div {
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafc
}

.workspace-context-list dt {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .06em;
    margin-bottom: .35rem;
    text-transform: uppercase
}

.workspace-context-list dd {
    margin: 0;
    color: var(--text);
    font-size: .95rem;
    font-weight: 500
}

@media (max-width: 720px) {
    .invite-link-row {
        flex-direction: column;
        align-items: stretch
    }
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease
}

.icon-button:hover:not(:disabled) {
    border-color: #0f766e57;
    background: var(--brand-soft);
    color: #115e59;
    transform: translateY(-1px)
}

.icon-button:disabled {
    opacity: .55;
    cursor: not-allowed
}

.icon-button--danger {
    color: #b91c1c
}

.icon-button--danger:hover:not(:disabled) {
    border-color: #fca5a5;
    background: #fef2f2
}

.provider-action-icon {
    width: 1rem;
    height: 1rem
}

.provider-action-text {
    display: inline-flex;
    min-width: 1rem;
    justify-content: center;
    font-weight: 500
}

.provider-table {
    min-width: 980px;
    table-layout: fixed
}

.provider-table td {
    padding: .5rem .35rem
}

.provider-table th {
    padding: .65rem .35rem
}

.provider-table td input,
.provider-table td select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    background: #fbfcfe;
    padding: .45rem .55rem
}

.provider-table td input:focus,
.provider-table td select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px #0f766e1f
}

.provider-table__token-input::placeholder {
    color: #94a3b8;
    letter-spacing: .08em
}

.provider-table__col--name,
.provider-table__col--label,
.provider-table__col--model {
    width: 14%
}

.provider-table__col--token {
    width: 11%
}

.provider-table__col--availability {
    width: 9.5rem
}

.provider-table__col--updated {
    width: 7.75rem
}

.provider-table__col--actions {
    width: 10.5rem
}

.provider-table__availability {
    width: 9.5rem;
    min-width: 9.5rem;
    text-align: center
}

.provider-table th.provider-table__availability {
    text-align: center
}

.provider-table__updated {
    color: #374151;
    width: 7.75rem;
    min-width: 7.75rem
}

.provider-table__actions {
    width: 10.5rem;
    min-width: 10.5rem;
    white-space: nowrap
}

.provider-table__action-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .35rem
}

.provider-table__updated-date {
    color: #111827;
    font-weight: 500
}

.provider-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f8fafc
}

.provider-status-icon--available {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4
}

.provider-status-icon--unavailable {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2
}

.diagnostic-chip {
    display: grid;
    gap: .15rem;
    margin-top: .35rem;
    border-radius: .55rem;
    padding: .35rem .45rem;
    text-align: left;
    white-space: normal;
    font-size: .72rem;
    line-height: 1.25
}

.diagnostic-chip--ok {
    color: #166534;
    background: #dcfce7
}

.diagnostic-chip--warning {
    color: #854d0e;
    background: #fef3c7
}

.diagnostic-chip--error {
    color: #991b1b;
    background: #fee2e2
}

.provider-pricing-modal {
    width: min(640px, 94vw)
}

.provider-create-modal {
    width: min(760px, 94vw)
}

.provider-issues-card {
    border-color: #fcd34d;
    background: #fffbeb
}

.provider-issues-card li {
    color: #92400e
}

.indicator-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.indicator-tags span {
    background: #e0f2fe;
    color: #0c4a6e;
    padding: .2rem .45rem;
    border-radius: 999px;
    font-size: .75rem
}

.toggle-row {
    margin-top: 1rem
}

.toggle-row label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-soft);
    font-size: .9rem;
    font-weight: 400
}

.analysis-ai-toggle-row {
    margin-top: .85rem
}

.analysis-ai-summary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    margin-top: .85rem
}

.analysis-ai-summary-row .analysis-ai-toggle-row,
.analysis-ai-summary-row .analysis-ai-provider-row {
    margin-top: 0
}

.switch-control {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer
}

.switch-control:disabled {
    opacity: .6;
    cursor: not-allowed
}

.switch-control-track {
    width: 2.45rem;
    height: 1.35rem;
    padding: .15rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #e2e8f0;
    transition: background-color .16s ease, border-color .16s ease
}

.switch-control-thumb {
    display: block;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translate(0);
    transition: transform .16s ease
}

.switch-control.active .switch-control-track {
    border-color: #0f766e8c;
    background: var(--brand)
}

.switch-control.active .switch-control-thumb {
    transform: translate(1.1rem)
}

.inline-help-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .65rem;
    color: var(--text-soft);
    font-size: .88rem
}

.analysis-optional-heading {
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    margin-top: .85rem
}

.inline-action-link {
    align-self: center;
    white-space: nowrap
}

.library-scope-toggle {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    width: fit-content;
    max-width: 100%;
    margin: .35rem 0 .75rem;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff
}

.library-scope-toggle button {
    min-height: 2rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-soft);
    padding: .35rem .65rem;
    font-size: .86rem;
    font-weight: 500
}

.library-scope-toggle button.active {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm)
}

.library-scope-toggle button:not(.active):hover {
    background: var(--surface-panel-tint);
    color: var(--text)
}

.usage-note {
    margin: 0;
    font-size: .85rem;
    color: #6b7280
}

.usage-note.warning {
    color: var(--warning)
}

.error {
    color: var(--danger);
    font-size: .9rem;
    font-weight: 500
}

.status-card {
    margin-top: 1rem;
    padding: .95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafcf5, #fffffff0), var(--surface-panel-soft);
    max-width: 100%;
    box-shadow: inset 0 1px #ffffffb8
}

.status-card h3 {
    color: var(--text);
    margin: 0 0 .35rem;
    font-weight: 600
}

.status-card ul {
    margin: .75rem 0;
    padding-left: 1.2rem;
    color: var(--text-soft)
}

.status-card .highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .5rem 0
}

.status-card .highlights span {
    background: #e0f2fe;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    color: #0c4a6e
}

.status-card .confidence {
    margin: 0;
    font-size: .9rem;
    color: var(--text-soft)
}

.status-card .summary-meta {
    margin: 0 0 .5rem;
    font-size: .85rem;
    color: var(--muted)
}

.result-block+.result-block {
    margin-top: 1rem
}

.result-block h4 {
    margin: 0 0 .4rem
}

.code-block {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: .6rem;
    padding: .75rem;
    font-size: .85rem;
    color: #334155;
    white-space: pre-wrap;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    max-width: 100%
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.plan-list .status-card {
    margin-top: 0
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.user-list .status-card {
    margin-top: 0
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffffc7;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px)
}

.section-tabs button {
    min-height: 2.35rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: .44rem .9rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease
}

.section-tabs button:hover:not(.active) {
    background: var(--surface-panel-soft);
    border-color: var(--line);
    color: var(--text)
}

.section-tabs button.active {
    background: var(--brand);
    border-color: #0f172a1f;
    color: #fff;
    box-shadow: 0 10px 20px #0f172a29
}

.admin-panel .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem
}

.admin-panel .admin-grid--ai-preferences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start
}

.admin-panel .billing-grid {
    grid-template-columns: 1fr
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start
}

.billing-summary-grid .admin-card .status-card {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none
}

.billing-cancellation-banner {
    margin-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .85rem;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    background: #fffbeb;
    color: var(--text)
}

.billing-cancellation-banner>div {
    display: grid;
    gap: .2rem
}

.billing-cancellation-banner strong {
    font-weight: 600
}

.billing-cancellation-banner span {
    color: var(--text-soft);
    font-size: .9rem
}

.billing-cancellation-banner button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--text);
    padding: .55rem .85rem;
    font-weight: 500
}

.billing-payment-method-banner,
.billing-security-note,
.payment-method-summary {
    margin-top: .9rem;
    border-radius: var(--radius-sm);
    padding: .85rem
}

.billing-payment-method-banner,
.payment-method-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--text)
}

.billing-payment-method-banner {
    display: grid;
    justify-content: stretch;
    gap: .2rem
}

.billing-payment-method-banner strong,
.payment-method-summary strong {
    font-weight: 600
}

.billing-payment-method-banner span,
.payment-method-summary span,
.billing-security-note,
.stripe-security-note {
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.45
}

.billing-payment-method-banner--warning,
.payment-method-summary--warning {
    border-color: #f59e0b;
    background: #fffbeb
}

.billing-payment-method-banner--error,
.payment-method-summary--error {
    border-color: #ef4444;
    background: #fef2f2
}

.billing-security-note,
.stripe-security-note {
    border: 1px solid var(--line);
    background: #f8fafc
}

.stripe-security-note {
    margin: 0
}

.stripe-terms-note {
    margin: -.15rem 0 0;
    color: var(--text-soft);
    font-size: .78rem;
    line-height: 1.4
}

.stripe-terms-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .14em
}

.payment-method-summary>div {
    display: grid;
    gap: .2rem;
    min-width: 0
}

.payment-method-summary button {
    flex: 0 0 auto
}

@media (max-width: 900px) {
    .billing-summary-grid {
        grid-template-columns: 1fr
    }

    .payment-method-summary {
        align-items: stretch;
        flex-direction: column
    }

    .payment-method-summary button {
        width: 100%
    }
}

.admin-panel .admin-grid>.admin-dashboard {
    grid-column: 1 / -1
}

.admin-dashboard {
    display: grid;
    gap: 1rem
}

.dashboard-control-card {
    display: block;
    padding: .72rem
}

.dashboard-eyebrow {
    margin: 0 0 .25rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase
}

.dashboard-controls {
    display: grid;
    grid-template-columns: minmax(8rem, .85fr) minmax(9rem, 1fr) minmax(9rem, 1fr) minmax(8rem, .85fr) auto;
    gap: .65rem;
    align-items: end
}

.dashboard-controls label {
    display: grid;
    gap: .3rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 400
}

.dashboard-controls input,
.dashboard-controls select {
    min-height: 2.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: .54rem .65rem;
    font-size: .9rem;
    font-weight: 400
}

.dashboard-controls input:disabled,
.dashboard-controls select:disabled {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: var(--text);
    opacity: 1
}

.dashboard-controls button {
    min-height: 2.45rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    padding: .55rem .95rem;
    font-weight: 500;
    box-shadow: 0 12px 24px #0f172a24
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch
}

.dashboard-metric-card {
    min-height: 100%;
    gap: .9rem;
    overflow: hidden
}

.dashboard-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem
}

.dashboard-card-heading h3 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 600;
    letter-spacing: -.04em
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-panel-soft);
    color: var(--text);
    padding: .25rem .62rem;
    font-size: .78rem;
    font-weight: 400;
    white-space: nowrap
}

.dashboard-stat-pair,
.dashboard-forecast-grid {
    display: grid;
    gap: .5rem
}

.dashboard-stat-pair {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafcd1;
    padding: .65rem .75rem
}

.dashboard-forecast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.dashboard-forecast-grid>div {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafcd1;
    padding: .65rem .75rem
}

.dashboard-stat-pair span,
.dashboard-forecast-grid span {
    color: var(--muted);
    font-size: .82rem
}

.dashboard-stat-pair strong,
.dashboard-forecast-grid strong {
    color: var(--text);
    font-size: .95rem;
    font-weight: 500
}

.dashboard-list {
    display: grid;
    gap: .55rem
}

.dashboard-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .18rem .65rem;
    align-items: center
}

.dashboard-list-row span {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap
}

.dashboard-list-row strong {
    color: var(--text);
    font-size: .9rem;
    font-weight: 500
}

.dashboard-list-row small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: .78rem
}

.dashboard-mini-bar {
    grid-column: 1 / -1;
    display: block;
    height: .38rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb
}

.dashboard-mini-bar span {
    display: block;
    height: 100%;
    min-width: .15rem;
    border-radius: inherit;
    background: var(--brand)
}

@media (max-width: 1180px) {
    .dashboard-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .dashboard-controls {
        grid-template-columns: repeat(2, minmax(8rem, 1fr)) auto
    }
}

@media (max-width: 760px) {

    .dashboard-card-grid,
    .dashboard-controls,
    .dashboard-card-heading,
    .dashboard-forecast-grid {
        grid-template-columns: 1fr
    }

    .dashboard-card-heading {
        display: grid
    }

    .dashboard-pill {
        width: fit-content;
        white-space: normal
    }
}

.admin-card {
    padding: 1.05rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fffffff5, #ffffffe6), var(--surface-panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 100%
}

.admin-card h3,
.admin-card h4,
.admin-card h5 {
    color: var(--text);
    font-weight: 600
}

.admin-card>h3:first-child,
.admin-card>h4:first-child {
    margin-top: 0
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem
}

.section-heading-row>button:not(.ghost):not(.link-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: .65rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 12px 24px #0f172a24;
    transition: box-shadow .16s ease
}

.section-heading-row>button:not(.ghost):not(.link-button):hover:not(:disabled) {
    background: var(--brand);
    box-shadow: 0 16px 30px #0f172a29
}

.section-heading-row h3,
.section-heading-row p {
    margin-top: 0
}

.admin-filter-grid {
    align-items: end
}

.admin-users-table {
    min-width: 760px
}

.admin-users-table input,
.admin-users-table select {
    width: 100%
}

.organization-users-table .member-role-select {
    width: auto;
    min-width: 7rem;
    max-width: 9rem
}

.user-editor-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
    gap: 1rem;
    align-items: start
}

.user-editor-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm)
}

.user-editor-card h4 {
    margin: 0 0 .65rem;
    font-weight: 500
}

.user-editor-toggles {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line)
}

.user-editor-json {
    margin-top: 1rem
}

.user-editor-json textarea {
    width: 100%;
    min-height: 150px;
    margin-top: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    font-size: .86rem;
    font-weight: 400;
    resize: vertical
}

.table-toggle-stack {
    display: grid;
    gap: .4rem
}

.table-toggle-stack label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 400
}

.plan-editor-form {
    display: grid;
    gap: 1rem
}

.plan-editor-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm)
}

.plan-editor-card--basics {
    padding: 1rem
}

.plan-editor-card--features,
.plan-editor-card--limits,
.plan-editor-card--billing {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden
}

.plan-editor-card--features {
    border-top: 4px solid #0f766e
}

.plan-editor-card--limits {
    border-top: 4px solid #2563eb
}

.plan-editor-card--billing {
    border-top: 4px solid #475569
}

.plan-editor-card-header {
    padding: .95rem 1rem .8rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f8fafc)
}

.plan-editor-card--basics .plan-editor-card-header {
    padding: 0 0 .85rem;
    margin-bottom: .9rem;
    background: transparent
}

.plan-editor-card-header h4 {
    margin: .12rem 0 .25rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500
}

.plan-editor-card-header .note {
    margin: 0
}

.plan-editor-kicker {
    display: inline-flex;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase
}

.plan-basics-grid {
    align-items: end
}

.plan-active-field {
    min-height: 100%;
    justify-content: end
}

.plan-active-field input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .58rem
}

.structured-plan-grid.plan-editor-structured-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 1rem
}

.structured-plan-grid.plan-editor-structured-grid .plan-editor-card--billing {
    grid-column: 1 / -1
}

.plan-editor-row-list {
    display: grid;
    gap: 0
}

.plan-editor-toggle-row,
.plan-editor-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem);
    gap: .85rem;
    align-items: center;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-weight: 400
}

.plan-editor-toggle-row:last-child,
.plan-editor-field-row:last-child {
    border-bottom: none
}

.plan-editor-toggle-row input[type=checkbox] {
    justify-self: end;
    width: 1.1rem;
    height: 1.1rem
}

.plan-editor-field-row input,
.plan-editor-field-row select {
    width: 100%;
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfe;
    color: var(--text);
    padding: .58rem .65rem;
    font-size: .9rem;
    font-weight: 400;
    outline: none;
    box-shadow: inset 0 1px 2px #0f172a0a;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease
}

.plan-editor-field-row input:focus,
.plan-editor-field-row select:focus {
    border-color: var(--brand);
    box-shadow: var(--shadow-focus);
    background: #fff
}

.plan-editor-row-copy {
    display: grid;
    gap: .18rem;
    min-width: 0
}

.plan-editor-row-title {
    color: var(--text);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.25
}

.plan-editor-row-meta {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere
}

.plan-editor-nested-panel {
    margin: .9rem 1rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-panel-soft);
    overflow: hidden
}

.plan-editor-billing-note {
    display: grid;
    gap: .25rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-size: .86rem;
    line-height: 1.45
}

.plan-editor-billing-note strong {
    color: var(--text);
    font-weight: 500
}

.plan-editor-billing-warning {
    margin: .85rem 1rem 0
}

.plan-editor-billing-warning p {
    margin: .35rem 0 0
}

.plan-editor-card--billing>.note {
    margin: 0;
    padding: .85rem 1rem 0
}

.plan-editor-nested-panel>.ghost {
    margin: 0 .85rem .85rem
}

.plan-editor-advanced {
    margin-top: 0
}

.structured-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .85rem;
    align-items: start
}

.structured-plan-grid .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .65rem;
    color: #475569
}

.json-field-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: .85rem;
    background: var(--surface-panel-soft)
}

.json-field-panel summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text)
}

.diagnostics-panel {
    margin-top: .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: .85rem;
    background: var(--surface-panel-soft)
}

.diagnostics-panel h5 {
    margin: 0 0 .35rem;
    text-transform: capitalize
}

.diagnostics-panel ul {
    margin: .5rem 0 0;
    padding-left: 1.2rem
}

.diagnostics-panel--ok {
    border-color: #86efac;
    background: #f0fdf4
}

.diagnostics-panel--warning {
    border-color: #facc15;
    background: #fefce8
}

.diagnostics-panel--error {
    border-color: #fca5a5;
    background: #fef2f2
}

.tier-list {
    display: grid;
    gap: .45rem;
    margin: .75rem 0
}

.tier-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: .45rem;
    align-items: center
}

.tier-grid--header {
    color: #64748b;
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase
}

.tier-grid input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: .52rem .6rem;
    font-size: .86rem;
    font-weight: 400;
    outline: none
}

.tier-grid input:focus {
    border-color: var(--brand);
    box-shadow: var(--shadow-focus)
}

.admin-card .status-card {
    margin-top: .7rem
}

.admin-card--full-width {
    grid-column: 1 / -1
}

.admin-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 400
}

.admin-card a:hover {
    text-decoration: underline
}

.access-explainer {
    display: grid;
    gap: .45rem;
    border: 1px solid #dbeafe;
    border-radius: .85rem;
    padding: .85rem;
    background: #eff6ff;
    color: #1e3a8a
}

.access-explainer p {
    margin: 0
}

.access-role-grid {
    display: grid;
    gap: .35rem
}

.access-role-grid label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 400
}

.success {
    color: var(--success);
    font-size: .9rem;
    font-weight: 500
}

.threshold-row {
    border-top: 1px solid #e5e7eb;
    padding: .7rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center
}

.threshold-row:first-of-type {
    border-top: none
}

.threshold-name {
    margin: 0;
    font-weight: 500
}

.threshold-desc {
    margin: 0;
    color: #6b7280;
    font-size: .85rem
}

.threshold-edit {
    display: flex;
    gap: .6rem;
    align-items: center
}

.threshold-edit input {
    width: 90px;
    padding: .4rem .5rem;
    border-radius: .5rem;
    border: 1px solid #d1d5db
}

.threshold-edit button {
    border: none;
    background: var(--brand);
    color: #fff;
    padding: .35rem .8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    box-shadow: var(--shadow-sm)
}

.subscription-list {
    display: flex;
    flex-direction: column;
    gap: .8rem
}

.subscription-entry {
    padding: .6rem 0;
    border-bottom: 1px solid #e5e7eb
}

.subscription-entry:last-child {
    border-bottom: none
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.history-entry {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid #e5e7eb
}

.history-entry.selected {
    background: #f3f4f6;
    border-radius: .6rem;
    padding: .6rem
}

.history-entry:last-child {
    border-bottom: none
}

.history-title {
    margin: 0;
    font-weight: 500
}

.history-meta {
    margin: .35rem 0 0;
    color: #6b7280;
    font-size: .85rem
}

.history-actions {
    display: flex;
    align-items: center;
    gap: .5rem
}

.history-actions button {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: .45rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm)
}

.history-actions button:disabled {
    opacity: .6;
    cursor: progress
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: .75rem;
    max-width: 100%
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    table-layout: auto;
    max-width: 100%
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #e5e7eb;
    padding: .5rem;
    text-align: left;
    vertical-align: top;
    word-break: break-word
}

.comparison-table th {
    background: #f8fafc;
    color: #111827
}

.comparison-table .compare-section td {
    background: #f8fafc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .75rem;
    color: #64748b
}

.comparison-meta {
    display: block;
    margin-top: .2rem;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 500
}

.comparison-table--plans {
    min-width: max(760px, 100%);
    table-layout: auto
}

.comparison-table--plans th,
.comparison-table--plans td {
    text-align: center;
    vertical-align: middle;
    padding: .55rem .45rem
}

.comparison-table--plans th:first-child,
.comparison-table--plans td:first-child {
    min-width: 13rem;
    text-align: left
}

.comparison-table--plans th:not(:first-child),
.comparison-table--plans td:not(:first-child) {
    min-width: 8.5rem
}

.comparison-header-title,
.comparison-header-note {
    display: block
}

.comparison-header-title {
    font-weight: 500
}

.comparison-header-note {
    margin-top: .15rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase
}

.comparison-feature-label {
    display: flex;
    flex-direction: column;
    gap: .15rem
}

.comparison-feature-group {
    color: #64748b;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase
}

.comparison-feature-text {
    color: #111827;
    font-weight: 500;
    line-height: 1.3
}

.comparison-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    color: #111827;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1
}

.comparison-value--muted {
    color: #94a3b8
}

.comparison-value--icon {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f8fafc
}

.comparison-value--included {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4
}

.comparison-value--empty {
    color: #94a3b8
}

.comparison-value--mixed {
    color: #0f766e;
    border-color: #99f6e4;
    background: #f0fdfa
}

.comparison-icon-svg {
    width: .95rem;
    height: .95rem
}

.comparison-table-wrapper--billing {
    margin-top: 0
}

.comparison-table--billing-details,
.comparison-table--billing-usage,
.comparison-table--billing-history {
    table-layout: fixed
}

.comparison-table--billing-details th,
.comparison-table--billing-details td,
.comparison-table--billing-usage th,
.comparison-table--billing-usage td,
.comparison-table--billing-history th,
.comparison-table--billing-history td {
    padding: .55rem .5rem
}

.comparison-table--billing-details th:first-child,
.comparison-table--billing-details td:first-child {
    width: 44%
}

.comparison-table--billing-details th:last-child,
.comparison-table--billing-details td:last-child {
    width: 56%
}

.comparison-table--billing-usage th:first-child,
.comparison-table--billing-usage td:first-child {
    width: 46%
}

.comparison-table--billing-usage th:not(:first-child),
.comparison-table--billing-usage td:not(:first-child) {
    width: 18%;
    text-align: center;
    vertical-align: middle
}

.comparison-table--billing-history th:first-child,
.comparison-table--billing-history td:first-child {
    width: 34%
}

.comparison-table--billing-history th:nth-child(2),
.comparison-table--billing-history td:nth-child(2) {
    width: 28%
}

.comparison-table--billing-history th:nth-child(3),
.comparison-table--billing-history td:nth-child(3) {
    width: 18%;
    text-align: center;
    vertical-align: middle
}

.comparison-table--billing-history th:nth-child(4),
.comparison-table--billing-history td:nth-child(4) {
    width: 20%;
    text-align: center;
    vertical-align: middle
}

.comparison-table--billing-compact th,
.comparison-table--billing-compact td {
    padding-top: .38rem;
    padding-bottom: .38rem
}

.comparison-table--billing-compact .comparison-feature-label {
    gap: 0
}

.comparison-table--billing-details .billing-table-value:not(.billing-status-pill) {
    display: inline;
    min-width: 0;
    min-height: 0;
    overflow-wrap: anywhere;
    line-height: 1.35
}

.billing-card-note {
    margin: -.3rem 0 0;
    color: #64748b;
    font-size: .78rem
}

.billing-table-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    color: #111827;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.2
}

.billing-cell-note {
    color: #6b7280;
    font-size: .72rem;
    line-height: 1.35
}

.comparison-table--billing-history td>.billing-cell-note {
    display: block;
    margin-top: .25rem
}

.billing-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: .25rem .65rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase
}

@media (max-width: 860px) {
    table[data-responsive=stack] {
        width: 100%;
        min-width: 0;
        display: block;
        border-collapse: separate;
        border-spacing: 0
    }

    table[data-responsive=stack] colgroup,
    table[data-responsive=stack] thead {
        display: none
    }

    table[data-responsive=stack] tbody {
        display: grid;
        gap: .9rem;
        width: 100%
    }

    table[data-responsive=stack] tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: .95rem;
        border: 1px solid #e5e7eb;
        border-radius: .95rem;
        background: #fff;
        box-shadow: 0 1px 3px #0f172a14
    }

    table[data-responsive=stack] tr.selected {
        border-color: #c7d2fe;
        background: #eef2ff
    }

    table[data-responsive=stack] td {
        display: grid;
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: minmax(5.25rem, 6.75rem) minmax(0, 1fr);
        gap: .75rem;
        align-items: start;
        padding: 0;
        border: 0
    }

    table[data-responsive=stack] td+td {
        margin-top: .75rem
    }

    table[data-responsive=stack] td:before {
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 500;
        line-height: 1.3;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #64748b
    }

    table[data-responsive=stack] td[data-primary=true] {
        grid-template-columns: 1fr;
        gap: .35rem;
        padding-bottom: .75rem;
        margin-bottom: .75rem;
        border-bottom: 1px solid #e5e7eb
    }

    table[data-responsive=stack] td[data-primary=true] .link-button {
        font-size: 1rem;
        font-weight: 400;
        text-decoration: none
    }

    table[data-responsive=stack] td[data-primary=true] .link-button:hover {
        text-decoration: underline
    }

    table[data-responsive=stack] tr.compare-section {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none
    }

    table[data-responsive=stack] tr.compare-section td {
        display: block
    }

    table[data-responsive=stack] tr.compare-section td:before {
        content: none
    }

    table[data-responsive=stack] input,
    table[data-responsive=stack] select,
    table[data-responsive=stack] textarea {
        width: 100%
    }

    table[data-responsive=stack] .table-actions,
    table[data-responsive=stack] .actions {
        flex-wrap: wrap
    }

    table[data-responsive=stack] .table-actions .ghost,
    table[data-responsive=stack] .actions .ghost,
    table[data-responsive=stack] .table-actions button,
    table[data-responsive=stack] .actions button {
        width: auto
    }

    .provider-table {
        min-width: 0;
        table-layout: auto
    }

    .provider-table td {
        grid-template-columns: 1fr;
        gap: .35rem
    }

    .provider-table td:before {
        margin-bottom: .1rem
    }

    .provider-table__availability,
    .provider-table__updated,
    .provider-table__actions {
        width: auto;
        min-width: 0
    }

    .comparison-table--plans {
        font-size: .74rem
    }

    .comparison-table--plans th,
    .comparison-table--plans td {
        padding: .45rem .2rem
    }

    .comparison-table--plans th:first-child,
    .comparison-table--plans td:first-child {
        min-width: 10rem
    }

    .comparison-table--plans th:not(:first-child),
    .comparison-table--plans td:not(:first-child) {
        min-width: 7.25rem
    }

    .comparison-header-note {
        font-size: .64rem
    }

    .comparison-feature-group {
        font-size: .6rem
    }

    .comparison-feature-text {
        font-size: .76rem
    }

    .comparison-value {
        min-width: 1.5rem;
        min-height: 1.5rem;
        font-size: .74rem
    }

    .comparison-icon-svg {
        width: .82rem;
        height: .82rem
    }

    .comparison-table--billing-details,
    .comparison-table--billing-usage,
    .comparison-table--billing-history {
        font-size: .74rem
    }

    .comparison-table--billing-details th,
    .comparison-table--billing-details td,
    .comparison-table--billing-usage th,
    .comparison-table--billing-usage td,
    .comparison-table--billing-history th,
    .comparison-table--billing-history td {
        padding: .45rem .28rem
    }

    .comparison-table--billing-details th:first-child,
    .comparison-table--billing-details td:first-child {
        width: 42%
    }

    .comparison-table--billing-details th:last-child,
    .comparison-table--billing-details td:last-child {
        width: 58%
    }

    .comparison-table--billing-usage th:first-child,
    .comparison-table--billing-usage td:first-child {
        width: 46%
    }

    .comparison-table--billing-usage th:not(:first-child),
    .comparison-table--billing-usage td:not(:first-child) {
        width: 18%
    }

    .comparison-table--billing-history th:first-child,
    .comparison-table--billing-history td:first-child {
        width: 32%
    }

    .comparison-table--billing-history th:nth-child(2),
    .comparison-table--billing-history td:nth-child(2) {
        width: 26%
    }

    .comparison-table--billing-history th:nth-child(3),
    .comparison-table--billing-history td:nth-child(3) {
        width: 18%
    }

    .comparison-table--billing-history th:nth-child(4),
    .comparison-table--billing-history td:nth-child(4) {
        width: 24%
    }

    .billing-table-value {
        min-width: 1.4rem;
        min-height: 1.4rem;
        font-size: .74rem
    }

    .comparison-table--billing-usage .billing-table-value {
        min-width: 0;
        min-height: 0
    }

    .billing-cell-note {
        font-size: .64rem
    }

    .billing-status-pill {
        min-height: 1.45rem;
        padding: .18rem .4rem;
        font-size: .62rem
    }

    .structured-plan-grid.plan-editor-structured-grid {
        grid-template-columns: 1fr
    }

    .structured-plan-grid.plan-editor-structured-grid .plan-editor-card--billing {
        grid-column: auto
    }

    .plan-editor-toggle-row,
    .plan-editor-field-row {
        grid-template-columns: 1fr;
        gap: .55rem
    }

    .plan-editor-toggle-row input[type=checkbox] {
        justify-self: start
    }

    .tier-grid {
        grid-template-columns: 1fr
    }

    .tier-grid--header {
        display: none
    }

    .user-editor-grid {
        grid-template-columns: 1fr
    }
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: .75rem 0 0
}

.detail-field {
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    color: #4b5563
}

.detail-value {
    margin-top: .3rem;
    font-size: .95rem;
    color: #111827;
    font-weight: 500
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: .9rem
}

.log-entry {
    padding: .6rem;
    border-radius: .6rem;
    background: #f8fafc;
    font-size: .9rem
}

.log-entry .meta-line {
    margin: .35rem 0 0;
    color: #6b7280;
    font-size: .85rem
}

.library-layout {
    display: grid;
    gap: 1.1rem
}

.library-pane {
    min-width: 0
}

.compare-bar {
    position: sticky;
    bottom: 1rem;
    margin: 1rem 0;
    padding: .75rem 1rem;
    border-radius: .75rem;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.compare-bar p {
    margin: 0
}

.compare-bar button.ghost {
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #f9fafb;
    padding: .4rem .85rem;
    border-radius: .5rem
}

.compare-selection-card {
    margin-top: 0;
    margin-bottom: .85rem
}

.compare-selection-card .actions {
    margin-top: .75rem
}

.compare-selection-note {
    margin: 0;
    color: #475569;
    font-size: .9rem
}

.compare-action-cell {
    min-width: 11rem
}

.group-move-cell {
    min-width: 12rem
}

.group-move-select {
    width: 100%
}

.org-export-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    align-items: center;
    margin-top: .9rem
}

.org-export-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .25rem .6rem;
    border: 1px solid #dbe4ee;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: #475569;
    font-size: .84rem
}

.compare-action-button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.compare-action-hint {
    display: block;
    margin-top: .35rem;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.35
}

.drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #0f172a73;
    display: flex;
    justify-content: flex-end;
    z-index: 40
}

.drawer {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: -12px 0 24px #0f172a33;
    max-width: 100%
}

.drawer.wide {
    width: 100%
}

@media (min-width: 961px) {
    .drawer-overlay {
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width))
    }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 50% 18%, rgba(15, 118, 110, .18), transparent 22rem), #0f172a94;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px)
}

.modal {
    width: min(480px, 92vw);
    background: linear-gradient(180deg, #fffffffa, #f8fafcf5), var(--surface-panel);
    padding: 1.5rem;
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 1.15rem;
    box-shadow: 0 28px 80px #0f172a52;
    max-height: 85vh;
    overflow-y: auto;
    max-width: 100%
}

.modal-wide {
    width: min(1040px, 94vw)
}

img,
pre,
table {
    max-width: 100%
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line)
}

.modal-header h3,
.modal-header h4 {
    margin: 0;
    color: var(--text);
    font-weight: 500
}

.stripe-form {
    display: grid;
    gap: 1rem
}

.stripe-field {
    border: 1px solid #d0d7e2;
    border-radius: .5rem;
    padding: .75rem;
    background: #fff
}

.stripe-field input {
    width: 100%;
    margin-top: .45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .65rem .7rem;
    color: var(--text);
    font-size: .95rem
}

.stripe-label {
    font-size: .9rem;
    color: #475569;
    margin-bottom: .5rem
}

.stripe-element .StripeElement {
    width: 100%;
    pointer-events: auto
}

.stripe-element iframe {
    pointer-events: auto
}

.stripe-field-row {
    display: grid;
    gap: .75rem
}

.billing-result-list {
    display: grid;
    gap: .65rem;
    margin: 1rem 0 0
}

.billing-result-list div {
    display: grid;
    grid-template-columns: minmax(8rem, .9fr) minmax(0, 1.1fr);
    gap: .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--line)
}

.billing-result-list dt {
    color: var(--text-soft);
    font-size: .84rem
}

.billing-result-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    overflow-wrap: anywhere
}

@media (min-width: 640px) {
    .stripe-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.admin-status {
    margin-top: 1rem
}

@media (max-width: 1360px) {
    .admin-panel .admin-grid--ai-preferences {
        grid-template-columns: 1fr
    }
}

@media (max-width: 960px) {

    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto
    }

    #root {
        min-height: 100%
    }

    body.mobile-nav-open {
        overflow: hidden
    }

    .app-shell {
        grid-template-columns: 1fr;
        height: auto;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(300px, 86vw);
        max-width: 100%;
        height: 100dvh;
        transform: translate(-100%);
        transition: transform .25s ease;
        z-index: 60;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 14px 0 36px #0f172a52
    }

    .app-sidebar.open {
        transform: translate(0)
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: #0f172a73;
        z-index: 50
    }

    button.mobile-menu {
        display: inline-flex
    }

    .sidebar-close {
        display: none
    }

    .app-sidebar.open .sidebar-close {
        display: inline-flex
    }

    .sidebar-toggle {
        display: none
    }

    .mobile-signout {
        display: block
    }

    .content-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: .75rem;
        margin-bottom: .85rem
    }

    .content-header.auth-content-header {
        display: flex
    }

    .app-main {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: .9rem .9rem calc(1rem + env(safe-area-inset-bottom))
    }

    .header-meta {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap
    }

    .panel {
        padding: .9rem
    }

    .admin-card,
    .status-card {
        padding: .85rem
    }

    .billing-summary-grid {
        grid-template-columns: 1fr
    }

    .status-card {
        margin-top: .85rem
    }

    .input-grid {
        gap: .75rem;
        margin-top: .75rem
    }

    .actions {
        margin-top: 1rem;
        gap: .65rem
    }

    .table-wrapper,
    .pagination {
        margin-top: .75rem
    }

    .library-layout {
        grid-template-columns: 1fr
    }

    .drawer,
    .drawer.wide {
        width: 100%
    }

    .plan-pill,
    .workspace-pill,
    .user-pill {
        padding: .3rem .65rem;
        font-size: .8rem
    }

    .section-tabs button {
        padding: .34rem .72rem;
        font-size: .84rem
    }
}

@media (max-width: 680px) {

    .help-popover__content,
    .input-label-help-row .help-popover__content {
        position: fixed;
        right: 1rem;
        left: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
        margin: 0;
        padding: .85rem .95rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md)
    }

    .help-popover__content:after {
        display: none
    }

    .inline-help-row,
    .input-label-help-row {
        flex-wrap: wrap
    }

    .analysis-ai-summary-row {
        align-items: flex-start;
        flex-direction: column
    }

    .auth-card {
        padding-bottom: 1rem
    }

    .auth-card-help {
        position: static;
        display: flex;
        width: 100%;
        margin-top: .85rem
    }

    .section-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: .15rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .section-tabs::-webkit-scrollbar {
        display: none
    }

    .section-tabs button {
        flex: 0 0 auto;
        white-space: nowrap
    }
}

html,
body.sample-output-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.sample-output-page {
    margin: 0;
    padding: clamp(0.85rem, 2vw, 1.5rem);
}

.sample-output-nav {
    display: flex;
    width: min(100%, 1280px);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto 1rem;
    padding: .75rem .85rem;
    border: 1px solid #dbe3ef;
    border-radius: .85rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.sample-output-nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.sample-output-nav__brand,
.sample-output-nav__link {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: .7rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.sample-output-nav__brand {
    padding: 0 .2rem;
}

.sample-output-nav__link {
    border: 1px solid #cbd5e1;
    padding: .55rem .8rem;
    background: #ffffff;
    font-size: .9rem;
}

.sample-output-nav__link--primary {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.sample-output-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.sample-output-shell .analysis-dashboard,
.sample-output-shell .compare-dashboard {
    margin-bottom: 0;
}

.sample-output-shell button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

@media (max-width: 640px) {
    .sample-output-nav {
        display: grid;
        gap: .75rem;
    }

    .sample-output-nav nav {
        justify-content: stretch;
    }

    .sample-output-nav__link {
        flex: 1 1 100%;
    }
}
