/* Shipframe editor — dark, layered, calm. */
:root {
  --bg: #09090b;
  --dot: rgba(255, 255, 255, 0.075);
  --s1: #121215;           /* dock */
  --s2: #18181c;           /* raised */
  --s3: #202026;           /* raised more */
  --s4: #2a2a31;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --ink: #f4f4f6;
  --muted: #a1a1aa;
  --faint: #6b6b74;
  --acc: #5b78ff;
  --acc2: #8b5cf6;
  --accGlow: rgba(91, 120, 255, 0.35);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --raise: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px -10px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
svg.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ───── top bar ───── */
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 14px 0 18px; flex: none; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; }
.logo svg { width: 26px; height: 26px; }
.cap { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--s1); box-shadow: var(--raise); border: 1px solid var(--line); }
.tb-mid, .tb-right { display: flex; align-items: center; gap: 10px; }
.ib { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; transition: background 0.2s, color 0.2s, transform 0.25s var(--spring); }
.ib:hover { background: var(--s3); color: var(--ink); }
.ib:active { transform: scale(0.9); }
.ib:disabled { opacity: 0.3; cursor: default; background: transparent; transform: none; }
.ib.danger:hover { color: #ff6b81; background: rgba(255, 80, 110, 0.1); }
.sizepick { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 13px; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.sizepick:hover { background: var(--s3); color: var(--ink); }
.sizepick b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.sizepick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip-plan { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--s2); color: var(--muted); border: 1px solid var(--line); letter-spacing: 0.02em; }
.chip-plan.pro { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; border-color: transparent; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s3); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--hi), 0 4px 14px -6px rgba(0, 0, 0, 0.6); transition: transform 0.25s var(--spring), box-shadow 0.25s, background 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-1px); background: var(--s4); border-color: rgba(255, 255, 255, 0.18); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn.white { background: linear-gradient(#fff, #e9e9ee); color: #0b0b0e; border-color: transparent; box-shadow: inset 0 1px 0 #fff, 0 6px 18px -6px rgba(255, 255, 255, 0.25); }
.btn.white:hover { box-shadow: inset 0 1px 0 #fff, 0 10px 26px -8px rgba(255, 255, 255, 0.35); }
.btn.glow { background: linear-gradient(135deg, var(--acc), var(--acc2)); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px var(--accGlow); }
.btn.glow:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 30px -8px rgba(110, 120, 255, 0.6); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--s3); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ───── layout ───── */
.main { flex: 1; display: flex; min-height: 0; padding: 0 12px 12px; gap: 12px; }
.dock { display: flex; flex: none; border-radius: 22px; background: var(--s1); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.rail { width: 78px; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 12px 9px; border-right: 1px solid var(--line); }
.rail button { position: relative; border: 0; background: transparent; color: var(--faint); font-size: 10.5px; font-weight: 600; padding: 11px 2px 9px; border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: color 0.2s, background 0.25s, transform 0.3s var(--spring); }
.rail button svg.ic { width: 21px; height: 21px; transition: transform 0.35s var(--spring); }
.rail button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.rail button:hover svg.ic { transform: translateY(-1px) scale(1.08); }
.rail button:active { transform: scale(0.94); }
.rail button.on { color: var(--ink); background: linear-gradient(180deg, var(--s3), var(--s2)); box-shadow: var(--raise); }
.rail button.on::before { content: ""; position: absolute; inset: 0; border-radius: 14px; padding: 1px; background: linear-gradient(160deg, rgba(139, 160, 255, 0.7), rgba(139, 92, 246, 0.1) 45%, rgba(255, 255, 255, 0.04)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.rail button.on svg.ic { color: #c7d0ff; filter: drop-shadow(0 0 8px rgba(120, 140, 255, 0.55)); }
.panel { width: 316px; flex: none; overflow-y: auto; padding: 18px 16px 24px; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.panel > * { animation: rise 0.42s var(--ease) both; }
.panel > *:nth-child(2) { animation-delay: 0.03s; } .panel > *:nth-child(3) { animation-delay: 0.06s; } .panel > *:nth-child(4) { animation-delay: 0.09s; } .panel > *:nth-child(n+5) { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage { flex: 1; overflow: auto; display: flex; flex-direction: column; min-width: 0; position: relative; border-radius: 22px; background-color: #0c0c0f; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; border: 1px solid var(--line); box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6); }
.strip { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pstrip { display: flex; gap: 30px; padding: 34px 36px 14px; align-items: flex-start; flex: 1; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2c2c33 transparent; }
.strip.multi { gap: 14px; padding: 14px; }
.strip.multi .pstrip { padding: 12px 28px 18px; gap: 24px; }
.prow { display: flex; flex-direction: column; min-width: 0; }
/* several devices: each row is its own panel; the stage steps back */
.stage:has(.strip.multi) { background: transparent; border-color: transparent; box-shadow: none; }
.strip.multi .prow { border-radius: 22px; background-color: #0c0c0f; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; border: 1px solid var(--line); box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6); transition: border-color 0.3s, box-shadow 0.3s; }
.strip.multi .prow.enter { animation: rowIn 0.45s var(--ease) both; }
.strip.busy .stools { pointer-events: none; }
.strip.busy .stools .ib { opacity: 0.5; }
.strip.multi .prow.on { border-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.phead { display: flex; align-items: center; gap: 10px; padding: 18px 28px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.phead b { color: var(--ink); font-weight: 650; font-size: 14px; letter-spacing: -0.01em; }
.phead .plogo { width: 16px; height: 16px; color: var(--ink); flex: none; }
.phead .pdim { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.phead .hint { flex-basis: 100%; order: 9; margin-left: 26px; margin-top: -4px; }
.lic { width: 14px; height: 14px; flex: none; }
.plink { height: 28px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.plink.m-all { color: #86efac; background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.25); }
.plink.m-text { color: #c4b5fd; background: rgba(167, 139, 250, 0.08); border-color: rgba(167, 139, 250, 0.25); }
.plink:hover { filter: brightness(1.2); }
.phead .prm { margin-left: auto; width: 28px; height: 28px; }
/* top bar: undo, orient, preview, devices and link mode share one height */
.tb-mid > .cap, .tb-right > .cap { height: 46px; box-sizing: border-box; }
.orient { display: flex; align-items: center; gap: 3px; padding: 4px; }
.obtn { height: 36px; padding: 0 11px; border-radius: 10px; border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s, background 0.25s, box-shadow 0.25s; white-space: nowrap; }
.obtn svg.ic { width: 15px; height: 15px; }
.obtn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.obtn.on { color: var(--ink); background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.04); }
.obtn.on[data-orient="landscape"] { background: linear-gradient(135deg, rgba(91, 120, 255, 0.25), rgba(139, 92, 246, 0.2)); box-shadow: inset 0 0 0 1px rgba(139, 160, 255, 0.45); color: #e0e7ff; }
.plats { display: flex; align-items: center; gap: 6px; padding: 4px 6px; }
.plats.off { opacity: 0.4; pointer-events: none; }
.pgrp { display: flex; align-items: center; gap: 4px; padding-left: 6px; }
.pgrp + .pgrp { border-left: 1px solid var(--line2); margin-left: 4px; padding-left: 12px; }
.pgrp .plogo { width: 14px; height: 14px; color: var(--muted); margin-right: 4px; flex: none; }
.pbtn { height: 36px; padding: 0 12px 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s, background 0.25s, box-shadow 0.25s; white-space: nowrap; }
.pbtn.main { padding: 0 12px; }
.pbtn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.pbtn.on { color: var(--ink); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 1px 0 rgba(255, 255, 255, 0.04); }
/* + turns into − when the device is on */
.pm { position: relative; width: 10px; height: 10px; flex: none; transition: transform 0.4s var(--spring); }
.pm i { position: absolute; left: 0; top: 4px; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--spring), opacity 0.25s; }
.pm i:last-child { transform: rotate(90deg); }
.pbtn.on .pm { transform: rotate(180deg); }
.pbtn.on .pm i:last-child { transform: rotate(180deg); opacity: 0; }
.linkbtn { gap: 7px; padding: 0 14px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; animation: fade 0.3s var(--ease); white-space: nowrap; }
.linkbtn[hidden] { display: none; }
.linkbtn .lic { width: 15px; height: 15px; transition: transform 0.4s var(--spring); }
.linkbtn:hover .lic { transform: rotate(-12deg) scale(1.08); }
.linkbtn.m-all { color: #86efac; }
.linkbtn.m-text { color: #c4b5fd; }
.linkbtn:hover { color: var(--ink); }
.hint { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--faint); padding: 0 36px 16px; }
.samplebar { position: sticky; bottom: 14px; align-self: center; margin: auto 16px 10px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(24, 24, 29, 0.9); backdrop-filter: blur(16px); border: 1px solid var(--line2); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); font-size: 13.5px; color: var(--muted); z-index: 5; animation: toast 0.45s var(--spring); }
.samplebar[hidden] { display: none; }
.samplebar b { color: var(--ink); font-weight: 600; }
.samplebar .btn { height: 34px; white-space: nowrap; }
.samplebar .ib { width: 28px; height: 28px; }
@media (max-width: 860px) { .samplebar { border-radius: 18px; flex-wrap: wrap; justify-content: center; text-align: center; padding: 10px 12px; } }
.hint span { display: inline-flex; align-items: center; gap: 6px; }
kbd { font: 600 10.5px/1 Inter, sans-serif; padding: 4px 6px; border-radius: 6px; background: var(--s2); border: 1px solid var(--line2); color: var(--muted); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }

/* slides */
.slot { flex: none; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.slot .frame { position: relative; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -24px rgba(0, 0, 0, 0.9); transition: box-shadow 0.3s, transform 0.4s var(--ease); }
.slot:hover .frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 36px 70px -24px rgba(0, 0, 0, 0.95); }
.slot.cur .frame { box-shadow: 0 0 0 2px var(--acc), 0 0 0 7px rgba(91, 120, 255, 0.14), 0 36px 70px -24px rgba(0, 0, 0, 0.95); }
.slot canvas { display: block; border-radius: 16px; }
.slot .ov { position: absolute; inset: 0; touch-action: none; overflow: hidden; border-radius: 16px; }
.stools { display: flex; gap: 2px; align-items: center; padding: 3px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); box-shadow: var(--raise); opacity: 0.55; transition: opacity 0.25s, transform 0.3s var(--spring); }
.slot:hover .stools, .slot.cur .stools { opacity: 1; }
.stools .num { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 8px 0 6px; font-variant-numeric: tabular-nums; }
.stools .ib { width: 30px; height: 30px; border-radius: 9px; }
.stools .ib svg.ic { width: 15px; height: 15px; }
.selbox { position: absolute; left: 0; top: 0; border: 1.5px solid var(--acc); pointer-events: none; transform-origin: center; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 24px rgba(91, 120, 255, 0.35); }
.selbox .h { position: absolute; width: 15px; height: 15px; background: #fff; border-radius: 50%; pointer-events: auto; box-shadow: 0 0 0 2.5px var(--acc), 0 4px 10px rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--spring); }
.selbox .h:hover { transform: scale(1.3); }
.selbox .h.sc { right: -8px; bottom: -8px; cursor: nwse-resize; }
.selbox .h.ro { left: 50%; top: -32px; margin-left: -7.5px; cursor: grab; }
.selbox .stem { position: absolute; left: 50%; top: -18px; width: 1.5px; height: 18px; background: var(--acc); }
.guide { position: absolute; background: #ff4f9a; pointer-events: none; display: none; box-shadow: 0 0 8px #ff4f9a; }
.guide.v { width: 1px; top: 0; bottom: 0; }
.guide.hz { height: 1px; left: 0; right: 0; }
.addslide { width: 150px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--faint); cursor: pointer; font-size: 13px; font-weight: 600; flex: none; text-align: center; padding: 12px; border: 1.5px dashed rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.015); transition: all 0.3s var(--ease); }
.addslide .plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); box-shadow: var(--raise); transition: transform 0.35s var(--spring); }
.addslide:hover { color: var(--ink); border-color: rgba(139, 160, 255, 0.45); background: rgba(91, 120, 255, 0.05); }
.addslide:hover .plus { transform: scale(1.1) rotate(90deg); }
.addslide small { font-size: 11px; font-weight: 500; color: var(--faint); }

/* ───── panel primitives ───── */
.ph { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 14px; }
.ph h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ph p { margin: 0; font-size: 12px; color: var(--faint); }
.sec { background: var(--s2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: var(--hi); }
.sec > .lbl:first-child { margin-top: 0; }
.lbl { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0 9px; }
.lbl .lnk { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 12px; background: none; border: 0; padding: 0; }
.lbl .lnk:hover { color: var(--ink); }
.note { font-size: 12px; color: var(--faint); margin: 10px 2px 0; line-height: 1.5; }
.note b { color: var(--muted); font-weight: 600; }
.empty { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--s2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; line-height: 1.5; }
.empty svg.ic { color: var(--acc); margin-top: 2px; }
.field { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: #0d0d10; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); }
.field:focus { border-color: rgba(139, 160, 255, 0.6); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(91, 120, 255, 0.15); }
textarea.field { resize: vertical; min-height: 84px; line-height: 1.45; }
.field + .field { margin-top: 8px; }

/* slider */
.sl { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }
.sl output { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink); background: var(--s3); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; min-width: 38px; text-align: center; transition: transform 0.2s var(--spring), border-color 0.2s; }
.sl:active output { transform: scale(1.08); border-color: rgba(139, 160, 255, 0.5); }
.rng { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
.rng:focus { outline: none; }
.rng::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--acc), var(--acc2)) 0 0 / var(--p) 100% no-repeat, #0b0b0e; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05); }
.rng::-moz-range-track { height: 6px; border-radius: 6px; background: #0b0b0e; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7); }
.rng::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #dcdce4 70%); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 0 0 var(--accGlow); transition: transform 0.25s var(--spring), box-shadow 0.25s; }
.rng::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #dcdce4 70%); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); transition: transform 0.25s var(--spring), box-shadow 0.25s; }
.rng:hover::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(91, 120, 255, 0.18); }
.rng:active::-webkit-slider-thumb { transform: scale(1.3); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 9px rgba(91, 120, 255, 0.22); }
.rng:hover::-moz-range-thumb { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(91, 120, 255, 0.18); }
.rng:active::-moz-range-thumb { transform: scale(1.3); }

/* segmented */
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: #0b0b0e; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.04); }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; padding: 8px 6px; border-radius: 9px; cursor: pointer; color: var(--faint); white-space: nowrap; transition: color 0.2s, background 0.25s, transform 0.25s var(--spring); }
.seg button:hover { color: var(--ink); }
.seg button:active { transform: scale(0.94); }
.seg button.on { color: var(--ink); background: linear-gradient(180deg, var(--s4), var(--s3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.45); }
.seg button svg.ic { width: 16px; height: 16px; }

/* switch */
.tog { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink); margin: 12px 0 2px; cursor: pointer; user-select: none; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog i { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #0b0b0e; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line); transition: background 0.3s; flex: none; }
.tog i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfcfd8); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); transition: transform 0.35s var(--spring), width 0.2s; }
.tog:active i::after { width: 22px; }
.tog input:checked + i { background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 14px -2px var(--accGlow); }
.tog input:checked + i::after { transform: translateX(16px); }
.tog input:checked:active + i::after { transform: translateX(12px); }

/* colour row */
.crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; font-size: 12.5px; color: var(--muted); }
.sws { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sw { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 4px rgba(0, 0, 0, 0.4); transition: transform 0.25s var(--spring), box-shadow 0.2s; flex: none; }
.sw:hover { transform: scale(1.18); }
.sw:active { transform: scale(0.92); }
.sw.on { box-shadow: 0 0 0 2px var(--s2), 0 0 0 4px rgba(255, 255, 255, 0.85); }
.sw.custom { background: conic-gradient(#ff5c5c, #ffd43b, #51cf66, #22b8cf, #5c7cfa, #cc5de8, #ff5c5c); }
.sw.custom::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35); }
.sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

/* font picker */
.fpick { position: relative; }
.fbtn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: #0d0d10; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); color: var(--ink); font-size: 16px; cursor: pointer; transition: border-color 0.2s; }
.fbtn:hover { border-color: rgba(255, 255, 255, 0.22); }
.fbtn svg.ic { color: var(--faint); width: 16px; height: 16px; }
.fmenu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 320px; overflow: auto; padding: 6px; border-radius: 14px; background: rgba(24, 24, 28, 0.96); backdrop-filter: blur(20px); border: 1px solid var(--line2); box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8); animation: pop 0.25s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.fmenu button { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; font-size: 17px; cursor: pointer; color: var(--ink); text-align: left; }
.fmenu button:hover { background: var(--s3); }
.fmenu button.on { background: rgba(91, 120, 255, 0.16); }
.fmenu button small { font: 500 11px Inter, sans-serif; color: var(--faint); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.t2 { grid-template-columns: repeat(2, 1fr); }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px 11px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--s3), var(--s2)); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: var(--raise); transition: transform 0.3s var(--spring), color 0.2s, border-color 0.2s, box-shadow 0.3s; }
.tile:hover { transform: translateY(-2px); color: var(--ink); border-color: rgba(139, 160, 255, 0.35); box-shadow: var(--raise), 0 10px 24px -12px var(--accGlow); }
.tile:active { transform: scale(0.95); }
.tile.on { color: var(--ink); border-color: rgba(139, 160, 255, 0.6); box-shadow: var(--raise), 0 0 0 3px rgba(91, 120, 255, 0.15); }
.tiles.models { grid-template-columns: repeat(6, 1fr); }
.tiles.models .tile { grid-column: span 2; position: relative; }
.tiles.models .tile:nth-child(n + 4) { grid-column: span 3; }
.tile .new { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 4px 10px -4px var(--accGlow); }
.btn.apply-all { margin-top: 14px; height: 42px; white-space: normal; line-height: 1.2; }
.btn.apply-all svg { flex: none; }
.tile .gl { font-size: 20px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.02em; height: 24px; display: grid; place-items: center; }
.tile svg.ic, .tile svg.sh { width: 24px; height: 24px; color: var(--ink); }
.tile svg.sh { fill: currentColor; stroke: none; }

/* grids */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid .it { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--s3); cursor: pointer; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s var(--spring), box-shadow 0.2s, background 0.2s; }
.grid .it:hover { transform: translateY(-2px) scale(1.04); background: var(--s4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 20px -10px rgba(0, 0, 0, 0.8); }
.grid .it:active { transform: scale(0.94); }
.grid .it img { width: 74%; height: 74%; object-fit: contain; transition: transform 0.4s var(--spring); }
.grid .it:hover img { transform: scale(1.1) rotate(-4deg); }
.grid .it.shot img { width: 100%; height: 100%; object-fit: cover; }
.grid .it.shot:hover img { transform: none; }
.grid .it.on { box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 3px rgba(91, 120, 255, 0.2); }
.preset { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important; }
.upact { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 3px; opacity: 0; transform: translateY(4px); transition: all 0.25s var(--ease); }
.grid .it:hover .upact { opacity: 1; transform: none; }
.upact button { flex: 1; font-size: 10px; font-weight: 600; padding: 4px 0; border-radius: 7px; border: 0; background: rgba(10, 10, 12, 0.82); backdrop-filter: blur(8px); color: #fff; cursor: pointer; }
.upact button:hover { background: var(--acc); }

/* theme cards */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chips button { border: 1px solid var(--line); background: var(--s2); color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all 0.25s var(--spring); }
.chips button:hover { color: var(--ink); transform: translateY(-1px); }
.chips button.on { background: var(--ink); color: #0b0b0e; border-color: var(--ink); }
.tcard { position: relative; border-radius: 18px; padding: 10px; margin-bottom: 12px; cursor: pointer; background: linear-gradient(180deg, var(--s3), var(--s2)); border: 1px solid var(--line); box-shadow: var(--raise); transition: transform 0.35s var(--spring), box-shadow 0.3s, border-color 0.2s; }
.tcard:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.14); box-shadow: var(--raise), 0 18px 34px -16px rgba(0, 0, 0, 0.9); }
.tcard.on { border-color: rgba(139, 160, 255, 0.7); box-shadow: var(--raise), 0 0 0 4px rgba(91, 120, 255, 0.14); }
.tcard .thumbs { display: flex; gap: 6px; }
.tcard canvas { border-radius: 9px; flex: 1; min-width: 0; height: auto; aspect-ratio: 1000 / 2173; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8); transition: transform 0.4s var(--spring); }
.tcard.land .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tcard.land canvas { aspect-ratio: 2173 / 1000; border-radius: 7px; }
.tcard.land:hover canvas:nth-child(1) { transform: rotate(-1.5deg) translateY(-2px); }
.tcard.land:hover canvas:nth-child(2) { transform: rotate(1.5deg) translateY(-2px); }
.tcard:hover canvas:nth-child(1) { transform: rotate(-2deg) translateY(-2px); }
.tcard:hover canvas:nth-child(3) { transform: rotate(2deg) translateY(-2px); }
.tcard .meta { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 2px; }
.tcard .meta b { font-size: 14px; font-weight: 700; display: block; }
.tcard .meta small { font-size: 11.5px; color: var(--faint); }
.dots { display: flex; gap: 6px; }
.dots button { width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.25s var(--spring); }
.dots button:hover { transform: scale(1.2); }
.dots button.on { box-shadow: 0 0 0 2px var(--s2), 0 0 0 4px #fff; }

/* background panel */
.bgprev { height: 92px; border-radius: 14px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 24px -12px rgba(0, 0, 0, 0.9); position: relative; overflow: hidden; }
.bgprev span { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); color: #fff; }
.gbar { position: relative; height: 34px; border-radius: 10px; margin: 6px 0 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.gstop { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, 0.5); cursor: pointer; transition: transform 0.25s var(--spring); }
.gstop:hover { transform: scale(1.15); }
.gstop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.dialrow { display: flex; align-items: center; gap: 14px; }
.dial { position: relative; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, var(--s4), var(--s2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px -4px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line); cursor: grab; flex: none; touch-action: none; transition: transform 0.25s var(--spring); }
.dial:active { cursor: grabbing; transform: scale(1.05); }
.dial i { position: absolute; left: 50%; top: 50%; width: 3px; height: 22px; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(var(--acc), var(--acc2)); transform-origin: 50% 0; transform: rotate(calc(var(--a) + 180deg)); box-shadow: 0 0 8px var(--accGlow); }
.dial::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.dialrow .dv { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dialrow .dv small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.drop-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, 0.12); color: var(--muted); font-size: 13px; cursor: pointer; text-align: center; transition: all 0.3s var(--ease); background: rgba(255, 255, 255, 0.015); }
.drop-tile:hover { border-color: rgba(139, 160, 255, 0.5); color: var(--ink); background: rgba(91, 120, 255, 0.05); }
.drop-tile .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); box-shadow: var(--raise); transition: transform 0.35s var(--spring); }
.drop-tile:hover .plus { transform: translateY(-2px) scale(1.08); }
.drop-tile small { font-size: 11.5px; color: var(--faint); }

/* device panel */
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.presets button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--s3), var(--s2)); color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; box-shadow: var(--raise); transition: transform 0.3s var(--spring), color 0.2s, border-color 0.2s; }
.presets button:hover { transform: translateY(-2px); color: var(--ink); border-color: rgba(139, 160, 255, 0.35); }
.presets button:active { transform: scale(0.95); }
.presets button.on { color: var(--ink); border-color: rgba(139, 160, 255, 0.6); }
.presets button i { width: 15px; height: 26px; border: 2px solid currentColor; border-radius: 5px; display: block; transition: transform 0.45s var(--spring); }
.presets.land button i { width: 28px; height: 15px; border-radius: 4px; margin: 4px 0; }
.presets button:hover i { transform: var(--t) scale(1.08) !important; }
.qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qgrid .tile { padding: 10px 8px; gap: 6px; }
.finish { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--spring); }
.finish:hover { transform: scale(1.15); }
.finish.on { box-shadow: 0 0 0 2px var(--s2), 0 0 0 4px #fff, 0 3px 8px rgba(0, 0, 0, 0.5); }
.finishes { display: flex; gap: 10px; }

/* actions */
.acts { display: flex; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.acts .ib { flex: 1; height: 38px; border-radius: 11px; background: var(--s3); color: var(--muted); box-shadow: var(--hi); }
.acts .ib:hover { background: var(--s4); color: var(--ink); }

/* modals + toast */
.modal { position: fixed; inset: 0; background: rgba(5, 5, 7, 0.6); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.modal.open { display: flex; animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.mcard { width: 100%; max-width: 460px; border-radius: 24px; padding: 24px; background: linear-gradient(180deg, #1a1a1f, #131316); border: 1px solid var(--line2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.9); animation: pop 0.35s var(--spring); }
.mcard.ex { max-width: 600px; max-height: calc(100vh - 36px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2c2c33 transparent; padding: 20px 22px; }
.extabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; padding: 4px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); }
.extabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border-radius: 9px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.extabs button:hover { color: var(--ink); }
.extabs button.on { background: var(--s3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(139, 160, 255, 0.45); }
.extabs svg { width: 14px; height: 14px; flex: none; }
.exquick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.exquick button { border: 1px solid var(--line); background: var(--s2); color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.exquick button:hover { color: var(--ink); border-color: rgba(139, 160, 255, 0.4); background: var(--s3); }
.mcard h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.price { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; margin: 12px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.list { list-style: none; padding: 0; margin: 16px 0 22px; }
.list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--acc), var(--acc2)) center / cover; -webkit-mask: radial-gradient(circle, #000 60%, transparent 62%); }
.exstore { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 12px 0 7px; }
.excards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.excard { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; text-align: left; background: var(--s2); transition: transform 0.3s var(--spring), border-color 0.2s, box-shadow 0.2s; }
.excard:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); }
.excard b { display: block; font-size: 13px; }
.excard span { font-size: 11.5px; color: var(--faint); }
.excard em { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); }
.excard .ck { position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; place-items: center; transition: all 0.3s var(--spring); }
.excard.on { border-color: rgba(139, 160, 255, 0.6); background: linear-gradient(180deg, rgba(91, 120, 255, 0.12), var(--s2)); }
.excard.on .ck { background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 0 12px var(--accGlow); }
.excard.on .ck::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.excard.lock { opacity: 0.5; }
.excard.req em { color: #9fb0ff; }
.row-btns { display: flex; gap: 8px; margin-top: 14px; }
.row-btns .btn { flex: 1; height: 44px; }
.ph-btns { flex-direction: column; }
.ph-btns .btn { flex: none; height: 46px; }
.mcard .field { margin-top: 8px; }
.drop { position: fixed; inset: 12px; border-radius: 24px; background: rgba(91, 120, 255, 0.08); border: 2px dashed rgba(139, 160, 255, 0.7); display: none; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #c7d0ff; z-index: 40; pointer-events: none; backdrop-filter: blur(2px); }
.drop.on { display: flex; animation: fade 0.2s; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 10px; background: rgba(28, 28, 33, 0.92); backdrop-filter: blur(16px); border: 1px solid var(--line2); color: var(--ink); padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; z-index: 50; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); }
.toast.on { display: flex; animation: toast 0.45s var(--spring); }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); display: grid; place-items: center; }
.toast i svg.ic { width: 13px; height: 13px; stroke-width: 2.5; color: #fff; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); } }

@media (max-width: 860px) {
  body { height: auto; overflow: auto; }
  .main { flex-direction: column; padding: 0 8px 8px; }
  .dock { flex-direction: column; }
  .rail { width: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail button { flex: 1; min-width: 62px; }
  .panel { width: 100%; max-height: 48vh; }
  .stage { min-height: 520px; }
  .top { flex-wrap: wrap; height: auto; padding: 10px 12px; row-gap: 8px; }
  .tb-mid { display: contents; }
  .tb-mid .plats, .tb-mid .linkbtn { display: none !important; }
  .strip.multi { padding: 8px; gap: 10px; }
  .tb-mid .cap:has(.sizepick) { display: none; }
  .top { column-gap: 8px; }
  .top .logo { font-size: 0; gap: 0; }
  .pstrip { padding: 20px 16px; }
  .strip.multi .pstrip { padding: 12px 16px 16px; }
  .phead { padding: 14px 16px 0; }
  .phead .hint { margin-left: 0; }
  .pbtn { padding: 0 7px; font-size: 12px; }
  .tb-mid .sizepick, .chip-plan, .hint { display: none; }
}
/* dark scrollbars */
.stage, .panel, .grid, .fmenu { scrollbar-width: thin; scrollbar-color: #2c2c33 transparent; }
.stage::-webkit-scrollbar, .panel::-webkit-scrollbar, .grid::-webkit-scrollbar, .fmenu::-webkit-scrollbar { width: 10px; height: 10px; }
.stage::-webkit-scrollbar-thumb, .panel::-webkit-scrollbar-thumb, .grid::-webkit-scrollbar-thumb, .fmenu::-webkit-scrollbar-thumb { background: #2c2c33; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.stage::-webkit-scrollbar-thumb:hover, .panel::-webkit-scrollbar-thumb:hover { background-color: #3a3a43; }
.stage::-webkit-scrollbar-track, .panel::-webkit-scrollbar-track, .grid::-webkit-scrollbar-track, .fmenu::-webkit-scrollbar-track, .stage::-webkit-scrollbar-corner { background: transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── Pro window ───────── */
.mcard.pro { max-width: 860px; padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; position: relative; }
.pclose { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pro-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 36px 24px 28px; background: radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(91, 120, 255, 0.12), transparent 60%), #0c0c10; border-right: 1px solid var(--line); overflow: hidden; }
.pro-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask: radial-gradient(80% 70% at 50% 45%, #000, transparent); mask: radial-gradient(80% 70% at 50% 45%, #000, transparent); }
.pro-shots { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 12px; min-height: 290px; }
.pro-shot { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: proUp 0.6s var(--ease) both; }
.pro-shot:nth-child(2) { animation-delay: 0.07s; } .pro-shot:nth-child(3) { animation-delay: 0.14s; }
.pro-shot canvas { display: block; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 40px -16px rgba(0, 0, 0, 0.9); background: #16161b; }
.pro-shot span { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0.02em; }
.pro-cap { position: relative; margin: 0; font-size: 12.5px; color: var(--muted); }
@keyframes proUp { from { opacity: 0; transform: translateY(14px); } }
.pro-body { padding: 34px 32px 28px; display: flex; flex-direction: column; }
.pro-body[hidden] { display: none; }
.pro-eye { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b9a8ff; }
.mcard.pro h2 { margin: 8px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; padding-right: 20px; }
.pro-price { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; }
.pro-price b { font-size: 54px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.pro-price span { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.pro-price em { font-style: normal; align-self: flex-start; font-size: 11px; font-weight: 700; color: #0b0b0e; background: #e9e9ee; padding: 2px 8px; border-radius: 999px; }
.pro-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.pro-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; }
.pro-list b { color: var(--ink); font-weight: 600; }
.pro-list i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); position: relative; }
.pro-list i::after { content: ""; position: absolute; left: 5.5px; top: 5px; width: 6px; height: 3.5px; border: 1.8px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.pro-buy { height: 52px; font-size: 15.5px; border-radius: 14px; width: 100%; background: radial-gradient(120% 140% at 100% 0%, #fff 0%, #ececf1 45%, #c9c9d2 100%); }
.pro-buy:hover { transform: translateY(-1px); }
.pro-guar { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pro-guar svg { width: 16px; height: 16px; color: #86efac; }
.pro-trust { margin: 4px 0 0; text-align: center; font-size: 11.5px; color: var(--faint); }
.pro-sub { margin: 12px 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pro-lic-toggle { margin: 18px auto 0; background: none; border: 0; padding: 4px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.2); text-underline-offset: 3px; }
.pro-lic-toggle:hover { color: var(--ink); }
.pro-lic { display: flex; gap: 8px; margin-top: 12px; }
.pro-lic[hidden] { display: none; }
.pro-lic .field { flex: 1; margin: 0; min-width: 0; }
.pro-lic .btn { height: 42px; flex: none; }
@media (max-width: 760px) {
  .mcard.pro { grid-template-columns: 1fr; max-height: calc(100vh - 32px); overflow-y: auto; }
  .pro-hero { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 16px 18px; }
  .pro-shots { min-height: 170px; }
  .pro-body { padding: 24px 20px 22px; }
  .mcard.pro h2 { font-size: 23px; }
}
body:has(.samplebar:not([hidden])) .toast { bottom: 86px; }
