:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #253d38; background: #f3f6f4; line-height: 1.55; --accent: #216b59; --line: #dce6df; --muted: #657a71; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, input, textarea { border: 1px solid #cbdad1; border-radius: 8px; background: #fff; }
button { cursor: pointer; padding: 8px 12px; font-size: 13px; font-weight: 600; transition: background .15s; }
button:hover { background: #edf5ef; }
button:disabled { opacity: .45; cursor: default; }
button.primary { color: white; border-color: var(--accent); background: var(--accent); }
button.danger { color: #a84535; }
input, select, textarea { padding: 8px 10px; font-size: 14px; }
textarea { width: 100%; resize: vertical; min-height: 70px; }
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #78ad98; outline-offset: 3px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; letter-spacing: -.6px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.35px; overflow-wrap: anywhere; }
h3 { font-size: 17px; margin-bottom: 6px; }
p { margin: 8px 0 12px; }
a { color: var(--accent); font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: 10px; color: var(--accent); margin-bottom: 5px; }
.muted, small { font-size: 12px; color: var(--muted); }
.app-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rater-label { display: flex; gap: 8px; align-items: center; margin: 0 8px 0 0; }
#rater { width: 120px; }
.statusbar { padding: 7px 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; background: #eaf2ed; }
.statusbar.error { background: #fff1e7; color: #9a4024; }
.server-save-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #fff; font-size: 12px; }
.server-save-bar > div:first-child { flex: 1; min-width: 220px; }
.server-save-bar strong, #server-save-status, #server-save-path { display: block; overflow-wrap: anywhere; }
.server-save-bar.error { background: #fff1e7; }
.server-save-bar.error #server-save-status { color: #9a4024; }
.server-save-bar.saved #server-save-status { color: #216b59; }
#server-save-path { color: var(--muted); margin-top: 3px; }
#server-migration { margin: 10px 24px; }
.layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 20px; padding: 20px; max-width: 1770px; margin: auto; }
.sidebar { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; padding: 2px 6px 12px 0; }
#project { width: 100%; font-size: 12px; }
.progress-box { padding: 12px; border: 1px solid var(--line); background: #eaf2ed; border-radius: 10px; font-size: 13px; }
.progress-box small { display: block; }
progress { display: block; width: 100%; height: 6px; border: 0; accent-color: var(--accent); margin: 8px 0; }
progress::-webkit-progress-bar { background: #d7e5dd; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
nav { display: grid; gap: 7px; margin: 14px 0; }
nav button { text-align: left; padding: 10px 12px; font-weight: 500; }
nav button[aria-pressed=true] { border-color: #5a927b; background: #e4f0e9; box-shadow: inset 3px 0 #39775c; }
nav .nav-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; color: var(--accent); margin-bottom: 3px; font-weight: 700; }
.wide { width: 100%; }
.card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 22px; margin-bottom: 18px; min-width: 0; box-shadow: 0 3px 14px #243b3010; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.section-heading a, .badge { flex-shrink: 0; }
.badge { font-size: 11px; padding: 4px 9px; border-radius: 20px; background: #f0f3f1; color: #687b70; }
.badge.complete { background: #e1f1e7; color: #2e7254; }
.badge.incomplete { background: #ffe7e2; color: #a52d24; }
summary { cursor: pointer; font-size: 13px; font-weight: 650; }
#transcript { max-height: 470px; overflow: auto; margin-top: 14px; padding-right: 6px; }
.turn { white-space: pre-wrap; font-size: 13px; padding: 10px 14px; margin: 8px 0; border-left: 3px solid #bac8bf; background: #f3f6f4; border-radius: 6px; overflow-wrap: anywhere; }
.turn strong { display: block; font-size: 11px; margin-bottom: 3px; }
.turn.interviewer { background: hsl(168 48% 91%); border-color: hsl(168 30% 75%); color: hsl(168 40% 27%); }
.turn.stakeholder { background: hsl(305.508 48% 91%); border-color: hsl(305.508 30% 75%); color: hsl(305.508 40% 27%); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; }
.fact { padding: 10px 13px; background: #f4f7f4; border-radius: 8px; font-size: 13px; }
.fact p { margin: 0; }
ol { padding-left: 26px; font-size: 13px; }
li { padding: 3px 0 3px 4px; }
li::marker { color: var(--accent); font-weight: 650; }
blockquote { margin: 8px 0; padding: 10px 14px; background: #faf9f6; color: #566164; border-left: 3px solid #bc5b2d; border-radius: 0 7px 7px 0; white-space: pre-wrap; font-size: 13px; }
blockquote strong { color: #bc5b2d; display: block; font-size: 11px; }
.annotation-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.rating-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.rating { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; background: #fbfcfb; }
.rating legend { padding: 0 4px; font-size: 12px; font-weight: 650; }
.rating select { width: 100%; font-size: 12px; padding: 8px 5px; }
.rating-section.incomplete { border-top-color: #cf675c; }
.rating-section.incomplete h3 { color: #a52d24; }
.rating.incomplete { border-color: #cf675c; background: #fff5f3; }
.rating.incomplete legend { color: #a52d24; }
.rating.incomplete select { border-color: #cf675c; background: #fff5f3; }
.ranking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.ranking-preview { display: block; width: 100%; padding: 0; overflow: hidden; margin-bottom: 12px; cursor: zoom-in; }
.ranking-preview img { display: block; width: 100%; height: 180px; object-fit: contain; background: white; }
.ranking-preview span { display: block; padding: 7px; font-size: 12px; }
@media (max-width: 900px) { .ranking-grid { grid-template-columns: 1fr; } .ranking-preview img { height: auto; max-height: 300px; } }
.model-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 8px; }
.model-tabs button { border-radius: 25px; padding: 8px 16px; }
.model-tabs button[aria-pressed=true] { color: white; background: var(--accent); border-color: var(--accent); }
.image-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
#storyboard-image { width: 100%; height: auto; display: block; border: 1px solid #e9eeea; border-radius: 8px; cursor: zoom-in; }
.warning { padding: 14px; background: #fff1e7; color: #9a4024; border-radius: 8px; }
.step-reference { background: #f4f7f4; padding: 12px; border-radius: 8px; margin-bottom: 12px; }
.step-reference ol { margin-bottom: 0; }
.count-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 12px 0; }
.count-inputs label { min-width: 0; margin: 0; font-size: 12px; }
.count-inputs input { display: block; width: 100%; margin-top: 6px; }
.count-inputs input[readonly] { background: #e1ebe4; }
.count-inputs input:invalid { border-color: #bc5b2d; }
.count-inputs > span { padding-top: 24px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.metrics > div { padding: 16px; border-radius: 10px; background: #edf5ef; }
.metrics h4 { font-size: 13px; margin: 0; }
.bottom-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 30px; }
dialog { width: min(850px, 95vw); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 20px 100px #203d3440; }
dialog::backdrop { background: #20362e88; backdrop-filter: blur(3px); }
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top, #e4efe8, #f3f6f4 65%); }
.auth-card { width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 50px #243b3014; }
dialog.auth-card { width: min(420px, calc(100vw - 32px)); }
.auth-card h1, .auth-card h2 { font-size: 25px; margin-top: 8px; }
.auth-card > p { font-size: 14px; color: var(--muted); margin: 14px 0 24px; }
.auth-form input { width: 100%; padding: 11px 12px; }
.auth-form button { margin-top: 20px; padding: 11px 16px; }
.auth-error { padding: 10px 12px; border-radius: 8px; background: #fff1e7; color: #9a4024; font-size: 13px; overflow-wrap: anywhere; }
.auth-card > .auth-note { font-size: 12px; margin: 20px 0 0; }
#rubric-content h3 { margin-top: 24px; }
.rubric-row { display: grid; grid-template-columns: 32px 150px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rubric-row b:first-child { color: var(--accent); }
#image-dialog { width: 96vw; }
.zoom-scroll { overflow: auto; max-height: 72vh; }
#zoomed-image { display: block; max-width: none; }
[hidden] { display: none !important; }
@media (max-width: 1150px) { .rating-grid { grid-template-columns: 1fr 1fr; } .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 14px; } .card { padding: 18px; } }
@media (max-width: 760px) { .app-header { padding: 16px; } .toolbar { width: 100%; } .statusbar { padding: 8px 16px; flex-wrap: wrap; } .statusbar > span:last-child { display: none; } .layout { grid-template-columns: 1fr; padding: 12px; } .sidebar { position: static; max-height: none; padding: 0; } nav { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 230px; overflow: auto; } .facts, .metrics { grid-template-columns: 1fr; } .image-tools { align-items: flex-start; flex-direction: column; } .section-heading { flex-wrap: wrap; } .rubric-row { grid-template-columns: 25px 1fr; } .rubric-row span { grid-column: 2; } .bottom-navigation { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
