/* Paint is theme-aware; the drawing paper stays white for predictable exports. */
.pw{--pw-blue:#2463bd;--pw-ink:var(--text-primary,#edf1fb);--pw-muted:var(--text-secondary,#aebbd1);--pw-card:var(--card-bg,#1d2338);--pw-line:var(--border-color,#3c4966);max-width:1320px;margin:28px auto 56px;padding:0 24px;color:var(--pw-ink);font-family:inherit;line-height:1.55;box-sizing:border-box}.pw *{box-sizing:border-box}.pw [hidden]{display:none!important}.pw h1,.pw h2,.pw p{margin:0}.pw h1{font-size:34px;line-height:1.15;letter-spacing:-.8px}.pw h1 span{display:block;font-size:16px;font-weight:500;letter-spacing:0;margin-top:8px;color:var(--pw-muted)}.pw h2{font-size:25px;line-height:1.25;letter-spacing:-.35px}.pw p{color:var(--pw-muted)}.pw a,.pw a:visited{color:var(--pw-ink);text-decoration:none}.pw button,.pw input,.pw select,.pw textarea,.pw summary{font:inherit}.pw button,.pw summary,.pw-upload{cursor:pointer}.pw button{color:var(--pw-ink)}.pw button:disabled{opacity:.4;cursor:default}.pw button,.pw select,.pw input,.pw textarea{border-radius:10px}.pw input:not([type=checkbox]):not([type=color]):not([type=range]):not([type=file]),.pw select,.pw textarea{border:1px solid var(--pw-line);color:var(--pw-ink);background:var(--pw-card);padding:10px 12px;min-height:42px;max-width:100%}.pw select option{background:var(--pw-card);color:var(--pw-ink)}.pw textarea{width:100%;resize:vertical}.pw :focus-visible{outline:3px solid #5a97ee;outline-offset:3px}.pw input[type=checkbox]{accent-color:var(--pw-blue);width:17px;height:17px}.pw input[type=range]{accent-color:var(--pw-blue);max-width:220px}.pw-icon{display:inline-block;vertical-align:middle;flex-shrink:0}.pw-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pw-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.pw-heading>div>p:last-child{margin-top:10px;font-size:15px}.pw-eyebrow{font-size:10px!important;font-weight:800;letter-spacing:1.6px;color:var(--pw-muted);margin-bottom:10px!important}.pw-brand-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6b9eed;margin-right:7px}.pw-button,.pw summary.pw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--pw-line);border-radius:11px;background:var(--pw-card);color:var(--pw-ink)!important;font-size:13px;font-weight:650;text-decoration:none!important;line-height:1.2;white-space:nowrap}.pw .pw-button:hover:not(:disabled){border-color:#6e9ad9;background:color-mix(in srgb,var(--pw-card),#478aed 8%)}.pw .pw-primary,.pw .pw-primary:hover{background:#2463bd;color:#fff!important;border-color:#2463bd;box-shadow:0 3px 10px #123a7322}.pw-square{width:44px;min-width:44px;padding:8px;font-size:22px}.pw-shell{border:1px solid var(--pw-line);border-radius:20px;background:var(--pw-card);box-shadow:0 15px 50px #0000000d}.pw-topbar{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--pw-line);border-radius:20px 20px 0 0;background:color-mix(in srgb,var(--pw-card),#7f98bc 4%)}.pw-document,.pw-history,.pw-zoom{display:flex;align-items:center;gap:5px}.pw-document{max-width:235px}.pw-sheet-label{min-width:0}.pw-document select{width:170px;font-size:13px;font-weight:650;text-overflow:ellipsis}.pw-save{font-size:11px;color:var(--pw-muted);flex:1;padding:0 7px;max-width:320px}.pw-upload{position:relative;overflow:hidden}.pw-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.pw-upload:focus-within{outline:3px solid #5a97ee;outline-offset:3px}.pw-export-menu{position:relative;margin-left:auto}.pw-export-menu summary{list-style:none}.pw-export-menu summary::-webkit-details-marker{display:none}.pw-menu-content{position:absolute;right:0;top:calc(100% + 8px);min-width:235px;z-index:20;background:var(--pw-card);border:1px solid var(--pw-line);box-shadow:0 15px 40px #0003;padding:6px;border-radius:12px}.pw-menu-content button{display:block;text-align:left;width:100%;background:transparent;border:0;border-radius:7px;padding:12px;font-size:13px}.pw-menu-content button:hover{background:#6b9eed22}.pw-work-area{display:grid;grid-template-columns:82px minmax(0,1fr)}.pw-tools{display:flex;flex-direction:column;gap:4px;padding:10px 7px;border-right:1px solid var(--pw-line)}.pw-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:50px;border:1px solid transparent;background:transparent;border-radius:10px;font-size:10px;font-weight:600}.pw-tools button[aria-pressed=true]{background:#dceaff;border-color:#9cc2f1;color:#154f9f!important}.pw-tools button:hover:not([aria-pressed=true]){background:#7196ca1a}.pw-text-icon{font-family:Georgia,serif;font-size:24px;line-height:22px}.pw-editor{min-width:0}.pw-settings{display:flex;align-items:flex-start;gap:12px;padding:8px 12px;min-height:60px}.pw-options{flex:1}.pw-options>summary{font-size:13px;color:var(--pw-muted);padding:10px 4px}.pw-options[open]>summary{display:none}.pw-options-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pw-options-row select{font-size:12px}.pw-swatches{display:flex;gap:0}.pw-swatches button{width:38px;height:42px;border:0;background:none;padding:8px}.pw-swatches button span{display:block;width:22px;height:22px;border-radius:50%;background:var(--swatch);border:1px solid #ffffff55}.pw-swatches button[aria-pressed=true] span{outline:2px solid #629bf0;outline-offset:3px}.pw-custom-color input{width:30px;height:34px;border:0;padding:0;background:transparent;cursor:pointer}.pw-check{display:flex;gap:6px;align-items:center;font-size:12px;white-space:nowrap;color:var(--pw-muted)}.pw-edit-text,.pw-selection{padding:10px 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--pw-line);background:color-mix(in srgb,var(--pw-card),#7f98bc 4%)}.pw-edit-text label{display:flex;align-items:center;gap:8px;font-size:12px}.pw-edit-text small{font-size:11px;color:var(--pw-muted);width:100%}.pw-edit-text input{width:260px}.pw-selection>span{font-size:12px;font-weight:650;margin-right:auto}.pw-selection-actions{display:flex;gap:4px;flex-wrap:wrap}.pw-selection .pw-button{min-height:38px;font-size:11px;padding:8px}.pw-selection .pw-square{width:38px;min-width:38px}.pw-selection .pw-icon{width:18px;height:18px}.pw-selection [aria-pressed=true]{background:#dceaff!important;color:#154f9f!important}.pw-image-scale{display:flex;align-items:center;gap:10px;font-size:12px;width:100%}.pw-canvas-wrap{position:relative}.pw-stage{height:min(65vh,680px);min-height:505px;overflow:auto;background:#e8edf4;padding:24px;overscroll-behavior:contain;touch-action:pan-x pan-y}.pw-stage[data-tool=hand]{cursor:grab}.pw-stage[data-tool=select]{cursor:default}.pw-stage[data-tool=pen],.pw-stage[data-tool=marker],.pw-stage[data-tool=line],.pw-stage[data-tool=arrow],.pw-stage[data-tool=rect],.pw-stage[data-tool=ellipse]{cursor:crosshair}#pw-paper{display:block;background:#fff;box-shadow:0 3px 18px #18325018;max-width:none;touch-action:none;user-select:none}.pw-empty{pointer-events:none;position:absolute;top:35%;left:15%;right:15%;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;color:#50617b;background:#fffffff0;padding:22px;border:1px solid #dbe5f0;border-radius:18px;max-width:390px;margin:auto;box-shadow:0 8px 40px #2342700a}.pw-empty>span{display:grid;place-items:center;width:44px;height:44px;background:#e6effe;color:#2463bd;border-radius:13px}.pw-empty b{font-size:17px;color:#253d61}.pw-empty small{font-size:12px;line-height:1.7}.pw-drop{position:absolute;inset:12px;background:#eaf3fff5;border:3px dashed #4a8adf;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;pointer-events:none;color:#184b91}.pw-drop>.pw-icon{width:50px;height:50px}.pw-bottom{display:flex;align-items:center;gap:10px;padding:10px 12px;flex-wrap:wrap}.pw-bottom select{font-size:12px}.pw-bottom .pw-button{font-size:12px;padding:8px;min-height:38px}.pw-bottom .pw-square{width:36px;min-width:36px;font-size:20px}.pw-bottom #pw-object-count{color:var(--pw-muted);font-size:11px;margin-right:auto}.pw-zoom{margin-left:auto}.pw-hint{padding:10px 16px;border-top:1px solid var(--pw-line);font-size:12px;min-height:42px}.pw-layers{max-height:220px;overflow:auto;border-top:1px solid var(--pw-line);padding:10px;font-size:12px;color:var(--pw-muted)}.pw-layer{display:block;text-align:left;width:100%;padding:10px;border:1px solid transparent;background:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-layer[aria-pressed=true]{background:#629bf022;border-color:#629bf0}.pw-quick-info{display:flex;justify-content:center;gap:26px;margin:14px 0 22px;flex-wrap:wrap;color:var(--pw-muted);font-size:11px}.pw-quick-info span{display:flex;align-items:center;gap:6px}.pw-quick-info .pw-icon{width:16px;height:16px}.pw-below{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.pw-panel{border:1px solid var(--pw-line);border-radius:14px;padding:16px 18px;background:var(--pw-card)}.pw-panel>summary{font-size:14px;font-weight:650;min-height:24px}.pw-panel summary .pw-icon{width:19px;height:19px;margin-right:6px}.pw-panel[open]>summary{margin-bottom:16px}.pw-panel p{font-size:13px;margin:12px 0 0}.pw .pw-small{font-size:11px;line-height:1.7}.pw-template-grid,.pw-actions{display:flex;flex-wrap:wrap;gap:8px}.pw-template-grid .pw-button,.pw-actions .pw-button{font-size:12px}.pw-file-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.pw-file-grid label{display:grid;gap:5px;font-size:12px}.pw-discover{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:48px;margin-top:36px;border:1px solid var(--pw-line);padding:30px;border-radius:20px;background:linear-gradient(120deg,#6b9eed0b,transparent)}.pw-discover p:not(.pw-eyebrow){font-size:13px;line-height:1.8;margin-top:13px;max-width:380px}.pw-discover nav{display:grid;gap:8px}.pw-discover nav a{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--pw-line);background:var(--pw-card);border-radius:12px;transition:transform .15s,border-color .15s}.pw-discover nav a:hover{border-color:#6e9ad9;transform:translateY(-2px)}.pw-discover nav a>.pw-icon{background:#dceaff;color:#245a9e;width:40px;height:40px;padding:10px;border-radius:11px}.pw-discover nav a>span:nth-child(2){flex:1}.pw-discover b{font-size:13px;display:block}.pw-discover small{display:block;color:var(--pw-muted);font-size:11px;margin-top:2px}.pw-about{margin-top:40px}.pw-about>p{font-size:13px;max-width:880px;line-height:1.8;margin-top:12px}.pw-faq{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;align-items:start}.pw-faq details{border-top:1px solid var(--pw-line);padding:15px 0}.pw-faq summary{font-size:13px;font-weight:650}.pw-faq p{font-size:12px;line-height:1.8;margin-top:10px}.pw-shell:fullscreen{border-radius:0;background:var(--pw-card);overflow:auto}.pw-shell:fullscreen .pw-stage{height:calc(100vh - 240px);min-height:360px}
@media(max-width:1000px){.pw-save{display:none}.pw-options-row{gap:7px}.pw-swatches button{width:32px}.pw-check{font-size:11px}.pw-discover{gap:25px}}
@media(max-width:700px){.pw{padding:0 12px;margin:18px auto 35px}.pw h1{font-size:28px}.pw h1 span{font-size:13px}.pw-heading{gap:12px;margin-bottom:18px;align-items:flex-start}.pw-heading>div>p:last-child{font-size:12px}.pw-eyebrow{font-size:8px!important;letter-spacing:1px}.pw-back{font-size:11px;padding:8px;min-height:38px}.pw-shell{border-radius:15px}.pw-topbar{gap:6px;padding:10px;flex-wrap:wrap}.pw-document{max-width:calc(100% - 100px);flex:1}.pw-document select{width:100%}.pw-sheet-label{flex:1}.pw-history{margin-left:auto}.pw-topbar>.pw-upload{flex:1;min-width:52%;margin-top:3px}.pw-export-menu{flex:1;margin-top:3px}.pw-export-menu summary{width:100%;font-size:12px}.pw-export-menu summary>.pw-icon{display:none}.pw-work-area{display:block}.pw-tools{flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--pw-line);gap:2px;padding:7px;scrollbar-width:thin}.pw-tools button{min-width:55px;min-height:51px;flex-shrink:0;font-size:9px}.pw-settings{padding:7px 10px;min-height:52px;gap:8px}.pw-options>summary{min-height:38px;padding:9px 3px}.pw-options[open]>summary{display:list-item;margin-left:15px;padding:7px 0}.pw-options-row{gap:5px}.pw-swatches button{width:35px;height:42px}.pw-options-row .pw-check{padding:5px}.pw-settings>.pw-square{min-height:38px;width:38px;min-width:38px}.pw-stage{min-height:335px;height:58vh;padding:10px}.pw-empty{top:28%;left:10%;right:10%;padding:16px;gap:6px}.pw-empty b{font-size:15px}.pw-empty small{font-size:10px}.pw-empty>span{width:36px;height:36px}.pw-bottom{gap:5px;padding:8px}.pw-bottom select{padding:8px 5px;min-height:38px;font-size:11px}.pw-bottom #pw-layers-toggle span{display:none}.pw-bottom #pw-object-count{display:none}.pw-bottom #pw-fit{font-size:10px;max-width:80px}.pw-bottom .pw-square{min-width:30px;width:30px}.pw-zoom{gap:2px}.pw-hint{font-size:10px;line-height:1.6;padding:8px 12px}.pw-selection{gap:5px;padding:8px}.pw-selection>span{width:100%;font-size:11px}.pw-selection-actions{gap:3px}.pw-selection .pw-square{width:36px;min-width:36px}.pw-selection #pw-lock{font-size:10px}.pw-edit-text input{width:180px}.pw-edit-text label{font-size:11px}.pw-quick-info{gap:9px;font-size:9px;margin:12px 0 18px}.pw-quick-info .pw-icon{width:13px;height:13px}.pw-below{grid-template-columns:1fr;gap:8px}.pw-panel{padding:14px}.pw-panel>summary{font-size:12px}.pw-discover{grid-template-columns:1fr;gap:20px;padding:20px;margin-top:25px}.pw h2{font-size:22px}.pw-about{margin-top:28px}.pw-faq{grid-template-columns:1fr;gap:0}.pw-file-grid{grid-template-columns:1fr}.pw-shell:fullscreen .pw-stage{height:calc(100vh - 320px);min-height:260px}}
@media(prefers-reduced-motion:reduce){.pw *{scroll-behavior:auto!important;transition:none!important}.pw-discover nav a:hover{transform:none}}
/* Compact phone canvas: no unused area below a landscape sheet. Focus mode also works on iOS. */
.pw-screen-label{display:none}
.pw.is-focused{position:fixed;inset:0;z-index:2147483000;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--pw-card)}
.pw.is-focused>:not(.pw-shell){display:none!important}
.pw.is-focused .pw-shell{margin:0;height:100%;display:flex;flex-direction:column;border:0;border-radius:0;overflow:hidden}
.pw.is-focused .pw-topbar{flex-shrink:0;border-radius:0}
.pw.is-focused .pw-work-area{flex:1;min-height:0}
.pw.is-focused .pw-editor{display:flex;flex-direction:column;min-height:0}
.pw.is-focused .pw-settings{flex-shrink:0;max-height:30vh;overflow:auto}
.pw.is-focused .pw-canvas-wrap{flex:1;min-height:80px;overflow:hidden}
.pw.is-focused .pw-stage{height:100%;min-height:0;max-height:none}
.pw.is-focused .pw-layers{max-height:20vh}
.pw.is-focused .pw-hint{flex-shrink:0}
@media(max-width:700px){
 .pw-shell{margin-inline:-12px;border-radius:0;border-inline:0}
 .pw-stage{height:auto;min-height:0;max-height:72vh;max-height:72svh;padding:0;background:#fff}
 #pw-paper{box-shadow:none}
 .pw-empty{top:50%;transform:translateY(-50%)}
 .pw-tools{padding:4px;gap:1px}.pw-tools button{min-height:44px;min-width:48px}
 .pw-settings{min-height:44px;padding:4px 8px;align-items:center}
 .pw-settings>#pw-fullscreen{width:auto;min-width:44px;min-height:40px;font-size:11px;padding:8px;gap:6px}
 .pw-screen-label{display:inline}
 .pw-options>summary{padding:8px 3px}
 .pw-bottom{padding:5px 8px}
 .pw.is-focused .pw-topbar{flex-wrap:nowrap;padding:5px;gap:4px}
 .pw.is-focused .pw-document{min-width:0;max-width:none;gap:3px}
 .pw.is-focused .pw-document select{min-height:40px;padding:8px 4px;font-size:11px}
 .pw.is-focused .pw-history{gap:3px}
 .pw.is-focused .pw-topbar .pw-square{width:36px;min-width:36px;min-height:40px;padding:6px}
 .pw.is-focused .pw-topbar>.pw-upload{flex:0 0 40px;min-width:40px;min-height:40px;margin:0;padding:8px;font-size:0}
 .pw.is-focused .pw-export-menu{flex:0 0 40px;margin:0}
 .pw.is-focused .pw-export-menu summary{min-height:40px;padding:8px;font-size:0}
 .pw.is-focused .pw-export-menu summary>.pw-icon{display:block}
 .pw.is-focused .pw-work-area{display:flex;flex-direction:column}
 .pw.is-focused .pw-tools{flex-shrink:0}
 .pw.is-focused .pw-editor{flex:1}
 .pw.is-focused .pw-hint{font-size:10px;min-height:0;padding:5px 10px}
 .pw.is-focused .pw-selection{max-height:24vh;overflow:auto;flex-shrink:0}
 .pw.is-focused .pw-edit-text{max-height:24vh;overflow:auto;flex-shrink:0}
 .pw.is-focused .pw-canvas-wrap{min-height:40px}
}
@media print{.pw.is-focused{position:static!important;height:auto!important}.pw.is-focused .pw-shell{height:auto!important}@page{size:landscape;margin:10mm}body{background:#fff!important}body>header,body>footer,body>nav,main> :not(.pw),.pw-heading,.pw-topbar,.pw-tools,.pw-settings,.pw-edit-text,.pw-selection,.pw-bottom,.pw-layers,.pw-hint,.pw-quick-info,.pw-below,.pw-discover,.pw-about,.pw-empty,.pw-drop,nav,footer,.site-header,.site-footer{display:none!important}.pw,.pw-shell,.pw-editor,.pw-work-area,.pw-canvas-wrap,.pw-stage,main{display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important}#pw-paper{width:100%!important;height:auto!important;max-height:180mm!important;box-shadow:none!important}[data-selection]{display:none!important}}
