:root{--bg:#0b0e14;--panel:#121722;--panel2:#171e2b;--line:#252e3c;--muted:#8d99aa;--text:#eef2f8;--accent:#a7f36b;--accent2:#d4ff9e}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif}button{font:inherit;cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#0e121a;border-right:1px solid var(--line);padding:27px 17px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 38px}.brand b{display:block;font:700 18px 'Space Grotesk'}.brand small{font-size:8px;letter-spacing:1.6px;color:#82909f}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#687587;padding:0 11px 11px;margin-top:10px}.nav-item{width:100%;border:0;background:transparent;color:#aab4c3;text-align:left;padding:12px 12px;border-radius:9px;margin:2px 0;font-size:12px;display:flex;gap:12px;align-items:center}.nav-item span{font-size:17px;width:18px;text-align:center}.nav-item.active,.nav-item:hover{background:#1b2631;color:var(--accent)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 8px 0;color:#91a0af;font-size:10px}.sidebar-bottom small{display:block;margin:10px 0 0 14px;color:#536071;font-size:8px;letter-spacing:1.3px}.status-dot,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-right:7px}.main{margin-left:245px;padding:0 36px 22px;max-width:1800px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.crumb{font-size:11px;color:#8390a1}.crumb span{padding:0 9px;color:#536071}.crumb b{color:#e4eaf1}.top-actions{display:flex;align-items:center;gap:19px}.privacy{font-size:10px;color:#8996a6}.privacy i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:6px}.export-btn,.upload-btn{background:var(--accent);color:#11180d;border:0;border-radius:8px;padding:10px 14px;font-size:11px;font-weight:700}.mobile-brand{display:none}.welcome{display:flex;justify-content:space-between;align-items:flex-end;padding:35px 0 28px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:var(--accent);font-weight:700}.welcome h1{font:700 clamp(34px,4vw,52px)/1.02 'Space Grotesk';letter-spacing:-2px;margin:12px 0}.welcome h1 em{color:var(--accent);font-style:normal}.welcome p,.section-heading p,.compare-title p{font-size:12px;color:var(--muted);margin:0}.welcome-chip{font-size:9px;letter-spacing:1.4px;border:1px solid #344334;color:#b6c7ae;border-radius:20px;padding:9px 13px;margin-bottom:5px}.welcome-chip b{color:var(--accent);padding:0 5px}.editor-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(285px,.85fr);gap:20px}.section-heading,.compare-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.section-heading h2,.tool-card h2{font:600 17px 'Space Grotesk';margin:0 0 5px}.upload-btn{cursor:pointer;padding:10px 13px}.canvas-card,.compare-card,.tool-card,.stats-card,.tip-card{background:var(--panel);border:1px solid var(--line);border-radius:13px;overflow:hidden}.canvas-toolbar{height:42px;padding:0 14px;display:flex;align-items:center;font-size:8px;letter-spacing:1.3px;color:#8793a4;border-bottom:1px solid var(--line)}.toolbar-right{margin-left:auto;display:flex;gap:6px}.toolbar-right button{background:#1b2330;border:1px solid #2b3544;color:#aeb9c8;border-radius:5px;padding:5px 9px;font-size:9px}.image-stage{height:clamp(260px,37vw,480px);background-color:#0d121b;background-image:linear-gradient(45deg,#151c27 25%,transparent 25%),linear-gradient(-45deg,#151c27 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#151c27 75%),linear-gradient(-45deg,transparent 75%,#151c27 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:grid;place-items:center;position:relative;padding:12px}.image-stage>img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 12px 35px #0008}.empty-state{text-align:center}.upload-icon{width:46px;height:46px;border:1px dashed #637080;border-radius:13px;display:grid;place-items:center;font-size:23px;color:var(--accent);margin:0 auto 15px}.empty-state h3{font:600 16px 'Space Grotesk';margin:0 0 7px}.empty-state p{font-size:11px;color:var(--muted)}.choose-btn{display:inline-block;margin:10px 0;background:#253326;color:var(--accent);border:1px solid #49623d;border-radius:7px;padding:9px 13px;font-size:10px;cursor:pointer}.empty-state small{display:block;font-size:8px;color:#697687}.canvas-footer{height:36px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:#8290a1;font-size:9px}.compare-card{margin-top:16px;padding:15px}.compare-title h3,.stats-head h3{font:600 13px 'Space Grotesk';margin:0 0 4px}.preview-tag,.stats-head span{font-size:8px;letter-spacing:1.2px;color:var(--accent);border:1px solid #34452e;border-radius:20px;padding:5px 8px}.compare-images{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compare-images>div{background:#0c1119;border-radius:8px;padding:9px;min-width:0}.compare-images small{display:block;font-size:8px;letter-spacing:1.2px;color:#8290a1;margin-bottom:7px}.compare-images img{width:100%;height:105px;object-fit:contain}.tools-column{display:flex;flex-direction:column;gap:13px}.tool-card{padding:17px}.tool-card-head{display:flex;justify-content:space-between;align-items:center}.module-icon{color:var(--accent);font-size:22px}.tool-description{font-size:10px;color:var(--muted);line-height:1.6;margin:8px 0 16px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-action{background:#1a2230;border:1px solid #2a3545;border-radius:8px;padding:13px 10px;text-align:left;color:#dce4ee}.quick-action b{display:block;font-size:17px;color:var(--accent);margin-bottom:7px}.quick-action span{font-size:10px}.quick-action.selected{border-color:var(--accent);background:#202d22}.control-row{margin:13px 0}.control-row label{font-size:10px;color:#c5ced9;display:flex;justify-content:space-between;margin-bottom:8px}.control-row input[type=range]{width:100%;accent-color:var(--accent)}.control-row input[type=number],.control-row select{width:100%;background:#0e141e;border:1px solid #303b4b;border-radius:6px;color:#eaf0f7;padding:9px;font:11px 'DM Sans'}.tool-actions{display:flex;gap:8px;margin-top:18px}.secondary-btn,.apply-btn{border-radius:7px;padding:11px 10px;font-size:10px;font-weight:700}.secondary-btn{background:#1b2330;color:#aab5c4;border:1px solid #303a49}.apply-btn{flex:1;background:var(--accent);color:#12180d;border:0}.apply-btn span{float:right}.stats-card{padding:15px}.stats-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.stats-head span{font-size:7px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.stats-grid>div{background:#0d131d;border-radius:7px;padding:10px}.stats-grid small{display:block;color:#788698;font-size:8px;letter-spacing:1px}.stats-grid b{display:block;font:600 19px 'Space Grotesk';margin:5px 0 2px}.hist-mini{margin-top:18px}.hist-bars{height:58px;display:flex;align-items:flex-end;gap:3px;padding-top:5px}.hist-bars i{flex:1;min-width:2px;background:linear-gradient(0deg,#668d47,var(--accent));border-radius:2px 2px 0 0;opacity:.85}.hist-axis{display:flex;justify-content:space-between;align-items:center;margin-top:5px;color:#687789;font-size:7px;letter-spacing:.6px}.hist-meta{display:block;margin-top:8px;color:#788698;font-size:8px;letter-spacing:.25px}.hist-bars i{transition:height .25s ease,opacity .2s ease}.hist-bars i:hover{opacity:1;filter:brightness(1.15)}.tip-card{padding:13px;display:flex;gap:10px;background:#172018;border-color:#34452e}.tip-card>span{color:var(--accent);font-size:17px}.tip-card b{font-size:10px}.tip-card p{font-size:9px;line-height:1.55;color:#a5b09f;margin:5px 0 0}footer{text-align:center;color:#4e5a69;font-size:8px;letter-spacing:1.6px;padding:27px 0 5px}footer span{color:var(--accent)}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(20px);background:#d7ffad;color:#14200e;padding:11px 17px;border-radius:8px;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:.25s;z-index:20}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:950px){.sidebar{width:205px}.main{margin-left:205px;padding:0 22px}.editor-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,.9fr)}}
@media(max-width:700px){.sidebar{display:none}.main{margin:0;padding:0 14px 20px}.topbar{height:62px}.mobile-brand{display:flex;align-items:center;gap:8px;font:700 16px 'Space Grotesk'}.mobile-brand .brand-symbol{width:30px;height:30px;flex-basis:30px}.crumb{display:none}.top-actions{gap:0}.privacy{display:none}.export-btn{padding:9px 11px}.export-btn span{display:inline}.welcome{padding:25px 2px 21px;align-items:flex-start}.welcome h1{font-size:38px}.welcome p{max-width:250px;line-height:1.5}.welcome-chip{font-size:7px;padding:7px 9px;white-space:nowrap}.editor-grid{display:flex;flex-direction:column;gap:14px}.section-heading h2{font-size:16px}.section-heading p{font-size:10px}.upload-btn{font-size:10px;padding:9px}.image-stage{height:290px}.compare-images img{height:90px}.tools-column{display:flex}.tool-card{order:0}.stats-card{order:1}.tip-card{order:2}.tool-card{padding:15px}.quick-action{padding:11px}.tool-actions{position:sticky;bottom:8px;background:#121722;padding-top:8px}.stats-grid{grid-template-columns:repeat(4,1fr);gap:6px}.stats-grid>div{padding:8px 6px}.stats-grid b{font-size:15px}.stats-grid small{font-size:7px}.hist-bars{height:48px}.compare-card{padding:12px}.compare-title h3{font-size:12px}footer{font-size:7px}}


/* V3 canvas and responsive navigation refinements */
.mobile-nav{display:none}
.image-stage{min-height:300px;overflow:hidden}
.image-stage>img[hidden],.empty-state[hidden]{display:none!important}
.image-stage.has-image{height:clamp(300px,42vw,620px);padding:16px;background-color:#0b1018}
.image-stage.has-image .empty-state{display:none}
.image-stage.has-image>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;min-width:0;min-height:0;box-shadow:none}
.compare-images img{display:block;width:100%;height:125px;object-fit:contain}
button:focus-visible,.upload-btn:focus-visible,.choose-btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){
 .main{padding-left:12px;padding-right:12px}
 .topbar{height:60px}
 .mobile-nav{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;padding:9px 0 11px;margin:0 -12px 2px;padding-left:12px;padding-right:12px;border-bottom:1px solid var(--line);background:var(--bg);scrollbar-width:none;position:sticky;top:0;z-index:4}
 .mobile-nav::-webkit-scrollbar{display:none}
 .mobile-nav-item{flex:0 0 auto;min-height:36px;padding:8px 12px;border:1px solid #293342;border-radius:20px;background:#111823;color:#aeb9c8;font-size:10px;font-weight:600}
 .mobile-nav-item.active{background:#202d22;border-color:#587644;color:var(--accent)}
 .welcome{padding:22px 2px 18px;gap:10px}
 .welcome h1{font-size:clamp(34px,8vw,40px);letter-spacing:-1.5px}
 .welcome p{max-width:290px}
 .editor-grid{gap:13px}
 .image-stage{height:300px;min-height:260px}
 .image-stage.has-image{height:clamp(270px,76vw,390px);min-height:270px;padding:10px}
 .canvas-toolbar{height:42px}
 .compare-images{gap:8px}
 .compare-images>div{padding:8px}
 .compare-images img{height:100px}
 .tool-actions{position:static;bottom:auto;padding-top:0;background:transparent;gap:8px}
 .secondary-btn,.apply-btn{min-height:44px;font-size:11px}
 .quick-action{min-height:74px}
 .control-row input[type=range]{min-height:28px}
 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .stats-grid>div{padding:10px}
 .stats-grid b{font-size:18px}
 .stats-grid small{font-size:8px}
 .hist-bars{height:54px}
 footer{padding-top:22px}
}
@media(max-width:380px){
 .welcome-chip{display:none}
 .section-heading{align-items:flex-start;gap:8px}
 .upload-btn{white-space:nowrap}
 .compare-images img{height:82px}
 .tool-actions{flex-direction:column}
 .tool-actions .secondary-btn,.tool-actions .apply-btn{width:100%}
}


/* V4: independently scrollable desktop sidebar */
.sidebar{
 height:100vh;
 height:100dvh;
 overflow:hidden;
 padding-right:12px;
}
.sidebar .brand{flex:0 0 auto;}
.sidebar-scroll{
 flex:1 1 auto;
 min-height:0;
 overflow-y:auto;
 overflow-x:hidden;
 padding:0 3px 12px 0;
 overscroll-behavior:contain;
 scrollbar-width:thin;
 scrollbar-color:#3a4657 transparent;
 scroll-behavior:smooth;
}
.sidebar-scroll::-webkit-scrollbar{width:7px}
.sidebar-scroll::-webkit-scrollbar-track{background:transparent}
.sidebar-scroll::-webkit-scrollbar-thumb{background:#344152;border-radius:10px}
.sidebar-scroll::-webkit-scrollbar-thumb:hover{background:#526277}
.sidebar-scroll .nav-item{min-height:43px;flex:0 0 auto}
.sidebar-bottom{flex:0 0 auto;margin-top:12px;padding-top:14px;padding-bottom:3px}

/* V4: clear selected states for every module operation */
.control-row.active-control{
 background:#141d1b;
 border:1px solid #3b563b;
 border-radius:10px;
 padding:10px;
}
.module-option{
 width:100%;
 display:flex;
 align-items:center;
 gap:11px;
 padding:11px 12px;
 border:1px solid #2b3747;
 border-radius:9px;
 background:#1a2230;
 color:#e1e8f0;
 text-align:left;
 transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.module-option:hover{border-color:#70865a;background:#202b30}
.module-option:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.module-option.selected{
 border-color:var(--accent);
 background:linear-gradient(110deg,#233525,#1b2930);
 box-shadow:inset 3px 0 0 var(--accent),0 0 0 1px #a8f36a22;
}
.option-icon{
 width:30px;height:30px;flex:0 0 30px;
 display:grid;place-items:center;
 border-radius:8px;
 background:#111923;color:var(--accent);
 font-size:13px;
}
.module-option.selected .option-icon{background:#30452b;color:#c2ff91}
.option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.option-copy strong{font:600 11px 'DM Sans';color:#edf2f8}
.option-copy small{font-size:9px;line-height:1.35;color:#8f9daf}
.option-check{
 width:20px;height:20px;flex:0 0 20px;
 display:grid;place-items:center;
 border:1px solid #445064;border-radius:50%;
 color:transparent;font-size:11px;
}
.module-option.selected .option-check{background:var(--accent);border-color:var(--accent);color:#13200d}
.control-title{margin-bottom:9px!important}
.control-subtitle{display:block!important;margin:10px 0 6px!important;color:#9eacbc!important}
.crop-grid input{min-width:0}
@media(max-width:950px){
 .sidebar{padding-right:10px}
}
@media(max-width:700px){
 .sidebar{display:none}
 .control-row.active-control{padding:9px}
 .module-option{min-height:54px;padding:10px}
 .option-copy small{font-size:8px}
}


/* V6: separate 32-bin RGB channel histograms */
.rgb-histograms{margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}
.rgb-histograms .stats-head{margin-bottom:12px}
.rgb-histograms .stats-head h3{font-size:13px}
.rgb-histograms .stats-head>span{border:1px solid #344334;border-radius:14px;padding:5px 8px;color:var(--accent);font-size:7px;letter-spacing:1px}
.channel-histogram{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;margin:10px 0}
.channel-label{display:flex;align-items:center;gap:6px;color:#94a1b2;font-size:8px;letter-spacing:.8px}
.channel-label b{font-size:8px;font-weight:700}
.channel-swatch{width:7px;height:7px;border-radius:50%;display:inline-block}
.channel-swatch.red{background:#fb7185}.channel-swatch.green{background:#8be36e}.channel-swatch.blue{background:#72adff}
.hist-bars.rgb-bars{height:42px;gap:3px;padding:4px 0 0;border-bottom:1px solid #283344}
.hist-bars.rgb-bars i{min-width:2px;opacity:.9}
.hist-bars.channel-red i{background:linear-gradient(0deg,#7f1d1d,#fb7185)}
.hist-bars.channel-green i{background:linear-gradient(0deg,#315c2a,#8be36e)}
.hist-bars.channel-blue i{background:linear-gradient(0deg,#1e477e,#72adff)}
.rgb-histograms .hist-axis{margin-left:58px}
@media(max-width:700px){
 .channel-histogram{grid-template-columns:52px minmax(0,1fr);gap:8px}
 .hist-bars.rgb-bars{height:38px;gap:2px}
 .rgb-histograms .hist-axis{margin-left:60px}
}


/* V7: Histogram Matching reference-image picker */
.reference-uploader{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.reference-picker{display:flex!important;align-items:center;gap:10px;width:100%;padding:12px;border:1px dashed #47566a;border-radius:9px;background:#111923;color:#e7edf5;cursor:pointer;margin:0!important}
.reference-picker:hover{border-color:var(--accent);background:#17221b}
.reference-picker-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#243322;color:var(--accent);font-size:18px;flex:0 0 30px}
.reference-picker>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.reference-picker strong{font-size:10px;font-weight:700}
.reference-picker small{font-size:8px;color:#8e9bad}
.reference-preview{display:flex;align-items:center;gap:9px;margin-top:9px;padding:8px;background:#0d141e;border:1px solid #2d3a49;border-radius:8px;min-width:0}
.reference-preview[hidden]{display:none!important}
.reference-preview img{width:46px;height:46px;object-fit:contain;background:#080d14;border-radius:5px;flex:0 0 46px}
.reference-file-name{font-size:9px;color:#aab6c5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.reference-preview button{width:27px;height:27px;border:1px solid #435064;border-radius:6px;background:#1b2532;color:#dce6ef;font-size:17px;line-height:1;flex:0 0 27px}
.reference-help{font-size:9px;line-height:1.5;color:#8190a2;margin:9px 0 0}
@media(max-width:700px){.reference-picker{padding:10px}.reference-preview img{width:42px;height:42px;flex-basis:42px}}


/* V8: undo, redo and clickable processing history */
.history-card{margin-top:16px;padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:12px;min-width:0}
.history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.history-head h3{font:600 13px 'Space Grotesk';margin:0 0 4px}
.history-head p{font-size:9px;line-height:1.45;color:var(--muted);margin:0}
.history-position{flex:0 0 auto;padding:5px 8px;border:1px solid #34452e;border-radius:20px;color:var(--accent);font-size:7px;font-weight:700;letter-spacing:1px;white-space:nowrap}
.history-actions{display:flex;gap:8px;margin-bottom:11px}
.history-action{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;background:#1a2230;border:1px solid #303b4b;border-radius:7px;color:#dce5ef;font-size:11px}
.history-action b{font-size:10px}
.history-action kbd{padding:3px 5px;border:1px solid #3b4656;border-radius:4px;color:#8492a4;font:8px 'DM Sans';white-space:nowrap}
.history-action:hover:not(:disabled){border-color:var(--accent);background:#202d22;color:var(--accent)}
.history-action:disabled{opacity:.38;cursor:not-allowed}
.history-list{display:flex;flex-direction:column;gap:5px;max-height:260px;overflow-y:auto;padding:2px 4px 2px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3a4657 transparent}
.history-list::-webkit-scrollbar{width:6px}
.history-list::-webkit-scrollbar-thumb{background:#344152;border-radius:8px}
.history-item{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:45px;padding:7px 9px;text-align:left;background:#0e141e;border:1px solid #283344;border-radius:8px;color:var(--text);transition:background .16s ease,border-color .16s ease}
.history-item:hover:not(:disabled){border-color:#667b53;background:#18221b}
.history-item.current{border-color:var(--accent);background:#1a271d;box-shadow:inset 3px 0 0 var(--accent)}
.history-item.future{opacity:.52}
.history-item:disabled{cursor:default}
.history-marker{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#202b39;color:#9eacbd;font-size:9px;font-weight:700}
.history-item.current .history-marker{background:var(--accent);color:#15200f}
.history-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.history-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700;color:#e4ebf3}
.history-copy small{font-size:8px;color:#7f8da0}
.history-state{color:#7f8da0;font-size:7px;font-weight:700;letter-spacing:.8px;white-space:nowrap}
.history-item.current .history-state{color:var(--accent)}
.history-empty{padding:15px 10px;text-align:center;border:1px dashed #344052;border-radius:8px;color:#8290a2;font-size:9px}
.history-footnote{display:block;margin-top:9px;color:#69788a;font-size:8px;line-height:1.45}
@media(max-width:700px){
 .history-card{margin-top:13px;padding:13px}
 .history-actions{gap:7px}
 .history-action{flex:1;justify-content:center;min-height:42px;padding:7px 5px}
 .history-action kbd{font-size:7px}
 .history-list{max-height:220px}
 .history-item{min-height:48px}
}
@media(max-width:380px){.history-action kbd{display:none}.history-head{gap:6px}}

/* =========================================================
   PrismLab V10 — brand identity update
   Visual-only refresh: existing IDs and processing controls
   remain unchanged so the V8 workflow is preserved.
   ========================================================= */
:root{
  --bg:#090d13;
  --panel:#111823;
  --panel2:#17212e;
  --line:#263243;
  --muted:#96a3b5;
  --text:#edf3fa;
  --accent:#a7f36b;
  --accent2:#d8ffae;
  --surface:#0d141e;
  --surface-raised:#182231;
  --shadow:0 18px 45px rgba(0,0,0,.22);
}
html{scroll-behavior:smooth;scrollbar-color:#344253 #0b111a}
body{
  background:
    radial-gradient(ellipse at 70% -12%,rgba(91,132,65,.11),transparent 34%),
    radial-gradient(ellipse at 0% 45%,rgba(46,77,106,.09),transparent 30%),
    var(--bg);
  color:var(--text);
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
button,input,select{font-family:inherit}
button{transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
button:focus-visible,input:focus-visible,select:focus-visible,.upload-btn:focus-visible,.choose-btn:focus-visible,.reference-picker:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.app-shell{min-height:100vh}
.sidebar{
  width:252px;padding:22px 15px 16px;
  background:linear-gradient(180deg,#0d141e 0%,#0b1119 100%);
  border-right:1px solid rgba(132,153,180,.15);
  box-shadow:10px 0 35px rgba(0,0,0,.12);
}
.brand{padding:3px 8px 25px;gap:11px}

.brand-copy{min-width:0;flex:1}

/* PrismLab geometric prism brand mark */
.brand-symbol{
  display:block;width:43px;height:43px;flex:0 0 43px;object-fit:contain;
  filter:drop-shadow(0 5px 12px rgba(167,243,107,.16));
}
.mobile-brand .brand-symbol{width:32px;height:32px;flex:0 0 32px}
.brand-copy b,.mobile-brand b{letter-spacing:-.55px}
.brand b{font-size:18px;letter-spacing:-.5px}
.brand small{font-size:7px;letter-spacing:1.45px;margin-top:3px}
.brand-version{border:1px solid #35472f;border-radius:6px;padding:4px 6px;color:#b9e79a;font:700 8px 'Space Grotesk';letter-spacing:.7px}
.sidebar-scroll{padding:1px 4px 14px 0}
.nav-label{margin:16px 0 5px;padding:0 11px 7px;color:#748398;font-size:8px;letter-spacing:1.55px}
.nav-item{
  min-height:41px;padding:9px 11px;margin:3px 0;border:1px solid transparent;
  color:#a8b4c4;font-size:11px;font-weight:600;letter-spacing:.05px;
}
.nav-item span{width:19px;font-size:16px;color:#8393a8;transition:color .18s ease}
.nav-item:hover{background:#172331;border-color:#2d3d50;color:#e9f1fa;transform:translateX(2px)}
.nav-item.active{background:linear-gradient(100deg,rgba(167,243,107,.14),rgba(167,243,107,.045));border-color:rgba(167,243,107,.24);color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.nav-item.active span{color:var(--accent)}
.sidebar-bottom{border-top:1px solid rgba(132,153,180,.14);padding:14px 8px 2px;font-size:9px;color:#9aa7b7}
.sidebar-bottom small{margin-top:8px;font-size:7px;letter-spacing:1.3px}
.main{max-width:none;margin-left:252px;padding:0 clamp(22px,3vw,48px) 25px}
.topbar{
  height:68px;position:sticky;top:0;z-index:7;
  background:rgba(9,13,19,.88);backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(132,153,180,.15);
}
.crumb{font-size:10px;color:#8695a8}
.crumb b{font-weight:700;color:#e8eef6}
.top-actions{gap:16px}
.privacy{font-size:9px;color:#92a0b1}
.privacy i{width:7px;height:7px;box-shadow:0 0 0 4px rgba(167,243,107,.08)}
.export-btn{
  display:inline-flex;align-items:center;gap:8px;min-height:38px;
  padding:9px 14px;border-radius:9px;background:linear-gradient(135deg,#c7ff99,var(--accent));
  box-shadow:0 7px 20px rgba(167,243,107,.12);font-size:10px;
}
.export-btn:hover,.upload-btn:hover{background:var(--accent2);box-shadow:0 8px 24px rgba(167,243,107,.2);transform:translateY(-1px)}
.export-icon{font-size:15px;line-height:1}
.mobile-brand{display:none}
.welcome{
  position:relative;overflow:hidden;isolation:isolate;
  margin:23px 0 25px;padding:25px 28px 23px;
  min-height:166px;border:1px solid rgba(132,153,180,.16);border-radius:17px;
  background:linear-gradient(110deg,rgba(22,32,44,.96),rgba(17,25,36,.88) 60%,rgba(26,39,33,.72));
  box-shadow:var(--shadow);
}
.welcome:after{
  content:"";position:absolute;z-index:-1;width:300px;height:300px;right:5%;top:-190px;
  border:1px solid rgba(167,243,107,.12);border-radius:50%;
  box-shadow:0 0 0 30px rgba(167,243,107,.025),0 0 0 65px rgba(167,243,107,.018),0 0 65px rgba(167,243,107,.06);
}
.welcome-copy{min-width:0}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:8px;letter-spacing:1.65px;color:#b4d99d}
.eyebrow-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px rgba(167,243,107,.55)}
.welcome h1{margin:11px 0 7px;font-size:clamp(31px,3.2vw,43px);line-height:1.04;letter-spacing:-1.8px}
.welcome h1 em{color:var(--accent)}
.welcome p{font-size:11px;color:#a5b2c2;line-height:1.55}
.welcome-meta{display:flex;flex-wrap:wrap;gap:15px;margin-top:16px}
.welcome-meta span{font-size:8px;color:#92a2b5;display:flex;align-items:center;gap:6px}
.welcome-meta i{width:5px;height:5px;border-radius:50%;background:#88b96d}
.welcome-chip{display:flex;align-items:center;gap:7px;align-self:flex-start;margin:0 0 3px;padding:9px 12px;border:1px solid rgba(167,243,107,.24);border-radius:9px;background:rgba(11,18,21,.45);color:#a9b9a1;font-size:8px;letter-spacing:1.1px;white-space:nowrap}
.welcome-chip b{padding:0;color:var(--accent);font:700 11px 'Space Grotesk'}
.welcome-chip .chip-plus{color:#72816e;font-size:10px}
.editor-grid{grid-template-columns:minmax(0,1.62fr) minmax(325px,.88fr);gap:19px;align-items:start}
.canvas-column,.tools-column{min-width:0}
.section-heading{align-items:flex-end;margin-bottom:12px;gap:14px}
.section-kicker{margin-bottom:5px;color:#8292a6;font-size:7px;font-weight:700;letter-spacing:1.5px}
.section-heading h2{margin:0 0 4px;font-size:17px;letter-spacing:-.25px}
.section-heading p{font-size:10px;color:#8e9daf;line-height:1.45}
.workspace-heading-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.canvas-mode{display:inline-flex;align-items:center;gap:6px;padding:8px 9px;border:1px solid #2c394a;border-radius:7px;color:#8798aa;font-size:7px;font-weight:700;letter-spacing:1px;white-space:nowrap}
.canvas-mode i{width:6px;height:6px;border-radius:2px;background:#83a1c4}
.upload-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:9px 12px;border-radius:8px;font-size:10px;white-space:nowrap}
.upload-btn span{font-size:14px;line-height:10px}
.canvas-card,.compare-card,.tool-card,.stats-card,.tip-card,.history-card{
  background:linear-gradient(145deg,rgba(18,26,38,.98),rgba(14,21,31,.98));
  border:1px solid rgba(132,153,180,.16);border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.13);
}
.canvas-toolbar{height:45px;padding:0 15px;background:rgba(8,14,21,.38);border-bottom:1px solid rgba(132,153,180,.13);font-size:8px;letter-spacing:1.15px}
.canvas-status{display:flex;align-items:center;min-width:0}
.live-dot{width:6px;height:6px;flex:0 0 6px;box-shadow:0 0 0 4px rgba(167,243,107,.08)}
.toolbar-right{gap:7px}
.toolbar-right button{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 9px;border:1px solid #2e3b4d;border-radius:6px;background:#141e2b;color:#b6c2d0;font-size:9px}
.toolbar-right button:hover{border-color:#718a5d;background:#1d2a24;color:var(--accent)}
.image-stage{height:clamp(330px,39vw,590px);min-height:330px;padding:18px;background-color:#080e16;background-image:linear-gradient(45deg,#111a26 25%,transparent 25%),linear-gradient(-45deg,#111a26 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#111a26 75%),linear-gradient(-45deg,transparent 75%,#111a26 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}
.image-stage.has-image{height:clamp(360px,43vw,650px);min-height:360px;padding:18px;background-color:#080e16}
.image-stage.has-image>img{border-radius:5px;filter:drop-shadow(0 15px 30px rgba(0,0,0,.27))}
.empty-state{max-width:300px}
.upload-icon{width:49px;height:49px;border-radius:14px;background:rgba(167,243,107,.045);border-color:#5a714e;font-size:21px}
.empty-state h3{font-size:16px;letter-spacing:-.2px}
.empty-state p{font-size:10px;line-height:1.5;color:#91a0b2}
.choose-btn{padding:10px 15px;border-radius:8px;font-size:10px}
.empty-state small{font-size:8px;color:#718095}
.canvas-footer{height:37px;padding:0 15px;background:#0d141e;border-top:1px solid rgba(132,153,180,.12);font-size:8px;letter-spacing:.2px}
.compare-card{margin-top:14px;padding:16px}
.compare-title{align-items:center;margin-bottom:13px}
.compare-title h3,.stats-head h3{font-size:13px;letter-spacing:-.1px}
.compare-title p{font-size:9px}
.preview-tag{display:inline-flex;align-items:center;gap:6px;background:#101a19;border-color:#354a35;color:#bce69e;font-size:7px}
.preview-tag i{width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 9px rgba(167,243,107,.5)}
.compare-images{gap:10px}
.compare-images>div{padding:9px;background:linear-gradient(145deg,#0b121b,#101925);border:1px solid #253244;border-radius:9px}
.compare-images small{font-size:7px;font-weight:700;letter-spacing:1.3px;color:#9ba9ba}
.compare-images img{height:132px}
.history-card{margin-top:14px;padding:15px}
.history-head h3{font-size:13px}
.history-head p{font-size:9px;color:#96a3b5}
.history-position{border-color:#3b5032;background:#151f1b;font-size:7px}
.history-actions{gap:8px}
.history-action{min-height:38px;flex:1;justify-content:center;background:#162131;border-color:#2e3c50;font-size:10px}
.history-action:hover:not(:disabled){box-shadow:0 5px 15px rgba(167,243,107,.08)}
.history-list{max-height:220px;gap:6px}
.history-item{min-height:43px;border-color:#263447;background:#0e1722}
.history-item.current{border-color:#8dc85d;background:linear-gradient(90deg,rgba(167,243,107,.13),rgba(167,243,107,.04));box-shadow:inset 3px 0 0 var(--accent)}
.history-footnote{font-size:8px;line-height:1.5}
.tools-column{gap:12px}
.tool-card{padding:17px}
.tool-card-head{align-items:center;gap:10px}
.tool-card h2{font-size:17px;letter-spacing:-.3px}
.tool-description{font-size:10px;line-height:1.55;color:#9aa8b8;margin:9px 0 15px}
.module-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid #3b5033;border-radius:10px;background:#19251c;color:var(--accent);font-size:17px}
.quick-grid{gap:9px}
.quick-action{min-height:78px;padding:12px;border:1px solid #2a394c;border-radius:10px;background:linear-gradient(145deg,#1a2635,#151f2c);}
.quick-action b{font-size:18px;margin-bottom:8px}
.quick-action span{font-size:10px;font-weight:600}
.quick-action:hover{transform:translateY(-1px);border-color:#637b50;background:#1d2b31}
.quick-action.selected{border-color:#8cc85e;background:linear-gradient(125deg,#243923,#1b2b2a);box-shadow:inset 0 0 0 1px rgba(167,243,107,.1),0 5px 16px rgba(0,0,0,.13)}
.control-row{margin:10px 0;padding:10px;border:1px solid transparent;border-radius:11px;background:rgba(9,15,23,.24)}
.control-row.active-control{padding:10px;border-color:rgba(167,243,107,.42);background:linear-gradient(120deg,rgba(167,243,107,.075),rgba(16,28,26,.45));box-shadow:inset 3px 0 0 rgba(167,243,107,.72)}
.control-row label{font-size:10px;color:#c4cfdb}
.control-row .control-title{font-size:10px;font-weight:700;letter-spacing:.1px}
.control-row .control-subtitle{font-size:9px!important;color:#a0afc0!important}
.control-row input[type=range]{height:5px;accent-color:var(--accent);cursor:pointer}
.control-row input[type=number],.control-row select,.crop-grid input{
  min-height:37px;padding:9px 10px;background:#0c141e;border:1px solid #304054;border-radius:7px;
  color:#edf3fa;font-size:10px;outline:none;
}
.control-row input[type=number]:focus,.control-row select:focus,.crop-grid input:focus{border-color:#86b95e;box-shadow:0 0 0 3px rgba(167,243,107,.08)}
.control-row input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border:3px solid #d9ffb7;border-radius:50%;background:#80bd51;box-shadow:0 1px 6px #0008}
.control-row input[type=range]::-moz-range-thumb{width:10px;height:10px;border:3px solid #d9ffb7;border-radius:50%;background:#80bd51;box-shadow:0 1px 6px #0008}
.control-row .range-value{color:var(--accent);font:700 10px 'Space Grotesk'}
.module-option{min-height:57px;padding:10px 11px;border-color:#2d3c50;border-radius:9px;background:linear-gradient(110deg,#172231,#141e2b)}
.module-option:hover{border-color:#72895b;background:#1b2a30}
.module-option.selected{border-color:#8dc85d;background:linear-gradient(105deg,#223822,#1a2c2c);box-shadow:inset 3px 0 0 var(--accent),0 4px 15px rgba(0,0,0,.12)}
.option-icon{background:#0d1720;color:#b5e88e}
.option-copy strong{font-size:10px}
.option-copy small{font-size:8px;color:#9aa9ba}
.option-check{width:19px;height:19px;flex-basis:19px}
.reference-uploader{margin-top:12px;padding-top:12px}
.reference-picker{border-color:#42546a;background:#101a27}
.reference-picker:hover{background:#15231e}
.reference-preview{background:#0e1722;border-color:#2c3b4e}
.tool-actions{gap:8px;margin-top:15px;padding-top:13px;border-top:1px solid rgba(132,153,180,.13)}
.secondary-btn,.apply-btn{min-height:40px;border-radius:8px;font-size:9px}
.secondary-btn{padding:10px 12px;background:#172231;border-color:#304055;color:#b3c0cf}
.secondary-btn:hover{border-color:#526a51;background:#1b2a2a;color:#dceecf}
.apply-btn{background:linear-gradient(135deg,#c7ff99,var(--accent));box-shadow:0 7px 18px rgba(167,243,107,.1);color:#10180d}
.apply-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 9px 22px rgba(167,243,107,.19)}
.apply-btn:disabled{opacity:.65;cursor:wait}
.stats-card{padding:16px}
.stats-head{align-items:center;margin-bottom:12px}
.stats-head h3{font-size:13px}
.stats-head>span{background:#111a20;border-color:#354a35;font-size:7px;color:#b8e49b}
.stats-grid{gap:8px}
.stats-grid>div{min-height:76px;padding:10px 11px;border:1px solid rgba(132,153,180,.1);border-radius:9px;background:linear-gradient(145deg,#0d1621,#111b27)}
.stats-grid small{font-size:7px;letter-spacing:1.2px;color:#8292a6}
.stats-grid b{font-size:20px;letter-spacing:-.5px;color:#f1f6fb}
.hist-mini{margin-top:19px;padding-top:15px;border-top:1px solid rgba(132,153,180,.13)}
.hist-mini .stats-head,.rgb-histograms .stats-head{align-items:center;margin-bottom:10px}
.hist-bars{height:75px;gap:3px;padding:6px 2px 0}
.hist-bars i{border-radius:3px 3px 0 0;opacity:.92}
.hist-axis{font-size:7px;color:#78899e}
.hist-meta{font-size:8px;color:#8796a8;line-height:1.4}
.rgb-histograms{margin-top:18px;padding-top:15px;border-top:1px solid rgba(132,153,180,.13)}
.rgb-histograms .stats-head h3{font-size:12px}
.channel-histogram{grid-template-columns:49px minmax(0,1fr);gap:9px;margin:12px 0}
.channel-label{font-size:7px;color:#9caabd;letter-spacing:.8px}
.channel-label b{font-size:7px}
.hist-bars.rgb-bars{height:43px;gap:2px;border-bottom-color:#304054}
.rgb-histograms .hist-axis{margin-left:58px}
.tip-card{padding:13px 14px;background:linear-gradient(115deg,#17251d,#121e20);border-color:#344d35}
.tip-icon{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;border:1px solid #385238;border-radius:8px;background:#1e3022;font-size:15px!important}
.tip-card b{font-size:10px}
.tip-card p{font-size:9px;line-height:1.55;color:#a9b8a4}
footer{padding:26px 0 5px;color:#637286;font-size:7px;letter-spacing:1.5px}
footer b{color:#94a4b7;font-weight:700}
.footer-version{margin-left:8px;color:#526175}
.toast{bottom:24px;padding:12px 17px;border:1px solid rgba(167,243,107,.25);background:#d7ffad;box-shadow:0 12px 28px rgba(0,0,0,.28);font-size:10px}

@media(max-width:1120px){
  .main{padding-left:23px;padding-right:23px}
  .editor-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr);gap:15px}
  .sidebar{width:225px}
  .main{margin-left:225px}
  .image-stage.has-image{height:clamp(340px,42vw,570px)}
}
@media(max-width:850px) and (min-width:701px){
  .sidebar{width:194px;padding-left:11px;padding-right:9px}
  .main{margin-left:194px;padding-left:16px;padding-right:16px}
  .editor-grid{grid-template-columns:minmax(0,1fr) minmax(255px,.82fr);gap:12px}
  .welcome{padding:21px}
  .welcome h1{font-size:32px}
  .canvas-mode{display:none}
  .image-stage.has-image{height:390px;min-height:320px}
  .stats-grid b{font-size:17px}
  .history-action kbd{display:none}
}
@media(max-width:700px){
  .main{margin:0;padding:0 13px 20px}
  .topbar{height:61px;min-height:61px;padding:0 1px;position:sticky;top:0;z-index:9;background:rgba(9,13,19,.94)}
  .mobile-brand{display:flex;align-items:center;gap:8px;font:700 15px 'Space Grotesk';letter-spacing:-.3px}
  .mobile-brand .brand-symbol{width:32px;height:32px;flex-basis:32px}
  .crumb{display:none}
  .top-actions{gap:0}
  .privacy{display:none}
  .export-btn{min-height:35px;padding:8px 11px;border-radius:8px;font-size:9px}
  .export-icon{font-size:14px}
  .mobile-nav{
    top:61px;z-index:8;gap:7px;padding:9px 13px 10px;margin:0 -13px 1px;
    background:rgba(9,13,19,.94);backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(132,153,180,.15);scroll-padding-inline:13px;
  }
  .mobile-nav-item{min-height:35px;padding:8px 12px;border:1px solid #2b3a4d;border-radius:9px;background:#121c29;color:#aebccc;font-size:9px;font-weight:700;box-shadow:0 3px 8px rgba(0,0,0,.1)}
  .mobile-nav-item.active{background:linear-gradient(110deg,#243b25,#1a2c2b);border-color:#789d57;color:#c5fa9d;box-shadow:inset 0 -2px 0 var(--accent)}
  .welcome{margin:15px 0 18px;padding:19px 17px 17px;min-height:0;border-radius:14px;gap:10px}
  .welcome:after{right:-70px;top:-210px;width:250px;height:250px}
  .eyebrow{font-size:7px;letter-spacing:1.2px}
  .welcome h1{font-size:clamp(28px,8vw,36px);letter-spacing:-1.2px;margin:10px 0 6px}
  .welcome p{max-width:270px;font-size:9px;line-height:1.5}
  .welcome-meta{gap:10px;margin-top:12px}
  .welcome-meta span{font-size:7px}
  .welcome-chip{padding:7px 8px;font-size:7px;gap:5px;border-radius:7px}
  .editor-grid{display:flex;flex-direction:column;gap:13px}
  .section-heading{align-items:flex-end;margin-bottom:10px;gap:8px}
  .section-kicker{font-size:6px;letter-spacing:1.15px;margin-bottom:4px}
  .section-heading h2{font-size:15px}
  .section-heading p{max-width:240px;font-size:9px}
  .workspace-heading-actions{gap:6px}
  .canvas-mode{display:none}
  .upload-btn{min-height:34px;padding:8px 10px;font-size:9px}
  .canvas-card,.compare-card,.tool-card,.stats-card,.tip-card,.history-card{border-radius:12px}
  .canvas-toolbar{height:41px;padding:0 11px;font-size:7px}
  .toolbar-right{gap:5px}
  .toolbar-right button{min-height:27px;padding:4px 7px;font-size:8px}
  .image-stage{height:290px;min-height:260px;padding:10px}
  .image-stage.has-image{height:clamp(270px,78vw,390px);min-height:270px;padding:10px}
  .canvas-footer{height:34px;padding:0 11px;font-size:8px}
  .compare-card{margin-top:12px;padding:12px}
  .compare-title{margin-bottom:10px}
  .compare-title h3{font-size:12px}
  .compare-title p{font-size:8px}
  .preview-tag{padding:4px 7px;font-size:6px}
  .compare-images{gap:8px}
  .compare-images>div{padding:7px}
  .compare-images small{font-size:6px}
  .compare-images img{height:96px}
  .history-card{margin-top:12px;padding:12px}
  .history-head{margin-bottom:10px}
  .history-head h3{font-size:12px}
  .history-head p{font-size:8px}
  .history-position{font-size:6px;padding:5px 7px}
  .history-action{min-height:40px;font-size:9px}
  .history-action kbd{font-size:7px}
  .history-list{max-height:190px}
  .history-item{min-height:44px;padding:7px}
  .tools-column{width:100%;gap:11px}
  .tool-card{padding:13px}
  .tool-card h2{font-size:15px}
  .tool-description{font-size:9px;margin:7px 0 12px}
  .module-icon{width:31px;height:31px;border-radius:8px}
  .quick-grid{gap:7px}
  .quick-action{min-height:69px;padding:10px;border-radius:9px}
  .quick-action b{font-size:16px;margin-bottom:6px}
  .quick-action span{font-size:9px}
  .control-row{margin:8px 0;padding:8px}
  .control-row.active-control{padding:8px}
  .control-row label{font-size:9px}
  .control-row input[type=number],.control-row select,.crop-grid input{min-height:40px;font-size:11px}
  .module-option{min-height:54px;padding:9px}
  .option-copy strong{font-size:9px}
  .option-copy small{font-size:8px}
  .tool-actions{position:static;gap:7px;margin-top:12px;padding-top:11px}
  .secondary-btn,.apply-btn{min-height:43px;font-size:10px}
  .stats-card{padding:13px}
  .stats-head h3{font-size:12px}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .stats-grid>div{min-height:68px;padding:9px}
  .stats-grid small{font-size:7px}
  .stats-grid b{font-size:18px}
  .hist-mini{margin-top:15px;padding-top:13px}
  .hist-bars{height:60px;gap:2px}
  .hist-axis{font-size:6px}
  .hist-meta{font-size:7px}
  .rgb-histograms{margin-top:15px;padding-top:13px}
  .channel-histogram{grid-template-columns:45px minmax(0,1fr);gap:7px;margin:10px 0}
  .channel-label{font-size:7px}
  .hist-bars.rgb-bars{height:37px;gap:1.5px}
  .rgb-histograms .hist-axis{margin-left:52px}
  .tip-card{padding:11px 12px}
  footer{padding:20px 0 3px;font-size:6px;letter-spacing:1px}
  .footer-version{display:none}
  .toast{bottom:15px;left:13px;right:13px;max-width:calc(100% - 26px);transform:translateY(16px);text-align:center}
  .toast.show{transform:translateY(0)}
}
@media(max-width:390px){
  .main{padding-left:10px;padding-right:10px}
  .mobile-nav{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}
  .welcome{padding:16px 14px}
  .welcome-chip{display:none}
  .section-heading{align-items:flex-start}
  .section-heading p{max-width:195px}
  .upload-btn{padding:8px;font-size:8px}
  .compare-images img{height:82px}
  .history-action kbd{display:none}
  .tool-actions{flex-direction:column}
  .tool-actions .secondary-btn,.tool-actions .apply-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
