
:root {
  color-scheme: light;
  --paper: #f3f3ef;
  --ink: #191919;
  --muted: #555650;
  --accent: #e3fa49;
  --line: #bfc1b8;
  font: 18px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
p { overflow-wrap: anywhere; }
h1, h2 { overflow-wrap: anywhere; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: 5rem; font-weight: 750; line-height: .96; margin: 0 0 28px; }
h2 { font-size: 2rem; line-height: 1.12; margin: 0 0 24px; }
.shell { max-width: 1200px; margin: auto; padding: 64px 32px 32px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px 72px; }
.shell header { border-top: 8px solid var(--ink); padding-top: 24px; }
.intro { font-size: 1.15rem; line-height: 1.4; max-width: 30ch; }
.context { color: var(--muted); font-size: .85rem; }
.current { border-top: 8px solid var(--ink); padding-top: 24px; }
.phase { display: table; background: var(--accent); padding: 4px 8px; margin: 0 0 24px; font-size: .85rem; font-weight: 700; }
.button { display: block; background: var(--ink); color: white; border: 2px solid var(--ink); border-radius: 0; padding: 15px 20px; font-size: 1rem; font-weight: 700; text-decoration: none; text-align: center; min-height: 52px; margin-top: 28px; }
.button:hover { background: #383a32; }
:focus-visible { outline: 3px solid #2455cc; outline-offset: 4px; }
[hidden] { display: none !important; }
.aside { font-size: .9rem; color: var(--muted); }
footer { grid-column: 2; border-top: 1px solid var(--line); padding-top: 20px; font-size: .85rem; }
footer p { margin: 4px 0; }
.address { font-weight: 700; }
.connection { color: var(--muted); margin-top: 18px; }
.connection[data-state=offline] { color: #a52c1f; }
.operator-shell { max-width: 1200px; margin: auto; padding: 40px 24px; }
.operator-shell header { border-top: 8px solid var(--ink); padding-top: 24px; }
.operator-title { font-size: 2.8rem; max-width: 22ch; }
.operator-shell header > p { max-width: 65ch; }
#activities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.activity-editor { min-width: 0; border: 1px solid var(--line); padding: 20px; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #fff; }
.activity-editor:has(input[type=radio]:checked) { border-color: var(--ink); }
.activity-editor legend { font-weight: 700; padding: 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; min-width: 0; }
.field:has(textarea), .field:has([name=url]), .choice { grid-column: 1/-1; }
.choice { font-weight: 700; font-size: .9rem; }
.choice input { margin-right: 10px; width: 20px; height: 20px; vertical-align: middle; }
input, select, textarea, button { font: inherit; }
input, select, textarea { border: 1px solid #85877e; border-radius: 0; background: #fff; color: var(--ink); padding: 12px; width: 100%; min-width: 0; font-weight: 400; }
input:disabled { background: #e8e9e2; }
input { accent-color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
button { cursor: pointer; min-height: 48px; padding: 12px 16px; background: transparent; color: inherit; border: 1px solid var(--ink); border-radius: 0; touch-action: manipulation; }
button:hover:not(:disabled) { background: #e3e5dc; }
button.button:hover:not(:disabled) { background: #383a32; }
button:disabled { opacity: .5; cursor: wait; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px 0; margin-top: 24px; border-top: 2px solid var(--ink); }
.toolbar .button { margin: 0; }
#feedback { padding: 14px 0; border-bottom: 1px solid var(--line); }
.print-card { text-align: center; padding: 60px 28px; }
.print-card img { width: min(70vw,320px); height: auto; display: block; margin: 35px auto; }
.print-card .address { font-size: 1.5rem; }
@media(max-width: 760px) {
 .shell { display: block; padding: 24px 20px; }
 .shell header { border-top-width: 6px; padding-top: 20px; margin-bottom: 32px; }
 h1 { font-size: 3.5rem; }
 .intro { font-size: 1rem; max-width: 34ch; }
 h2 { font-size: 1.7rem; }
 .current { border-top-width: 2px; padding-top: 20px; }
 footer { margin-top: 32px; }
 #activities { grid-template-columns: 1fr; }
 .operator-title { font-size: 2rem; }
}
@media(max-width: 400px) { .activity-editor { grid-template-columns: 1fr; padding: 16px; } .toolbar > * { width: 100%; } }
@media print { .print-card { padding: 30mm 10mm; } .print-card img { width: 70mm; } .no-print { display: none; } body { background: white; } }

@media(max-width: 400px) { .shell h1 { font-size: 2.8rem; } .print-card h1 { font-size: 2.8rem; } }
