:root{--bg:#090e17;--panel:#101a2a;--panel2:#142136;--edge:#273852;--red:#ff3b60;--red-dim:#b91c45;--ice:#59ddf8;--white:#eff4ff;--muted:#8393ae;--gold:#e9b76c;--round:14px;--shadow:0 18px 46px rgba(0,0,0,.25)}*{box-sizing:border-box}html{height:100%}body{margin:0;min-height:100%;color:var(--white);background:radial-gradient(ellipse at 8% 1%,#1b1933 0%,transparent 34%),radial-gradient(ellipse at 100% 96%,#172033 0%,transparent 32%),#070c15;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-size:13px;letter-spacing:.01em}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.app-shell{min-height:100vh;display:flex;flex-direction:column;gap:12px;padding:14px clamp(12px,1.2vw,22px) 16px;max-width:2440px;margin:auto}.topbar{height:69px;display:flex;align-items:center;gap:22px;padding:8px 15px 10px;border-bottom:1px solid #263549;background:linear-gradient(105deg,rgba(44,25,42,.8),rgba(12,19,32,.7) 40%,rgba(24,34,48,.6));border-radius:12px 12px 0 0;position:relative}.topbar:after{content:"";position:absolute;left:20px;right:20px;bottom:-1px;height:1px;background:linear-gradient(90deg,var(--red),transparent 44%,var(--ice) 85%,transparent);opacity:.6}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand img{width:50px;height:50px;object-fit:cover;border-radius:12px;box-shadow:0 2px 20px #f0345233}.brand b{font-weight:900;font-size:22px;letter-spacing:.04em;font-style:italic;line-height:1}.brand b span{color:var(--red)}.brand b em{font-size:11px;font-style:normal;letter-spacing:.09em;padding-left:5px;color:#d0d7e9}.brand small{display:block;font-size:9px;letter-spacing:.24em;color:#8ea2b9;margin-top:7px}.brand small i{color:var(--red);font-style:normal;font-weight:700}.topbar-middle{display:flex;align-items:center;flex:1;justify-content:center;color:#63768b;font-size:10px;letter-spacing:.25em;gap:12px}.micro-line{height:1px;background:linear-gradient(90deg,transparent,#304158,transparent);width:min(6vw,88px)}.top-actions{display:flex;align-items:center;gap:10px}.small-status{font-size:10px;font-weight:750;color:#b6c2d4;background:#18253b;border:1px solid #293a50;border-radius:50px;padding:10px 13px;white-space:nowrap}.live-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#36e5aa;box-shadow:0 0 8px #36e5aa66;margin-right:5px}.btn{border-radius:9px;border:1px solid #41516d;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 18px;font-weight:800;font-size:11px;letter-spacing:.055em;color:var(--white);background:linear-gradient(175deg,#27364c,#172437);box-shadow:inset 0 1px rgba(255,255,255,.11),0 4px 12px #0004;transition:border-color .14s,background .14s,transform .12s,box-shadow .14s}.btn:hover,.side-btn:hover,.mini-btn:hover,.icon-btn:hover,.mode:hover{border-color:#76abc1;filter:brightness(1.09)}.btn:active{transform:translateY(1px)}.btn-primary{border-color:#fb5670;background:linear-gradient(160deg,#fe516a,#c5163e 52%,#92152d);box-shadow:inset 0 1px #fff5,0 5px 20px #ed2c4a42;color:white}.btn-primary:hover{box-shadow:0 0 25px #ed2c4a60,inset 0 1px #fff5}.btn-export{border-color:#2988a2;background:linear-gradient(160deg,#1e5f7a,#17364e);color:#c7f6ff}.btn-muted{color:#c3d2e4}.btn-max{min-height:40px;border-color:#d79854;color:#fff0d3;background:linear-gradient(160deg,#64432f,#39281f);box-shadow:inset 0 1px #ffc7856b,0 0 15px #e99c3550}.btn-max svg{color:#ffe198}.command-grid{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(210px,1.15fr) minmax(210px,1.15fr) minmax(256px,1.3fr);gap:11px}.card{border:1px solid #283b53;box-shadow:inset 0 1px #a0bed00c,0 6px 18px #0003;background:linear-gradient(150deg,#19273a,#0f1a2b 70%);border-radius:var(--round)}.control-card{height:112px;padding:13px 16px}.card-label{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.12em;color:#b4c5d9;font-weight:850}.card-label svg{width:16px;height:16px;color:var(--ice)}.card-label output{font-size:21px;letter-spacing:-.02em;margin-left:auto;color:#effaff}.card-control{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:12px}.tiny-label{font-size:10px;color:#7f92ae;white-space:nowrap}.control-card select,select{background:#1b2a3e;border:1px solid #3b526e;color:#eaf2fc;border-radius:8px;padding:9px 30px 9px 11px;outline:0;cursor:pointer;min-width:0}.control-card select:hover,select:hover{border-color:var(--ice)}select option{background:#17283a}.card-slider input[type=range]{margin:18px 0 3px;width:100%}.range-ends{display:flex;justify-content:space-between;color:#7087a3;font-size:10px}input[type=range]{appearance:none;-webkit-appearance:none;height:7px;border:1px solid #244056;border-radius:50px;background:linear-gradient(90deg,#ef305e,#28b9ee);cursor:pointer;outline:none}input[type=range]::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border-radius:50%;background:#f4fbff;border:4px solid #218db0;box-shadow:0 0 0 3px #0e1b2a,0 0 13px #39d9ff8e}input[type=range]::-moz-range-thumb{width:15px;height:15px;border-radius:50%;background:#f4fbff;border:3px solid #218db0;box-shadow:0 0 0 3px #0e1b2a}.modes{display:flex;gap:4px;margin-top:8px}.mode{flex:1;border:1px solid #344964;border-radius:7px;background:#1c2b41;color:#b2c5dc;font-size:10px;font-weight:800;padding:7px 3px;transition:.12s}.mode.active{background:#153748;color:#8ae7ff;border-color:#388eb0;box-shadow:inset 0 0 14px #48d5ee15}.presets-footer{display:flex;align-items:center;justify-content:space-between;margin-top:7px;gap:8px}.presets-footer span{font-size:10px;color:#7f95af;letter-spacing:.08em}.presets-footer select{padding:5px 26px 5px 8px;font-size:11px}.workspace{display:grid;grid-template-columns:79px minmax(0,1fr) minmax(0,1fr) 276px;gap:11px;align-items:stretch;min-height:560px;flex:1}.workspace.rail-open{grid-template-columns:132px minmax(0,1fr) minmax(0,1fr) 276px}.toolrail{background:linear-gradient(180deg,#142134,#0b1625);border:1px solid #273951;border-radius:13px;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:10px 6px;min-width:0;box-shadow:var(--shadow)}.toolrail-head{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#718ba7;font-size:10px;font-weight:800;letter-spacing:.13em;gap:5px;padding-bottom:8px}.rail-toggle{background:#24354b;border:1px solid #3a536d;border-radius:8px;color:#b8d6e5;padding:7px;display:grid;place-items:center}.rail-toggle svg{width:15px;height:15px}.railitem{border:1px solid transparent;border-radius:10px;background:none;color:#8da6c0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 3px 7px;font-size:10px;white-space:nowrap;min-width:0;transition:.15s;min-height:61px}.railitem svg{width:20px;height:20px}.railitem span{font-size:9px;font-weight:700}.railitem:hover,.railitem.active{color:#effaff;background:#24354d;border-color:#354e6d}.railitem.active:before{content:"";width:21px;height:2px;background:var(--red);position:absolute;margin-top:-49px;border-radius:5px}.workspace.rail-open .railitem{flex-direction:row;gap:9px;justify-content:flex-start;padding:8px 12px;min-height:48px}.workspace.rail-open .railitem span{font-size:11px}.workspace.rail-open .railitem.active:before{display:none}.rail-bottom{margin-top:auto;border-top:1px solid #283b53;padding:15px 0 7px;text-align:center;font-size:10px;color:#637a94;line-height:1.6;letter-spacing:.12em}.rail-bottom strong{color:var(--red)}.viewer-card{border:1px solid #273c56;background:#101929;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:var(--shadow)}.viewer-header{height:61px;min-height:61px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 13px 9px;background:linear-gradient(110deg,#18263c,#132238);border-bottom:1px solid #2e4159}.viewer-title{display:flex;gap:10px;align-items:center;min-width:0}.section-no{font-size:21px;color:#3cb7d1;font-weight:850;letter-spacing:-.08em}.viewer-title b{display:block;font-size:12px;letter-spacing:.12em;white-space:nowrap}.viewer-title span:not(.section-no){display:block;font-size:9px;color:#8298b2;letter-spacing:.065em;margin-top:4px}.viewer-tools{display:flex;align-items:center;gap:4px;min-width:0}.zoom-label{font-size:10px;color:#94b6cb;min-width:38px;text-align:right;margin-right:5px}.mini-btn{border:1px solid #3c5573;background:linear-gradient(180deg,#26364e,#1d2a40);color:#d5e8ff;border-radius:8px;font-weight:900;font-size:13px;min-width:28px;height:27px;padding:0 4px;display:grid;place-items:center;box-shadow:inset 0 1px #ffffff13}.mini-btn:last-child{font-size:10px;min-width:31px}.viewer-stage{position:relative;flex:1;min-height:340px;overflow:hidden;display:flex;align-items:center;justify-content:center;isolation:isolate;background:#101724;touch-action:none}.checker{background-color:#0e1520;background-image:linear-gradient(45deg,#1a2738 25%,transparent 25%),linear-gradient(-45deg,#1a2738 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1a2738 75%),linear-gradient(-45deg,transparent 75%,#1a2738 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0}.vector-stage{background:#090e17}.vector-stage.checker{background-color:#0e1520}.art-pan{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transform:translate(0px,0px) scale(1);transform-origin:center center;will-change:transform}.art-image{max-width:98%;max-height:98%;object-fit:contain;display:block;user-select:none;pointer-events:none}.hidden{display:none!important}.empty-view{display:flex;align-items:center;flex-direction:column;text-align:center;gap:12px;padding:15px 25px;max-width:340px;z-index:1}.empty-view h3{font-size:17px;letter-spacing:-.025em;margin:0;font-weight:740}.empty-view p{font-size:12px;line-height:1.6;color:#9aa9be;margin:0}.empty-view small{font-size:9px;color:#62839b;letter-spacing:.08em}.empty-image-icon{width:71px;height:71px;border-radius:19px;background:linear-gradient(150deg,#17425a,#253348);border:1px solid #4c6b83;box-shadow:0 0 35px #3ac4fa1b;display:grid;place-items:center}.empty-image-icon svg{width:30px;height:30px;color:#7ae3f9}.empty-image-icon.alt{background:linear-gradient(145deg,#42253a,#172739);border-color:#763747}.empty-image-icon.alt svg{color:#ff6d83}.view-caption{min-height:31px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;color:#99aec6;font-size:10px;border-top:1px solid #2b3a50;white-space:nowrap;overflow:hidden}.view-caption span:first-child{overflow:hidden;text-overflow:ellipsis}.pipette-dock{border-top:1px solid #2a3f59;padding:10px 12px 11px;background:linear-gradient(145deg,#182739,#111d2e);display:flex;flex-direction:column;gap:9px}.pipette-head,.pipette-controls{display:flex;align-items:center;gap:9px;justify-content:space-between}.dock-heading{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.08em;font-weight:850;color:#d1e6fb}.dock-heading svg{color:#4acbe5;width:15px;height:15px}.switch-label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:750;color:#bcd0e5;cursor:pointer}.switch-label input{position:absolute;opacity:0}.switch{height:17px;width:31px;background:#3c4b5b;border-radius:12px;position:relative;transition:.12s}.switch:after{content:"";position:absolute;top:3px;left:3px;width:11px;height:11px;background:#c4d6e1;border-radius:50%;transition:.15s}.switch-label input:checked+.switch{background:#117b94}.switch-label input:checked+.switch:after{transform:translateX(14px);background:#fff}.pipette-controls{flex-wrap:wrap;justify-content:flex-start}.pipette-controls select{font-size:10px;height:32px;padding:6px 22px 6px 8px;flex:1;min-width:155px;max-width:220px}.compact-step{display:flex;align-items:center;gap:8px;font-size:10px;color:#a9c2dc;white-space:nowrap}.compact-step input{width:70px;max-width:17vw}.compact-step output{min-width:23px;font-weight:800;color:white;font-size:10px}.pill-check{display:flex;align-items:center;gap:4px;font-size:10px;color:#bfd8e7;white-space:nowrap;cursor:pointer}.pill-check input{accent-color:#12b7d7;margin:0}.icon-btn{height:31px;min-width:35px;display:grid;place-items:center;background:#203048;border:1px solid #3f5370;border-radius:8px;color:#b6d7e8;font-size:10px;font-weight:800;padding:4px 7px}.icon-btn svg{width:15px;height:15px}.pipette-help{font-size:10px;color:#778ba3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metrics{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 12px 10px;gap:5px;border-top:1px solid #293e56;background:#121f31}.metrics>div{background:#1a2b40;border:1px solid #2a415c;border-radius:9px;padding:8px 6px;min-width:0;text-align:center}.metrics span{display:block;color:#7894ae;font-size:9px;letter-spacing:.1em}.metrics strong{display:block;color:white;font-size:17px;margin-top:5px;font-variant-numeric:tabular-nums}.viewer-foot{height:30px;display:flex;align-items:center;gap:7px;padding:0 11px;color:#8ba6b7;font-size:10px;border-top:1px solid #2b3d51;min-width:0}.viewer-foot span:nth-child(2){flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.viewer-foot span:last-child{color:#56b6ce;white-space:nowrap;max-width:44%;overflow:hidden;text-overflow:ellipsis}.preview-swatches{display:flex;gap:3px;margin-right:4px}.bg-chip{height:17px;width:17px;border-radius:5px;border:1px solid #8695ad;background:var(--chip);padding:0;box-shadow:0 1px 5px #0004}.bg-chip.is-active{outline:2px solid #48d5ed;outline-offset:1px}.checker-chip{background:repeating-conic-gradient(#d7e2f0 0% 25%,#51647e 0% 50%) 50%/10px 10px}.render-overlay{position:absolute;inset:0;background:#07101cc9;z-index:5;display:grid;place-items:center;backdrop-filter:blur(7px)}.render-glass{display:flex;flex-direction:column;align-items:center;gap:22px;padding:35px;min-width:270px;background:radial-gradient(circle at 50% 5%,#17344aaa,transparent 70%);border-radius:25px}.progress-ring{width:174px;height:174px;border-radius:50%;padding:12px;background:conic-gradient(#ff4166 var(--progress,0%),#22364b 0);display:grid;place-items:center;box-shadow:0 0 30px #f0345033,0 0 0 5px #1c304855;transition:background .35s}.ring-inner{border-radius:50%;width:100%;height:100%;background:radial-gradient(circle,#1c2d43,#08111f);border:3px solid #334860;display:flex;justify-content:center;align-items:center;flex-direction:row;color:#fff}.ring-inner strong{font-size:54px;letter-spacing:-.07em;font-variant-numeric:tabular-nums}.ring-inner span{font-size:17px;margin-left:5px;margin-top:25px;color:#9bbad0}.render-caption{text-align:center;max-width:320px}.render-caption b{color:white;font-size:11px;letter-spacing:.2em}.render-caption>span{display:block;color:#a1bbd0;font-size:12px;margin-top:11px;line-height:1.5}.animated-line{margin:16px auto 0;width:80%;height:2px;background:linear-gradient(90deg,transparent,var(--red),var(--ice),transparent);box-shadow:0 0 14px #ff2f6477;animation:slide 1.7s ease-in-out infinite alternate}@keyframes slide{from{transform:scaleX(.4)}to{transform:scaleX(1)}}.palette-panel{border:1px solid #283c56;border-radius:14px;background:linear-gradient(180deg,#162539,#101b2a);padding:16px 13px 13px;box-shadow:var(--shadow);min-width:0;display:flex;flex-direction:column;gap:12px}.side-title{display:flex;flex-direction:column;gap:7px}.side-kicker{font-size:10px;color:#56d1eb;font-weight:800;letter-spacing:.14em}.side-title b{font-size:19px;letter-spacing:.015em}.side-title>span:last-child{font-size:10px;color:#91a6bc}.palette-nav{display:flex;justify-content:space-between;gap:4px;border-top:1px solid #2b3e53;padding-top:13px;color:#c8d8e7;font-weight:700;font-size:11px}.palette-nav small{color:#6e859f;font-size:9px;font-weight:500}.palette-indicator{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ff4d66;margin-right:5px}.palette-grid{height:clamp(170px,25vh,310px);min-height:170px;overflow:auto;display:grid;align-content:start;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:3px 4px 8px;scrollbar-width:thin;scrollbar-color:#4d6682 transparent}.palette-empty{grid-column:1/-1;padding:20px 4px;color:#879bb2;text-align:center;line-height:1.7;font-size:11px}.swatch{aspect-ratio:1;width:100%;border:1px solid #738399;border-radius:6px;background:var(--c);box-shadow:inset 0 1px #fff3;position:relative;min-width:0}.swatch.active{outline:2px solid var(--ice);outline-offset:1px}.swatch.off:before{content:"╱";position:absolute;font-size:22px;top:50%;left:50%;transform:translate(-50%,-50%);color:white;text-shadow:0 0 3px black}.swatch.locked:after{content:"•";position:absolute;bottom:-4px;right:1px;color:#ffe096;font-size:19px;text-shadow:0 0 3px black}.selected-color{border:1px solid #334c66;background:#18283e;border-radius:10px;padding:9px;display:flex;align-items:center;gap:10px}.selected-color-square{width:34px;height:34px;border-radius:9px;border:2px solid #829ab0;background:#293648}.selected-color>div:nth-child(2){flex:1}.selected-color small{font-size:9px;color:#87a0bd;display:block}.selected-color strong{font-size:14px;display:block;margin-top:2px;font-family:ui-monospace,monospace}.tiny-color-picker{position:relative;border:1px solid #3d6178;color:#c6f5ff;border-radius:8px;height:34px;width:34px;display:grid;place-items:center;cursor:pointer;overflow:hidden}.tiny-color-picker input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.palette-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.side-btn{background:#1d2d44;border:1px solid #39506b;color:#cbdfed;border-radius:8px;display:flex;align-items:center;justify-content:flex-start;gap:6px;height:34px;padding:6px 8px;font-size:10px;font-weight:700;white-space:nowrap}.side-btn svg{width:14px;height:14px;color:#8ed3e7}.side-btn.full{grid-column:span 2;justify-content:center}.side-settings{margin-top:2px;border-top:1px solid #293f55;padding-top:13px}.setting-heading{font-size:10px;color:#7fa6c0;font-weight:800;letter-spacing:.13em;margin-bottom:10px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:9px 0;font-size:11px;color:#c6d5e8;cursor:pointer}.setting-row span{display:flex;align-items:center;gap:7px}.setting-row svg{width:15px;height:15px;color:#8ab7cc}.setting-row input[type=color]{width:37px;height:26px;padding:2px;border:1px solid #4b6780;background:#142235;border-radius:7px;cursor:pointer}.setting-row input[type=checkbox]{accent-color:#2bbad9;width:15px;height:15px}.side-note{margin-top:auto;border-top:1px solid #2b3f51;padding-top:13px;color:#718da5;font-size:10px;line-height:1.6}.side-note svg{width:13px;height:13px;color:#53d8b2;margin-right:4px;vertical-align:middle}.bottom-dock{border:1px solid #2b3b52;border-radius:13px;background:linear-gradient(180deg,#162338,#0d1726);display:grid;grid-template-columns:220px 1fr 290px;align-items:center;gap:14px;padding:12px 15px;box-shadow:var(--shadow)}.project-field{display:flex;flex-direction:column;gap:6px}.project-field span{font-size:9px;letter-spacing:.13em;color:#83a0b7;font-weight:850}.project-field input{border:1px solid #334e69;border-radius:7px;background:#0d1a2b;color:#ecf8ff;padding:10px 12px;font-size:12px;min-width:0;outline:none}.project-field input:focus{border-color:var(--ice)}.bottom-actions{display:flex;align-items:center;justify-content:center;gap:9px}.bottom-actions .btn{min-width:0;flex:1;max-width:250px;white-space:nowrap}.bottom-actions .btn-primary{min-width:210px}.footer-status{font-size:9px;color:#7896ab;display:flex;flex-direction:column;gap:8px;text-align:right;letter-spacing:.04em}.footer-status span:first-child{color:#7cd7cd}.pixel-loupe{position:absolute;top:20px;left:20px;width:184px;padding:7px;border-radius:12px;border:1px solid #52a0bc;background:#111d2df4;box-shadow:0 16px 40px #0009;z-index:8;pointer-events:none}.loupe-top{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:800;letter-spacing:.05em;color:#accfe1;margin-bottom:5px}.loupe-top svg{width:12px;height:12px}.loupe-top span{margin-left:auto;color:#f1f9ff}.pixel-loupe canvas{width:168px;height:168px;display:block;border:1px solid #476a7d;image-rendering:pixelated;background:#0d1720}.pixel-loupe small{display:block;text-align:center;margin-top:5px;color:#9db5c7}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);padding:14px 18px;border:1px solid #5b8195;background:#1e3148;color:#f4fcff;border-radius:10px;box-shadow:0 15px 50px #000b;z-index:30;max-width:min(95vw,550px);font-size:12px;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s}.toast.show{transform:translateX(-50%) translateY(0);opacity:1}.toast.error{border-color:#e74e6f;background:#482332}.tip{position:relative}.tip:hover:after{content:attr(data-tip);position:absolute;pointer-events:none;z-index:30;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);width:max-content;max-width:250px;white-space:normal;padding:8px 11px;border-radius:7px;background:#f3f8ff;color:#142239;border:1px solid white;box-shadow:0 8px 30px #0008;font-size:11px;font-weight:650;line-height:1.35;letter-spacing:0;text-align:left}.toolrail .tip:hover:after{left:calc(100% + 8px);bottom:50%;transform:translateY(50%)}@media(max-width:1580px){.workspace{grid-template-columns:67px minmax(0,1fr) minmax(0,1fr) 245px}.workspace.rail-open{grid-template-columns:122px minmax(0,1fr) minmax(0,1fr) 245px}.viewer-stage{min-height:300px}.palette-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.viewer-title span:not(.section-no){display:none}.viewer-tools{gap:3px}.bg-chip{width:14px;height:14px}.bottom-dock{grid-template-columns:190px 1fr 200px}.footer-status span:last-child{display:none}.bottom-actions .btn{padding:8px 9px}.bottom-actions .btn-primary{min-width:165px}}@media(max-width:1250px){.topbar-middle{display:none}.command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:66px minmax(0,1fr) minmax(0,1fr)}.workspace.rail-open{grid-template-columns:120px minmax(0,1fr) minmax(0,1fr)}.palette-panel{grid-column:2/-1;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start}.side-title,.palette-nav,.palette-grid{grid-column:1}.palette-grid{height:200px;grid-template-columns:repeat(8,1fr)}.selected-color,.palette-actions{grid-column:2}.side-settings,.side-note{grid-column:3}.bottom-dock{grid-template-columns:1fr}.bottom-actions{order:1}.project-field{order:0}.footer-status{order:2;flex-direction:row;justify-content:space-between}}@media(max-width:800px){.app-shell{padding:8px;gap:9px}.topbar{height:auto;flex-wrap:wrap}.top-actions{flex-wrap:wrap;justify-content:flex-start}.small-status{display:none}.command-grid{grid-template-columns:1fr 1fr}.control-card{height:112px}.workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr)}.toolrail{flex-direction:row;flex-wrap:wrap;justify-content:center}.toolrail-head{flex-direction:row}.railitem,.workspace.rail-open .railitem{flex-direction:column;justify-content:center;width:60px;padding:4px;min-height:48px}.rail-bottom{display:none}.viewer-stage{min-height:330px}.palette-panel{grid-column:1;display:flex}.bottom-actions{flex-wrap:wrap}.bottom-actions .btn{flex:1 1 150px;max-width:none}.pipette-controls .compact-step input{max-width:25vw}}@media(max-width:520px){.brand b{font-size:17px}.brand b em{display:none}.command-grid{grid-template-columns:1fr}.control-card{height:auto;min-height:103px}.viewer-stage{min-height:280px}.viewer-header{padding:7px}.preview-swatches{display:none}.side-title b{font-size:17px}.render-glass{padding:10px}.progress-ring{width:140px;height:140px}.ring-inner strong{font-size:42px}}

/* V2.1 – mehr Platz für die beiden Bildfenster: keine Werkzeug-Sidebar. */
.workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(258px,276px)}
.bottom-dock{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;padding:12px 16px}
.footer-status{display:flex;flex-direction:column;text-align:left;flex:1 1 180px;min-width:150px;gap:6px}
.bottom-actions{display:flex;justify-content:flex-end;align-items:flex-end;gap:10px;flex:1 1 auto;flex-wrap:wrap}
.bottom-actions .btn{flex:0 0 auto;max-width:none;min-height:44px;white-space:nowrap;padding:10px 17px}
.bottom-actions .btn-primary{min-width:193px}
.bottom-actions .project-field{display:flex;flex:0 1 216px;flex-direction:column;gap:5px;min-width:175px;align-self:center}
.bottom-actions .project-field span{font-size:9px;color:#9cb4cc}
.bottom-actions .project-field input{height:42px;width:100%}
.viewer-card{min-width:0}
.viewer-stage.pipette-active{cursor:crosshair!important;box-shadow:inset 0 0 0 2px #48d7e555}
/* legacy pipette-in-image overlay removed: notification now in the Original header */
@media(max-width:1380px){.workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.palette-panel{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr 1fr;align-items:start}.side-title,.palette-nav,.palette-grid{grid-column:1}.palette-grid{height:175px}.selected-color,.palette-actions{grid-column:2}.side-settings,.side-note{grid-column:3}.bottom-actions .btn{padding:9px 12px}}
@media(max-width:820px){.workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr)}.palette-panel{grid-column:1;display:flex}.bottom-dock{align-items:stretch}.footer-status{flex-basis:100%}.bottom-actions{justify-content:flex-end;width:100%}.bottom-actions .project-field{flex:1 1 170px}.bottom-actions .btn{flex:1 1 140px}}
@media(max-width:510px){.bottom-actions .project-field{order:3;flex:1 1 100%}.bottom-actions #saveBtn{order:4;flex:1 1 100%}}

/* V2.2 – sichtbarer Ein/Aus-Schalter direkt neben Pipette Reset. */
.pipette-controls .pipette-toggle{min-height:33px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;border-radius:8px;border:1px solid #3c8299;background:linear-gradient(155deg,#183547,#102939);color:#a8e6f4;font-size:10px;font-weight:850;letter-spacing:.025em;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px #ffffff12;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}
.pipette-controls .pipette-toggle svg{width:16px;height:16px;flex-shrink:0}
.pipette-controls .pipette-toggle:hover{border-color:#5ce0ff;background:#1d4154;color:#fff}
.pipette-controls .pipette-toggle.is-active{border-color:#54dff8;color:#fff;background:linear-gradient(150deg,#167e9b,#15576d);box-shadow:0 0 0 1px #40d7f240,0 0 15px #31c9ef38,inset 0 1px #ffffff33}
.pipette-controls .pipette-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.pipette-dock:has(.pipette-toggle.is-active){border-top-color:#3dc1de}
@media(max-width:560px){.pipette-controls .pipette-toggle{flex:1 1 160px}}

.pipette-controls .pipette-action-group{display:inline-flex;align-items:center;gap:7px;margin-left:auto;flex:0 0 auto;white-space:nowrap}

/* V2.4 – centered glass/halo vector render action, compact color gallery, large vector focus view. */
.bottom-dock{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:center;flex-wrap:nowrap;min-height:102px;padding:16px 20px;position:relative;overflow:visible}
.bottom-left{display:flex;align-items:center;gap:15px;min-width:0;justify-self:start}
.bottom-left .footer-status{flex:0 1 auto;text-align:left;min-width:0;max-width:260px}
.bottom-left .footer-status span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.bottom-right{justify-self:end;display:flex;align-items:center;gap:12px;min-width:0}
.bottom-right .project-field{width:210px;min-width:160px;flex:0 1 auto;display:flex;flex-direction:column;gap:5px}
.bottom-right .project-field span{font-size:9px;color:#9cb4cc;letter-spacing:.13em;font-weight:850}
.bottom-right .project-field input{height:43px;width:100%}
.bottom-dock .btn{flex:0 0 auto;max-width:none;min-height:44px;white-space:nowrap;padding:10px 16px}
.bottom-dock .btn-lab{position:relative;justify-self:center;min-width:268px;min-height:62px;isolation:isolate;overflow:visible;border-radius:13px;border:1px solid #ff9a9e;background:linear-gradient(115deg,#ff8f95 0%,#fe3b4e 17%,#d20421 46%,#7c0019 83%,#ff4b57 100%);color:#fff;box-shadow:0 0 0 1px #8a1729,0 0 13px 2px #ff324963,0 0 39px 7px #e7063854,0 13px 25px #020409c9,inset 0 2px 1px #ffffffa1,inset 0 -11px 17px #3d00178c,inset 0 0 21px #ff9f9d57;text-shadow:0 1px 2px #43000c,0 0 8px #ffb5b6;letter-spacing:.13em;font-size:13px;font-weight:950;transform:translateZ(0);transition:filter .2s,transform .2s,box-shadow .2s}
.bottom-dock .btn-lab:before{content:"";pointer-events:none;position:absolute;z-index:-1;inset:0;border-radius:12px;background:linear-gradient(180deg,#ffffff5c 0%,#ffffff22 23%,#fff0 48%,#0900002b 70%,#ffffff28 97%);box-shadow:inset 0 0 0 1px #ffb1b07a}
.bottom-dock .btn-lab:after{content:"";pointer-events:none;position:absolute;z-index:1;inset:3px 9px 50%;border-radius:11px 11px 45% 45%;background:linear-gradient(165deg,#ffffff94,#ffffff06 75%);opacity:.59}
.bottom-dock .btn-lab svg{width:22px;height:22px;filter:drop-shadow(0 0 5px #fff8)}
.bottom-dock .btn-lab>span:not(.lab-sparkles){position:relative;z-index:2}
.bottom-dock .btn-lab .lab-sparkles{position:absolute;z-index:2;inset:0;overflow:hidden;pointer-events:none;border-radius:13px;background-image:radial-gradient(circle at 16% 24%,#fff 0 1px,transparent 3px),radial-gradient(circle at 81% 71%,#ffffffd0 0 1px,transparent 3px),radial-gradient(circle at 57% 14%,#ffffffee 0 1px,transparent 2px),linear-gradient(113deg,transparent 21%,#ffffff00 36%,#ffffff63 49%,transparent 61%);background-size:100% 100%,100% 100%,100% 100%,270% 100%;animation:labShine 4.5s ease-in-out infinite}
.bottom-dock .btn-lab:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.2);box-shadow:0 0 0 1px #ff8692,0 0 22px #ff2a54,0 0 65px 15px #f008426c,0 15px 30px #020409dd,inset 0 2px 2px #fff,inset 0 -10px 15px #66001b}
.bottom-dock .btn-lab:active:not(:disabled){transform:translateY(1px)}
.bottom-dock .btn-lab:disabled{opacity:.7;filter:saturate(.7);box-shadow:0 0 0 1px #9b4d57,0 0 12px #e1294540,inset 0 1px 1px #fff7;cursor:not-allowed}
@keyframes labShine{0%,40%{background-position:0 0,0 0,0 0,180% 0}70%,100%{background-position:0 0,0 0,0 0,-70% 0}}
.viewer-header{overflow:visible}
.viewer-tools{gap:5px}
.preview-swatches{gap:4px;align-items:center;flex-shrink:0}
.preview-swatches .bg-chip{width:16px;height:16px}
.bg-menu-toggle{min-width:75px!important;font-size:9px!important;gap:3px;display:flex;align-items:center;justify-content:center;padding:0 5px}
.bg-menu-toggle svg{width:12px;height:12px}
.full-open{margin-left:3px;min-width:32px;height:28px;border:1px solid #2f92b1;background:linear-gradient(#205066,#133548);color:#acfbff}
.full-open svg{width:16px;height:16px}
.full-open:disabled{opacity:.55}
/* These tooltips live directly under body, never in clipped viewer or header DOM. */
.tip:hover:after{display:none!important}
.floating-tip{position:fixed;z-index:10050;pointer-events:none;max-width:min(300px,calc(100vw - 20px));padding:9px 12px;background:#f2f8ff;color:#0f2035;border:1px solid #fff;border-radius:9px;box-shadow:0 8px 35px #000b;font-weight:700;font-size:11px;line-height:1.4;white-space:normal;text-align:left}
.bg-menu{position:fixed;width:348px;max-width:calc(100vw - 20px);z-index:10021;border-radius:14px;padding:14px;background:linear-gradient(160deg,#20354b,#0f1b2b);border:1px solid #5883a1;box-shadow:0 26px 80px #000c,0 0 0 1px #63d8ff14}
.bg-menu-head{display:flex;align-items:center;justify-content:space-between;letter-spacing:.11em;font-size:11px;color:#d8f5ff}
.bg-menu-close{border:1px solid #49667a;background:#1a2b40;border-radius:7px;color:#d6f5fd;padding:3px;display:grid;place-items:center}
.bg-menu-close svg{width:16px;height:16px}
.bg-menu-sub{color:#87a8bd;font-size:10px;margin:6px 0 13px}
.bg-color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.bg-choice{aspect-ratio:1.17;border:2px solid #ffffff69;border-radius:9px;background:var(--choice);box-shadow:inset 0 1px #ffffff36,0 2px 5px #0007;transition:transform .12s,outline .12s;position:relative}
.bg-choice:hover{transform:scale(1.12);z-index:1;border-color:#fff}
.bg-choice.is-active{outline:2px solid #43e9ff;outline-offset:2px}
.bg-menu-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:10px}
.bg-checker-option,.bg-custom-color{height:35px;border:1px solid #3d6178;border-radius:8px;background:#182d42;color:#d5eaf8;font-size:10px;font-weight:800;display:flex;align-items:center;gap:8px;padding:7px 10px}
.checker-preview{width:17px;height:17px;display:inline-block;border:1px solid #798ea7;background:repeating-conic-gradient(#fff 0 25%,#516b7b 0 50%) 50%/10px 10px}
.bg-checker-option.is-active{border-color:#37d3f9}
.bg-custom-color{cursor:pointer}.bg-custom-color input{height:24px;width:34px;border:0;padding:0;background:transparent;cursor:pointer}
.focus-view-open{overflow:hidden}
.fullscreen-overlay{position:fixed;inset:0;z-index:9998;display:flex;flex-direction:column;background:#050910;color:#f2faff;overflow:hidden}
.fullscreen-overlay:fullscreen{width:100vw;height:100vh}
.fullscreen-topbar{min-height:82px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 27px;background:linear-gradient(110deg,#1d293d,#0c1728);border-bottom:1px solid #31506b;box-shadow:0 10px 24px #0008;z-index:1}
.fullscreen-heading{display:flex;gap:13px;align-items:center}.fullscreen-emblem{width:43px;height:43px;border-radius:12px;border:1px solid #eb3857;background:linear-gradient(155deg,#a31532,#430b22);display:grid;place-items:center;box-shadow:0 0 23px #ed39543e}
.fullscreen-emblem svg{width:21px;height:21px}.fullscreen-heading b{display:block;font-size:20px;letter-spacing:.1em}.fullscreen-heading b em{font-size:11px;color:#fb5069;font-style:normal;margin-left:5px}.fullscreen-heading small{display:block;letter-spacing:.22em;font-size:9px;color:#95abc5;margin-top:4px}
.fullscreen-controls{display:flex;align-items:center;gap:9px}.fullscreen-zoom-label{min-width:55px;text-align:center;font-size:13px;font-weight:800;color:#b7dce9;margin-right:5px}
.full-tool{height:39px;min-width:42px;border:1px solid #456a84;border-radius:9px;background:linear-gradient(#263b51,#172637);color:#f0faff;font-size:17px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:6px}
.full-tool:hover{border-color:#7adfff}.full-fit{font-size:11px}.full-bg{font-size:11px;padding:0 12px}.full-bg svg{width:14px;height:14px}
.full-close{margin-left:9px;display:flex;align-items:center;justify-content:center;gap:9px;height:43px;min-width:135px;padding:0 14px;border-radius:10px;border:1px solid #ff6b84;background:linear-gradient(170deg,#b7284a,#5c1730);color:#fff;font-size:11px;font-weight:900;letter-spacing:.1em;box-shadow:0 0 18px #fa2c5c4b}.full-close:hover{filter:brightness(1.22)}.full-close svg{width:19px;height:19px}
.fullscreen-stage{position:relative;overflow:hidden;flex:1;min-height:0;display:block;touch-action:none;cursor:grab;isolation:isolate;background:#000}.fullscreen-stage.dragging{cursor:grabbing}
.fullscreen-pan{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transform-origin:center center;will-change:transform}
.fullscreen-pan img{max-width:97%;max-height:97%;object-fit:contain;display:block;user-select:none;pointer-events:none;filter:drop-shadow(0 12px 32px #0007)}
.fullscreen-bottom{height:46px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #233e51;background:linear-gradient(#122136,#0b1827);font-size:10px;color:#9bb6c9;letter-spacing:.04em}.fullscreen-bottom>span{white-space:nowrap}.fullscreen-bottom i{font-style:normal;color:#ed4664;padding:0 4px}.fullscreen-bottom>span:last-child{color:#aee4ef}
@media(max-width:1600px){.bottom-dock{gap:10px}.bottom-left{gap:8px}.bottom-left .footer-status{display:none}.bottom-right .project-field{width:180px}.bottom-dock .btn-lab{min-width:240px;min-height:56px}}
@media(max-width:1200px){.bottom-dock{grid-template-columns:1fr auto;row-gap:12px}.bottom-dock .btn-lab{grid-column:1/-1;grid-row:1;justify-self:center}.bottom-left{grid-row:2;grid-column:1}.bottom-right{grid-column:2;grid-row:2}.preview-swatches .bg-chip{width:14px;height:14px}}
@media(max-width:700px){.bottom-dock{grid-template-columns:1fr;justify-items:stretch}.bottom-dock .btn-lab{grid-column:1;grid-row:1;min-width:min(100%,330px)}.bottom-left{grid-row:2;grid-column:1;justify-self:start}.bottom-right{grid-row:3;grid-column:1;justify-self:stretch}.bottom-right .project-field{flex:1 1 auto;width:auto}.fullscreen-topbar{flex-wrap:wrap;padding:10px 12px;gap:8px}.fullscreen-heading b{font-size:14px}.fullscreen-controls{width:100%;justify-content:space-between;gap:4px}.full-close{min-width:42px;padding:0 9px;margin-left:0}.full-close span{display:none}.fullscreen-bottom{padding:0 12px;justify-content:center}.fullscreen-bottom>span:nth-child(2){display:none}.fullscreen-bottom>span:last-child{display:none}}
@media(max-width:520px){.bg-menu-toggle{font-size:0!important;min-width:29px!important}.bg-menu-toggle svg{width:14px;height:14px}.preview-swatches{display:flex;gap:2px}.preview-swatches .bg-chip{width:13px;height:13px}.full-open{min-width:28px}.viewer-tools{gap:2px}.zoom-label{min-width:32px}}
@media(prefers-reduced-motion:reduce){.bottom-dock .btn-lab .lab-sparkles{animation:none}}

/* V2.4 – Eyedropper batch mode: only explicit VECTOR LAB STARTEN performs vectorization. */
.pipette-help.has-pending{color:#ffd9ac;font-weight:800;letter-spacing:.01em}
.vector-pending-flag{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:4;pointer-events:none;white-space:nowrap;max-width:95%;text-align:center;font-size:10px;font-weight:900;letter-spacing:.045em;border-radius:20px;background:#5b311bea;color:#ffe7ca;padding:8px 13px;border:1px solid #ffa456;box-shadow:0 3px 16px #0009}


/* V2.4 – Shareable, locally rendered PNG studio card */
.bottom-right{gap:10px}
.btn-card{height:43px;min-height:43px!important;border:1px solid #9164d7!important;color:#f1ddff!important;box-shadow:0 0 15px #b760d03a,inset 0 1px 0 #ffffff20;background:linear-gradient(150deg,#533770,#271e4b)!important;font-size:11px;font-weight:900;letter-spacing:.025em}
.btn-card:hover:not(:disabled){border-color:#c7a4ff!important;filter:brightness(1.18);box-shadow:0 0 24px #c269ee6c,inset 0 1px 0 #ffffff45}
.btn-card svg{width:18px;height:18px}
.card-open{overflow:hidden}
.card-overlay{position:fixed;inset:0;z-index:10030;display:flex;align-items:center;justify-content:center;padding:24px;background:#020710e8;backdrop-filter:blur(13px);overflow-y:auto}
.card-modal{width:min(1190px,96vw);max-height:calc(100vh - 40px);overflow-y:auto;border-radius:18px;background:linear-gradient(160deg,#1b273e,#0d1626 70%);border:1px solid #56738f;box-shadow:0 24px 100px #000e,0 0 0 1px #718cac26}
.card-modal-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:linear-gradient(110deg,#27314a,#121d30);border-bottom:1px solid #3c516b}
.card-modal-title{display:flex;align-items:center;gap:13px}.card-modal-icon{height:42px;width:42px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#76418a,#34224c);border:1px solid #bd7fe0;box-shadow:0 0 20px #c96ef644}
.card-modal-title b{display:block;font-size:19px;letter-spacing:.08em}.card-modal-title small{display:block;margin-top:4px;font-size:10px;letter-spacing:.16em;color:#a7bbd8}
.card-close{height:40px;width:44px;border-radius:10px;border:1px solid #9e4c6c;background:linear-gradient(#642942,#3c1b31);color:#ffcfda;display:grid;place-items:center}.card-close:hover{filter:brightness(1.2)}
.card-modal-main{padding:18px 20px 20px}.card-preview-frame{display:grid;place-items:center;padding:12px;min-height:200px;border-radius:13px;background:repeating-conic-gradient(#1b2a40 0 25%,#172238 0 50%) 50%/24px 24px;border:1px solid #354966}
.card-preview-frame canvas{display:block;width:auto;max-width:100%;max-height:min(53vh,620px);height:auto;object-fit:contain;box-shadow:0 12px 40px #0009;border-radius:7px}
.card-modal-controls{display:flex;flex-direction:column;gap:15px;padding:18px 4px 0}.card-control-copy b{display:block;font-size:12px;letter-spacing:.13em;color:#f4f7ff}.card-control-copy span{display:block;font-size:11px;color:#a1b9d0;margin-top:5px}
.card-color-options{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.card-color-swatch{width:42px;height:38px;border-radius:10px;background:var(--color);border:2px solid #8b98ac;box-shadow:inset 0 1px 1px #fff5}.card-color-swatch.is-active{outline:2px solid #71ecff;outline-offset:2px}.card-color-swatch:hover{transform:translateY(-1px)}
.card-color-picker{display:flex;align-items:center;gap:10px;padding:4px 10px;margin-left:8px;border-radius:9px;background:#1f2f45;border:1px solid #435e7b;font-size:10px;font-weight:800;letter-spacing:.05em;color:#dce8ff;min-height:39px}.card-color-picker input{width:43px;height:28px;border:none;background:transparent;padding:0;cursor:pointer}
.card-control-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #334862;padding-top:15px;color:#91a9c4;font-size:11px;font-weight:700}.card-actions{display:flex;gap:10px}.card-actions .btn{min-height:43px;padding:10px 16px;white-space:nowrap}.btn-card-download{border:1px solid #f28da2;background:linear-gradient(145deg,#e34b72,#8b2048);color:#fff;font-weight:900;box-shadow:0 0 18px #ee4f8164}.btn-card-download:hover:not(:disabled){filter:brightness(1.13)}
@media(max-width:1450px){.bottom-right .project-field{width:155px}.bottom-dock .btn-card,.bottom-dock .btn-export{font-size:10px;padding:9px 10px}}
@media(max-width:700px){.card-overlay{padding:9px}.card-modal{width:100%;max-height:calc(100vh - 18px)}.card-modal-head{padding:10px}.card-modal-title b{font-size:14px}.card-modal-title small{font-size:8px}.card-modal-main{padding:10px}.card-control-bottom{flex-wrap:wrap}.card-actions{width:100%;justify-content:flex-end}.card-color-options{gap:6px}.card-color-swatch{width:31px;height:31px}.card-color-picker{margin-left:0}.bottom-right{flex-wrap:wrap}.bottom-right .project-field{width:100%;flex:1 1 100%}}

/* V2.4 – Automatic multicolor/gradient background helper. */


/* V2.4 Mobile / tablet: adaptive portrait and landscape layout, touch-first. */
html{-webkit-text-size-adjust:100%}
button,select,input{-webkit-tap-highlight-color:transparent}
input[type=range]{accent-color:#ff4a68}
@media (pointer:coarse){
 button, .mini-btn,.icon-btn,.side-btn,.full-tool,.bg-chip{min-height:44px;min-width:44px}
 .bg-chip{width:30px!important;height:30px!important;min-width:30px;min-height:30px}
 .mode{min-height:45px}
 .pipette-action-group>.icon-btn{min-height:44px;padding:9px 12px}
 .pipette-toggle{min-height:44px!important}
 .control-card input[type=range],.compact-step input[type=range]{height:25px}
 .floating-tip{display:none!important}
 .viewer-stage,.fullscreen-stage{overscroll-behavior:contain;touch-action:none}
 .art-image,.fullscreen-pan img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
}
@media (max-width:1050px){
 .app-shell{padding:10px;gap:9px}
 .topbar{height:auto;min-height:64px;gap:10px;flex-wrap:wrap}
 .topbar-middle{display:none}
 .top-actions{margin-left:auto}
 .top-actions .small-status{display:none}
 .command-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .control-card{height:auto;min-height:101px}
 .workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
 .viewer-stage{min-height:280px}
 .viewer-header{height:auto;min-height:62px;flex-wrap:wrap;gap:5px}
 .viewer-title{min-height:32px}
 .viewer-tools{flex-wrap:wrap;gap:5px;justify-content:flex-end}
 .palette-panel{grid-column:1/-1;display:flex;gap:12px}
 .palette-grid{max-height:240px;overflow:auto}
 .pipette-head{flex-wrap:wrap;gap:9px}
 .pipette-controls{gap:8px;justify-content:flex-start}
 .bottom-dock{grid-template-columns:1fr 1fr;gap:10px;padding:12px}
 .bottom-dock .btn-lab{grid-column:1/-1;grid-row:1;justify-self:center;width:min(100%,420px)}
 .bottom-left{grid-row:2;grid-column:1;justify-self:start}
 .bottom-right{grid-row:2;grid-column:2;justify-self:stretch;flex-wrap:wrap}
 .bottom-right .project-field{min-width:160px;flex:1 1 100%;width:100%}
 .footer-status{display:none}
}
@media (max-width:760px) and (orientation:portrait){
 .app-shell{padding:7px 7px max(10px,env(safe-area-inset-bottom));gap:8px}
 .brand img{width:41px;height:41px}.brand b{font-size:18px}.brand b em{font-size:9px}.brand small{letter-spacing:.08em;font-size:8px}
 .topbar{padding:7px 9px;min-height:60px;border-radius:10px}
 .top-actions .btn-max{font-size:10px;padding:8px 9px;min-height:39px}
 .command-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .control-card{min-height:99px;padding:10px}.card-label{font-size:9px;gap:5px;letter-spacing:.04em}
 .card-label output{font-size:17px}.tiny-label{display:none}.card-control{margin-top:10px}
 .card-presets .modes{gap:3px}.mode{font-size:9px;padding:6px 1px}
 .workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr)}
 .original-card,.vector-card,.palette-panel{grid-column:1}
 .viewer-stage{min-height:clamp(270px,57vw,460px)}
 .viewer-header{padding:7px 9px;min-height:58px}
 .viewer-tools{margin-left:auto;gap:4px;flex-wrap:wrap}
 .viewer-title .section-no{font-size:15px}
 .viewer-title b{font-size:13px}.viewer-title div>span{font-size:8px}
 .viewer-tools .mini-btn{min-width:36px;min-height:36px}.viewer-tools .zoom-label{font-size:10px;min-width:34px}
 .pipette-dock{padding:11px 9px}.pipette-head{align-items:stretch}
 .pipette-controls{gap:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .pipette-controls #pipetteScope{grid-column:1/-1;min-width:0;width:100%}
 .pipette-controls .compact-step{min-width:0;max-width:none}
 .pipette-controls .pill-check{grid-column:1 / 2}
 .pipette-controls #undoMark{grid-column:2;justify-self:end}
 .pipette-controls .pipette-action-group{grid-column:1/-1;display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;width:100%;margin:0}
 .pipette-controls #clearMarks{width:100%}
 .pipette-controls #pipetteToggle{min-width:0;width:100%;font-size:11px}
 .pipette-help{font-size:11px;line-height:1.5}
 .palette-panel{padding:12px}.palette-grid{max-height:210px}.palette-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bottom-dock{grid-template-columns:1fr;gap:9px;padding:11px}
 .bottom-dock .btn-lab{grid-column:1;grid-row:1;width:100%;max-width:none;min-width:0;min-height:65px;font-size:14px}
 .bottom-left,.bottom-right{grid-column:1;width:100%;justify-self:stretch}
 .bottom-left{grid-row:2}.bottom-left #openBtn{width:100%;min-height:48px}
 .bottom-right{grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .bottom-right .project-field{grid-column:1/-1;flex:auto;width:100%}
 .bottom-right .btn-card,.bottom-right .btn-export{min-width:0;width:100%;min-height:48px;white-space:normal;font-size:10px;padding:8px 6px}
 .bg-menu{width:min(370px,calc(100vw - 20px))!important;max-height:75dvh;overflow:auto}
 .bg-color-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .fullscreen-overlay{height:100dvh}
 .fullscreen-topbar{padding:8px}.fullscreen-controls{gap:4px;justify-content:space-between;flex-wrap:wrap}
 .full-tool{min-width:40px;flex:0 0 auto}.full-close{min-width:42px}
 .fullscreen-heading small{font-size:8px;letter-spacing:.04em}
 .fullscreen-stage{min-height:0;flex:1}
 .fullscreen-bottom{height:35px}
 .card-overlay{padding:5px;align-items:center}
 .card-modal{width:100%;max-height:calc(100dvh - 10px)}
 .card-preview-frame{padding:4px;min-height:120px}.card-preview-frame canvas{max-height:45dvh}
}
@media (max-width:760px) and (orientation:landscape){
 .app-shell{padding:5px 9px 8px;gap:7px}
 .topbar{min-height:48px;padding:4px 10px}.brand img{width:34px;height:34px}.brand b{font-size:16px}.brand small{display:none}
 .top-actions .btn-max{min-height:34px;padding:5px 10px}
 .command-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .control-card{height:88px;min-height:88px;padding:8px}.card-label{font-size:9px;letter-spacing:.02em}
 .card-label output{font-size:15px}.tiny-label{display:none}.mode{min-height:32px;font-size:8px}.card-control{margin-top:5px}
 .workspace,.workspace.rail-open{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .viewer-card{min-width:0}.viewer-header{min-height:55px}.viewer-stage{min-height:210px}
 .viewer-title b{font-size:12px}.viewer-title div>span{display:none}
 .viewer-tools .mini-btn{min-width:32px;min-height:33px}
 .pipette-dock{padding:8px}.pipette-controls{gap:6px}.pipette-controls .compact-step{min-width:100px}
 .pipette-action-group{margin-left:0}
 .palette-panel{grid-column:1/-1}
 .bottom-dock{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;min-height:65px;padding:8px}
 .bottom-dock .btn-lab{grid-column:2;grid-row:1;min-width:0;width:auto;min-height:49px;padding:8px 14px;font-size:12px}
 .bottom-left{grid-column:1;grid-row:1}.bottom-right{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
 .bottom-right .project-field{display:none}
 .bottom-right .btn-card,.bottom-right .btn-export{font-size:9px;padding:5px 8px;min-height:42px}
 .fullscreen-overlay{height:100dvh}
 .fullscreen-topbar{min-height:56px;padding:5px 10px;flex-wrap:nowrap}
 .fullscreen-controls{width:auto}.fullscreen-heading small{display:none}.fullscreen-bottom{height:29px}
 .bg-menu{max-height:calc(100dvh - 20px);overflow:auto}
 .card-modal{max-height:calc(100dvh - 10px)}
}
@media (min-width:761px) and (max-width:1100px) and (orientation:landscape){
 .workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .palette-panel{grid-column:1/-1}
}
@media (max-width:385px){.brand b{font-size:16px}.top-actions .btn-max{font-size:8px}.preview-swatches{gap:1px}.preview-swatches .bg-chip{width:19px!important;min-width:19px;min-height:27px;height:27px!important}.viewer-tools .mini-btn{min-width:29px}.viewer-header{gap:2px}}

/* Language selector: instantly switch UI; no reload, no loss of project data. */
.lang-switch{display:flex;align-items:center;padding:3px;gap:3px;border:1px solid #39506d;border-radius:10px;background:#0d192b;box-shadow:inset 0 1px #ffffff11;white-space:nowrap}
.lang-choice{display:flex;align-items:center;gap:5px;justify-content:center;height:34px;min-width:53px;padding:4px 8px;color:#96a8be;border:1px solid transparent;border-radius:7px;background:transparent;font-size:11px;font-weight:900;letter-spacing:.03em}
.lang-choice.active{background:linear-gradient(170deg,#405573,#23334f);color:white;border-color:#6588ae;box-shadow:0 0 12px #76b2e437}
.lang-choice:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:700px){.lang-choice{min-width:42px;font-size:10px;padding:4px}.lang-switch{margin-left:auto}.top-actions{gap:4px}.lang-choice span{display:none}}
@media(max-width:385px){.lang-choice{min-width:34px;padding:3px}.brand em{display:none}.topbar{gap:5px}}

/* Easy mode on phones: palette tools expand only when needed. */
.palette-mobile-toggle{display:none}
@media (max-width:950px) and (pointer:coarse){
 .palette-panel{min-height:0!important}
 .palette-mobile-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;margin-top:6px;padding:8px 12px;text-align:left;background:linear-gradient(130deg,#263a52,#13283c);border:1px solid #4c6986;border-radius:9px;color:#c7e5f5;font-size:11px;font-weight:900;letter-spacing:.05em}
 .palette-mobile-toggle svg{transition:transform .18s}
 .palette-mobile-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
 .palette-panel.is-compact>:not(.side-title){display:none!important}
 .palette-panel.is-compact{padding-bottom:12px}
}
@media (min-width:761px) and (max-width:950px) and (orientation:landscape){
 .app-shell{padding:6px 9px;gap:7px}
 .topbar{min-height:50px;padding:4px 10px}
 .brand img{width:38px;height:38px}.brand b{font-size:17px}.brand small{display:none}
 .top-actions .btn-max{min-height:36px;padding:6px 10px}
 .command-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .control-card{min-height:96px;height:auto;padding:9px}.card-label{font-size:9px;letter-spacing:.02em}
 .card-label output{font-size:16px}.tiny-label{display:none}.card-control{margin-top:10px}
 .control-card .mode{font-size:9px;min-height:33px}
 .workspace,.workspace.rail-open{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .viewer-header{min-height:55px;padding:8px}.viewer-title div>span{display:none}
 .viewer-stage{min-height:260px}.pipette-head{gap:7px}.pipette-dock{padding:8px}
 .pipette-controls{gap:7px}.pipette-controls .compact-step{min-width:102px}
 .palette-panel{grid-column:1/-1}
 .bottom-dock{grid-template-columns:1fr auto 1fr;min-height:72px;padding:8px;gap:7px}
 .bottom-dock .btn-lab{grid-column:2;grid-row:1;min-width:0;min-height:50px;padding:9px 15px;font-size:12px;width:auto}
 .bottom-left{grid-column:1;grid-row:1}.bottom-right{grid-column:3;grid-row:1;justify-self:end;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
 .bottom-right .project-field{display:none}
 .bottom-right .btn-card,.bottom-right .btn-export{padding:7px;min-height:42px;font-size:9px}
}

/* V2.5: direct non-WASM pipette preview. The canvas replaces only the visual source while marks are pending. */
#pipettePreview{width:auto;height:auto;image-rendering:auto}
.pipette-dock .pipette-head{justify-content:flex-start}

/* V2.5 COLOR DIAL: single-color precision control independent of the preset selector. */
.card-color .card-control{gap:9px;justify-content:flex-start}
.card-color #colorCount{width:clamp(112px,48%,190px);flex:1 1 105px;min-width:0;padding-left:8px;padding-right:22px;font-size:11px}
.card-color .tiny-label{display:none}
.color-stepper{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:3px;padding:3px;border:1px solid #46627e;border-radius:28px;background:linear-gradient(140deg,#2a3953,#101c2e);box-shadow:inset 0 2px 5px #0008,0 2px 12px #04081299}
.color-step-button{height:29px;width:28px;padding:0;border:1px solid #58728b;border-radius:50%;background:linear-gradient(145deg,#415570,#1b2a3e);color:#d7eeff;font-weight:900;font-size:18px;line-height:1;box-shadow:inset 0 1px #ffffff33,0 1px 3px #0008}
.color-step-button:hover{border-color:#ff7088;color:white;background:linear-gradient(145deg,#984059,#3d223c)}
.color-step-button:active{transform:scale(.94)}
.color-dial{appearance:textfield;-moz-appearance:textfield;width:45px;height:36px;min-width:45px;outline:none;text-align:center;padding:0 2px;border:2px solid #667d98;border-radius:50%;color:#f7fcff;font-size:12px;font-weight:900;letter-spacing:-.02em;background:radial-gradient(circle at 32% 24%,#6d7992 0%,#344358 28%,#142337 64%,#0a1423 100%);box-shadow:inset 0 2px 4px #ffffff2d,inset 0 -4px 7px #0008,0 0 11px #54bbf733;cursor:ns-resize}
.color-dial:hover,.color-dial:focus{border-color:#ff8397;box-shadow:inset 0 2px 5px #ffffff35,inset 0 -4px 8px #0008,0 0 14px #ff4a7b7a}
.color-dial::-webkit-inner-spin-button,.color-dial::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.color-dial.is-turning{border-color:#ffb1c3;box-shadow:0 0 16px #ff426aa6,inset 0 2px 7px #fff3}
@media(max-width:1150px){.card-color .card-control{flex-wrap:wrap;gap:5px}.card-color #colorCount{flex:1 1 80px;width:100%;min-width:80px}.color-stepper{margin-left:auto}.card-color{min-height:113px}}
@media(max-width:760px) and (orientation:portrait){.card-color{min-height:128px}.card-color .card-control{flex-wrap:wrap}.card-color #colorCount{flex:1 1 100%;height:35px}.color-stepper{width:100%;justify-content:space-between}.color-dial{width:48px}.color-step-button{width:31px;height:32px}}
@media(max-width:760px) and (orientation:landscape){.card-color .card-control{margin-top:5px;gap:3px}.card-color #colorCount{flex:1 1 100%;font-size:10px;padding:5px 18px 5px 6px;height:29px}.color-stepper{height:27px;width:100%;justify-content:space-between;padding:1px 4px}.color-step-button{width:24px;height:23px;font-size:15px}.color-dial{height:26px;width:32px;min-width:32px;font-size:11px}.card-color{min-height:98px;height:auto}}
@media(pointer:coarse){.color-step-button{min-height:37px;min-width:37px}.color-dial{min-height:40px;min-width:43px;cursor:text}}


/* V2.5.2 — Projektname aligned with the export buttons (desktop + mobile). */
.bottom-right{align-items:center}
.bottom-right .project-field{
 display:flex;flex-direction:row;align-items:center;align-self:center;
 gap:10px;width:300px;min-width:0;flex:0 1 300px;
 margin:0;padding:0;
}
.bottom-right .project-field span{
 flex:0 0 auto;white-space:nowrap;
 font-size:11px;font-weight:800;line-height:1.2;letter-spacing:.02em;
 color:#bbd0e6;
}
.bottom-right .project-field input{
 display:block;flex:1 1 0;width:0;min-width:105px;
 height:44px;min-height:44px;margin:0;padding:9px 11px;
 font-family:inherit;font-size:15px;font-weight:800;line-height:1.2;
 letter-spacing:.006em;color:#f4faff;
 border-radius:9px;
 box-shadow:inset 0 1px 2px #0004;
}
.bottom-right .project-field input:focus-visible{
 border-color:#56d4f4;
 box-shadow:0 0 0 2px #35c1ef2b,inset 0 1px 2px #0005;
}
@media (max-width:1450px) and (min-width:1201px){
 .bottom-right{gap:8px}
 .bottom-right .project-field{width:245px;flex-basis:245px;gap:7px}
 .bottom-right .project-field span{font-size:10px}
 .bottom-right .project-field input{font-size:14px;min-width:95px}
}
@media (max-width:1200px) and (min-width:761px){
 .bottom-right .project-field{width:100%;flex:1 1 100%}
}
@media (max-width:760px) and (orientation:portrait){
 .bottom-right .project-field{grid-column:1/-1;width:100%;flex:1 1 100%;gap:10px}
 .bottom-right .project-field span{font-size:11px}
 .bottom-right .project-field input{font-size:15px;min-width:0}
}
/* Mobile landscape intentionally keeps the filename field hidden, as in V2.5.1. */
@media (max-width:950px) and (orientation:landscape){
 .bottom-right .project-field{display:none}
}

/* V2.5.2 — beta badge in the topbar, immediately after STUDIO PRO. */
.brand b .beta-badge{
 display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;
 margin-left:9px;padding:5px 8px 4px;
 border:1px solid #ff768d;border-radius:6px;
 background:linear-gradient(160deg,#ba2c48 0%,#83162e 60%,#531023 100%);
 color:#fff3f6;font-size:10px;font-weight:950;font-style:normal;
 line-height:1;letter-spacing:.09em;text-shadow:0 1px 2px #3e0616;
 box-shadow:inset 0 1px #ffd2da60,0 0 12px #ec335266;
}
@media (max-width:760px){
 .brand b .beta-badge{font-size:8px;margin-left:5px;padding:4px 5px}
}
@media (max-width:385px){
 .brand b .beta-badge{display:none}
}

/* RACEVECTOR BETA v2.6 — original glass / 3D grid visual identity.
   Presentation only. Engine, worker, SVG processing and touch interactions unchanged. */
:root{
 --rv-ink:#060a14;--rv-glass:rgba(16,27,45,.72);--rv-red:#ff335d;
 --rv-blue:#4bdcff;--rv-hair:rgba(130,190,231,.29);
 --rv-lustre:inset 0 1px 0 rgba(244,251,255,.19),inset 0 -1px 0 rgba(0,0,0,.35),0 13px 27px rgba(0,0,0,.34);
}
body{
 background:
 radial-gradient(ellipse 50% 38% at 0% 0%,rgba(210,24,71,.24),transparent 80%),
 radial-gradient(ellipse 49% 46% at 100% 12%,rgba(20,142,199,.20),transparent 79%),
 radial-gradient(ellipse 56% 40% at 54% 100%,rgba(213,30,83,.10),transparent 80%),
 linear-gradient(155deg,#080f20 0%,#080d17 54%,#080e1c 100%);
 background-attachment:fixed;
 overflow-x:hidden;
}
/* Fine diagonal technical mesh plus a receding floor grid, never in front of controls. */
body::before{
 content:"";position:fixed;pointer-events:none;inset:-16% -15% -45%;z-index:0;
 background-image:
 linear-gradient(to right,rgba(65,206,244,.22) 1px,transparent 1px),
 linear-gradient(to bottom,rgba(75,164,219,.18) 1px,transparent 1px);
 background-size:47px 47px;
 transform:perspective(670px) rotateX(62deg) translateY(16%) scale(1.34);
 transform-origin:center 76%;opacity:.53;
 mask-image:linear-gradient(to bottom,transparent 3%,#000 54%,#000 90%,transparent 100%);
}
body::after{
 content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
 background:
 repeating-linear-gradient(135deg,transparent 0 38px,rgba(125,179,220,.014) 39px 40px),
 radial-gradient(ellipse at 11% 95%,rgba(242,30,76,.15),transparent 40%),
 radial-gradient(ellipse at 95% 89%,rgba(19,179,234,.13),transparent 43%);
}
.app-shell{position:relative;z-index:1;isolation:isolate}
.topbar,.card,.viewer-card,.palette-panel,.bottom-dock,.hobby-footer{
 -webkit-backdrop-filter:blur(17px) saturate(1.25);
 backdrop-filter:blur(17px) saturate(1.25);
 border:1px solid var(--rv-hair);
 background-color:rgba(11,20,36,.76);
 box-shadow:var(--rv-lustre);
}
.topbar{
 min-height:85px;height:auto;padding:12px 20px;
 border-radius:17px;
 background:
 linear-gradient(112deg,rgba(100,28,56,.23),transparent 33%,rgba(35,135,163,.13) 89%),
 linear-gradient(177deg,rgba(74,104,138,.25),rgba(6,14,30,.88) 62%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.65),0 16px 44px rgba(0,0,0,.42),0 0 30px rgba(255,36,88,.12);
}
.topbar::before{content:"";position:absolute;inset:5px 7px;pointer-events:none;border-radius:12px;
 background:repeating-linear-gradient(90deg,transparent 0 24px,rgba(148,207,240,.028) 25px 26px);
 mask-image:linear-gradient(to bottom,#000,transparent 90%)}
.brand{position:relative;z-index:1;min-width:0;gap:13px}
.brand .brand-logo{height:58px;width:58px;object-fit:cover;border-radius:15px;
 border:1px solid rgba(117,212,239,.4);
 box-shadow:0 0 24px rgba(233,38,84,.25),0 8px 25px #0009,inset 0 0 1px #fff;
 filter:drop-shadow(0 1px 4px rgba(27,199,244,.22));}
.brand-copy{min-width:0}
.brand .brand-line{display:flex;align-items:center;gap:11px;min-width:0}
.brand .race-wordmark{font-family:Impact,"Arial Black","Segoe UI",sans-serif;display:inline-flex;align-items:baseline;
 transform:skewX(-8deg);font-style:italic;font-weight:950;font-size:clamp(21px,2.1vw,33px);
 line-height:1;letter-spacing:.012em;filter:drop-shadow(0 2px 1px #000c);white-space:nowrap;}
.brand .race-word{
 color:#f8fdff;background:linear-gradient(177deg,#fff 10%,#ddf2ff 40%,#7390ae 59%,#eef8ff 82%);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
 text-shadow:0 0 17px rgba(127,210,244,.13);
}
.brand .vector-word{
 color:#ff526f;background:linear-gradient(176deg,#ffc4ce 3%,#ff647e 30%,#ff254e 58%,#b90b38 76%,#ff95a5 100%);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
 text-shadow:0 0 18px rgba(255,43,91,.18);
}
.brand .brand-line .beta-badge{
 display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;
 padding:6px 9px 5px;margin:0 0 0 1px;
 font:900 10px/1 "Segoe UI",Arial,sans-serif;letter-spacing:.12em;
 color:#fff9fb;border:1px solid #ff7b91;border-radius:7px;
 background:linear-gradient(170deg,rgba(255,136,156,.78),rgba(220,27,74,.65) 33%,rgba(89,4,31,.92));
 box-shadow:inset 0 1px 1px #fff7,0 0 14px #ff3f6b74,0 0 27px #e0214a29;
 text-shadow:0 1px 2px #550919;
}
.brand small{font-weight:800;font-size:10px;letter-spacing:.16em;color:#c0d6ea;margin-top:8px}
.brand small i{color:#6de4f7;font-weight:850}
.topbar-middle{opacity:.85}
.small-status,.lang-switch{
 border-color:rgba(110,164,201,.32);
 background:linear-gradient(150deg,rgba(71,97,130,.23),rgba(6,17,34,.74));
 box-shadow:inset 0 1px 0 #ffffff21,0 3px 12px #0005;
 backdrop-filter:blur(9px);
}
/* Crystal panels: a technical grid etched into the upper glass layer. */
.card,.viewer-card,.palette-panel,.bottom-dock,.hobby-footer{
 background-image:
 linear-gradient(152deg,rgba(142,195,228,.15),transparent 32%),
 repeating-linear-gradient(90deg,transparent 0 30px,rgba(132,186,222,.022) 31px 32px),
 linear-gradient(180deg,rgba(24,40,64,.92),rgba(8,18,33,.87));
 background-color:rgba(12,21,38,.9);
}
.card{border-radius:15px;box-shadow:var(--rv-lustre),0 0 22px rgba(19,119,182,.035)}
.viewer-card,.palette-panel{box-shadow:var(--rv-lustre),0 0 24px #0004}
.viewer-header,.side-title,.pipette-dock,.viewer-foot,.metrics,.side-settings{
 background-image:linear-gradient(150deg,rgba(120,170,205,.115),rgba(15,29,49,.25) 62%,rgba(14,34,55,.12));
}
.viewer-header{border-bottom-color:rgba(116,169,209,.30)}
.viewer-stage{box-shadow:inset 0 18px 30px #01050d50,inset 0 -14px 30px #01050d50}
.viewer-stage::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
 box-shadow:inset 0 0 0 1px rgba(113,171,217,.08)}
/* Icon and utility buttons share the same translucent etched-glass treatment. */
.btn:not(.btn-lab),.mini-btn,.icon-btn,.side-btn,.mode,.full-tool,.full-close,.color-step-button,
.bg-menu-toggle,.card-close,.card-color-picker,.lang-choice.active{
 backdrop-filter:blur(10px) saturate(1.25);
 -webkit-backdrop-filter:blur(10px) saturate(1.25);
 box-shadow:inset 0 1px 0 rgba(247,254,255,.23),inset 0 -1px 0 #0007,0 5px 13px #0007;
}
.btn:not(.btn-lab):not(.btn-card){
 background-image:linear-gradient(165deg,rgba(251,254,255,.18),transparent 50%),
 repeating-linear-gradient(90deg,transparent 0 22px,rgba(176,214,242,.045) 23px 24px),
 linear-gradient(160deg,rgba(52,76,106,.82),rgba(12,28,49,.92));
}
.btn.btn-export:not(.btn-lab){border-color:#4ad5ec;
 background-image:linear-gradient(160deg,#ffffff35,transparent 44%),repeating-linear-gradient(90deg,transparent 0 22px,#9af3ff10 23px 24px),linear-gradient(165deg,#2a829cbb,#0c3a57ed);
 box-shadow:inset 0 1px #ffffff55,0 0 17px #1cbee654,0 6px 15px #0009;}
.btn.btn-primary:not(.btn-lab){border-color:#fb6a83;
 background-image:linear-gradient(165deg,#ffffff3e,transparent 46%),repeating-linear-gradient(90deg,transparent 0 23px,#ffffff0b 24px 25px),linear-gradient(160deg,#ea4462,#8c1035);
 box-shadow:inset 0 1px #ffffff77,0 0 19px #f3426b44,0 6px 14px #000a;}
.btn.btn-card:not(.btn-lab){border-color:#ac82ec!important;
 background:linear-gradient(163deg,rgba(255,255,255,.19),transparent 44%),repeating-linear-gradient(90deg,transparent 0 23px,#ffffff08 24px 25px),linear-gradient(160deg,rgba(113,71,158,.93),rgba(42,23,81,.97))!important;
 box-shadow:inset 0 1px #ffffff55,0 0 17px #bd63f15c,0 6px 16px #0009;}
.btn:not(.btn-lab):not(:disabled):hover,.mini-btn:hover,.icon-btn:hover,.side-btn:hover,.mode:hover{
 transform:translateY(-1px);box-shadow:inset 0 1px #ffffff55,0 0 20px #46ceeb38,0 8px 20px #0008;
}
/* The red launch key remains strongest visual action; fine mesh is a transparent overlay. */
.bottom-dock .btn-lab{
 background-image:repeating-linear-gradient(90deg,transparent 0 22px,rgba(255,255,255,.048) 23px 24px),linear-gradient(115deg,#ff8f95 0%,#fe3b4e 17%,#d20421 46%,#7c0019 83%,#ff4b57 100%);
}
.bottom-dock{border-color:rgba(132,190,221,.39);border-radius:16px;
 box-shadow:var(--rv-lustre),0 0 30px rgba(213,47,83,.09)}
.project-field input,.color-dial,.card-control select,.card-presets select{
 border-color:rgba(112,179,216,.53);
 background:linear-gradient(180deg,rgba(11,22,39,.90),rgba(19,35,55,.78));
 box-shadow:inset 0 3px 8px #0008,0 1px 0 #ffffff13;color:#f2f9ff;
}
.project-field input:focus-visible,.color-dial:focus-visible{outline:2px solid #4fcbef;outline-offset:1px}
.hobby-footer{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 16px;border-radius:11px;
 background-image:linear-gradient(100deg,rgba(113,30,64,.18),rgba(14,27,45,.87) 40%,rgba(25,91,123,.2));
 box-shadow:inset 0 1px #ffffff1c,0 7px 22px #0005;
}
.hobby-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#ff7392;flex:0 0 auto;
 border:1px solid #ae5672;background:#471b36;font-size:16px;box-shadow:0 0 12px #f42a625e}
.hobby-footer p{margin:0;color:#b8cddd;line-height:1.45;font-size:11px;letter-spacing:.01em;flex:1}
.hobby-footer p strong{font-weight:850;color:#eaf8ff}
.hobby-signature{white-space:nowrap;font-size:10px;color:#7cdcf0;font-weight:900;letter-spacing:.1em}
.hobby-signature span{color:#ff6b87}
@media(max-width:1340px){
 .brand .race-wordmark{font-size:clamp(20px,2.18vw,29px)}
 .brand .brand-logo{height:52px;width:52px}
 .brand small{font-size:9px;letter-spacing:.1em}
 .topbar{gap:10px}
 .topbar-middle{font-size:8px;letter-spacing:.15em;gap:6px}
 .small-status{padding:8px 10px}
}
@media(max-width:1000px){
 .topbar{min-height:66px;padding:9px 12px}
 .brand .brand-logo{height:46px;width:46px}
 .brand .race-wordmark{font-size:26px}
 .brand small{margin-top:5px}
}
@media(max-width:760px){
 .brand .brand-logo{height:41px;width:41px;border-radius:11px}
 .brand .race-wordmark{font-size:clamp(18px,5vw,26px)}
 .brand .brand-line{gap:7px}
 .brand .brand-line .beta-badge{font-size:8px;padding:5px 6px;display:inline-flex!important}
 .brand small{font-size:7px;letter-spacing:.055em}
 .hobby-footer{padding:9px;gap:8px;align-items:flex-start}
 .hobby-footer p{font-size:10px}
 .hobby-signature{font-size:8px;white-space:normal;max-width:80px;text-align:right}
}
@media(max-width:410px){
 .brand{gap:8px}
 .brand .brand-logo{height:37px;width:37px}
 .brand .race-wordmark{font-size:19px}
 .brand .brand-line .beta-badge{font-size:7px;padding:4px 5px}
 .brand small{font-size:7px}
 .hobby-signature{max-width:58px;font-size:8px;letter-spacing:0}
}
@media(max-width:760px) and (orientation:landscape){
 .brand .race-wordmark{font-size:20px}
 .brand .brand-logo{height:36px;width:36px}
 .brand small{display:none}
 .hobby-footer{min-height:0;padding:6px 10px}
 .hobby-footer p{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.brand .brand-logo{animation:none}}

/* Keep the entire document dark, even below the first screen on small devices. */
html{background:#070b16}
body{min-height:100vh;background-attachment:scroll}

/* Racevector BETA V2.6.1 — pipette notice only in original title bar.
   Never tint, cover or blur the user's artwork when the pipette is enabled. */
.original-card .viewer-header{height:auto;min-height:61px;flex-wrap:wrap;align-content:center;gap:6px 8px}
.original-card .viewer-header .viewer-title{flex:0 0 auto}
.original-card .viewer-header .viewer-tools{margin-left:auto;flex:0 0 auto}
.pipette-header-notice{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 padding:7px 10px;max-width:100%;min-height:31px;flex:0 1 auto;
 border:1px solid rgba(255,204,68,.73);border-radius:9px;
 background:linear-gradient(145deg,rgba(130,88,19,.32),rgba(47,36,17,.50));
 color:#ffe8a8;font-size:10px;font-weight:900;line-height:1.2;
 letter-spacing:.035em;white-space:nowrap;
 box-shadow:0 0 0 1px rgba(255,220,98,.09),inset 0 1px 0 rgba(255,236,150,.24),0 0 18px rgba(237,170,48,.16);
 pointer-events:none;
}
.pipette-warning-icon{
 display:grid;place-items:center;flex:0 0 18px;
 height:18px;width:18px;line-height:1;
 clip-path:polygon(50% 3%,100% 94%,0 94%);
 background:linear-gradient(180deg,#fff1a5,#ffb927);
 color:#2f240a;font-size:12px;font-weight:1000;
 padding-top:4px;text-shadow:none;
}
/* A small amount of space for the notification on narrow viewports, not an overlay. */
@media (max-width:1580px){
 .pipette-header-notice{font-size:9px;padding:6px 8px}
}
@media (max-width:600px){
 .original-card .viewer-header{gap:6px;min-height:56px}
 .pipette-header-notice{order:3;margin-right:auto;padding:6px 9px}
 .original-card .viewer-header .viewer-tools{order:2}
}


/* RACEVECTOR 2.7 • professional motorsport interface — display only. */
:root{
 --bg:#080c12;--panel:#151c26;--panel2:#1b2530;--edge:#384550;
 --red:#ec3447;--red-dim:#a80c25;--ice:#aebcca;--white:#f0f4f8;
 --muted:#95a4b4;--rv-red:#ec3447;--rv-blue:#acb8c6;
 --rv-hair:rgba(164,180,197,.23);
}
html,body{background:#080c12!important}
body{color:#edf3f8;background-image:radial-gradient(ellipse 70% 45% at 60% 0%,#222a33b5,transparent),linear-gradient(180deg,#0d1219,#080c12)!important;background-attachment:fixed!important}
body::before{background-image:linear-gradient(90deg,rgba(173,186,202,.07) 1px,transparent 1px),linear-gradient(rgba(173,186,202,.045) 1px,transparent 1px)!important;background-size:72px 72px!important;transform:perspective(700px) rotateX(52deg)!important;opacity:.19!important;inset:0 -20% -40%!important;mask-image:linear-gradient(to bottom,transparent 13%,#000 95%)}
body::after{opacity:.06!important;background:linear-gradient(125deg,transparent 30%,#a90e25 55%,transparent 65%)!important;}
.app-shell{gap:12px;max-width:2440px}
.topbar{background:linear-gradient(105deg,rgba(29,37,48,.97),rgba(13,20,28,.98))!important;border:1px solid #3e4855!important;border-radius:14px!important;box-shadow:inset 0 1px #ffffff17,0 16px 42px #0006!important}
.topbar:after{background:linear-gradient(90deg,#e43146,transparent 37%,transparent 80%,#778392)!important;opacity:.65}
.brand .brand-logo{border-radius:10px!important;animation:none!important;box-shadow:none!important;filter:none!important;background:#0e131b;border:1px solid #68727d70!important}
.brand .race-wordmark{font-family:Inter,'Segoe UI',Arial,sans-serif!important;font-weight:950!important;letter-spacing:-.045em!important;font-style:normal!important;font-size:clamp(23px,2.25vw,36px)!important;line-height:1.03!important;text-shadow:none!important;filter:none!important;transform:none!important}
.brand .race-wordmark span{background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;-webkit-text-fill-color:initial!important;text-shadow:none!important}
.brand .race-word{color:#f4f6fa!important}.brand .vector-word{color:#ea374a!important}
.brand .brand-line .beta-badge{border:1px solid #bd5864!important;background:linear-gradient(180deg,#5b1823,#351018)!important;box-shadow:inset 0 1px #ffffff26!important;color:#ffbec6!important;border-radius:5px!important;text-shadow:none!important}
.brand small{color:#97a4b3!important;letter-spacing:.14em!important}.brand small i{color:#a7b3c0!important}
.topbar-middle{color:#7f8b98!important}.micro-line{background:linear-gradient(90deg,transparent,#4b5866,transparent)!important}
.small-status{border-color:#37444f!important;color:#a4b2c1!important;background:#131b25!important;box-shadow:none!important}
.card,.viewer-card,.palette-panel,.toolrail,.bottom-dock{background:linear-gradient(163deg,rgba(29,40,52,.92),rgba(12,19,28,.97))!important;border:1px solid #40505d!important;border-radius:13px!important;box-shadow:inset 0 1px #ffffff17,0 14px 31px #0005!important;backdrop-filter:blur(12px)}
.viewer-header,.side-title{background:linear-gradient(115deg,#222e3b,#141f2b)!important;border-bottom:1px solid #364652!important}
.viewer-title .section-no,.viewer-foot,.side-kicker{color:#b0bdc9!important}.card-label svg,.side-note svg{color:#b5bfca!important}
.btn:not(.btn-lab),.mini-btn,.side-btn,.icon-btn,.mode,.lang-choice,.railitem,.pipette-toggle{background:linear-gradient(174deg,#334150,#1a2531)!important;border-color:#4b5969!important;color:#e3eaf1!important;box-shadow:inset 0 1px #ffffff20,0 3px 9px #0005!important;text-shadow:none!important}
.btn:not(.btn-lab):not(:disabled):hover,.mini-btn:hover,.side-btn:hover,.mode:hover{border-color:#96a7b6!important;filter:brightness(1.08)!important;box-shadow:inset 0 1px #ffffff28,0 6px 14px #0007!important}
.btn.btn-card{background:linear-gradient(160deg,#434454,#242c3b)!important;border-color:#667081!important}
.btn.btn-export{background:linear-gradient(160deg,#354655,#192f3c)!important;border-color:#627989!important}
.btn.btn-max{border-color:#85616a!important;background:linear-gradient(165deg,#54303b,#281922)!important;color:#ffcad2!important}
.bottom-dock .btn-lab{background-image:linear-gradient(160deg,#ff5665,#d21d34 49%,#760b1b)!important;box-shadow:inset 0 1px #ffabb05e,0 0 22px #d4133037,0 7px 20px #0008!important;border:1px solid #fd5b6d!important;color:white!important}
.card-control select,.project-field input,.color-dial,.card-presets select{background:#131d28!important;border-color:#445363!important;box-shadow:inset 0 2px 6px #0008!important;color:#f2f6f8!important}
.mode.active,.lang-choice.active{background:linear-gradient(165deg,#5c3540,#342632)!important;border-color:#a65364!important;color:#ffe2e6!important}
.pipette-toggle.is-active,.pipette-toggle[aria-pressed="true"]{border-color:#b65e70!important;background:linear-gradient(165deg,#643340,#39232e)!important;color:#ffe1e5!important}
.checker{background-color:#151c25!important;background-image:linear-gradient(45deg,#222d3b 25%,transparent 25%),linear-gradient(-45deg,#222d3b 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#222d3b 75%),linear-gradient(-45deg,transparent 75%,#222d3b 75%)!important}
.hobby-footer{border:1px solid #343f4b;background:linear-gradient(100deg,#1a202a,#121a24)!important;box-shadow:inset 0 1px #ffffff12!important}
.hobby-icon{color:#ed7e89!important;background:#36252b!important;border-color:#79515a!important;box-shadow:none!important}
.hobby-signature{color:#b2bec9!important}.hobby-footer strong{color:#e8edf4!important}
.race-wordmark{white-space:nowrap}
@media(max-width:760px){.brand .race-wordmark{font-size:clamp(18px,5vw,25px)!important}}
@media(max-width:410px){.brand .race-wordmark{font-size:18px!important}}

/* Cohesive muted-red control highlights for the new Racevector identity. */
input[type=range]{background:linear-gradient(90deg,#6d2534,#df4351)!important;border-color:#59414b!important}
input[type=range]::-webkit-slider-thumb{border-color:#bf3445!important;box-shadow:0 0 0 3px #17212c,0 0 9px #dc34444e!important}
input[type=range]::-moz-range-thumb{border-color:#bf3445!important;box-shadow:0 0 0 3px #17212c,0 0 9px #dc34444e!important}
.card-label output{color:#f0f3f8!important}
.pipette-dock .dock-heading svg,.viewer-title .section-no,.selected-color svg{color:#cb8790!important}
.palette-indicator,.live-dot{background:#cc4b5a!important;box-shadow:0 0 7px #cb425a4d!important}

/* Racevector 2.7.2 — shared worldwide ZIP export counter */
.racevector-buildbar{
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
 gap:7px 15px;min-height:30px;padding:2px 8px;
 color:#8594a6;font-size:10px;letter-spacing:.085em;font-weight:750;
}
.buildbar-version{white-space:nowrap}
.buildbar-zip{
 display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
 border:1px solid #354454;border-radius:7px;
 background:linear-gradient(115deg,#222d39,#141b24);
 box-shadow:inset 0 1px #ffffff13;padding:5px 9px;
 color:#b9cbd9;letter-spacing:.065em;font-size:10px;
}
.buildbar-zip svg{width:12px;height:12px;color:#b7cad9}
.buildbar-zip output{font-size:12px;font-variant-numeric:tabular-nums;font-weight:900;color:#f4f8ff;padding-left:3px;min-width:1ch}
@media(max-width:760px){
 .racevector-buildbar{justify-content:center;gap:5px 10px;line-height:1.3;padding:1px 4px}
 .buildbar-version{font-size:9px}
 .buildbar-zip{font-size:9px;padding:4px 7px}
}
@media(max-width:410px){.racevector-buildbar{gap:5px}.buildbar-version{font-size:8px}.buildbar-zip{font-size:8px}}

/* Explicit no-backend state when Racevector is started via file:// or on static-only hosting. */
.buildbar-zip.is-unavailable{opacity:.7;border-style:dashed}
.buildbar-zip.is-unavailable output{color:#9aa8b8}


/* Racevector 2.7.5: clear, blocking and explicitly acknowledged error dialog */
.rv-error-dialog{
 width:min(590px,calc(100vw - 28px));max-width:590px;max-height:min(86dvh,760px);
 padding:0;margin:auto;color:#eef3f9;background:transparent;border:0;
 overflow-y:auto;border-radius:20px;box-shadow:0 32px 95px #000c,0 0 0 1px #ffffff10;
}
.rv-error-dialog::backdrop{background:rgba(2,7,13,.83);backdrop-filter:blur(7px)}
.rv-error-panel{
 position:relative;overflow:hidden;text-align:center;padding:32px 34px 28px;
 border:1px solid #5f6876;border-top:2px solid #e65b68;border-radius:20px;
 background:linear-gradient(148deg,rgba(40,53,68,.99),rgba(11,19,29,.99) 65%);
 box-shadow:inset 0 1px #ffffff23,0 16px 70px #0009;
}
.rv-error-panel::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.14;
 background-image:linear-gradient(#96acbc18 1px,transparent 1px),linear-gradient(90deg,#96acbc18 1px,transparent 1px);
 background-size:26px 26px;mask-image:linear-gradient(#000,transparent 65%)}
.rv-error-emblem{
 width:66px;height:66px;display:grid;place-items:center;margin:0 auto 14px;
 border:2px solid #ffce69;border-radius:18px;transform:rotate(-5deg);
 background:linear-gradient(160deg,#64502d,#29251f);color:#ffdf8c;
 font:900 45px/1 system-ui,sans-serif;text-shadow:0 2px #0006;
 box-shadow:0 0 0 6px #f2be4f12,0 8px 25px #e2a52f1a,inset 0 1px #ffffff5c;
}
.rv-error-kicker{margin:0 0 7px;font:900 11px/1.4 system-ui,sans-serif;letter-spacing:.19em;color:#ffb3ba}
.rv-error-panel h2{margin:0 0 22px;font:800 clamp(23px,3.4vw,30px)/1.17 system-ui,sans-serif;letter-spacing:-.025em;color:#f9fbff}
.rv-error-explanation,.rv-error-next{text-align:left;margin:0 0 13px;padding:16px 17px;border-radius:11px;border:1px solid #485666;background:#0c1724aa}
.rv-error-explanation b,.rv-error-next b{display:block;color:#ffc56a;font:850 11px/1.4 system-ui,sans-serif;letter-spacing:.11em;margin-bottom:6px}
.rv-error-next b{color:#c2d8f1}
.rv-error-explanation p,.rv-error-next p{margin:0;color:#e3eaf2;font:500 14px/1.55 system-ui,sans-serif;overflow-wrap:anywhere}
.rv-error-technical{margin:13px 0 21px;text-align:left;color:#a6b4c4;font:600 12px system-ui,sans-serif}
.rv-error-technical summary{cursor:pointer;padding:6px 0;list-style:revert}
.rv-error-technical code{display:block;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere;background:#08101b;border:1px solid #344151;border-radius:8px;padding:11px;font:12px/1.5 ui-monospace,Consolas,monospace;color:#cdd9e6}
.rv-error-confirm{
 width:100%;min-height:62px;cursor:pointer;border:1px solid #ff7b83;border-radius:12px;
 background:linear-gradient(172deg,#f66a77,#c8203c 57%,#91192e);color:white;
 font:900 clamp(15px,2.8vw,19px)/1.2 system-ui,sans-serif;letter-spacing:.035em;
 box-shadow:inset 0 2px #ffffff5e,0 10px 27px #d4294b44,0 0 20px #cb2b3a24;
 transition:filter .15s,transform .15s;
}
.rv-error-confirm:hover{filter:brightness(1.14);transform:translateY(-1px)}
.rv-error-confirm:focus-visible{outline:3px solid #ffdd74;outline-offset:3px}
@media(max-width:480px){.rv-error-panel{padding:23px 19px 20px}.rv-error-panel h2{margin-bottom:15px}.rv-error-explanation,.rv-error-next{padding:12px 13px}.rv-error-emblem{width:56px;height:56px;font-size:38px}}

/* Racevector 2.7.6 – compact glass/graphite intelligent background tools */
.smart-bg-tools{margin:10px 0 8px;padding:10px 11px;border:1px solid rgba(121,161,188,.32);border-radius:12px;background:linear-gradient(145deg,rgba(35,56,76,.73),rgba(13,28,44,.9));box-shadow:inset 0 1px #ffffff1c,0 7px 16px #0002}
.smart-bg-title{display:flex;align-items:center;gap:8px;font-weight:850;font-size:10px;letter-spacing:.08em;color:#e4eff8;margin-bottom:9px}
.smart-bg-title small{font-size:9px;color:#7fa7b7;margin-left:auto;letter-spacing:.05em}
.smart-bg-dot{width:8px;height:8px;background:#fd5e68;border-radius:50%;box-shadow:0 0 0 3px #fd5e6820,0 0 13px #ff425766}
.smart-bg-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.smart-bg-button{min-height:37px;border:1px solid #536d86;border-radius:9px;padding:8px 12px;background:linear-gradient(180deg,#344960,#192d42);color:#e3f3fd;font-weight:850;font-size:11px;letter-spacing:.02em;box-shadow:inset 0 1px #ffffff30,0 4px 10px #050c1670;cursor:pointer}
.smart-bg-button:hover{border-color:#b0d7f5;background:linear-gradient(180deg,#425e79,#24394e)}
.smart-bg-button:focus-visible{outline:2px solid #fbd784;outline-offset:2px}
.smart-bg-primary{border-color:#ad5863;color:#fff;background:linear-gradient(170deg,#a34555,#541e31)}
.smart-bg-primary:hover{background:linear-gradient(170deg,#d05565,#6b233b);border-color:#ff9aaa}
.smart-bg-button.is-active{border-color:#efc569;background:linear-gradient(170deg,#83612e,#4e361b);color:#fff8db;box-shadow:0 0 15px #fac66d3d,inset 0 1px #ffffff3b}
.smart-bg-sensitivity{display:inline-flex;gap:7px;align-items:center;margin-left:auto;color:#b7cbd8;font-size:9px;letter-spacing:.055em;font-weight:750}
.smart-bg-sensitivity input{width:106px;accent-color:#db6771;cursor:pointer}
.smart-bg-sensitivity output{font-size:11px;font-weight:900;color:#f4f7ff;min-width:19px}
.smart-bg-note{font-size:10px;margin-top:8px;color:#9badbb;line-height:1.45}
@media(max-width:800px){.smart-bg-button{flex:1 1 140px;min-height:44px}.smart-bg-sensitivity{margin:3px 0 0;width:100%;justify-content:space-between}.smart-bg-sensitivity input{flex:1;max-width:190px}}


/* V2.7.7: One compact Freistellen toolbar, no second background-removal box. */
.cutout-dock{
 display:flex!important;flex-direction:column;gap:8px!important;
 padding:9px 11px!important;min-height:0;border-top:1px solid #52647a;
 background:linear-gradient(135deg,rgba(31,42,57,.91),rgba(13,22,35,.94))!important;
 box-shadow:inset 0 1px #ffffff20,0 4px 15px #0004;
}
.cutout-primary{display:flex;align-items:center;gap:11px;min-width:0}
.cutout-identity{display:flex;flex-direction:column;gap:3px;flex:0 0 auto;min-width:112px}
.cutout-identity .dock-heading{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:900;letter-spacing:.065em;color:#eef5fa;white-space:nowrap}
.cutout-identity .dock-heading svg{width:16px;height:16px;color:#f16c77}
.cutout-identity small{font-size:8px;letter-spacing:.115em;color:#8497a9;font-weight:750}
.pipette-dock .pipette-controls.cutout-actions{
 display:flex!important;flex:1 1 auto;min-width:0;align-items:center;
 justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap;
}
.cutout-actions .smart-bg-button,.cutout-actions .pipette-toggle{
 display:inline-flex;align-items:center;justify-content:center;
 flex:1 1 auto;min-width:0;min-height:36px!important;height:36px;
 padding:7px 9px!important;white-space:nowrap;font-size:10px!important;
 letter-spacing:0!important;line-height:1.1;border-radius:8px;
}
.cutout-actions .pipette-toggle{max-width:none;background:linear-gradient(170deg,#213c4b,#132934)!important;color:#d0f4f6!important;border-color:#487b86!important}
.cutout-actions .pipette-toggle.is-active{background:linear-gradient(165deg,#28798d,#165167)!important;border-color:#6ce5ff!important}
.cutout-actions .smart-bg-primary{border-color:#ae626a}
.cutout-actions .smart-bg-button.is-active{border-color:#eab867}
.cutout-actions .pipette-toggle svg{width:14px;height:14px}
.cutout-actions .icon-btn{flex:0 0 auto;min-height:36px!important;height:36px!important;min-width:36px!important;padding:7px 9px!important;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:10px;font-weight:850}
.cutout-actions .cutout-reset{min-width:54px!important}
.cutout-actions .cutout-undo svg{height:16px;width:16px}
.cutout-options{
 display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;
 border-top:1px solid #ffffff16;padding:8px 1px 0;min-width:0;
}
.cutout-mode,.cutout-range{min-width:0;display:flex;align-items:center;gap:6px;height:30px;color:#aebbc9;font-size:9px;font-weight:850;letter-spacing:.045em}
.cutout-mode{flex:0 0 auto}
.cutout-mode select{width:140px;max-width:140px;height:30px;padding:4px 21px 4px 8px;font-size:10px;color:#f1f5fc;border:1px solid #3a5163;background:#182a3a;border-radius:7px}
.cutout-range{flex:1 1 110px;max-width:230px}
.cutout-range span{flex:0 0 auto}
.cutout-range input{min-width:30px;width:100%;flex:1 1 45px;accent-color:#dc6270;height:25px;cursor:pointer}
.cutout-range output{flex:0 0 auto;min-width:25px;text-align:right;font-size:10px;font-weight:850;color:#e6f1fb}
.cutout-range.smart-bg-sensitivity{margin:0;width:auto;justify-content:initial;color:#aebbc9}
.cutout-range.smart-bg-sensitivity input{max-width:none;width:100%}
.cutout-fragments{flex:0 0 auto;display:inline-flex;align-items:center;white-space:nowrap;font-size:10px;min-height:29px;margin-left:auto}
.cutout-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:5px;min-width:0;border-top:1px solid #ffffff0c}
.cutout-footer .pipette-help{margin:0!important;min-width:0;flex:1 1 auto;font-size:10px;line-height:1.28;color:#aebfce}
.cutout-help{flex:0 0 auto;position:relative}
.cutout-help summary{list-style:none;white-space:nowrap;cursor:pointer;color:#adcad7;font-size:10px;font-weight:800;padding:2px 5px;border-radius:5px}
.cutout-help summary::-webkit-details-marker{display:none}
.cutout-help[open]{flex:1 1 100%;order:2}
.cutout-help[open] p{margin:7px 0 0;font-size:10px;color:#afbfcb;line-height:1.45}
.cutout-footer:has(.cutout-help[open]){flex-wrap:wrap}
.cutout-help summary:hover{color:#fff;background:#ffffff0e}
@media(max-width:1400px){
 .cutout-primary{flex-wrap:wrap;gap:7px}
 .cutout-identity{flex-direction:row;align-items:center;gap:10px;flex:1 1 100%}
 .pipette-dock .pipette-controls.cutout-actions{justify-content:flex-start!important}
 .cutout-options{gap:5px 8px}
 .cutout-mode select{width:128px}
 .cutout-range{flex:1 1 130px;max-width:none}
}
@media(max-width:760px){
 .cutout-dock{padding:8px!important;gap:7px!important}
 .cutout-primary{flex-wrap:wrap}
 .cutout-identity{min-width:0}
 .pipette-dock .pipette-controls.cutout-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;width:100%;flex:1 1 100%}
 .cutout-actions .smart-bg-button,.cutout-actions .pipette-toggle{width:100%!important;min-height:43px!important;height:43px;padding:5px 6px!important;font-size:9px!important}
 .cutout-actions .cutout-undo,.cutout-actions .cutout-reset{min-height:39px!important;height:39px!important;width:100%;min-width:0!important}
 .cutout-actions .cutout-undo{grid-column:2}
 .cutout-actions .cutout-reset{grid-column:3}
 .cutout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 9px}
 .cutout-mode{grid-column:1/-1;display:flex;justify-content:space-between}
 .cutout-mode select{flex:1 1 auto;max-width:100%;width:auto;margin-left:8px}
 .cutout-range{max-width:none;min-width:0;width:100%;flex:auto;gap:4px}
 .cutout-range span{font-size:8px}
 .cutout-range input{min-width:0}
 .cutout-fragments{margin:0;min-height:28px}
 .cutout-footer .pipette-help{font-size:10px}
}
@media(min-width:761px) and (max-width:950px) and (orientation:landscape){
 .cutout-identity{flex:1 1 100%}
 .cutout-actions .smart-bg-button,.cutout-actions .pipette-toggle{font-size:9px!important}
}

/* V2.7.9: legible, finger-friendly cutout settings in three distinct columns. */
.cutout-dock{gap:10px!important;padding:12px 14px!important}
.cutout-primary{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cutout-identity{min-width:130px}
.pipette-dock .pipette-controls.cutout-actions{flex:1 1 520px;justify-content:flex-end!important;gap:8px!important}
.cutout-actions .smart-bg-button,.cutout-actions .pipette-toggle{min-height:43px!important;height:43px!important;font-size:11px!important;padding:9px 13px!important;flex:1 1 145px}
.cutout-actions .icon-btn{min-height:43px!important;height:43px!important;min-width:43px!important}
.cutout-actions .cutout-reset{min-width:64px!important}
.cutout-options{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:10px!important;align-items:stretch;border-top:1px solid #ffffff20;padding-top:10px}
.cutout-option-panel{background:linear-gradient(180deg,#2232487d,#15233572);border:1px solid #3b4e6285;border-radius:10px;padding:10px 12px 11px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px;box-shadow:inset 0 1px #ffffff0b}
.cutout-group-head{display:flex;justify-content:space-between;align-items:center;gap:9px;min-height:27px}
.cutout-group-head strong{color:#d9eaf5;letter-spacing:.085em;font-size:10px;font-weight:850;white-space:nowrap}
.cutout-group-head small{font-size:10px;color:#9babbb;white-space:nowrap}
.cutout-option-panel .cutout-mode{height:auto;gap:6px;font-size:10px;font-weight:800;min-width:0;flex:0 1 auto}
.cutout-option-panel .cutout-mode select{width:146px;max-width:100%;height:34px;font-size:11px;padding:5px 25px 5px 8px}
.cutout-option-panel .cutout-range,.cutout-option-panel .cutout-range.smart-bg-sensitivity{width:100%!important;max-width:none!important;height:auto!important;display:flex;flex-direction:column;align-items:stretch;gap:7px!important;flex:1 1 auto;margin:0!important;font-size:10px!important;letter-spacing:.045em;justify-content:flex-end}
.cutout-option-panel .cutout-range>span{display:block;color:#b9cbdb;font-weight:850}
.cutout-slider-line{display:flex;align-items:center;gap:13px;width:100%;min-height:28px}
.cutout-option-panel .cutout-range input[type=range],.cutout-option-panel .cutout-range.smart-bg-sensitivity input[type=range]{height:10px!important;width:100%!important;max-width:none!important;min-width:80px!important;margin:0!important;flex:1 1 auto;cursor:pointer;border:1px solid #45546c;background:linear-gradient(90deg,#a52d48,#ff5d72);border-radius:40px}
.cutout-option-panel .cutout-range input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border:4px solid #ee536b;box-shadow:0 0 0 3px #1a2536,0 0 14px #fa526a77;background:#fff}
.cutout-option-panel .cutout-range input[type=range]::-moz-range-thumb{width:17px;height:17px;border:4px solid #ee536b;box-shadow:0 0 0 3px #1a2536,0 0 14px #fa526a77;background:#fff}
.cutout-option-panel .cutout-range output{min-width:48px!important;flex:0 0 48px!important;display:grid;place-items:center;height:31px;padding:0 4px;text-align:center;font-size:13px!important;font-weight:900!important;border-radius:7px;color:#fff;background:#0c1828;border:1px solid #415269;font-variant-numeric:tabular-nums}
.cutout-fragments{margin:0!important;font-size:11px!important;min-height:24px!important;gap:7px}
.cutout-fragments input{width:17px;height:17px}
.cutout-footer{padding-top:4px;min-height:22px}
.view-caption>span[hidden]{display:none!important}
@media(max-width:1140px){.cutout-options{grid-template-columns:repeat(2,minmax(0,1fr))}.cutout-fringe-controls{grid-column:1/-1}.cutout-fringe-controls .cutout-slider-line{max-width:calc(50% - 15px)}.cutout-identity{flex:1 1 100%}}
@media(max-width:680px){.cutout-options{grid-template-columns:1fr;gap:7px!important}.cutout-fringe-controls{grid-column:auto}.cutout-fringe-controls .cutout-slider-line{max-width:none}.cutout-option-panel{gap:7px;padding:10px}.cutout-group-head{flex-wrap:wrap}.cutout-primary{gap:8px}.pipette-dock .pipette-controls.cutout-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cutout-actions .pipette-toggle{grid-column:1/-1}.cutout-actions .cutout-undo{grid-column:1!important}.cutout-actions .cutout-reset{grid-column:2!important}.cutout-actions .smart-bg-button,.cutout-actions .pipette-toggle{min-height:43px!important;height:43px!important;font-size:10px!important}}
/* The workspace image pane can be much narrower than the browser viewport.
   Breakpoints therefore follow the cutout panel itself, not the whole screen. */
.cutout-dock{container-type:inline-size}
.cutout-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.cutout-fringe-controls{grid-column:1/-1}
.cutout-fringe-controls .cutout-slider-line{max-width:calc(50% - 5px)}
@container (min-width:820px){
 .cutout-options{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr))!important}
 .cutout-fringe-controls{grid-column:auto}
 .cutout-fringe-controls .cutout-slider-line{max-width:none}
}
@container (max-width:420px){
 .cutout-primary{flex-direction:column;align-items:stretch}
 .cutout-identity{min-width:0;flex-basis:auto}
 .pipette-dock .pipette-controls.cutout-actions{justify-content:flex-start!important;flex-basis:auto}
 .cutout-options{grid-template-columns:1fr!important}
 .cutout-fringe-controls{grid-column:auto}
 .cutout-fringe-controls .cutout-slider-line{max-width:none}
 .cutout-group-head{flex-wrap:wrap}
 .cutout-option-panel{padding:9px 11px}
}

/* V2.7.10 — Focus-first cutout bar. Keep image area large; settings on demand. */
.cutout-dock{
  padding:7px 9px!important;gap:0!important;
  border-top-color:#344a5e;
}
.cutout-dock .cutout-primary{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr) max-content;
  align-items:center;gap:7px!important;
  flex-wrap:nowrap!important;min-width:0;
}
.cutout-dock .cutout-identity{
  display:flex!important;flex-direction:row!important;flex:0 0 auto!important;
  min-width:0!important;gap:0!important;align-items:center;
}
.cutout-dock .cutout-identity .dock-heading{font-size:11px;letter-spacing:.035em}
.cutout-dock .cutout-identity small{display:none}
.cutout-dock .pipette-controls.cutout-actions{
  display:flex!important;flex:initial!important;flex-wrap:nowrap!important;
  justify-content:stretch!important;align-items:center;min-width:0;width:100%;gap:5px!important;
}
.cutout-dock .cutout-actions .smart-bg-button,
.cutout-dock .cutout-actions .pipette-toggle{
  flex:1 1 0!important;min-width:0!important;width:auto!important;
  min-height:36px!important;height:36px!important;
  padding:6px 6px!important;font-size:9px!important;
  line-height:1.1!important;letter-spacing:0!important;white-space:nowrap;
}
.cutout-dock .cutout-actions .pipette-toggle svg{width:13px;height:13px}
.cutout-dock .cutout-actions .icon-btn,
.cutout-dock .cutout-actions .cutout-undo,
.cutout-dock .cutout-actions .cutout-reset{
  flex:0 0 auto!important;min-height:36px!important;height:36px!important;
  min-width:36px!important;width:36px!important;grid-column:auto!important;
  padding:5px!important;font-size:9px!important;
}
.cutout-dock .cutout-actions .cutout-reset{min-width:50px!important;width:50px!important}
.cutout-settings-toggle{
  display:flex;align-items:center;justify-content:center;gap:5px;
  height:36px;min-width:81px;padding:0 8px;border-radius:8px;
  border:1px solid #5b7186;color:#e0ebf5;background:linear-gradient(180deg,#314252,#1a293b);
  font-size:10px;font-weight:850;letter-spacing:.035em;white-space:nowrap;
  box-shadow:inset 0 1px rgba(255,255,255,.13);
}
.cutout-settings-toggle svg{width:14px;height:14px;color:#a5cee1}
.cutout-toggle-chevron{font-size:15px;line-height:1;transition:transform .15s}
.cutout-settings-toggle[aria-expanded="true"]{border-color:#d16c79;background:linear-gradient(180deg,#50323f,#2c202f)}
.cutout-settings-toggle[aria-expanded="true"] .cutout-toggle-chevron{transform:rotate(180deg)}
.cutout-settings-toggle:hover{filter:brightness(1.13)}
.cutout-settings-toggle:focus-visible{outline:2px solid #f1c677;outline-offset:2px}
/* A hidden advanced panel must stay hidden even with older display: grid !important rules. */
.cutout-dock .cutout-options[hidden]{display:none!important}
.cutout-dock .cutout-options:not([hidden]){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch;gap:6px!important;padding:8px 0 3px!important;
  border-top:1px solid #ffffff1b;margin-top:7px;
}
.cutout-dock .cutout-option-panel{
  padding:8px 9px!important;min-height:0!important;gap:6px!important;
  border-radius:8px;box-shadow:none;
}
.cutout-dock .cutout-group-head{min-height:22px!important;gap:4px}
.cutout-dock .cutout-group-head strong{font-size:9px}
.cutout-dock .cutout-group-head small{font-size:9px}
.cutout-dock .cutout-option-panel .cutout-mode select{height:29px;font-size:10px;max-width:135px}
.cutout-dock .cutout-option-panel .cutout-range,
.cutout-dock .cutout-option-panel .cutout-range.smart-bg-sensitivity{
  display:grid!important;grid-template-columns:minmax(65px,auto) minmax(0,1fr);
  align-items:center!important;gap:8px!important;margin:0!important;
}
.cutout-dock .cutout-option-panel .cutout-range>span{font-size:9px}
.cutout-dock .cutout-fringe-controls{grid-column:1/-1!important}
.cutout-dock .cutout-fringe-controls .cutout-slider-line{max-width:100%!important}
.cutout-dock .cutout-slider-line{gap:9px;min-width:0}
.cutout-dock .cutout-option-panel .cutout-range output{height:28px;font-size:12px!important;min-width:45px!important;flex-basis:45px!important}
.cutout-dock .cutout-fragments{font-size:10px!important}
/* The footer only carries a brief status and help, never a large extra panel. */
.cutout-dock .cutout-footer{padding-top:4px!important;min-height:0!important;gap:6px;border-top:0!important}
.cutout-dock .cutout-footer .pipette-help{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:9px!important;line-height:1.1;color:#8eabbc;
}
.cutout-dock .cutout-help summary{font-size:9px;padding:0 2px}
/* Measure the actual image pane width, not the browser width. */
@container (max-width:750px){
 .cutout-dock .cutout-primary{grid-template-columns:max-content minmax(0,1fr)!important;row-gap:5px!important}
 .cutout-dock .cutout-identity{grid-column:1;grid-row:1}
 .cutout-dock .cutout-settings-toggle{grid-column:2;grid-row:1;justify-self:end}
 .cutout-dock .pipette-controls.cutout-actions{grid-column:1/-1;grid-row:2}
}
@container (min-width:751px){
 .cutout-dock .cutout-primary{grid-template-columns:max-content minmax(0,1fr) max-content!important}
 .cutout-dock .cutout-options:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .cutout-dock .cutout-fringe-controls{grid-column:auto!important}
 .cutout-dock .cutout-option-panel .cutout-range,
 .cutout-dock .cutout-option-panel .cutout-range.smart-bg-sensitivity{display:flex!important;flex-direction:column;align-items:stretch!important;gap:5px!important}
}
@container (max-width:450px){
 .cutout-dock .pipette-controls.cutout-actions{
   display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
   gap:5px!important;
 }
 .cutout-dock .cutout-actions .smart-bg-button,
 .cutout-dock .cutout-actions .pipette-toggle{grid-column:auto!important;min-height:38px!important;height:38px!important;font-size:8.7px!important}
 .cutout-dock .cutout-actions .cutout-undo{grid-column:2!important;justify-self:end;width:45px!important}
 .cutout-dock .cutout-actions .cutout-reset{grid-column:3!important;justify-self:stretch;width:100%!important}
 .cutout-dock .cutout-options:not([hidden]){grid-template-columns:1fr!important}
 .cutout-dock .cutout-fringe-controls{grid-column:auto!important}
}
/* Optimized tool grouping: undo/reset/settings live in a compact utility cluster. */
.cutout-dock .cutout-utilities{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.cutout-dock .cutout-utilities .icon-btn{
 min-height:36px!important;height:36px!important;min-width:36px!important;width:36px!important;
 padding:5px!important;border-radius:8px;font-size:10px!important;display:inline-flex;align-items:center;justify-content:center;
}
.cutout-dock .cutout-utilities .cutout-reset{width:50px!important;min-width:50px!important}
.cutout-dock .cutout-primary{grid-template-columns:max-content minmax(0,1fr) max-content!important}
@container (max-width:750px){
 .cutout-dock .cutout-primary{grid-template-columns:max-content minmax(0,1fr)!important}
 .cutout-dock .cutout-utilities{grid-column:2;grid-row:1;justify-self:end}
 .cutout-dock .pipette-controls.cutout-actions{grid-column:1/-1;grid-row:2}
}
@container (max-width:450px){
 .cutout-dock .pipette-controls.cutout-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
 .cutout-dock .cutout-actions .smart-bg-button,.cutout-dock .cutout-actions .pipette-toggle{min-height:39px!important;height:39px!important}
}
@media(max-width:520px){
 .cutout-dock .pipette-controls.cutout-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .cutout-dock .cutout-actions .pipette-toggle svg{display:none}
}

/* Racevector V2.7.11: true single-screen Full HD workstation + contextual palette drawer. */
.palette-quick-toggle{
 flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:32px;padding:5px 10px;border-radius:9px;color:#e5eff7;
 border:1px solid #536574;background:linear-gradient(165deg,#34414d,#1a2837);
 box-shadow:inset 0 1px #ffffff28,0 5px 14px #0005;
 white-space:nowrap;font-size:10px;font-weight:850;letter-spacing:.055em;
}
.palette-quick-toggle:hover,.palette-quick-toggle.is-open{border-color:#e67a88;background:linear-gradient(165deg,#5b3440,#2b2433)}
.palette-quick-toggle:focus-visible,.palette-mobile-toggle:focus-visible{outline:2px solid #ffdc81;outline-offset:2px}
.palette-quick-toggle svg{height:13px;width:13px;transition:transform .18s}
.palette-quick-toggle.is-open svg{transform:rotate(180deg)}
.palette-quick-dot{height:13px;width:13px;border-radius:4px;border:1px solid #b4c0ca;box-shadow:0 0 0 2px #ffffff12;background:#384a5e}
.palette-quick-toggle strong{color:#fff5b9;font-variant-numeric:tabular-nums;font-size:11px}
.palette-panel[hidden]{display:none!important}
.palette-panel.is-drawer-open{display:flex!important;flex-direction:column!important;gap:9px!important;grid-column:auto!important;
  background:linear-gradient(155deg,rgba(33,45,57,.98),rgba(12,21,32,.99))!important;
  padding:12px!important;border:1px solid #647687!important;border-radius:14px!important;}
.palette-panel .palette-mobile-toggle{display:flex!important;align-items:center;justify-content:space-between;
 width:100%;margin:0;padding:9px 10px;min-height:36px;border-radius:8px;
 color:#e9f0f7;background:linear-gradient(160deg,#344354,#1c2b3d);border:1px solid #50667c;font-size:10px;font-weight:850;letter-spacing:.05em;}
.palette-mobile-toggle svg{height:15px;width:15px}
.palette-panel .side-title{gap:4px!important;display:flex!important;flex-direction:column!important;grid-column:auto!important}
.palette-panel .side-title>b{font-size:16px!important}
.palette-panel .side-kicker{font-size:9px}
.palette-panel .palette-grid{display:grid!important;height:auto!important;min-height:90px!important;max-height:220px!important;grid-column:auto!important;
 grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:5px;overflow:auto}
.palette-panel .palette-nav,.palette-panel .selected-color,.palette-panel .palette-actions,.palette-panel .side-settings,.palette-panel .side-note{grid-column:auto!important}
.workspace{position:relative}
@media(min-width:960px){
 .workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
 .palette-panel.is-drawer-open{
  position:absolute!important;right:0;top:0;bottom:0;width:min(350px,45%);height:auto;z-index:25;
  overflow-y:auto;overflow-x:hidden;box-shadow:-16px 0 45px #000c,0 0 0 1px #ffffff19!important;
 }
}
@media(max-width:959px){
 .workspace,.workspace.rail-open{grid-template-columns:minmax(0,1fr)!important}
 .palette-panel.is-drawer-open{position:relative;width:100%;height:auto;max-height:none;overflow:visible}
}
@media(max-width:650px){
 .palette-quick-toggle{padding:6px 8px;min-height:32px;gap:5px;font-size:9px}
 .palette-quick-caption{display:none}
 .palette-panel.is-drawer-open .palette-grid{max-height:190px!important}
}
/* At standard Full HD resolutions everything important fits without page scrolling.
   The image canvases share the remaining height and never stretch the document. */
@media(min-width:1360px) and (min-height:820px) and (pointer:fine){
 html,body{height:100%;overflow:hidden!important}
 .app-shell{
  height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;
  display:grid!important;grid-template-rows:66px 84px minmax(0,1fr) 70px 29px 24px;
  gap:7px!important;padding:8px 12px 8px!important;
 }
 .topbar{height:66px!important;min-height:0!important;padding:5px 13px!important;border-radius:12px!important}
 .brand .brand-logo{height:49px!important;width:49px!important;border-radius:11px!important}
 .topbar-middle{gap:8px}.top-actions{gap:7px}
 .command-grid{height:84px!important;min-height:0;gap:9px!important}
 .command-grid .control-card{height:84px!important;min-height:0!important;padding:8px 12px!important;overflow:hidden}
 .command-grid .card-control{margin-top:9px!important}
 .command-grid .card-slider input[type=range]{margin:12px 0 2px!important}
 .command-grid .modes{margin-top:5px!important}
 .command-grid .presets-footer{margin-top:4px!important}
 .workspace,.workspace.rail-open{height:100%!important;min-height:0!important;max-height:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:9px!important;}
 .viewer-card{height:100%!important;min-height:0!important;overflow:hidden!important}
 .viewer-stage{min-height:0!important;flex:1 1 0!important}
 .viewer-header{height:49px!important;min-height:49px!important;padding:6px 10px!important}
 .view-caption{min-height:24px!important;padding:3px 10px!important}
 .cutout-dock{padding:5px 8px!important;flex:0 0 auto}
 .cutout-dock .cutout-footer{padding-top:1px!important}
 .metrics{flex:0 0 auto;padding:6px 10px!important}
 .viewer-foot{flex:0 0 auto;padding:6px 10px!important}
 .bottom-dock{height:70px!important;min-height:0!important;padding:6px 12px!important;gap:12px!important}
 .bottom-dock .btn-lab{min-height:49px!important;height:49px!important}
 .hobby-footer{height:29px!important;min-height:0!important;padding:3px 10px!important;overflow:hidden}
 .hobby-footer p{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;font-size:10px!important}
 .hobby-icon{height:23px;width:23px;font-size:12px}
 .racevector-buildbar{height:24px!important;min-height:0!important;padding:0 7px!important}
}

/* V2.7.12: Fleckenfilter and quality controls fit INSIDE the 84px Full HD tile.
   Keep the 1080p single-screen grid height unchanged and maintain bottom padding. */
@media (min-width:1360px) and (min-height:820px) and (pointer:fine){
 .command-grid .card-presets .modes{
  margin-top:2px!important;height:24px;align-items:stretch;
 }
 .command-grid .card-presets .modes .mode{
  min-height:24px!important;height:24px!important;
  padding:3px 5px!important;line-height:1.15;
 }
 .command-grid .card-presets .presets-footer{
  margin-top:2px!important;height:23px;min-height:23px;
  align-items:center;gap:10px;
 }
 .command-grid .card-presets .presets-footer span{
  line-height:1.15;font-size:9px;letter-spacing:.05em;
 }
 .command-grid .card-presets #speckle{
  height:23px;min-height:23px;padding:2px 25px 2px 9px;
  font-size:10px;line-height:1.2;
 }
}

/* V2.7.13: discreet glass HOW TO action beside the DE/EN switch. */
.top-actions .howto-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:36px;padding:7px 13px;border:1px solid rgba(209,156,82,.55);border-radius:10px;background:linear-gradient(160deg,rgba(66,56,55,.85),rgba(24,31,43,.94));box-shadow:inset 0 1px rgba(255,238,205,.16),0 4px 12px rgba(0,0,0,.22);color:#ffdfad;text-decoration:none;font-size:11px;font-weight:900;letter-spacing:.07em;white-space:nowrap;transition:border-color .18s,box-shadow .18s,filter .18s}
.top-actions .howto-btn svg{width:16px;height:16px;color:#ffcb7c;stroke-width:1.8}
.top-actions .howto-btn:hover{border-color:#ffd397;box-shadow:inset 0 1px rgba(255,238,205,.3),0 0 18px rgba(239,167,81,.19);filter:brightness(1.08)}
.top-actions .howto-btn:focus-visible{outline:2px solid #ffe2a4;outline-offset:2px}
@media(max-width:800px){.top-actions .howto-btn{min-height:34px;padding:5px 10px;font-size:10px}}
@media(max-width:385px){.top-actions .howto-btn{padding:5px 7px;gap:4px;font-size:9px}.top-actions .howto-btn svg{width:14px;height:14px}}

/* Racevector BETA 2.8 – studio-quality controls with maximized work area */
.rv-top-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:7px 11px;border:1px solid #536474;border-radius:9px;background:linear-gradient(160deg,#304254,#162635);color:#e4f3ff;font-size:10px;letter-spacing:.055em;font-weight:850;white-space:nowrap;box-shadow:inset 0 1px #ffffff26,0 5px 16px #0004}
.rv-top-chip[aria-pressed="true"]{background:linear-gradient(150deg,#5b293a,#291a27);border-color:#ff758e;color:#fff}
.rv-brush-button{padding:6px 10px!important;gap:5px!important}.rv-brush-button.is-active{border-color:#ef677d!important;background:linear-gradient(160deg,#633140,#302334)!important;color:#ffe7ec!important}
.rv-brush-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 10px;border:1px solid #3c4c5d;background:linear-gradient(100deg,#1a2b3b,#162535);border-radius:10px;flex:0 0 auto}
.rv-brush-options[hidden]{display:none!important}.rv-brush-choices{display:flex;gap:5px;min-width:0}.rv-brush-choice{min-height:33px;padding:6px 11px;border:1px solid #506174;border-radius:8px;background:#293747;color:#e4eff7;font-size:10px;font-weight:850;white-space:nowrap}
.rv-brush-choice.selected{border-color:#ff8291;background:#6a3042;box-shadow:inset 0 1px #ffffff28}
.rv-brush-size{display:flex;gap:10px;align-items:center;flex:1;min-width:130px;font-size:10px;font-weight:850;color:#b6cddd}
.rv-brush-size input{flex:1;min-width:50px;max-width:260px;accent-color:#fa5169;height:8px}
.rv-brush-size output{min-width:39px;text-align:right;font-weight:900;color:#fff}
.rv-brush-hint{font-size:9px;color:#9bb3c3;line-height:1.3}
.rv-brush-active{cursor:crosshair!important}.rv-brush-active .art-image{cursor:crosshair!important}
.pixel-loupe.rv-precision-loupe{width:356px!important;max-width:calc(100vw - 16px);padding:9px;z-index:18;border-color:#a8b7c4;background:linear-gradient(160deg,rgba(34,49,64,.98),rgba(12,22,33,.98));box-shadow:0 16px 50px #000d,0 0 0 1px #f8ffff1a}
.rv-loupe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.rv-loupe-grid>div{min-width:0}.rv-loupe-grid span{display:block;text-align:center;margin:0 0 4px;color:#b7d0e2;font-size:9px;letter-spacing:.05em;font-weight:850}
.rv-loupe-grid canvas,.pixel-loupe.rv-precision-loupe canvas{width:100%;height:auto;aspect-ratio:1;image-rendering:pixelated;border-radius:5px;border:1px solid #698295;display:block;background:#101b29}
.rv-palette-merge{border:1px solid #46586b;border-radius:10px;background:linear-gradient(165deg,#253746,#192635);padding:10px;display:grid;gap:8px}
.rv-palette-merge label{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;font-size:10px;font-weight:850;letter-spacing:.04em;color:#d3e4f2}
.rv-palette-merge output{font-size:12px;color:#ff9baf}.rv-palette-merge input{grid-column:1/-1;width:100%}
.rv-palette-merge .side-btn{justify-content:center;text-align:center;min-height:35px;background:#35455b;border-color:#65788b}
.rv-palette-merge small{color:#8ba4b8;line-height:1.4;font-size:9px}
.rv-check-chip{margin-left:auto;align-self:center;border:1px solid #3f8b83;border-radius:8px;background:linear-gradient(160deg,#17483e,#12302d);color:#b5ffe5;padding:6px 9px;font-size:10px;letter-spacing:.055em;font-weight:900;white-space:nowrap}
.rv-check-chip.rv-check-warning{border-color:#d59842;background:#4c3624;color:#ffdfa1}
.rv-check-dialog{max-height:90vh;width:min(560px,calc(100vw - 20px));padding:0;border:1px solid #667d90;border-radius:16px;background:transparent;color:#f2f8ff;box-shadow:0 30px 100px #000d}
.rv-check-dialog::backdrop{background:rgba(2,7,12,.79);backdrop-filter:blur(8px)}
.rv-check-panel{padding:21px;background:linear-gradient(150deg,#213244,#101e2e)}
.rv-check-panel header{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #455669;padding-bottom:15px;gap:10px}
.rv-check-panel header small{font-size:10px;letter-spacing:.18em;color:#ffc098;font-weight:850}
.rv-check-panel h2{margin:5px 0 0;font-size:21px;line-height:1.2}
.rv-check-panel header button{min-width:32px;height:32px;color:#f6faff;background:#28384a;border:1px solid #587084;border-radius:8px}
.rv-check-results{display:grid;gap:8px;margin:18px 0}.rv-check-row{display:flex;gap:12px;padding:12px;background:#132234;border:1px solid #3c526a;border-radius:9px}
.rv-check-row>span{flex-shrink:0;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#135344;color:#b3ffe7;font-size:14px;font-weight:900}
.rv-check-row.warn>span{background:#68462b;color:#ffe3aa}.rv-check-row b{font-size:11px;letter-spacing:.07em}
.rv-check-row p{margin:4px 0 0;font-size:11px;color:#b5c8d7;line-height:1.5;overflow-wrap:anywhere}
.rv-check-note{font-size:10px;color:#b3c8d9;line-height:1.5;margin:0 0 16px}
.rv-check-panel>.btn{width:100%;min-height:42px}
@media (min-width:960px){
 .rv-focus-mode .app-shell{grid-template-rows:48px minmax(0,1fr) 64px!important;gap:6px!important}
 .rv-focus-mode .topbar{height:48px!important;min-height:48px!important;padding:4px 12px!important}
 .rv-focus-mode .brand .brand-logo{width:36px!important;height:36px!important}
 .rv-focus-mode .brand-line .race-wordmark{font-size:19px}
 .rv-focus-mode .brand small,.rv-focus-mode .topbar-middle,.rv-focus-mode .small-status,.rv-focus-mode .top-actions #maxBtn,.rv-focus-mode .command-grid,.rv-focus-mode .hobby-footer,.rv-focus-mode .racevector-buildbar{display:none!important}
 .rv-focus-mode .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;min-height:0!important;height:100%!important}
 .rv-focus-mode .viewer-stage{min-height:0!important}
 .rv-focus-mode .bottom-dock{height:64px!important;min-height:64px!important}
}
@media (max-width:959px){.rv-focus-mode .command-grid{display:none!important}.rv-focus-mode .hobby-footer{display:none!important}}
@media (max-width:620px){.rv-brush-options{flex-direction:column;align-items:stretch}.rv-brush-hint{display:none}.rv-brush-size{min-width:0}.rv-loupe-grid span{font-size:8px}.rv-top-chip span{display:none}.pixel-loupe.rv-precision-loupe{width:min(350px,96vw)!important}}
@media (max-width:380px){.rv-brush-choices{justify-content:center}.rv-brush-choice{padding:6px 7px}.rv-top-chip{padding:6px 8px}}

/* V2.8 brush finishing and slide-away desktop focus dock */
.rv-brush-options .rv-brush-choices{flex-wrap:wrap}
.rv-brush-options .rv-brush-choice{flex-shrink:0}
.rv-brush-options .rv-brush-size{flex:1 1 160px}
@media (min-width:960px) and (pointer:fine){
 .rv-focus-mode .app-shell{grid-template-rows:48px minmax(0,1fr)!important}
 .rv-focus-mode .bottom-dock{position:fixed!important;left:12px;right:12px;bottom:0;z-index:35;
  height:64px!important;transform:translateY(calc(100% - 17px));transition:transform .25s ease,box-shadow .25s ease;
  box-shadow:0 -2px 18px #0009!important;}
 .rv-focus-mode .bottom-dock::before{content:'▲  WERKZEUGLEISTE';position:absolute;left:50%;top:-14px;transform:translateX(-50%);
  color:#d9e8ef;background:linear-gradient(#354457,#1b2b3c);border:1px solid #4c6278;border-radius:7px 7px 0 0;
  padding:2px 14px;font-size:9px;font-weight:850;letter-spacing:.07em;pointer-events:none;}
 .rv-focus-mode .bottom-dock:hover,.rv-focus-mode .bottom-dock:focus-within{transform:translateY(0)}
}

/* Racevector 2.9: High-visibility gold MAX DETAILS (real settings, no duplicate control). */
.topbar-middle{flex:1;min-width:180px;display:flex;justify-content:center;opacity:1!important}
.topbar-middle .rv-max-premium{position:relative;isolation:isolate;overflow:hidden;min-height:47px!important;padding:8px 25px!important;border:1px solid #f9d678!important;border-radius:12px!important;color:#261604!important;background:linear-gradient(155deg,#fff1ad 0%,#e9b84a 25%,#bd7b1d 52%,#ffda74 78%,#9d5c12 100%)!important;box-shadow:inset 0 2px #fff9dc, inset 0 -3px #9c601a, 0 0 13px #eab85291,0 0 30px #daa43e57,0 8px 20px #0009!important;font-size:14px!important;letter-spacing:.08em!important;font-weight:1000!important;white-space:nowrap;text-shadow:0 1px #fff8acb3}
.rv-max-premium svg{color:#5e3907!important;filter:drop-shadow(0 1px #fff0a5)}
.rv-max-premium:before{content:"";position:absolute;inset:-80%;pointer-events:none;background:linear-gradient(110deg,transparent 44%,#fff9cdcf 49%,transparent 53%);transform:translateX(-60%) rotate(-5deg);animation:rvGoldSweep 5s ease-in-out infinite;z-index:-1}
.rv-max-premium:after{content:"✦";position:absolute;right:8px;top:2px;font-size:10px;color:#fffbdd;text-shadow:0 0 7px white;animation:rvGoldTwinkle 2.8s ease-in-out infinite}
.rv-max-premium:hover{filter:brightness(1.13)!important;transform:translateY(-1px);box-shadow:0 0 35px #ffc757ab,0 0 14px #feeebb!important}
@keyframes rvGoldSweep{0%,45%{transform:translateX(-65%) rotate(-5deg)}65%,100%{transform:translateX(65%) rotate(-5deg)}}
@keyframes rvGoldTwinkle{50%{opacity:.2;transform:scale(.6)}}
.rv-source-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-start}
.rv-source-actions .btn{min-height:32px!important;height:34px!important;padding:5px 10px!important;font-size:10px!important;white-space:nowrap}
.rv-ai-launch{border:1px solid #b084dd!important;color:#eddaff!important;background:linear-gradient(145deg,#49335e,#231b39)!important;box-shadow:inset 0 1px #e9c5ff50,0 0 13px #9d4bd13b!important}
.rv-ai-launch:not(:disabled):hover{box-shadow:0 0 20px #d38fff8c!important}
.rv-ai-dialog{background:transparent;border:0;padding:12px;max-width:min(1000px,98vw);width:100%;max-height:min(94vh,990px);color:#edf5ff;overflow:auto}
.rv-ai-dialog::backdrop{background:#03060bc9;backdrop-filter:blur(10px)}
.rv-ai-panel{border-radius:21px;border:1px solid #765c9c;background:linear-gradient(157deg,#252638,#111927 48%,#0c111c);box-shadow:0 24px 90px #000e,0 0 35px #985de03d,inset 0 1px #fffc;padding:22px;display:flex;flex-direction:column;gap:14px}
.rv-ai-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.rv-ai-head small{font-size:10px;letter-spacing:.18em;color:#b6a4d1;font-weight:800}.rv-ai-head h2{font-size:33px;letter-spacing:.07em;margin:4px 0;color:#fff;font-weight:950}.rv-ai-head h2 span{color:#dca5ff;text-shadow:0 0 13px #af68f7}.rv-ai-head p{margin:0;color:#a9b6ca}
.rv-ai-close{border:1px solid #475269;border-radius:9px;padding:10px 13px;background:#1c2738;color:white;font-size:18px}
.rv-ai-options{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.rv-ai-option-label{font-size:10px;letter-spacing:.13em;color:#98afc9;font-weight:900}.rv-ai-segments{display:flex;gap:4px;padding:4px;background:#0d1725;border:1px solid #40516e;border-radius:10px}.rv-ai-segments button{padding:9px 17px;border:0;border-radius:8px;background:none;color:#b4bed0;font-weight:850;font-size:11px}.rv-ai-segments button.active{background:linear-gradient(155deg,#8856b1,#533c83);color:white;box-shadow:0 2px 12px #b078e45c}.rv-ai-source{margin-left:auto;color:#b3c0d3;font-size:12px}
.rv-ai-compare{position:relative;min-height:260px;height:min(43vh,475px);background:#0b1220;border:1px solid #58667c;border-radius:13px;overflow:hidden;--split:50%}.rv-ai-checker{position:absolute;inset:0;background-color:#111927;background-image:linear-gradient(45deg,#223044 25%,transparent 25%),linear-gradient(-45deg,#223044 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#223044 75%),linear-gradient(-45deg,transparent 75%,#223044 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.rv-ai-compare img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.rv-ai-compare #rvAiAfter{opacity:0}.rv-ai-compare.is-ready #rvAiAfter{opacity:1}.rv-ai-compare.is-ready #rvAiBefore{clip-path:inset(0 calc(100% - var(--split)) 0 0)}.rv-ai-divider{display:none;pointer-events:none;position:absolute;top:0;bottom:0;left:var(--split);border-left:2px solid #fff;box-shadow:0 0 13px #fff9}.rv-ai-compare.is-ready .rv-ai-divider{display:block}.rv-ai-handle{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:60px;padding:11px;background:#50296e;color:#fff;white-space:nowrap}.rv-ai-before-label,.rv-ai-after-label{position:absolute;top:14px;font-size:11px;font-weight:900;letter-spacing:.1em;border-radius:8px;padding:6px 8px;background:#0d1626cc}.rv-ai-before-label{left:14px}.rv-ai-after-label{right:14px}.rv-ai-compare input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;z-index:5}.rv-ai-status{display:flex;flex-direction:column;gap:8px}.rv-ai-status>div{font-size:12px;color:#d7e1ed}.rv-ai-status progress{width:100%;height:7px;accent-color:#bf7cfa;appearance:auto}.rv-ai-note{margin:0;color:#93a4bb;font-size:11px;line-height:1.6}.rv-ai-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.rv-ai-actions .btn{min-height:42px}.rv-ai-run{background:linear-gradient(140deg,#9265cc,#593781)!important;border:1px solid #c99aff!important;color:white!important;box-shadow:0 0 15px #8e51e955!important}
@media(max-width:1350px){.rv-max-premium{padding:7px 12px!important;font-size:11px!important}.topbar-middle{min-width:155px}.rv-source-actions .btn{font-size:9px!important}}
@media(max-width:900px){.topbar-middle{order:3;flex:1 1 100%;min-width:0}.rv-max-premium{width:100%;min-height:39px!important}.rv-source-actions{justify-content:center}.rv-ai-panel{padding:12px}.rv-ai-compare{height:38vh;min-height:190px}.rv-ai-source{margin:0}}
@media(max-width:390px){.rv-source-actions .btn{font-size:9px!important;padding:5px 7px!important}.rv-ai-actions .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.rv-max-premium:before,.rv-max-premium:after{animation:none}}

.rv-ai-actions [hidden]{display:none!important}

/* V2.9.2 Precision / refinement — compact control, no loss of working area */
.rv-edge-inspect{height:34px;min-height:34px;padding:0 9px;border-radius:8px;border:1px solid #566b7a;background:linear-gradient(170deg,#243348,#172433);color:#c8d6e7;font-size:10px;font-weight:800;letter-spacing:.035em;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.rv-edge-inspect[aria-pressed="true"]{border-color:#f6c967;color:#ffecc3;background:linear-gradient(145deg,#594124,#2d271f);box-shadow:0 0 12px #f0ba4b38,inset 0 1px #fff3}
.rv-edge-canvas{pointer-events:none!important;z-index:3;mix-blend-mode:normal!important}
.rv-edge-canvas.hidden{display:none!important}
.rv-ai-system-row{display:flex;align-items:center;gap:12px;margin:7px 0;min-height:34px;color:#aabbd0;font-size:11px}
.rv-ai-system-row .btn{min-height:32px;padding:6px 12px;flex-shrink:0;border-color:#547388;font-size:10px}
.rv-ai-system-row span{line-height:1.45;overflow-wrap:anywhere}
.rv-ai-system-row .is-ok{color:#72e5bf}.rv-ai-system-row .is-warn{color:#f6c976}
/* Micro-polish for a premium, distraction-free workstation */
.viewer-header .viewer-tools .mini-btn:focus-visible,.cutout-dock button:focus-visible,.rv-ai-panel button:focus-visible{outline:2px solid #eac478;outline-offset:2px}
.viewer-card{contain:layout style}.viewer-stage{min-height:0}
.pipette-dock{box-shadow:0 7px 23px #00000024,inset 0 1px #ffffff0c}
@media(max-width:600px){.rv-edge-inspect span{display:none}.rv-edge-inspect{padding:0 9px;min-width:36px;justify-content:center}.rv-ai-system-row{flex-wrap:wrap;gap:5px}.rv-ai-system-row .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.btn,.mini-btn,.rv-edge-inspect{transition:none!important;animation:none!important}}

.rv-ai-model-pick{border-color:#947a44!important;color:#f1d58b!important;background:linear-gradient(150deg,#332b24,#181f2e)!important}

/* V2.9.3 – compact global RGB color grouping */
.rv-palette-merge.rv-palette-scan{gap:10px;padding:12px;border-color:#506276;background:linear-gradient(155deg,rgba(33,48,65,.98),rgba(18,31,48,.98));}
.rv-palette-scan-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.rv-palette-scan-head b{font-size:10px;font-weight:900;letter-spacing:.06em;color:#f0f6ff;}
.rv-palette-scan-head .rv-merge-meta{font-size:9px;color:#e6b973;border:1px solid #8f6c4165;padding:3px 5px;border-radius:4px;white-space:nowrap;}
.rv-palette-merge label{grid-template-columns:minmax(0,1fr) auto;}
.rv-palette-merge label output{color:#f7d7a5;font-size:12px;font-variant-numeric:tabular-nums;}
.rv-palette-merge input[type=range]{grid-column:1/-1;min-height:24px;width:100%;margin:0;touch-action:pan-x;}
.rv-merge-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;}
.rv-merge-actions button{width:100%;min-height:37px;border-radius:8px;}
.rv-merge-actions .rv-merge-apply{background:linear-gradient(120deg,#98713d,#55432e);border-color:#d4a76b;color:#fff0d4;box-shadow:inset 0 1px #fff3,0 0 12px #aa7f352b;}
.rv-merge-preview{display:grid;gap:7px;min-width:0;border:1px solid #334c64;background:#0a1624ab;border-radius:8px;padding:10px;font-size:11px;color:#b9cbdd;line-height:1.45;overflow-wrap:anywhere;}
.rv-merge-preview strong{color:#eaf3ff;font-size:11px;line-height:1.5;}
.rv-merge-preview small{font-size:10px;line-height:1.5;color:#99b0c7;}
.rv-merge-group-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:6px;max-height:116px;overflow:auto;scrollbar-width:thin;}
.rv-merge-group{display:flex;align-items:center;gap:6px;min-width:0;background:#1b2c40;border:1px solid #344d62;border-radius:6px;padding:5px 6px;}
.rv-merge-group i{width:17px;height:17px;flex-shrink:0;border-radius:5px;border:1px solid #ffffff55;}
.rv-merge-group span{font-size:10px;color:#d1e4f1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;}
.rv-merge-actions button[hidden]{display:none!important;}

/* Racevector BETA V2.9.4 – AI side-by-side precision zoom and compact color progress ring */
.rv-ai-zoom-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:4px 3px;color:#b9cde0;font-size:10px;min-height:32px}
.rv-ai-zoom-hint{font-size:10px;letter-spacing:.04em;opacity:.86;white-space:nowrap}
.rv-ai-zoom-actions{display:flex;align-items:center;gap:5px}
.rv-ai-zoom-actions button{height:30px;min-width:34px;border:1px solid #56647e;border-radius:7px;background:linear-gradient(#34445c,#1a2739);color:#e6f2ff;font-weight:900;cursor:pointer;padding:3px 10px}
.rv-ai-zoom-actions button:hover,.rv-ai-zoom-actions button:focus-visible{border-color:#c99aff;box-shadow:0 0 9px #8d67c466}
.rv-ai-zoom-actions output{min-width:56px;text-align:center;font-weight:850;font-variant-numeric:tabular-nums;color:#f6e4ff}
.rv-ai-split-control{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:9px;font-weight:850;color:#d6bee9}
.rv-ai-split-control input[type=range]{width:130px;min-height:25px;cursor:ew-resize}
.rv-ai-compare{touch-action:none;cursor:grab;user-select:none}
.rv-ai-compare:active{cursor:grabbing}
.rv-ai-compare .rv-ai-image-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.rv-ai-compare .rv-ai-before-layer{z-index:2}
.rv-ai-compare .rv-ai-after-layer{z-index:1;opacity:0}
.rv-ai-compare.is-ready .rv-ai-after-layer{opacity:1}
.rv-ai-compare.is-ready .rv-ai-before-layer{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.rv-ai-compare .rv-ai-image-layer img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform-origin:50% 50%;will-change:transform;pointer-events:none}
.rv-ai-compare #rvAiAfter{opacity:1}
.rv-ai-compare .rv-ai-divider{z-index:4;pointer-events:none}
.rv-ai-compare .rv-ai-handle{pointer-events:auto;cursor:ew-resize;touch-action:none;line-height:1;min-width:54px;min-height:43px;box-shadow:0 0 20px #9362c68c}
.rv-ai-before-label,.rv-ai-after-label{z-index:3;pointer-events:none}
.rv-ai-compare input#rvAiCompareRange{position:static;opacity:1;width:initial;height:initial;cursor:pointer}
.rv-ai-compare.is-ready .rv-ai-divider{display:block}
.rv-merge-progress[hidden]{display:none!important}
.rv-merge-progress{display:flex;align-items:center;gap:12px;border:1px solid #8f7046;border-radius:11px;padding:9px;background:linear-gradient(135deg,#3b3229,#162537);box-shadow:inset 0 1px #f5ca8038}
.rv-merge-progress-ring{--progress:0;flex:0 0 78px;width:78px;height:78px;border-radius:50%;position:relative;background:conic-gradient(#ffe6a3 var(--progress-angle,0deg),#3f4e61 0);display:grid;place-items:center;box-shadow:0 0 18px #d29d4a33;isolation:isolate}
.rv-merge-progress-ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#142132;box-shadow:inset 0 0 11px #0008;z-index:-1}
.rv-merge-progress-ring span{font-size:17px;font-weight:950;color:#ffe6b0;font-variant-numeric:tabular-nums}
.rv-merge-progress-text{display:flex;flex-direction:column;gap:5px;min-width:0}
.rv-merge-progress-text strong{font-size:11px;color:#ffe1a6;letter-spacing:.04em}
.rv-merge-progress-text span{font-size:11px;color:#c7d8ea;font-variant-numeric:tabular-nums;line-height:1.5}
.rv-merge-progress.is-error{border-color:#cc5962}.rv-merge-progress.is-error .rv-merge-progress-ring{background:conic-gradient(#f18d9d var(--progress-angle,0deg),#344458 0)}
.rv-merge-progress.is-done{border-color:#539d88}.rv-merge-progress.is-done .rv-merge-progress-ring{background:conic-gradient(#86dbb7 var(--progress-angle,0deg),#344458 0)}
@media(max-width:650px){.rv-ai-zoom-toolbar{gap:7px}.rv-ai-zoom-hint{width:100%;text-align:center;font-size:9px}.rv-ai-split-control{flex:1;justify-content:flex-end}.rv-ai-split-control input[type=range]{width:min(29vw,130px)}.rv-ai-zoom-actions button{min-width:29px;padding:3px 7px}.rv-ai-zoom-actions output{min-width:45px}}
@media(prefers-reduced-motion:reduce){.rv-ai-compare .rv-ai-image-layer img{will-change:auto}}

/* V2.9.5: persistent and honest per-image recovery note, never obstructs the SVG. */
.rv-render-fallback{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:0;
 padding:8px 12px;color:#ffe8b9;background:linear-gradient(100deg,#392719,#29221e 65%,#182334);
 border-bottom:1px solid #af7837;box-shadow:inset 0 1px rgba(255,230,175,.12)}
.rv-render-fallback-icon{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;
 border:1px solid #efb45b;border-radius:50%;font-size:17px;font-weight:1000;color:#291a11;
 background:linear-gradient(#ffe29a,#dd9a44);box-shadow:0 0 12px #e99d2947}
.rv-render-fallback-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.25}
.rv-render-fallback-copy strong{font-size:10px;letter-spacing:.055em;font-weight:900}
.rv-render-fallback-copy span{font-size:10px;color:#e7c99c;overflow-wrap:anywhere}
@media(max-width:520px){.rv-render-fallback{padding:7px 9px;gap:7px}
 .rv-render-fallback-icon{flex-basis:24px;width:24px;height:24px}
 .rv-render-fallback-copy strong,.rv-render-fallback-copy span{font-size:9px}}

/* VECTOR CORE 3.0 — compact access, responsive diagnostic dialog */
.rv-core-chip {border:1px solid rgba(242,184,67,.52);background:linear-gradient(125deg,rgba(84,60,31,.9),rgba(22,28,38,.88));box-shadow:inset 0 1px 0 rgba(255,221,152,.12),0 0 12px rgba(244,168,46,.09);color:#f7d48b;font-size:10px;font-weight:850;letter-spacing:.07em;border-radius:9px;padding:6px 10px;cursor:pointer;white-space:nowrap}
.rv-core-chip:disabled{opacity:.5;cursor:default}.rv-core-chip.rv-core-ready{border-color:#e7c16d;box-shadow:0 0 15px rgba(246,179,68,.22)}
.rv-core-dialog{border:0;border-radius:20px;padding:0;color:#edf5ff;background:#0a101b;box-shadow:0 32px 110px #000d;width:min(820px,calc(100vw - 24px));max-height:92dvh;overflow:auto}
.rv-core-dialog::backdrop{background:rgba(1,4,10,.78);backdrop-filter:blur(8px)}
.rv-core-panel{padding:24px;border:1px solid #3d4a60;border-radius:20px;background:linear-gradient(135deg,#141c2b,#0b101b)}
.rv-core-head{display:flex;justify-content:space-between;gap:16px;align-items:start}.rv-core-head small{color:#d2ab63;font-weight:850;letter-spacing:.14em}.rv-core-head h2{margin:7px 0 8px;font-size:26px;color:#ffdf9b}.rv-core-head h2 span{font-size:13px;color:#a6b2c5}.rv-core-head p{margin:0;color:#aebed0;font-size:13px;line-height:1.5}.rv-core-head button{border:1px solid #45536b;color:#fff;background:#202c3d;border-radius:10px;padding:8px 12px;cursor:pointer}
.rv-core-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0 12px}.rv-core-metrics>div{padding:14px 11px;border:1px solid rgba(206,166,94,.27);border-radius:12px;background:linear-gradient(145deg,#263043,#141c29);min-width:0}.rv-core-metrics small{display:block;color:#adbbcc;font-weight:800;font-size:10px;letter-spacing:.06em}.rv-core-metrics strong{display:block;color:#f6d38b;font-size:22px;white-space:nowrap;margin-top:6px}.rv-core-note{color:#9daec4;font-size:12px;line-height:1.5}.rv-core-subhead{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:20px 0 8px}.rv-core-subhead strong{font-size:12px;color:#f6d38b}.rv-core-subhead small{font-size:11px;color:#879cb4}.rv-core-table-outer{max-height:205px;overflow:auto;border:1px solid #2c3b4d;border-radius:10px}.rv-core-table-outer table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.rv-core-table-outer th,.rv-core-table-outer td{padding:10px 8px;border-bottom:1px solid #2b394a;text-align:left}.rv-core-table-outer th{color:#bbcaDC;background:#1e2a3b;position:sticky;top:0}.rv-core-explain{background:rgba(219,159,63,.08);padding:12px 15px;border:1px solid rgba(219,159,63,.22);border-radius:11px;margin-top:15px}.rv-core-explain b{font-size:11px;color:#f5ce80}.rv-core-explain p{font-size:12px;line-height:1.5;color:#aebdd0;margin:6px 0 0}.rv-core-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.rv-core-actions span{color:#9babc0;font-size:11px}.rv-core-actions button{border-radius:9px;background:linear-gradient(130deg,#a77731,#e0b963);border:1px solid #ffda94;padding:10px 14px;color:#17120b;font-weight:900;cursor:pointer}
@media(max-width:650px){.rv-core-panel{padding:15px}.rv-core-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rv-core-metrics strong{font-size:20px}.rv-core-head h2{font-size:21px}.rv-core-actions{flex-direction:column;align-items:stretch}.rv-core-actions button{width:100%}.rv-core-chip{padding:5px 6px;font-size:9px}}

/* VECTOR CORE 3.0.1: two compact 90° controls at the original image. */
.rv-source-caption{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.rv-source-resolution{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.rv-source-resolution>span{font-size:9px;color:#89a9bc;letter-spacing:.08em}
.rv-source-resolution strong{font-size:10px;color:#d4e6f2}
.rv-rotation-tools{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto}
.rv-rotation-title{font-size:9px;font-weight:900;letter-spacing:.07em;color:#d3a75e;margin-right:3px}
.rv-rotate-btn{height:26px;border:1px solid #80673e;border-radius:6px;background:linear-gradient(180deg,#3a3025,#20252c);color:#f6d9a0;font-size:10px;font-weight:900;padding:3px 10px;white-space:nowrap;box-shadow:inset 0 1px #ffe6a31a,0 2px 8px #0005;transition:filter .14s,border-color .14s}
.rv-rotate-btn:hover:not(:disabled){filter:brightness(1.22);border-color:#e9c681}
.rv-rotate-btn:focus-visible{outline:2px solid #f0c878;outline-offset:1px}
.rv-rotate-btn:disabled{opacity:.42}
@media(max-width:760px){.rv-rotation-title{display:none}.rv-rotate-btn{height:26px;padding:3px 7px}}
@media(max-width:420px){.rv-source-caption{flex-wrap:wrap;min-height:46px!important;justify-content:center}.rv-rotation-tools{flex:1 1 100%;justify-content:center}.rv-source-resolution{justify-content:center}}

/* Vector Core 4 · compact, optional read-only contour complexity map */
.rv-core-heat-section{margin:13px 0 0;border:1px solid rgba(215,174,100,.28);border-radius:13px;padding:12px;background:linear-gradient(150deg,rgba(47,43,37,.68),rgba(15,23,33,.92))}
.rv-core-heat-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:10px}
.rv-core-heat-head strong{font-size:12px;letter-spacing:.09em;color:#f8dc9d}
.rv-core-heat-head small{display:block;font-size:10px;color:#b9bdc6;margin-top:3px}
.rv-core-heat-toggle{font-size:10px;font-weight:800;color:#ead6b4;white-space:nowrap;display:flex;align-items:center;gap:6px;cursor:pointer}
.rv-core-heat-toggle input{accent-color:#e1b05a;width:14px;height:14px}
.rv-core-heat-canvas{display:block;width:100%;height:200px;object-fit:contain;background:repeating-conic-gradient(#1c2734 0 25%,#111a25 0 50%) 0 0/22px 22px;border:1px solid #364356;border-radius:9px}
.rv-core-heat-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.rv-core-heat-bottom>span{font-size:10px;color:#c5b9a5}
.rv-core-heat-legend{display:inline-flex;gap:5px;align-items:center;white-space:nowrap}
.rv-core-heat-legend i{width:10px;height:10px;border-radius:3px;background:#419fc9;display:inline-block}
.rv-core-heat-legend i:nth-of-type(2){background:#ebc65b}
.rv-core-heat-legend i:nth-of-type(3){background:#e95155}
.rv-core-heat-footnote{font-size:10px;color:#9cacbd;margin:8px 0 0;line-height:1.4}
.rv-core-optimizer-stats{margin:10px 0 0;padding:8px 10px;font-size:11px;color:#e8cb9d;background:#33291888;border-left:2px solid #caa35a;border-radius:5px}
@media(max-width:650px){.rv-core-heat-head,.rv-core-heat-bottom{align-items:flex-start;flex-direction:column}.rv-core-heat-canvas{height:170px}.rv-core-heat-toggle{white-space:normal}}

.rv-core-prep-optin{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid #7b6240;background:linear-gradient(140deg,rgba(72,53,29,.58),rgba(23,28,39,.9));border-radius:11px;margin:10px 0 0;cursor:pointer}
.rv-core-prep-optin input{accent-color:#ffc573;width:17px;height:17px;flex:0 0 auto;margin-top:2px}
.rv-core-prep-optin b{display:block;color:#f6d89d;letter-spacing:.045em;font-size:11px}
.rv-core-prep-optin small{display:block;color:#b3c1d2;font-size:11px;line-height:1.45;margin-top:4px}

/* V3.2: compact user-facing micro-contour controls */
.rv-micro-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding:7px 9px;border:1px solid rgba(119,223,249,.19);background:rgba(5,19,31,.55);border-radius:8px}
.rv-micro-row label{font-size:10px;font-weight:800;letter-spacing:.06em;color:#9fe7f5;white-space:nowrap}
.rv-micro-row select{max-width:145px;min-width:90px;background:#11283b;color:#fff;border:1px solid #315c75;border-radius:5px;padding:5px 6px;font-weight:700;font-size:11px}
@media(max-width:540px){.rv-micro-row{gap:5px}.rv-micro-row label{font-size:9px}}

/* Micro control shares the original 84px preset footer, no workspace height loss. */
.command-grid .card-presets .rv-micro-inline{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:4px!important}
.command-grid .card-presets .rv-micro-inline label{font-weight:900;font-size:9px;letter-spacing:.01em;color:#9fe7f5;white-space:nowrap}
.command-grid .card-presets .rv-micro-inline span{font-size:9px;letter-spacing:0;white-space:nowrap}
.command-grid .card-presets .rv-micro-inline select{font-size:10px!important;padding:3px 4px!important;height:24px;min-width:54px;max-width:85px;border-radius:5px}
@media(max-width:1280px){.command-grid .card-presets .rv-micro-inline{gap:3px}.command-grid .card-presets .rv-micro-inline label,.command-grid .card-presets .rv-micro-inline span{font-size:8px}.command-grid .card-presets .rv-micro-inline select{min-width:48px;max-width:70px;font-size:9px!important;padding:3px 2px!important}}

@media(max-width:850px){
.command-grid .card-presets{height:116px!important;min-height:116px!important;overflow:hidden!important}
.command-grid .card-presets .rv-micro-inline{flex-wrap:wrap;row-gap:3px;column-gap:3px;justify-content:flex-start}
.command-grid .card-presets .rv-micro-inline label{flex:0 0 62px}
.command-grid .card-presets .rv-micro-inline label+select{flex:1 1 64px;max-width:none;min-width:45px}
.command-grid .card-presets .rv-micro-inline span{flex:0 0 62px}
.command-grid .card-presets .rv-micro-inline span+select{flex:1 1 64px;max-width:none;min-width:45px}
}

/* V3.4.4: optional information card saved in the same ZIP; no extra browser download. */
.rv-zip-export{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.rv-zip-card-option{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:5px 7px;border:1px solid #33475b;border-radius:8px;background:#111d2c;color:#d3e5f2;font-size:9px;font-weight:850;line-height:1.25;letter-spacing:.03em;cursor:pointer;white-space:nowrap;user-select:none}
.rv-zip-card-option input{appearance:auto;accent-color:#42c5db;cursor:pointer;width:17px;height:17px;flex:0 0 auto;margin:0}
.rv-zip-card-option:focus-within{outline:2px solid #58d5ea;outline-offset:2px}
.rv-zip-card-option:hover{border-color:#4296b5}
@media(max-width:1000px){.rv-zip-export{flex:1 1 auto;justify-content:flex-end}.rv-zip-card-option{padding:5px;font-size:9px}}
@media(max-width:600px){.rv-zip-export{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.rv-zip-export .btn-export{flex:1;min-width:130px}.rv-zip-card-option{flex:0 0 auto}}
