/* Looksets Studio */
.st-body{height:100%;overflow:hidden;background:#08080A}
html:has(.st-body){height:100%}
.st-app{display:grid;grid-template-columns:72px 320px minmax(0,1fr) 300px;grid-template-rows:60px minmax(0,1fr);height:100vh;height:100dvh;color:var(--text)}
.st-app:not(.panel-open){grid-template-columns:72px 0 minmax(0,1fr) 300px}
.st-top{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--bg)}
.st-logo span{font-size:15px;color:var(--muted)}
.st-title{flex:1;min-width:0;max-width:340px;height:36px;padding:0 10px;border-radius:9px;border:1px solid transparent;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:600}
.st-title:hover,.st-title:focus{border-color:var(--line-3);background:var(--surface);outline:none}
.st-tools{display:flex;gap:6px;margin-left:auto;align-items:center}
.st-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:10px;border:1px solid var(--line-3);background:var(--surface-2);color:var(--text);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;text-decoration:none}
.st-btn:hover{background:var(--surface-3)}
.st-btn.st-ghost{background:transparent}
.st-btn.st-accent{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.st-icon{width:36px;height:36px;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--text);font-size:17px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.st-icon:hover{background:var(--surface-2)}
.st-mini{min-width:28px;height:28px;padding:0 8px;border-radius:8px;border:1px solid var(--line-3);background:var(--surface-2);color:var(--text);cursor:pointer;font:inherit;font-size:13px}
.st-rail{grid-row:2;display:flex;flex-direction:column;gap:4px;padding:10px 8px;border-right:1px solid var(--line);background:var(--bg)}
.st-rail button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0;border-radius:12px;border:0;background:none;color:var(--muted);font:inherit;font-size:11px;cursor:pointer}
.st-rail button i{font-style:normal;font-size:20px;line-height:1}
.st-rail button:hover{color:var(--text);background:var(--surface)}
.st-rail button.on{color:var(--text);background:var(--surface-2)}
.st-panel,.st-props{grid-row:2;overflow-y:auto;overscroll-behavior:contain;background:var(--bg-2);scrollbar-width:thin}
.st-panel{border-right:1px solid var(--line);padding:16px 16px 40px}
.st-app:not(.panel-open) .st-panel{padding:0;overflow:hidden;border:0}
.st-props{border-left:1px solid var(--line);padding:16px 16px 40px}
.st-panel h3{font-size:16px;margin:0 0 12px;display:flex;align-items:baseline;gap:8px}
.st-panel h3 small{font-size:12px;color:var(--muted);font-weight:500}
.st-panel h4,.st-props h4{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:22px 0 10px}
.st-main{grid-row:2;display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(90% 80% at 50% 40%,#15151B 0%,#0A0A0D 70%)}
.st-devices{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;padding:10px 12px 0}
.st-devices button{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:99px;border:1px solid transparent;background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.st-devices button[aria-pressed=true]{background:var(--surface-2);border-color:var(--line-3);color:var(--text)}
.st-dv{display:inline-block;border:1.6px solid currentColor;border-radius:3px}
.st-dv-phone{width:8px;height:15px}.st-dv-desktop{width:17px;height:11px}.st-dv-ultrawide{width:22px;height:9px}.st-dv-tablet{width:15px;height:11px}.st-dv-square{width:12px;height:12px}
.st-only{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);margin-left:10px;cursor:pointer}
.st-only input{accent-color:var(--accent)}
.st-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;touch-action:none;user-select:none}
.st-frame{position:relative;box-shadow:0 40px 100px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.08);background:#000;overflow:hidden}
.st-frame.phone{border-radius:28px}.st-frame.tablet{border-radius:16px}.st-frame.desktop,.st-frame.ultrawide,.st-frame.square{border-radius:8px}
.st-frame canvas{display:block}
.st-sel{position:absolute;left:0;top:0;border:1.5px solid var(--accent);border-radius:6px;pointer-events:none;box-shadow:0 0 0 9999px rgba(0,0,0,0);transform-origin:0 0}
.st-sel i,.st-sel b{position:absolute;pointer-events:auto;width:14px;height:14px;border-radius:99px;background:var(--accent);border:2px solid #0A0A0C;cursor:grab}
.st-sel i{left:50%;top:-26px;margin-left:-7px;cursor:alias}
.st-sel i::after{content:"";position:absolute;left:4px;top:12px;width:2px;height:12px;background:var(--accent)}
.st-sel b{right:-8px;bottom:-8px;cursor:nwse-resize}
.st-sel{transform-origin:center}
.st-guide{position:absolute;background:#FF3EA5;pointer-events:none}
.st-guide.v{left:50%;top:0;bottom:0;width:1px}.st-guide.h{top:50%;left:0;right:0;height:1px}
.st-timeline{display:flex;align-items:center;gap:10px;padding:8px 18px 14px}
.st-timeline input{flex:1;accent-color:var(--accent)}
/* fields */
.st-f{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:12.5px;color:var(--text-2)}
.st-f>span:first-child{font-weight:500}
.st-f select,.st-f input[type=text],.st-f input[type=number],.st-f textarea{width:100%;min-height:36px;padding:7px 10px;border-radius:9px;border:1px solid var(--line-3);background:var(--surface);color:var(--text);font:inherit;font-size:13.5px}
.st-f textarea{resize:vertical;min-height:56px}
.st-f select:focus,.st-f input:focus,.st-f textarea:focus{outline:none;border-color:var(--accent)}
.st-inline{flex-direction:row;align-items:center;justify-content:space-between}
.st-chk input{width:18px;height:18px;accent-color:var(--accent)}
.st-f input[type=color]{width:44px;height:30px;padding:0;border:1px solid var(--line-3);border-radius:8px;background:none;cursor:pointer}
.st-rng{display:flex;align-items:center;gap:10px}
.st-rng input{flex:1;accent-color:var(--accent);min-width:0}
.st-rng output{min-width:38px;text-align:right;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.st-colors{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.st-colors input{width:36px;height:30px;padding:0;border:1px solid var(--line-3);border-radius:8px;background:none;cursor:pointer}
.st-grad{display:flex;gap:6px;align-items:center;margin-top:6px}
.st-grad input[type=color]{width:36px;height:28px;padding:0;border:1px solid var(--line-3);border-radius:8px;background:none}
.st-grad input[type=range]{flex:1;accent-color:var(--accent)}
.st-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.st-ph{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.st-ph div{display:flex;gap:6px}
.st-empty{color:var(--muted);font-size:13.5px;line-height:1.5}
.st-empty b{color:var(--text);font-size:15px}
.st-hint{font-size:12.5px;color:var(--muted);line-height:1.5}
.st-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.st-chips .chip{height:30px;font-size:12px;padding:0 11px;cursor:pointer;gap:6px}
.st-chips .chip.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.st-chips .chip i{width:12px;height:12px;border-radius:99px;display:inline-block}
.st-tf{max-height:96px;overflow-y:auto}
.st-themes{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.st-theme{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.st-theme canvas{width:100%;aspect-ratio:108/196;height:auto;border-radius:12px;background:#111;box-shadow:0 0 0 1px rgba(255,255,255,.06);transition:transform .2s}
.st-theme:hover canvas{transform:translateY(-2px);box-shadow:0 0 0 2px var(--accent)}
.st-theme span{font-size:12.5px;font-weight:600;display:flex;flex-direction:column}
.st-theme small{font-weight:400;color:var(--muted)}
.st-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.st-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);color:var(--text-2);font:inherit;font-size:11.5px;cursor:pointer;text-align:center}
.st-tile:hover{border-color:var(--accent);color:var(--text)}
.st-tile i{font-style:normal;font-size:18px;color:var(--text);height:24px;display:flex;align-items:center}
.st-fx{width:34px;height:22px;border-radius:6px;background:linear-gradient(135deg,#1d2140,#3a2a6a)}
.st-fx-snow,.st-fx-stars,.st-fx-dust{background:radial-gradient(circle at 30% 40%,#fff 1px,transparent 2px),radial-gradient(circle at 70% 60%,#fff 1.5px,transparent 2.5px),#1c2238}
.st-fx-aurora{background:linear-gradient(180deg,#0b1030,#2fd59e 60%,#0b1030)}
.st-fx-fireflies,.st-fx-bokeh{background:radial-gradient(circle at 40% 50%,#ffe58a 2px,transparent 6px),radial-gradient(circle at 70% 30%,#ff8fb1 3px,transparent 8px),#1a1426}
.st-fx-waves{background:linear-gradient(180deg,#5aa9ff 55%,#1e3a8a 55%)}
.st-fx-grid{background:repeating-linear-gradient(90deg,#ff3ea5 0 1px,transparent 1px 6px),#2a0845}
.st-fx-matrix{background:repeating-linear-gradient(90deg,#3bff6e 0 1px,transparent 1px 5px),#020803}
.st-fx-confetti,.st-fx-petals,.st-fx-leaves,.st-fx-hearts{background:radial-gradient(circle at 30% 40%,#ff5d8f 2px,transparent 3px),radial-gradient(circle at 70% 60%,#ffd24f 2px,transparent 3px),#2a1a2e}
.st-layers{display:flex;flex-direction:column;gap:4px}
.st-layer{display:flex;align-items:center;gap:6px;padding:7px 8px;border-radius:10px;border:1px solid transparent;cursor:pointer;font-size:13px}
.st-layer:hover{background:var(--surface)}
.st-layer.on{background:var(--surface-2);border-color:var(--line-3)}
.st-layer.off{opacity:.5}
.st-li{width:24px;height:24px;border-radius:7px;background:var(--surface-3);display:flex;align-items:center;justify-content:center;font-size:12px;flex:none}
.st-ln{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-layer button{width:24px;height:24px;border-radius:6px;border:0;background:none;color:var(--muted);cursor:pointer;font-size:12px;flex:none}
.st-layer button:hover{background:var(--surface-3);color:var(--text)}
/* dialogs */
.st-dialog{border:1px solid var(--line-3);border-radius:20px;background:var(--surface);color:var(--text);padding:0;max-width:min(680px,94vw);width:100%;box-shadow:0 40px 120px rgba(0,0,0,.7)}
.st-dialog::backdrop{background:rgba(0,0,0,.6);backdrop-filter:blur(4px)}
.st-dlg{padding:20px 22px 22px}
.st-dh{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.st-dh h2{margin:0;font-size:20px}
.st-exgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:6px 0 14px}
.st-ex{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;padding:14px;border-radius:14px;border:1px solid var(--line-3);background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer}
.st-ex:hover:not(:disabled){border-color:var(--accent)}
.st-ex:disabled{opacity:.45;cursor:not-allowed}
.st-ex b{font-size:14px}
.st-ex span{font-size:12px;color:var(--muted);line-height:1.4}
.st-ex.st-pub{border-color:rgba(212,255,79,.4)}
.st-exopts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:4px 16px}
.st-prog{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text-2)}
.st-prog>div{flex:1;height:6px;border-radius:99px;background:var(--surface-3);overflow:hidden}
.st-prog i{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}
.st-mine{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;max-height:60vh;overflow-y:auto}
.st-proj{position:relative}
.st-proj>button:first-child{display:flex;flex-direction:column;gap:4px;width:100%;padding:0;border:0;background:none;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.st-proj img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:#111}
.st-proj b{font-size:13px}.st-proj small{font-size:11.5px;color:var(--muted)}
.st-proj .st-mini{position:absolute;top:6px;right:6px}
.st-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);padding:10px 16px;border-radius:12px;background:var(--surface-3);border:1px solid var(--line-3);color:var(--text);font-size:13.5px;z-index:60;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.st-toast.bad{border-color:rgba(255,100,100,.4);color:#FFB4B4}
/* small screens: canvas on top, panels as a bottom sheet */
@media (max-width:1180px){
  .st-app,.st-app:not(.panel-open){grid-template-columns:64px 290px minmax(0,1fr) 0}
  .st-app:not(.panel-open){grid-template-columns:64px 0 minmax(0,1fr) 0}
  .st-props{position:fixed;right:12px;bottom:72px;width:300px;max-height:55vh;border:1px solid var(--line-3);border-radius:16px;z-index:20;box-shadow:0 30px 80px rgba(0,0,0,.6)}
  .st-props:has(.st-empty){display:none}
}
@media (max-width:900px){
  .st-app,.st-app:not(.panel-open){grid-template-columns:minmax(0,1fr);grid-template-rows:56px minmax(0,1fr) auto 64px}
  .st-top{grid-row:1}.st-main{grid-row:2}
  .st-panel{grid-row:3;max-height:42vh;border:0;border-top:1px solid var(--line)}
  .st-app:not(.panel-open) .st-panel{display:none}
  .st-rail{grid-row:4;flex-direction:row;justify-content:space-around;border:0;border-top:1px solid var(--line);padding:6px}
  .st-rail button{flex:1;padding:6px 0}
  .st-props{left:8px;right:8px;width:auto;bottom:72px;max-height:45vh}
  .st-hide-sm{display:none}
  .st-title{max-width:none}
  .st-themes{grid-template-columns:repeat(3,1fr)}
  .st-tiles{grid-template-columns:repeat(4,1fr)}
  .st-only{margin-left:0}
}
@media (max-width:520px){.st-logo span{display:none}.st-top{gap:6px;padding:0 8px}.st-tools{gap:2px}.st-tools .st-btn{padding:0 10px}.st-title{font-size:13px}}
.st-welcome{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:60;width:min(520px,calc(100vw - 32px));padding:18px 20px;border-radius:18px;background:#141418;border:1px solid rgba(212,255,79,.35);box-shadow:0 30px 80px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:10px;color:#F4F3F0}
.st-welcome b{font-size:16px}
.st-welcome ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:13.5px;color:#C9C8CE}
.st-welcome li{display:flex;gap:10px;align-items:flex-start}
.st-welcome li span{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#D4FF4F;color:#0A0A0C;font-weight:700;font-size:12px}
.st-welcome em{font-style:normal;color:#F4F3F0;font-weight:600}
.st-welcome .st-btn{align-self:flex-end}
.st-welcome li{display:block;position:relative;padding-left:32px;line-height:1.5}
.st-welcome li span{position:absolute;left:0;top:0}
