:root { color-scheme: light; --ink: #202124; --muted: #5f6368; --line: #dadce0; --soft: #f8f9fa; --blue: #174ea6; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: white; color: var(--ink); font: 15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
[hidden] { display: none !important; }
header { display: flex; align-items: center; gap: 16px; padding: 24px 32px; border-bottom: 1px solid var(--line); }
header > div { min-width: 0; flex: 1; }
h1 { margin: 0; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
h2 { font-size: 17px; margin: 0 0 12px; }
p { margin: 0; }
#task-name, #total, #input-type, #reference-count { color: var(--muted); }
#total { flex: none; font-variant-numeric: tabular-nums; }
button,select,#back { font: inherit; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; }
button,#back { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; cursor: pointer; flex: none; }
button:hover,#back:hover { background: var(--soft); }
button:disabled { opacity: .4; cursor: default; }
svg { width: 19px; height: 19px; }
button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible { outline: 2px solid #1a73e8; outline-offset: 3px; }
select { max-width: 100%; min-width: 0; height: 38px; padding: 6px 28px 6px 10px; }
nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 32px; border-bottom: 1px solid var(--line); background: white; }
nav label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
#tasks { width: 124px; flex: none; }
#questions { width: 240px; }
#variants { max-width: 220px; }
main { max-width: 1350px; margin: auto; padding: 24px 32px 64px; }
#sample-id { margin-bottom: 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.status { border-left: 3px solid #b06000; background: #fffbeb; padding: 10px 14px; margin-bottom: 16px; }
#error { color: #b3261e; padding: 24px 0; }
section + section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
#system-section { margin-top: 0; }
#current-prompt { margin-top: 0; }
#prompt-heading { font-size: 17px; font-weight: 600; }
#current-prompt > pre { color: var(--ink); }
.reference-controls { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
#reference-step { width: 340px; min-width: 0; flex: 0 1 340px; }
.reference-state { margin: 0 0 16px; }
.reference-action { margin-top: 14px; }
#reference-observation figcaption { font-size: 13px; overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
details { margin-top: 18px; } summary { color: var(--blue); cursor: pointer; } details pre { margin-top: 10px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px; }
.media-grid.single { grid-template-columns: minmax(0,1fr); }
.media-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
figure { min-width: 0; margin: 0; } figcaption { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.frame-image { display: block; width: 100%; padding: 0; height: auto; background: #f4f5f6; border: 0; border-radius: 0; }
.frame-image img { display: block; width: 100%; height: 100%; object-fit: contain; max-height: 680px; }
.frame-image { position: relative; } .frame-image .load-error { position: absolute; inset: 0; display: grid; place-items: center; background: var(--soft); color: #b3261e; padding: 12px; }
.frame-controls { display: flex; align-items: center; gap: 8px; margin: 12px 0 18px; }
.frame-controls input { flex: 1; min-width: 40px; accent-color: var(--blue); }
.frame-counter { min-width: 95px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.still-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.still-grid figure { max-width: 540px; }
.still-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.empty { color: var(--muted); padding: 16px 0; }
video { display: block; max-width: 100%; width: 960px; background: #111; }
dialog { padding: 48px 18px 18px; border: 1px solid var(--line); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); border-radius: 6px; }
dialog::backdrop { background: rgb(0 0 0 / 70%); }
dialog form { position: absolute; top: 6px; right: 6px; }
dialog img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
dialog a { color: var(--blue); }
@media(max-width:680px) { header,nav { padding-left: 16px; padding-right: 16px; } header { gap: 10px; } h1 { font-size: 21px; } #task-name { font-size: 13px; } #total { font-size: 13px; } main { padding: 20px 16px 48px; } nav { display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; gap: 8px; } nav > label:first-child { grid-column: 1 / -1; } #previous { grid-column: 1; grid-row: 2; } .question-picker { grid-column: 2; grid-row: 2; } #next { grid-column: 3; grid-row: 2; } #questions { width: 100%; } .media-grid,.media-grid.three,.still-grid,.still-grid.three { grid-template-columns: minmax(0,1fr); } #variant-label { grid-column: 1 / -1; width: 100%; } }
