:root { color-scheme: light; font-family: system-ui, sans-serif; color: #23352e; background: #f4f5f0; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #21664f; text-underline-offset: 4px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px max(24px, calc((100vw - 1160px) / 2)); background: white; border-bottom: 1px solid #dce2d8; }
.brand { font-size: 21px; font-weight: 750; text-decoration: none; color: inherit; }
small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #637168; }
.badge { padding: 6px 10px; border-radius: 6px; background: #edf2e8; font-size: 12px; }
main { max-width: 1208px; padding: 40px 24px; margin: auto; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .13em; color: #557363; }
h1 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 44px); font-weight: 400; margin: 12px 0; }
h2 { font-size: 18px; margin: 24px 0 16px; }
p { line-height: 1.6; }
.muted { color: #637168; }
nav { display: flex; gap: 24px; border-bottom: 1px solid #d5ddd2; margin: 32px 0 24px; }
nav a { padding: 12px 0; text-decoration: none; color: #637168; border-bottom: 3px solid transparent; }
nav a[aria-current] { color: #21664f; border-color: #21664f; font-weight: 650; }
nav span { margin-left: 6px; font-size: 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.card { background: white; border: 1px solid #dce2d8; border-radius: 12px; padding: 28px; }
article { min-height: 450px; }
.task { font-size: 19px; }
hr { border: 0; border-top: 1px solid #e3e8df; margin: 28px 0; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
fieldset { border: 0; margin: 24px 0; padding: 0; }
legend { font-size: 13px; font-weight: 650; margin-bottom: 12px; }
label { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px; border: 1px solid #dce2d8; border-radius: 8px; cursor: pointer; font-size: 13px; }
label:has(input:checked) { border-color: #21664f; background: #edf5ee; }
input { accent-color: #21664f; }
label strong { font-size: 17px; }
button { width: 100%; padding: 13px; border: 0; border-radius: 8px; background: #e4e9e2; color: #59665a; font: inherit; }
.hint, footer { font-size: 12px; color: #637168; }
footer { max-width: 1208px; padding: 0 24px 32px; margin: auto; }
:focus-visible { outline: 3px solid #c17b29; outline-offset: 4px; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } header { align-items: start; flex-direction: column; } main { padding-top: 24px; } .card { padding: 22px; } }

.diff-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.diff-heading h2 { margin: 0; }
.diff-legend { display: flex; gap: 16px; font-size: 12px; }
.legend-add { color: #116329; }
.legend-delete { color: #a40e26; }
.diff-view { overflow-x: auto; border: 1px solid #d0d7de; border-radius: 8px; background: #fff; }
.diff-code { margin: 0; padding: 12px 0; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 4; }
.diff-line { display: block; padding: 0 14px; min-height: 1.7em; width: max-content; min-width: 100%; }
.diff-addition { color: #116329; background: #dafbe1; }
.diff-deletion { color: #82071e; background: #ffebe9; }
.diff-hunk { color: #0550ae; background: #ddf4ff; }
.diff-file { font-weight: 600; color: #24292f; background: #f6f8fa; }
.task { white-space: pre-wrap; overflow-wrap: anywhere; }
.layout > * { min-width: 0; }

.task, .answer { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.8; }
.answer { white-space: normal; }
.answer h1, .answer h2, .answer h3, .answer h4, .answer h5, .answer h6 { font-family: inherit; font-weight: 700; line-height: 1.4; margin: 24px 0 12px; }
.answer h1 { font-size: 22px; }
.answer h2 { font-size: 19px; }
.answer h3 { font-size: 16px; }
.answer h4, .answer h5, .answer h6 { font-size: 14px; }
.answer > :first-child { margin-top: 0; }
.answer p { margin: 12px 0; }
.answer li { margin: 5px 0; }
.answer pre { overflow-x: auto; white-space: pre; background: #f6f8fa; border: 1px solid #dce2d8; padding: 14px; border-radius: 8px; }
.answer code { font-family: inherit; font-size: inherit; background: #eff2ee; padding: 2px 4px; border-radius: 3px; }
.answer pre code { background: transparent; padding: 0; }
.answer blockquote { border-left: 3px solid #b5c9ba; padding-left: 16px; margin-left: 0; color: #536459; }
.answer table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.answer th, .answer td { border: 1px solid #dce2d8; padding: 8px 12px; }


.login-page { max-width: 500px; padding-top: 60px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label { display: block; border: 0; padding: 0; margin: 8px 0 0; font-weight: 600; cursor: default; }
.login-form input { width: 100%; border: 1px solid #b8c8bc; border-radius: 7px; padding: 12px; font: inherit; background: #fff; color: #23352e; }
.primary-button { background: #21664f; color: white; cursor: pointer; margin-top: 12px; }
.primary-button:hover { background: #174d3b; }
.form-error { background: #ffebe9; color: #82071e; padding: 12px; border-radius: 7px; }
.account-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.logout-button { width: auto; background: transparent; color: #21664f; cursor: pointer; padding: 8px; }

.save-notice { background: #e4f4e8; border: 1px solid #a7cbb2; border-radius: 8px; padding: 12px 16px; color: #205e3c; }
.result-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.result-picker a { padding: 8px 12px; background: white; border: 1px solid #dce2d8; border-radius: 7px; text-decoration: none; font-size: 12px; }
.result-picker a[aria-current] { background: #e5f1e8; border-color: #21664f; font-weight: 650; }

.result-topline { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.generation-time { font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: #536459; }
.export-link { font-size: 12px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 13px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin-top: 24px; }
.task-folder { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid #dce2d8; border-radius: 12px; background: white; color: #23352e; text-decoration: none; }
.task-folder:hover { border-color: #21664f; background: #f1f7f1; }
.task-folder strong { font: 700 24px ui-monospace, SFMono-Regular, Consolas, monospace; }
.task-folder > span:not(.folder-icon) { font-size: 13px; }
.folder-icon { font-size: 25px; }
.task-results { display: grid; gap: 10px; max-width: 800px; margin-top: 24px; }
.result-list-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border: 1px solid #dce2d8; border-radius: 10px; background: white; text-decoration: none; }
.result-list-item:hover { border-color: #21664f; }
.result-list-item > span:first-child { font: 600 14px ui-monospace, SFMono-Regular, Consolas, monospace; }

.remove-review-form { border-top: 1px solid #dce2d8; margin-top: 24px; padding-top: 20px; }
.remove-confirmation { align-items: flex-start; border: 0; padding: 0; line-height: 1.6; }
.remove-confirmation input { margin-top: 4px; flex-shrink: 0; }
.remove-review-button { color: #a12733; border: 1px solid #e0b9be; background: #fff; cursor: pointer; }
.remove-review-button:hover { background: #ffebe9; }

.dashboard-page { max-width: 1440px; }
.dashboard-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.dashboard-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin: 28px 0 24px; padding: 20px; }
.dashboard-filters > div { flex: 1 1 170px; }
.dashboard-filters label { display: block; border: 0; padding: 0; margin: 0 0 8px; cursor: default; font-size: 12px; }
.dashboard-filters select { width: 100%; padding: 10px; border: 1px solid #becbbe; border-radius: 7px; background: white; color: inherit; font: inherit; font-size: 13px; }
.dashboard-filters .dashboard-checkbox { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dashboard-filters button { width: auto; margin: 0; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px; }
.stat p { margin: 0 0 10px; color: #637168; font-size: 13px; }
.stat > strong { font-size: 32px; font-weight: 650; }
.stat small { line-height: 1.6; margin-top: 10px; }
.snapshot-note { border-left: 3px solid #cfad70; padding: 8px 16px; font-size: 13px; color: #65573f; margin: 24px 0; }
.dashboard-section { margin-top: 24px; }
.dashboard-section h2 { margin-top: 0; }
.table-scroll { overflow-x: auto; }
.dashboard-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.dashboard-table th { text-align: left; font-size: 11px; color: #637168; font-weight: 650; background: #f6f8f3; white-space: nowrap; }
.dashboard-table th, .dashboard-table td { padding: 14px 12px; border-bottom: 1px solid #e3e8df; vertical-align: top; }
.dashboard-table td small { margin-top: 6px; line-height: 1.5; font-size: 11px; }
.dashboard-table td strong { font-size: 13px; }
.score-value { font-size: 22px; font-weight: 700; color: #21664f; }
.score-stack { display: flex; min-width: 180px; height: 24px; border-radius: 5px; overflow: hidden; background: #eef1eb; }
.segment { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 650; }
.score-1 { background: #a54c45; }.score-2 { background: #b8753c; }.score-3 { background: #88783c; }.score-4 { background: #52805c; }.score-5 { background: #21664f; }
.score-counts { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 10px; color: #637168; }
.outcome { display: block; margin-bottom: 5px; white-space: nowrap; font-size: 11px; }
.metric-notes { margin-top: 20px; color: #637168; font-size: 12px; line-height: 1.7; }
.metric-notes summary { cursor: pointer; color: #21664f; }
.dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.dashboard-bottom h2 { margin-top: 0; }
.health-list { margin: 18px 0; font-size: 13px; }
.health-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #e3e8df; }
.health-list dd { font-weight: 700; margin: 0; }
.dashboard-empty { color: #637168; font-size: 14px; padding: 14px 0; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-bottom { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.hardware-gpu { margin-bottom: 12px; min-width: 220px; }
.hardware-gpu code, .hardware-uuid { display: block; font-size: 10px; overflow-wrap: anywhere; margin-top: 5px; }

.hardware-details > summary { cursor: pointer; color: #21664f; font-size: 18px; font-weight: 650; }
.hardware-details[open] > summary { margin-bottom: 16px; }
