@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* Jev as Judge */
.judge-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.bulk-tabs.judge-tabs { margin-top: 0; margin-bottom: 16px; flex-wrap: wrap; }
.judge-tabs button:focus-visible { outline: 2px solid #277758; outline-offset: -2px; }
.judge-example-picker { margin-bottom: 16px; }
.judge-example-picker label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.judge-example-picker .model-select { width: 100%; margin-bottom: 0; }
.judge-bulk-rubric { margin: 12px 0 16px; }
.judge-bulk-rubric summary { cursor: pointer; font-size: 13px; color: #277758; font-weight: 700; }
.judge-filter { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 13px; font-weight: 700; }
.judge-filter input { accent-color: #277758; }
.judge-controls > div, .judge-input-column { min-width: 0; }
.judge-controls label, .judge-editor label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.judge-controls .model-select { margin-bottom: 0; }
.judge-workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.judge-input-column { display: grid; gap: 16px; }
.judge-rubric h2, .judge-editor h2, .judge-result h2 { font-size: 20px; margin: 6px 0 10px; }
.judge-rubric p, .judge-editor p, .judge-result p { font-size: 13px; line-height: 1.6; }
.judge-rubric ol { padding-left: 23px; font-size: 13px; line-height: 1.65; }
.judge-rubric li { padding: 3px 0 3px 5px; }
.judge-rubric li::marker { color: #277758; font-weight: 700; }
.judge-reference { background: #eff7f1; padding: 12px; border-radius: 7px; }
.judge-editor textarea { display: block; width: 100%; margin-bottom: 14px; padding: 10px; border: 1px solid #cdded0; border-radius: 7px; background: #fcfefc; color: #203e2b; font-size: 13px; line-height: 1.5; resize: vertical; }
.judge-actions, .judge-run-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.judge-run-actions { margin: 18px 0; }
.judge-run-actions > span { font-size: 12px; color: #52725e; }
.judge-result .judge-rating { font-size: 54px; color: #277758; }
.judge-rating span { font-size: 22px; color: #809887; }
.judge-probabilities { margin: 22px 0; display: grid; gap: 14px; }
.judge-probability label { font-size: 12px; line-height: 1.4; }
.judge-probability > div { display: flex; gap: 10px; align-items: center; margin-top: 5px; }
.judge-probability progress { flex: 1; min-width: 0; width: 100%; height: 12px; accent-color: #277758; }
.judge-probability span { width: 48px; text-align: right; font-size: 12px; }
.judge-result-meta { border-top: 1px solid #dce8df; padding-top: 12px; display: grid; gap: 7px; font-size: 11px; overflow-wrap: anywhere; }
.judge-example-link { border: 0; padding: 0; background: transparent; color: #277758; text-decoration: underline; text-align: left; font-size: 12px; }
.judge-dataset th small { display: block; font-size: 9px; font-weight: 400; margin-top: 5px; overflow-wrap: anywhere; }
.judge-dataset .bulk-table { min-width: 720px; }
@media (max-width: 950px) { .judge-controls, .judge-workspace { grid-template-columns: 1fr; } }

:root {
    font-family: 'DM Sans',sans-serif;
    color: #183128;
    background: #f5f8f5;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f5f8f5;
    color: #183128
}

a {
    color: inherit;
    text-decoration: none
}

button, textarea, select {
    font: inherit
}

button {
    cursor: pointer
}

    button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible, select:focus-visible {
        outline: 2px solid #47a982;
        outline-offset: 2px
    }

h1, h2, h3, p {
    margin-top: 0
}

h1, h2, h3 {
    font-family: 'Manrope',sans-serif;
    letter-spacing: -.045em
}

    h1[tabindex="-1"]:focus {
        outline: none
    }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 196px minmax(0,1fr)
}

.sidebar {
    background: #193b32;
    color: #e8f3ea;
    padding: 20px 10px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px 23px
}

.brand-mark {
    width: 34px;
    height: 34px;
    border: 1px solid #5dad8a;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #bdf2d4;
    font: 800 22px 'Manrope',sans-serif;
    letter-spacing: -3px;
    flex: none
}

    .brand-mark span {
        color: #64d3a6;
        margin-left: 1px
    }

.brand strong {
    display: block;
    font: 800 14px 'Manrope',sans-serif;
    letter-spacing: -.7px
}

.brand small, .nav-label, .sidebar-bottom, .top-bar, .eyebrow, .card-number, .card-footer, .field-meta, .panel-aside, .type-pill, .recommendation-label, .live-badge, .response-meta, .chase-panel-heading span, .chase-meta {
    font-family: 'DM Mono',monospace
}

.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 1.2px;
    color: #9dc3ae
}

.nav-label {
    font-size: 9px;
    letter-spacing: 1.4px;
    color: #8fb09d;
    padding: 0 11px 7px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 7px;
    padding: 9px 10px;
    color: #bcd1c3;
    font-size: 12px;
    margin: 2px 0;
    transition: background .15s,color .15s
}

    .nav-link:hover, .nav-link.active {
        color: #fff;
        background: #2b5847
    }

    .nav-link.active {
        box-shadow: inset 3px 0 #7bdbab
    }

.nav-symbol {
    width: 19px;
    color: #9dcab0;
    text-align: center;
    font: 500 11px 'DM Mono',monospace;
    flex: none
}

.sidebar-bottom {
    margin-top: auto;
    padding: 14px 10px 0;
    border-top: 1px solid #3c6552;
    color: #a7c8b2;
    font-size: 9px;
    letter-spacing: .6px
}

    .sidebar-bottom .status-dot, .live-badge span {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #7fe3ac;
        margin-right: 6px
    }

    .sidebar-bottom p {
        font-family: 'DM Sans',sans-serif;
        letter-spacing: 0;
        font-size: 11px;
        margin: 5px 0 0;
        color: #8eae9a
    }

.main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

.top-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #dde8df;
    padding: 0 24px;
    color: #819489;
    font-size: 9px;
    letter-spacing: 1.2px
}

    .top-bar a {
        letter-spacing: 0;
        color: #316b51;
        font-size: 11px;
        font-weight: 700
    }

        .top-bar a:hover, .text-link:hover, .back-link:hover {
            color: #087849
        }

.content-container {
    width: min(1260px,calc(100% - 48px));
    margin: 0 auto;
    flex: 1;
    padding: 22px 0 30px;
    min-width: 0
}

.site-footer {
    border-top: 1px solid #e0eae2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 24px;
    color: #90a397;
    font-size: 10px
}

.eyebrow {
    color: #26845e;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.35px;
    margin-bottom: 5px
}

.title-period {
    color: #41a973
}

.text-link, .back-link {
    color: #356f51;
    font-weight: 700;
    font-size: 11px
}

.back-link {
    display: inline-block;
    margin-bottom: 6px
}

.button {
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    min-height: 38px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: background .15s,transform .15s;
    white-space: nowrap
}

    .button:hover:not(:disabled) {
        transform: translateY(-1px)
    }

.button-primary {
    background: #1c7454;
    color: #fff
}

    .button-primary:hover:not(:disabled) {
        background: #135e42;
        color: #fff
    }

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

/* Overview */
.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0 17px;
    border-bottom: 1px solid #dce8df
}

    .dashboard-intro h1 {
        font-size: clamp(27px,3vw,38px);
        line-height: 1.18;
        font-weight: 800;
        margin: 0 0 7px
    }

        .dashboard-intro h1 em {
            font-style: normal;
            color: #3caa73
        }

    .dashboard-intro p {
        font-size: 12px;
        line-height: 1.5;
        color: #667b6c;
        margin: 0;
        max-width: 700px
    }

    .dashboard-intro .text-link {
        white-space: nowrap;
        padding-bottom: 3px
    }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px
}

.dashboard-heading {
    margin: 21px 0 11px
}

.section-heading h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0
}

.section-heading p {
    font-size: 11px;
    color: #799083;
    margin: 0
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px
}

.scenario-card {
    position: relative;
    min-width: 0;
    min-height: 154px;
    background: #fff;
    border: 1px solid #dce8df;
    border-radius: 10px;
    padding: 16px 17px;
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 13px;
    transition: border-color .15s,box-shadow .15s,transform .15s
}

    .scenario-card:hover {
        transform: translateY(-2px);
        border-color: #8bc8a3;
        box-shadow: 0 8px 25px #1b503015
    }

    .scenario-card .card-number {
        grid-column: 1/-1;
        font-size: 9px;
        letter-spacing: .7px;
        color: #879f8f;
        margin-bottom: 6px
    }

.card-icon {
    grid-column: 1;
    grid-row: 2/4;
    align-self: start;
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: #e9f5ec;
    color: #2e9160;
    display: grid;
    place-items: center;
    font-size: 19px
}

.scenario-card h3 {
    grid-column: 2;
    grid-row: 2;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 3px
}

.scenario-card p {
    grid-column: 2;
    grid-row: 3;
    font-size: 11px;
    line-height: 1.45;
    color: #6c8073;
    margin: 0
}

.card-footer {
    grid-column: 1/-1;
    border-top: 1px solid #edf2ee;
    margin-top: 9px;
    padding-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 7px;
    color: #819c89;
    font-size: 9px
}

    .card-footer span:last-child {
        font-size: 13px;
        color: #178452;
        line-height: 1
    }

.game-card {
    background: #eef8f0;
    border-color: #cfe5d4
}

    .game-card .card-icon {
        background: #d8eee0
    }

/* Shared pages and setup */
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid #dce8df
}

    .page-heading h1 {
        font-size: clamp(27px,2.7vw,36px);
        line-height: 1.15;
        font-weight: 800;
        margin: 0 0 4px
    }

    .page-heading p {
        font-size: 12px;
        color: #708375;
        line-height: 1.4;
        margin: 0
    }

.setup-notice {
    margin: 12px 0 0;
    background: #fffaf0;
    border: 1px solid #e8d7ac;
    border-radius: 8px;
    color: #705a2f;
    font-size: 11px
}

    .setup-notice summary {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: center;
        cursor: pointer;
        list-style: none;
        padding: 9px 12px;
        font-weight: 700
    }

        .setup-notice summary::-webkit-details-marker {
            display: none
        }

        .setup-notice summary span {
            font-weight: 500;
            color: #886b34;
            text-decoration: underline;
            white-space: nowrap
        }

    .setup-notice .setup-hide, .setup-notice[open] .setup-show {
        display: none
    }

    .setup-notice[open] .setup-hide {
        display: inline
    }

.setup-instructions {
    border-top: 1px solid #efe0bb;
    padding: 10px 12px
}

    .setup-instructions p {
        margin: 0 0 7px;
        line-height: 1.4
    }

    .setup-instructions code {
        display: block;
        overflow-x: auto;
        background: #fff4d9;
        border-radius: 4px;
        padding: 8px;
        white-space: nowrap;
        font-size: 10px
    }

.error-notice {
    background: #fff1ef;
    border: 1px solid #edc3bb;
    border-radius: 7px;
    color: #923f35;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 12px
}

.empty-state {
    padding: 30px 0
}

/* Workflow workbench */
.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
    gap: 12px;
    align-items: start;
    margin-top: 13px
}

.workspace-panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #dce8df;
    border-radius: 10px;
    padding: 16px
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 11px
}

    .panel-heading h2 {
        font-size: 16px;
        font-weight: 800;
        margin: 0
    }

.panel-aside {
    font-size: 9px;
    color: #859c8c
}

.editor-panel label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #375643;
    margin: 0 0 6px
}

.editor-panel textarea {
    display: block;
    width: 100%;
    min-height: 126px;
    padding: 10px 11px;
    border: 1px solid #cdded0;
    border-radius: 7px;
    resize: vertical;
    color: #203e2b;
    background: #fcfefc;
    line-height: 1.45;
    font-size: 12px
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 5px 0 9px;
    color: #82978a;
    font-size: 9px
}

.model-select {
    display: block;
    min-width: 0;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cdded0;
    border-radius: 7px;
    background: #fcfefc;
    color: #203e2b;
    font-size: 12px;
    margin: 0 0 9px
}

    .model-select:disabled {
        opacity: .65;
        cursor: not-allowed
    }

.bulk-controls {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin: 14px 0
}

    .bulk-controls > div:first-child {
        max-width: 690px;
        flex: 1
    }

    .bulk-controls h2 {
        font-size: 16px;
        margin: 0 0 5px
    }

    .bulk-controls p, .bulk-results p {
        font-size: 11px;
        line-height: 1.5;
        color: #6c8073
    }

    .bulk-controls label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        margin: 12px 0 5px
    }

    .bulk-controls .model-select {
        max-width: 330px
    }

    .bulk-controls .bulk-size-input {
        max-width: 140px;
        font: inherit
    }

.bulk-request-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 13px;
    font: 10px 'DM Mono', monospace;
    color: #466e52
}

    .bulk-request-times span {
        background: #eef7f0;
        border-radius: 5px;
        padding: 6px 8px
    }

.bulk-help {
    margin: 7px 0 13px
}

.bulk-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 190px
}

.bulk-cancel {
    background: #e7eee8;
    color: #315340
}

.bulk-progress {
    text-align: right;
    font-size: 11px;
    color: #6c8073
}

    .bulk-progress strong, .bulk-progress span {
        display: block
    }

.bulk-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #dce8df;
    margin: 20px 0 0
}

    .bulk-tabs button {
        background: transparent;
        border: 0;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
        color: #607c68;
        font-size: 12px;
        font-weight: 700
    }

        .bulk-tabs button.active {
            color: #176a49;
            border-bottom-color: #32a773
        }

.bulk-results {
    border-top-left-radius: 0;
    margin-top: 0
}

.bulk-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 9px
}

    .bulk-summary h2 {
        font-size: 17px;
        margin: 0
    }

    .bulk-summary span {
        font-size: 11px;
        color: #6c8073
    }

.bulk-table-scroll {
    max-height: 50vh;
    overflow: auto;
}

.bulk-table {
    width: 100%;bul
    border-collapse: collapse;
    font-size: 11px;
    line-height: 1.4
}

    .bulk-table th, .bulk-table td {
        padding: 8px 10px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #e8f0e9;
        min-width: 78px
    }

    .bulk-table thead th {
        background: #f0f6f1;
        white-space: nowrap;
        color: #315340;
        font-weight: 700
    }

    .bulk-table tbody th {
        color: #5a7864;
        font-family: 'DM Mono',monospace;
        font-weight: 500;
        white-space: nowrap
    }

    .bulk-table .bulk-message {
        min-width: 280px;
        max-width: 460px
    }

    .bulk-table td strong, .bulk-table td small {
        display: block;
        white-space: nowrap
    }

    .bulk-table td small {
        color: #83978a;
        font-size: 10px
    }

    .bulk-table td .bulk-error {
        white-space: normal;
        color: #a33f35;
        max-width: 200px
    }

.bulk-metrics {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
    margin: 12px 0
}

    .bulk-metrics div {
        padding: 10px;
        background: #eef7f0;
        border-radius: 7px
    }

    .bulk-metrics span, .bulk-metrics strong {
        display: block
    }

    .bulk-metrics span {
        font-size: 10px;
        color: #6b8170;
        margin-bottom: 4px
    }

    .bulk-metrics strong {
        font-size: 15px;
        color: #225d40
    }

.bulk-category-table {
    max-width: 600px
}

.bulk-subheading {
    font-size: 14px;
    margin: 18px 0 9px
}

@media(max-width:850px) {
    .bulk-controls {
        flex-direction: column
    }

    .bulk-actions {
        align-items: flex-start
    }

    .bulk-progress {
        text-align: left
    }

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

.field-error {
    color: #b7473a;
    font-size: 11px;
    margin: 0 0 8px
}

.evaluate-button {
    width: 100%;
    justify-content: space-between
}

.questions-heading {
    border-top: 1px solid #e7eee8;
    padding-top: 13px;
    margin: 14px 0 4px
}

.question-row {
    display: flex;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2ee
}

    .question-row:last-child {
        border-bottom: 0;
        padding-bottom: 0
    }

    .question-row strong {
        font-size: 11px;
        color: #315340
    }

    .question-row p {
        font-size: 10px;
        line-height: 1.35;
        color: #819286;
        margin: 2px 0 0
    }

.type-pill {
    display: inline-flex;
    align-items: center;
    height: 19px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 8px;
    letter-spacing: .4px;
    flex: none
}

    .type-pill.choice {
        background: #e8efff;
        color: #5775ad
    }

    .type-pill.noul {
        background: #e5f7ee;
        color: #268664
    }

    .type-pill.score {
        background: #f6ebff;
        color: #8e61a8
    }

.output-panel {
    min-height: 390px
}

    .output-panel .error-notice {
        margin-top: 8px
    }

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 290px;
    color: #829b89
}

    .output-placeholder > span {
        font-size: 32px;
        color: #9ccdad;
        line-height: 1
    }

    .output-placeholder strong {
        font-size: 13px;
        color: #457255;
        margin: 8px 0 4px
    }

    .output-placeholder p {
        font-size: 11px;
        max-width: 250px;
        line-height: 1.5;
        margin: 0
    }

.live-badge {
    font-size: 9px;
    color: #2e836b;
    letter-spacing: .6px;
    white-space: nowrap
}

.recommendation-card {
    padding: 11px 13px;
    border-radius: 7px;
    background: #20553f;
    color: #fff;
    margin-bottom: 10px
}

.recommendation-label {
    font-size: 8px;
    letter-spacing: .8px;
    color: #addfbb
}

.recommendation-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 3px 0 2px
}

.recommendation-card p {
    font-size: 10px;
    color: #d0e8d7;
    margin: 0;
    line-height: 1.4
}

.answer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px
}

.answer-card {
    min-width: 0;
    background: #f9fcf9;
    border: 1px solid #e2ece3;
    border-radius: 7px;
    padding: 9px 11px
}

.answer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #557261
}

.answer-value {
    font: 800 18px 'Manrope',sans-serif;
    letter-spacing: -.04em;
    margin: 4px 0 2px;
    overflow-wrap: anywhere
}

    .answer-value small {
        font: 400 10px 'DM Sans',sans-serif;
        letter-spacing: 0;
        color: #85968a
    }

.answer-note {
    color: #82968a;
    font-size: 9px;
    line-height: 1.3;
    margin: 2px 0 5px
}

.probability-row {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    color: #627e6b;
    font-size: 10px;
    margin: 6px 0 2px
}

    .probability-row strong {
        font-weight: 700;
        color: #256043
    }

.probability-track {
    height: 4px;
    background: #e8f0e9;
    border-radius: 5px;
    overflow: hidden
}

    .probability-track div {
        height: 100%;
        background: #55b886;
        border-radius: 5px
    }

.response-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 10px 0;
    color: #809587;
    font-size: 9px
}

    .response-meta strong {
        color: #315840;
        font-weight: 500;
        overflow-wrap: anywhere
    }

.wire-details {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

    .wire-details details {
        background: #f9fcf9;
        border: 1px solid #e2ece3;
        border-radius: 6px;
        min-width: 0;
        flex: 1 1 150px
    }

    .wire-details summary {
        padding: 7px 9px;
        cursor: pointer;
        font-size: 10px;
        font-weight: 700;
        color: #42654d
    }

    .wire-details pre {
        padding: 9px;
        margin: 0;
        border-top: 1px solid #e2ece3;
        overflow: auto;
        max-height: 280px;
        background: #f8fbf8;
        font-size: 10px;
        line-height: 1.4
    }

/* Chase game */
.chase-page-heading {
    align-items: flex-end
}

.chase-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding-bottom: 1px
}

.chase-reset {
    background: #e4ede6;
    color: #365b45
}

    .chase-reset:hover:not(:disabled) {
        background: #d7e7db
    }

.chase-layout {
    display: grid;
    grid-template-columns: minmax(0,500px) minmax(0,1fr);
    gap: 12px;
    align-items: start;
    margin-top: 13px
}

.chase-board-panel, .chase-info-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #dce8df;
    border-radius: 10px;
    padding: 13px
}

.chase-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px
}

    .chase-panel-heading h2, .chase-info-card h2 {
        font-size: 15px;
        font-weight: 800;
        margin: 0
    }

    .chase-panel-heading span {
        font-size: 8px;
        letter-spacing: .6px;
        color: #37835a
    }

.chase-model-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px
}

    .chase-model-field label {
        flex: none;
        color: #375643;
        font-size: 11px;
        font-weight: 700
    }

    .chase-model-field .model-select {
        flex: 1;
        margin: 0
    }

.chase-board {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    width: min(100%,450px,max(320px,calc(100vh - 460px)));
    aspect-ratio: 1;
    background: #173a2d;
    border: 5px solid #173a2d;
    border-radius: 9px;
    overflow: hidden;
    outline: none;
    margin: 0 auto
}

    .chase-board:focus-visible {
        box-shadow: 0 0 0 3px #75cf9b
    }

.chase-cell {
    display: grid;
    place-items: center;
    border: 1px solid #ffffff1b;
    min-width: 0;
    min-height: 0;
    position: relative
}

    .chase-cell.wall {
        background: repeating-linear-gradient(135deg,#719c80 0,#719c80 3px,#285641 3px,#285641 9px)
    }

.runner-piece, .chaser-piece {
    display: block;
    width: 52%;
    height: 52%;
    border-radius: 50%;
    z-index: 1
}

.runner-piece {
    background: #effff2;
    box-shadow: 0 0 0 3px #eafff42b
}

.chaser-piece {
    border: 4px solid #91e8b7;
    background: #173a2d;
    box-shadow: 0 0 14px #6ddda95e
}

.chase-cell .runner-piece + .chaser-piece {
    position: absolute;
    border-color: #ffbc7f
}

.chase-controls {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 9px
}

    .chase-controls button {
        width: 44px;
        height: 44px;
        border: 1px solid #cddfd1;
        border-radius: 7px;
        background: #eff8f0;
        color: #286b47;
        font-size: 21px;
        line-height: 1
    }

        .chase-controls button:hover:not(:disabled) {
            background: #d8efdc
        }

        .chase-controls button:disabled {
            opacity: .45;
            cursor: not-allowed
        }

.chase-status {
    text-align: center;
    color: #246040;
    font-weight: 700;
    font-size: 11px;
    margin: 8px 0 3px
}

.chase-help {
    font-size: 10px;
    color: #829689;
    line-height: 1.35;
    text-align: center;
    margin: 0
}

.chase-dashboard {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.chase-decision {
    min-height: 110px
}

    .chase-decision p {
        color: #7d9182;
        font-size: 11px;
        line-height: 1.45;
        margin: 0
    }

.chase-choice {
    padding: 8px 9px;
    background: #ebf6ee;
    border-radius: 6px;
    color: #3d6f52;
    font-size: 11px
}

    .chase-choice strong {
        color: #125c3b;
        text-transform: capitalize
    }

    .chase-choice span {
        color: #789985
    }

.chase-usage {
    border-top: 1px solid #e7eee8;
    padding-top: 12px
}

    .chase-usage h2 {
        margin-bottom: 9px
    }

.chase-stat-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px
}

.chase-stat {
    min-width: 0;
    background: #f5faf6;
    border: 1px solid #e3eee5;
    border-radius: 7px;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px
}

    .chase-stat span {
        color: #809584;
        font-size: 9px
    }

    .chase-stat strong {
        color: #24573b;
        font: 800 15px 'Manrope',sans-serif;
        overflow-wrap: anywhere
    }

.chase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: #829688;
    font-size: 9px;
    margin-top: 11px
}

    .chase-meta strong {
        color: #365b44;
        font-weight: 500;
        overflow-wrap: anywhere
    }

.chase-details {
    border-top: 1px solid #e7eee8;
    padding-top: 4px
}

    .chase-details details {
        border-bottom: 1px solid #edf2ee;
        font-size: 10px
    }

    .chase-details summary {
        cursor: pointer;
        padding: 7px 2px;
        color: #32674b;
        font-weight: 700
    }

    .chase-details p {
        color: #718879;
        font-size: 10px;
        line-height: 1.5;
        margin: 5px 2px 9px
    }

    .chase-details pre {
        overflow: auto;
        max-height: 230px;
        background: #f6faf7;
        padding: 8px;
        font-size: 9px;
        line-height: 1.4
    }

#blazor-error-ui {
    background: #fff2e7;
    bottom: 0;
    box-shadow: 0 -1px 2px #0003;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem
    }

@media(max-width:1050px) {
    .app-shell {
        grid-template-columns: 174px minmax(0,1fr)
    }

    .content-container {
        width: calc(100% - 32px)
    }

    .sidebar {
        padding: 16px 8px
    }

    .chase-layout {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr)
    }
}

@media(max-width:850px) {
    .app-shell {
        display: block
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 9px 15px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: 0
    }

    .brand {
        padding: 0;
        flex: none
    }

        .brand small, .nav-label, .sidebar-bottom {
            display: none
        }

    .sidebar nav {
        display: flex;
        gap: 3px;
        overflow-x: auto;
        white-space: nowrap;
        min-width: 0;
        scrollbar-width: none
    }

        .sidebar nav::-webkit-scrollbar {
            display: none
        }

    .nav-link {
        margin: 0;
        padding: 8px 9px
    }

    .top-bar {
        height: 36px;
        padding: 0 16px
    }

    .content-container {
        width: calc(100% - 32px);
        padding: 16px 0 24px
    }

    .workspace-grid, .chase-layout {
        grid-template-columns: 1fr
    }

    .chase-board-panel {
        max-width: 510px
    }

    .chase-dashboard {
        max-width: 700px
    }
}

@media(max-width:560px) {
    .brand strong {
        font-size: 12px
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        font-size: 19px
    }

    .nav-link {
        font-size: 11px
    }

    .nav-symbol {
        display: none
    }

    .top-bar span {
        font-size: 8px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px
    }

    .chase-toolbar {
        width: 100%
    }

        .chase-toolbar .button {
            flex: 1
        }

    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px
    }

        .dashboard-intro h1 {
            font-size: 27px
        }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px
    }

    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 9px
    }

    .scenario-card {
        min-height: 135px
    }

    .site-footer {
        display: block;
        padding: 9px 16px
    }

        .site-footer span {
            display: block
        }

    .output-panel {
        min-height: 260px
    }

    .output-placeholder {
        min-height: 220px
    }

    .chase-board-panel, .chase-info-card, .workspace-panel {
        padding: 12px
    }
}

/* Bottom-of-page "View C# example" panel (Components/CodeExample.razor). */
.code-example-section { margin: 1.5rem 0 0; max-width: 64rem; }
