@font-face{font-family:Lif;src:url('assets/lif-latina.ttf?v=0762') format('truetype');font-display:swap}
@font-face{font-family:HighJinkies;src:url('/assets/fonts/High_Jinkies.woff2') format('woff2');font-display:swap}
:root{--ink:#2a2633;--soft:#6b6570;--page:#f6f1e3;--paper:#fffbf0;--yellow:#f7d44c;--pink:#f6a5c9;--blue:#8ccaf2;--green:#b8dca8;--lilac:#b9a3e8;--line:#c9c2b5;color:var(--ink);font:14px/1.4 ui-rounded,system-ui,-apple-system,sans-serif;font-synthesis:none;-webkit-text-size-adjust:100%}
*{box-sizing:border-box}html,body{margin:0;height:100%;overscroll-behavior:none}body{height:100dvh;display:flex;flex-direction:column;background:var(--page);overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}a{color:inherit;text-underline-offset:3px}button:disabled{cursor:default;opacity:.4}:focus-visible{outline:3px dashed #67579e;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}i[data-icon]{display:contents}.icon{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;pointer-events:none}.button,.small-button,.quiet-button,.danger-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 14px;border:1.5px solid var(--ink);border-radius:12px 8px 13px 7px;background:var(--paper);text-decoration:none;line-height:1.25}.button{font:19px/1.2 Lif,cursive;background:var(--yellow);box-shadow:2px 3px 0 var(--ink)}.small-button{font-size:12px}.quiet-button{border-color:transparent;background:transparent}.icon-button{padding:8px;min-width:42px;background:transparent;border-color:transparent}.danger-button{color:#8e332d;border-color:#d9b7a9;background:#fff2e7;font-size:12px}.danger{color:#8e332d}.full-width{width:100%}.button:active,.small-button:active{translate:1px 2px;box-shadow:none}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:17px 0}.field input,.field textarea,.field select,select{padding:10px;border:1.4px solid var(--ink);border-radius:9px 6px 10px 7px;background:#fffef9;min-height:42px;min-width:0}.field textarea{resize:vertical;min-height:100px;font-size:16px;line-height:1.5}.field input{font-size:16px}.check-field{display:flex;align-items:center;gap:8px;font-size:12px;margin:17px 0}input[type=checkbox]{accent-color:var(--ink);width:17px;height:17px;flex-shrink:0}.range-field{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;font-size:12px;margin:21px 0}.range-field input{grid-column:1/-1;width:100%;accent-color:var(--ink);height:20px}.range-field output{font-size:11px;color:var(--soft)}.color-field{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:18px 0}.color-field input{width:44px;height:36px;border:0;background:none;padding:0}.small-note{font-size:11px;line-height:1.7;color:var(--soft);margin:14px 0}.error-message{color:#9b332d;font-size:13px;line-height:1.6}
.app-header{display:flex;align-items:center;gap:24px;padding:14px 23px 13px;border-bottom:1.5px solid var(--ink);background:var(--paper);flex-shrink:0;z-index:4}.brand{font:26px/1 HighJinkies,sans-serif;text-decoration:none;transform:rotate(-3deg)}.document-heading{display:flex;flex-direction:column;min-width:0;flex:1}.document-heading>input{border:0;border-bottom:1px solid transparent;padding:3px 0;background:transparent;min-width:0;width:100%;max-width:420px;font:21px/1.2 Lif,cursive;text-overflow:ellipsis}.document-heading>input:hover{border-bottom-color:var(--line)}#save-status{font-size:10px;line-height:1.8;color:var(--soft)}#save-status[data-state=error]{color:#9b332d}#save-status[data-state=saved]::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#6c8d55;margin:0 5px 1px 0}.header-actions{display:flex;gap:12px;flex-shrink:0}.download-button{background:var(--paper)}.send-button{background:var(--pink)}.header-actions .quiet-button{font-size:12px}
.tool-bar{display:flex;justify-content:space-between;gap:15px;padding:7px 18px;border-bottom:1px solid var(--line);flex-shrink:0;background:var(--page);z-index:3}.tools{display:flex;gap:5px;min-width:0}.tools button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 11px;border:1.5px solid transparent;background:none;border-radius:10px 7px 12px 8px;font-size:12px;white-space:nowrap}.tools [aria-pressed=true]{border-color:var(--ink);background:var(--yellow);box-shadow:1px 2px 0 var(--ink);transform:rotate(-1.2deg)}.tools [data-tool=frame][aria-pressed=true]{background:var(--blue)}.tools [data-tool=text][aria-pressed=true]{background:var(--pink)}.history-tools{display:flex;align-items:center;gap:4px}.history-tools .icon-button{width:38px;min-width:38px}
.workspace{display:grid;grid-template-columns:100px minmax(0,1fr) 285px;flex:1;min-height:0}.page-rail{display:flex;flex-direction:column;min-height:0;overflow:hidden;border-right:1px solid var(--line);padding:15px 10px 12px;gap:12px;background:#e9e3d6}.rail-label{text-align:center;font:14px/1.3 Lif,cursive;padding:0 3px}.page-list{display:flex;flex-direction:column;gap:15px;overflow:auto;overscroll-behavior:contain;padding:4px 4px 10px;scrollbar-width:thin;min-height:0}.page-thumb{display:flex;align-items:center;flex-direction:column;gap:5px;padding:0;border:0;background:none;flex-shrink:0;color:var(--soft);font-size:10px}.page-thumb canvas{display:block;width:62px;height:87.7px;border:1.5px solid var(--ink);box-shadow:2px 2px 0 #2a26333c;background:#fff;pointer-events:none}.page-thumb[aria-current=true]{color:var(--ink);font-weight:700}.page-thumb[aria-current=true] canvas{outline:3px solid var(--pink);outline-offset:2px;transform:rotate(-2deg)}.add-page{display:flex;align-items:center;flex-direction:column;gap:5px;min-height:48px;border:1.5px dashed var(--ink);border-radius:10px 7px 10px 8px;background:var(--page);padding:8px 3px;font-size:10px;flex-shrink:0}.add-page .icon{width:18px;height:18px}
.drawing-area{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.brush-bar{display:flex;align-items:center;gap:11px;padding:9px 14px;flex-shrink:0;background:var(--page);border-bottom:1px solid var(--line);min-height:51px}.palette{display:flex;gap:7px;align-items:center}.swatch{padding:0;width:24px;height:24px;border-radius:45% 55% 48% 52%;border:1.4px solid var(--ink);background:var(--swatch);min-height:24px}.swatch[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:3px;transform:rotate(-8deg)}.custom-color{width:26px;height:26px;flex-shrink:0;overflow:hidden;border:1.5px solid var(--ink);border-radius:50%;background:conic-gradient(#f6a5c9,#f7d44c,#8fd18b,#8ccaf2,#b9a3e8,#f6a5c9)}.custom-color input{width:40px;height:40px;opacity:0;cursor:pointer;margin:-7px}.brush-size{display:flex;align-items:center;gap:7px;font-size:11px;margin-left:4px}.brush-size input{width:78px;accent-color:var(--ink)}.brush-size output{min-width:17px;font-size:10px}.clip-label{display:flex;align-items:center;gap:5px;font-size:10px;margin-left:auto;white-space:nowrap}.stage{flex:1;min-height:0;position:relative;overflow:hidden;background:#dcd6c9;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair;isolation:isolate;background-image:radial-gradient(#8b847733 .8px,transparent .8px);background-size:14px 14px}.stage[data-tool=hand]{cursor:grab}.stage.is-panning{cursor:grabbing}.stage[data-tool=select],.stage[data-tool=frame]{cursor:default}.paper{position:absolute;width:1000px;height:1414px;transform-origin:0 0;background:#fff;box-shadow:0 4px 0 #2a26331c,0 15px 50px #2a263325;will-change:transform}.paper>canvas,.paper>svg{position:absolute;inset:0;width:100%;height:100%;display:block}.paper>svg{overflow:visible}.panel-hit{pointer-events:all;fill:transparent;stroke:transparent;stroke-width:12;vector-effect:non-scaling-stroke}.panel-selected{fill:none;stroke:#9870b4;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none;stroke-dasharray:6 5}.panel-handle{fill:var(--paper);stroke:var(--ink);stroke-width:1.5;vector-effect:non-scaling-stroke;cursor:move;pointer-events:all}.panel-handle:hover{fill:var(--pink)}.seam-line{stroke:#80699c;stroke-width:1;stroke-dasharray:3 5;vector-effect:non-scaling-stroke;pointer-events:none;opacity:.35}.seam-handle{fill:var(--blue);stroke:var(--ink);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:ew-resize}.seam-y{cursor:ns-resize}.object-hit{fill:transparent;stroke:#9870b4;stroke-dasharray:4 4;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:move}.object-handle{fill:var(--pink);stroke:var(--ink);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:nwse-resize}.free-frame-draft{fill:#8ccaf233;stroke:#486d8b;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.stage-hint{position:absolute;bottom:14px;left:50%;translate:-50% 0;margin:0;padding:9px 13px;font-size:11px;background:#fffbf0e8;border:1px solid #c6bead;border-radius:10px;max-width:calc(100% - 32px);text-align:center;pointer-events:none;white-space:nowrap}.polygon-actions{position:absolute;bottom:18px;left:50%;translate:-50% 0;display:flex;gap:12px;margin:0;padding:10px;background:var(--paper);border:1.5px solid var(--ink);border-radius:10px;white-space:nowrap}.canvas-footer{display:flex;align-items:center;justify-content:space-between;padding:4px 10px;background:var(--page);min-height:47px;flex-shrink:0;border-top:1px solid var(--line)}.active-layer{display:flex;align-items:center;gap:6px;border:0;background:none;font:16px/1 Lif,cursive;min-height:38px;padding:5px 8px}.active-layer .icon{width:18px;height:18px}.canvas-footer>p{font-size:10px;color:var(--soft);margin:0}.zoom-tools{display:flex;align-items:center;gap:0}.zoom-tools .icon-button{min-width:32px;width:32px;min-height:35px;padding:6px}.zoom-tools .icon{width:17px;height:17px}.zoom-value{background:none;border:0;min-height:35px;min-width:50px;font-size:10px}
.desktop-inspector{background:var(--paper);overflow:auto;scrollbar-width:thin;border-left:1px solid var(--line);min-height:0}.inspector-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 11px;font:21px Lif,cursive}.mobile-close{display:none}.inspector-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:0 12px 11px;border-bottom:1px solid var(--line)}.inspector-tabs button{border:1px solid transparent;border-radius:8px 5px 9px 6px;min-height:37px;padding:7px 3px;background:none;font-size:12px}.inspector-tabs [aria-selected=true]{background:var(--blue);border-color:var(--ink)}.inspector-pane{padding:19px 18px 25px}.inspector-pane h2{font:25px/1.15 Lif,cursive;margin:0 0 12px}.inspector-pane h3{font:20px/1.2 Lif,cursive;margin:23px 0 13px}.pane-intro{font-size:12px;line-height:1.7;margin:0 0 20px;color:var(--soft)}.layout-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.layout-presets button{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:8px 5px;gap:6px;font-size:10px;border:1.4px solid var(--line);border-radius:10px 7px 11px 6px;background:var(--page);min-height:81px}.layout-presets button:hover{border-color:var(--ink)}.layout-presets svg{width:36px;height:45px;fill:#fffef9;stroke:var(--ink);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}.grid-settings{display:flex;gap:8px;align-items:end;margin-top:18px}.grid-settings label{display:flex;flex-direction:column;gap:5px;font-size:10px;flex:1;min-width:0}.grid-settings select{padding:6px;width:100%}.grid-settings button{font-size:10px;padding:9px 8px;min-height:42px}.check-pair{display:flex;justify-content:space-between;gap:9px;font-size:10px}.check-pair label{display:flex;align-items:center;gap:5px}.new-frame-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px}.new-frame-tools button{min-height:40px;background:var(--paper);border:1.4px solid var(--ink);border-radius:9px 6px 10px 7px;font-size:11px;padding:9px 5px}.new-frame-tools [aria-pressed=true]{background:var(--blue)}.split-actions,.selection-actions{display:flex;gap:8px;flex-wrap:wrap}.split-actions .small-button{font-size:10px;padding:9px}.selection-actions button{flex:1;font-size:10px}#frame-selection{border-top:1px dashed var(--line);margin-top:20px}.layer-list{display:flex;flex-direction:column;gap:8px}.layer-row{display:flex;align-items:center;gap:2px;padding:7px 5px;border:1.5px solid transparent;border-radius:10px 6px 11px 7px;background:var(--page)}.layer-row.is-active{border-color:var(--ink);background:#e5dcee;box-shadow:1px 2px 0 var(--ink)}.layer-select{flex:1;min-width:0;background:none;border:0;text-align:left;padding:5px 7px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:34px}.layer-row .icon-button{min-width:31px;width:31px;min-height:34px;padding:6px}.layer-row .icon{width:18px;height:18px}.layer-row [aria-pressed=false]{opacity:.4}.layer-row [data-action=lock][aria-pressed=false]{opacity:.25}.layer-role{font-size:9px;color:var(--soft);display:block}.layer-order{display:flex;align-items:center;justify-content:space-between;gap:3px}.layer-controls{border-top:1px dashed var(--line);margin-top:23px;padding-top:2px}.layer-order .icon-button{min-width:32px;padding:6px}.text-options{display:grid;grid-template-columns:1fr 65px;gap:12px}.text-options .field{margin:0}.page-order{display:flex;gap:8px;margin:21px 0 12px}.page-order>*{flex:1}.inspector-pane .full-width+.full-width{margin-top:12px}.mobile-settings{display:none}
dialog{border:2px solid var(--ink);border-radius:22px 14px 25px 15px;background:var(--paper);color:var(--ink);padding:27px;width:min(720px,calc(100% - 36px));max-height:90dvh;overflow:auto;box-shadow:5px 7px 0 var(--ink)}dialog::backdrop{background:#2a263363;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.dialog-heading h2,dialog>h2{font:34px/1.1 Lif,cursive;margin:0}.dialog-intro{font-size:14px;line-height:1.7;max-width:580px;color:var(--soft)}.library-actions,.export-actions{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.project-card{display:flex;align-items:center;gap:15px;padding:15px;background:var(--page);border:1.5px solid var(--ink);border-radius:12px 7px 14px 8px}.project-card>button:first-child{display:flex;gap:14px;align-items:center;min-width:0;flex:1;border:0;background:none;text-align:left;padding:0}.project-card img{width:48px;height:68px;object-fit:cover;border:1px solid var(--ink);background:white}.project-card strong{font:19px/1.2 Lif,cursive;overflow-wrap:anywhere}.project-card small{font-size:10px;display:block;margin-top:7px;color:var(--soft)}.new-dialog,.confirm-dialog{width:min(440px,calc(100% - 36px))}.new-dialog .button{margin-top:14px}.confirm-dialog p{font-size:14px;line-height:1.7}.confirm-actions{display:flex;justify-content:flex-end;gap:15px;margin-top:24px}.export-pages{display:flex;gap:15px;overflow:auto;padding:10px 4px 18px}.export-pages figure{margin:0;flex-shrink:0;width:110px}.export-pages canvas{width:110px;height:155.5px;border:1px solid var(--ink);box-shadow:2px 3px 0 var(--line);display:block}.export-pages figcaption{font-size:10px;text-align:center;margin-top:8px}.export-progress{font-size:13px;color:var(--soft);min-height:22px}.submit-dialog{width:min(1000px,calc(100% - 28px));padding:21px}.submit-dialog .dialog-heading h2{font-size:29px}.submit-dialog>p[role=status]{font-size:13px;line-height:1.6}.submit-dialog iframe{display:block;width:100%;height:62dvh;border:1px solid var(--line);border-radius:10px;background:var(--page)}.submission-fallback{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:15px 0}.help-dialog p,.help-dialog dd{font-size:14px;line-height:1.7}.help-dialog dt{font:23px Lif,cursive;margin:20px 0 7px}.help-dialog dd{margin:0}.keyboard-help{padding:15px;background:var(--page);border-radius:10px;font-size:12px!important}.toast{position:fixed;z-index:100;left:50%;bottom:30px;translate:-50% 0;background:var(--ink);color:var(--paper);max-width:calc(100% - 38px);width:max-content;padding:12px 18px;border-radius:12px 8px 14px 9px;font-size:13px;line-height:1.5;text-align:center;pointer-events:none;box-shadow:0 5px 20px #2a263325}.toast:empty{display:none}.no-script{position:fixed;inset:20%;z-index:20;background:var(--paper);border:2px solid var(--ink);padding:30px;font-size:18px;line-height:1.8}
@media(min-width:1500px){.workspace{grid-template-columns:115px minmax(0,1fr) 310px}.page-thumb canvas{width:74px;height:104.6px}.app-header{padding:16px 26px}.inspector-pane{padding:23px}.layout-presets button{min-height:90px}}
@media(max-width:1200px){.brand{font-size:23px}.app-header{gap:18px;padding-left:18px;padding-right:18px}.header-actions{gap:8px}.header-actions .quiet-button span{display:none}.tool-bar{gap:6px;padding-left:10px;padding-right:10px}.tools{gap:1px}.tools button{padding:8px;font-size:11px;gap:5px}.tools .icon{width:21px;height:21px}.brush-bar{gap:9px;padding-left:11px;padding-right:11px}.palette{gap:6px}.swatch{width:21px;height:21px}.brush-size input{width:65px}.clip-label{font-size:9px;gap:3px}}
@media(max-width:999px){.workspace{grid-template-columns:85px minmax(0,1fr)}.desktop-inspector{display:none}.inspector-dialog{padding:0;width:min(460px,calc(100% - 22px));max-height:75dvh;margin:auto 11px 11px auto;overflow:auto;border-radius:20px 14px 22px 15px}.inspector-dialog .mobile-close{display:flex}.inspector-dialog .inspector-heading{padding-top:10px}.inspector-dialog .inspector-pane{padding:20px 23px}.mobile-settings{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 12px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--paper);flex-shrink:0}.mobile-settings button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 20px;min-height:43px;border:1.4px solid transparent;background:none;border-radius:10px 7px 11px 6px;font:17px Lif,cursive}.mobile-settings button:nth-child(2){background:#e5dcee}.mobile-settings .icon{width:21px;height:21px}.tools{gap:4px}.tools button{padding:8px 10px}.tool-bar{gap:10px}.toast{bottom:75px}}
@media(max-width:700px){.app-header{flex-wrap:wrap;gap:7px 12px;padding:10px 13px 8px}.brand{font-size:21px;order:1}.document-heading{order:3;flex-basis:100%;flex-direction:row;align-items:center;gap:15px}.document-heading>input{font-size:18px;flex:1;width:0;padding:3px 0}#save-status{font-size:9px;white-space:nowrap}.header-actions{order:2;gap:6px;margin-left:auto}.header-actions .quiet-button{min-width:35px;width:35px;padding:6px;min-height:35px}.header-actions .button{font-size:16px;min-height:35px;padding:6px 9px;gap:5px}.header-actions .button>.icon{width:17px;height:17px}.tool-bar{padding:5px 8px;gap:4px}.tools{overflow-x:auto;scrollbar-width:none;gap:1px;flex:1;padding:1px 1px 4px}.tools::-webkit-scrollbar{display:none}.tools button{flex-shrink:0;flex-direction:column;gap:4px;min-width:49px;min-height:47px;padding:6px;font-size:9px}.tools .icon{width:20px;height:20px}.history-tools{gap:0}.history-tools .icon-button{width:29px;min-width:29px;min-height:42px;padding:5px}.history-tools .icon{width:18px;height:18px}.help-button{display:none}.workspace{display:flex;flex:1;flex-direction:column-reverse;min-height:0}.page-rail{border-right:0;border-top:1px solid var(--line);flex-direction:row;padding:6px 10px;gap:10px;min-height:76px;height:76px;flex-shrink:0;align-items:center;overflow:hidden}.rail-label{display:none}.page-list{flex-direction:row;gap:13px;padding:4px;flex:1;overflow:auto;align-items:center;min-width:0}.page-thumb{gap:2px;flex-direction:row;font-size:9px;min-height:59px}.page-thumb canvas{width:36px;height:51px}.page-thumb span{max-width:26px;text-align:center}.add-page{min-height:54px;min-width:47px;max-width:47px;font-size:9px;padding:6px 4px;gap:3px}.add-page .icon{width:16px;height:16px}.drawing-area{flex:1;min-height:0}.brush-bar{padding:7px 10px;gap:8px;min-height:42px;overflow-x:auto;scrollbar-width:none}.palette{gap:6px}.swatch{width:20px;height:20px;min-height:20px;flex-shrink:0}.custom-color{width:22px;height:22px}.brush-size{gap:5px;margin-left:1px}.brush-size>span{display:none}.brush-size input{width:59px}.brush-size output{font-size:9px;min-width:12px}.clip-label{font-size:9px;gap:3px;margin-left:0}.clip-label input{width:14px;height:14px}.canvas-footer{min-height:39px;padding:1px 7px}.active-layer{font-size:15px;min-height:35px;padding-left:4px;gap:5px}.canvas-footer>p{font-size:9px}.zoom-tools .icon-button{width:28px;min-width:28px;min-height:31px}.zoom-value{min-height:31px;min-width:43px}.stage-hint{font-size:9px;bottom:9px;padding:7px 9px;max-width:calc(100% - 20px);white-space:normal;width:max-content}.mobile-settings{gap:0;padding:2px 7px calc(2px + env(safe-area-inset-bottom,0px))}.mobile-settings button{font-size:14px;min-height:40px;padding:7px 12px;gap:5px;flex:1}.mobile-settings .icon{width:18px;height:18px}.inspector-dialog{margin:auto auto 8px;width:calc(100% - 16px);max-height:78dvh}.inspector-dialog .inspector-pane{padding:18px}.inspector-heading{font-size:23px}.inspector-pane h2{font-size:26px}.inspector-dialog .layout-presets button{flex-direction:row;gap:8px;min-height:66px}.inspector-dialog .layout-presets svg{width:27px;height:37px}.inspector-tabs button{font-size:13px;min-height:40px}.check-pair{justify-content:flex-start;gap:22px;font-size:12px}.new-frame-tools button{font-size:12px;min-height:44px}.grid-settings label{font-size:12px}.grid-settings button{font-size:12px}.range-field,.field,.color-field,.check-field{font-size:13px}.layer-select{font-size:15px}.layer-row .icon-button{width:39px;min-width:39px;min-height:39px}.layer-row .icon{width:20px;height:20px}.small-note{font-size:12px}dialog{padding:21px;max-height:90dvh;width:calc(100% - 24px)}.dialog-heading{gap:10px}.dialog-heading h2,dialog>h2{font-size:29px}.dialog-intro{font-size:13px}.project-list{grid-template-columns:1fr}.library-actions{gap:10px}.library-actions .button{font-size:18px}.library-actions .small-button{font-size:11px}.project-card strong{font-size:21px}.export-pages figure{width:85px}.export-pages canvas{width:85px;height:120.2px}.export-actions{gap:10px}.export-actions .button{font-size:18px}.export-actions .small-button{font-size:12px}.submit-dialog{padding:17px;width:calc(100% - 16px);max-height:96dvh}.submit-dialog .dialog-heading h2{font-size:24px}.submit-dialog iframe{height:64dvh}.submit-dialog .small-note{font-size:10px}.toast{bottom:60px;font-size:12px}.polygon-actions{padding:8px;gap:8px;bottom:14px}.polygon-actions .button{font-size:16px}}
@media(max-width:370px){.brand{font-size:18px}.header-actions .button{font-size:14px;padding:6px}.header-actions .button>.icon{width:15px;height:15px}.header-actions{gap:5px}.header-actions .quiet-button{width:30px;min-width:30px}.document-heading>input{font-size:17px}.tools button{min-width:46px;padding:6px 5px}.history-tools .icon-button{width:26px;min-width:26px}.palette{gap:5px}.swatch{width:18px;height:18px;min-height:18px}.brush-bar{gap:7px;padding-left:8px;padding-right:8px}.brush-size input{width:48px}.brush-size output{display:none}.clip-label{font-size:8px}.mobile-settings button{padding:7px;font-size:13px}.mobile-settings .icon{width:16px;height:16px}}
@media(max-height:570px) and (max-width:999px) and (orientation:landscape){.app-header{flex-wrap:nowrap;padding:6px 11px;gap:12px}.document-heading{order:2;flex-basis:auto;flex-direction:column;gap:0;align-items:flex-start}.document-heading>input{width:100%;font-size:17px}.header-actions{order:3}.brand{font-size:19px}.workspace{display:grid;grid-template-columns:74px minmax(0,1fr)}.page-rail{height:auto;min-height:0;flex-direction:column;border-right:1px solid var(--line);border-top:0;gap:7px}.page-list{flex-direction:column}.page-thumb{flex-direction:column;gap:2px}.page-thumb span{max-width:60px}.drawing-area{min-height:0}.tools button{flex-direction:row;min-height:35px;font-size:10px}.tool-bar{padding-top:3px;padding-bottom:3px}.mobile-settings{min-height:35px;padding-top:0;padding-bottom:0}.mobile-settings button{min-height:34px;font-size:13px;padding:5px 20px;flex:0}.brush-bar{min-height:34px;padding:5px 12px}.canvas-footer{min-height:32px}.canvas-footer .active-layer{min-height:30px}.inspector-dialog{max-height:90dvh}.stage-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Reviewing, keeping and sending a story share one place in the workshop. */
.story-button{background:var(--pink)}.export-dialog{width:min(1030px,calc(100% - 36px));padding:26px}.story-review{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:32px}.story-preview,.story-delivery{min-width:0}.story-title{font:22px/1.25 Lif,cursive;margin:2px 0 12px;overflow-wrap:anywhere}.export-dialog .export-pages{gap:18px;margin:0;padding:10px 8px 16px;scroll-snap-type:x mandatory;background:var(--page);border:1px solid var(--line);border-radius:12px 7px 14px 8px;overscroll-behavior-x:contain}.export-dialog .export-pages figure{flex:0 0 100%;width:100%;display:flex;justify-content:center;align-items:center;scroll-snap-align:center;scroll-snap-stop:always}.export-dialog .export-pages canvas{width:auto;height:min(49dvh,510px);max-width:100%;object-fit:contain;background:white;box-shadow:2px 3px 0 var(--line)}.export-dialog .export-pages figcaption{display:none}.review-navigation{display:flex;align-items:center;justify-content:center;gap:20px;padding-top:7px;font-size:12px;color:var(--soft)}.review-navigation .icon-button{min-height:38px;width:38px}.story-preview>.small-note{font-size:11px;line-height:1.7}.story-delivery{border-left:1px dashed var(--line);padding-left:30px}.delivery-heading{display:flex;align-items:center;gap:12px}.delivery-heading>.icon{width:29px;height:29px;transform:rotate(-7deg);flex-shrink:0}.delivery-heading h3{font:27px/1.15 Lif,cursive;margin:0}.delivery-intro{font-size:13px;line-height:1.7;color:var(--soft);margin:13px 0 18px}.story-delivery .field{margin:15px 0}.story-delivery .field input{font-size:16px;min-height:46px}.story-delivery .field>.small-note{font-size:11px;margin:0;font-weight:normal}.submission-progress{font-size:12px;line-height:1.6;min-height:20px;color:var(--soft);margin:14px 0 10px}.submission-errors{padding:12px 14px;background:#f8e0d8;border:1px solid #9b332d;border-radius:9px;font-size:12px;line-height:1.6;margin:12px 0;color:#79271f}.submission-errors p{margin:0}.story-delivery .send-button{min-height:49px;font-size:22px;justify-content:center;gap:10px}.story-downloads{border-top:1px dashed var(--line);margin-top:23px;padding-top:15px}.story-downloads summary{display:flex;align-items:center;gap:10px;cursor:pointer;font:19px Lif,cursive;min-height:40px;list-style:none}.story-downloads summary::-webkit-details-marker{display:none}.story-downloads summary::after{content:'+';margin-left:auto;font:23px ui-rounded,system-ui,sans-serif}.story-downloads[open] summary::after{content:'−'}.story-downloads summary>.icon{width:21px;height:21px}.story-downloads .export-actions{margin:13px 0;gap:8px}.story-downloads .export-actions button{font-size:11px;padding:9px 10px}.story-downloads .check-field{font-size:11px}.story-downloads .export-progress:empty{display:none}.return-to-drawing{display:block;padding:7px 0;margin-top:13px;border:0;background:none;color:var(--soft);font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:38px}.submission-success{padding:20px 0}.submission-success>.icon{width:55px;height:55px;padding:11px;background:var(--green);border:1.5px solid var(--ink);border-radius:50% 44% 48% 42%;transform:rotate(-8deg)}.submission-success h3{font:31px/1.15 Lif,cursive;margin:19px 0 12px}.submission-success p{font-size:14px;line-height:1.8;color:var(--soft);margin:0 0 23px}.submission-fallback{padding-top:8px;border-top:1px solid var(--line);gap:9px}.submission-fallback>.small-note{flex-basis:100%;margin:5px 0}.export-dialog[aria-busy=true] .send-button{background:var(--page)}
@media(max-width:700px){.export-dialog{width:calc(100% - 16px);padding:18px;max-height:96dvh}.story-review{grid-template-columns:1fr;gap:18px}.story-title{font-size:20px}.story-delivery{border-left:0;border-top:1px dashed var(--line);padding:18px 0 0}.export-dialog .export-pages canvas{height:min(29dvh,310px)}.export-dialog .export-pages{padding:9px 6px 12px}.story-preview>.small-note{margin-bottom:0}.review-navigation{padding-top:3px}.delivery-heading h3{font-size:25px}.delivery-intro{margin:9px 0 14px}.story-delivery .field{margin:12px 0}.story-downloads{margin-top:19px;padding-top:10px}.story-downloads .export-actions button{font-size:12px}.story-delivery .send-button{min-height:48px}.submission-success{padding:5px 0}.submission-success h3{font-size:28px}.story-preview>.small-note{font-size:10px}}
.full-submission .full-form-host{margin-top:22px;border:1.5px solid var(--line);border-radius:12px;overflow:hidden;background:#fffbf0}.full-form-host iframe{display:block;width:100%;height:1050px;border:0}.full-submission .story-downloads{margin-top:0;padding-top:0;border:0}.full-submission .story-delivery{display:flex;flex-direction:column;justify-content:center}.full-submission .submission-fallback{margin-top:12px}.full-submission .story-preview>.small-note{margin-bottom:0}@media(max-width:700px){.full-submission .full-form-host{margin-top:16px}.full-submission .story-review{gap:10px}.full-submission .story-delivery{padding-top:10px}.full-submission .return-to-drawing{margin-top:5px}.full-submission .full-form-host{margin-inline:-8px}}
