:root{color-scheme:dark;--bg:#15171b;--panel:#1d2026;--panel2:#242831;--deep:#111318;--line:#303641;--line2:#3c434f;--text:#ebedf2;--muted:#98a1af;--accent:#27b5a7;--accent2:#53d3c5;--accent-bg:#173d3a;--danger:#e16d73;--shadow:0 20px 70px rgba(0,0,0,.55);font-family:Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;font-size:13px}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--text)}button,select,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:transparent}button:disabled{cursor:not-allowed;opacity:.35}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent2);outline-offset:2px}svg{height:18px;width:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.symbols{position:absolute;width:0;height:0;overflow:hidden}.app{height:100vh;height:100dvh;display:flex;flex-direction:column;min-height:0}.topbar{height:48px;min-height:48px;display:flex;align-items:center;background:#1b1e24;border-bottom:1px solid #31363d;padding:0 13px 0 17px;gap:22px}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;user-select:none}.brandicon{width:32px;height:32px;flex-shrink:0;display:block;filter:drop-shadow(0 2px 6px #0ad3ba18)}.brandname{font-weight:750;letter-spacing:-.8px;font-size:18px}.brandname>span{color:var(--accent2)}.brandname small{font-size:10px;color:#6e7682;font-weight:700;letter-spacing:0}.menubar{display:flex;align-items:stretch;gap:1px;height:100%}.menubar button{padding:0 11px;color:#c7cbd4;font-size:12.5px}.menubar button:hover,.menubar button.active{background:#2c333a;color:#fff}.topbar-end{display:flex;align-items:center;gap:12px;margin-left:auto}.local-tag{color:#a6b3bd;font-size:11px;border:1px solid #3c464d;padding:4px 9px;border-radius:999px}.topbar-end select{width:57px;background:#262b32;border:1px solid #404752;color:#e2e7ee;padding:5px;border-radius:6px}.version{color:#7e8996;font-size:11px}.quickbar{height:46px;min-height:46px;background:#23262c;border-bottom:1px solid #363b45;display:flex;align-items:center;padding:0 14px;gap:6px}.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:6px;color:#bbc5d1}.iconbtn:hover:not(:disabled){background:#353c45;color:white}.sep{display:inline-block;width:1px;height:23px;background:#39404a;margin:0 7px}.webbtn{display:inline-flex;align-items:center;gap:9px;border:1px solid #3c5958;padding:6px 12px;border-radius:6px;background:#1c3332;color:#a3ede3;font-size:12px;font-weight:600}.webbtn:hover{background:#24514c}.context{display:flex;align-items:center;margin-left:18px;gap:12px;color:#aab3be}.tool-caption{font-size:12px}.mini-primary{padding:5px 12px;border-radius:5px;background:#259d93;color:#fff}.smallbtn{border:1px solid #404955;border-radius:5px;padding:5px 10px}.body-grid{display:grid;grid-template-columns:53px minmax(0,1fr) 247px;min-height:0;flex:1}.toolbar{background:#1c1f25;border-right:1px solid #353941;display:flex;align-items:center;gap:8px;padding:13px 5px;flex-direction:column}.tool{height:39px;width:39px;display:grid;place-items:center;border-radius:8px;position:relative;color:#abb4c1}.tool svg{height:22px;width:22px}.tool>span{position:absolute;right:4px;bottom:3px;font-size:8px;color:#78818d}.tool:hover{background:#313842;color:white}.tool.active{background:#154b48;border:1px solid #36897d;color:#8af1df}.toolbar-fill{flex:1}.editor-pane{display:flex;flex-direction:column;min-width:0;min-height:0}.tabs{display:flex;flex-shrink:0;height:37px;background:#1a1d23;border-bottom:1px solid #353941;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#515b64 transparent}.tab{display:flex;align-items:center;gap:8px;min-width:110px;max-width:230px;padding:0 8px 0 12px;background:#23272e;border-right:1px solid #343a44;color:#a7afbc;white-space:nowrap;font-size:12px}.tab.active{background:#30353d;color:#f0f4fa;box-shadow:inset 0 2px var(--accent)}.tab>svg{width:14px;height:14px;color:#6eabad}.tab .tab-name{max-width:160px;overflow:hidden;text-overflow:ellipsis}.tab .dirty{color:#f0ad6b;margin-left:-5px}.tab .tab-close{width:21px;height:21px;border-radius:4px;display:grid;place-items:center;margin-left:auto;flex-shrink:0}.tab .tab-close svg{width:12px;height:12px}.tab .tab-close:hover{background:#4a4f56}.tab-add{flex-shrink:0;width:38px;border-right:1px solid #343a44;color:#8e9ba9;font-size:21px}.tab-add:hover{color:#fff;background:#2d343a}.stage{min-height:0;position:relative;flex:1;overflow:auto;background:#171a20;scrollbar-color:#4b525e #232730;background-image:radial-gradient(#252a31 1px,transparent 1px);background-size:22px 22px}.empty{position:absolute;inset:0;min-width:280px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:35px;color:#b7becb}.empty-art{width:150px;height:130px}.empty-art svg{width:100%;height:100%;stroke:none}.empty h1{font-size:21px;color:#f4f7fa;margin:14px 0 7px;letter-spacing:-.3px}.empty p{max-width:430px;line-height:1.7;margin:0 0 24px;color:#8793a4}.empty-actions{display:flex;gap:10px}.primary,.secondary{display:inline-flex;align-items:center;gap:9px;border-radius:7px;padding:10px 15px;font-weight:600}.primary{background:#2cb5a7;color:#072321}.primary:hover{background:#5cd7c9}.secondary{border:1px solid #525e68;color:#e3e7f0;background:#2d323b}.secondary:hover{background:#3e4650}.kbd-hint{margin-top:18px;color:#67717f;font-size:11px}.canvas-pad{min-height:100%;min-width:100%;display:flex;align-items:center;justify-content:center;padding:50px;position:relative}.canvas-wrap{position:relative;flex-shrink:0;box-shadow:0 12px 65px #0008;background-color:#fff;background-image:linear-gradient(45deg,#dadce0 25%,transparent 25%),linear-gradient(-45deg,#dadce0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dadce0 75%),linear-gradient(-45deg,transparent 75%,#dadce0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;outline:1px solid #646b73}.canvas-wrap canvas{position:absolute;top:0;left:0;display:block;image-rendering:auto}.canvas-wrap #overlay{z-index:2;touch-action:none}.drop-overlay{z-index:10;position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;background:#102c2bef;border:2px dashed #4ce0d0;color:#adfff4;font-size:20px;font-weight:600;pointer-events:none}.drop-overlay svg{width:58px;height:58px}.statusbar{background:#21252c;height:31px;min-height:31px;border-top:1px solid #363b45;display:flex;align-items:center;justify-content:space-between;padding:0 13px;font-size:11px;color:#8795a2}.status-right{display:flex;align-items:center;gap:9px;color:#bec8d3}.statusbar .sep{height:15px;margin:0 5px}.status-zoom{background:#303640;border-radius:4px;width:19px;height:19px;font-weight:700}.status-zoom:hover{background:#464f5b}.status-fit{color:#a9d8d1;padding:2px 6px}.sidebar{background:#202329;border-left:1px solid #363c44;display:flex;flex-direction:column;min-height:0}.sidebar-tabs{display:flex;height:36px;border-bottom:1px solid #353941}.sidebar-tab{padding:0 18px;font-size:12px;color:#d8e1e8}.sidebar-tab.active{border-bottom:2px solid var(--accent2);font-weight:600}.layers-title{display:flex;justify-content:space-between;align-items:center;padding:14px 15px 10px;color:#bec7d2;font-size:12px;font-weight:650}.pill{background:#363e47;padding:2px 8px;border-radius:10px;font-weight:450;font-size:11px}.layers-list{min-height:110px;overflow-y:auto;flex:1;padding:0 6px}.layer{display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:6px;padding:8px 7px;margin:2px 0;cursor:pointer;color:#bac4d0}.layer.active{background:#314842;border-color:#3d6c65;color:#effffc}.layer:hover:not(.active){background:#2c323b}.layer-eye{display:grid;place-items:center;width:22px;height:26px;flex-shrink:0}.layer-eye svg{width:15px}.layer-eye.hidden-eye{opacity:.3}.layer-thumb{height:38px;width:45px;object-fit:contain;background:#323945;border:1px solid #535b65;border-radius:3px}.layer-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.layer-lock{font-size:10px;color:#84939c}.layers-actions{height:42px;display:flex;gap:10px;align-items:center;justify-content:center;border-top:1px solid #353b45;border-bottom:1px solid #353b45}.properties{padding:14px 15px;display:flex;flex-direction:column;gap:14px}.prop-title{text-transform:uppercase;letter-spacing:1px;color:#758391;font-size:10px;font-weight:750}.prop-row{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8e99a8;font-size:11px}.prop-row strong{font-weight:550;color:#ced7e1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:135px}.prop-row input{width:84px;accent-color:var(--accent)}.prop-row output{font-size:10px;min-width:28px;color:#c6d2da}.sidebar-bottom{margin-top:auto;border-top:1px solid #363c44;padding:12px;font-size:10px;color:#778894;display:flex;align-items:center;gap:8px}.dot-online{background:#4acbb5;height:7px;width:7px;border-radius:100%}.menu-host{position:fixed;z-index:30;min-width:225px;max-height:75vh;overflow-y:auto;background:#292e36;border:1px solid #4d5561;border-radius:8px;box-shadow:var(--shadow);padding:6px}.menu-host .menuitem{display:flex;width:100%;padding:9px 11px;text-align:left;align-items:center;justify-content:space-between;border-radius:5px;gap:30px;font-size:12px}.menu-host .menuitem:hover:not(:disabled){background:#3f4f58}.menu-host .shortcut{color:#8b98a6;font-size:10px;white-space:nowrap}.menu-host .menudiv{height:1px;background:#434b56;margin:5px}.modal-host{position:fixed;z-index:40;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:#080b10be;backdrop-filter:blur(4px)}.modal{background:#252a32;border:1px solid #48515d;border-radius:12px;box-shadow:var(--shadow);max-height:min(91vh,920px);width:min(440px,100%);display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:min(980px,100%)}.modal-head{height:51px;display:flex;align-items:center;padding:0 19px;border-bottom:1px solid #404751;justify-content:space-between;flex-shrink:0}.modal-head strong{font-size:15px}.modal-close{width:29px;height:29px;border-radius:5px;display:grid;place-items:center;color:#aab7c4}.modal-close:hover{background:#424b56;color:#fff}.modal-close svg{width:15px;height:15px}.modal-body{padding:20px;overflow-y:auto}.modal-footer{padding:13px 20px;border-top:1px solid #414954;display:flex;justify-content:flex-end;gap:10px}.modal-footer button{padding:9px 15px;border-radius:6px;background:#353d47;border:1px solid #525a66;font-size:12px}.modal-footer button.primary-action{background:#25b5a6;color:#0b2220;border-color:#25b5a6;font-weight:700}.modal-footer button:hover{filter:brightness(1.15)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#c0cbd7}.field input,.field select{background:#191d23;color:#edf2f7;border:1px solid #505b68;padding:9px 11px;border-radius:6px;width:100%;min-width:0}.field input[type=range]{padding:0;accent-color:var(--accent2)}.field-row{display:flex;align-items:center;gap:9px}.field-row input[type=checkbox]{width:auto;accent-color:var(--accent2)}.field .hint{color:#8995a4;font-size:11px}.info-note{color:#8a99a6;font-size:11px;line-height:1.6;margin-top:13px}.form-stack{display:flex;flex-direction:column;gap:16px}.warning{padding:12px;border-radius:6px;background:#44362a;color:#f3c7a6;font-size:12px;line-height:1.5}.export-body{display:grid;grid-template-columns:minmax(0,1fr) 263px;gap:17px;min-height:385px}.export-preview{border:1px solid #454f5c;border-radius:7px;min-width:0;background:#171b22;display:flex;flex-direction:column;overflow:hidden}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;border-bottom:1px solid #3c444d;font-size:11px;color:#b9c5d1;gap:9px}.preview-toolbar select{width:113px;background:#2e343d;color:#e3e8ee;border:1px solid #505963;padding:5px;border-radius:5px}.preview-stage{display:grid;grid-template-columns:1fr 1fr;flex:1;gap:1px;min-height:275px;background:#414a54}.preview-stage.one{grid-template-columns:1fr}.preview-pane{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#191c21}.preview-pane .preview-title{text-align:center;background:#252a32;padding:7px;font-size:11px;color:#a8b2c0}.preview-frame{display:flex;align-items:center;justify-content:center;flex:1;overflow:auto;padding:12px}.preview-frame img{max-width:100%;max-height:320px;object-fit:contain;box-shadow:0 4px 12px #0006}.preview-metrics{padding:7px 10px;text-align:center;background:#252a32;font-size:10px;color:#8e9da9}.export-options{display:flex;flex-direction:column;gap:15px}.export-options .field{gap:6px}.export-options input[type=range]{cursor:pointer}.export-options output{color:#87e3d8}.export-options .dimgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-options .check{flex-direction:row;align-items:center}.export-options .export-size{border-top:1px solid #424a54;padding-top:15px;color:#b9c8d3;font-size:12px}.export-size strong{color:#7fe4d6;font-size:15px;display:block;margin-top:5px}.toast-host{position:fixed;z-index:80;bottom:40px;left:50%;transform:translateX(-50%);pointer-events:none}.toast{background:#374c48;color:#e7fff9;border:1px solid #4d887e;box-shadow:var(--shadow);padding:10px 17px;border-radius:7px;margin-top:7px;white-space:nowrap;font-size:12px}.toast.error{background:#503438;border-color:#a25a61}.help{line-height:1.85;color:#aebcc9;font-size:12px}.help code{padding:2px 6px;border-radius:4px;background:#1a1d23;color:#e1f8ef}.help h3{color:#f2f5f7}.help p{margin:0 0 12px}[hidden]{display:none!important}@media(max-width:1060px){.body-grid{grid-template-columns:48px minmax(0,1fr) 205px}.topbar{gap:10px}.menubar button{padding:0 7px}.brandname{font-size:16px}.local-tag{display:none}}@media(max-width:760px){.body-grid{grid-template-columns:43px minmax(0,1fr)}.sidebar{display:none}.menubar{overflow-x:auto}.topbar{height:42px;min-height:42px}.topbar-end{gap:4px}.brandname{display:none}.quickbar{padding:0 6px}.webbtn span{display:none}.context{margin-left:3px}.tool{width:34px;height:34px}.toolbar{padding:10px 3px}.modal.wide{width:100%}.export-body{grid-template-columns:1fr;max-height:75vh}.export-preview{min-height:250px}.export-options{display:grid;grid-template-columns:1fr 1fr}.canvas-pad{padding:23px}.statusbar{padding:0 6px}}

/* V0.2.0 - selection tool context controls */
.context{margin-left:12px;gap:9px;min-width:0}.tool-caption{white-space:nowrap}.selection-controls{display:flex;align-items:center;gap:11px;min-width:0;flex-wrap:nowrap}.context-option{display:flex;align-items:center;gap:7px;font-size:11px;color:#b5c4cd;white-space:nowrap}.context-option select{width:100px;background:#191f25;border:1px solid #49545c;color:#eaf4f4;border-radius:5px;padding:5px}.context-option input[type=range]{width:92px;accent-color:var(--accent2);cursor:pointer}.context-option output{min-width:22px;color:#a6eee4;text-align:right}.context-check{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px;color:#aebbc8;cursor:pointer}.context-check input{accent-color:var(--accent2);margin:0}.toolbar{gap:6px;padding-top:10px}.toolbar .tool{height:38px}
@media(max-width:1280px){.context-option input[type=range]{width:58px}.selection-controls{gap:7px}.quickbar{padding:0 8px;gap:4px}.context{margin-left:4px;gap:6px}.context-option select{width:88px}}
@media(max-width:1040px){.selection-controls{overflow-x:auto;scrollbar-width:thin}.context{flex:1}.selection-controls{max-width:calc(100vw - 495px)}}
@media(max-width:760px){.selection-controls{max-width:calc(100vw - 245px)}.context-option>span,.context-check span{font-size:10px}.tool-caption{display:none}}

.brandicon{stroke:none}

/* FreshPixels V0.2.1 - movable Photoshop-style dialogs and sharp live preview */
.modal-host{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.modal-head{cursor:move;user-select:none;touch-action:none}
.modal-head button{cursor:pointer}
.modal{box-shadow:0 18px 70px rgba(0,0,0,.82),0 0 0 1px rgba(255,255,255,.04)}
.clipboard-note{color:#86dace;margin:0}
.canvas-wrap #overlay{user-select:none;-webkit-user-select:none}

/* V0.3.0: Photoshop-like painting tools and contextual controls */
.toolbar{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#394650 transparent}
.tool-separator{width:27px;height:1px;min-height:1px;background:#48535d;margin:3px auto}
.paint-controls{display:flex;align-items:center;gap:9px;min-width:0;overflow-x:auto;scrollbar-width:thin}
.paint-controls .context-option input[type=range]{width:95px;accent-color:#35cebd;cursor:pointer}
.paint-controls .context-option output{min-width:27px}
.color-swatches{width:40px;height:42px;position:relative;flex-shrink:0;margin:4px auto 0}
.color-swatches input[type=color]{position:absolute;width:28px;height:28px;padding:1px;border:1px solid #a9b3bd;border-radius:3px;cursor:pointer;background:#1e242a}
.color-swatches #bgColor{right:0;bottom:0;z-index:1}
.color-swatches #fgColor{left:0;top:0;z-index:2}
.color-shortcuts{display:flex;justify-content:center;align-items:center;width:42px;margin:0 auto 4px}
.color-shortcuts button{padding:2px 5px;color:#adb8c6;font-size:13px}
.color-shortcuts button:hover{color:#fff}
@media(max-width:1250px){.paint-controls .context-option input[type=range]{width:70px}}
@media(max-width:960px){.paint-controls{max-width:calc(100vw - 400px)}}
@media(max-width:760px){.paint-controls{max-width:calc(100vw - 220px)}.paint-controls .context-option input[type=range]{width:50px}}

/* FreshPixels V0.3.1: compact Photoshop-like monochrome toolbar and true context menus. */
.toolbar{background:#303136;border-right:1px solid #55575a;gap:3px;padding:7px 3px;scrollbar-color:#5e6267 transparent}
.toolbar .tool{width:37px;height:36px;min-height:36px;border-radius:3px;color:#d0d2d5;border:1px solid transparent;flex-shrink:0}
.toolbar .tool svg{height:21px;width:21px;stroke-width:1.35}
.toolbar .tool:hover{background:#50545a;color:#f5f5f6}
.toolbar .tool.active{background:#525c69;color:#fff;border:1px solid #626d7c}
.toolbar .tool>span{display:none}
.toolbar .tool.has-group::after{content:'';position:absolute;right:2px;bottom:2px;width:0;height:0;border-style:solid;border-width:0 0 5px 5px;border-color:transparent transparent #abb5bf transparent}
.toolbar .tool-separator{width:31px;margin:5px auto;background:#61636b}
.toolbar .color-swatches{margin-top:6px}
.toolbar .tool svg path[fill="currentColor"]{stroke:none;fill:currentColor}
.right-menu{position:fixed;z-index:36;min-width:225px;max-width:min(360px,calc(100vw - 12px));max-height:calc(100vh - 14px);overflow-y:auto;background:#2b2c30;border:1px solid #62656d;border-radius:3px;padding:5px 0;box-shadow:0 9px 34px #000a;scrollbar-width:thin}
.right-item{display:flex;align-items:center;text-align:left;gap:7px;width:100%;min-height:29px;padding:5px 13px 5px 4px;line-height:1.2;font-size:12px;color:#e3e5e8;white-space:nowrap}
.right-item:hover:not(:disabled),.right-item:focus-visible{background:#406391;color:#fff;outline:none}
.right-item:disabled{color:#82858d;opacity:.57;cursor:default}
.right-check{width:20px;min-width:20px;text-align:center;font-weight:800;color:#e2e8f0}
.right-label{flex:1;overflow:hidden;text-overflow:ellipsis;max-width:255px}
.right-shortcut{font-size:10px;color:#adb1bb;margin-left:16px}
.right-item:hover .right-shortcut{color:#dfe7f7}
.right-heading{font-size:11px;padding:7px 10px 5px 11px;color:#afbac8;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:310px}
.right-divider{height:1px;background:#555860;margin:5px 7px}
@media(max-width:760px){.toolbar .tool{width:33px;height:33px;min-height:33px}.toolbar .tool svg{width:19px;height:19px}.right-menu{min-width:185px}.right-item{min-height:34px}}

/* V0.4.0: editable text and vector shapes, compact Photoshop-like controls. */
.vector-controls{display:flex;align-items:center;gap:10px;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.vector-controls .context-option select{max-width:140px}
.vector-controls .context-option input[type=number]{width:68px;background:#1b2027;color:#e7ecef;border:1px solid #59626c;border-radius:3px;padding:4px}
.vector-controls .context-option input[type=color]{padding:1px;width:31px;height:26px;background:#252b32;border:1px solid #59626c;cursor:pointer}
.vector-controls .context-check{font-size:11px}
.vector-toggle{border:1px solid #56606a;border-radius:3px;min-width:28px;height:27px;padding:2px 6px;color:#d3dbe4}
.vector-toggle:hover,.vector-toggle.pressed{background:#417e83;color:#fff;border-color:#56acb5}
.layer-kind{font-size:14px;display:inline-grid;place-items:center;margin-right:6px;color:#9de1df;font-family:Arial,sans-serif;min-width:13px}
.inline-text-host{position:fixed;z-index:45;display:flex;flex-direction:column;min-width:260px;width:min(480px,calc(100vw - 18px));max-height:75vh;box-shadow:0 12px 35px #000c;border:1px solid #6bcfc5;border-radius:3px;background:#202329;padding:5px}
.inline-text-host textarea{display:block;box-sizing:border-box;background:#f5f6fa;color:#202020;border:1px solid #7c9da3;border-radius:2px;min-height:85px;max-height:47vh;width:100%;padding:7px;resize:both;line-height:1.2;outline-color:#27c1b4}
.inline-text-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:6px 3px 2px;font-size:10px;color:#aab7bf}
.inline-text-actions span{margin-right:auto}
.inline-text-actions button{background:#39424a;padding:6px 10px;border:1px solid #65717c;border-radius:3px;color:#f3f8f9;font-size:11px}
.inline-text-actions button.primary-action{background:#2fb2a5;color:#07211e;border-color:#2fb2a5;font-weight:700}
@media(max-width:900px){.vector-controls{max-width:calc(100vw - 390px)}.vector-controls .context-option span{display:none}}
@media(max-width:760px){.vector-controls{max-width:calc(100vw - 210px)}}

/* FreshPixels V0.4.1: proportional size slider, light/dark themes and user-friendly export fields. */
.theme-toggle{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-width:88px;height:29px;border:1px solid #4b5962;border-radius:6px;padding:0 8px;background:#2a323a;color:#d5e1e7;font-size:11px;white-space:nowrap}
.theme-toggle:hover{background:#384650;border-color:#5d908c}
.theme-toggle .theme-icon{width:15px;height:15px;stroke-width:1.9;flex-shrink:0}
.theme-toggle .theme-moon{fill:currentColor;stroke:currentColor}
.theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-sun{display:block}
html[data-theme="light"] .theme-toggle .theme-moon{display:none}
.resize-scale-field input[type=range]{cursor:pointer}
.resize-scale-field.is-disabled{opacity:.42}
.resize-scale-field output{font-variant-numeric:tabular-nums;color:var(--accent2)}
.author-credit{margin-top:13px;padding:10px 12px;border-top:1px solid var(--line2);color:var(--text)}
.author-credit a{color:var(--accent2);text-decoration:underline;text-underline-offset:2px}
.author-credit a:hover{color:#21a99d}
@media(max-width:980px){.topbar-end{gap:6px}.theme-toggle{min-width:33px;padding:0 7px}.theme-toggle span{display:none}}

html[data-theme="light"]{color-scheme:light;--bg:#e9edf2;--panel:#f8fafc;--panel2:#edf1f5;--deep:#dce2e8;--line:#c6cdd7;--line2:#acb7c5;--text:#202936;--muted:#667486;--accent:#14796f;--accent2:#14796f;--accent-bg:#d8f1eb;--danger:#a92f37;--shadow:0 14px 45px rgba(34,48,65,.2)}
html[data-theme="light"] .topbar{background:#f7f9fc;border-bottom-color:#bec8d2}
html[data-theme="light"] .brandname small{color:#647386}
html[data-theme="light"] .menubar button{color:#293644}
html[data-theme="light"] .menubar button:hover,html[data-theme="light"] .menubar button.active{color:#102d33;background:#dce8e9}
html[data-theme="light"] .local-tag{color:#526478;border-color:#b8c4d1}
html[data-theme="light"] .topbar-end select{background:#fff;color:#2c3846;border-color:#b1bac7}
html[data-theme="light"] .theme-toggle{background:#f5f9fa;border-color:#b2c0cd;color:#344d58}
html[data-theme="light"] .theme-toggle:hover{background:#e1efee;border-color:#7aa8a3}
html[data-theme="light"] .version{color:#607387}
html[data-theme="light"] .quickbar{background:#f5f7fa;border-bottom-color:#bdc7d2}
html[data-theme="light"] .iconbtn{color:#455666}
html[data-theme="light"] .iconbtn:hover:not(:disabled){color:#103c3c;background:#dcebed}
html[data-theme="light"] .sep{background:#b9c4d1}
html[data-theme="light"] .webbtn{color:#11645e;border-color:#99c9c4;background:#e0f5f1}
html[data-theme="light"] .webbtn:hover{background:#cbebe4}
html[data-theme="light"] .context{color:#4d6170}
html[data-theme="light"] .smallbtn{border-color:#b0bfcc}
html[data-theme="light"] .toolbar{background:#e6e9ee;border-right-color:#b6c0c9;scrollbar-color:#adb5bf transparent}
html[data-theme="light"] .toolbar .tool{color:#495462}
html[data-theme="light"] .toolbar .tool:hover{background:#ccd6df;color:#1b2631}
html[data-theme="light"] .toolbar .tool.active{background:#b9d9d5;border-color:#6d9e9a;color:#104d49}
html[data-theme="light"] .toolbar .tool.has-group::after{border-bottom-color:#657386}
html[data-theme="light"] .toolbar .tool-separator{background:#abb6c3}
html[data-theme="light"] .color-swatches input[type=color]{background:#f8f9fb;border-color:#8e9bab}
html[data-theme="light"] .color-shortcuts button{color:#667684}
html[data-theme="light"] .color-shortcuts button:hover{color:#21434b}
html[data-theme="light"] .tabs{background:#e4e9ef;border-bottom-color:#b9c4ce;scrollbar-color:#adb7c2 transparent}
html[data-theme="light"] .tab{background:#edf1f5;border-right-color:#c4ccd5;color:#536170}
html[data-theme="light"] .tab.active{background:#fff;color:#1c2a39}
html[data-theme="light"] .tab .tab-close:hover{background:#dce6ec}
html[data-theme="light"] .tab-add{border-right-color:#c2ccd5;color:#596d7d}
html[data-theme="light"] .tab-add:hover{background:#d8e2e9;color:#263741}
html[data-theme="light"] .stage{background:#d3d9e0;background-image:radial-gradient(#b7c1cb 1px,transparent 1px);scrollbar-color:#9baaba #d5dbe2}
html[data-theme="light"] .empty{color:#546472}
html[data-theme="light"] .empty h1{color:#263849}
html[data-theme="light"] .empty p{color:#647586}
html[data-theme="light"] .secondary{color:#304354;background:#f3f6f8;border-color:#bac7d0}
html[data-theme="light"] .secondary:hover{background:#e4ecf1}
html[data-theme="light"] .kbd-hint{color:#586c7c}
html[data-theme="light"] .statusbar{background:#eef2f6;border-top-color:#b9c5d0;color:#596b7c}
html[data-theme="light"] .status-right{color:#314d5a}
html[data-theme="light"] .status-zoom{background:#dce4ed;color:#30404e}
html[data-theme="light"] .status-zoom:hover{background:#c6d3dd}
html[data-theme="light"] .status-fit{color:#116c64}
html[data-theme="light"] .sidebar{background:#f6f8fb;border-left-color:#c3ccd6}
html[data-theme="light"] .sidebar-tabs,html[data-theme="light"] .layers-actions{border-color:#c8d1d9}
html[data-theme="light"] .sidebar-tab,html[data-theme="light"] .layers-title{color:#384959}
html[data-theme="light"] .pill{background:#dee6ed;color:#3a4858}
html[data-theme="light"] .layer{color:#435264}
html[data-theme="light"] .layer:hover:not(.active){background:#e4ecf2}
html[data-theme="light"] .layer.active{background:#d5eee9;border-color:#9acbc2;color:#173b39}
html[data-theme="light"] .layer-thumb{background:#e5ebf1;border-color:#b8c5ce}
html[data-theme="light"] .prop-title{color:#617588}
html[data-theme="light"] .prop-row{color:#5a6c7c}
html[data-theme="light"] .prop-row strong,html[data-theme="light"] .prop-row output{color:#2c4051}
html[data-theme="light"] .sidebar-bottom{border-color:#c1ccd7;color:#647586}
html[data-theme="light"] .menu-host{background:#fff;color:#2f3b48;border-color:#b1bcc9}
html[data-theme="light"] .menu-host .menuitem:hover:not(:disabled){background:#d8eae6}
html[data-theme="light"] .menu-host .shortcut{color:#6c7c8d}
html[data-theme="light"] .menu-host .menudiv{background:#d0dae2}
html[data-theme="light"] .right-menu{background:#fdfefe;border-color:#acb9c6;box-shadow:0 9px 34px #3345}
html[data-theme="light"] .right-item{color:#2e3c48}
html[data-theme="light"] .right-item:hover:not(:disabled),html[data-theme="light"] .right-item:focus-visible{background:#d5ece8;color:#1b4340}
html[data-theme="light"] .right-item:disabled{color:#8b959f}
html[data-theme="light"] .right-check{color:#166c63}
html[data-theme="light"] .right-shortcut{color:#627383}
html[data-theme="light"] .right-heading{color:#536a7a}
html[data-theme="light"] .right-divider{background:#d4dce4}
html[data-theme="light"] .modal{background:#fcfdfe;border-color:#bbc7d2;box-shadow:0 18px 65px #28394c35}
html[data-theme="light"] .modal-head,html[data-theme="light"] .modal-footer{border-color:#d1d9e2}
html[data-theme="light"] .modal-close{color:#526477}
html[data-theme="light"] .modal-close:hover{background:#e2eaf0;color:#263b4a}
html[data-theme="light"] .modal-footer button:not(.primary-action){background:#e9eef2;border-color:#b8c5d0;color:#2e4050}
html[data-theme="light"] .field{color:#394b5b}
html[data-theme="light"] .field input:not([type=range]):not([type=checkbox]),html[data-theme="light"] .field select{background:#fff;color:#203446;border-color:#b5c2cf}
html[data-theme="light"] .info-note,html[data-theme="light"] .field .hint{color:#5d6e7e}
html[data-theme="light"] .warning{color:#ae4f44}
html[data-theme="light"] .export-preview{background:#e8edf2;border-color:#bfcad4}
html[data-theme="light"] .preview-toolbar{color:#425769;border-color:#c6d1dc}
html[data-theme="light"] .preview-toolbar select{background:#fff;color:#324a59;border-color:#b7c4d2}
html[data-theme="light"] .preview-stage{background:#c8d3db}
html[data-theme="light"] .preview-pane{background:#eef3f6}
html[data-theme="light"] .preview-pane .preview-title,html[data-theme="light"] .preview-metrics{background:#e2eaf0;color:#536677}
html[data-theme="light"] .export-options output,html[data-theme="light"] .export-size strong{color:#08766c}
html[data-theme="light"] .export-options .export-size{border-top-color:#c5cfd9;color:#415769}
html[data-theme="light"] .help{color:#405365}
html[data-theme="light"] .help code{background:#e6edf2;color:#22584e}
html[data-theme="light"] .help h3{color:#24394b}
html[data-theme="light"] .vector-controls .context-option input[type=number]{background:#fff;color:#2d4352;border-color:#a8b9c7}
html[data-theme="light"] .vector-controls .context-option input[type=color]{background:#fff;border-color:#a8b9c7}
html[data-theme="light"] .vector-toggle{color:#3a5362;border-color:#b5c2ce}
html[data-theme="light"] .vector-toggle:hover,html[data-theme="light"] .vector-toggle.pressed{background:#c6e8e3;color:#166a60;border-color:#91c4bb}
html[data-theme="light"] .layer-kind{color:#17786d}
html[data-theme="light"] .inline-text-host{background:#f3f7f9;border-color:#459e98;box-shadow:0 9px 33px #3245}
html[data-theme="light"] .inline-text-actions{color:#425e6a}
html[data-theme="light"] .inline-text-actions button:not(.primary-action){background:#e4ecf2;color:#314556;border-color:#b3c1cc}

/* FreshPixels V0.4.2 — size-in-pixels web export (retained). */
.web-pixel-sliders{display:flex;flex-direction:column;gap:11px;margin-top:-4px}
.web-pixel-sliders .field{gap:5px}
.web-pixel-sliders .field>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.web-pixel-sliders output{font-variant-numeric:tabular-nums;white-space:nowrap}
.web-pixel-sliders input[type=range]{width:100%;min-width:0;cursor:pointer}
@media(max-width:760px){.web-pixel-sliders{grid-column:1 / -1}.web-pixel-sliders .field>span{flex-wrap:wrap}}

.export-options .check input[type=checkbox]{width:auto;min-width:auto;flex:0 0 auto;margin:0 7px 0 0}

/* FreshPixels V0.4.3 — compact original icons and Photoshop-style bottom zoom slider. */
/* Restore the original filled Font Awesome SVG icons from V0.4.1; only button padding changes. */
.toolbar{gap:2px;padding:6px 2px}
.toolbar .tool{width:34px;height:32px;min-height:32px;padding:2px}
.toolbar .tool svg{width:21px;height:21px;stroke-width:1.35}
.toolbar .tool svg path[fill="currentColor"]{stroke:none;fill:currentColor}
.status-right{gap:7px;min-width:0}
.status-right .zoom-value{min-width:36px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.status-zoom-slider{appearance:none;-webkit-appearance:none;width:142px;max-width:22vw;min-width:74px;height:20px;flex:0 1 142px;cursor:pointer;background:transparent;touch-action:pan-x;margin:0 2px}
.status-zoom-slider::-webkit-slider-runnable-track{height:4px;background:#535d6b;border-radius:10px}
.status-zoom-slider::-moz-range-track{height:4px;background:#535d6b;border-radius:10px}
.status-zoom-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-5px;height:14px;width:11px;background:#82dacc;border:1px solid #c0f2e8;border-radius:3px;box-shadow:0 1px 2px #0008}
.status-zoom-slider::-moz-range-thumb{height:12px;width:10px;background:#82dacc;border:1px solid #c0f2e8;border-radius:3px;box-shadow:0 1px 2px #0008}
.status-zoom-slider:hover::-webkit-slider-thumb{background:#a7fff2}
.status-zoom-slider:hover::-moz-range-thumb{background:#a7fff2}
.status-zoom-slider:focus-visible{outline:2px solid #78e4d2;outline-offset:2px;border-radius:4px}
.status-zoom-slider:disabled{opacity:.4;cursor:not-allowed}
.statusbar #statusMessage{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme="light"] .status-zoom-slider::-webkit-slider-runnable-track{background:#a7b5c4}
html[data-theme="light"] .status-zoom-slider::-moz-range-track{background:#a7b5c4}
html[data-theme="light"] .status-zoom-slider::-webkit-slider-thumb{background:#228d83;border-color:#146e65;box-shadow:0 1px 2px #6679}
html[data-theme="light"] .status-zoom-slider::-moz-range-thumb{background:#228d83;border-color:#146e65;box-shadow:0 1px 2px #6679}
@media(max-width:760px){.toolbar .tool{width:32px;height:31px;min-height:31px;padding:2px}.toolbar .tool svg{width:19px;height:19px}.status-right{gap:5px}.status-zoom-slider{width:96px;max-width:24vw;min-width:62px;flex-basis:96px}}
@media(max-width:480px){.statusbar #sizeInfo,.statusbar .sep{display:none}.status-right .zoom-value{min-width:34px}.status-zoom-slider{max-width:24vw}.statusbar{gap:3px}}

/* FreshPixels V0.4.4 - Photoshop-style 1:1 web export inspector. */
.export-preview .preview-stage {min-height:280px;flex:1;}
.export-preview .preview-pane {min-height:0;}
.export-preview .preview-frame {
  position:relative;min-height:220px;flex:1;
  overflow:hidden;padding:0;display:block;
  background-color:#1f242b;
  background-image:linear-gradient(45deg,#2c333c 25%,transparent 25%),
    linear-gradient(-45deg,#2c333c 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#2c333c 75%),
    linear-gradient(-45deg,transparent 75%,#2c333c 75%);
  background-size:18px 18px;
  background-position:0 0,0 9px,9px -9px,-9px 0;
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
}
.export-preview .preview-frame.dragging {cursor:grabbing;}
.export-preview .preview-frame img {
  position:absolute;display:block;max-width:none;max-height:none;
  margin:0;padding:0;object-fit:fill;pointer-events:none;
  box-shadow:none;transform:none;user-select:none;-webkit-user-drag:none;
}
.web-preview-zoom {display:flex;align-items:center;gap:7px;padding:9px 10px;
  min-height:46px;border-top:1px solid #3c444d;background:#262c35;
  font-size:11px;color:#d1dce4;flex-shrink:0;}
.web-preview-zoom input[type=range] {min-width:55px;flex:1;max-width:100%;accent-color:var(--accent2);cursor:pointer;padding:0;}
.web-preview-zoom output {min-width:38px;text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:#8debdc;}
.web-preview-zoom button {border:1px solid #53606d;border-radius:4px;padding:5px 7px;line-height:1;
  background:#343c48;color:#ebf3f8;font-size:11px;flex-shrink:0;}
.web-preview-zoom button:hover {background:#45606a;}
.web-zoom-caption {font-size:11px;color:#b6c9d3;white-space:nowrap;}
.web-pan-help {background:#212731;padding:5px 10px;color:#9aa9b6;font-size:10px;
  border-top:1px solid #37404d;flex-shrink:0;}
html[data-theme="light"] .export-preview .preview-frame {
  background-color:#e4e9ee;
  background-image:linear-gradient(45deg,#d2dae2 25%,transparent 25%),
    linear-gradient(-45deg,#d2dae2 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#d2dae2 75%),
    linear-gradient(-45deg,transparent 75%,#d2dae2 75%);
}
html[data-theme="light"] .web-preview-zoom {background:#e4ebf1;border-color:#bfccd7;color:#41576a;}
html[data-theme="light"] .web-preview-zoom output {color:#087a6d;}
html[data-theme="light"] .web-preview-zoom button {background:#f7fafc;color:#374a5a;border-color:#b1bdc9;}
html[data-theme="light"] .web-preview-zoom button:hover {background:#cddce5;}
html[data-theme="light"] .web-zoom-caption {color:#41576a;}
html[data-theme="light"] .web-pan-help {background:#e9eff3;border-color:#c6d0da;color:#647384;}
@media(max-width:760px){
  .web-zoom-caption {display:none;}
  .web-preview-zoom {gap:4px;padding:8px 5px;}
  .web-preview-zoom button {padding:5px;}
  .export-preview .preview-frame {min-height:180px;}
  .export-preview .preview-stage {min-height:220px;}
}

.web-preview-updating {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-size:11px;padding:8px 12px;border-radius:6px;background:#1a252bea;
  border:1px solid #55746f;color:#b5f5e9;white-space:nowrap;pointer-events:none;z-index:2;}
html[data-theme="light"] .web-preview-updating {background:#e8f6f3ed;color:#216458;border-color:#87bdb2;}

/* V0.4.5: separate Original / Optimized views like Photoshop Save for Web. */
.export-preview .preview-stage {gap:12px;padding:10px;background:#242d38;}
.export-preview .preview-pane {border:1px solid #3c4955;border-radius:6px;min-width:0;}
html[data-theme="light"] .export-preview .preview-stage {background:#d9e2e8;}
html[data-theme="light"] .export-preview .preview-pane {border-color:#b5c3d1;}
@media(max-width:760px){.export-preview .preview-stage{gap:8px;padding:7px;}}

/* V0.4.6: editor home link, tab cursor and visible SEO introductory help */
.brand{color:inherit;text-decoration:none;cursor:pointer}
.brand:hover .brandname{filter:brightness(1.22)}
.brand:focus-visible{border-radius:4px;outline:2px solid var(--accent2);outline-offset:3px}
.tabs .tab,.tabs .tab .tab-name{cursor:pointer}
.tabs .tab .tab-close{cursor:pointer}
.search-intro{max-width:610px;margin-top:19px;padding:11px 15px;border:1px solid var(--line);border-radius:8px;background:var(--panel);text-align:left}
.search-intro h2{font-size:13px;line-height:1.5;margin:0 0 5px;color:var(--text)}
.search-intro p{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 7px}
.search-intro-links{font-size:11px}
.search-intro-links a{color:var(--accent2);text-underline-offset:3px}
@media(max-height:730px){.search-intro{max-width:510px;margin-top:7px;padding:7px 10px}.search-intro p{font-size:10px}}
@media(max-width:650px){.search-intro{max-width:95%;margin-top:12px}.search-intro p{font-size:10px}}

.web-size-comparison{display:grid;gap:8px}
.web-size-comparison>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.web-size-comparison .size-increased{color:#eeb06a}
.web-size-comparison strong{font-variant-numeric:tabular-nums}

/* FreshPixels 0.4.7: sample gallery on the empty canvas. */
.fp-samples{width:min(710px,calc(100% - 24px));margin:17px auto 5px;padding:13px;border-radius:12px;border:1px solid var(--border,#4c5564);background:rgba(55,83,95,.11);text-align:left}
.sample-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.sample-header strong{font-size:13px}.sample-main-btn{font-size:12px!important;padding:8px 12px!important;cursor:pointer}.sample-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.sample-card{border:1px solid rgba(130,145,160,.28);background:rgba(108,117,130,.12);padding:0;border-radius:8px;overflow:hidden;cursor:pointer;color:inherit;text-align:center;transition:border-color .15s,transform .15s}.sample-card:hover,.sample-card:focus-visible{border-color:#34c6b8;transform:translateY(-1px)}.sample-card img{width:100%;height:60px;object-fit:cover;display:block}.sample-card span{display:block;font-size:11px;padding:5px 2px}.sample-hint{font-size:11px!important;opacity:.72;margin:8px 0 0!important}
@media(max-width:740px){.sample-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sample-card img{height:60px}}
.tool-landing-focus{width:min(760px,100%);margin:15px auto 0;text-align:left;border:1px solid rgba(130,145,160,.3);padding:16px;border-radius:10px;background:rgba(70,110,120,.10);font-size:13px;line-height:1.55}.tool-landing-focus h2{font-size:16px;margin:0 0 8px}.tool-landing-focus p{margin:7px 0}.tool-landing-focus ul{padding-left:20px;margin:6px 0}.tool-landing-focus li{margin:4px 0}.tool-landing-focus .tool-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.tool-landing-focus .tool-links a{color:#4ad8ca;text-underline-offset:3px}.tool-landing-focus strong{color:inherit}
/* Long localized tool instructions and examples must scroll on small screens. */
.stage .empty:not([hidden]){position:relative;inset:auto;min-height:100%;height:auto;justify-content:flex-start;padding:20px 22px 32px}
.stage .empty .empty-art{flex-shrink:0}
.stage .empty .search-intro{flex-shrink:0}
@media(max-height:800px){.stage .empty:not([hidden]){padding-top:12px}.stage .empty .empty-art{max-height:88px}}


/* V0.4.15: desktop editor's initial screen fits without scrolling; always-visible tool shortcuts. */
.fp-header-tools{position:relative;flex:none;z-index:25;font-size:12px}
.fp-header-tools summary{cursor:pointer;display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid var(--line,#48515d);border-radius:6px;list-style:none;color:var(--text,#e2e6ec);white-space:nowrap}
.fp-header-tools summary::-webkit-details-marker{display:none}
.fp-header-tools summary svg{width:15px;height:15px}
.fp-header-tools[open] summary,.fp-header-tools summary:hover{background:var(--panel,#2d343d)}
.fp-header-tools nav{position:absolute;inset-inline-end:0;top:calc(100% + 7px);z-index:28;width:260px;max-height:min(80vh,490px);overflow:auto;padding:6px;background:var(--panel,#252a32);border:1px solid var(--line,#495160);border-radius:9px;box-shadow:0 14px 40px #0008;display:grid;gap:1px}
.fp-header-tools nav a{display:flex;align-items:center;gap:9px;font-size:12px;text-decoration:none;color:var(--text,#e5edf2);padding:9px;border-radius:5px}
.fp-header-tools nav a:hover{background:rgba(48,172,162,.18)}
.fp-header-tools nav svg{width:17px;height:17px;flex-shrink:0}
.stage .empty:not([hidden]){min-height:100%;height:auto;padding:10px 12px 12px;justify-content:center;gap:0}
.stage .empty .empty-art{height:57px;width:75px;flex:0 0 auto}
.stage .empty h1{font-size:clamp(16px,1.55vw,20px);margin:5px 0 3px;line-height:1.28}
.stage .empty>p{font-size:11px;line-height:1.45;max-width:610px;margin:0 0 10px}
.stage .empty .empty-actions{gap:8px}
.stage .empty .empty-actions button{padding:7px 11px;font-size:12px}
.stage .empty .kbd-hint{margin-top:7px;font-size:10px}
.stage .empty .fp-samples{width:min(690px,100%);margin:9px auto 0;padding:8px 10px}
.stage .empty .sample-header{margin-bottom:6px;gap:7px}
.stage .empty .sample-header strong{font-size:11px}
.stage .empty .sample-main-btn{font-size:10px!important;padding:5px 9px!important}
.stage .empty .sample-page-link{font-size:10px}
.stage .empty .sample-grid{gap:5px}
.stage .empty .sample-card img{height:39px}
.stage .empty .sample-card span{font-size:9px;padding:3px 2px}
.stage .empty .sample-hint{display:none}
.stage .empty .fp-shortcuts{width:min(690px,100%);max-width:690px;margin:8px 0 0;padding:9px 10px}
.fp-shortcuts h2{font-size:12px;margin:0 0 7px;line-height:1.25}
.fp-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.fp-shortcut{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;text-align:start;padding:7px 9px;min-height:32px;color:var(--text,#eef4fb)!important;border:1px solid var(--line,#42505d);border-radius:7px;background:rgba(110,133,145,.08);font-size:11px;text-decoration:none;line-height:1.2}
.fp-shortcut:hover{border-color:#2cb5a7;background:rgba(48,175,162,.13)}
.fp-shortcut svg{width:15px;height:15px;flex-shrink:0;color:var(--accent2,#59cfbf)}
.fp-shortcut span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-independent{font-size:9.5px!important;line-height:1.32!important;margin:7px 0 0!important;text-align:center;max-width:none!important;color:var(--muted,#96a6b5)!important}
@media(max-height:685px){.stage .empty:not([hidden]){padding:8px 10px;justify-content:flex-start}.stage .empty .empty-art{height:36px;width:51px}.stage .empty .fp-samples{margin-top:6px;padding:6px}.stage .empty .sample-card img{height:29px}.stage .empty .fp-shortcuts{margin-top:5px;padding:6px}}
@media(max-width:840px){.topbar{gap:8px;padding-inline:7px}.topbar-end{gap:5px}.local-tag{display:none}.fp-header-tools summary{padding:5px 6px}.fp-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage .empty:not([hidden]){justify-content:flex-start}}
@media(max-width:520px){.stage .empty .empty-art{display:none}.fp-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage .empty .sample-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fp-header-tools summary span{display:none}.fp-header-tools nav{width:min(270px,88vw)}}

/* V0.4.16 - distraction-free welcome, two-column tools and samples, draggable layers. */
.sidebar[hidden],.empty[hidden],.canvas-pad[hidden]{display:none!important}
.body-grid.fp-no-document{grid-template-columns:53px minmax(0,1fr)}
.stage .empty:not([hidden]){padding:18px 24px;justify-content:center;align-items:stretch;min-height:100%;height:auto}
.fp-landing-shell{width:min(1090px,100%);margin:auto;display:flex;flex-direction:column;gap:18px;text-align:start}
.fp-landing-hero{display:flex;align-items:center;justify-content:center;gap:17px;padding:0 14px;min-width:0}
.stage .empty .fp-landing-hero .empty-art{width:78px;height:73px;flex:none;filter:drop-shadow(0 6px 15px rgba(16,175,160,.19))}
.fp-landing-headings{min-width:0}
.stage .empty .fp-landing-hero h1{font-size:clamp(19px,2.15vw,26px);line-height:1.24;letter-spacing:-.45px;margin:0 0 5px;color:var(--text)}
.stage .empty .fp-landing-hero p{font-size:clamp(11px,1.12vw,13px);line-height:1.5;max-width:760px;margin:0;color:var(--muted)}
.fp-landing-columns{display:grid;grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);gap:18px;align-items:stretch}
.fp-work-card,.stage .empty .fp-landing-columns .fp-samples{width:100%;max-width:none;margin:0;min-width:0;border:1px solid #40515b;border-radius:14px;padding:18px 20px;background:linear-gradient(145deg,rgba(37,51,59,.95),rgba(25,33,42,.97));box-shadow:0 16px 38px rgba(0,0,0,.15)}
.fp-work-card{display:flex;flex-direction:column;gap:17px}
.fp-start-section{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.fp-panel-heading{display:flex;align-items:center;gap:9px;color:var(--text);font-size:13px;line-height:1.2}
.fp-panel-heading svg{color:var(--accent2);height:17px;width:17px}
.stage .empty .fp-start-section .empty-actions{display:flex;flex-wrap:wrap;gap:9px;margin:0}
.stage .empty .fp-start-section .empty-actions button{padding:10px 14px;font-size:12px;min-height:39px}
.stage .empty .fp-start-section .kbd-hint{margin:0;font-size:11px;color:var(--muted)}
.stage .empty .fp-work-card .fp-shortcuts{width:100%;max-width:none;margin:0;padding:15px 0 0;border:0;border-top:1px solid #3b4b55;border-radius:0;background:transparent}
.fp-work-card .fp-shortcuts h2{font-size:13px;margin:0 0 10px;font-weight:700;color:var(--text)}
.fp-work-card .fp-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fp-work-card .fp-shortcut{border:1px solid #42535d;border-radius:9px;background:rgba(19,33,40,.67);min-height:41px;padding:9px 10px;font-size:11px;line-height:1.3;transition:background .14s,border-color .14s,transform .14s}
.fp-work-card .fp-shortcut:hover{background:rgba(26,104,100,.32);border-color:#55c6b6;transform:translateY(-1px)}
.fp-work-card .fp-shortcut svg{width:18px;height:18px}
.fp-work-card .fp-shortcut span{white-space:normal;overflow:visible;text-overflow:clip}
.stage .empty .fp-work-card .fp-independent{font-size:10px!important;line-height:1.45!important;margin:11px 0 0!important;text-align:start;color:var(--muted)!important}
.stage .empty .fp-landing-columns .fp-samples{display:flex;flex-direction:column;gap:11px}
.stage .empty .fp-samples .sample-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0}
.stage .empty .fp-samples .sample-header strong{font-size:13px;font-weight:700;line-height:1.4;flex:1 1 170px;color:var(--text)}
.stage .empty .fp-samples .sample-main-btn{font-size:11px!important;padding:7px 10px!important;min-height:31px}
.stage .empty .fp-samples .sample-page-link{font-size:11px;line-height:1.25;order:3;width:100%;color:var(--accent2)}
.stage .empty .fp-samples .sample-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stage .empty .fp-samples .sample-card{border-radius:9px;background:rgba(114,134,144,.12);border-color:#455761}
.stage .empty .fp-samples .sample-card img{height:70px;width:100%;object-fit:cover}
.stage .empty .fp-samples .sample-card span{font-size:11px;line-height:1.25;padding:7px 4px;min-height:28px}
.stage .empty .fp-samples .sample-hint{display:block;font-size:11px!important;line-height:1.4!important;margin:0!important;color:var(--muted)!important;opacity:1}
.layer-order-hint{font-size:10px;color:var(--muted);padding:0 12px 8px;line-height:1.3}
.layer-grip{flex:0 0 15px;width:15px;height:30px;display:flex;align-items:center;justify-content:center;color:var(--muted);cursor:grab;touch-action:none;border-radius:3px;padding:0}
.layer-grip:active{cursor:grabbing}
.layer-grip svg{width:11px;height:18px;fill:currentColor;stroke:none}
.layer-dragging{opacity:.5}
.layer.layer-drop-before,.layer.layer-drop-after{position:relative}
.layer.layer-drop-before::before,.layer.layer-drop-after::after{content:"";position:absolute;left:3px;right:3px;height:3px;background:var(--accent2);border-radius:2px;z-index:3;pointer-events:none;box-shadow:0 0 9px rgba(47,211,193,.5)}
.layer.layer-drop-before::before{top:-3px}.layer.layer-drop-after::after{bottom:-3px}
html[data-theme="light"] .fp-work-card,html[data-theme="light"] .stage .empty .fp-landing-columns .fp-samples{background:linear-gradient(145deg,#fff,#f3f7fa);border-color:#c2d1dc;box-shadow:0 12px 27px rgba(30,58,73,.09)}
html[data-theme="light"] .fp-work-card .fp-shortcuts{border-top-color:#d5dfe7}
html[data-theme="light"] .fp-work-card .fp-shortcut{background:#f6fafb;border-color:#c4d4dc;color:#314b58!important}
html[data-theme="light"] .fp-work-card .fp-shortcut:hover{background:#e1f4f0}
html[data-theme="light"] .stage .empty .fp-samples .sample-card{background:#f2f6f8;border-color:#c6d3dc}
html[data-theme="light"] .stage .empty .fp-landing-hero h1,html[data-theme="light"] .fp-panel-heading,html[data-theme="light"] .fp-work-card .fp-shortcuts h2,html[data-theme="light"] .stage .empty .fp-samples .sample-header strong{color:#253947}
html[data-theme="light"] .stage .empty .fp-landing-hero p{color:#5a6e7b}
@media(max-height:730px) and (min-width:980px){
  .stage .empty:not([hidden]){padding:9px 16px}
  .fp-landing-shell{gap:9px}
  .stage .empty .fp-landing-hero .empty-art{width:58px;height:53px}
  .stage .empty .fp-landing-hero h1{font-size:18px}
  .stage .empty .fp-landing-hero p{font-size:10.5px}
  .fp-work-card,.stage .empty .fp-landing-columns .fp-samples{padding:12px 15px}
  .fp-work-card{gap:10px}
  .fp-work-card .fp-shortcuts{padding-top:10px!important}
  .fp-work-card .fp-shortcut{min-height:34px;padding:7px 9px}
  .stage .empty .fp-samples .sample-card img{height:56px}
  .stage .empty .fp-samples .sample-grid{gap:7px}
  .stage .empty .fp-samples .sample-card span{font-size:10px;padding:4px 2px;min-height:22px}
  .stage .empty .fp-samples .sample-hint{display:none}
}
@media(max-width:979px){
  .stage .empty:not([hidden]){padding:15px 14px;justify-content:flex-start}
  .fp-landing-shell{gap:14px}
  .fp-landing-columns{grid-template-columns:1fr;gap:12px}
  .fp-work-card,.stage .empty .fp-landing-columns .fp-samples{padding:15px}
  .stage .empty .fp-samples .sample-card img{height:80px}
}
@media(max-width:540px){
  .stage .empty:not([hidden]){padding:12px 9px}
  .fp-landing-hero{gap:9px;align-items:flex-start}
  .stage .empty .fp-landing-hero .empty-art{display:none}
  .stage .empty .fp-landing-hero h1{font-size:18px}
  .stage .empty .fp-landing-hero p{font-size:11px}
  .fp-work-card .fp-shortcut-grid{grid-template-columns:1fr 1fr;gap:6px}
  .stage .empty .fp-samples .sample-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stage .empty .fp-samples .sample-card img{height:90px}
}

/* V0.4.18: visible privacy information and local-only saved image library. */
.fp-privacy-footer{font-size:10px;color:#92e5d7;border:1px solid #3d6962;border-radius:16px;background:#193d38;padding:3px 9px;margin-left:10px;white-space:nowrap;max-width:34%;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.fp-privacy-footer:hover{background:#285b53}
.fp-privacy-pill{white-space:nowrap}
.fp-local-settings{font-size:12px;line-height:1.6;color:var(--text)}
.fp-local-status{font-weight:750;color:#80dacd}
#fpLocalRows{display:grid;gap:8px;max-height:49vh;overflow:auto}
.fp-local-row{display:flex;align-items:center;gap:10px;min-width:0;background:#1b222b;border:1px solid #48535b;border-radius:8px;padding:10px 12px}
.fp-local-row-info{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px}
.fp-local-row-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.fp-local-row-info small{font-size:10px;color:#aebac8}
.fp-local-row button,.fp-local-actions button{background:#34414a;color:#e3f5f3;border:1px solid #517273;border-radius:7px;padding:6px 11px;font-size:11px;white-space:nowrap}
.fp-local-row .fp-local-delete{border-color:#886666;color:#f2c3c3}
.fp-local-actions{margin-top:14px;display:flex;justify-content:flex-end}
.fp-local-empty{font-size:12px;color:var(--muted);text-align:center;padding:22px}
html[data-theme="light"] .fp-privacy-footer{background:#e3faf4;color:#166a61;border-color:#a2ccc3}
html[data-theme="light"] .fp-local-row{background:#f1f6f9;border-color:#bfced7}
html[data-theme="light"] .fp-local-row-info small{color:#566977}
html[data-theme="light"] .fp-local-row button,html[data-theme="light"] .fp-local-actions button{background:#e2f0ef;color:#215c55;border-color:#96c7bf}
@media(max-width:760px){.fp-privacy-footer{font-size:9px;margin-left:5px;max-width:28%}}
@media(max-width:480px){.fp-privacy-footer{max-width:35%;padding:2px 5px}.fp-local-row{flex-wrap:wrap}.fp-local-row-info{flex-basis:100%}}

/* V0.4.20: small legal/comparative text at bottom of initial work area only. */
.fp-bottom-about{margin:0 6px;font-size:10px;color:var(--muted, #8f9db0);line-height:1.3;text-align:center;opacity:.75}
