: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, .discipline { 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; }
.discipline { font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.45rem; }
.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: 1fr 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="null"] { background: #b45309; }
#decision-flash[data-decision="nonnull"] { background: #15803d; }
#decision-flash[data-decision="both"] { background: #1d4ed8; }
#decision-flash[data-decision="neither"] { background: #4b5563; }
