:root{color-scheme:light;--paper:#faf5e8;--ink:#221e23;--muted:#585b52;--blue:#332d9d;--peach:#ff673e;--line:#c8c8bc;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button,a{color:inherit}button,summary{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button{border:0}.shell{width:min(1152px,90%);margin:auto}.bar,nav,.brand,.actions,footer,.stepbar,.panelhead{display:flex;align-items:center}.bar{min-height:77px;justify-content:space-between;border-bottom:1px solid var(--ink)}.brand{font-weight:770;letter-spacing:-.05em;gap:.65rem;text-decoration:none;font-size:1.13rem}.brand img{border-radius:11px}nav{gap:1.1rem}.plain,.lang,.link{background:none}.lang{border:1px solid var(--ink);border-radius:100px;padding:.4rem .8rem;font-weight:650}.plain{padding:.5rem}.hero{display:grid;grid-template-columns:1fr .95fr;gap:4%;align-items:center;padding:clamp(48px,8vw,108px) 0}.edition,.stepbar,.jacket-top,.jacket-foot,.micro{font-family:"SFMono-Regular",Consolas,monospace;text-transform:uppercase;letter-spacing:.105em;font-size:.74rem;font-weight:650}.edition{color:var(--blue);margin:0 0 1.3rem}.edition:before{content:"";display:inline-block;width:1.9rem;height:2px;background:var(--blue);vertical-align:middle;margin-right:.65rem}h1,h2,h3,p{overflow-wrap:break-word}h1,h2,h3{letter-spacing:-.057em;line-height:1.04}h1{font-size:clamp(3.9rem,7.6vw,7.4rem);margin:0;line-height:.98}.lead{font-size:clamp(1.35rem,2.4vw,2.1rem);letter-spacing:-.04em;line-height:1.15;max-width:23em;margin:1.25rem 0 .75rem}.copy,.how p,.small,.hint,footer{color:var(--muted);line-height:1.55}.copy{font-size:1.02rem;max-width:34em;margin:0}.actions{gap:.65rem 1.35rem;flex-wrap:wrap;margin:1.8rem 0 .8rem}.primary,.secondary,.danger{padding:.84rem 1.2rem;border-radius:.65rem;min-height:46px;font-weight:700;line-height:1.3}.primary{background:var(--blue);color:white}.primary:hover{background:#1b30ab}.secondary{background:transparent;color:var(--ink);border:1px solid var(--line)}.danger{color:#982a22;background:#ffe8dd}.link{font-weight:650;text-decoration:underline;text-underline-offset:.25em;padding:.6rem 0}.small,.hint{font-size:.87rem}.how{border-top:1px solid var(--ink);padding:2rem 0 3.4rem}.how h2{font-size:2rem;margin:0 0 1.5rem}.how ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem;counter-reset:s}.how li{counter-increment:s;border-left:1px solid var(--line);padding-left:1.1rem}.how li:before{content:"0" counter(s);display:block;font:600 .85rem monospace;color:var(--blue);margin-bottom:.8rem}.how b{font-size:1.1rem}.how p{margin:.4rem 0 0}.workspace{max-width:740px;margin:2.7rem auto 4rem;min-height:55vh}.workspace:focus{outline:none}.workspace h2,dialog h2{font-size:clamp(2rem,4vw,3.3rem);margin:.7rem 0}.workspace h3{font-size:1.4rem}.stepbar,.panelhead{justify-content:space-between;gap:1rem}.stepbar{color:var(--blue);margin-bottom:1.3rem}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.field{display:grid;gap:.45rem;margin:1rem 0;font-weight:650}.field input,.field select{background:#fffef9;color:var(--ink);border:1px solid #888c80;border-radius:.5rem;padding:.8rem;width:100%;min-height:46px}.field select{font-size:1rem}.check{display:flex;align-items:flex-start;gap:.7rem;margin:1rem 0;line-height:1.45}.check input{width:20px;height:20px;flex-shrink:0;accent-color:var(--blue)}details{border-block:1px solid var(--line);padding:.9rem 0;margin-top:1.4rem}summary{font-weight:650}#refimg{display:block;width:auto;max-width:100%;max-height:62vh;border-radius:.4rem;margin:1rem auto}.statuscard{padding:clamp(1.1rem,4vw,2.2rem);background:#eeeee3;border:1px solid var(--line);border-radius:.7rem;margin:1rem 0}.statuscard .micro{color:var(--blue)}.statuscard p{line-height:1.55}.thread{display:flex;flex-direction:column;gap:.55rem;list-style:none;padding:0;max-height:40vh;overflow:auto}.thread li{max-width:85%;align-self:flex-start;border-radius:.8rem .8rem .8rem 0;background:#fffef9;padding:.6rem .9rem;overflow-wrap:anywhere;white-space:pre-wrap}.thread li.mine{align-self:flex-end;background:#dce1ff;border-radius:.8rem .8rem 0 .8rem}.thread small{display:block;color:var(--muted);font-size:.7rem}.compose{display:flex;align-items:end;gap:.6rem}.compose label{flex:1;margin:0}.compose button{margin:0}#notice{color:#8e3024;font-weight:600;min-height:1rem}#notice:empty{display:none}footer{border-top:1px solid var(--line);padding:1.4rem 0 2.4rem;justify-content:space-between;gap:1rem;font-size:.8rem}dialog{inset:0;max-width:min(530px,92vw);max-height:85dvh;background:var(--paper);color:var(--ink);border:1px solid var(--ink);border-radius:.8rem;padding:1.6rem}dialog::backdrop{background:#17181186}dialog p{line-height:1.55}dialog .primary{margin:.3rem .6rem .6rem 0}dialog h3{letter-spacing:-.03em}.skip{color:var(--blue)}[hidden]{display:none!important}
@media(max-width:720px){.hero{grid-template-columns:1fr;gap:2rem;padding:2.4rem 0 2rem}.bar{min-height:64px}.how ol{grid-template-columns:1fr;gap:1.2rem}.how{padding:1.5rem 0}.how li{display:grid;grid-template-columns:1.8rem 1fr;border:0;padding:0}.how li:before{grid-row:span 2}.how p{grid-column:2}.actions{margin-top:1.2rem}.workspace{margin:1.6rem auto 2.6rem}.form-row{gap:.7rem}.copy{line-height:1.45}nav{gap:.4rem}.brand{font-size:1rem}.plain{font-size:.87rem}footer{align-items:flex-start}.compose{flex-wrap:wrap}.compose label{min-width:min(200px,100%)}}
@media(max-width:360px){.shell{width:93%}.form-row{grid-template-columns:1fr;gap:0}.actions{align-items:stretch}.brand{gap:.3rem}.lang{padding:.35rem .5rem}.bar img{width:28px;height:28px}}

.locale-menu {position:relative;margin:0;padding:0;border:0}
.locale-menu summary {cursor:pointer;min-height:32px;align-content:center}
.locale-menu ul {position:absolute;z-index:2;inset-inline-end:0;top:100%;margin:0;padding:8px;list-style:none;background:#f8f6ed;border:1px solid currentColor;border-radius:8px;min-width:max-content;max-height:65vh;overflow:auto}
.locale-menu a {display:block;padding:5px 8px;color:inherit}
.locale-menu a[aria-current] {font-weight:700}
.questions dl {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:0}
.questions dt {font-weight:700}
.questions dd {margin:6px 0 0}

.hero {grid-template-columns:1.04fr 1fr;gap:6%;padding:clamp(2.4rem,5vw,5rem) 0}
.intro {min-width:0}
.intro h1,.guide h1 {font-size:clamp(2.9rem,5.6vw,5.6rem);font-weight:800;letter-spacing:-.046em;word-spacing:.025em;line-height:.98;text-wrap:balance}
.intro .lead {font-size:clamp(1.02rem,1.55vw,1.3rem);line-height:1.45;letter-spacing:-.02em;max-width:37ch;margin:1.25rem 0}
.edition {color:var(--ink);display:flex;align-items:center;gap:.55rem}
.edition:before {width:12px;height:12px;border-radius:50%;background:#ff653c;margin:0}
.primary,.print-action {background:var(--ink);color:#fff7e2;border-radius:100px;padding:.9rem 1.4rem;font-weight:750}
.primary:hover,.print-action:hover {background:#44319c}
.arrow:after {content:"↗";display:inline-block;margin-inline-start:.85rem;font-weight:600}
.jacket {margin:0;min-width:0;background:#ff653c;border:1.5px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}
.tapes {display:block;width:100%;height:auto}
.jacket figcaption {min-height:54px;border-top:1.5px solid var(--ink);padding:.55rem 1rem;background:#fff0b5;display:flex;gap:.5rem;align-items:center;justify-content:space-between;font-size:.95rem;font-weight:700}
.print-action {font:inherit;text-decoration:underline;text-underline-offset:.18em;min-height:40px;padding:.4rem .8rem}
.section-head {display:flex;align-items:baseline;gap:1rem;justify-content:space-between}
.section-head .link {color:var(--blue)}
.questions dl {gap:1.2rem 3rem}
.questions dd {line-height:1.5;color:var(--muted)}
.guide-link {display:inline-block;padding:.65rem 0;font-weight:700;color:var(--blue);text-underline-offset:.22em}
.guide {max-width:760px;padding:3rem 0}
.guide h1 {font-size:clamp(2.4rem,6vw,4.4rem);max-width:18ch}
.guide h2 {margin-top:2rem;font-size:1.65rem}
.guide p {line-height:1.6;max-width:66ch}
.guide .primary {display:inline-block;text-decoration:none}
.story-edit {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.1fr);align-items:start;gap:1.2rem}
.story-edit canvas {display:block;width:100%;height:auto;border:1px solid var(--ink)}
.story-fields .field:first-child {margin-top:0}
dialog .actions {gap:.6rem;margin-top:.7rem}
dialog .actions a {text-align:center;text-decoration:none}
dialog .actions .primary {margin:0}
#dialog:has(.story-edit) {width:min(600px,94vw);max-width:94vw}
.ocr-feedback {font-weight:600;color:var(--blue)}
input[type=file] {max-width:100%}
@media(max-width:720px) {
  .hero {grid-template-columns:1fr;gap:1.55rem;padding:2rem 0}
  .intro h1 {max-width:17ch;font-size:clamp(2.65rem,9.3vw,4rem)}
  .intro .lead {margin:.8rem 0;max-width:44ch}
  .intro .edition {margin-bottom:1rem}
  .intro .actions {margin:.9rem 0 .45rem}
  .intro .small {margin:0}
  .tapes {aspect-ratio:1.95;object-fit:cover;object-position:center 53%}
  .jacket figcaption {font-size:.87rem}
  .section-head {flex-wrap:wrap;gap:0 .8rem;margin-bottom:1rem}
  .section-head h2 {margin:0}
}
@media(max-width:420px) {
  .story-edit {grid-template-columns:minmax(70px,.64fr) minmax(0,1.1fr);gap:.65rem}
  .jacket figcaption {padding:.4rem .6rem}
}
