:root{color-scheme:dark;--bg:#171720;--panel:#22232e;--line:var(--ui-353642,#353642);--ink:#f0eef5;--muted:#aaa9ba;--accent:#e3a1c5;--accent2:#b8a7ed}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.4 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button{border:1px solid var(--ui-464654,#464654);background:var(--ui-2d2e3b,#2d2e3b);color:var(--ink);border-radius:8px;padding:8px 10px;cursor:pointer;min-height:36px}button:hover{border-color:var(--accent)}button:disabled,input:disabled{opacity:.42;cursor:not-allowed}button.primary{background:linear-gradient(120deg,var(--ui-f1afd1,#f1afd1),var(--ui-bdb0ef,#bdb0ef));color:#242031;border:0;font-weight:750}.quiet{background:transparent}.subtle{font-weight:650}header{height:70px;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-bottom:1px solid var(--line);background:var(--ui-1d1e28,#1d1e28);gap:12px}.brand{display:flex;gap:10px;align-items:center;white-space:nowrap}.brand strong{font-size:19px;letter-spacing:-.5px}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:1.5px}.logo{width:40px;height:40px;display:grid;place-items:center;background:linear-gradient(140deg,var(--accent),var(--ui-a89ae5,#a89ae5));border-radius:13px;color:#252335;font-size:33px}.header-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}main{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100svh - 70px)}.controls{overflow:auto;background:var(--panel);border-right:1px solid var(--line);padding:13px 15px}.section{display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--line);padding:8px 0 16px;margin-bottom:10px}.section-title{color:var(--accent);font-size:11px;display:flex;align-items:center;gap:8px;letter-spacing:.9px}.section-title b{font-size:14px;letter-spacing:0;color:var(--ink)}.tag{margin-left:auto;color:var(--muted);font-size:9px;border:1px solid var(--line);padding:2px 5px;border-radius:4px}label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}select,input[type=number]{width:100%;background:var(--ui-191a23,#191a23);border:1px solid var(--ui-444553,#444553);border-radius:7px;color:var(--ink);padding:7px 9px;min-height:36px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.range-label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px}.range-label input{grid-column:1/-1;width:100%;margin:1px 0;accent-color:var(--accent);height:20px}.range-label output{color:var(--ink);font-variant-numeric:tabular-nums}.check{flex-direction:row;align-items:center;gap:7px;color:var(--ink)}.check input{accent-color:var(--accent);width:17px;height:17px}.shape-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.shape-buttons button{font-size:11px;padding:5px 3px;min-height:30px}.hint{font-size:11px;color:var(--muted)}.hint.warn{color:#ffc38a}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--ui-14151d,#14151d)}.workspace-bar,.status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 17px;background:var(--ui-20212c,#20212c);border-bottom:1px solid var(--line)}.workspace-bar small{display:block;font-size:11px;color:var(--muted)}.zoom{display:flex;align-items:center;gap:7px}.zoom button{min-width:34px;padding:4px 7px;min-height:32px}.zoom span{font-size:12px;min-width:36px;text-align:center}.sheet-scroll{flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;justify-content:flex-start;padding:22px;background:radial-gradient(ellipse at 50% 40%,var(--ui-30313e,#30313e),var(--ui-181923,#181923))}.sheet-wrap{margin:auto;flex:none;background:white;box-shadow:0 8px 35px #0008;line-height:0}.sheet-wrap canvas{display:block;touch-action:none;cursor:crosshair}.status{border-bottom:0;border-top:1px solid var(--line);font-size:11px;color:var(--muted);min-height:40px}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:var(--ui-363347,#363347);color:white;padding:12px 18px;border:1px solid #655b7d;border-radius:10px;z-index:10;max-width:90vw;box-shadow:0 5px 25px #0008}#printArea{display:none}[hidden]{display:none!important}@media(max-width:760px){header{height:auto;min-height:70px;flex-wrap:wrap;padding:9px 11px;gap:9px}.brand strong{font-size:17px}.header-actions{width:100%;justify-content:stretch;gap:5px}.header-actions button{flex:1;min-height:35px;font-size:11px;padding:5px}.logo{width:34px;height:34px}main{height:auto;display:flex;flex-direction:column}.workspace{order:-1;height:66svh;min-height:360px;position:relative}.sheet-scroll{padding:12px}.workspace-bar,.status{padding:8px 11px}.controls{border:0;overflow:visible;display:grid;grid-template-columns:1fr;gap:0;padding:10px 15px}.section{padding-top:7px}.status{min-height:35px}.zoom{gap:4px}.zoom button{min-width:29px}.workspace-bar b{font-size:13px}}@media print{html,body{margin:0!important;padding:0!important;background:white!important}body> :not(#printArea){display:none!important}#printArea{display:block!important;margin:0;padding:0}#printArea img{display:block;max-width:none;max-height:none;object-fit:contain;page-break-inside:avoid}}

/* The selected design remains visible while scrolling settings. */
.live-preview{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;background:#22232e;border-bottom:1px solid var(--line);padding:10px 0;margin:-13px 0 8px;box-shadow:0 8px 12px -10px #000;min-width:0}.live-preview canvas{display:block;width:104px;height:86px;border-radius:8px;background:var(--ui-181922,#181922);flex:none}.live-preview-text{display:flex;flex-direction:column;gap:4px;min-width:0}.live-preview-text strong{font-size:13px}.live-preview-text span{font-size:11px;color:var(--muted)}#backToSheet{display:none;font-size:11px;padding:3px 7px;min-height:25px;align-self:flex-start}.layout-adjusted{color:var(--accent)}
@media(max-width:760px){.controls{display:flex;flex-direction:column;overflow:visible}.live-preview{top:0;margin:-10px -15px 8px;padding:7px 15px;box-shadow:0 4px 12px #0005}.live-preview canvas{width:90px;height:75px}#backToSheet{display:block}.live-preview-text{gap:2px}}

/* Row-by-row layout controls and on-sheet measurement overlay. */
.row-layout{display:flex;flex-direction:column;gap:9px;padding:9px;background:var(--ui-1c1d27,#1c1d27);border:1px solid var(--line);border-radius:9px}.row-editor-head,.row-setting{display:grid;grid-template-columns:35px minmax(58px,1fr) minmax(48px,.8fr) 28px;gap:6px;align-items:center}.row-editor-head{color:var(--muted);font-size:10px;margin-bottom:5px;text-align:center}.row-setting{margin-bottom:5px}.row-setting input{padding:5px 4px;text-align:center;min-width:0;font-size:13px}.row-setting button{min-width:0;padding:4px;min-height:34px;font-size:12px}.row-setting button.active{border-color:var(--accent);color:var(--accent);background:var(--ui-3a2b3c,#3a2b3c)}.row-fit{text-align:center;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.row-fit.limited{color:#ffc38a}.row-layout .hint{margin-top:7px}.zoom #dimensions[aria-pressed=true]{background:var(--accent);color:#252335;border-color:var(--accent);font-weight:750}.zoom #dimensions{font-size:12px;min-width:32px}.workspace-bar>div:first-child{min-width:0}.zoom{flex:none}@media(max-width:380px){.zoom{gap:3px}.zoom span{min-width:25px;font-size:10px}.zoom button{min-width:27px;padding:4px}.workspace-bar small{font-size:10px}}


.row-setting{display:grid;grid-template-columns:36px minmax(64px,1fr) minmax(52px,.9fr) 34px;gap:6px;align-items:center}
.row-setting .row-fit{display:flex;align-items:center;justify-content:center;min-height:36px;background:var(--ui-191a23,#191a23);border:1px solid var(--ui-444553,#444553);border-radius:7px}
#placeSheet{font-weight:750}

/* Direct manipulation of the original block. */
.block-toolbar{display:flex;align-items:flex-end;gap:12px;padding:8px 16px;background:var(--ui-20212c,#20212c);border-bottom:1px solid var(--line)}.block-count{min-width:0}.block-count>label{font-size:10px;margin-bottom:3px}.stepper{display:flex;align-items:center;gap:3px}.stepper button{min-width:30px;min-height:32px;padding:3px 7px}.stepper input{width:42px;min-height:32px;padding:3px;text-align:center;appearance:textfield;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#repeat{margin-left:auto;white-space:nowrap;min-height:34px}#repeat[aria-pressed=true]{background:var(--ui-3b3048,#3b3048);color:var(--ui-f3d6ec,#f3d6ec);border:1px solid var(--ui-d99dc6,#d99dc6)}#repeat span{font-size:16px;margin-right:3px}.sheet-scroll{padding-right:62px}.sheet-wrap{position:relative}.sheet-wrap #rowRail{position:absolute;left:calc(100% + 5px);top:0;height:100%;width:34px;pointer-events:none;line-height:1}.row-tool{position:absolute;left:0;transform:translateY(-50%);width:32px;min-height:0;padding:0;border-radius:8px;display:grid;place-items:center;pointer-events:auto;background:var(--ui-353542,#353542);color:var(--ui-e9e5ed,#e9e5ed);box-shadow:0 2px 5px #0003}.row-tool svg{width:16px;height:16px;pointer-events:none}.row-tool.active{background:var(--ui-e6a8ca,#e6a8ca);color:#292233;border-color:var(--ui-e6a8ca,#e6a8ca)}.row-panel{padding:8px 16px 10px;background:var(--ui-292936,#292936);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}.row-panel-head{display:flex;align-items:center;gap:8px}.row-panel-head span{color:var(--muted);font-size:11px;margin-left:auto}.row-panel-head button{min-height:25px;padding:3px 8px}.row-slider{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:13px;align-items:center}.row-slider .all-check{font-size:11px;white-space:nowrap;justify-content:flex-end}.row-slider .all-check input{width:15px;height:15px}.row-panel-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.row-panel-foot label{flex-direction:row;align-items:center;gap:8px}.row-panel-foot input{width:55px;min-height:28px;padding:3px 5px;text-align:center}.row-panel-foot button{min-height:28px;padding:4px 15px}.block-summary{padding:5px 16px;color:var(--muted);font-size:11px;background:var(--ui-20212c,#20212c);border-top:1px solid var(--line)}.block-summary.warn{color:#ffc38a}.workspace.editing-row .sheet-scroll{min-height:150px}.status{gap:8px}#count{white-space:nowrap}
@media(max-width:760px){.workspace{height:73svh;min-height:450px}.workspace.editing-row{height:88svh;min-height:600px}.block-toolbar{gap:9px;padding:7px 10px}.stepper{gap:2px}.stepper button{min-width:25px;padding:3px 5px}.stepper input{width:32px}.block-toolbar #repeat{font-size:12px;padding:5px 9px}.sheet-scroll{padding:10px 46px 10px 10px}.row-panel{padding:7px 11px 8px}.row-panel-head strong{font-size:13px}.block-summary{padding:5px 11px;font-size:10px}.status{font-size:10px}.workspace-bar .zoom{gap:3px}}
@media(max-width:350px){.block-toolbar{gap:5px}.stepper button{min-width:22px}.stepper input{width:27px}.block-toolbar #repeat{padding:5px 5px}.row-tool{width:28px}}

/* Compact v0.6 toolbar */
header{height:60px;padding:8px 14px;flex-wrap:nowrap;gap:8px}.brand{min-width:0;gap:8px;flex:1}.brand>div{min-width:0}.brand strong{display:block;white-space:nowrap}.header-actions{flex:none;width:auto;flex-wrap:nowrap;gap:5px;align-items:center}.header-actions button{flex:none}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:38px;height:38px;min-height:38px;padding:5px;flex:none}.icon-btn svg,.zoom button svg{width:19px;height:19px;flex:none;display:block}.pdf-btn{width:60px}.pdf-btn span{font-size:10px;font-weight:800}.pdf-btn svg{width:19px}.zoom #dimensions{display:grid;place-items:center}.unit-btn{flex-direction:column;gap:0;min-height:34px;height:34px;width:34px;padding:2px}.unit-btn svg{width:15px;height:14px}.unit-btn span{font-size:10px;line-height:11px}.grid-reset{height:34px;min-height:34px;width:34px}.block-toolbar{gap:7px}.block-toolbar #repeat{margin-left:auto}.print-note{padding-bottom:12px}main{height:calc(100svh - 60px)}
#pdfDialog{background:var(--ui-242530,#242530);color:var(--ink);border:1px solid var(--ui-505061,#505061);border-radius:16px;padding:18px;width:min(360px,calc(100vw - 28px));box-shadow:0 20px 70px #0009}#pdfDialog::backdrop{background:#0a0913b5}.pdf-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.pdf-head strong{font-size:19px}.pdf-head small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.quality-options{display:grid;gap:9px;margin-bottom:12px}.quality-option{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:13px 12px;gap:12px;min-height:66px}.quality-option strong{display:block;font-size:14px}.quality-option small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.quality-option b{font-size:20px;color:var(--accent)}.quality-option.premium{border-color:var(--ui-b98eae,#b98eae)}.quality-option:hover{background:var(--ui-403044,#403044)}#pdfProgress{width:100%;accent-color:var(--accent);margin-top:10px}
@media(max-width:760px){header{min-height:56px;height:56px;padding:7px 10px}.brand{gap:6px}.brand strong{font-size:15px;letter-spacing:-.45px}.brand small{font-size:8px;letter-spacing:.65px}.logo{width:30px;height:30px;font-size:26px;flex:none;border-radius:9px}.header-actions{gap:4px}.header-actions .icon-btn{height:34px;min-height:34px;width:34px;padding:5px}.header-actions .pdf-btn{width:47px;gap:1px}.pdf-btn svg{width:17px}.pdf-btn span{font-size:9px}main{height:auto}.block-toolbar{gap:5px;padding:7px 8px}.stepper{gap:2px}.stepper button{min-width:24px;padding:2px 4px}.stepper input{width:29px}.grid-reset,.unit-btn{width:32px;height:32px;min-height:32px}.block-toolbar #repeat{font-size:11px;padding:4px 7px;min-height:32px}.workspace-bar .zoom #dimensions{min-width:30px}.block-count>label{font-size:10px}}
@media(max-width:350px){.brand strong{font-size:13px}.brand small{font-size:7px}.header-actions .icon-btn{width:30px}.header-actions .pdf-btn{width:42px}.header-actions{gap:3px}.block-toolbar{gap:4px}.stepper button{min-width:21px}.stepper input{width:25px}.grid-reset,.unit-btn{width:28px}.block-toolbar #repeat{padding:4px 5px;font-size:10px}}
@media(max-width:305px){.block-toolbar{flex-wrap:wrap}.brand .logo{display:none}}

/* v0.7: paper selector integrated into the workspace header. */
.workspace-heading{min-width:0;flex:1}.paper-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}.paper-picker{position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:4px;padding:3px 6px;min-height:27px;border:1px solid var(--ui-464654,#464654);border-radius:7px;background:var(--ui-2d2e3b,#2d2e3b);color:var(--ink);font-size:11px;font-weight:650;cursor:pointer;white-space:nowrap}.paper-picker svg{width:15px;height:15px;flex:none}.paper-picker .paper-chevron{width:11px;height:11px;color:var(--muted)}.paper-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;min-height:0;padding:0}.paper-picker:focus-within{outline:2px solid var(--accent)}.workspace-bar .paper-line small{white-space:nowrap;font-size:10px;margin:0}.workspace-bar{align-items:center}.paper-line:has(select:hover) .paper-picker{border-color:var(--accent)}
@media(max-width:760px){.paper-line{gap:4px;margin-top:3px}.paper-picker{min-height:27px;padding:3px 5px;font-size:11px}.workspace-bar .paper-line small{font-size:10px}.workspace-bar{gap:6px}.workspace-bar .zoom{gap:3px}}

#langBtn{min-width:52px;font-weight:700}

#langBtn{min-width:34px;width:34px;font-size:11px}.brand strong{overflow:hidden;text-overflow:ellipsis}.brand small{overflow:hidden;text-overflow:ellipsis}.focus-add{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;font-size:34px;background:var(--accent);color:var(--ui-2c2535,#2c2535);border:0;box-shadow:0 3px 14px #0002}.focus-mode .sheet-scroll{padding:12px}.focus-mode .workspace .zoom{gap:3px}.focus-mode .workspace-heading{flex:1}.focus-mode .live-preview{position:sticky}.focus-mode #sheet{cursor:grab}.focus-mode #sheet:active{cursor:grabbing}.focus-mode .workspace{min-height:400px}@media(max-width:760px){.focus-mode .workspace{height:60svh;min-height:360px}.brand strong{font-size:13px}.brand small{font-size:7px}.header-actions{gap:3px}.header-actions #langBtn{width:30px;min-width:30px}.focus-mode .controls{padding-top:10px}}

/* v0.9 compact selected-design controls */
.live-preview{gap:9px;align-items:center}.live-preview-text{flex:1;min-width:0}.live-preview-text strong{line-height:1.2}.live-preview-text span{line-height:1.25}.preview-actions{border-left:1px solid var(--line);padding-left:9px;display:flex;flex-direction:column;gap:6px;flex:none}.preview-actions button{font-size:11px;min-height:33px;padding:5px 7px;white-space:nowrap}.live-preview canvas{width:70px;height:70px}.live-preview #backToSheet{font-size:10px;max-width:100%;white-space:normal;line-height:1.2}.mirror-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mirror-actions button{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;padding:6px 4px}.mirror-actions svg,.outline-toggle svg{width:19px;height:19px;flex:none}.mirror-actions button[aria-pressed=true],.filter-presets button[aria-pressed=true]{background:var(--accent);color:#292233;border-color:var(--accent)}.outline-toggle{display:flex;align-items:center;text-align:left;width:100%;gap:8px;font-weight:650}.outline-toggle #outlineLabel{flex:1}.outline-toggle #outlineState{font-size:11px;font-weight:500;color:var(--muted)}.outline-toggle.filter-on #outlineState{color:var(--accent)}#outlineChevron{font-size:18px;line-height:1}.filter-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.filter-presets button{font-size:11px;padding:6px 3px;min-height:35px}#outlinePanel{display:grid;gap:10px}#advancedFilter{padding:7px 9px;background:var(--ui-1c1d27,#1c1d27);border-radius:8px}#advancedFilter summary{cursor:pointer;font-size:12px;color:var(--muted)}#advancedFilter label{margin-top:9px}#colorSection{padding-top:0;gap:7px}#designSection{padding-bottom:10px;margin-bottom:8px}#designSection #selectionLabel{display:none}#designSection #editHint{display:none}.focus-mode .live-preview{z-index:6}
@media(max-width:760px){.live-preview{gap:9px;padding:8px 12px}.live-preview canvas{width:76px;height:76px}.preview-actions{width:90px}.preview-actions button{font-size:11px}.live-preview-text strong{font-size:12px}.live-preview-text span{font-size:11px}}
@media(max-width:350px){.live-preview canvas{width:60px;height:65px}.preview-actions{width:82px;padding-left:6px}.live-preview{gap:6px}.preview-actions button{font-size:10px}}

/* v0.10: one live canvas, independent scrolling controls */
#focusActions{display:grid;grid-template-columns:1fr 1fr;border-left:0;border-top:1px solid var(--line);padding:7px 12px;gap:8px;width:100%;background:var(--ui-20212c,#20212c);flex:none}
#focusActions button{font-size:12px;min-height:36px}
.focus-mode .status,.focus-mode .print-note{display:none}
#magicWand{display:flex;align-items:center;gap:8px;font-weight:650;min-height:38px;text-align:left}#magicWand svg{width:19px;height:19px;flex:none}#magicWand[aria-pressed=true]{background:var(--accent);color:#292233;border-color:var(--accent)}
.focus-mode .controls{min-height:0;overscroll-behavior:contain}
@media(max-width:760px){
 body.focus-mode{height:100svh;overflow:hidden;display:flex;flex-direction:column}
 body.focus-mode header{flex:none}
 body.focus-mode main{height:auto;flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
 .focus-mode .workspace{height:auto;flex:0 0 52%;min-height:0;max-height:52%;overflow:hidden}
 .focus-mode .workspace-bar{padding:5px 9px;flex:none}
 .focus-mode .workspace-heading b{font-size:12px;line-height:1.2}
 .focus-mode .sheet-scroll{min-height:0;padding:6px 12px;flex:1}
 .focus-mode .controls{flex:1;overflow-y:auto;overflow-x:hidden;display:block;padding:7px 14px 14px;overscroll-behavior:contain}
 .focus-mode .section{gap:7px}
 .focus-mode #designSection{padding-top:0}
 .focus-mode #focusActions{padding:5px 10px}
 .focus-mode #focusActions button{min-height:32px}
}

/* v0.11 — paper and tiling are one compact group */
body:not(.focus-mode) .workspace-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
body:not(.focus-mode) .workspace-heading{display:contents}
body:not(.focus-mode) #workspaceTitle{grid-column:1;grid-row:1;align-self:center}
body:not(.focus-mode) .workspace-bar .zoom{grid-column:2;grid-row:1;justify-self:end}
body:not(.focus-mode) .paper-line{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;gap:7px;margin:0;align-items:center}
.paper-line .paper-picker{flex:none;min-height:32px}
.paper-line #repeat{margin:0;min-height:32px;font-size:12px;padding:5px 9px;flex:none}
.paper-line #paperInfo{min-width:0;overflow:hidden;text-overflow:ellipsis;order:3}
.row-panel{padding-bottom:9px}
@media(max-width:360px){.paper-line{gap:5px!important}.paper-line #repeat{font-size:11px;padding:4px 6px}.paper-line #paperInfo{font-size:9px}}

/* A scroll-safe slider: the track is passive, only the thumb captures a drag. */
.range-label .thumb-slider{grid-column:1/-1;display:block;position:relative;height:24px;margin:0;min-width:0;touch-action:auto}
.range-label .thumb-slider input[type=range]{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;pointer-events:none}
.thumb-rail{display:block;position:absolute;left:10px;right:10px;top:50%;height:7px;transform:translateY(-50%);background:var(--ui-464650,#464650);border:1px solid var(--ui-72727c,#72727c);border-radius:99px}
.thumb-fill{position:absolute;top:-1px;bottom:-1px;left:-1px;border-radius:99px;background:var(--accent)}
.thumb-handle{position:absolute;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);border-radius:50%;background:var(--accent);cursor:ew-resize;touch-action:none;user-select:none;-webkit-user-select:none}
.thumb-rail.disabled{opacity:.42}.thumb-rail.disabled .thumb-handle{pointer-events:none}
.thumb-slider:focus-within .thumb-handle{outline:2px solid white;outline-offset:3px}

/* v0.13: independent quality switch and four live filter thumbnails */
#focusActions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
#enhanceBtn{display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;min-width:64px}
#enhanceBtn svg{width:17px;height:17px;flex:none}
#enhanceBtn[aria-pressed=true]{background:var(--accent);color:#292233;border-color:var(--accent)}
.filter-presets{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.filter-presets button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:4px 3px;font-size:10px;line-height:1.2}
.filter-presets canvas{width:100%;height:auto;aspect-ratio:1;background:#fff;border-radius:5px;display:block}
.filter-presets button span{min-height:24px;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}
#filterOff{min-height:30px;font-size:11px;padding:5px}
#filterOff[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
@media(max-width:350px){#enhanceBtn{min-width:32px;padding:4px}#enhanceBtn span{display:none}}

/* v0.16: visual shape presets, matching the cell outline geometry */
#shapeSection .shape-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#shapeSection .shape-buttons button{min-width:0;min-height:44px;padding:3px;display:grid;place-items:center;touch-action:manipulation}
#shapeSection .shape-buttons svg{width:100%;max-width:36px;height:38px;display:block;pointer-events:none;fill:#f4f0f5;stroke:var(--ui-a8a4b1,#a8a4b1);stroke-width:1.25;stroke-linejoin:round}
#shapeSection .shape-buttons button[aria-pressed=true]{background:var(--ui-493548,#493548);border-color:var(--accent)}
#shapeSection .shape-buttons button[aria-pressed=true] svg{fill:var(--accent);stroke:var(--ui-f6d6e9,#f6d6e9)}
@media(min-width:350px) and (max-width:760px){#shapeSection .shape-buttons{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}}

/* v0.17: split design workspace and technical dimension preview. */
.workspace-stage{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden;background:var(--ui-191a23,#191a23)}
.workspace-stage .sheet-scroll{min-width:0;min-height:0;flex:1;padding:12px 47px 12px 8px}
.nail-inspector{flex:0 0 35%;max-width:260px;min-width:0;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid var(--line);background:var(--ui-1e1f2a,#1e1f2a)}
.inspector-heading{padding:10px 8px 0;text-align:center;font-size:12px;font-weight:650;color:var(--ink)}
.inspector-heading small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}
.inspector-area{position:relative;min-height:0;flex:1;width:100%;overflow:hidden}
#inspectorCanvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.focus-mode .sheet-wrap{background:transparent;box-shadow:none}
.focus-mode .workspace-stage .sheet-scroll,.sheet-mode .workspace-stage .sheet-scroll{padding:8px 12px}
.sheet-mode .workspace-stage .sheet-scroll{background:radial-gradient(ellipse at 50% 40%,var(--ui-30313e,#30313e),var(--ui-181923,#181923))}
@media(max-width:760px){.workspace-stage .sheet-scroll{padding:8px 36px 8px 5px}.nail-inspector{flex-basis:36%}.inspector-heading{font-size:11px;padding-top:9px}.inspector-heading small{font-size:9px}.workspace-stage .row-tool{width:27px}.workspace-stage #rowRail{width:27px;left:calc(100% + 3px)}}

.sheet-mode #dimensions,.sheet-mode label:has(#showDimensions){display:none!important}

/* v0.19: one compact return control, add button centered on the actual nail. */
.focus-mode .workspace-heading{display:none}
.focus-mode .workspace-bar{justify-content:space-between;gap:6px}
#exitFocus{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:4px 10px;white-space:nowrap;font-weight:600;flex:none;font-size:13px}
#exitFocus span:first-child{font-size:17px;line-height:1}
.focus-mode .focus-add{display:grid;place-items:center;min-height:0;min-width:0;padding:0;line-height:1;border:0}
@media(max-width:350px){#exitFocus{padding:4px 7px;gap:4px;font-size:12px}.focus-mode .zoom{gap:3px}}

/* v0.22: independently editable full paper */
#fullGridDialog{background:var(--ui-242530,#242530);color:var(--ink);border:1px solid var(--ui-505061,#505061);border-radius:16px;padding:16px;width:min(360px,calc(100vw - 28px));box-shadow:0 20px 70px #0009}#fullGridDialog::backdrop{background:#0a0913b5}#fullGridHint{margin:0 0 13px;line-height:1.5}#fullGridDialog .quality-option{min-height:52px}#fullGridDialog .quality-option b{font-size:13px;white-space:nowrap}#fullGridCancel{width:100%}#fullGrid{color:var(--accent)}.independent-sheet .workspace-stage .sheet-scroll{padding-right:40px}.paper-line #paperInfo{min-width:0;white-space:normal}.block-toolbar{flex-wrap:wrap}

/* v0.23: stable viewport dimensions and forgiving touch targets. */
.range-label .thumb-slider{height:32px}
.thumb-rail{left:18px;right:18px}
.thumb-handle{width:36px;height:32px;background:transparent;border-radius:0;touch-action:pan-y}
.thumb-handle::before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;border-radius:50%;background:var(--accent);transform:translate(-50%,-50%);pointer-events:none}
.thumb-slider:focus-within .thumb-handle{outline:none}
.thumb-slider:focus-within .thumb-handle::before{outline:2px solid white;outline-offset:3px}

/* v0.26: compact paper controls and one-line grid toolbar. */
body:not(.focus-mode) .workspace-bar{display:flex;align-items:center;justify-content:flex-start;padding:6px 10px;gap:0}
body:not(.focus-mode) .paper-line{width:100%;gap:7px;justify-content:flex-start}
.block-toolbar{align-items:center;flex-wrap:nowrap;gap:6px;padding:6px 10px;overflow-x:auto;scrollbar-width:none}
.block-toolbar::-webkit-scrollbar{display:none}
.block-count{display:flex;align-items:center;gap:3px;flex:none}
.block-count>label{display:grid;place-items:center;width:15px;height:24px;margin:0;color:var(--muted);flex:none;cursor:default}
.block-count>label svg{display:block;width:14px;height:14px}
.block-toolbar .stepper{gap:0;display:flex;border:1px solid var(--ui-464654,#464654);border-radius:7px;overflow:hidden;background:var(--ui-191a23,#191a23)}
.block-toolbar .stepper button,.block-toolbar .stepper input{border:0;border-radius:0;min-height:30px;height:30px;min-width:0;width:25px;padding:0;text-align:center}
.block-toolbar .stepper input{width:28px;border-left:1px solid var(--ui-464654,#464654);border-right:1px solid var(--ui-464654,#464654);font-size:13px}
.block-toolbar .icon-btn{width:32px;height:32px;min-height:32px;padding:4px}
.block-toolbar .zoom{margin-left:auto;display:flex;gap:3px;align-items:center;padding-left:6px;border-left:1px solid var(--line)}
.zoom #fit{display:grid;place-items:center;padding:4px;min-width:30px}
.block-toolbar .zoom button{width:28px;min-width:28px;height:32px;min-height:32px;padding:3px}
.block-toolbar .zoom span{min-width:34px;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.focus-mode .workspace-bar .zoom{margin-left:auto}
@media(max-width:760px){
 body:not(.focus-mode) .workspace-bar{padding:5px 8px}
 .block-toolbar{padding:5px 6px;gap:4px}
 .block-count{gap:2px}.block-count>label{width:12px}.block-count>label svg{width:12px;height:14px}
 .block-toolbar .stepper button{width:20px}.block-toolbar .stepper input{width:23px;font-size:12px}
 .block-toolbar .icon-btn{width:28px;height:30px;min-height:30px;padding:3px}.block-toolbar .icon-btn svg{width:16px;height:16px}
 .block-toolbar .zoom{gap:2px;padding-left:3px}.block-toolbar .zoom button,.block-toolbar .zoom #fit{width:24px;min-width:24px;height:30px;min-height:30px;padding:3px}.block-toolbar .zoom span{min-width:32px;font-size:10px}.block-toolbar .zoom #fit svg{width:16px;height:16px}
}
@media(max-width:365px){.block-toolbar{gap:3px;padding:5px 4px}.block-count{gap:1px}.block-count>label{width:11px}.block-toolbar .stepper button{width:17px}.block-toolbar .stepper input{width:22px}.block-toolbar .icon-btn{width:25px}.block-toolbar .zoom{gap:1px;padding-left:2px}.block-toolbar .zoom button,.block-toolbar .zoom #fit{width:21px;min-width:21px}.block-toolbar .zoom span{min-width:29px;font-size:10px}}
@media(min-width:761px) and (max-width:850px){.block-toolbar{gap:4px;padding:6px 8px}.block-toolbar .stepper button{width:22px}.block-toolbar .stepper input{width:25px}.block-toolbar .icon-btn{width:29px}.block-toolbar .zoom button{width:26px;min-width:26px}}

/* v0.27: compact, editable nail size presets. */
#sizePresetBtn{min-height:30px;font-size:11px;padding:4px 7px;white-space:nowrap;color:var(--accent)}
#sizePresetDialog{background:var(--ui-242530,#242530);color:var(--ink);border:1px solid var(--ui-505061,#505061);border-radius:16px;padding:14px;width:min(360px,calc(100vw - 24px));max-height:88svh;overflow:auto;box-shadow:0 20px 70px #0009}
#sizePresetDialog::backdrop{background:#0a0913b5}#sizePresetHint{margin:0 0 10px;line-height:1.4}#sizePresetList{display:grid;gap:5px;margin-bottom:10px}#sizePresetCancel{width:100%}
.size-preset{display:flex;gap:10px;align-items:center;text-align:left;min-height:43px;padding:6px 9px}.size-preset[aria-pressed=true]{border-color:var(--accent);background:var(--ui-493548,#493548)}.size-preset-shapes{display:flex;align-items:flex-end;justify-content:center;gap:3px;flex:0 0 68px;height:30px}.size-preset-shapes i{display:block;background:#f4f0f5;border-radius:25%;flex:none}.size-preset strong,.size-preset small{display:block}.size-preset small{font-size:10px;color:var(--muted);margin-top:2px}.row-panel-head{gap:5px}#rowSize{white-space:nowrap;font-size:11px}

/* v0.30: paired preset options, each independently selectable. */
#sizePresetDialog{width:min(420px,calc(100vw - 24px));box-sizing:border-box;padding:12px}
#sizePresetList{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px}
.size-preset-heading{font-size:11px;font-weight:650;text-align:center;line-height:1.25;color:var(--muted);padding:3px 0 5px}
#sizePresetList .size-preset{min-width:0;display:grid;grid-template-rows:auto 26px auto;justify-items:center;align-items:center;text-align:center;gap:2px;padding:5px 4px;min-height:66px}
#sizePresetList .size-preset strong{font-size:13px;line-height:1.15}
#sizePresetList .size-preset-shapes{height:26px;min-width:0;gap:3px}
#sizePresetList .size-preset small{font-size:10px;line-height:1.2;white-space:normal;overflow-wrap:normal;margin:0;min-height:12px}

/* v0.31: pan the zoomed overview with touch or mouse, leaving focus gestures intact. */
.sheet-scroll.overview-pan{touch-action:none;overscroll-behavior:contain;scroll-behavior:auto;user-select:none;-webkit-user-select:none}
.sheet-scroll.overview-pan #sheet{cursor:grab}
.sheet-scroll.overview-dragging,.sheet-scroll.overview-dragging #sheet{cursor:grabbing}

/* v0.32: minimal individual-cell editor, with a geometrically centered arrow. */
body.focus-mode > header, .focus-mode .workspace-bar .zoom {display:none!important}
body.focus-mode .workspace-bar{justify-content:flex-start;align-items:center}
#exitFocus .back-arrow{display:block;width:18px;height:18px;flex:0 0 18px}
#exitFocus #backLabel{display:block;line-height:18px;font-size:inherit}
@media(min-width:761px){body.focus-mode main{height:100svh}}

/* v0.34: one compact cell editor toolbar, above the preview. */
body.focus-mode .workspace-bar{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;padding:6px 10px;min-width:0}
body.focus-mode #exitFocus{min-height:34px;height:34px;gap:5px;padding:4px 8px;font-size:12px}
body.focus-mode .workspace-bar #focusActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) auto;align-items:center;gap:5px;flex:1 1 auto;width:auto;min-width:0;max-width:460px;border:0;padding:0;background:transparent;margin-left:auto}
body.focus-mode .workspace-bar #focusActions button{min-width:0;min-height:34px;height:34px;padding:4px 7px;font-size:12px;line-height:1;white-space:nowrap}
body.focus-mode .workspace-bar #enhanceBtn{gap:4px}
body.focus-mode .workspace-bar #enhanceBtn svg{width:15px;height:15px}
@media(max-width:380px){body.focus-mode .workspace-bar{gap:4px;padding:5px 7px}body.focus-mode #exitFocus{gap:4px;padding:4px 6px;font-size:11px}body.focus-mode .workspace-bar #focusActions{gap:4px}body.focus-mode .workspace-bar #focusActions button{font-size:11px;padding:4px 5px}body.focus-mode .workspace-bar #enhanceBtn{gap:3px}}
@media(max-width:330px){body.focus-mode .workspace-bar #focusActions button{font-size:10px;padding:4px 3px}body.focus-mode #exitFocus{font-size:10px;padding:4px 4px}body.focus-mode .workspace-bar #enhanceBtn svg{width:13px;height:13px}}
body.focus-mode .workspace-bar #enhanceLabel{display:inline;white-space:nowrap}

/* v0.34: preset library directly under the cell preview. */
.inspector-footer{padding:5px 8px 9px;flex:none;display:flex;justify-content:center}
#sizePresetBtn{display:flex;align-items:center;justify-content:center;gap:5px;min-height:33px;width:100%;max-width:180px;padding:5px 6px;font-weight:650;font-size:12px}
#sizePresetBtn svg{width:16px;height:16px;flex:none}
#sheetPresetBtn{color:var(--accent);font-size:11px;min-height:30px;padding:4px 7px;margin-left:auto;white-space:nowrap}
#sizePresetDialog .pdf-head{margin-bottom:9px}#sizePresetCancel{width:30px;min-width:30px;min-height:30px;height:30px;padding:3px}
.preset-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;border:1px solid var(--line);padding:3px;border-radius:9px;background:var(--ui-1b1c25,#1b1c25);margin-bottom:10px}
.preset-tabs button{border:0;background:transparent;min-height:33px;font-size:12px;font-weight:650;padding:5px}.preset-tabs button[aria-pressed=true]{background:var(--ui-493548,#493548);color:var(--ui-f6c5e1,#f6c5e1);box-shadow:inset 0 0 0 1px var(--accent)}
#myPresetPanel #savePresetStart{width:100%;min-height:36px;font-size:13px}#myPresetHint{margin:9px 0;font-size:11px}#myPresetList{display:grid;gap:6px}.preset-empty{color:var(--muted);font-size:12px;text-align:center;padding:16px 8px;margin:0;border:1px dashed var(--line);border-radius:8px}
.personal-preset-item{display:flex;align-items:center;border:1px solid var(--ui-464654,#464654);border-radius:9px;background:var(--ui-2a2b37,#2a2b37);gap:4px;padding:4px}.personal-preset-apply{display:flex;align-items:center;text-align:left;gap:9px;min-width:0;flex:1;border:0;background:transparent;padding:3px;min-height:48px}.personal-preset-apply span{min-width:0}.personal-preset-apply strong,.personal-preset-apply small{display:block;overflow-wrap:anywhere}.personal-preset-apply strong{font-size:13px}.personal-preset-apply small{font-size:10px;color:var(--muted)}.personal-preset-thumb{width:55px;height:48px;background:var(--ui-1b1c25,#1b1c25);border-radius:5px;flex:none}.personal-preset-delete{width:31px;height:33px;min-height:33px;display:grid;place-items:center;padding:5px;flex:none}.personal-preset-delete svg{width:17px;height:17px}
#savePresetForm{display:grid;gap:6px;margin-bottom:9px}#presetNameLabel{font-size:12px;color:var(--muted)}#presetNameInput{width:100%;min-height:38px;padding:7px 9px;border:1px solid var(--ui-505061,#505061);border-radius:8px;background:var(--ui-191a23,#191a23);color:var(--ink);font-size:16px}.preset-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.preset-form-actions button{min-height:34px;font-size:12px}#presetStorageError{color:#f7adad}

/* v0.35: project and export controls share the paper row. */
.paper-line .paper-actions{display:flex;align-items:center;gap:4px;flex:none;order:5;margin-left:auto}
.paper-line #sheetPresetBtn{margin-left:0;flex:none;order:2}
.paper-line #repeat{order:1;min-width:0}
.paper-line #paperInfo{flex:1 1 auto;white-space:nowrap;min-width:0;font-size:10px}
.paper-line .paper-picker{max-width:140px;min-width:0;flex:0 1 auto}
.paper-line #paperLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.paper-actions .icon-btn{width:34px;height:34px;min-height:34px;padding:4px}
.paper-actions .pdf-btn{width:50px;gap:3px}.paper-actions .pdf-btn span{font-size:11px}
@media(max-width:760px){body:not(.focus-mode) .paper-line{gap:4px}.paper-line .paper-picker{max-width:91px}.paper-line #repeat{font-size:11px;padding:5px 6px;max-width:46%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.paper-line #paperInfo{font-size:9px}.paper-actions .icon-btn{width:32px;height:32px;min-height:32px}.paper-actions .pdf-btn{width:44px;gap:1px}.paper-actions .pdf-btn span{font-size:10px}.paper-actions .pdf-btn svg{width:16px}}
@media(max-width:380px){.paper-line #paperInfo{display:none}.paper-line #repeat{max-width:45%}.paper-line .paper-picker{max-width:87px}.paper-line .paper-actions{gap:3px}.paper-line #sheetPresetBtn{padding:4px 5px;font-size:10px}}
#projectDialog{background:var(--ui-242530,#242530);color:var(--ink);border:1px solid var(--ui-505061,#505061);border-radius:16px;padding:16px;width:min(340px,calc(100vw - 28px));box-shadow:0 20px 70px #0009}#projectDialog::backdrop{background:#0a0913b5}.project-options{display:grid;gap:8px}.project-choice{display:flex;align-items:center;gap:12px;padding:12px;text-align:left;min-height:48px;font-weight:650}.project-choice svg{width:23px;height:23px;flex:none;color:var(--accent)}
#pdfDialog{max-height:90svh;overflow:auto}#pdfDialog .pdf-head{margin-bottom:12px}
.pdf-placement{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:8px;align-items:center;padding:10px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:var(--ui-1d1e28,#1d1e28)}.pdf-placement-settings{display:grid;gap:7px}.pdf-placement-settings select{font-size:13px;min-height:34px;padding:4px 6px}.pdf-fill-check{gap:6px;font-size:12px;line-height:1.3}.pdf-fill-check input{flex:none;margin:0}.pdf-placement canvas{width:80px;height:101px;display:block}.pdf-placement #pdfLayoutInfo{grid-column:1/-1;margin:0;line-height:1.35}.pdf-placement #pdfLayoutInfo.warn{color:#ffc38a}

/* v0.36: local project library */
#projectSaveDialog,#projectLibraryDialog{background:var(--ui-242530,#242530);color:var(--ink);border:1px solid var(--ui-505061,#505061);border-radius:16px;padding:15px;width:min(410px,calc(100vw - 28px));max-height:85svh;overflow:auto;box-shadow:0 20px 70px #0009}#projectSaveDialog::backdrop,#projectLibraryDialog::backdrop{background:#0a0913b5}
#projectSaveForm{display:grid;gap:8px}#projectNameLabel{font-size:12px;color:var(--muted)}#projectName{min-height:42px;width:100%;border:1px solid var(--ui-505061,#505061);border-radius:8px;background:var(--ui-191a23,#191a23);color:var(--ink);padding:8px 10px;font-size:16px}#projectSaveForm button,#importProject{min-height:42px;width:100%;font-size:13px}#projectLibraryHint,#projectSaveHint{margin:6px 0 9px;line-height:1.4}.project-error{color:#ffc2c2;font-size:12px;overflow-wrap:anywhere}#projectLibraryList{display:grid;gap:7px;margin:10px 0}.project-card{display:flex;align-items:center;gap:5px;background:var(--ui-2a2b37,#2a2b37);border:1px solid var(--ui-464654,#464654);border-radius:10px;padding:5px}.project-card-open{display:flex;flex:1;min-width:0;align-items:center;gap:9px;text-align:left;border:0;background:transparent;padding:3px}.project-card-open img{width:55px;height:70px;object-fit:contain;flex:none;background:var(--ui-191a23,#191a23);border-radius:5px}.project-card-open span{min-width:0}.project-card-open strong,.project-card-open small{display:block;overflow-wrap:anywhere;line-height:1.35}.project-card-open strong{font-size:14px}.project-card-open small{font-size:11px;color:var(--muted);margin-top:3px}.project-card-actions{display:grid;gap:4px;flex:none}.project-card-action{width:34px;min-width:34px;height:34px;min-height:34px;padding:6px;display:grid;place-items:center}.project-card-action svg{width:19px;height:19px}

/* Opacity uses the same scroll-safe thumb as other image controls. */
#outlinePanel .opacity-control{margin:8px 0 5px;padding:0 3px}

/* v0.38: compact shape controls and no routine workspace captions. */
.workspace .status[hidden], .workspace #blockSummary[hidden]{display:none!important}
#shapeSection .shape-adjustments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
#shapeSection .shape-adjustments .range-label{min-width:0;margin:0;padding:8px 6px 3px;background:var(--ui-292a36,#292a36);border:1px solid var(--line);border-radius:9px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(2.4em,auto) 32px;gap:2px 4px;font-size:12px;line-height:1.2;align-items:center}
#shapeSection .shape-adjustments output{white-space:nowrap;font-size:12px}
#shapeSection .shape-adjustments .thumb-slider{min-width:0;width:100%}
#shapeSection .shape-adjustments .thumb-rail{left:18px;right:18px}
@media(min-width:390px) and (max-width:760px){#shapeSection .shape-adjustments .range-label{grid-template-rows:minmax(1.5em,auto) 32px}}
#shapeSection{margin-bottom:0;padding-bottom:8px;border-bottom:0}

/* v0.39: hide the transient scroll indicator, not the scrolling/panning itself. */
#sheetScroll{scrollbar-width:none;-ms-overflow-style:none}
#sheetScroll::-webkit-scrollbar{display:none;width:0;height:0}
.sheet-text-panel{margin-top:9px;border:1px solid var(--line);border-radius:9px;background:var(--ui-292a36,#292a36);overflow:hidden}
.sheet-text-panel summary{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 9px;cursor:pointer;list-style:none;font-size:13px}
.sheet-text-panel summary::-webkit-details-marker{display:none}.sheet-text-panel summary svg{width:18px;height:18px;color:var(--accent);flex:none}.sheet-text-panel summary small{margin-left:auto;color:var(--accent)}.sheet-text-panel .text-chevron{color:var(--muted);font-size:18px;line-height:1}.sheet-text-panel[open] .text-chevron{transform:rotate(180deg)}
.sheet-text-fields{padding:2px 9px 9px;display:grid;gap:8px;color:var(--muted);font-size:12px}.sheet-text-fields label{display:grid;gap:4px}.sheet-text-fields input{width:100%;min-width:0;min-height:36px;border:1px solid var(--ui-505061,#505061);border-radius:7px;background:var(--ui-191a23,#191a23);color:var(--ink);padding:6px 8px;font-size:16px}.sheet-text-weights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sheet-text-weights button{min-width:0;padding:5px 2px;font-size:12px;min-height:34px}.sheet-text-weights button[data-text-weight="300"]{font-weight:300}.sheet-text-weights button[data-text-weight="500"]{font-weight:500}.sheet-text-weights button[data-text-weight="700"]{font-weight:700}.sheet-text-weights button[aria-pressed=true]{border-color:var(--accent);color:var(--ui-f4c5e0,#f4c5e0);background:var(--ui-493548,#493548)}

:root[data-theme="classic"]{--bg:#eee9e7;--panel:#faf7f6;--ink:#302830;--muted:#685b64;--accent:#a85280;--accent2:#8171b8;--ui-1e1f2a:#f5eff0;--ui-2c2535:#e7d1db;--ui-f6d6e9:#a85280;--ui-353642:#e5dde1;--ui-505061:#d2c7ce;--ui-363347:#e4dce0;--ui-191a23:#f9f3f4;--ui-292936:#eee6e9;--ui-f1afd1:#a85280;--ui-e9e5ed:#302830;--ui-3a2b3c:#e7d1db;--ui-493548:#e7d1db;--ui-181922:#faf4f5;--ui-f6c5e1:#a85280;--ui-bdb0ef:#8171b8;--ui-30313e:#e8e1e4;--ui-f3d6ec:#a85280;--ui-d99dc6:#a85280;--ui-72727c:#685b64;--ui-1d1e28:#f6f0f1;--ui-181923:#faf4f5;--ui-1c1d27:#f7f1f2;--ui-a89ae5:#8171b8;--ui-14151d:#fdf7f8;--ui-b98eae:#a85280;--ui-464654:#dad0d5;--ui-20212c:#f4edef;--ui-2d2e3b:#eae3e6;--ui-464650:#dad1d6;--ui-444553:#dad1d6;--ui-a8a4b1:#685b64;--ui-292a36:#ede6e9;--ui-353542:#e5dde1;--ui-2a2b37:#ede5e8;--ui-1b1c25:#f8f2f3;--ui-f4c5e0:#a85280;--ui-3b3048:#e7d1db;--ui-242530:#f1eaec;--ui-403044:#e7d1db;--ui-e6a8ca:#a85280;color-scheme:light}

:root[data-theme="vamp"]{--bg:#1b1119;--panel:#2a1824;--ink:#f9e9ef;--muted:#c3a0af;--accent:#e383a7;--accent2:#ad547a;--ui-1e1f2a:#2f242c;--ui-2c2535:#553142;--ui-f6d6e9:#e383a7;--ui-353642:#4f444b;--ui-505061:#766a71;--ui-363347:#51454d;--ui-191a23:#271d25;--ui-292936:#3e333b;--ui-f1afd1:#e383a7;--ui-e9e5ed:#f9e9ef;--ui-3a2b3c:#553142;--ui-493548:#553142;--ui-181922:#261b23;--ui-f6c5e1:#e383a7;--ui-bdb0ef:#ad547a;--ui-30313e:#493e45;--ui-f3d6ec:#e383a7;--ui-d99dc6:#e383a7;--ui-72727c:#c3a0af;--ui-1d1e28:#2d232a;--ui-181923:#261c24;--ui-1c1d27:#2c2129;--ui-a89ae5:#ad547a;--ui-14151d:#20161d;--ui-b98eae:#e383a7;--ui-464654:#675b62;--ui-20212c:#32272f;--ui-2d2e3b:#453a41;--ui-464650:#655960;--ui-444553:#655960;--ui-a8a4b1:#c3a0af;--ui-292a36:#3f343b;--ui-353542:#4f434b;--ui-2a2b37:#40353d;--ui-1b1c25:#2a1f27;--ui-f4c5e0:#e383a7;--ui-3b3048:#553142;--ui-242530:#372c34;--ui-403044:#553142;--ui-e6a8ca:#e383a7;color-scheme:dark}

:root[data-theme="gold"]{--bg:#17150f;--panel:#27231a;--ink:#f7eed9;--muted:#c2b396;--accent:#dfbd72;--accent2:#a98a4d;--ui-1e1f2a:#2b2821;--ui-2c2535:#51462e;--ui-f6d6e9:#dfbd72;--ui-353642:#4c483f;--ui-505061:#736e62;--ui-363347:#4d4940;--ui-191a23:#23211a;--ui-292936:#3a372f;--ui-f1afd1:#dfbd72;--ui-e9e5ed:#f7eed9;--ui-3a2b3c:#51462e;--ui-493548:#51462e;--ui-181922:#221f19;--ui-f6c5e1:#dfbd72;--ui-bdb0ef:#a98a4d;--ui-30313e:#454239;--ui-f3d6ec:#dfbd72;--ui-d99dc6:#dfbd72;--ui-72727c:#c2b396;--ui-1d1e28:#29271f;--ui-181923:#222019;--ui-1c1d27:#28251e;--ui-a89ae5:#a98a4d;--ui-14151d:#1c1a13;--ui-b98eae:#dfbd72;--ui-464654:#645f54;--ui-20212c:#2e2b24;--ui-2d2e3b:#413e35;--ui-464650:#625d52;--ui-444553:#625d52;--ui-a8a4b1:#c2b396;--ui-292a36:#3b382f;--ui-353542:#4b483e;--ui-2a2b37:#3c3931;--ui-1b1c25:#26231c;--ui-f4c5e0:#dfbd72;--ui-3b3048:#51462e;--ui-242530:#333129;--ui-403044:#51462e;--ui-e6a8ca:#dfbd72;color-scheme:dark}

:root[data-theme="silver"]{--bg:#14171c;--panel:#222730;--ink:#f0f4fa;--muted:#aeb9c7;--accent:#c3d2e7;--accent2:#8f9db5;--ui-1e1f2a:#282b30;--ui-2c2535:#474e5a;--ui-f6d6e9:#c3d2e7;--ui-353642:#484b50;--ui-505061:#6e7277;--ui-363347:#494c52;--ui-191a23:#202328;--ui-292936:#373a3f;--ui-f1afd1:#c3d2e7;--ui-e9e5ed:#f0f4fa;--ui-3a2b3c:#474e5a;--ui-493548:#474e5a;--ui-181922:#1f2227;--ui-f6c5e1:#c3d2e7;--ui-bdb0ef:#8f9db5;--ui-30313e:#41454a;--ui-f3d6ec:#c3d2e7;--ui-d99dc6:#c3d2e7;--ui-72727c:#aeb9c7;--ui-1d1e28:#26292e;--ui-181923:#1f2227;--ui-1c1d27:#24282d;--ui-a89ae5:#8f9db5;--ui-14151d:#191c21;--ui-b98eae:#c3d2e7;--ui-464654:#5f6368;--ui-20212c:#2a2e33;--ui-2d2e3b:#3d4046;--ui-464650:#5d6166;--ui-444553:#5d6166;--ui-a8a4b1:#aeb9c7;--ui-292a36:#373a40;--ui-353542:#474b50;--ui-2a2b37:#393c41;--ui-1b1c25:#23262b;--ui-f4c5e0:#c3d2e7;--ui-3b3048:#474e5a;--ui-242530:#303338;--ui-403044:#474e5a;--ui-e6a8ca:#c3d2e7;color-scheme:dark}

:root[data-theme="neon"]{--bg:#1b102b;--panel:#2b183b;--ink:#faeaff;--muted:#cdb0dc;--accent:#ff82cd;--accent2:#9776ff;--ui-1e1f2a:#2f243e;--ui-2c2535:#5c305d;--ui-f6d6e9:#ff82cd;--ui-353642:#4f435d;--ui-505061:#776982;--ui-363347:#51455e;--ui-191a23:#271c36;--ui-292936:#3e334d;--ui-f1afd1:#ff82cd;--ui-e9e5ed:#faeaff;--ui-3a2b3c:#5c305d;--ui-493548:#5c305d;--ui-181922:#261a35;--ui-f6c5e1:#ff82cd;--ui-bdb0ef:#9776ff;--ui-30313e:#493d57;--ui-f3d6ec:#ff82cd;--ui-d99dc6:#ff82cd;--ui-72727c:#cdb0dc;--ui-1d1e28:#2d223c;--ui-181923:#261b36;--ui-1c1d27:#2c203b;--ui-a89ae5:#9776ff;--ui-14151d:#20152f;--ui-b98eae:#ff82cd;--ui-464654:#675a73;--ui-20212c:#322641;--ui-2d2e3b:#453953;--ui-464650:#655972;--ui-444553:#655972;--ui-a8a4b1:#cdb0dc;--ui-292a36:#3f334d;--ui-353542:#4f435c;--ui-2a2b37:#40344e;--ui-1b1c25:#2a1f39;--ui-f4c5e0:#ff82cd;--ui-3b3048:#5c305d;--ui-242530:#372c46;--ui-403044:#5c305d;--ui-e6a8ca:#ff82cd;color-scheme:dark}

:root[data-theme="classic"] button.primary,:root[data-theme="classic"] #shopsBtn{color:white;background:linear-gradient(120deg,#9c4777,#7162a9)}
:root[data-theme="neon"] .primary,:root[data-theme="neon"] #shopsBtn{box-shadow:0 0 12px #ff82cd65,0 0 22px #9776ff38}
header .brand{gap:7px;flex:1;min-width:0}header .brand strong{font-size:21px;line-height:1.12;letter-spacing:-.6px;white-space:normal}header .brand strong em{font-style:normal;color:var(--accent)}header .brand small{font-size:9px;letter-spacing:.2px;margin-top:2px}
header .header-actions{gap:5px;flex-wrap:nowrap;align-items:center}header #shopsBtn{min-height:34px;white-space:nowrap;font-size:11px;padding:5px 9px;display:flex;align-items:center;justify-content:center;gap:5px}#shopsBtn svg{width:16px;height:16px;flex:none}#langBtn{width:37px}#themeBtn{width:36px}
#brandDialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:16px;width:min(390px,calc(100vw - 28px));padding:16px;max-height:85svh;overflow:auto}#brandDialog::backdrop{background:#0a0913b5}.brand-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.brand-options button,.brand-options a{min-width:0;display:flex;align-items:center;gap:8px;justify-content:flex-start;min-height:43px;text-align:left;font-size:13px}.brand-options button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.brand-options a{color:var(--ink);text-decoration:none;border:1px solid var(--line);border-radius:9px;padding:10px;background:var(--bg)}.brand-options.shops{grid-template-columns:1fr}.theme-swatch{width:32px;height:24px;border-radius:6px;border:1px solid #8888;flex:none}
@media(max-width:760px){header .brand strong{font-size:16px;letter-spacing:-.45px}header .brand small{font-size:8px}header .header-actions{gap:4px}header #shopsBtn{padding:4px 7px;font-size:10px}header #themeBtn,header #langBtn{width:31px}header .brand .logo{width:30px;height:30px}}
@media(max-width:350px){header .brand strong{font-size:14px}header #shopsBtn{font-size:9px;padding:4px 5px}header #shopsBtn svg{display:none}header .brand .logo{width:26px;height:26px;font-size:22px}}

.focus-add{color:#252335}
:root[data-theme="classic"] .sheet-wrap{filter:drop-shadow(0 3px 10px #5c405b20)}

/* v0.41 — original Nail Art Studio v4.8.9 palette tokens, adapted to template editor. */
:root[data-theme="blue"]{color-scheme:light;--ui-bg:linear-gradient(150deg,#75d7f2 0%,#a2c6ff 29%,#bfa8f8 60%,#f18bc9 100%);--ui-surface:#fffffff0;--ui-card:#fffffff5;--ui-soft:#f1edff;--ui-ink:#352d53;--ui-muted:#625878;--ui-line:#d9c8ee;--ui-accent:#7651bc;--ui-highlight:#ece3ff;--ui-highlight-ink:#5b3699;--ui-primary:linear-gradient(135deg,#4b54b3 0%,#7846b0 53%,#ad397e 100%);--ui-primary-ink:#fff;--ui-glint:inset 0 1px 0 #ffffffd9;--ui-button-shadow:0 2px 8px #826bff16,0 0 9px #f17ac318;--ui-button-active-shadow:var(--ui-active-glow);--ui-button-edge:var(--ui-line);--ui-button-active-edge:#9975cd;--ui-light-border:#a77cdb;--ui-active-glow:0 0 11px #826bff55,0 0 20px #f17ac34d;--bg:linear-gradient(150deg,#75d7f2 0%,#a2c6ff 29%,#bfa8f8 60%,#f18bc9 100%);--panel:#fffffff0;--ink:#352d53;--muted:#625878;--accent:#7651bc;--accent2:#7651bc;--ui-14151d:#f1edff;--ui-181922:#fffffff0;--ui-181923:#f1edff;--ui-191a23:#fffffff5;--ui-1b1c25:#fffffff0;--ui-1c1d27:#fffffff0;--ui-1d1e28:#fffffff0;--ui-1e1f2a:#fffffff0;--ui-20212c:#fffffff0;--ui-242530:#fffffff0;--ui-292936:#f1edff;--ui-292a36:#f1edff;--ui-2a2b37:#f1edff;--ui-2d2e3b:#fffffff5;--ui-30313e:#f1edff;--ui-363347:#fffffff5;--ui-353542:#d9c8ee;--ui-353642:#d9c8ee;--ui-444553:#d9c8ee;--ui-464650:#d9c8ee;--ui-464654:#d9c8ee;--ui-505061:#d9c8ee;--ui-72727c:#625878;--ui-a8a4b1:#625878;--ui-2c2535:#ece3ff;--ui-3a2b3c:#ece3ff;--ui-3b3048:#ece3ff;--ui-403044:#ece3ff;--ui-493548:#ece3ff;--ui-f6d6e9:#5b3699;--ui-f6c5e1:#5b3699;--ui-f3d6ec:#5b3699;--ui-f4c5e0:#5b3699;--ui-e9e5ed:#352d53;--ui-b98eae:#7651bc;--ui-d99dc6:#7651bc;--ui-e6a8ca:#7651bc;--ui-f1afd1:#7651bc;--ui-a89ae5:#7651bc;--ui-bdb0ef:#7651bc}
:root[data-theme="vamp"]{color-scheme:dark;--ui-bg:linear-gradient(155deg,#140f17 0%,#271521 50%,#170e17 100%);--ui-surface:#241723;--ui-card:#36212f;--ui-soft:#301d2a;--ui-ink:#f9e9f0;--ui-muted:#d5abbf;--ui-line:#805067;--ui-accent:#f4a0c1;--ui-highlight:#563046;--ui-highlight-ink:#ffdfed;--ui-primary:#ad5079;--ui-primary-ink:#fff9fc;--ui-glint:inset 0 1px 0 #ffffff20;--ui-button-shadow:none;--ui-button-active-shadow:0 0 10px #e16c9b35,0 0 18px #ad50792b;--ui-button-edge:var(--ui-line);--ui-button-active-edge:var(--ui-light-border,var(--ui-line));--ui-light-border:#b7789a;--bg:linear-gradient(155deg,#140f17 0%,#271521 50%,#170e17 100%);--panel:#241723;--ink:#f9e9f0;--muted:#d5abbf;--accent:#f4a0c1;--accent2:#f4a0c1;--ui-14151d:#301d2a;--ui-181922:#241723;--ui-181923:#301d2a;--ui-191a23:#36212f;--ui-1b1c25:#241723;--ui-1c1d27:#241723;--ui-1d1e28:#241723;--ui-1e1f2a:#241723;--ui-20212c:#241723;--ui-242530:#241723;--ui-292936:#301d2a;--ui-292a36:#301d2a;--ui-2a2b37:#301d2a;--ui-2d2e3b:#36212f;--ui-30313e:#301d2a;--ui-363347:#36212f;--ui-353542:#805067;--ui-353642:#805067;--ui-444553:#805067;--ui-464650:#805067;--ui-464654:#805067;--ui-505061:#805067;--ui-72727c:#d5abbf;--ui-a8a4b1:#d5abbf;--ui-2c2535:#563046;--ui-3a2b3c:#563046;--ui-3b3048:#563046;--ui-403044:#563046;--ui-493548:#563046;--ui-f6d6e9:#ffdfed;--ui-f6c5e1:#ffdfed;--ui-f3d6ec:#ffdfed;--ui-f4c5e0:#ffdfed;--ui-e9e5ed:#f9e9f0;--ui-b98eae:#f4a0c1;--ui-d99dc6:#f4a0c1;--ui-e6a8ca:#f4a0c1;--ui-f1afd1:#f4a0c1;--ui-a89ae5:#f4a0c1;--ui-bdb0ef:#f4a0c1}
:root[data-theme="classic"]{color-scheme:light;--ui-bg:#f9f8f6;--ui-surface:#fff;--ui-card:#fff;--ui-soft:#f8f4f1;--ui-ink:#22201f;--ui-muted:#857b74;--ui-line:#eae7e3;--ui-accent:#765a4c;--ui-highlight:#f2eae6;--ui-highlight-ink:#60473b;--ui-primary:#282522;--ui-primary-ink:#fff;--ui-glint:none;--ui-button-shadow:none;--ui-button-active-shadow:none;--ui-button-edge:var(--ui-line);--ui-button-active-edge:var(--ui-light-border,var(--ui-line));--ui-light-border:#ccbbb0;--bg:#f9f8f6;--panel:#fff;--ink:#22201f;--muted:#857b74;--accent:#765a4c;--accent2:#765a4c;--ui-14151d:#f8f4f1;--ui-181922:#fff;--ui-181923:#f8f4f1;--ui-191a23:#fff;--ui-1b1c25:#fff;--ui-1c1d27:#fff;--ui-1d1e28:#fff;--ui-1e1f2a:#fff;--ui-20212c:#fff;--ui-242530:#fff;--ui-292936:#f8f4f1;--ui-292a36:#f8f4f1;--ui-2a2b37:#f8f4f1;--ui-2d2e3b:#fff;--ui-30313e:#f8f4f1;--ui-363347:#fff;--ui-353542:#eae7e3;--ui-353642:#eae7e3;--ui-444553:#eae7e3;--ui-464650:#eae7e3;--ui-464654:#eae7e3;--ui-505061:#eae7e3;--ui-72727c:#857b74;--ui-a8a4b1:#857b74;--ui-2c2535:#f2eae6;--ui-3a2b3c:#f2eae6;--ui-3b3048:#f2eae6;--ui-403044:#f2eae6;--ui-493548:#f2eae6;--ui-f6d6e9:#60473b;--ui-f6c5e1:#60473b;--ui-f3d6ec:#60473b;--ui-f4c5e0:#60473b;--ui-e9e5ed:#22201f;--ui-b98eae:#765a4c;--ui-d99dc6:#765a4c;--ui-e6a8ca:#765a4c;--ui-f1afd1:#765a4c;--ui-a89ae5:#765a4c;--ui-bdb0ef:#765a4c}
:root[data-theme="gold"]{color-scheme:light;--ui-bg:#e6cb8c;--ui-surface:#fff4d9;--ui-card:#fff6df;--ui-soft:#f4e4bc;--ui-ink:#392a18;--ui-muted:#856d49;--ui-line:#c5a767;--ui-accent:#836122;--ui-highlight:#edd6a6;--ui-highlight-ink:#483115;--ui-primary:linear-gradient(125deg,#9e7736 0%,#c69b4f 100%);--ui-primary-ink:#fffaf0;--ui-glint:inset 0 1px 0 #ffffffb0;--ui-button-shadow:none;--ui-button-active-shadow:0 2px 7px #78511b26,0 0 12px #d7af6340;--ui-button-edge:var(--ui-line);--ui-button-active-edge:var(--ui-light-border,var(--ui-line));--ui-light-border:#c5a767;--bg:#e6cb8c;--panel:#fff4d9;--ink:#392a18;--muted:#856d49;--accent:#836122;--accent2:#836122;--ui-14151d:#f4e4bc;--ui-181922:#fff4d9;--ui-181923:#f4e4bc;--ui-191a23:#fff6df;--ui-1b1c25:#fff4d9;--ui-1c1d27:#fff4d9;--ui-1d1e28:#fff4d9;--ui-1e1f2a:#fff4d9;--ui-20212c:#fff4d9;--ui-242530:#fff4d9;--ui-292936:#f4e4bc;--ui-292a36:#f4e4bc;--ui-2a2b37:#f4e4bc;--ui-2d2e3b:#fff6df;--ui-30313e:#f4e4bc;--ui-363347:#fff6df;--ui-353542:#c5a767;--ui-353642:#c5a767;--ui-444553:#c5a767;--ui-464650:#c5a767;--ui-464654:#c5a767;--ui-505061:#c5a767;--ui-72727c:#856d49;--ui-a8a4b1:#856d49;--ui-2c2535:#edd6a6;--ui-3a2b3c:#edd6a6;--ui-3b3048:#edd6a6;--ui-403044:#edd6a6;--ui-493548:#edd6a6;--ui-f6d6e9:#483115;--ui-f6c5e1:#483115;--ui-f3d6ec:#483115;--ui-f4c5e0:#483115;--ui-e9e5ed:#392a18;--ui-b98eae:#836122;--ui-d99dc6:#836122;--ui-e6a8ca:#836122;--ui-f1afd1:#836122;--ui-a89ae5:#836122;--ui-bdb0ef:#836122}
:root[data-theme="silver"]{color-scheme:light;--ui-bg:#d5dce5;--ui-surface:#f1f5fa;--ui-card:#f9fbfe;--ui-soft:#e5e9f0;--ui-ink:#273443;--ui-muted:#677689;--ui-line:#a9b5c3;--ui-accent:#65778c;--ui-highlight:#d8e1eb;--ui-highlight-ink:#304255;--ui-primary:linear-gradient(125deg,#607287 0%,#8fa1b4 100%);--ui-primary-ink:#fff;--ui-glint:inset 0 1px 0 #ffffffdf;--ui-button-shadow:none;--ui-button-active-shadow:0 2px 7px #455b7426,0 0 12px #8fa1b440;--ui-button-edge:var(--ui-line);--ui-button-active-edge:var(--ui-light-border,var(--ui-line));--ui-light-border:#a9b5c3;--bg:#d5dce5;--panel:#f1f5fa;--ink:#273443;--muted:#677689;--accent:#65778c;--accent2:#65778c;--ui-14151d:#e5e9f0;--ui-181922:#f1f5fa;--ui-181923:#e5e9f0;--ui-191a23:#f9fbfe;--ui-1b1c25:#f1f5fa;--ui-1c1d27:#f1f5fa;--ui-1d1e28:#f1f5fa;--ui-1e1f2a:#f1f5fa;--ui-20212c:#f1f5fa;--ui-242530:#f1f5fa;--ui-292936:#e5e9f0;--ui-292a36:#e5e9f0;--ui-2a2b37:#e5e9f0;--ui-2d2e3b:#f9fbfe;--ui-30313e:#e5e9f0;--ui-363347:#f9fbfe;--ui-353542:#a9b5c3;--ui-353642:#a9b5c3;--ui-444553:#a9b5c3;--ui-464650:#a9b5c3;--ui-464654:#a9b5c3;--ui-505061:#a9b5c3;--ui-72727c:#677689;--ui-a8a4b1:#677689;--ui-2c2535:#d8e1eb;--ui-3a2b3c:#d8e1eb;--ui-3b3048:#d8e1eb;--ui-403044:#d8e1eb;--ui-493548:#d8e1eb;--ui-f6d6e9:#304255;--ui-f6c5e1:#304255;--ui-f3d6ec:#304255;--ui-f4c5e0:#304255;--ui-e9e5ed:#273443;--ui-b98eae:#65778c;--ui-d99dc6:#65778c;--ui-e6a8ca:#65778c;--ui-f1afd1:#65778c;--ui-a89ae5:#65778c;--ui-bdb0ef:#65778c}
:root[data-theme="neon"]{color-scheme:dark;--ui-bg:radial-gradient(ellipse at 95% 96%,#8b275f 0%,transparent 55%),linear-gradient(155deg,#12182f 0%,#242044 40%,#46245e 70%,#612650 100%);--ui-surface:#201f3a;--ui-card:#302945;--ui-soft:#27243e;--ui-ink:#f6efff;--ui-muted:#c6b8df;--ui-line:#625281;--ui-accent:#91ddff;--ui-highlight:#483768;--ui-highlight-ink:#faeaff;--ui-primary:linear-gradient(135deg,#3b55a9 0%,#7546b0 49%,#b03678 100%);--ui-primary-ink:#fff;--ui-glint:none;--ui-button-shadow:0 0 12px #b5a0df24,0 0 25px #e8a6c31b;--ui-button-active-shadow:0 0 14px #b5a0df88,0 0 27px #ef9ed644;--ui-button-edge:var(--ui-line);--ui-button-active-edge:#c3a8ef;--ui-light-border:#bf83ed;--bg:radial-gradient(ellipse at 95% 96%,#8b275f 0%,transparent 55%),linear-gradient(155deg,#12182f 0%,#242044 40%,#46245e 70%,#612650 100%);--panel:#201f3a;--ink:#f6efff;--muted:#c6b8df;--accent:#91ddff;--accent2:#91ddff;--ui-14151d:#27243e;--ui-181922:#201f3a;--ui-181923:#27243e;--ui-191a23:#302945;--ui-1b1c25:#201f3a;--ui-1c1d27:#201f3a;--ui-1d1e28:#201f3a;--ui-1e1f2a:#201f3a;--ui-20212c:#201f3a;--ui-242530:#201f3a;--ui-292936:#27243e;--ui-292a36:#27243e;--ui-2a2b37:#27243e;--ui-2d2e3b:#302945;--ui-30313e:#27243e;--ui-363347:#302945;--ui-353542:#625281;--ui-353642:#625281;--ui-444553:#625281;--ui-464650:#625281;--ui-464654:#625281;--ui-505061:#625281;--ui-72727c:#c6b8df;--ui-a8a4b1:#c6b8df;--ui-2c2535:#483768;--ui-3a2b3c:#483768;--ui-3b3048:#483768;--ui-403044:#483768;--ui-493548:#483768;--ui-f6d6e9:#faeaff;--ui-f6c5e1:#faeaff;--ui-f3d6ec:#faeaff;--ui-f4c5e0:#faeaff;--ui-e9e5ed:#f6efff;--ui-b98eae:#91ddff;--ui-d99dc6:#91ddff;--ui-e6a8ca:#91ddff;--ui-f1afd1:#91ddff;--ui-a89ae5:#91ddff;--ui-bdb0ef:#91ddff}
:root[data-theme] button.primary,:root[data-theme] #shopsBtn{background:var(--ui-primary);color:var(--ui-primary-ink);box-shadow:var(--ui-button-active-shadow,none)}
:root[data-theme] .logo{background:var(--ui-primary);color:var(--ui-primary-ink)}
:root[data-theme] .focus-add{background:var(--ui-primary);color:var(--ui-primary-ink)}
:root[data-theme] .sheet-scroll{background:var(--ui-bg)}
:root[data-theme] .brand-options a{background:var(--ui-card)}
:root[data-theme] header .brand strong em{font-style:italic;font-weight:500;color:var(--ui-accent)}
:root[data-theme] :is(.filter-presets button[aria-pressed=true],#enhanceBtn[aria-pressed=true],.mirror-actions button[aria-pressed=true],#magicWand[aria-pressed=true]){background:var(--ui-highlight);color:var(--ui-highlight-ink);border-color:var(--ui-accent)}
:root[data-theme] #toast{color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme="blue"] .sheet-wrap,:root[data-theme="gold"] .sheet-wrap,:root[data-theme="silver"] .sheet-wrap{filter:drop-shadow(0 3px 10px #0002)}

/* v0.42: supplied NT icon and single-line brand; existing editor palettes unchanged. */
header .brand {align-items:center;gap:8px;min-width:0;}
header .brand>div {display:flex;align-items:center;min-width:0;}
header .brand strong {white-space:nowrap;line-height:1.2;font-size:21px;letter-spacing:-.65px;}
header .brand .logo {display:block;object-fit:contain;background:transparent!important;border:0;box-shadow:none;border-radius:0;flex:none;}
@media(max-width:760px){header .brand strong{font-size:clamp(13px,4.3vw,18px);letter-spacing:-.35px;}header .brand{gap:6px;}}
@media(max-width:350px){header .brand strong{font-size:13px;letter-spacing:-.3px;}header .brand{gap:4px;}header #shopsBtn{font-size:9px;}}
/* Original NAS-inspired install landing, independent of saved editor theme. */
html.install-gated,html.install-gated body{color-scheme:light;background:radial-gradient(circle at 16% 0%,#daf4ff 0%,#f6f2ff 38%,#ffe1f6 100%);color:#34253a;min-height:100svh;}
html.install-gated body>header,html.install-gated body>main,html.install-gated body>#toast{display:none!important;}
#installLanding[hidden],#installHero[hidden],#localPreview[hidden],#installSuccess[hidden]{display:none!important;}
#installLanding{width:min(600px,100%);margin:0 auto;padding: max(12px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));}
.install-top{display:flex;align-items:center;justify-content:space-between;margin:0 3px 12px;gap:8px;}
.install-by{font-size:10px;font-weight:800;letter-spacing:.15em;color:#8d6aa7;}
#installLanguage{width:auto;min-width:100px;max-width:52%;padding:8px 12px;border:1px solid #d9c8f3;border-radius:999px;background:#fffdfd;color:#72578e;font:600 12px system-ui,sans-serif;}
#installHero{display:flex;flex-direction:column;align-items:center;text-align:center;overflow:hidden;padding:0 16px 20px;border:1px solid #eadcf8;border-radius:27px;background:linear-gradient(180deg,#fffefe,#fffbfe);box-shadow:0 18px 60px #9d79db20;color:#34253a;}
.nas-install-art{height:clamp(145px,26svh,245px);width:calc(100% + 32px);position:relative;overflow:hidden;background:linear-gradient(135deg,#cbf0ff,#ffd6f4);flex:none;}
.nas-install-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 41%;}
.nas-install-art::after{content:'';position:absolute;inset:auto 0 0;height:39%;background:linear-gradient(0deg,#fffcff,#fffcff00);}
.nas-install-icon{width:76px;height:76px;object-fit:contain;position:relative;z-index:2;margin:-36px auto 5px;border-radius:20px;border:4px solid #fffcff;box-shadow:0 10px 28px #8b67d244;}
.hero-kicker{margin:2px 0 7px;color:#9d7abb;font-size:10px;font-weight:850;letter-spacing:.18em;text-transform:uppercase;}
#installHero h1{font:normal clamp(27px,7.5vw,43px)/1.08 Georgia,serif;letter-spacing:-.025em;color:#2e2240;margin:0;}
#installHero h1 em{font-weight:normal;font-style:italic;color:#b160b8;}
.hero-description{font:400 clamp(13px,3.7vw,17px)/1.5 system-ui,sans-serif;max-width:345px;margin:11px auto 16px;color:#756286;}
.install-device-grid{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:10px;align-items:start;text-align:left;}
.install-device-card{min-width:0;padding:13px 11px;border:1px solid #e4d7f8;border-radius:16px;background:#fffdfd;color:#564466;overflow-wrap:anywhere;}
.install-card-android{border-color:#c0a0ff;box-shadow:0 6px 18px #a776eb20;}
.install-device-card h2{display:flex;align-items:center;gap:6px;font:750 14px/1.25 system-ui,sans-serif;margin:0 0 8px;color:#5e477b;}
.install-device-card h2 svg{width:20px;height:20px;flex:none;color:#b46dd6;}
.install-card-intro{font-size:12px;line-height:1.45;margin:0 0 12px;color:#74667f;}
.install-inline-steps{list-style:none;padding:0;margin:0;display:grid;gap:8px;}
.install-inline-steps li{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.35;font-weight:650;color:#564466;}
.install-step-symbol{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;color:#8b63bd;background:linear-gradient(145deg,#f5edff,#fff6fd);border:1px solid #e4d3fa;}
.install-step-symbol svg{width:17px;height:17px;}
.nas-webapp-note{display:block;margin-top:5px;font-size:10px;font-weight:400;line-height:1.4;color:#82729a;}
.install-card-foot,.install-android-fallback,.desktop-install-hint{font-size:11px;line-height:1.45;color:#7f708f;margin:10px 0 0;}
#installHero .install-android-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:49px;gap:6px;font-size:13px;font-weight:700;padding:8px 7px;border-radius:11px;white-space:normal;line-height:1.25;border:1px solid #ac8ce9;background:linear-gradient(135deg,#b7e9ff,#f3b2f1);color:#4e376b;box-shadow:0 8px 20px #b174ea36;}
.install-android-action svg{width:19px;height:19px;flex:none;}
.install-tip-active{background:#f7f1ff;border:1px solid #e4d9ff;padding:7px;border-radius:8px;}
.install-success{color:#3c6d6c;background:#eafaf9;padding:12px;border-radius:13px;}
.local-preview{display:block;text-align:center;margin:14px auto 0;color:#7651bc;font-size:12px;}
@media(max-width:380px){#installHero{padding-left:11px;padding-right:11px;}.nas-install-art{width:calc(100% + 22px);}.install-device-grid{gap:6px;}.install-device-card{padding:10px 7px;}.install-device-card h2{font-size:12px;gap:4px;}.install-inline-steps li{font-size:11px;gap:4px;}.install-step-symbol{flex-basis:25px;width:25px;height:25px;}}
@media(max-width:310px){.install-device-grid{grid-template-columns:1fr;}}
@media(min-width:351px) and (max-width:375px){header .brand strong{font-size:14px;letter-spacing:-.4px;}}

/* v0.43: restored dark palettes from v0.40. */
:root[data-theme="dark-blue"]{color-scheme:dark;--bg:#171720;--panel:#22232e;--line:var(--ui-353642,#353642);--ink:#f0eef5;--muted:#aaa9ba;--accent:#e3a1c5;--accent2:#b8a7ed;--ui-353642:#353642;--ui-464654:#464654;--ui-2d2e3b:#2d2e3b;--ui-f1afd1:#f1afd1;--ui-bdb0ef:#bdb0ef;--ui-1d1e28:#1d1e28;--ui-a89ae5:#a89ae5;--ui-191a23:#191a23;--ui-444553:#444553;--ui-14151d:#14151d;--ui-20212c:#20212c;--ui-30313e:#30313e;--ui-181923:#181923;--ui-363347:#363347;--ui-181922:#181922;--ui-1c1d27:#1c1d27;--ui-3a2b3c:#3a2b3c;--ui-3b3048:#3b3048;--ui-f3d6ec:#f3d6ec;--ui-d99dc6:#d99dc6;--ui-353542:#353542;--ui-e9e5ed:#e9e5ed;--ui-e6a8ca:#e6a8ca;--ui-292936:#292936;--ui-242530:#242530;--ui-505061:#505061;--ui-b98eae:#b98eae;--ui-403044:#403044;--ui-2c2535:#2c2535;--ui-464650:#464650;--ui-72727c:#72727c;--ui-a8a4b1:#a8a4b1;--ui-493548:#493548;--ui-f6d6e9:#f6d6e9;--ui-1e1f2a:#1e1f2a;--ui-1b1c25:#1b1c25;--ui-f6c5e1:#f6c5e1;--ui-2a2b37:#2a2b37;--ui-292a36:#292a36;--ui-f4c5e0:#f4c5e0;--ui-bg:radial-gradient(ellipse at 50% 40%,var(--ui-30313e),var(--ui-181923));--ui-surface:var(--panel);--ui-card:var(--ui-2d2e3b);--ui-soft:var(--ui-292936);--ui-ink:var(--ink);--ui-muted:var(--muted);--ui-line:var(--line);--ui-accent:var(--accent);--ui-highlight:var(--ui-493548);--ui-highlight-ink:var(--ui-f6d6e9);--ui-primary:linear-gradient(120deg,var(--accent),var(--accent2));--ui-primary-ink:#242031;--ui-button-active-shadow:none;}
:root[data-theme="dark-vamp"]{--bg:#1b1119;--panel:#2a1824;--ink:#f9e9ef;--muted:#c3a0af;--accent:#e383a7;--accent2:#ad547a;--ui-1e1f2a:#2f242c;--ui-2c2535:#553142;--ui-f6d6e9:#e383a7;--ui-353642:#4f444b;--ui-505061:#766a71;--ui-363347:#51454d;--ui-191a23:#271d25;--ui-292936:#3e333b;--ui-f1afd1:#e383a7;--ui-e9e5ed:#f9e9ef;--ui-3a2b3c:#553142;--ui-493548:#553142;--ui-181922:#261b23;--ui-f6c5e1:#e383a7;--ui-bdb0ef:#ad547a;--ui-30313e:#493e45;--ui-f3d6ec:#e383a7;--ui-d99dc6:#e383a7;--ui-72727c:#c3a0af;--ui-1d1e28:#2d232a;--ui-181923:#261c24;--ui-1c1d27:#2c2129;--ui-a89ae5:#ad547a;--ui-14151d:#20161d;--ui-b98eae:#e383a7;--ui-464654:#675b62;--ui-20212c:#32272f;--ui-2d2e3b:#453a41;--ui-464650:#655960;--ui-444553:#655960;--ui-a8a4b1:#c3a0af;--ui-292a36:#3f343b;--ui-353542:#4f434b;--ui-2a2b37:#40353d;--ui-1b1c25:#2a1f27;--ui-f4c5e0:#e383a7;--ui-3b3048:#553142;--ui-242530:#372c34;--ui-403044:#553142;--ui-e6a8ca:#e383a7;color-scheme:dark;--ui-bg:radial-gradient(ellipse at 50% 40%,var(--ui-30313e),var(--ui-181923));--ui-surface:var(--panel);--ui-card:var(--ui-2d2e3b);--ui-soft:var(--ui-292936);--ui-ink:var(--ink);--ui-muted:var(--muted);--ui-line:var(--line);--ui-accent:var(--accent);--ui-highlight:var(--ui-493548);--ui-highlight-ink:var(--ui-f6d6e9);--ui-primary:linear-gradient(120deg,var(--accent),var(--accent2));--ui-primary-ink:#242031;--ui-button-active-shadow:none;}
:root[data-theme="dark-gold"]{--bg:#17150f;--panel:#27231a;--ink:#f7eed9;--muted:#c2b396;--accent:#dfbd72;--accent2:#a98a4d;--ui-1e1f2a:#2b2821;--ui-2c2535:#51462e;--ui-f6d6e9:#dfbd72;--ui-353642:#4c483f;--ui-505061:#736e62;--ui-363347:#4d4940;--ui-191a23:#23211a;--ui-292936:#3a372f;--ui-f1afd1:#dfbd72;--ui-e9e5ed:#f7eed9;--ui-3a2b3c:#51462e;--ui-493548:#51462e;--ui-181922:#221f19;--ui-f6c5e1:#dfbd72;--ui-bdb0ef:#a98a4d;--ui-30313e:#454239;--ui-f3d6ec:#dfbd72;--ui-d99dc6:#dfbd72;--ui-72727c:#c2b396;--ui-1d1e28:#29271f;--ui-181923:#222019;--ui-1c1d27:#28251e;--ui-a89ae5:#a98a4d;--ui-14151d:#1c1a13;--ui-b98eae:#dfbd72;--ui-464654:#645f54;--ui-20212c:#2e2b24;--ui-2d2e3b:#413e35;--ui-464650:#625d52;--ui-444553:#625d52;--ui-a8a4b1:#c2b396;--ui-292a36:#3b382f;--ui-353542:#4b483e;--ui-2a2b37:#3c3931;--ui-1b1c25:#26231c;--ui-f4c5e0:#dfbd72;--ui-3b3048:#51462e;--ui-242530:#333129;--ui-403044:#51462e;--ui-e6a8ca:#dfbd72;color-scheme:dark;--ui-bg:radial-gradient(ellipse at 50% 40%,var(--ui-30313e),var(--ui-181923));--ui-surface:var(--panel);--ui-card:var(--ui-2d2e3b);--ui-soft:var(--ui-292936);--ui-ink:var(--ink);--ui-muted:var(--muted);--ui-line:var(--line);--ui-accent:var(--accent);--ui-highlight:var(--ui-493548);--ui-highlight-ink:var(--ui-f6d6e9);--ui-primary:linear-gradient(120deg,var(--accent),var(--accent2));--ui-primary-ink:#242031;--ui-button-active-shadow:none;}
:root[data-theme="dark-silver"]{--bg:#14171c;--panel:#222730;--ink:#f0f4fa;--muted:#aeb9c7;--accent:#c3d2e7;--accent2:#8f9db5;--ui-1e1f2a:#282b30;--ui-2c2535:#474e5a;--ui-f6d6e9:#c3d2e7;--ui-353642:#484b50;--ui-505061:#6e7277;--ui-363347:#494c52;--ui-191a23:#202328;--ui-292936:#373a3f;--ui-f1afd1:#c3d2e7;--ui-e9e5ed:#f0f4fa;--ui-3a2b3c:#474e5a;--ui-493548:#474e5a;--ui-181922:#1f2227;--ui-f6c5e1:#c3d2e7;--ui-bdb0ef:#8f9db5;--ui-30313e:#41454a;--ui-f3d6ec:#c3d2e7;--ui-d99dc6:#c3d2e7;--ui-72727c:#aeb9c7;--ui-1d1e28:#26292e;--ui-181923:#1f2227;--ui-1c1d27:#24282d;--ui-a89ae5:#8f9db5;--ui-14151d:#191c21;--ui-b98eae:#c3d2e7;--ui-464654:#5f6368;--ui-20212c:#2a2e33;--ui-2d2e3b:#3d4046;--ui-464650:#5d6166;--ui-444553:#5d6166;--ui-a8a4b1:#aeb9c7;--ui-292a36:#373a40;--ui-353542:#474b50;--ui-2a2b37:#393c41;--ui-1b1c25:#23262b;--ui-f4c5e0:#c3d2e7;--ui-3b3048:#474e5a;--ui-242530:#303338;--ui-403044:#474e5a;--ui-e6a8ca:#c3d2e7;color-scheme:dark;--ui-bg:radial-gradient(ellipse at 50% 40%,var(--ui-30313e),var(--ui-181923));--ui-surface:var(--panel);--ui-card:var(--ui-2d2e3b);--ui-soft:var(--ui-292936);--ui-ink:var(--ink);--ui-muted:var(--muted);--ui-line:var(--line);--ui-accent:var(--accent);--ui-highlight:var(--ui-493548);--ui-highlight-ink:var(--ui-f6d6e9);--ui-primary:linear-gradient(120deg,var(--accent),var(--accent2));--ui-primary-ink:#242031;--ui-button-active-shadow:none;}
:root[data-theme="dark-neon"]{--bg:#1b102b;--panel:#2b183b;--ink:#faeaff;--muted:#cdb0dc;--accent:#ff82cd;--accent2:#9776ff;--ui-1e1f2a:#2f243e;--ui-2c2535:#5c305d;--ui-f6d6e9:#ff82cd;--ui-353642:#4f435d;--ui-505061:#776982;--ui-363347:#51455e;--ui-191a23:#271c36;--ui-292936:#3e334d;--ui-f1afd1:#ff82cd;--ui-e9e5ed:#faeaff;--ui-3a2b3c:#5c305d;--ui-493548:#5c305d;--ui-181922:#261a35;--ui-f6c5e1:#ff82cd;--ui-bdb0ef:#9776ff;--ui-30313e:#493d57;--ui-f3d6ec:#ff82cd;--ui-d99dc6:#ff82cd;--ui-72727c:#cdb0dc;--ui-1d1e28:#2d223c;--ui-181923:#261b36;--ui-1c1d27:#2c203b;--ui-a89ae5:#9776ff;--ui-14151d:#20152f;--ui-b98eae:#ff82cd;--ui-464654:#675a73;--ui-20212c:#322641;--ui-2d2e3b:#453953;--ui-464650:#655972;--ui-444553:#655972;--ui-a8a4b1:#cdb0dc;--ui-292a36:#3f334d;--ui-353542:#4f435c;--ui-2a2b37:#40344e;--ui-1b1c25:#2a1f39;--ui-f4c5e0:#ff82cd;--ui-3b3048:#5c305d;--ui-242530:#372c46;--ui-403044:#5c305d;--ui-e6a8ca:#ff82cd;color-scheme:dark;--ui-bg:radial-gradient(ellipse at 50% 40%,var(--ui-30313e),var(--ui-181923));--ui-surface:var(--panel);--ui-card:var(--ui-2d2e3b);--ui-soft:var(--ui-292936);--ui-ink:var(--ink);--ui-muted:var(--muted);--ui-line:var(--line);--ui-accent:var(--accent);--ui-highlight:var(--ui-493548);--ui-highlight-ink:var(--ui-f6d6e9);--ui-primary:linear-gradient(120deg,var(--accent),var(--accent2));--ui-primary-ink:#242031;--ui-button-active-shadow:none;}

/* Signature Blue & Pink: one calm workspace card, with the brand gradient outside. */
:root[data-theme="blue"] {
 --ui-bg:linear-gradient(150deg,#75d7f2 0%,#a2c6ff 29%,#bfa8f8 60%,#f18bc9 100%);
 --bg:var(--ui-bg);--panel:#fff;--ui-surface:#fff;--ui-card:#fff;--ui-soft:#f4f1fb;
 --ui-1d1e28:#fff;--ui-20212c:#fff;--ui-191a23:#fff;--ui-1e1f2a:#fff;
 --ui-292a36:#f6f3fc;--ui-292936:#f6f3fc;--ui-30313e:#f6f3fc;
 --ui-2d2e3b:#fff;--ui-363347:#fff;--ui-242530:#fff;
 --ui-353642:#e2dbea;--ui-464654:#dcd3e8;--ui-444553:#ddd5e9;
 --ui-button-active-shadow:0 3px 10px #7054b52c;
 --ui-button-shadow:0 2px 6px #62518d0b;
}
:root[data-theme="blue"]:not(.install-gated) body {background:var(--ui-bg);background-attachment:scroll;}
:root[data-theme="blue"] header {background:transparent;border-bottom:0;}
:root[data-theme="blue"] header .brand strong {font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.35px;}
:root[data-theme="blue"] header .brand strong em {font-weight:400;}
:root[data-theme="blue"] :is(header .icon-btn,.row-tool,#sizePresetBtn,.paper-picker) {box-shadow:0 2px 7px #65538812;}
:root[data-theme="blue"] .workspace {background:transparent;}
:root[data-theme="blue"] .workspace-bar {background:#fffffff7;border-radius:14px 14px 0 0;border:1px solid #ffffffb8;border-bottom:1px solid #e8e1f1;}
:root[data-theme="blue"] .block-toolbar {background:#fffffff7;border:1px solid #ffffffb8;border-top:0;border-bottom:1px solid #e8e1f1;border-radius:0 0 14px 14px;}
:root[data-theme="blue"] .workspace-stage {background:#fff;border-radius:19px;border:1px solid #ffffffd9;box-shadow:0 4px 16px #634f9020;}
:root[data-theme="blue"] .workspace-stage .sheet-scroll {background:linear-gradient(155deg,#f9f8fc,#f2eff9);border-radius:14px 0 0 14px;}
:root[data-theme="blue"] .nail-inspector {background:#fff;border-left:1px solid #e8e1f1;}
:root[data-theme="blue"] .sheet-wrap {filter:none;box-shadow:0 3px 12px #443a6420;}
:root[data-theme="blue"] .focus-mode .sheet-wrap {box-shadow:none;}
:root[data-theme="blue"] :is(.sheet-mode,.independent-sheet,.focus-mode) .workspace-stage .sheet-scroll {border-radius:14px;background:linear-gradient(155deg,#faf9fd,#f3f0fa);}
:root[data-theme="blue"] .controls {background:#fffffff5;border:1px solid #ffffffc9;border-radius:18px;box-shadow:0 4px 16px #634f9016;}
:root[data-theme="blue"] .row-panel {background:#fff;border:1px solid #e5dcef;border-radius:12px;}
:root[data-theme="blue"] .row-tool {background:#fff;color:var(--ink);border-color:#ded6eb;}
:root[data-theme="blue"] .row-tool.active {background:var(--ui-highlight);color:var(--ui-highlight-ink);border-color:var(--accent);}
:root[data-theme="blue"] .thumb-rail {background:#e3dcee;border-color:#d0c5e0;}
:root[data-theme="blue"] #shapeSection .shape-adjustments .range-label {background:#f7f4fc;border-color:#e4dced;}
:root[data-theme="blue"] .brand-options button[aria-pressed=true]{background:var(--ui-highlight);}
:root[data-theme="blue"] .focus-mode .workspace-bar{border-radius:14px;margin-bottom:0;}
:root[data-theme="blue"] .focus-mode .controls{box-shadow:none;}
@media(max-width:760px){
 :root[data-theme="blue"] .workspace-bar,:root[data-theme="blue"] .block-toolbar {margin-inline:6px;}
 :root[data-theme="blue"] .workspace-stage {margin:8px 10px 0;}
 :root[data-theme="blue"] .controls {margin:10px 10px 12px;padding:12px 13px;}
 :root[data-theme="blue"] .row-panel {margin:6px 10px 0;}
 :root[data-theme="blue"] .focus-mode .workspace-bar {margin-top:6px;}
 :root[data-theme="blue"] .focus-mode .controls {margin-bottom:6px;}
}
@media(min-width:761px){
 :root[data-theme="blue"] main {gap:10px;padding:0 12px 12px;}
 :root[data-theme="blue"] .workspace-stage {margin-top:10px;}
 :root[data-theme="blue"] .row-panel {margin-top:8px;}
}
@media(max-width:350px){:root[data-theme="blue"] .workspace-bar,:root[data-theme="blue"] .block-toolbar{margin-inline:3px;} :root[data-theme="blue"] .workspace-stage{margin-inline:6px;}}
