
canvas#view{cursor:crosshair;touch-action:none}
canvas#view.orbit{cursor:grab}canvas#view.orbit:active{cursor:grabbing}
#sheetWrap{position:absolute;inset:0;background:var(--pos-desk);overflow:hidden;touch-action:none;cursor:crosshair}
#sheet{position:absolute;left:0;top:0;transform-origin:0 0;background:var(--pos-paper)}
@media(min-width:541px){.controls{max-width:calc(50% - 60px)}}

.pick{display:block;border-width:2px;--bw:2px}
.pick select{padding:8px 34px 8px 14px;font-size:15px;line-height:11px}
.pick-arrow{right:11px;width:16px;height:16px}

.panel-col{display:flex;flex-direction:column;gap:20px;min-width:0;flex:1}
.panel-col>.sec:first-child{padding-top:0}
.panel-col>.sec:first-child::before{display:none}
.icons{display:flex;flex-wrap:wrap;gap:10px}
.icons.small{gap:8px}
.icons[aria-label=Tool]{flex-wrap:nowrap;gap:6px}.icons[aria-label=Tool] .blob-button{flex:none;width:36px;height:36px}
.icons.small .blob-button{width:34px;height:34px}
.paint-row{display:flex;align-items:center;gap:18px}
.sliders{display:flex;flex-direction:row;gap:16px;flex:1;min-width:0}
.sliders label.f{flex:1;min-width:0;gap:2px;font-size:11px}
.sliders input[type=range]{height:18px}
.sliders input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-6px}
.sliders input[type=range]::-moz-range-thumb{width:18px;height:18px}
.opts{display:flex;flex-direction:column;gap:8px}
.files{display:flex;flex-wrap:wrap;gap:8px}
a.download-sheet{align-self:flex-start}
label.f{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--pos-muted)}
label.f span b{color:var(--pos-text);font-weight:normal;float:right}
label.c{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--pos-text-soft)}
input[type=range]{width:100%;margin:0}

.pick.ball{flex:none;width:40px;height:40px;align-self:center;border-width:3px;--bw:3px}
.pick.ball input[type=color]{height:100%;padding:3px}

.paper-box{right:var(--pos-gutter);bottom:calc(var(--pos-bottom) + 146px);width:min(340px,calc(100vw - 36px));display:flex;flex-direction:column;gap:8px;z-index:3}
.panel.framed.paper-box{padding:16px 20px}
.paper-title{font:normal 24px/1 Piece,sans-serif;color:var(--pos-title)}
.paper-steps{margin:0;padding-left:18px;font-size:12.5px;line-height:1.35;color:var(--pos-text-soft);display:flex;flex-direction:column;gap:2px}
.paper-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}

.cta{position:absolute;right:var(--pos-gutter);bottom:calc(var(--pos-bottom) + 58px);z-index:3;display:inline-flex;align-items:center;justify-content:center;height:54px;padding:0 42px;font-size:38px;line-height:16px;border-width:3px;--bw:3px}
.sec{position:relative;padding-top:16px;display:flex;flex-direction:column;gap:8px}
.sec::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:var(--line-1) 0 0/100% 100% no-repeat}
.sec:nth-of-type(2n)::before{background-image:var(--line-2)}
.sec:nth-of-type(3n)::before{background-image:var(--line-3)}
.sec>.head{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;align-items:center;font-size:12px;color:var(--pos-muted);text-transform:uppercase;letter-spacing:.04em}
#layerList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
#layerList li{display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid var(--pos-edge);border-radius:10px;cursor:pointer;font-size:13px;user-select:none}
#layerList li.active{background:var(--pos-ink);color:var(--pos-lime);border-color:var(--pos-ink)}
#layerList li.off span{opacity:.45;text-decoration:line-through}
#layerList input{margin:0}
#layerList span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#layerList small{opacity:.6;font-size:11px;color:inherit}
footer small{max-width:60%;text-align:right}
#ring{position:fixed;border:1.5px solid var(--pos-text);border-radius:50%;box-shadow:0 0 0 1px var(--pos-paper);pointer-events:none;transform:translate(-50%,-50%);display:none}

#tools,#mode{display:none}
#topbar,#sheetTabs,#shapesBtn,#menuBtn{display:none}
#beak{position:absolute;z-index:6;width:24px;height:16px;pointer-events:none}
#beak svg{display:block}
.panel-col{display:contents}
#panel .sec{display:none;padding-top:0}
#panel .sec::before,#panel .sec>.head{display:none}
#panel[data-tab="layers"] .sec[data-sec="layers"],#panel[data-tab="files"] .sec[data-sec="files"],#panel[data-tab="paper"] .sec[data-sec="paper"]{display:flex}
#panel{position:absolute;z-index:5;width:min(340px,calc(100vw - 36px));max-height:min(60dvh,460px);display:flex;flex-direction:column;gap:12px;overflow:auto}
.panel.framed{padding:18px 22px}
#options .sliders{min-width:260px}
#options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;z-index:4}
#options .opts{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 16px}
#optBucket label.f{min-width:140px}
#shapeTray{display:contents}

body:not(.compact) #rail{position:absolute;z-index:4;left:var(--pos-gutter);top:calc(var(--row3,150px) + 16px);display:grid;grid-template-columns:repeat(2,40px);gap:6px;padding:10px;width:max-content}
body:not(.compact) #rail .blob-button,body:not(.compact) #rail .pick.ball{width:40px;height:40px}
body:not(.compact) #rail #history,body:not(.compact) #rail #panel-tabs,body:not(.compact) #rail #shapesWrap{display:contents}
body:not(.compact) #rail #history::after{content:"";grid-column:1/-1;height:2px;background:var(--line-1) 0 0/100% 100% no-repeat}
body:not(.compact) #rail .pick.ball{justify-self:center}
body:not(.compact) #options{position:absolute;left:calc(var(--pos-gutter) + 128px);top:calc(var(--row3,150px) + 16px);padding:10px 18px;max-width:calc(100vw - var(--pos-gutter) * 2 - 260px)}
body:not(.compact) .paper-box{left:var(--pos-gutter);right:auto;top:auto;bottom:calc(var(--pos-bottom) + 40px)}

body.compact header{display:none}
body.compact #topbar{display:flex;position:absolute;z-index:6;left:10px;right:10px;top:10px;height:40px;align-items:center;gap:7px}
body.compact #topbar #logo{position:static;transform:none;flex:none;width:34px;height:36px}
body.compact #topbar .grow{flex:1}
body.compact #topbar .grow-left{display:none}
body.compact #pageBtn{height:32px;padding:0 12px;font-size:14px}
body.compact #pageDrop{position:absolute;top:44px;left:0;z-index:7;padding:10px}
body.compact #pageDrop nav{margin:0;flex-direction:column;gap:6px}
body.compact #topbar #history{position:static;transform:none;display:flex;flex-direction:row;gap:5px;width:auto;height:auto}
body.compact #topbar .blob-button{width:34px;height:34px}
body.compact #topbar .blob-button.on{color:var(--pos-ink)}
body.compact #topbar #pdf{position:static;height:34px;padding:0 14px;font-size:21px;line-height:1;margin:0;flex:none}
body.compact #viewCube{left:auto;right:12px;top:58px;bottom:auto;width:62px;height:62px}

body.compact #panel-tabs{position:static;display:contents}
body.compact #panel-tabs [data-tab]{display:none}
body.compact #rail{position:absolute;z-index:6;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));height:58px;padding:0 10px;display:flex;align-items:center;justify-content:space-around;gap:4px}
body.compact #rail .blob-button,body.compact #rail .pick.ball{width:40px;height:40px;flex:none}
body.compact #rail [data-tool="pick"],body.compact #rail [data-tool="orbit"]{display:none}
body.compact #shapesBtn,body.compact #menuBtn{display:grid}
body.compact #shapesWrap{position:relative;display:flex}
body.compact #shapeTray{display:none}
body.compact #shapesWrap.open #shapeTray{display:flex;position:absolute;bottom:60px;left:50%;transform:translateX(-50%);gap:8px;padding:8px 10px}
body.compact #options{position:absolute;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom));padding:6px 16px;gap:6px 14px}
body.compact #options .sliders{min-width:0;flex:1 1 220px}
body.compact #panel{position:fixed;z-index:8;background:var(--pos-paper);border-top:2.5px solid var(--pos-ink);left:0;right:0;bottom:0;top:auto;width:auto;max-height:68dvh;padding:14px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}
body.compact #sheetTabs{display:flex;gap:8px}
body.compact .sec[data-sec="paper"]{gap:14px}
body.compact #paper{position:static;width:auto;max-width:none}
body.compact .paper-more{display:flex;gap:8px}
body.compact #langMini{width:36px;height:36px}
body.compact #langMini span{font:normal 17px/1 Piece,sans-serif}
body.compact #footerSlot footer{position:static;display:flex;flex-wrap:wrap;gap:6px 12px;pointer-events:auto}
body.compact #footerSlot footer small{display:none}
body.compact .cta{animation-name:none}

#viewCube{position:absolute;z-index:1;right:var(--pos-gutter);top:calc(var(--pos-top) + 64px);width:96px;height:96px;touch-action:none}

#paperHelp{border:0;padding:0;background:transparent;max-width:calc(100vw - 32px);overflow:visible}
#paperHelp::backdrop{background:color-mix(in srgb,var(--pos-paper) 72%,transparent)}
.help-steps{margin:14px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:9px;font:400 14px/1.45 "Google Sans Flex",Arial,sans-serif;color:var(--pos-text)}
.help-steps b{font-weight:600;color:var(--pos-ink)}

.paper-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.paper-help{flex:none;width:32px;height:32px}
.paper-help span{font:normal 20px/1 Piece,sans-serif}
.paper-actions{flex-wrap:nowrap;align-items:center}
.paper-arrow{flex:none;width:26px;height:16px;fill:none;stroke:var(--pos-ink);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:540px){.paper-head{gap:6px}.paper-help{width:26px;height:26px}.paper-help span{font-size:16px}.paper-arrow{width:18px;height:12px}}
.paper-actions .small{white-space:nowrap}
@media(max-width:540px){.paper-actions{gap:4px}.paper-actions .small{font-size:13px;padding-left:8px;padding-right:8px}.paper-actions .small.primary{font-size:16px}.paper-title{font-size:13px}}
@media(min-width:541px){.paper-box{width:fit-content;min-width:0;max-width:min(340px,calc(100vw - 36px))}.paper-head{gap:18px}}

body:not(.compact) #panel{left:calc(var(--pos-gutter) + 128px)!important;right:auto;bottom:auto}

#layersBox{display:none}
body:not(.compact) #layersBox:not([hidden]){display:flex;flex-direction:column;gap:10px;position:absolute;z-index:4;right:var(--pos-gutter);top:calc(var(--row3,150px) + 16px);width:min(320px,26vw);max-height:calc(100dvh - var(--pos-top) - 330px);overflow:auto}
#layersBox .sec{display:flex;padding-top:0}
#layersBox .sec::before,#layersBox .sec>.head{display:none}
body:not(.compact) #viewCube{left:calc(var(--pos-gutter) + 6px);right:auto;top:calc(var(--pos-top) + 531px);bottom:auto;width:96px;height:96px}
@media(min-width:901px) and (max-height:899px){body:not(.compact) #viewCube{left:calc(var(--pos-gutter) + 128px);top:calc(var(--pos-top) + 405px)}}

body.compact #topbar{justify-content:space-between;top:12px;height:44px}
body.compact #topbar #logo{position:absolute;left:50%;top:0;transform:translateX(-50%);width:38px;height:42px}
body.compact #topbar .grow{flex:1}
body.compact #topbar #langMini,body.compact #topbar #musicMini{width:36px;height:36px}
body.compact #rule{display:block!important;top:64px}
body.compact #history{position:absolute;z-index:4;top:82px;right:84px;left:auto;transform:none;display:flex;flex-direction:row;gap:5px;width:auto;height:auto}
body.compact #history .blob-button{width:34px;height:34px}
body.compact #options{top:76px;bottom:auto;right:166px}
body.compact #viewCube{top:76px;right:12px;width:62px;height:62px}
body.compact #modeDock{position:static;width:38px;height:38px}
body.compact #rail{bottom:calc(30px + env(safe-area-inset-bottom))}
body.compact #pdf{position:absolute;left:10px;right:auto;bottom:calc(100px + env(safe-area-inset-bottom));height:46px;width:calc(58% - 16px);padding:0 10px;font-size:25px;margin:0}
body.compact #paper{position:absolute;right:10px;left:auto;bottom:calc(100px + env(safe-area-inset-bottom));top:auto;width:auto;max-width:none;padding:8px 10px 8px 14px}
body.compact #paper .paper-actions{display:none}
body.compact .paper-head{width:100%}
body.compact #paperHelp .paper-actions{display:flex;justify-content:center;gap:8px;margin-top:16px}
body.compact #sheetTabs [data-tab="paper"]{display:none}
body.compact footer{display:flex;bottom:calc(3px + env(safe-area-inset-bottom))}
body:not(.compact) #panel-tabs [data-tab="layers"]{display:none}
body.compact #paper .paper-title{font-size:19px}body.compact #paper .paper-head{gap:10px}body.compact #paper .paper-help{width:30px;height:30px}

#options label.f{gap:2px;font-size:11px;min-width:0}
#options input[type=range]{height:18px}
#options input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-6px}
#options input[type=range]::-moz-range-thumb{width:18px;height:18px}
#options .sliders{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#optBucket:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;align-items:end;flex:1 1 100%}
#optBucket label.c{grid-column:1/-1}
body:not(.compact) #options{flex-direction:column;align-items:stretch;gap:8px;width:330px}
body:not(.compact) #options .sliders,body:not(.compact) #optBucket{width:100%}
body.compact #history{top:80px}body.compact #options{top:76px}body.compact #viewCube{top:73px}

body.compact{--g:18px}
body.compact #topbar{left:var(--g);right:var(--g);top:12px;height:44px}
body.compact #rule{left:var(--g)!important;right:var(--g)!important;top:63px}
body.compact #options{left:var(--g);right:calc(var(--g) + 62px + 10px + 73px + 10px);top:82px;min-height:44px;box-sizing:border-box;padding:4px 14px;align-content:center}
body.compact #options .sliders{gap:12px}
body.compact #history{top:87px;right:calc(var(--g) + 62px + 10px)}
body.compact #viewCube{top:73px;right:var(--g);width:62px;height:62px}
body.compact #pdf{left:var(--g)}
body.compact #paper{right:var(--g)}
body.compact #rail{left:var(--g);right:var(--g)}
body.compact footer{left:calc(var(--g) + 4px);right:var(--g)}
body.compact #musicMini,body.compact #langMini{display:none}
body.compact #topbar{gap:6px}
body.compact #topbar #language{width:34px;height:34px;font-size:24px;flex:none}
body.compact #topbar #music{height:34px;padding:0 9px;font-size:15px;line-height:1;flex:none}

body.compact footer{bottom:calc(var(--g) - 6px + env(safe-area-inset-bottom))!important}
body.compact #rail{bottom:calc(var(--g) + 26px + env(safe-area-inset-bottom))!important}
body.compact #pdf,body.compact #paper{bottom:calc(var(--g) + 94px + env(safe-area-inset-bottom))!important}
body.compact #pdf{width:auto;right:calc(var(--g) + var(--paperW,140px) + 10px)}

body:not(.compact) #options{padding:14px 24px;width:360px;gap:12px}
#options .sliders{gap:24px}
body.compact #options{padding:8px 18px;min-height:52px}
body.compact #options .sliders{gap:16px}
body.compact #options{top:78px}body.compact #history{top:87px}body.compact #viewCube{top:73px}

body:not(.compact) #options{gap:16px}
#optBucket:not([hidden]){gap:14px 24px}
#optBucket label.c{margin-top:2px}

body.compact #options .sliders,body.compact #optBucket:not([hidden]){display:flex;flex-direction:column;gap:6px;flex:1 1 100%}
body.compact #options label.f{display:grid;grid-template-columns:52px 1fr 40px;align-items:center;gap:8px;font-size:11px}
body.compact #options label.f>span{display:contents}
body.compact #options label.f>span>span{order:1}
body.compact #options label.f input{order:2}
body.compact #options label.f b{order:3;float:none;text-align:right;white-space:nowrap}
body.compact #options{padding:8px 16px;top:73px;min-height:62px}

body.compact #options{right:auto;width:min(300px,calc(100vw - var(--g) * 2 - 165px))}
body.compact #pdf{right:auto!important;width:auto;max-width:calc(100vw - var(--g) * 2 - var(--paperW,140px) - 10px);padding:0 22px}
body.compact #rail{left:50%!important;right:auto!important;transform:translateX(-50%);width:min(400px,calc(100vw - var(--g) * 2));box-sizing:border-box}
body.compact #pageDrop{top:46px;left:0;padding:12px 14px}body.compact #pageDrop nav{gap:8px}
body.compact footer{justify-content:center;text-align:center}body.compact footer>span{justify-content:center}
body.compact #pdf{white-space:nowrap}
@media(max-width:540px){body.compact #pdf{font-size:19px;padding:0 14px}}
body.compact .paper-head{flex-wrap:nowrap}body.compact #paper .paper-title{white-space:nowrap}
@media(max-width:540px){body.compact #paper .paper-title{font-size:16px}body.compact #paper{padding:8px 10px 8px 12px}}

body.compact #rule{display:block!important;position:fixed;left:var(--g)!important;right:var(--g)!important;top:63px;height:6px;background:var(--line-1) 0 0/100% 100% no-repeat;z-index:3;pointer-events:none}

body.compact #pdf{height:42px;font-size:19px!important;padding:0 16px!important;line-height:1}

body.compact #rule{top:73px!important}
body.compact #options{top:94px!important}
body.compact #viewCube{top:94px!important}
body.compact #history{top:105px!important}

body:not(.compact) #options{left:var(--pos-gutter);top:calc(var(--row3,150px) + 16px)}
body:not(.compact) #rail{top:calc(var(--row3,150px) + 16px + var(--optH,62px) + 16px)}
body:not(.compact) #viewCube{left:calc(var(--pos-gutter) + 6px);top:calc(var(--row3,150px) + 16px + var(--optH,62px) + 16px + 336px + 24px)}
@media(min-width:901px) and (max-height:899px){
  body:not(.compact) #viewCube{left:calc(var(--pos-gutter) + 128px);top:calc(var(--row3,150px) + 16px + var(--optH,62px) + 16px + 336px - 96px)}
}
body.compact #pdf{height:44px;font-size:21px!important;padding:0 13px!important}

body.compact #rail{bottom:calc(var(--g) + 40px + env(safe-area-inset-bottom))!important}
body.compact #pdf,body.compact #paper{bottom:calc(var(--g) + 112px + env(safe-area-inset-bottom))!important}
#optBucket{display:none!important}

body:not(.compact) #layersBox:not([hidden]){top:calc(var(--row3,150px) + 16px);width:320px;max-height:none}

body:not(.compact) #paper{left:auto!important;right:var(--pos-gutter);top:calc(var(--row3,150px) + 16px + var(--layersH,192px) + 16px);bottom:auto;width:320px;max-width:none;box-sizing:border-box}
body:not(.compact) #paper .paper-head{justify-content:space-between}

body:not(.compact) #options{width:200px;padding:12px 18px}
body:not(.compact) #options .sliders{display:flex;flex-direction:column;gap:6px}
body:not(.compact) #options label.f{display:grid;grid-template-columns:52px 1fr 40px;align-items:center;gap:8px}
body:not(.compact) #options label.f>span{display:contents}
body:not(.compact) #options label.f>span>span{order:1}
body:not(.compact) #options label.f input{order:2}
body:not(.compact) #options label.f b{order:3;float:none;text-align:right;white-space:nowrap}
#options label.f input[type=range]{min-width:0;width:100%}
body:not(.compact) #options .sliders{min-width:0;width:100%}

body:not(.compact) #viewCube{left:calc(var(--pos-gutter) + 5px)!important;top:calc(var(--row3,150px) + 16px + var(--optH,66px) + 16px + 344px + 16px)!important;width:96px;height:96px}
@media(min-width:901px) and (max-height:899px){body:not(.compact) #viewCube{width:64px!important;height:64px!important;left:calc(var(--pos-gutter) + 21px)!important}}
body:not(.compact) #options{width:var(--navW,255px);box-sizing:border-box}

body.compact #panel{left:var(--g,18px);right:var(--g,18px);bottom:calc(var(--g,18px) + env(safe-area-inset-bottom));border:0;border-radius:0;background:var(--frame) 0 0/100% 100% no-repeat;padding:18px 22px;box-sizing:border-box;max-height:calc(100dvh - 120px)}
body.compact #modeDock{position:relative;flex:none}

body.compact #history #modeDock{position:relative;width:34px;height:34px}
body.compact #options{width:calc(100vw - var(--g) * 2 - 62px - 10px - 124px - 10px)}
body.compact #options label.f{grid-template-columns:auto 1fr auto;gap:6px}
body.compact #topbar #logo{top:-4px;width:47px;height:51px}
body.compact #history{gap:10px}body.compact #history>*{margin:0}
body.compact #options{width:calc(100vw - var(--g) * 2 - 62px - 12px - 122px - 12px)}
body.compact #history #modeDock{width:40px;height:40px}
body.compact #options{width:calc(100vw - var(--g) * 2 - 62px - 12px - 140px - 12px)}
body.compact #options{padding-left:13px;padding-right:13px}
body.compact:has(#panel:not([hidden])) :is(#rail,#pdf,#paper,main>footer,body>footer){visibility:hidden}
body.compact #history>#modeDock,body.compact #history>#undo,body.compact #history>#redo{width:40px;height:40px}
body.compact #sheetTabs{align-items:center}
body.compact #sheetClose{margin-left:auto;width:36px;height:36px;display:grid;place-items:center}

body.compact #rail #history{display:contents}
body.compact #rail #history::after{content:"";display:block;flex:none;width:2px;height:32px;border-radius:2px;background:var(--pos-edge)}
body.compact #rail{padding:0 8px;gap:2px}
body.compact #rail #history>#undo,body.compact #rail #history>#redo{width:40px;height:40px}
@media(max-width:400px){body.compact #rail .blob-button,body.compact #rail .pick.ball,body.compact #rail #history>#undo,body.compact #rail #history>#redo{width:36px;height:36px}}
body.compact #modeDock{position:absolute;z-index:4;top:105px;right:calc(var(--g) + 62px + 12px);width:40px;height:40px}
body.compact #options{width:calc(100vw - var(--g) * 2 - 62px - 12px - 40px - 12px);max-width:340px}
body.space-turn canvas#view,body.space-turn #sheetWrap{cursor:grab}body.space-turn canvas#view:active,body.space-turn #sheetWrap:active{cursor:grabbing}body.space-turn #ring{display:none!important}

.paper-actions #sheetPdf{font:normal 21px/10px Piece,sans-serif;padding-top:2px}
@media(max-width:540px){.paper-actions #sheetPdf{font-size:16px}}

.keys-list{display:grid;grid-template-columns:max-content 1fr;gap:7px 18px;margin:6px 0 0;font-size:14px;line-height:1.3}
.keys-list dt{font-weight:600;white-space:nowrap;color:var(--pos-ink)}
.keys-list dd{margin:0}
#keysHelp .credits-box{max-width:560px}
.keys-open{color:inherit}
body.compact #options label.hard{display:none}
#keysHelp{border:0;padding:0;background:transparent;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:visible}#keysHelp::backdrop{background:color-mix(in srgb,var(--pos-paper) 72%,transparent)}#keysHelp .credits-box{max-height:calc(100dvh - 40px);overflow:auto}
footer small .keys-open{pointer-events:auto;cursor:pointer}

#errorBox{border:0;padding:0;background:transparent;max-width:calc(100vw - 32px);overflow:visible}
#errorBox::backdrop{background:color-mix(in srgb,var(--pos-paper) 72%,transparent)}
.error-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.error-head .panel-title{margin:0;padding:0;font-size:32px}
.alert-badge{width:46px;height:46px;color:#fff;font-size:30px;pointer-events:none}
.alert-badge>svg path{fill:var(--pos-alert)!important;stroke:var(--pos-alert)!important}
.error-text{margin:0;font-size:15px;line-height:1.45;color:var(--pos-text)}
.error-actions{display:flex;justify-content:flex-end;margin-top:20px}

#status[hidden]{display:none!important}
#status.panel.framed{display:flex;align-items:center;gap:12px;padding:12px 18px;font-size:13px;line-height:1.35;pointer-events:none;border-radius:0;background:var(--frame) 0 0/100% 100% no-repeat}
#status .alert-badge{display:none;width:28px;height:28px;font-size:19px}
#status.warn .alert-badge{display:inline-grid}
body:not(.compact) #status{left:auto;right:var(--pos-gutter);top:calc(var(--row3,150px) + 16px + var(--layersH,192px) + 16px + var(--paperH,100px) + 16px);width:320px;max-width:none;box-sizing:border-box}
body.compact #status{left:var(--g,18px);right:var(--g,18px);top:166px;width:auto;max-width:none;box-sizing:border-box}

body.compact #symBtn{position:absolute;z-index:4;top:105px;right:calc(var(--g) + 62px + 12px + 40px + 10px);width:40px;height:40px}
body.compact #options{width:calc(100vw - var(--g) * 2 - 62px - 12px - 40px - 10px - 40px - 12px)}

#sheetSym{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;overflow:visible}
#sheetSym path{fill:none;stroke:var(--pos-alert);stroke-width:calc(2px * var(--k,1));stroke-dasharray:calc(7px * var(--k,1)) calc(5px * var(--k,1));stroke-linecap:round}

.project-actions{position:relative;display:flex;flex-wrap:wrap;gap:8px;padding-top:14px;margin-top:2px}
.project-actions::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:var(--line-2) 0 0/100% 100% no-repeat}
.project-actions #openProject{font:normal 21px/10px Piece,sans-serif;padding-top:2px}
body.compact #status{top:calc(max(94px + var(--optH,62px), 156px) + 12px)}
body.compact #options{padding:12px 20px!important}body.compact #options .opts{gap:8px 14px}

#status.ok .alert-badge{display:inline-grid;color:var(--pos-ink)}
#status.ok .alert-badge>svg path{fill:var(--pos-lime)!important;stroke:var(--pos-ink)!important}

.pick.ball{position:relative;overflow:visible}
#color2Btn{position:absolute;right:-6px;bottom:-6px;width:18px;height:18px;z-index:2;padding:0}
#color2Btn>svg path{fill:var(--c2,#fff)!important;stroke:var(--pos-ink)!important;stroke-width:5!important}
#color2Btn:hover:not(:disabled)>svg path{fill:var(--c2,#fff)!important}

#symBtn.on{color:var(--pos-lime)}
#symBtn.on>svg path{fill:var(--pos-ink)!important}
#symBtn.on::after{content:"";position:absolute;top:-3px;right:-3px;width:12px;height:12px;border-radius:50%;background:var(--pos-lime);border:2px solid var(--pos-ink);box-sizing:border-box}
#rail #color2Btn,#rail #history~#color2Btn,.pick.ball #color2Btn{width:18px!important;height:18px!important;flex:none}
