*{box-sizing:border-box}body{margin:0;background:#f6f5f9;color:#302f3a;font:14px 'Segoe UI',Arial,sans-serif;height:100dvh;display:flex;flex-direction:column}header,nav,footer,#tabs{display:flex;align-items:center;gap:7px;padding:9px 14px;background:white;border-bottom:1px solid #e6e5ed;flex-wrap:wrap}header img{width:34px;height:34px}header strong{font-size:20px}button{font:inherit;cursor:pointer;padding:8px 12px;background:white;border:1px solid #ddd9e1;border-radius:7px;color:inherit}button:hover,button.active{background:#ffe6df;color:#a33225}button:disabled{opacity:.45;cursor:default}.primary{background:#bd4131;color:white;border-color:#bd4131;font-weight:600}.grow{flex:1}a{color:#8d392e}#tabs{min-height:42px;flex-wrap:nowrap;overflow:auto}.tab{display:flex;white-space:nowrap;align-items:center;border:1px solid #ddd9e1;border-radius:7px}.tab button{border:0}.tab.current{background:#ffe6df}.tab.current button{background:transparent}#status{margin:0;padding:6px 14px;color:#755044;min-height:28px}#desk{flex:1;min-height:0;overflow:auto;padding:20px}#home{max-width:650px;margin:8vh auto;text-align:center;background:white;padding:40px 20px;border:2px dashed #e0b8ad;border-radius:14px}h1{font-size:clamp(23px,4vw,34px)}.muted,footer{color:#716c7c}#sheet{position:relative;margin:auto;max-width:none;box-shadow:0 2px 12px #0002;background:white;width:max-content;touch-action:none}canvas{display:block;width:100%;height:auto}#selection{position:absolute;border:2px dashed #bd4131;background:#ed886733;cursor:move;touch-action:none}footer{font-size:12px;border-top:1px solid #e6e5ed} [hidden]{display:none!important}@media(max-width:600px){header,nav{padding:7px;gap:5px}button{padding:8px}#desk{padding:8px}header strong{font-size:17px}}

.brand{display:flex;align-items:center;gap:8px;border:0;padding:0;background:transparent}.brand:hover{background:transparent}dialog{width:min(540px,94vw);max-height:85dvh;overflow:auto;border:1px solid #ddd9e1;border-radius:12px;padding:20px;color:inherit;background:white}dialog::backdrop{background:#2228}dialog h2{margin:0 0 16px}dialog label{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap}dialog select,dialog input:not([type=checkbox]){font:inherit;padding:8px;border:1px solid #aaa;border-radius:6px;min-width:0;max-width:100%;background:inherit;color:inherit}dialog fieldset{border:1px solid #ddd9e1;border-radius:8px;margin:12px 0}#pageTicks{max-height:32vh;overflow:auto}.pageRow{display:flex;align-items:center;gap:12px;padding:3px 0}.pageRow label{min-width:95px}.pageName{flex:1;width:100%}.dialogActions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}#homeDocs button{margin:4px}html[data-theme=dark] body{background:#20212a;color:#eee}html[data-theme=dark] header,html[data-theme=dark] nav,html[data-theme=dark] footer,html[data-theme=dark] #tabs,html[data-theme=dark] #home,html[data-theme=dark] dialog,html[data-theme=dark] button:not(.primary){background:#30313c;color:#eee;border-color:#515361}html[data-theme=dark] a,html[data-theme=dark] #status,html[data-theme=dark] .muted{color:#f2b6a5}html[data-theme=dark] .tab.current button{background:#69463f}html[data-theme=dark] select option{background:#30313c;color:#eee}
