:root{color-scheme:dark;--bg:#181c23;--panel:#252b35;--line:#3b4350;--text:#e6ebf3;--muted:#a0abba;--accent:#8fa9ff}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font:13px system-ui,Arial;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#303743;color:var(--text);border-radius:5px;padding:7px 10px}button:hover{background:#414d60}button.active,.primary{background:#4268d0!important;color:white!important;border-color:#7698f2!important}input,select,textarea{background:#1c222c;border:1px solid var(--line);border-radius:5px;padding:7px;color:var(--text);min-width:0}input:focus,textarea:focus{outline:2px solid #7899ee}.studio-header{height:56px;display:flex;align-items:center;gap:12px;padding:10px 15px;background:#202630;border-bottom:1px solid var(--line)}.studio-header a{font-size:21px;font-weight:900;color:white;text-decoration:none}.studio-header a span{color:#97adff}.studio-header strong{font-size:11px;letter-spacing:2px;color:var(--muted)}.studio-header #title{margin-left:auto;width:190px}#top{height:48px;display:flex;align-items:center;gap:9px;padding:6px 12px;border-bottom:1px solid var(--line)}#top label{display:flex;align-items:center;gap:5px;color:var(--muted)}#top input[type=number]{width:65px}.grow{flex:1}main{display:grid;grid-template-columns:54px minmax(260px,1fr) 310px;height:calc(100vh - 146px)}#tools{display:flex;flex-direction:column;gap:5px;align-items:center;padding:10px 4px;background:#222833;border-right:1px solid var(--line);overflow:auto}#tools button,#tabs button{width:40px;height:40px;padding:9px;background:transparent;border-color:transparent}button svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}#viewport{position:relative;overflow:auto;background:#414650;padding:70px;display:flex;align-items:flex-start;justify-content:flex-start}#paper{flex-shrink:0;background:white;box-shadow:0 8px 35px #0005;position:relative}#canvas{width:100%;height:100%;display:block;overflow:visible;touch-action:none;user-select:none}#emptyHelp{position:absolute;bottom:18px;left:20px;background:#222b37df;padding:9px 12px;border-radius:6px;color:#c4d0e4;pointer-events:none}aside{background:var(--panel);border-left:1px solid var(--line);min-height:0;display:flex;flex-direction:column}#tabs{display:flex;justify-content:space-around;padding:5px;border-bottom:1px solid var(--line)}#panel{padding:18px;overflow:auto;flex:1}h2{font-size:15px;margin:0 0 18px}h3{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;color:var(--muted);margin:22px 0 12px}label.field{display:block;margin:13px 0}label.field>span{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:6px}label.field input:not([type=checkbox]),label.field select,label.field textarea{width:100%}label.field input[type=color]{height:37px;padding:3px}.row{display:flex;gap:8px}.row>*{flex:1;min-width:0}.hint{color:var(--muted);line-height:1.6;font-size:12px}.wide{width:100%;margin-top:8px}.check{display:flex;gap:8px;align-items:center;margin:12px 0}.layer{display:flex;align-items:center;gap:5px;margin:5px 0;padding:5px;border:1px solid var(--line);border-radius:5px}.layer button:first-child{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer.selected{border-color:var(--accent)}#tracePreview{width:100%;min-height:120px;max-height:230px;object-fit:contain;background:white;border-radius:5px;margin:10px 0}.studio-status{height:42px;display:flex;align-items:center;gap:18px;padding:7px 12px;background:#202630;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}#palette{display:flex;gap:2px}#palette button{width:17px;height:19px;border-radius:0;padding:0;border:1px solid #ffffff20}#toast{position:fixed;bottom:60px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#101722;border:1px solid #65779a;border-radius:7px;display:none;z-index:10;max-width:80vw}input[type=range]{accent-color:#8aa7ff;padding:0}input[type=checkbox]{accent-color:#8aa7ff}.alignGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}@media(max-width:950px){.studio-header strong{display:none}.studio-header{gap:5px}.studio-header #title{width:120px}main{grid-template-columns:48px minmax(200px,1fr) 270px}#top{gap:4px}#top button{padding:6px}#viewport{padding:35px}#palette{display:none}}@media(max-width:650px){.studio-header #title{display:none}.studio-header a{font-size:17px}.studio-header button{font-size:11px;padding:6px}main{grid-template-columns:46px minmax(150px,1fr) 220px}#top label:has(#grid),#top label:has(#snap),#duplicate{display:none}#panel{padding:12px}#tabs button{width:30px;padding:5px}#tools button{width:36px}.studio-status{gap:8px}#viewport{padding:25px}}
.rangeVal{font-weight:700;color:#dfe7ff;font-variant-numeric:tabular-nums}.scaleHead{display:flex;align-items:center;justify-content:space-between;color:var(--muted);margin:4px 0 2px}.linkBtn{padding:4px 8px;font-size:11px}.colourRow input[type=color]{min-width:60px}.pageSlider,.offsetControl{white-space:nowrap}.pageSlider input[type=range]{width:90px}.offsetControl input[type=range]{width:105px}.pageSlider b,.offsetControl b{color:#e6ebf3;min-width:26px;text-align:right}.topDivider{height:24px;border-left:1px solid var(--line)}#top{overflow-x:auto;overflow-y:hidden}#top::-webkit-scrollbar{height:4px}#combineBtn,#differenceBtn{white-space:nowrap}
/* v8 vector editing refinements */
.colourWell{position:relative;display:block;width:100%;height:37px;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:white}.colourWell input[type=color]{width:100%!important;height:100%!important;border:0!important;padding:2px!important}.colourWell.is-none input{opacity:0}.colourWell.is-none::after{content:"";position:absolute;left:-10%;top:50%;width:120%;height:3px;background:#e32626;transform:rotate(-18deg);transform-origin:center;pointer-events:none}.colourWell.is-none::before{content:"";position:absolute;inset:0;background:white;pointer-events:none}.fontSelect option{font-size:16px}.node-control{transition:fill .08s,stroke .08s,r .08s}.node-control.node-hover{fill:#ffcc42!important;stroke:#ff6b35!important}.node-link.node-hover{stroke:#ff8a3d!important;stroke-width:1.4!important}#radiusControl[hidden]{display:none!important}
/* v9 Inkscape-inspired Fill / Stroke editor */
.paintEditor{margin:0 -4px 16px;border:1px solid #161a20;background:#20242a;border-radius:3px;overflow:hidden}.paintTabs{display:flex;align-items:center;background:#24282e;border-bottom:1px solid #11151a}.paintTabs button{flex:1;border:0;border-right:1px solid #15191e;border-radius:0;background:#24282e;padding:9px 5px;color:#d9dde3;font-size:12px}.paintTabs button.active{background:#292e35!important;color:#fff!important;border-bottom:2px solid #39a8ff!important}.paintModes{height:43px;display:flex;align-items:center;gap:5px;padding:6px 7px;border-bottom:1px solid #15191e}.paintMode{width:29px;height:29px;min-width:29px;padding:4px;border:1px solid transparent;border-radius:2px;background:transparent;display:grid;place-items:center;color:#c9cdd3}.paintMode.active{border-color:#2399ed!important;background:#30363d!important}.paintMode.disabled{opacity:.45}.noneMark,.paintCurrent.is-none{display:block;position:relative;background:#fff!important}.noneMark{width:17px;height:17px;border:1px solid #777}.noneMark:after,.paintCurrent.is-none:after{content:"";position:absolute;left:-2px;right:-2px;top:50%;height:2px;background:#e53935;transform:rotate(-45deg)}.solidIcon{width:17px;height:17px;border:1px solid #9da3aa;box-shadow:inset 0 0 0 1px #0004}.paintLabel{margin-left:5px;color:#d8dce2;font-weight:600}.paintCurrent{margin-left:auto;width:22px;height:22px;border:1px solid #9da3aa;background:var(--paint);position:relative}.noPaintMessage{padding:22px 10px;color:#aeb5bf}.colourModel{padding:12px 8px 15px}.modelHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.modelHead strong{font-size:12px}.modelHead span{background:#171b20;border:1px solid #3a4048;padding:6px 10px;border-radius:3px}.hslRow{display:grid;grid-template-columns:20px 1fr 58px;gap:5px;align-items:center;margin:6px 0}.hslRow>label{color:#d7dbe0}.hslSlider{width:100%;height:20px;padding:0;border:0;border-radius:0;background:transparent;appearance:none}.hslSlider::-webkit-slider-runnable-track{height:18px;border:1px solid #111}.hslSlider::-webkit-slider-thumb{appearance:none;width:10px;height:24px;margin-top:-4px;border:2px solid #e8edf3;background:transparent;box-shadow:0 0 0 1px #111}.hslSlider::-moz-range-track{height:18px;border:1px solid #111}.hslSlider::-moz-range-thumb{width:8px;height:22px;border:2px solid #e8edf3;border-radius:0;background:transparent}.hueBar::-webkit-slider-runnable-track{background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}.hueBar::-moz-range-track{background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}.satBar::-webkit-slider-runnable-track{background:linear-gradient(90deg,hsl(var(--h),0%,50%),hsl(var(--h),100%,50%))}.satBar::-moz-range-track{background:linear-gradient(90deg,hsl(var(--h),0%,50%),hsl(var(--h),100%,50%))}.lightBar::-webkit-slider-runnable-track{background:linear-gradient(90deg,#000,hsl(var(--h),var(--s),50%),#fff)}.lightBar::-moz-range-track{background:linear-gradient(90deg,#000,hsl(var(--h),var(--s),50%),#fff)}.alphaBar{background-image:linear-gradient(45deg,#777 25%,transparent 25%),linear-gradient(-45deg,#777 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#777 75%),linear-gradient(-45deg,transparent 75%,#777 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.alphaBar::-webkit-slider-runnable-track{background:linear-gradient(90deg,transparent,var(--paint));height:18px;border:1px solid #111}.alphaBar::-moz-range-track{background:linear-gradient(90deg,transparent,var(--paint));height:18px;border:1px solid #111}.hslNumber{height:30px;display:flex;align-items:center;justify-content:flex-end;gap:2px;background:#171b20;border:1px solid #3a4048;padding:0 7px;font-variant-numeric:tabular-nums}.hslNumber b{font-weight:400;color:#89919b}.strokeStylePanel{padding:9px 10px 13px;background:#20242a}
/* v10 path/stroke effects */
.effectCard{border:1px solid var(--line);background:#20242a;border-radius:5px;padding:10px;margin:0 0 14px}.effectCard h3{margin:2px 0 10px;color:#e5e7eb}.strokeStylePanel select{font-family:monospace;font-size:13px}.strokeStylePanel option{font-family:monospace}.paintTabs button{white-space:nowrap}
.effectFold{padding:0;overflow:hidden}.effectHead{width:100%;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;background:#262b31;border:0;color:#e5e7eb;font-weight:700;text-align:left;cursor:pointer}.effectHead:hover{background:#2e343b}.effectBody{padding:10px 12px 12px;border-top:1px solid var(--line)}[data-rotate]{filter:drop-shadow(0 1px 1px #0008)}
/* v12 live path effects */
.effectsTitle{display:flex;align-items:center;gap:8px}.effectsTitle svg{width:20px;height:20px;stroke:#9fb5ff;fill:none;stroke-width:1.7}.effectBody button[data-action^="preview"]{width:100%;margin-top:7px}.effectBody button[data-action^="preview"]:has(+*){}[data-effect-radius],[data-text-path-handle]{filter:drop-shadow(0 1px 2px #0008)}
/* v15 MarcAM website styling + application menus */
:root{--bg:#0f0b16;--panel:#211a2b;--line:rgba(255,255,255,.10);--text:rgba(255,255,255,.92);--muted:rgba(255,255,255,.70);--accent:#ff5a3c}
body{background:radial-gradient(900px 520px at 18% 12%,rgba(255,90,60,.08),transparent 55%),#0f0b16;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif}
.studio-header{height:56px;background:rgba(20,14,30,.96);border-bottom:1px solid rgba(255,255,255,.09);gap:14px;padding:8px 14px}.studio-header a span{color:var(--accent)}.studio-header strong{color:rgba(255,255,255,.58)}.studio-header #title{margin-left:auto;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.12);border-radius:10px}
button{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.055);border-radius:9px}button:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18)}button.active,.primary{background:linear-gradient(180deg,#ff5a3c,#e94b31)!important;border-color:rgba(255,90,60,.7)!important}
#top,.studio-status{background:rgba(20,14,30,.84);border-color:rgba(255,255,255,.08)}#tools{background:#17111f;border-color:rgba(255,255,255,.08)}aside{background:#1c1625;border-color:rgba(255,255,255,.08)}#viewport{background:#332e39}input,select,textarea{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.12);border-radius:9px}input[type=range],input[type=checkbox]{accent-color:var(--accent)}
#menuBar{display:flex;align-items:stretch;height:40px;position:relative}.menuTop{height:40px;padding:0 10px;border:0;background:transparent;border-radius:7px;font-weight:650}.menuTop:hover,.menuTop.open{background:rgba(255,255,255,.08);color:#fff}.appMenu{display:none;position:fixed;top:48px;z-index:100000;width:310px;padding:7px;background:rgba(28,21,38,.985);border:1px solid rgba(255,255,255,.12);border-radius:12px;box-shadow:0 18px 55px rgba(0,0,0,.5);backdrop-filter:blur(12px)}.appMenu.open{display:block}.appMenu button{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;padding:9px 10px;border:0;background:transparent;border-radius:8px;color:rgba(255,255,255,.9)}.appMenu button:hover{background:rgba(255,90,60,.12);color:#fff}.appMenu kbd{font:11px inherit;color:rgba(255,255,255,.48);margin-left:18px}.menuSep{height:1px;background:rgba(255,255,255,.08);margin:5px 3px}
@media(max-width:900px){#menuBar{overflow-x:auto;max-width:390px}.menuTop{padding:0 7px}.appMenu{width:285px}}

/* v16 workspace + menu interaction */
#viewport{padding:28px;align-items:center;justify-content:center}
#paper{margin:auto}
#menuBar{z-index:100001}
.menuTop{position:relative;z-index:100002}
.appMenu{z-index:100003;pointer-events:auto}
.appMenu.open{display:block!important}
/* v17: maximise page in the centre workspace */
#viewport{padding:10px!important;align-items:center!important;justify-content:center!important}
#paper{margin:auto!important}
.menuTop,.appMenu,.appMenu button{pointer-events:auto!important}
/* v20 canvas sizing: viewport owns all remaining centre space */
main{min-height:0}
#viewport{min-width:0;min-height:0;width:100%;height:100%;overflow:auto!important}
/* v30 snapping panel + high-contrast node controls */
.snapCard{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-top:10px;background:rgba(255,255,255,.025)}
.snapCard h3{font-size:12px;margin:14px 0 6px;color:#f1f1f5}.snapMaster,.snapOption{display:flex;align-items:center;gap:8px;min-height:27px;font-size:12px;cursor:pointer}.snapMaster{font-weight:700;margin-bottom:8px}.snapCard input[type=checkbox]{accent-color:#f0543d}
.node-anchor,.node-handle{fill:#111!important;stroke:#fff!important;stroke-width:1.2}.node-control.node-hover{fill:#f05a3c!important;stroke:#fff!important}
\n/* v31 visible nodes + rulers/guides */
.node-anchor,.node-handle{fill:#777!important;stroke:#111!important;stroke-width:1.05!important}
.node-control.node-hover{fill:#ff5a3c!important;stroke:#111!important}
#rulerTop,#rulerLeft,#rulerCorner{position:sticky;z-index:60;background-color:#211a2b;color:#aeb5bf;user-select:none}
#rulerTop{position:absolute;left:24px;right:0;top:0;height:24px;border-bottom:1px solid rgba(255,255,255,.16);background-image:repeating-linear-gradient(90deg,transparent 0,transparent 9px,rgba(255,255,255,.28) 9px,rgba(255,255,255,.28) 10px),repeating-linear-gradient(90deg,transparent 0,transparent 49px,rgba(255,255,255,.65) 49px,rgba(255,255,255,.65) 50px)}
#rulerLeft{position:absolute;left:0;top:24px;bottom:0;width:24px;border-right:1px solid rgba(255,255,255,.16);background-image:repeating-linear-gradient(180deg,transparent 0,transparent 9px,rgba(255,255,255,.28) 9px,rgba(255,255,255,.28) 10px),repeating-linear-gradient(180deg,transparent 0,transparent 49px,rgba(255,255,255,.65) 49px,rgba(255,255,255,.65) 50px)}
#rulerCorner{position:absolute;left:0;top:0;width:24px;height:24px;border-right:1px solid rgba(255,255,255,.16);border-bottom:1px solid rgba(255,255,255,.16);cursor:crosshair}
#rulerTop{cursor:row-resize}#rulerLeft{cursor:col-resize}
#guideLayer{position:absolute;inset:0;z-index:55;pointer-events:none;overflow:hidden}
.guideLine{position:absolute;background:#20b8e6;pointer-events:auto;opacity:.9;box-shadow:0 0 0 .35px #fff6}
.guideLine.h{left:0;right:0;height:1px;cursor:row-resize}.guideLine.v{top:0;bottom:0;width:1px;cursor:col-resize}
.guideLine.d{width:200vmax;height:1px;transform-origin:0 50%;cursor:move}
.guideLine:hover,.guideLine.active{background:#ff5a3c;height:2px}.guideLine.v:hover,.guideLine.v.active{width:2px;height:auto}
#viewport{padding-top:34px!important;padding-left:34px!important}

/* v32: slimmer rulers, roomier inspector, dedicated snapping icon */
main{grid-template-columns:54px minmax(260px,1fr) 360px}
#tabs{justify-content:flex-start;gap:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
#tabs button{flex:0 0 40px}
/* compact rulers: subtle minor ticks with clearer 50px majors */
#rulerTop,#rulerLeft,#rulerCorner{background-color:#17121f!important}
#rulerTop{left:18px!important;height:18px!important;background-image:repeating-linear-gradient(90deg,transparent 0,transparent 9px,rgba(255,255,255,.20) 9px,rgba(255,255,255,.20) 10px),repeating-linear-gradient(90deg,transparent 0,transparent 49px,rgba(255,255,255,.58) 49px,rgba(255,255,255,.58) 50px)!important}
#rulerLeft{top:18px!important;width:18px!important;background-image:repeating-linear-gradient(180deg,transparent 0,transparent 9px,rgba(255,255,255,.20) 9px,rgba(255,255,255,.20) 10px),repeating-linear-gradient(180deg,transparent 0,transparent 49px,rgba(255,255,255,.58) 49px,rgba(255,255,255,.58) 50px)!important}
#rulerCorner{width:18px!important;height:18px!important}
#viewport{padding-top:28px!important;padding-left:28px!important}
@media(max-width:950px){main{grid-template-columns:48px minmax(200px,1fr) 320px}}
@media(max-width:650px){main{grid-template-columns:46px minmax(150px,1fr) 280px}}

/* v33: node visibility + guide interaction */
.node-anchor,.node-handle{fill:#8a8a8a!important;stroke:#111!important;stroke-width:1px!important;vector-effect:non-scaling-stroke!important}
.node-control.node-hover{fill:#ff5a3c!important;stroke:#111!important;stroke-width:1px!important;vector-effect:non-scaling-stroke!important}
.guideLine{pointer-events:auto}

/* v35: guide interaction belongs only to the Select tool. Drawing tools pass through guides. */
#guideLayer .guideLine{pointer-events:none!important;cursor:default!important}
#guideLayer.guides-select .guideLine{pointer-events:auto!important}
#guideLayer.guides-select .guideLine.h{cursor:row-resize!important}
#guideLayer.guides-select .guideLine.v{cursor:col-resize!important}
#guideLayer.guides-select .guideLine.d{cursor:move!important}
/* Small + cursor for creation/drawing tools. */
body:has(#tools [data-tool="rect"].active) #canvas,
body:has(#tools [data-tool="ellipse"].active) #canvas,
body:has(#tools [data-tool="star"].active) #canvas,
body:has(#tools [data-tool="heart"].active) #canvas,
body:has(#tools [data-tool="pen"].active) #canvas,
body:has(#tools [data-tool="pencil"].active) #canvas,
body:has(#tools [data-tool="text"].active) #canvas{cursor:crosshair!important}

/* v37: requested toolbar cleanup + visible snapped drawing cursor */
.topPathShortcuts{display:none!important}
#snapCursor{position:absolute;display:none;z-index:9;width:13px;height:13px;line-height:11px;text-align:center;font:700 15px/11px Arial,sans-serif;color:#111;pointer-events:none;transform:translate(-50%,-50%);text-shadow:0 0 1px #fff,0 0 2px #fff}
#snapCursor.snapped{color:#ff5a36}
body.drawing-tool-active #canvas{cursor:none!important}

/* v38: contextual node editing controls */
.nodeShortcuts{display:flex;align-items:center;gap:7px}.nodeShortcuts[hidden]{display:none!important}.nodeShortcuts button{white-space:nowrap}.bevelControl{display:flex!important;align-items:center;gap:6px;white-space:nowrap}.bevelControl input{width:105px}.bevelControl b{min-width:30px;color:var(--text)}

.node-anchor.node-selected{fill:#ff5a3c!important;stroke:#111!important;stroke-width:1px!important;vector-effect:non-scaling-stroke!important}
/* v43 visual style preset browser */
.styleGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.stylePreset{display:flex;flex-direction:column;gap:7px;align-items:stretch;text-align:left;padding:8px;background:#171220;border:1px solid #3a3147;border-radius:10px;color:#eee;cursor:pointer}.stylePreset:hover{border-color:#ff5a45;background:#211729}.styleThumb{height:64px;border-radius:7px;background:#f7f7f8;display:grid;place-items:center;font:900 30px/1 Arial;color:#fff;letter-spacing:-3px;text-shadow:3px 3px 0 #111}.styleThumb.outline{text-shadow:-2px -2px 0 #111,2px -2px 0 #111,-2px 2px 0 #111,2px 2px 0 #111}.styleThumb.double,.styleThumb.sticker{color:#ef4444;text-shadow:0 0 0 #fff,3px 3px 0 #111}.styleThumb.shadow,.styleThumb.long,.styleThumb.depth{color:#fff;text-shadow:5px 5px 0 #111}.styleThumb.gold{color:#fff;text-shadow:2px 2px 0 #111,5px 5px 0 #f59e0b}.styleThumb.rainbow{color:#fff;text-shadow:2px 2px #111,4px 4px #ffd21f,6px 6px #ff6b00,8px 8px #ef233c,10px 10px #8f2bbd}.styleThumb.sunset{color:#fff;text-shadow:3px 3px #ffb703,6px 6px #ff4d00,9px 9px #7b2cbf}.styleThumb.ocean{color:#fff;text-shadow:3px 3px #90e0ef,6px 6px #00b4d8,9px 9px #023e8a}.styleThumb.neon{background:#07070a;color:#fff;text-shadow:0 0 4px #67e8f9,0 0 9px #ec4899}.styleThumb.comic{color:#facc15;text-shadow:3px 3px #111}.styleThumb.retro{color:#fef3c7;text-shadow:3px 3px #111,6px 6px #ef4444}.styleThumb.varsity{color:#b91c1c;text-shadow:-2px -2px #fff,2px 2px #111}.styleThumb.badge{color:#fff;text-shadow:0 0 0 #f59e0b,3px 3px #111}.styleThumb.mono{color:#fff;text-shadow:3px 3px #888,6px 6px #444,9px 9px #222}.styleThumb.redblack{color:#fff;text-shadow:3px 3px #dc2626,6px 6px #111}.styleThumb.blue{color:#fff;text-shadow:5px 5px #2563eb}.styleThumb.purple{color:#fff;text-shadow:3px 3px #b5179e,6px 6px #7209b7,9px 9px #3a0ca3}.styleThumb.warm{color:#fff;text-shadow:3px 3px #fbbf24,6px 6px #f97316,9px 9px #7f1d1d}.styleThumb.cool{color:#fff;text-shadow:3px 3px #22d3ee,6px 6px #1d4ed8,9px 9px #172554}.styleThumb.offset{color:#fff;text-shadow:6px 6px 0 transparent,7px 7px 0 #111}.styleThumb.deep{color:#fff;text-shadow:3px 3px #6b7280,6px 6px #374151,9px 9px #111827}.styleThumb.backer{color:#fff;text-shadow:5px 5px #111}

/* v44: wider inspector + dedicated text-effects browser */
main{grid-template-columns:54px minmax(260px,1fr) 430px!important}
#tabs{overflow-x:visible!important;flex-wrap:nowrap}
#tabs button{flex:1 1 40px;min-width:38px}
.styleGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.stylePreset{min-width:0}.stylePreset>span:last-child{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.styleThumb.triple{color:#fff;text-shadow:2px 2px #2563eb,4px 4px #fff,6px 6px #111}.styleThumb.blue3d{color:#dbeafe;text-shadow:3px 3px #2ea8e5,6px 6px #1769aa,9px 9px #0b1f4d}.styleThumb.cyan3d{color:#ecfeff;text-shadow:3px 3px #67e8f9,6px 6px #0891b2,9px 9px #083344}.styleThumb.orange3d{color:#fff7ed;text-shadow:3px 3px #fdba74,6px 6px #f97316,9px 9px #7c2d12}.styleThumb.neon3d{background:#101629;color:#fff;text-shadow:0 0 4px #22d3ee,3px 3px #db2777,6px 6px #6d28d9}.styleThumb.cyanpurple{color:#fff;text-shadow:3px 3px #67e8f9,6px 6px #0891b2,9px 9px #7e22ce}.styleThumb.pinkblue{color:#fff;text-shadow:3px 3px #f472b6,6px 6px #db2777,9px 9px #1d4ed8}.styleThumb.yellowblack{color:#facc15;text-shadow:2px 2px #fff,5px 5px #111}.styleThumb.whiteblue{color:#fff;text-shadow:2px 2px #2563eb,5px 5px #0f172a}.styleThumb.orangeglow{color:#fff7ed;text-shadow:0 0 5px #f97316,5px 5px #7c2d12}.styleThumb.ice{color:#e0f2fe;text-shadow:2px 2px #38bdf8,5px 5px #155e75}.styleThumb.electric{color:#dbeafe;text-shadow:0 0 4px #0ea5e9,5px 5px #172554}.styleThumb.magenta{color:#fff;text-shadow:3px 3px #f0abfc,6px 6px #c026d3,9px 9px #4a044e}.styleThumb.teal{color:#fff;text-shadow:3px 3px #5eead4,6px 6px #0d9488,9px 9px #042f2e}.styleThumb.cream{color:#fef3c7;text-shadow:3px 3px #b45309,6px 6px #7c2d12}.styleThumb.contour,.styleThumb.tunnel,.styleThumb.echo{color:transparent;-webkit-text-stroke:1px #fff;text-shadow:2px 2px #94a3b8,4px 4px #64748b,6px 6px #475569,8px 8px #334155}.styleThumb.speed{color:#fff;text-shadow:4px 1px #2563eb,8px 2px #111827,12px 3px #2563eb}.styleThumb.softdepth{color:#fff;text-shadow:3px 3px #cbd5e1,6px 6px #94a3b8,9px 9px #334155}.styleThumb.darkneon{background:#0f172a;color:#111827;text-shadow:0 0 3px #f472b6,0 0 7px #22d3ee,5px 5px #020617}.styleThumb.sunrise{color:#fff;text-shadow:3px 3px #fde047,6px 6px #f59e0b,9px 9px #7c2d12}.styleThumb.aqua{color:#fff;text-shadow:3px 3px #a5f3fc,6px 6px #22d3ee,9px 9px #164e63}.styleThumb.violet{color:#fff;text-shadow:3px 3px #d8b4fe,6px 6px #a855f7,9px 9px #2e1065}
@media(max-width:950px){main{grid-template-columns:48px minmax(200px,1fr) 380px!important}.styleGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){main{grid-template-columns:46px minmax(150px,1fr) 330px!important}}

/* v45: native dropdown readability + dedicated Text Effects tab icon support */
select{color:#f7f3fb!important;background-color:#251e2d!important;color-scheme:dark!important}
select option{color:#f7f3fb!important;background:#251e2d!important}
select option:checked,select option:hover{color:#fff!important;background:#4a3a58!important}
/* v47 trace preview: always show the complete traced artwork */
#tracePreview{display:block;width:100%;height:230px;min-height:0;max-height:none;object-fit:contain;object-position:center;background:#fff}

/* v50: exact selection size controls */
.sizeShortcuts{display:flex;align-items:center;gap:6px;white-space:nowrap}.sizeShortcuts[hidden]{display:none!important}.sizeShortcuts label{display:flex!important;align-items:center;gap:4px}.sizeShortcuts input[type=number]{width:72px!important;padding:6px 7px}.sizeShortcuts label>span{font-size:11px;color:var(--muted)}.sizeLock{width:34px;padding:6px 4px!important;line-height:1}.sizeLock.active{background:rgba(255,91,49,.18)!important;border-color:var(--accent)!important;color:var(--accent)!important}

.rangeField>span{align-items:center}.rangeNumber{width:72px!important;padding:4px 6px!important;text-align:right;color:var(--text)!important;background:#171c24!important;border:1px solid var(--line)!important}.hslNumberInput{width:54px!important;padding:3px 4px!important;text-align:right;background:#171c24!important;border:1px solid var(--line)!important;color:var(--text)!important}.shape-builder-active #art [data-id]{cursor:crosshair}.shape-builder-active #art [data-id]:hover{filter:drop-shadow(0 0 2px #ff6b35)}.sizeShortcuts #quickOffset,.sizeShortcuts #quickInset{padding:6px 8px!important}

.editableSliderValue{min-width:34px;padding:2px 5px;border:1px solid transparent;border-radius:4px;text-align:center;cursor:text}.editableSliderValue:hover,.editableSliderValue:focus{border-color:var(--line);background:#171c24;outline:none}
/* v55 compact offset/inset icons */
.sizeShortcuts .quickPathIcon{width:30px;height:30px;padding:4px!important;display:inline-grid;place-items:center;border-radius:7px}
.quickPathIcon svg{width:20px;height:20px;overflow:visible}.quickPathIcon circle{fill:none;stroke:currentColor;stroke-width:1.7}.quickPathIcon .solid{opacity:1;stroke-width:2.15}.quickPathIcon .ghost{opacity:.28;stroke-dasharray:2 1.6}
/* v55 visual Shape Builder */
.shape-builder-active #art [data-id]{cursor:pointer;transition:filter .12s ease,opacity .12s ease}.shape-builder-active #art [data-id] path{fill:rgba(120,130,150,.18)!important;stroke:rgba(65,75,95,.9)!important;stroke-width:1px!important;vector-effect:non-scaling-stroke}.shape-builder-active #art [data-id]:hover path{fill:rgba(112,155,255,.25)!important;stroke:#79a7ff!important;filter:drop-shadow(0 0 3px rgba(80,133,255,.45))}.shape-builder-active #art [data-id][data-builder-state="join"] path{fill:rgba(54,125,255,.48)!important;stroke:#5f9cff!important;filter:drop-shadow(0 0 4px rgba(54,125,255,.32))}.shape-builder-active #art [data-id][data-builder-state="delete"] path{fill:rgba(239,68,68,.45)!important;stroke:#ff6b6b!important;filter:drop-shadow(0 0 4px rgba(239,68,68,.28))}
.builderModeBar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 10px}.builderMode{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 10px;border-radius:9px!important;border:1px solid var(--line)!important;background:#171c24!important;color:var(--text)!important}.builderMode.active.join{border-color:#4f8cff!important;background:rgba(79,140,255,.14)!important}.builderMode.active.del{border-color:#ef5350!important;background:rgba(239,83,80,.13)!important}.modeDot{width:9px;height:9px;border-radius:50%;background:#4f8cff;box-shadow:0 0 8px rgba(79,140,255,.6)}.builderMode.del .modeDot{background:#ef5350;box-shadow:0 0 8px rgba(239,83,80,.55)}.builderHint b:first-of-type{color:#6ea2ff}.builderHint b:last-of-type{color:#ff7370}.builderFinish{margin-top:10px}.builderFinish button:first-child{background:linear-gradient(135deg,#ff7a3d,#ff4d2e)!important;border-color:#ff6a36!important;font-weight:700}.builderFinish button:last-child{opacity:.82}

/* v57 compact node editing icons */
.nodeShortcuts .nodeIconBtn{width:34px;height:30px;padding:4px!important;display:inline-grid;place-items:center;border-radius:7px}
.nodeIconBtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.nodeIconBtn:disabled{opacity:.35}
\n\n

/* =========================================================
   v68 — Design Studio website integration
   The website shell is owned by /styles.css + /site.css.
   This file only resets page spacing that the editor must not inherit.
   ========================================================= */

html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100% !important;
}

body.design-studio-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  background: #0f0b16;
}

/* Website header/footer: no editor spacing around them */
body.design-studio-page > .app-header,
body.design-studio-page > footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

/* Vector Studio application area */
body.design-studio-page > .studio-header {
  width: 100%;
  margin: 0;
  flex: 0 0 56px;
}

body.design-studio-page > #top {
  width: 100%;
  margin: 0;
  flex: 0 0 48px;
}

body.design-studio-page > main {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1 0 650px;
  min-height: 650px;
  height: calc(100vh - 56px - 48px - 42px - 70px);
}

body.design-studio-page > .studio-status {
  width: 100%;
  margin: 0;
  flex: 0 0 42px;
}

/* Prevent generic editor rules from adding space around the site shell */
body.design-studio-page > .app-header:first-child {
  top: 0;
}

/* Keep the editor's generic main rule scoped to this page only */
body.design-studio-page main {
  max-width: none;
}
