:root { --pico-font-size: 16px; --pico-spacing: 0.9rem; --pico-border-radius: 0.4rem; }
body { background: #fcfcfb; }
main.container { max-width: 780px; padding: 1.5rem 1rem; }
.progress-header { margin-bottom: 1.6rem; }
.progress-header > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.progress-header small, footer, .doi, .eyebrow, .muted { color: var(--pico-muted-color); font-size: 0.85rem; }
progress { height: 0.35rem; margin: 0.6rem 0 0; }
h1 { font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.3; margin-bottom: 0.5rem; }
.eyebrow { letter-spacing: 0.04em; margin-bottom: 0.45rem; }
.eyebrow strong { color: var(--pico-color); text-transform: capitalize; }
.doi { overflow-wrap: anywhere; margin-bottom: 1.1rem; }
.abstract { line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.question { font-weight: 600; margin: 1.3rem 0 0.6rem; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.actions button { margin: 0; padding: 0.8rem 0.5rem; }
.skip { width: 100%; margin-top: 0.6rem; padding: 0.45rem; }
.rules { font-size: 0.9rem; margin-bottom: 1.2rem; }
.rules p { margin-bottom: 0.5rem; }
.undo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.undo button { margin: 0; padding: 0.3rem 0.8rem; font-size: 0.85rem; white-space: nowrap; }
.undo small { color: var(--pico-muted-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { font-size: 0.7rem; padding: 0.1rem 0.3rem; margin-left: 0.35rem; }
footer { text-align: center; margin-top: 0.75rem; }
#message { font-size: 0.9rem; margin-top: 0.7rem; }
@media (pointer: coarse) { .keyboard-hint, kbd { display: none; } }
@media (max-width: 600px) { main.container { padding-top: 1rem; } .progress-header { margin-bottom: 1.1rem; } }
h1 { margin-top: 0; }
@media (max-width: 600px) { .keyboard-hint, kbd { display: none; } }


#decision-flash:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: white;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 700;
  text-align: center;
  touch-action: none;
}
#decision-flash[data-decision="justified"] { background: #15803d; }
#decision-flash[data-decision="ambiguous"] { background: #b45309; }
#decision-flash[data-decision="unjustified"] { background: #b91c1c; }

/* Case content */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.flow > div, .pair > div { background: var(--pico-card-sectioning-background-color); border-radius: var(--pico-border-radius); padding: 0.6rem 0.8rem; overflow-wrap: anywhere; }
.flow small, .pair > div > small:first-child { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; color: var(--pico-muted-color); }
.flow p { margin: 0.2rem 0 0; font-size: 0.92rem; }
.rationale { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.55; }
details { margin-bottom: 0.6rem; border-bottom: 1px solid var(--pico-muted-border-color); padding-bottom: 0.4rem; }
details summary { font-weight: 600; font-size: 0.95rem; }
.claim dt { font-weight: 600; font-size: 0.85rem; }
.claim dd { margin: 0 0 0.6rem; font-size: 0.92rem; }
.leg-note { font-size: 0.9rem; color: var(--pico-muted-color); }
.finding { padding: 0.8rem 1rem; margin: 0 0 0.7rem; font-size: 0.9rem; }
.finding p { margin-bottom: 0.4rem; }
.finding-paper { font-weight: 600; overflow-wrap: anywhere; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.pair small { font-size: 0.8rem; color: var(--pico-muted-color); }
.why { border-left: 3px solid var(--pico-muted-border-color); padding-left: 0.7rem; }
.note-label { font-size: 0.9rem; margin-top: 0.8rem; }
#note { margin-bottom: 0; }
@media (max-width: 600px) { .flow, .pair, .actions { grid-template-columns: 1fr; } }
