:root{color-scheme:dark;--bg:#170d19;--panel:#271528;--border:#67415d;--text:#faedf5;--muted:#ba9eb0;--rose:#e580b0}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 90% 50% at 50% 0%,#472137,transparent 80%),linear-gradient(180deg,#1b101d,#120b16);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px}button,input{font:inherit}button{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:2px solid #f9b3d8;outline-offset:3px}.app{max-width:1120px;margin:auto;padding:15px clamp(10px,2vw,24px) 36px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0 19px}.brand{display:flex;gap:12px;align-items:center;white-space:nowrap;font-family:Georgia,'Times New Roman',serif;font-size:clamp(21px,3vw,31px);line-height:1.05}.brand em{font-style:normal;color:#ffe1ed}.brand small{display:block;font:600 9px/1.8 Arial,sans-serif;letter-spacing:.22em;color:#cf9ab6}.brandicon{display:grid;place-items:center;flex-shrink:0;width:49px;height:49px;font-size:34px;color:#ffe7f1;background:linear-gradient(135deg,#743752,#2a1930);border:1px solid #b7789a;border-radius:14px;text-shadow:0 0 10px #f4a3cf}.headeractions,.stage-actions,.tabs,.editor-heading-actions,.art-actions,.footer-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.headeractions{justify-content:flex-end}.primary,.quiet,.tab,.iconbtn,.edit-tab{color:var(--text);border-radius:12px;border:1px solid #815070;background:linear-gradient(160deg,#3e253b,#261829);padding:11px 13px;min-height:40px;font-weight:650;box-shadow:inset 0 1px #ffffff12,0 2px 5px #0002}.primary{background:linear-gradient(135deg,#e08aae,#b14f7d);border-color:#edaccb;color:#fff;box-shadow:inset 0 1px #ffffff3b,0 3px 8px #0e05103b}.primary:active,.quiet:active,.tab:active{transform:translateY(1px)}.iconbtn{width:42px;min-width:42px;padding:0;display:grid;place-items:center;font-size:21px}.panel{border:1px solid var(--border);border-radius:23px;background:linear-gradient(145deg,#321e33,#251625 52%,#261726);box-shadow:inset 0 1px #ffffff12,0 12px 38px #0803074a}.workspace{padding:12px}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}.tabs{padding:3px;border:1px solid #54354d;border-radius:13px;background:#1b101c;gap:3px}.tab{border-color:transparent;background:transparent;box-shadow:none;padding:8px 15px;min-height:35px}.tab.active,.edit-tab.active{background:linear-gradient(135deg,#bd5989,#823458);border-color:#d989af;box-shadow:inset 0 1px #ffffff42}.stage-actions .quiet{padding:7px 10px;min-height:35px}.stage-wrap{position:relative;overflow:hidden;border:1px solid #7c4d65;border-radius:19px;background:#e8d4d6}.stage-wrap canvas{width:100%;height:auto;display:block;aspect-ratio:1080/760;touch-action:none;cursor:grab}.canvas-note{position:absolute;left:10px;bottom:9px;border-radius:10px;padding:6px 9px;background:#211421ad;color:#fff7fb;font-size:11px;pointer-events:none}.nail-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin-top:11px}.nail-chip{min-width:0;display:flex;align-items:center;flex-direction:column;gap:3px;padding:4px 1px 5px;border-radius:10px;background:#372037;border:1px solid #68425d;color:#f6d9e9}.nail-chip.selected{border-color:#ffbbda;box-shadow:inset 0 0 0 1px #f3a5cf,0 0 8px #f49fd14f}.nail-chip canvas{width:100%;height:55px;max-width:55px}.nail-chip span{font-size:10px;font-weight:700}.editor{margin-top:12px;padding:16px}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.editor-heading h2{font:600 25px/1.2 Georgia,serif;margin:5px 0 12px}.small-eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;color:#d48dac}.soft{color:#a78a9a}.editor-heading-actions{justify-content:flex-end}.editor-heading-actions button{font-size:12px;padding:8px;min-height:34px}.editor-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:4px;border:1px solid #603b55;background:#1e121f;border-radius:13px}.edit-tab{min-height:39px;padding:8px;border-color:transparent;background:transparent;box-shadow:none;font-size:13px}.tab-panel{padding:16px 2px 3px}.hidden{display:none!important}.field-label{font-weight:800;margin-bottom:12px;color:#f5d3e4}.shapes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.shape-btn{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:8px 2px;border:1px solid #66425c;border-radius:12px;background:#29182b;color:#ead2e0}.shape-btn.selected{border:1px solid #ffb5d5;background:#63304e;box-shadow:inset 0 0 0 1px #e4a2c4}.shape-btn canvas{width:32px;height:48px}.shape-btn span{font-size:10px;overflow:hidden;text-overflow:ellipsis;max-width:100%}.slider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin-top:21px}.slide-field{min-width:0;display:block}.slide-field>span{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.slide-field output{color:#e9accb;font-weight:800;font-variant-numeric:tabular-nums}input[type=range]{width:100%;margin:0;accent-color:#e882b1;cursor:pointer;touch-action:pan-x;height:24px}.art-actions{margin-bottom:14px}.hint{font-size:12px;color:#cdb6c3;line-height:1.55}.danger{color:#f1a4be}.colors{display:flex;gap:9px;flex-wrap:wrap}.color-dot{height:36px;width:36px;min-height:0;padding:0;border-radius:50%;border:2px solid #695366}.color-dot.selected{outline:2px solid #fcb1d3;outline-offset:2px}.color-input{display:flex;align-items:center;gap:12px;margin:18px 0}.color-input input{width:54px;height:36px;padding:2px;background:transparent;border:1px solid #815070;border-radius:8px}footer{padding:18px 2px;text-align:center}footer small{display:block;margin-top:20px;font-size:12px;color:#ae91a1}.footer-actions{justify-content:center}.modal{position:fixed;inset:0;z-index:1000;background:#0e0613ba;display:flex;align-items:center;justify-content:center;padding:15px;overflow:auto}.dialog{background:linear-gradient(145deg,#352036,#211322);border:1px solid #99647f;border-radius:19px;padding:17px;width:min(510px,100%);max-height:min(85vh,850px);overflow-y:auto;box-shadow:0 15px 70px #0009}.dialog-h{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialog h3{margin:0 0 13px;font:600 24px Georgia,serif}.modal-section{margin:12px 0}.modal-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.modal input[type=text]{width:100%;border:1px solid #91617d;border-radius:9px;padding:11px;color:#fff;background:#1b0f1e;outline:none}.modal-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #724b65;border-radius:11px;padding:12px;margin:8px 0;background:#301a30}.modal-choice .small{font-size:11px;color:#bd9eae}.modal .quiet,.modal .primary{min-height:34px;padding:8px 12px}.modal p,.modal li{line-height:1.55;color:#d8c0ce}.bg-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.bg-option{height:85px;border-radius:12px;border:2px solid #79576b;display:flex;justify-content:center;align-items:end;padding:6px;color:#211421;font-weight:700;text-shadow:0 1px 1px #fff7}.bg-option.selected{border-color:#ffafe0;outline:2px solid #f6aacb}.checkgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:14px 0}.checkgrid label{padding:9px 4px;text-align:center;border-radius:9px;background:#3a243b;border:1px solid #67415c;display:grid;gap:5px;place-items:center}.checkgrid input{accent-color:#e580b0}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:1100;background:#f7e5ee;color:#2e1528;padding:11px 16px;border-radius:13px;box-shadow:0 5px 20px #0006;opacity:0;pointer-events:none;transition:opacity .2s;font-weight:700;text-align:center;max-width:90vw}#toast.shown{opacity:1}
@media(max-width:650px){.topbar{gap:8px}.brand{font-size:19px;gap:6px}.brandicon{width:36px;height:36px;border-radius:10px;font-size:26px}.brand small{font-size:7px;letter-spacing:.13em}.headeractions{gap:5px}.headeractions .iconbtn{width:34px;min-width:34px;height:36px;min-height:36px;font-size:17px}.header-save{font-size:11px;padding:9px;min-height:35px}.workspace{padding:8px}.tab{padding:6px 8px;font-size:12px}.workspace-top{margin-bottom:7px}.stage-actions .quiet{font-size:11px;padding:6px 7px;min-height:30px}.canvas-note{font-size:9px;max-width:85%}.nail-strip{gap:2px}.nail-chip{border-radius:6px}.nail-chip canvas{height:42px}.nail-chip span{font-size:9px}.editor{padding:12px}.editor-heading h2{font-size:21px}.editor-heading-actions button{font-size:11px}.edit-tab{font-size:11px;padding:7px 4px}.shapes{gap:4px}.shape-btn{border-radius:8px;padding:6px 1px}.shape-btn canvas{width:26px;height:40px}.shape-btn span{font-size:8px}.slider-grid{grid-template-columns:1fr;gap:12px;margin-top:17px}.slide-field>span{margin-bottom:4px}.bg-options{grid-template-columns:repeat(2,1fr)}}@media(max-width:365px){.brand{font-size:16px}.brandicon{width:31px;height:31px}.brand small{font-size:6px}.header-save{font-size:10px}.stage-actions{width:100%;justify-content:flex-end}.headeractions .iconbtn{width:30px;min-width:30px}.headeractions{gap:3px}.shapes{grid-template-columns:repeat(4,minmax(0,1fr))}.shape-btn span{font-size:10px}}

/* Keep instructions outside the artwork so no nail is obscured. */
.canvas-note{position:static;max-width:none!important;text-align:center;background:none;color:#412438;font-size:11px;border-radius:0;padding:7px 4px;pointer-events:none}

/* v1.1: canvas format, with the editor kept independent from the output geometry. */
.format-bar{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin:1px 1px 10px;color:#eacddd;font-weight:700}
.format-options{display:flex;flex-wrap:wrap;gap:5px;border:1px solid #68415f;background:#1b101c;border-radius:12px;padding:3px}
.format-option{border:1px solid transparent;border-radius:9px;background:transparent;color:#e9cadb;font-weight:700;padding:7px 10px;min-height:34px}
.format-option.active{background:#a14b77;border-color:#e2a7c6;color:white}
.shape-note{font-size:12px;line-height:1.5;color:#f2bdd7;margin:0 0 14px;padding:9px 11px;border-radius:10px;background:#48263d;border:1px solid #71435f}
.stage-wrap canvas{aspect-ratio:auto}
@media(max-width:650px){.format-bar{font-size:12px}.format-options{width:100%;display:grid;grid-template-columns:repeat(2,1fr)}.format-option{padding:7px 3px;font-size:11px}}

/* v1.2: mobile-friendly canvas + persistent live editing preview. */
.edit-jump{border-color:#cb78a2;color:#ffdce9}
.live-preview{display:none}
@media(max-width:650px){
  .stage-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:52svh}
  .stage-wrap[data-aspect="square"]{aspect-ratio:1 / 1}
  .stage-wrap[data-aspect="reels"]{aspect-ratio:1 / 1}
  .stage-wrap canvas{width:auto!important;height:auto!important;max-width:100%;max-height:calc(100% - 27px);object-fit:contain;flex-shrink:1}
  .stage-wrap .canvas-note{flex-shrink:0;font-size:10px}
  .editor{scroll-margin-top:4px}
  .live-preview{display:block;position:sticky;top:4px;z-index:30;margin:-5px -5px 11px;padding:8px;border-radius:14px;background:#291a2c;border:1px solid #b56b91;box-shadow:0 4px 13px #0e0913a6}
  .live-preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 6px;color:#f8bddb;font-size:10px;line-height:1.2}
  #liveNailLabel{color:#ecd7e6;font-weight:600;white-space:nowrap}
  .live-preview canvas{display:block;width:100%;max-height:135px;height:auto;border-radius:9px;border:1px solid #765068}
}

/* v1.4 — true transparent PNG lighting styles for the nail interior */
.finish-style-title{margin-top:18px;margin-bottom:10px}
.finish-styles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.finish-style-option{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;background:#2b1b2e;border:1px solid #704a67;border-radius:12px;color:#f2dce9;padding:6px 2px 8px;min-height:122px}
.finish-style-option.selected{background:#57304e;border-color:#ffbadc;box-shadow:inset 0 0 0 1px #ffa8d3,0 0 0 1px #a26788}
.finish-style-option canvas{width:100%;max-width:70px;height:92px;object-fit:contain}
.finish-style-option span{text-align:center;font-size:10px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.finish-style-help{margin-top:10px;margin-bottom:0}
@media(max-width:480px){.finish-styles{gap:5px}.finish-style-option{padding:6px 1px}.finish-style-option canvas{height:80px}.finish-style-option span{font-size:9px}}



/* v1.7 — stable layout with returned preview and more compact editor spacing. */
.live-preview{display:block;margin:0 0 14px;padding:10px;border-radius:16px;background:linear-gradient(145deg,#2f1d31,#241526);border:1px solid #8a5872;box-shadow:inset 0 1px #ffffff12,0 6px 16px #10091366}
.live-preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 8px;color:#f8bddb;font-size:11px;line-height:1.2}
#liveNailLabel{color:#ecd7e6;font-weight:600;white-space:nowrap}
.live-preview canvas{display:block;width:100%;height:auto;border-radius:11px;border:1px solid #765068;background:#f3e9ee}
.workspace-top{margin-bottom:8px}
.editor{padding:14px}
.editor-heading{margin-bottom:8px}
.editor-heading h2{margin:3px 0 8px}
.tab-panel{padding:12px 2px 2px}
.slider-grid{gap:14px 18px;margin-top:16px}
.slide-field>span{margin-bottom:6px}
.art-actions{margin-bottom:10px;gap:6px}
.editor-heading-actions{gap:6px}
.stage-actions{gap:6px}
.finish-style-title{margin-top:14px}
.finish-style-help{margin-top:8px}
@media(max-width:650px){
  .workspace{position:static;top:auto;z-index:auto;padding:8px}
  .stage-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:52svh}
  .stage-wrap[data-aspect="square"]{aspect-ratio:1 / 1}
  .stage-wrap[data-aspect="reels"]{aspect-ratio:1 / 1}
  .stage-wrap canvas{width:auto!important;height:auto!important;max-width:100%;max-height:calc(100% - 27px);object-fit:contain;flex-shrink:1}
  .stage-wrap .canvas-note{flex-shrink:0;font-size:10px}
  .editor{scroll-margin-top:4px;padding:11px}
  .live-preview{position:static;margin:0 0 12px;padding:8px;border-radius:14px}
  .live-preview-top{font-size:10px;margin-bottom:6px}
  .live-preview canvas{max-height:145px}
  .stage-actions .quiet,.editor-heading-actions button{font-size:11px;padding:6px 8px;min-height:31px}
  .slider-grid{grid-template-columns:1fr;gap:11px;margin-top:14px}
  .shape-note{margin-bottom:11px;padding:8px 10px}
  .field-label{margin-bottom:9px}
}
@media(max-width:365px){
  .live-preview-top{flex-wrap:wrap}
}


/* v1.8: never letterbox a 9:16 canvas into a 1:1 mobile stage.
   The full stage stays normal-flow and keeps its original width. */
@media(max-width:650px){
 .stage-wrap,.stage-wrap[data-aspect="square"],.stage-wrap[data-aspect="reels"]{
  display:block;aspect-ratio:auto;max-height:none;height:auto;overflow:hidden;
 }
 .stage-wrap canvas,.stage-wrap[data-aspect="reels"] canvas{
  display:block;width:100%!important;height:auto!important;
  max-width:none;max-height:none;object-fit:contain;flex-shrink:0;
 }
 .stage-wrap .canvas-note{display:block;position:static;padding:7px 4px}
 /* Sticky only inside the editor: no scroll listener, no resizing on scroll. */
 .editor .live-preview{
  position:sticky;top:4px;z-index:20;margin:0 0 12px;
  padding:7px 8px;border-radius:14px;
 }
 .editor .live-preview canvas{max-height:137px;object-fit:contain}
}


/* v1.9 — one compact, accessible toolbar that does not wrap on phones. */
.workspace-top{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:nowrap;gap:8px;margin:0 0 10px;
}
.workspace-top .tabs{
  display:flex;flex-wrap:nowrap;flex-shrink:0;
  min-width:0;gap:2px;padding:3px;border-radius:13px;
}
.workspace-top .tab{white-space:nowrap;min-width:0;padding:9px 14px;min-height:39px}
.stage-actions{display:flex;flex-wrap:nowrap;gap:5px;justify-content:flex-end;min-width:0}
.stage-actions .toolbar-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:43px;min-width:43px;height:43px;
  padding:8px 11px;border-radius:12px;white-space:nowrap;
  transition:background-color .16s,border-color .16s;
}
.toolbar-btn svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.toolbar-export{font-size:12px;font-weight:800;letter-spacing:.01em}
.toolbar-settings{border-color:#c47c9c!important;background:linear-gradient(145deg,#4a2843,#301b31)!important;color:#ffdcf0!important}
.toolbar-settings:focus-visible,.toolbar-settings:hover{border-color:#fac3df!important}
.format-bar{flex-wrap:nowrap;margin:0 1px 10px;gap:10px;font-size:13px}
.format-bar>span{white-space:nowrap;flex:0 0 auto}
.format-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 auto;max-width:360px;gap:3px}
.format-option{min-width:0;padding:8px 12px;white-space:nowrap}
@media(max-width:750px){
 .stage-actions .action-label{display:none}
 .stage-actions .toolbar-btn{min-width:37px;width:37px;height:38px;min-height:38px;padding:7px 4px}
 .stage-actions .toolbar-export{width:48px}
 .workspace-top .tab{padding:7px 10px;min-height:34px;font-size:12px}
 .workspace-top{gap:5px}
 .workspace-top .tabs{gap:0}
 .stage-actions{gap:4px}
 .format-options{max-width:none;width:auto}
}
@media(max-width:390px){
 .workspace{padding:8px}
 .workspace-top{gap:4px}
 .workspace-top .tabs{padding:2px;flex:1 1 auto}
 .workspace-top .tab{font-size:11px;padding:8px 6px;flex:1 1 auto;text-align:center}
 .stage-actions{width:auto;gap:3px;flex:0 0 auto}
 .stage-actions .toolbar-btn{width:34px;min-width:34px;height:36px;min-height:36px;border-radius:10px}
 .stage-actions .toolbar-export{width:44px}
 .stage-actions .toolbar-btn svg{height:17px;width:17px}
 .toolbar-export .png-label{font-size:10px}
 .format-bar{gap:6px;font-size:12px}
 .format-option{padding:7px 4px;font-size:11px}
}
@media(min-width:751px) and (max-width:1000px){
 .stage-actions .action-label{display:none}
 .stage-actions .toolbar-export{min-width:63px}
}


/* v1.9.1 — cleaner compact mobile toolbar + scroll-friendly stage */
.stage-wrap{overflow:hidden}
.stage-wrap canvas{touch-action:pan-y pinch-zoom;cursor:default}
.workspace-top{align-items:stretch;gap:6px}
.workspace-top .tabs{flex:1 1 auto;min-width:0}
.stage-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px;flex:0 0 auto}
.stage-actions .toolbar-btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;line-height:1;vertical-align:middle;overflow:hidden;
  min-width:40px;width:40px;min-height:40px;height:40px;
  padding:0;border-radius:11px;
}
.stage-actions .toolbar-btn svg{
  display:block;width:18px;height:18px;flex:0 0 18px;
  fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.stage-actions .toolbar-export{width:auto;min-width:64px;padding:0 12px;font-size:12px;font-weight:800}
.stage-actions .toolbar-export svg{margin-right:-1px}
.stage-actions .toolbar-settings{width:40px;min-width:40px}
.toolbar-btn .action-label,.toolbar-btn .png-label{display:inline-block;transform:translateY(.5px)}
@media(max-width:750px){
  .stage-actions .toolbar-btn{width:36px;min-width:36px;height:36px;min-height:36px;border-radius:10px}
  .stage-actions .toolbar-btn svg{width:16px;height:16px;flex-basis:16px}
  .stage-actions .toolbar-export{min-width:52px;padding:0 10px}
  .stage-actions .action-label{display:none}
  .toolbar-btn .png-label{font-size:11px}
}
@media(max-width:430px){
  .workspace-top{gap:5px}
  .workspace-top .tabs{flex:1 1 auto}
  .workspace-top .tab{flex:1 1 auto;text-align:center;padding:8px 8px;min-height:35px}
  .stage-actions{gap:3px}
  .stage-actions .toolbar-btn{width:34px;min-width:34px;height:34px;min-height:34px;border-radius:10px}
  .stage-actions .toolbar-export{min-width:48px;padding:0 8px}
  .stage-actions .toolbar-btn svg{width:15px;height:15px;flex-basis:15px}
  .format-bar{gap:6px}
}


/* v1.9.2 — tighter header, floppy save icon, cleaner gear */
.topbar{padding:4px 0 10px;gap:10px}
.brand{gap:10px;line-height:1}
.brand small{margin-top:3px;line-height:1.25}
.brandicon{width:43px;height:43px;border-radius:12px;font-size:30px}
.headeractions .iconbtn{width:40px;min-width:40px;height:40px;min-height:40px}
.workspace{padding-top:10px}
.toolbar-export{min-width:40px!important;width:40px!important;padding:0!important}
.toolbar-export .png-label{display:none!important}
.toolbar-export svg{margin-right:0!important}
.toolbar-settings svg{stroke-width:1.75}
@media(max-width:650px){
  .topbar{padding:2px 0 8px;gap:8px}
  .brand{gap:8px}
  .brandicon{width:32px;height:32px;border-radius:10px;font-size:22px}
  .brand small{margin-top:1px;line-height:1.15}
  .headeractions .iconbtn{width:34px;min-width:34px;height:34px;min-height:34px}
  .workspace{padding-top:8px}
}

/* Stage is for selection and vertical scrolling only; all artwork transforms live in settings. */
.stage-wrap canvas{touch-action:pan-y!important;cursor:default}


/* v2.0.2 — avoid showing an empty sample while the previous set and PNGs load. */
.app.is-loading{pointer-events:none}
.startup-loader{position:fixed;inset:0;z-index:900;display:grid;place-items:center;background:radial-gradient(ellipse 110% 70% at 50% 15%,#3c2137,#1a101c 85%);color:#f9e6f1;font-size:14px;font-weight:650}
.startup-loader.hidden{display:none}
.startup-card{display:flex;align-items:center;gap:13px;border:1px solid #8a5976;background:#311e31;padding:16px 22px;border-radius:15px;box-shadow:0 10px 35px #0b060e75}
.startup-spinner{width:19px;height:19px;border:2px solid #754660;border-top-color:#f6a9d2;border-radius:50%;animation:spin-loader .75s linear infinite}
@keyframes spin-loader{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.startup-spinner{animation:none;border-top-color:#f6a9d2}}

/* v2.0.6: one simple, accessible size-preset switch; everything else unchanged. */
.size-mode{margin-top:16px}
.size-mode .field-label{margin:0 0 8px}
.size-mode-options{display:grid;grid-template-columns:1fr 1fr;padding:3px;gap:4px;background:#1d111f;border:1px solid #65415c;border-radius:12px}
.size-mode-option{border:1px solid transparent;border-radius:9px;background:transparent;min-width:0;min-height:37px;padding:8px 6px;color:#edcddd;font-weight:700;line-height:1.2}
.size-mode-option.active{color:#fff;background:linear-gradient(135deg,#bd5989,#823458);border-color:#da98b7;box-shadow:inset 0 1px #ffffff36}
.size-mode-hint{margin:7px 1px 0;font-size:11px}
@media (max-width:390px){.size-mode-option{font-size:12px}}


/* v2.0.7 — matching square tools with one 24px outline icon system. */
.workspace-top{display:flex;align-items:center;gap:6px;justify-content:space-between;flex-wrap:nowrap}
.workspace-top .tabs{min-width:0;flex:1 1 auto}
.stage-actions{flex:0 0 auto;width:auto;display:flex;align-items:center;gap:5px;flex-wrap:nowrap}
.stage-actions .action-label{display:none!important}
.stage-actions .toolbar-btn,
.stage-actions .toolbar-export,
.stage-actions .toolbar-settings{
 width:40px!important;min-width:40px!important;max-width:40px!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 flex:0 0 40px!important;aspect-ratio:1;padding:0!important;
 display:grid!important;place-items:center!important;overflow:hidden;border-radius:11px;
}
.stage-actions .toolbar-btn svg{
 width:19px!important;height:19px!important;flex:0 0 19px!important;
 display:block;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;fill:none;
 margin:0!important;transform:none!important;
}
.stage-actions #languageBtn{font-size:inherit}
@media(max-width:750px){
 .stage-actions{gap:4px}
 .stage-actions .toolbar-btn,.stage-actions .toolbar-export,.stage-actions .toolbar-settings{
  width:35px!important;min-width:35px!important;max-width:35px!important;
  height:35px!important;min-height:35px!important;max-height:35px!important;flex-basis:35px!important;border-radius:10px
 }
 .stage-actions .toolbar-btn svg{width:18px!important;height:18px!important;flex-basis:18px!important}
 .workspace-top{gap:5px}
 .workspace-top .tab{padding:7px 5px;font-size:11px;min-height:35px}
}
@media(max-width:350px){
 .stage-actions{gap:3px}
 .stage-actions .toolbar-btn,.stage-actions .toolbar-export,.stage-actions .toolbar-settings{
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;flex-basis:32px!important;border-radius:9px
 }
 .stage-actions .toolbar-btn svg{width:17px!important;height:17px!important;flex-basis:17px!important}
 .workspace-top{gap:4px}
 .workspace-top .tabs{padding:2px}
 .workspace-top .tab{padding:6px 2px;font-size:10px;min-height:32px}
}


/* v2.0.9 — compact edit toolbar + 5×2 palette alongside custom color */
.editor-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:11px 2px 3px}
.editor-actions-row button{min-width:0;min-height:36px;padding:8px 9px;font-size:12px;font-weight:700;white-space:normal;text-align:center;line-height:1.25}
.nail-color-heading{margin-bottom:10px}
.color-chooser{display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,27%);align-items:stretch;gap:11px;margin:0 0 19px}
.color-chooser .colors{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:7px 4px;align-items:center;justify-items:center;min-width:0;align-content:center}
.color-chooser .color-dot{width:min(38px,100%);aspect-ratio:1;height:auto;min-height:0;max-width:38px;max-height:38px;border-radius:50%;border:2px solid #695366;padding:0;box-sizing:border-box}
.color-chooser .color-custom-block{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:7px;min-width:0;border:1px solid #6e4560;border-radius:13px;padding:7px 6px 6px;background:#301e31;color:#f4dce9}
.color-custom-block span{font-size:11px;line-height:1.16;font-weight:750;text-align:center}
.color-custom-block input[type=color]{width:100%;max-width:88px;height:44px;padding:2px;background:#271727;border:1px solid #90637e;border-radius:9px;cursor:pointer}
@media(max-width:480px){
 .color-chooser{grid-template-columns:minmax(0,1fr) 81px;gap:8px}
 .color-chooser .colors{gap:7px 3px}
 .color-chooser .color-dot{max-width:35px}
 .editor-actions-row button{font-size:11px;min-height:36px}
 .color-custom-block span{font-size:10px}
}
@media(min-width:700px){.color-chooser{max-width:550px;grid-template-columns:minmax(0,1fr) 125px}}

/* v2.0.16 compact footer */
footer{padding:14px 2px 8px}footer small{margin-top:16px}

/* v2.0.17: per-artwork white-background overlay toggle */
.art-overlay-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 13px;min-height:38px;margin:2px 0 5px;border-radius:11px;font-size:13px}
.art-overlay-toggle svg{height:19px;width:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.art-overlay-toggle svg path{fill:currentColor;fill-opacity:.14;stroke:none}
.art-overlay-toggle.active{background:linear-gradient(135deg,#b85a88,#833655);border-color:#f5afcf;box-shadow:inset 0 0 0 1px #f4aecf5c;color:#fff}
.art-overlay-toggle:disabled{opacity:.48;cursor:not-allowed}


/* v2.0.22 layered artwork */
.art-layer-block{margin:12px 0 10px}.art-layer-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.art-layer-title{margin:0}.art-layer-count{font-size:11px}.art-layer-strip{display:flex;gap:8px;overflow:auto;padding:2px 2px 6px;scrollbar-width:thin}.art-layer-chip{min-width:76px;max-width:76px;padding:8px 6px 7px;border-radius:12px;border:1px solid #66425c;background:#29182b;color:#ead2e0;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}.art-layer-chip.active{border-color:#ffb5d5;background:#63304e;box-shadow:inset 0 0 0 1px #e4a2c4}.art-layer-thumb{width:42px;height:42px;border-radius:10px;border:1px solid #866178;background:linear-gradient(135deg,#1b101c,#3b2441);background-size:cover;background-position:center;display:grid;place-items:center;overflow:hidden}.art-layer-thumb.empty{background:linear-gradient(135deg,#2b172c,#221320)}.art-layer-thumb.empty::before{content:'+';font-size:20px;color:#e7b0cb;font-weight:700}.art-layer-chip span{font-size:10px;font-weight:700;line-height:1.2}.art-layer-chip small{font-size:9px;color:#d6b8c8;line-height:1.1}.art-layer-chip .mode-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#130c15c4;border:1px solid #a77995;color:#ffe8f2;font-size:9px;font-weight:800}.art-layer-chip.active .mode-badge{background:#ffe1ef;color:#6c274a;border-color:#ffd0e7}.art-layer-chip:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:650px){.art-layer-chip{min-width:72px;max-width:72px;padding:7px 5px}.art-layer-thumb{width:38px;height:38px}.art-layer-chip span{font-size:9px}}

/* v2.0.23: compact nail direction and selected-layer controls */
.nail-direction-bar{display:flex;justify-content:flex-end;margin:-3px 1px 9px}
.nail-direction-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;min-height:36px;border-radius:12px;font-size:12px;font-weight:700;border:1px solid #754c69}
.nail-direction-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9}
.nail-direction-toggle.active{background:#60344e;border-color:#df93b6;color:#fff0f8}
.nail-direction-state{font-size:11px;font-weight:600;opacity:.82;border-left:1px solid #9e7791;padding-left:8px}
.art-upload-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.art-upload-row>.primary{flex:1 1 auto}
.art-upload-row>.hint{flex:none;font-size:11px;font-weight:700;margin:0}
.layer-edit-bar{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:7px 0 5px}
.layer-edit-action{display:flex;align-items:center;justify-content:center;gap:5px;min-height:37px;padding:6px 5px!important;font-size:12px;font-weight:700;border-radius:11px}
.layer-edit-action .layer-action-symbol{font-size:18px;line-height:1;font-weight:600}
.layer-edit-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.layer-edit-action:disabled{opacity:.35;cursor:default}
.art-layer-count{white-space:nowrap;max-width:72%;overflow:hidden;text-overflow:ellipsis;text-align:right}
@media(max-width:410px){.nail-direction-toggle{font-size:11px;padding:6px 9px}.layer-edit-action{font-size:11px}}


/* v2.0.24: one compact format + direction row, mobile-first */
.format-bar{display:flex;flex-wrap:nowrap;align-items:center;gap:7px;margin:0 1px 10px}
.format-bar>span{flex:none;white-space:nowrap}
.format-bar .format-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;align-items:center;gap:3px;flex:1 1 auto;max-width:400px;width:auto;min-width:0;padding:3px}
.format-bar .format-option{min-width:0;min-height:37px;font-size:12px;padding:7px 4px}
.format-bar .nail-direction-toggle{width:40px;height:37px;min-height:37px;display:flex;align-items:center;justify-content:center;gap:0;padding:0;border-radius:9px;box-shadow:none}
.format-bar .nail-direction-toggle svg{width:20px;height:20px;display:block;flex:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.format-bar .nail-direction-toggle.active{background:linear-gradient(135deg,#b65c89,#813654);border-color:#d989af;color:#fff}
@media(max-width:420px){
 .format-bar{gap:6px;font-size:11px}
 .format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;max-width:none}
 .format-bar .format-option{font-size:11px;min-height:35px;padding:6px 3px}
 .format-bar .nail-direction-toggle{width:38px;height:35px;min-height:35px}
}

/* v2.0.25: all selected-layer actions in one compact row */
#artPanel .layer-edit-bar{
  display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,.88fr) minmax(0,1.06fr) minmax(0,1.02fr) minmax(0,1.13fr);
  align-items:stretch;gap:5px;margin:8px 0 12px;width:100%;min-width:0;
}
#artPanel .layer-edit-bar > button{margin:0;min-width:0;width:100%;height:39px;min-height:39px;padding:5px 3px!important;border-radius:10px;white-space:nowrap;font-size:11px;line-height:1;gap:3px;box-sizing:border-box}
#artPanel .layer-edit-bar .layer-action-symbol{font-size:15px}
#artPanel .layer-edit-bar svg{width:15px;height:15px;flex:0 0 15px}
#artPanel .layer-edit-bar .art-overlay-toggle{display:flex;align-items:center;justify-content:center;gap:3px}
#artPanel .layer-edit-bar .art-overlay-toggle svg{width:17px;height:17px;flex-basis:17px}
@media(max-width:370px){
 #artPanel .layer-edit-bar{gap:3px;grid-template-columns:minmax(0,.88fr) minmax(0,.88fr) minmax(0,1.06fr) minmax(0,1.02fr) minmax(0,1.13fr)}
 #artPanel .layer-edit-bar > button{font-size:10px;gap:2px;padding:4px 2px!important}
 #artPanel .layer-edit-bar svg{width:13px;height:13px;flex-basis:13px}
}
/* Use the whole preview rather than fitting an already-letterboxed bitmap. */
.editor .live-preview canvas{max-height:none;object-fit:fill}
@media(max-width:650px){.editor .live-preview canvas{max-height:none;height:auto;object-fit:fill}}


/* v2.0.27 — Scroll safely over sliders on touch devices, grab only the thumb. */
.range-touch-shell{display:block;position:relative;width:100%;height:26px;min-width:0}
.range-touch-shell input[type="range"]{display:block;width:100%;height:26px;margin:0}
.range-touch-knob{display:none;position:absolute;top:50%;width:38px;height:42px;transform:translate(-50%,-50%);border-radius:50%;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;z-index:1}
.range-touch-knob:active{cursor:grabbing}
.range-touch-knob.range-thumb-disabled{pointer-events:none}
@media (pointer:coarse){
  .range-touch-shell input[type="range"]{pointer-events:none;touch-action:pan-y}
  .range-touch-shell{touch-action:pan-y}
  .range-touch-knob{display:block}
  .slide-field{touch-action:pan-y}
}
/* Four compact controls: never allow translated text outside the buttons. */
#artPanel .layer-edit-bar > button{overflow:hidden;text-overflow:clip}
#artPanel .layer-edit-bar > button span[data-i18n]{display:block;overflow:hidden;text-overflow:clip;min-width:0;white-space:nowrap;font-size:inherit}
@media (max-width:410px){
 #artPanel .layer-edit-bar{grid-template-columns:minmax(0,.90fr) minmax(0,.90fr) minmax(0,1.03fr) minmax(0,1.27fr);gap:4px}
 #artPanel .layer-edit-bar > button{font-size:10px;padding:4px 2px!important;gap:2px}
 #artPanel .layer-edit-bar svg{width:12px;height:12px;flex-basis:12px}
}

/* v2.0.33: all ten tips move as a single rigid group. */
.format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px 38px;max-width:440px}
.format-bar .group-lock-toggle{width:38px;height:37px;padding:0;display:flex;align-items:center;justify-content:center}
.format-bar .group-lock-toggle svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}
.format-bar .group-lock-toggle .group-icon-unlocked{display:none}
.format-bar .group-lock-toggle.active{background:linear-gradient(135deg,#b65c89,#813654);border-color:#e2a7c6;color:#fff}
.format-bar .group-lock-toggle.active .group-icon-locked{display:none}
.format-bar .group-lock-toggle.active .group-icon-unlocked{display:block}
.group-tools{margin:-2px 1px 9px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #745069;border-radius:11px;color:#f1cfe1;background:#352139;font-size:11px;line-height:1.35}
.group-tools button{flex:0 0 auto;white-space:nowrap;padding:5px 8px;min-height:29px;color:#f7e4ee;border:1px solid #966480;border-radius:8px;background:#4d2b45;font-size:11px;font-weight:750}
.stage-wrap canvas.group-unlocked{touch-action:none!important;cursor:move}
@media(max-width:650px){
 .format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px 34px;gap:3px}
 .format-bar .group-lock-toggle{width:34px;height:35px;min-height:35px}
 .format-bar .nail-direction-toggle{width:34px;height:35px;min-height:35px}
 .format-bar .format-option{font-size:10.5px;padding:6px 2px}
 .group-tools{font-size:10px}
 .group-tools button{font-size:10px}
}


/* v2.0.34 · Five compact realistic cast-shadow options. */
.shadow-preset-picker{grid-column:1/-1;min-width:0;margin:1px 0 0}
.shadow-preset-picker>.field-label{margin:0 0 9px;font-size:13px;font-weight:750;color:#f2d9e6}
.outer-shadow-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.outer-shadow-option{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 2px 9px;background:#29192b;color:#f5dce9;border:1px solid #74506b;border-radius:12px;min-height:115px;cursor:pointer}
.outer-shadow-option.selected{background:#5b3151;border-color:#fbb5d7;box-shadow:inset 0 0 0 1px #ffb6d8}
.outer-shadow-option canvas{display:block;width:min(100%,72px);height:73px;object-fit:contain;border-radius:7px;background:#e9dbe2}
.outer-shadow-option span{font-size:10px;line-height:1.2;font-weight:750;overflow-wrap:anywhere;text-align:center}
@media(max-width:480px){.outer-shadow-presets{gap:4px}.outer-shadow-option{min-height:99px;padding:4px 1px 6px;border-radius:9px;gap:5px}.outer-shadow-option canvas{height:63px;width:min(100%,64px)}.outer-shadow-option span{font-size:9px}}


/* v2.0.36 — Nail Art Studio's five appearance themes.
 * UI chrome only; no background/image rendering changes and no nail data changes.
 * The graphite default intentionally keeps the existing Nail Set Designer style.
 */
:root {
 --nsd-bg:linear-gradient(155deg,#140f17 0%,#271521 50%,#170e17 100%);
 --nsd-surface:#241723;--nsd-card:#36212f;--nsd-soft:#301d2a;
 --nsd-ink:#f9e9f0;--nsd-muted:#d5abbf;--nsd-line:#805067;
 --nsd-accent:#f4a0c1;--nsd-highlight:#563046;--nsd-highlight-ink:#ffdfed;
 --nsd-primary:#ad5079;--nsd-primary-ink:#fff9fc;--nsd-light-border:#b7789a;
 --nsd-glint:inset 0 1px 0 #ffffff20;
}
:root[data-theme="light"] {
 color-scheme:light;--nsd-bg:#f9f8f6;--nsd-surface:#fff;--nsd-card:#fff;--nsd-soft:#f8f4f1;
 --nsd-ink:#22201f;--nsd-muted:#857b74;--nsd-line:#eae7e3;
 --nsd-accent:#765a4c;--nsd-highlight:#f2eae6;--nsd-highlight-ink:#60473b;
 --nsd-primary:#282522;--nsd-primary-ink:#fff;--nsd-light-border:#ccbbb0;--nsd-glint:none;
}
:root[data-theme="graphite"] {color-scheme:dark}
:root[data-theme="blush"] {
 color-scheme:light;--nsd-bg:linear-gradient(148deg,#a7d9fa 0%,#c5e5f6 30%,#e3ddf0 59%,#f5c2dc 100%);
 --nsd-surface:#ffffffd8;--nsd-card:#ffffffdc;--nsd-soft:#f3edf8e8;
 --nsd-ink:#3b405d;--nsd-muted:#72718e;--nsd-line:#d7cce6;
 --nsd-accent:#6b70a0;--nsd-highlight:#e9e2f4;--nsd-highlight-ink:#4c527f;
 --nsd-primary:#545d91;--nsd-primary-ink:#fff;--nsd-light-border:#bdb5d7;--nsd-glint:inset 0 1px 0 #ffffffb0;
}
:root[data-theme="gold"] {
 color-scheme:light;--nsd-bg:#e6cb8c;--nsd-surface:#fff4d9;--nsd-card:#fff6df;
 --nsd-soft:#f4e4bc;--nsd-ink:#392a18;--nsd-muted:#856d49;--nsd-line:#c5a767;
 --nsd-accent:#836122;--nsd-highlight:#edd6a6;--nsd-highlight-ink:#483115;
 --nsd-primary:linear-gradient(125deg,#9e7736 0%,#c69b4f 100%);--nsd-primary-ink:#fffaf0;--nsd-light-border:#c5a767;--nsd-glint:inset 0 1px 0 #ffffffb0;
}
:root[data-theme="silver"] {
 color-scheme:light;--nsd-bg:#d5dce5;--nsd-surface:#f1f5fa;--nsd-card:#f9fbfe;
 --nsd-soft:#e5e9f0;--nsd-ink:#273443;--nsd-muted:#677689;--nsd-line:#a9b5c3;
 --nsd-accent:#65778c;--nsd-highlight:#d8e1eb;--nsd-highlight-ink:#304255;
 --nsd-primary:linear-gradient(125deg,#607287 0%,#8fa1b4 100%);--nsd-primary-ink:#fff;--nsd-light-border:#a9b5c3;--nsd-glint:inset 0 1px 0 #ffffffdf;
}

/* Palette control is placed in the existing spacious heading, not the dense toolbar. */
.topbar {position:relative;min-width:0}
.topbar .brand {min-width:0}
.topbar .brand>span:last-child {min-width:0}
.topbar .brand .brandicon {flex-shrink:0}
#themeBtn {width:37px;min-width:37px;height:37px;min-height:37px;padding:0;display:grid;place-items:center;
  border:1px solid var(--nsd-line);background:var(--nsd-card);color:var(--nsd-accent);border-radius:11px;
  box-shadow:var(--nsd-glint)}
#themeBtn svg{width:21px;height:21px}
#themeBtn[aria-expanded="true"] {background:var(--nsd-highlight);color:var(--nsd-highlight-ink)}
.theme-popover {position:absolute;top:calc(100% + 1px);right:0;z-index:200;width:min(265px,calc(100vw - 26px));
  padding:10px;border:1px solid var(--nsd-line);border-radius:16px;background:var(--nsd-surface);
  color:var(--nsd-ink);box-shadow:0 15px 35px #0b061c50}
.theme-popover-title{padding:4px 8px 10px;color:var(--nsd-muted);font-size:11px;font-weight:800;letter-spacing:.025em}
.theme-option{display:flex;align-items:center;gap:11px;width:100%;padding:7px 8px;border:1px solid transparent;
  background:transparent;color:var(--nsd-ink);border-radius:10px;text-align:left;font-size:12px;font-weight:650;min-height:44px}
.theme-option:hover,.theme-option.active{background:var(--nsd-highlight);color:var(--nsd-highlight-ink)}
.theme-option.active{border-color:var(--nsd-line)}
.theme-swatch{flex:0 0 27px;width:27px;height:27px;border-radius:9px;border:1px solid #8f82915c}
[data-theme-choice="light"] .theme-swatch{background:linear-gradient(135deg,#fff,#ebe3dd)}
[data-theme-choice="graphite"] .theme-swatch{background:linear-gradient(135deg,#140f17,#45243a 56%,#b65d86)}
[data-theme-choice="blush"] .theme-swatch{background:linear-gradient(135deg,#a7d9fa,#e3ddf0,#f5c2dc)}
[data-theme-choice="gold"] .theme-swatch{background:linear-gradient(135deg,#be9141,#f9edc2 35%,#d7af63)}
[data-theme-choice="silver"] .theme-swatch{background:linear-gradient(135deg,#a8b7c7,#f9fcff 35%,#8fa1b4)}
.theme-option .theme-check{margin-left:auto;font-weight:800;visibility:hidden}
.theme-option.active .theme-check{visibility:visible}
@media(max-width:420px){.topbar .brand{font-size:clamp(18px,5vw,22px)}.topbar .brand small{font-size:8px;letter-spacing:.15em}
 #themeBtn{width:34px;min-width:34px;height:34px;min-height:34px}
 .topbar .brandicon{width:30px;height:30px;font-size:20px}}

/* Apply Studio palettes to all chrome but never paint over working/preview canvas. */
html[data-theme]:not([data-theme="graphite"]) body{background:var(--nsd-bg);color:var(--nsd-ink);--text:var(--nsd-ink);--muted:var(--nsd-muted);--border:var(--nsd-line);--rose:var(--nsd-accent)}
html[data-theme]:not([data-theme="graphite"]) .panel{background:var(--nsd-surface);border-color:var(--nsd-line);box-shadow:var(--nsd-glint),0 11px 34px #1a11151d}
html[data-theme]:not([data-theme="graphite"]) .brand em{color:var(--nsd-ink)}
html[data-theme]:not([data-theme="graphite"]) .brand small{color:var(--nsd-muted)}
html[data-theme]:not([data-theme="graphite"]) .brandicon{background:var(--nsd-highlight);border-color:var(--nsd-line);color:var(--nsd-accent);text-shadow:none}
html[data-theme]:not([data-theme="graphite"]) :is(.quiet,.tab,.edit-tab,.iconbtn,.toolbar-settings,.nail-chip,.shape-btn,.size-mode-option,.finish-style-option,.outer-shadow-option,.art-layer-chip,.layer-edit-action,.group-tools button){
  background:var(--nsd-card)!important;color:var(--nsd-ink)!important;border-color:var(--nsd-line)!important;box-shadow:var(--nsd-glint)}
html[data-theme]:not([data-theme="graphite"]) :is(.primary,.tab.active,.edit-tab.active,.format-option.active,.size-mode-option.active,.shape-btn.selected,.finish-style-option.selected,.outer-shadow-option.selected,.art-layer-chip.active,.nail-direction-toggle.active,.group-lock-toggle.active,.art-overlay-toggle.active,.toolbar-export){
  background:var(--nsd-primary)!important;color:var(--nsd-primary-ink)!important;border-color:var(--nsd-light-border)!important;box-shadow:var(--nsd-glint)}
html[data-theme]:not([data-theme="graphite"]) :is(.tabs,.editor-tabs,.format-options,.size-mode-options){background:var(--nsd-soft);border-color:var(--nsd-line)}
html[data-theme]:not([data-theme="graphite"]) :is(.format-option,.slide-field,.field-label,.live-preview-top,.live-preview-top span,.shadow-preset-picker>.field-label,.art-layer-title,.art-layer-head,.outer-shadow-option span){color:var(--nsd-ink)}
html[data-theme]:not([data-theme="graphite"]) :is(.hint,.soft,.small-eyebrow,.finish-style-help,.shape-note,footer small,.art-layer-chip small,.art-layer-count,.group-tools,.modal-choice .small){color:var(--nsd-muted)}
html[data-theme]:not([data-theme="graphite"]) .small-eyebrow{color:var(--nsd-accent)}
html[data-theme]:not([data-theme="graphite"]) .slide-field output{color:var(--nsd-accent)}
html[data-theme]:not([data-theme="graphite"]) input[type="range"]{accent-color:var(--nsd-accent)}
html[data-theme]:not([data-theme="graphite"]) :is(.live-preview,.dialog,.startup-card,.modal-choice,.group-tools,.shape-note,.color-custom-block,.color-chooser .color-custom-block){
 background:var(--nsd-card);color:var(--nsd-ink);border-color:var(--nsd-line);box-shadow:var(--nsd-glint)}
html[data-theme]:not([data-theme="graphite"]) :is(.modal p,.modal li,.modal-choice .small){color:var(--nsd-muted)}
html[data-theme]:not([data-theme="graphite"]) .modal input[type=text]{background:var(--nsd-soft);color:var(--nsd-ink);border-color:var(--nsd-line)}
html[data-theme]:not([data-theme="graphite"]) :is(.checkgrid label,.art-layer-thumb,.nail-chip,.bg-option,.color-custom-block input[type=color]){border-color:var(--nsd-line)}
html[data-theme]:not([data-theme="graphite"]) .checkgrid label{background:var(--nsd-soft)}
html[data-theme]:not([data-theme="graphite"]) .live-preview{box-shadow:0 5px 14px #24172818}
html[data-theme]:not([data-theme="graphite"]) .live-preview canvas{border-color:var(--nsd-line)}
html[data-theme]:not([data-theme="graphite"]) :is(.nail-chip.selected,.color-dot.selected,.bg-option.selected){border-color:var(--nsd-accent);outline-color:var(--nsd-accent)}
html[data-theme]:not([data-theme="graphite"]) .stage-wrap{border-color:var(--nsd-line)}
html[data-theme]:not([data-theme="graphite"]) .color-custom-block input[type=color]{background:var(--nsd-soft)}
html[data-theme]:not([data-theme="graphite"]) #toast{background:var(--nsd-highlight);color:var(--nsd-ink)}
html[data-theme]:not([data-theme="graphite"]) .startup-loader{background:var(--nsd-bg);color:var(--nsd-ink)}
html[data-theme]:not([data-theme="graphite"]) .startup-spinner{border-color:var(--nsd-line);border-top-color:var(--nsd-accent)}
/* Better contrast for muted text on light backgrounds, without changing slider behavior. */
html[data-theme="light"] .slide-field output,html[data-theme="gold"] .slide-field output{color:var(--nsd-highlight-ink)}
/* Theme accessibility: readable workspace labels in every light palette. */
html[data-theme]:not([data-theme="graphite"]) .format-bar>span,
html[data-theme]:not([data-theme="graphite"]) #liveNailLabel,
html[data-theme]:not([data-theme="graphite"]) .live-preview-top>span{color:var(--nsd-ink)}
html[data-theme]:not([data-theme="graphite"]) .format-option:not(.active){color:var(--nsd-ink)}
html[data-theme]:not([data-theme="graphite"]) .outer-shadow-option.selected span,
html[data-theme]:not([data-theme="graphite"]) .finish-style-option.selected span,
html[data-theme]:not([data-theme="graphite"]) .art-layer-chip.active span{color:var(--nsd-primary-ink)}
/* The original Blue & Pink palette has translucent cards; the floating chooser itself stays opaque. */
html[data-theme="blush"] .theme-popover{background:#fff}
/* Metallic backdrops match Nail Art Studio's static gold and silver surfaces. */
html[data-theme="gold"] .app{background:linear-gradient(130deg,#be9141 0%,#f9edc2 18%,#f5df9e 35%,#d7af63 69%,#f6e5b1 100%)}
html[data-theme="silver"] .app{background:linear-gradient(130deg,#a8b7c7 0%,#f9fcff 18%,#e8f0f7 35%,#bccbdb 69%,#f4f8ff 100%)}


/* v2.0.39: standalone-only editor, polished first-run PWA installation screen. */
.install-gate{position:fixed;inset:0;z-index:2000;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;justify-content:center;align-items:flex-start;background:radial-gradient(circle at 51% 0%,#ffffff 0%,#fbf7f3 43%,#f1e7e2 100%);color:#302321;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;padding:0 max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));-webkit-overflow-scrolling:touch}
.install-gate *{box-sizing:border-box}.install-gate [hidden]{display:none!important}
.install-shell{width:min(100%,520px);min-height:100%;display:flex;flex-direction:column;gap:0;padding-top:max(16px,env(safe-area-inset-top))}
.install-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 19px}
.install-brandline{display:flex;align-items:center;gap:8px;min-width:0}.install-brandline img{border-radius:11px;box-shadow:0 3px 12px #74564124}.install-brandline span{font-size:9px;font-weight:800;letter-spacing:.19em;color:#997b6b;white-space:nowrap}
.install-language{display:flex;align-items:center;gap:4px;color:#775548;border:1px solid #dcc8be;border-radius:999px;padding:5px 8px;background:#fff9f5;max-width:158px}.install-language select{border:0;background:none;color:inherit;font:600 11px system-ui,sans-serif;min-width:0;max-width:119px;outline:none}
.install-content{background:linear-gradient(180deg,#fffaf7 0%,#fffdfc 100%);border:1px solid #eaddd6;border-radius:27px;overflow:hidden;box-shadow:0 18px 60px #7451421c;display:flex;flex-direction:column;align-items:center;padding:0 17px 19px;text-align:center}
.install-art{height:clamp(155px,33svh,260px);width:calc(100% + 34px);position:relative;overflow:hidden;background:#e9d3c7}.install-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 41%}.install-art:after{content:"";position:absolute;inset:auto 0 0;height:39%;background:linear-gradient(0deg,#fffcfa 0%,#fffcfa00 100%)}.install-art-shine{position:absolute;right:16px;top:9px;font:54px Georgia,serif;color:#fff7dc;text-shadow:0 0 15px #ffd0a6}
.install-app-icon{width:76px;height:76px;position:relative;z-index:2;margin:-36px auto 5px;border-radius:20px;border:4px solid #fffcfa;box-shadow:0 8px 24px #86625140}
.install-text{width:100%}.install-overline{margin:2px 0 7px;color:#a17f6d;font-size:10px;font-weight:850;letter-spacing:.18em}
.install-text h1{font:normal clamp(30px,8vw,43px)/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.025em;color:#302523;margin:0}.install-text h1 em{font-weight:normal;font-style:italic;color:#98674f}
.install-tagline{font:400 clamp(14px,4vw,17px)/1.5 system-ui,sans-serif;max-width:325px;margin:11px auto 13px;color:#81695d}
.install-features{display:flex;flex-wrap:wrap;justify-content:center;column-gap:9px;row-gap:6px;margin:0 auto 18px;max-width:420px}
.install-features span{font-size:11px;line-height:1.3;font-weight:700;color:#8c6557;background:#f6efeb;border:1px solid #eee2da;padding:6px 9px;border-radius:999px}
.install-primary{width:100%;min-height:55px;border:1px solid #c59b8a;border-radius:16px;background:linear-gradient(125deg,#dcb6a8,#a77464);color:white;box-shadow:inset 0 1px #ffffff62,0 10px 19px #bd897652;display:flex;align-items:center;justify-content:center;gap:13px;padding:10px 16px;font-size:16px;font-weight:800;cursor:pointer}
.install-primary svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.install-arrow{font-size:22px;line-height:1}
.install-caption{font-size:12px;line-height:1.45;color:#987e74;margin:10px 0 0;max-width:345px}
.install-success{margin:12px 0 2px;font-size:12px;font-weight:750;color:#3f7b5b;background:#eaf5ec;padding:12px;border-radius:13px}
.install-info{width:100%;margin:14px 0 1px;text-align:left;padding:14px;border:1px solid #dec9bd;border-radius:14px;background:#f8f0eb}.install-help-title{font-weight:850;font-size:14px;color:#5f3d35}.install-info p{color:#735d54;line-height:1.55;font-size:13px;margin:7px 0 12px}.install-info button{padding:8px 15px;border:1px solid #c8ad9d;border-radius:9px;background:#fffaf7;color:#714c40;font-weight:750;cursor:pointer}
.install-footer{margin:16px auto 10px;text-align:center;font-size:11px;color:#a48a7c}.install-footer strong{color:#80685c}
@media(max-height:665px){.install-top{margin-bottom:9px}.install-art{height:155px}.install-app-icon{width:62px;height:62px;margin-top:-30px}.install-overline{margin-bottom:3px}.install-tagline{margin:7px auto}.install-features{margin-bottom:12px}.install-primary{min-height:47px}.install-footer{margin:8px auto 4px}}
@media(max-width:370px){.install-content{padding:0 12px 16px}.install-art{width:calc(100% + 24px)}.install-brandline span{font-size:7px;letter-spacing:.13em}.install-language{max-width:124px}.install-language select{max-width:85px;font-size:10px}.install-features span{font-size:10px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.install-gate{scroll-behavior:auto}}

/* v2.0.41: cleaner install-only landing screen. */
.install-content{padding-bottom:24px}
.install-tagline{margin-bottom:26px}
.install-primary{min-height:61px}
.install-info{border-color:#e8d8ce;background:linear-gradient(140deg,#fffaf7,#f8efea);box-shadow:0 7px 22px #73504312}
.install-primary:disabled{opacity:.72;cursor:wait}
@media(max-height:665px){.install-tagline{margin-bottom:18px}.install-primary{min-height:53px}}

/* v2.0.42: Disable browser-level pinch zoom while keeping ordinary page scrolling.
   The unlocked nail canvas retains its own touch-action:none for custom gestures. */
html,body{touch-action:pan-x pan-y}

/* v2.0.44: compact raised-ornament mode next to the existing layer actions. */
#artPanel .layer-edit-bar .raised-art-toggle{display:flex;align-items:center;justify-content:center;gap:3px}
#artPanel .layer-edit-bar .raised-art-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
#artPanel .layer-edit-bar .raised-art-toggle.active{background:var(--nsd-accent,#b5856f);color:#fff;border-color:var(--nsd-accent,#b5856f)}
@media(max-width:420px){#artPanel .layer-edit-bar>button{font-size:10px}#artPanel .layer-edit-bar .raised-art-toggle{gap:2px}}
@media(max-width:360px){#artPanel .layer-edit-bar .raised-art-toggle svg{width:12px;height:12px;flex-basis:12px}}

/* Keep all FIVE layer actions on exactly one row even under the older mobile overrides. */
@media(max-width:410px){
 #artPanel .layer-edit-bar{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 #artPanel .layer-edit-bar > button{font-size:9.4px;min-width:0;gap:2px}
 #artPanel .layer-edit-bar svg{width:12px;height:12px;flex-basis:12px}
}

/* v2.0.45: language moved beside palette; reset set occupies the old toolbar slot. */
.topbar .headeractions{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;flex-shrink:0}
#themeBtn,#languageBtn.theme-trigger{width:37px;min-width:37px;height:37px;min-height:37px;padding:0;display:grid;place-items:center;
 border:1px solid var(--nsd-line);background:var(--nsd-card);color:var(--nsd-accent);border-radius:11px;box-shadow:var(--nsd-glint)}
#languageBtn.theme-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#resetAllBtn svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reset-all-warning{margin:8px 0 12px}
.reset-all-saved{font-size:12px;opacity:.83;margin:0 0 16px}
.reset-all-actions{justify-content:flex-end;margin-top:15px}
@media(max-width:420px){
 #themeBtn,#languageBtn.theme-trigger{width:34px;min-width:34px;height:34px;min-height:34px}
 .topbar .headeractions{gap:4px}
}
@media(max-width:350px){
 .topbar .brand{font-size:15px;gap:5px}
 .topbar .brandicon{width:28px;height:28px;font-size:19px}
 .topbar .brand small{font-size:7px;letter-spacing:.11em}
 #themeBtn,#languageBtn.theme-trigger{width:31px;min-width:31px;height:31px;min-height:31px}
}

/* v2.0.46: Compact Etsy basket next to theme and language — matches the existing icon buttons. */
#shopBtn.shop-trigger{width:37px;min-width:37px;height:37px;min-height:37px;padding:0;display:grid;place-items:center;
 border:1px solid var(--nsd-line);background:var(--nsd-card);color:var(--nsd-accent);border-radius:11px;
 box-shadow:var(--nsd-glint);text-decoration:none;flex-shrink:0}
#shopBtn.shop-trigger svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
#shopBtn.shop-trigger:focus-visible{outline:2px solid var(--nsd-accent);outline-offset:2px}
@media(max-width:420px){
 .topbar .brand{font-size:clamp(15px,4.35vw,19px);gap:5px}
 .topbar .brandicon{width:29px;height:29px;flex-basis:29px;font-size:19px}
 .topbar .brand small{font-size:7px;letter-spacing:.095em}
 #shopBtn.shop-trigger{width:34px;min-width:34px;height:34px;min-height:34px}
 #shopBtn.shop-trigger svg{width:19px;height:19px}
}
@media(max-width:350px){
 .topbar .brand{font-size:14px;gap:4px}
 .topbar .brandicon{width:27px;height:27px;flex-basis:27px;font-size:18px}
 #shopBtn.shop-trigger{width:31px;min-width:31px;height:31px;min-height:31px}
 .topbar .headeractions{gap:3px}
}

/* v2.0.47: independent background transform beside the existing nail-group lock. */
.format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px 38px 38px;max-width:485px}
.format-bar .background-lock-toggle{width:38px;height:37px;padding:0;display:flex;align-items:center;justify-content:center}
.format-bar .background-lock-toggle svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.format-bar .background-lock-toggle.active{background:linear-gradient(135deg,#b65c89,#813654);border-color:#e2a7c6;color:#fff}
.stage-wrap canvas.background-unlocked{touch-action:none!important;cursor:move}
@media(max-width:650px){
 .format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px 34px 34px;gap:2px}
 .format-bar .background-lock-toggle{width:34px;height:35px;min-height:35px}
 .format-bar .format-option:not(.group-lock-toggle):not(.nail-direction-toggle){font-size:clamp(8px,2.4vw,10.5px);padding-left:1px;padding-right:1px}
}
@media(max-width:365px){.format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px 30px 30px;gap:2px}.format-bar .background-lock-toggle,.format-bar .group-lock-toggle,.format-bar .nail-direction-toggle{width:30px;height:34px;min-height:34px}}
html[data-theme]:not([data-theme="graphite"]) .background-lock-toggle.active{background:var(--nsd-primary);color:var(--nsd-primary-ink);border-color:var(--nsd-light-border)}

/* v2.0.48 – a single, full-width proportion slider for shape length. */
.slider-grid .shape-length-only{grid-column:1/-1}

/* v2.0.49: collapsible global nail tone correction, matching all five themes. */
.format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) repeat(4,38px);max-width:525px}
.format-bar .tone-toggle{width:38px;height:37px;min-height:37px;padding:0;display:flex;align-items:center;justify-content:center}
.format-bar .tone-toggle svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.format-bar .tone-toggle.active{background:linear-gradient(135deg,#b65c89,#813654);border-color:#e2a7c6;color:#fff}
.tone-panel{border:1px solid var(--nsd-line,var(--border));border-radius:13px;padding:12px 13px;margin:0 0 12px;background:var(--nsd-soft,var(--panel));color:var(--nsd-ink,var(--text));}
.tone-head{display:flex;align-items:baseline;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:13px}
.tone-head b{font-size:13px}.tone-head span{font-size:11px;color:var(--nsd-muted,var(--muted))}
.tone-sliders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.tone-slider{display:block;min-width:0;font-size:12px}
.tone-slider>span{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}
.tone-slider b{font-weight:700}.tone-slider output{font-weight:800;color:var(--nsd-accent,#936e60);font-variant-numeric:tabular-nums;white-space:nowrap}
.tone-slider input{width:100%;accent-color:var(--nsd-accent,#967063);touch-action:pan-y}
.tone-actions{display:flex;align-items:center;gap:9px;margin-top:12px;flex-wrap:wrap}
.tone-actions button{padding:7px 15px;min-height:34px;font-size:12px;border-radius:10px}
.tone-actions span{font-size:10px;color:var(--nsd-muted,var(--muted));flex:1 1 180px}
@media(max-width:540px){
 .format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) repeat(4,34px);gap:2px;max-width:none}
 .format-bar .tone-toggle{width:34px;height:35px;min-height:35px}
 .tone-sliders{grid-template-columns:minmax(0,1fr);gap:13px}
 .tone-slider>span{margin-bottom:5px}
}
@media(max-width:365px){
 .format-bar .format-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) repeat(4,28px);gap:2px}
 .format-bar .tone-toggle,.format-bar .background-lock-toggle,.format-bar .group-lock-toggle,.format-bar .nail-direction-toggle{width:28px;height:34px;min-height:34px}
 .format-bar .tone-toggle svg{width:17px;height:17px}
}

/* v2.0.54: compact local assets / Pinterest-style private boards. */
.nsd-asset-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:8px 0 12px}
.nsd-asset-btn{display:flex;gap:6px;align-items:center;justify-content:center;min-width:0;min-height:42px;padding:8px 7px;font-size:.83rem;line-height:1.2}
.nsd-asset-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.nsd-asset-btn span{overflow-wrap:anywhere}
.nsd-bg-actions{margin:8px 0 0}
.nsd-library-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0 14px}
.nsd-library-tabs button{padding:10px 5px;font-size:.82rem;min-width:0}
.nsd-library-tabs button.active{background:var(--ink,#322729);color:var(--surface,#fff);border-color:transparent}
.nsd-library-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.nsd-library-toolbar>button{padding:9px 12px;font-size:.82rem}
.nsd-library-toolbar .hint{font-size:.78rem}
.nsd-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 12px}
.nsd-asset-card,.nsd-board-card{min-width:0;border:1px solid var(--border,#e5dddd);border-radius:14px;padding:6px;background:var(--panel,#fff);overflow:hidden}
.nsd-asset-preview,.nsd-board-cover{display:block;position:relative;aspect-ratio:1/1;width:100%;overflow:hidden;border:0;border-radius:10px;background:#f1e5e9;padding:0;cursor:pointer}
.nsd-asset-preview img,.nsd-board-cover img{display:block;width:100%;height:100%;object-fit:cover}
.nsd-asset-name{font-size:.71rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;padding:6px 1px 4px}
.nsd-asset-tools{display:flex;flex-direction:column;gap:6px}
.nsd-asset-tool-icons{display:flex;gap:6px;align-items:center;justify-content:center}
.nsd-asset-tool-icons button{width:34px;min-width:0;height:32px;padding:3px 0;line-height:1;font-size:1rem;border-radius:8px}
.nsd-asset-tools .nsd-asset-apply{display:block;width:100%;min-width:0;min-height:35px;padding:8px 3px;font-size:.74rem;line-height:1.15;border-radius:9px;overflow-wrap:anywhere}
.nsd-board-title{font-size:.84rem;font-weight:700;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:7px 0 3px}
.nsd-board-count{font-size:.69rem;opacity:.65}
.nsd-board-tools{display:flex;gap:5px;margin-top:5px}
.nsd-board-tools button{flex:1;padding:6px 4px;font-size:.68rem;border-radius:8px}
.nsd-library-empty{text-align:center;padding:30px 10px;font-size:.88rem;color:var(--muted,#8e8588)}
.nsd-library-back{font-size:.81rem}
.nsd-library-note{font-size:.75rem;line-height:1.5;opacity:.7;margin:14px 0 2px}
.nsd-library-alert{color:#b34554;font-size:.79rem}
@media(max-width:370px){.nsd-library-grid{gap:5px}.nsd-asset-card,.nsd-board-card{padding:4px}.nsd-asset-tool-icons{gap:4px}.nsd-asset-tool-icons button{width:30px;height:30px;font-size:.95rem}.nsd-asset-tools .nsd-asset-apply{font-size:.68rem;padding:7px 2px}}
/* Respect all five installed themes, including Classic Light. */
.nsd-asset-card,.nsd-board-card{background:var(--nsd-card,var(--panel,#fff));color:var(--nsd-ink,var(--text,#34292d));border-color:var(--nsd-line,var(--border,#e5dddd))}
.nsd-library-tabs button.active{background:var(--nsd-primary,#9a6f72);color:var(--nsd-primary-ink,#fff);border-color:var(--nsd-light-border,transparent)}
.nsd-library-empty{color:var(--nsd-muted,var(--muted,#8e8588))}
