/* One sheet, no framework. Readable at 360 px, usable with a keyboard alone. */
:root {
  --ink: #1b1f24; --soft: #57606a; --line: #d0d7de; --paper: #ffffff; --wash: #f6f8fa;
  --accent: #0b5cad; --accent-ink: #ffffff; --ok: #1a7f37; --warn: #9a6700; --bad: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6edf3; --soft: #9da7b3; --line: #30363d; --paper: #0d1117; --wash: #161b22;
          --accent: #6cb6ff; --accent-ink: #0d1117; --ok: #56d364; --warn: #e3b341; --bad: #ff7b72; }
}
* { box-sizing: border-box; }
html { font: 100%/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px; z-index: 2; }
.top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px;
       border-bottom: 1px solid var(--line); background: var(--wash); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; margin-right: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
nav a, nav button { font: inherit; }
main { max-width: 60rem; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
p { margin: 8px 0; }
.soft { color: var(--soft); }
.status { margin: 0; padding: 0 16px; min-height: 0; }
.status:not(:empty) { padding: 8px 16px; background: var(--wash); border-bottom: 1px solid var(--line); }
.status.bad { color: var(--bad); }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--warn); padding: 12px; border-radius: 6px;
          background: var(--wash); }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0; background: var(--paper); }
.cards { list-style: none; padding: 0; margin: 0; }
.cards a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line);
           border-radius: 8px; padding: 12px 16px; margin: 8px 0; }
.cards a:hover { background: var(--wash); }
.cards strong { display: block; }
dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 4px 16px; margin: 8px 0; }
dt { color: var(--soft); }
dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl { grid-template-columns: 1fr; } dt { margin-top: 8px; } }
form { display: grid; gap: 8px; margin: 8px 0; max-width: 32rem; }
form.row { grid-template-columns: 1fr auto; align-items: end; max-width: none; }
@media (max-width: 480px) { form.row { grid-template-columns: 1fr; } }
label { display: grid; gap: 4px; font-weight: 600; }
input, select { font: inherit; padding: 10px; border: 1px solid var(--soft); border-radius: 6px;
                background: var(--paper); color: var(--ink); min-height: 44px; width: 100%; }
button, .button { font: inherit; padding: 10px 16px; min-height: 44px; border-radius: 6px; cursor: pointer;
                  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
                  text-decoration: none; display: inline-block; text-align: center; }
button.plain { background: transparent; color: var(--accent); }
button.danger { border-color: var(--bad); background: transparent; color: var(--bad); }
button:disabled { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.code { font: 700 1.4rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
        padding: 12px; border: 2px dashed var(--accent); border-radius: 8px; text-align: center;
        overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line);
       font-size: .875rem; }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.bad { color: var(--bad); border-color: var(--bad); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
ul.plain { list-style: none; padding: 0; margin: 8px 0; }
ul.plain li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
              padding: 8px 0; border-bottom: 1px solid var(--line); }
/* The onboarding: steps in order, questions one under the other. */
ol.steps { list-style: none; padding: 0; margin: 8px 0; counter-reset: step; }
ol.steps > li { counter-increment: step; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 8px 0; }
ol.steps > li > strong::before { content: counter(step) ". "; }
li.block { display: block; }
li.block > strong, li.block > a { margin-right: 8px; }
ul.plain li.block { display: block; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 4px 0; min-width: 0; }
legend { font-weight: 600; padding: 0 4px; }
label.choice { display: flex; gap: 12px; align-items: center; font-weight: 400; min-height: 44px; }
label.choice input { width: 24px; min-height: 24px; height: 24px; flex: none; }
textarea { font: inherit; padding: 10px; border: 1px solid var(--soft); border-radius: 6px; background: var(--paper);
           color: var(--ink); width: 100%; }
.choice-row { display: grid; grid-template-columns: 1fr 6rem auto auto; gap: 8px; align-items: end; margin: 8px 0; }
@media (max-width: 600px) { .choice-row { grid-template-columns: 1fr; } }
details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; margin: 8px 0; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
/* A document drawn page by page, a video: never wider than the screen. */
.pages canvas { display: block; max-width: 100%; height: auto; margin: 8px auto; border: 1px solid var(--line); }
video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: 8px; }
input[type="file"] { padding: 8px; }
