*{box-sizing:border-box}body{margin:0;background:#101419;color:#edf2f7;font:16px system-ui,sans-serif}header{position:sticky;top:0;background:#18212a;padding:16px;display:flex;justify-content:space-between;z-index:2}main{max-width:720px;margin:auto;padding:16px}section,article{background:#1c2630;border:1px solid #354453;border-radius:12px;padding:16px;margin:12px 0}h1,h2,h3{margin:8px 0 14px}button,input,textarea,select{font:inherit;color:inherit;border:1px solid #526273;border-radius:8px;padding:12px;background:#243341;max-width:100%}input,textarea,select{display:block;width:100%;margin:6px 0 12px}button{cursor:pointer;min-height:48px;margin:4px 4px 4px 0}button.primary{background:#26734c;border-color:#55b782;font-weight:700;width:100%;font-size:19px}button:disabled{opacity:.5}label{display:block}label input[type=checkbox]{display:inline;width:auto;margin-right:8px}p{line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}progress{width:100%;height:20px;accent-color:#61d495}img{max-width:100%;max-height:360px;object-fit:contain;border-radius:8px}small,.muted{color:#b7c6d4}#notice{position:fixed;bottom:0;left:0;right:0;background:#422e19;padding:12px;z-index:4;display:none}#reader{overflow:hidden}canvas{max-width:100%}.pending{color:#ffd28b}.done{color:#91e2ad}@media print{body{background:white;color:black}header,button,#notice{display:none!important}article,section{background:white;border:0;break-inside:avoid}}
.checkpoint-row{display:block;width:100%;text-align:left;margin:6px 0;padding:12px 16px}.checkpoint-row::after{content:'›';float:right;color:#b7c6d4}details{background:#1c2630;border:1px solid #354453;border-radius:8px;margin:12px 0;padding:12px}summary{cursor:pointer;font-weight:600;padding:8px 0}details label{padding:6px 0}input[hidden]{display:none!important}

.dependency-picker{position:relative;padding:0;margin:12px 0;background:#243341;border-color:#526273}.dependency-picker summary{display:flex;align-items:center;gap:8px;padding:12px;min-height:48px;font-weight:500;list-style:none}.dependency-picker summary::-webkit-details-marker{display:none}.dependency-picker summary::after{content:'▾';margin-left:4px}.dependency-picker[open] summary::after{content:'▴'}.dependency-count{margin-left:auto;font-size:14px;color:#b7c6d4;white-space:nowrap}.dependency-panel{padding:0 10px 8px;border-top:1px solid #526273}.dependency-panel input[type=search]{margin:8px 0;padding:8px}.dependency-options{max-height:min(240px,35vh);overflow:auto;overscroll-behavior:contain;overflow-anchor:none}.dependency-options label{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 8px;border-bottom:1px solid #354453;overflow-wrap:anywhere}.dependency-options label[hidden],.dependency-empty[hidden]{display:none!important}.dependency-options label.chosen{background:#1d4534}.dependency-options input[type=checkbox]{flex:none;width:20px;height:20px;margin:0;accent-color:#61d495}.dependency-done{min-height:40px;width:100%;margin:8px 0 0}.dependency-empty{margin:8px;color:#b7c6d4}
