/* ATLAS BEATS — Studio page (studio.html) + the v4.7 back button / card box shared with share.html.
   Loaded after css/style.css and css/share.css. Prefix: .st- / .ed- (never reuse style.css class names). */

/* ── animated "Back to radio" button (share + studio) ─────────── */
.sh-back { --bk: var(--c1, #a855f7); position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 5px; border-radius: 999px; background: linear-gradient(120deg, color-mix(in srgb, var(--bk) 22%, rgba(255,255,255,.06)), rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--bk) 45%, var(--line)); color: #fff; font-weight: 800; font-size: 13px; overflow: hidden; isolation: isolate; transition: transform .35s var(--spring), box-shadow .35s, border-color .3s; }
.sh-back::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: none; z-index: -1; }
.sh-back:hover { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--bk) 32%, transparent); border-color: color-mix(in srgb, var(--bk) 80%, #fff); }
.sh-back:hover::before { animation: bkSheen 1.1s ease forwards; }
@keyframes bkSheen { to { transform: translateX(120%); } }
.sh-back .orb { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bk) 80%, #fff), var(--bk) 55%, color-mix(in srgb, var(--bk) 60%, #000)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bk) 55%, transparent), inset 0 -3px 8px rgba(0,0,0,.3); animation: bkPulse 2.6s ease-out infinite; flex: 0 0 auto; }
@keyframes bkPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bk) 55%, transparent), inset 0 -3px 8px rgba(0,0,0,.3); } 70% { box-shadow: 0 0 0 12px transparent, inset 0 -3px 8px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 12px transparent, inset 0 -3px 8px rgba(0,0,0,.3); } }
.sh-back .orb .i { width: 18px; height: 18px; color: #0b0b12; stroke-width: 2.6; transition: transform .35s var(--spring), opacity .25s; }
.sh-back .orb .eq { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 10px; opacity: 0; transition: opacity .25s; }
.sh-back .orb .eq i { width: 3px; height: 8px; border-radius: 2px; background: #0b0b12; animation: bkEq .8s ease-in-out infinite alternate; }
.sh-back .orb .eq i:nth-child(2) { animation-delay: -.25s; height: 14px; } .sh-back .orb .eq i:nth-child(3) { animation-delay: -.5s; height: 11px; }
@keyframes bkEq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.sh-back .lbl { display: grid; line-height: 1.15; }
.sh-back .lbl small { font-size: 10.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .3px; opacity: .85; }
.sh-back:hover .orb .i { transform: translateX(-3px); }
html[dir="rtl"] .sh-back .orb .i { transform: scaleX(-1); } html[dir="rtl"] .sh-back:hover .orb .i { transform: scaleX(-1) translateX(-3px); }
.sh-back:hover .orb .eq { opacity: 1; } .sh-back:hover .orb .i { opacity: 0; }
/* leaving animation */
.sh-back.go { transform: scale(.96); }
.sh-back.go .orb { animation: bkGo .45s var(--spring) forwards; }
@keyframes bkGo { 40% { transform: scale(1.25); } 100% { transform: scale(30); opacity: 0; } }
body.leaving .sh-main, body.leaving .st-main { animation: leaveFade .4s ease forwards; }
@keyframes leaveFade { to { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } }
@media (max-width: 767px) { .sh-back { height: 42px; padding: 0 12px 0 4px; } .sh-back .lbl small { display: none; } .sh-back span { display: inline-grid; } .sh-back .orb { width: 32px; height: 32px; } }
@media (max-width: 480px) { .sh-back .lbl { display: none; } .sh-back { padding: 0 4px; width: 42px; justify-content: center; } }

/* ── card box on the share page (v4.7 "Studio card") ────────── */
.sh-card-box { position: relative; overflow: hidden; }
.sh-card-box::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 30%, transparent), transparent 65%); pointer-events: none; }
.sh-card-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; position: relative; z-index: 1; }
.sh-card-stage { display: grid; place-items: center; min-height: 340px; padding: 18px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.06), transparent 60%), rgba(0,0,0,.28); border: 1px solid var(--line); perspective: 1400px; }
.sh-card-preview { position: relative; width: min(100%, 250px); aspect-ratio: 9/16; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.04); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--spring), aspect-ratio .4s ease, width .4s ease; }
.sh-card-preview.post { width: min(100%, 330px); aspect-ratio: 1; }
.sh-card-preview.portrait { width: min(100%, 300px); aspect-ratio: 4/5; }
.sh-card-preview.wide { width: 100%; aspect-ratio: 16/9; }
.sh-card-preview canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.sh-card-preview.ready canvas { opacity: 1; }
.sh-card-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); transform: translateX(-140%); pointer-events: none; }
.sh-card-preview.ready::after { animation: cardShine 1.4s ease .2s 1; }
@keyframes cardShine { to { transform: translateX(140%); } }
.sh-card-loading { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; align-content: center; color: var(--ink-2); font-size: 13px; font-weight: 700; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); transition: opacity .3s; }
.sh-card-loading .ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--c1); animation: spin 1s linear infinite; }
.sh-card-preview.ready .sh-card-loading { opacity: 0; pointer-events: none; }
.sh-card-side { display: grid; gap: 14px; min-width: 0; }
.sh-card-side h5 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sh-card-side h5::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sh-fmt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sh-fmt button { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 11px; font-weight: 800; transition: border-color .25s, background .25s, transform .25s var(--spring), color .25s; }
.sh-fmt button i { display: block; width: 22px; border-radius: 4px; background: currentColor; opacity: .5; }
.sh-fmt button:hover { transform: translateY(-2px); color: #fff; }
.sh-fmt button.on { color: #fff; background: color-mix(in srgb, var(--c1) 26%, var(--glass)); border-color: color-mix(in srgb, var(--c1) 70%, transparent); box-shadow: 0 8px 24px color-mix(in srgb, var(--c1) 22%, transparent); }
.sh-fmt button.on i { opacity: 1; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.sh-fmt small { font-family: var(--font-en); font-size: 9.5px; color: var(--muted); font-weight: 700; }
.sh-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-styles button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-weight: 800; font-size: 12px; transition: border-color .25s, color .25s, transform .25s var(--spring); }
.sh-styles button:hover { transform: translateY(-1px); color: #fff; }
.sh-styles button.on { color: #fff; border-color: color-mix(in srgb, var(--c1) 70%, transparent); background: color-mix(in srgb, var(--c1) 22%, var(--glass)); }
.sw { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: linear-gradient(135deg, var(--c1), var(--c2)); flex: 0 0 auto; }
.sw.glass { background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 70%, #fff), var(--c2)); filter: blur(.2px); }
.sw.neon { background: #0a0a14; box-shadow: inset 0 0 0 3px var(--c2), inset 0 0 8px var(--c1); }
.sw.minimal { background: #f4f4fb; border-color: rgba(255,255,255,.6); }
.sw.vinyl { background: repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); }
.sw.poster { background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 4px #fff; }
.sh-card-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-card-acts .sbtn { height: 44px; font-size: 13px; }
.sh-card-acts .sbtn.wide { grid-column: 1 / -1; }
.sh-card-handle { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px dashed var(--line-2); font-family: var(--font-en); }
.sh-card-handle b { font-size: 20px; letter-spacing: -.02em; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--c1) 60%, #fff), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-card-handle span { font-size: 11px; color: var(--muted); font-weight: 700; }
.sh-card-handle .i { width: 16px; height: 16px; color: var(--c2); }
.sh-card-open { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 20%, transparent), color-mix(in srgb, var(--c2) 12%, transparent)); border: 1px solid color-mix(in srgb, var(--c1) 40%, var(--line)); color: #fff; transition: transform .3s var(--spring), border-color .3s; }
.sh-card-open:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c2) 70%, #fff); }
.sh-card-open .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: 0 0 auto; }
.sh-card-open .ico .i { width: 20px; height: 20px; color: #0b0b12; }
.sh-card-open .tx { display: grid; line-height: 1.25; min-width: 0; }
.sh-card-open .tx b { font-size: 14px; } .sh-card-open .tx span { font-size: 12px; color: var(--ink-2); }
.sh-card-open .arr { margin-inline-start: auto; width: 18px; height: 18px; opacity: .7; transition: transform .3s; }
.sh-card-open:hover .arr { transform: translateX(4px); } html[dir="rtl"] .sh-card-open .arr { transform: scaleX(-1); } html[dir="rtl"] .sh-card-open:hover .arr { transform: scaleX(-1) translateX(4px); }
@media (max-width: 1023px) { .sh-card-body { grid-template-columns: 1fr; } .sh-card-stage { min-height: 0; } }
@media (max-width: 480px) { .sh-fmt { grid-template-columns: repeat(4, 1fr); } .sh-fmt button { padding: 8px 4px 6px; font-size: 10px; } .sh-card-acts { grid-template-columns: 1fr; } }

/* ── studio page ─────────────────────────────────────────────── */
body.studio-page { --c1: #a855f7; --c2: #22d3ee; }
.sh-brand .studio-tag { margin-inline-start: 8px; padding: 3px 8px; border-radius: 6px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #0b0b12; font-family: var(--font-en); font-weight: 900; font-size: 10px; letter-spacing: .18em; }
.st-main { gap: 26px; }
.st-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 32px; border-radius: 30px; background: var(--glass); border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 320px; }
.st-hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 35%, transparent), transparent 65%); pointer-events: none; }
.st-hero-txt { display: grid; gap: 14px; position: relative; z-index: 1; }
.st-hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; background: linear-gradient(90deg, #fff 30%, color-mix(in srgb, var(--c1) 70%, #fff), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-hero p { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.st-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.st-hero-stats .stat { display: grid; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); min-width: 92px; }
.st-hero-stats .stat b { font-family: var(--font-en); font-size: 22px; letter-spacing: -.02em; line-height: 1; background: linear-gradient(135deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-hero-stats .stat span { font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.st-hero-art { position: relative; height: 300px; direction: ltr; }
.st-hero-art canvas { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); transition: transform .6s var(--spring); }
#stHeroA { width: 150px; height: auto; left: 8%; top: 4px; transform: rotate(-8deg); animation: heroFloatA 7s ease-in-out infinite; }
#stHeroB { width: 200px; height: auto; left: 34%; top: 46px; transform: rotate(3deg); z-index: 2; animation: heroFloatB 8s ease-in-out infinite; }
#stHeroC { width: 260px; height: auto; right: 0; bottom: 6px; transform: rotate(6deg); z-index: 1; animation: heroFloatC 9s ease-in-out infinite; }
@keyframes heroFloatA { 50% { transform: rotate(-8deg) translateY(-10px); } } @keyframes heroFloatB { 50% { transform: rotate(3deg) translateY(-14px); } } @keyframes heroFloatC { 50% { transform: rotate(6deg) translateY(-8px); } }
.st-collections { display: grid; gap: 16px; }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.st-actions .sbtn { height: 42px; font-size: 13px; }
.sbtn.accent { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #0b0b12; border-color: transparent; box-shadow: 0 10px 30px color-mix(in srgb, var(--c1) 30%, transparent); }
.sbtn.accent:hover { filter: brightness(1.08); }
.sbtn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.sbtn.sm { height: 34px; padding: 0 12px; font-size: 12px; border-radius: 11px; gap: 6px; } .sbtn.sm .i { width: 15px; height: 15px; }
.sbtn.grow { flex: 1; }
.sbtn .kbd { font-family: var(--font-en); font-size: 10px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.18); font-weight: 800; }
.st-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-seg button { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 9px; font-weight: 800; font-size: 12px; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.st-seg button:hover { color: #fff; } .st-seg button.on { color: #0b0b12; background: #fff; }
.st-pick { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); max-width: 100%; }
.st-pick .i { width: 16px; height: 16px; color: var(--c2); flex: 0 0 auto; }
.st-pick select { appearance: none; background: transparent; border: 0; color: #fff; font: inherit; font-weight: 800; font-size: 13px; outline: 0; max-width: 220px; cursor: pointer; }
.st-pick select option { color: #111; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.st-card { --d: calc(var(--i, 0) * 45ms); position: relative; display: grid; gap: 10px; padding: 10px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; animation: cardIn .6s var(--spring) both; animation-delay: var(--d); transition: transform .35s var(--spring), border-color .3s, box-shadow .3s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.st-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); box-shadow: 0 24px 50px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--c1) 25%, transparent); }
.st-thumb { position: relative; width: 100%; max-height: 300px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.st-card.round .st-thumb { border-radius: 50%; width: 70%; }
.st-thumb canvas { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.st-thumb.ready canvas { opacity: 1; }
.st-thumb-load { position: absolute; inset: 0; display: grid; place-items: center; }
.st-thumb-load span { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--c1); animation: spin 1s linear infinite; }
.st-thumb.ready .st-thumb-load, .st-thumb.err .st-thumb-load { display: none; }
.st-thumb-acts { position: absolute; inset: auto 8px 8px; display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--spring); }
.st-card:hover .st-thumb-acts, .st-card:focus-within .st-thumb-acts { opacity: 1; transform: none; }
.st-thumb-acts .sbtn { box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.st-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 2px; font-size: 12.5px; }
.st-card-meta b { color: #fff; } .st-card-meta span { font-family: var(--font-en); color: var(--muted); font-weight: 700; font-size: 11px; }
@media (hover: none) { .st-thumb-acts { opacity: 1; transform: none; } }
@media (max-width: 1023px) { .st-hero { grid-template-columns: 1fr; padding: 24px; } .st-hero-art { height: 240px; } #stHeroA { width: 120px; left: 2%; } #stHeroB { width: 160px; left: 30%; top: 30px; } #stHeroC { width: 220px; } }
@media (max-width: 767px) { .st-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } .st-card { padding: 7px; border-radius: 16px; gap: 6px; } .st-actions .sbtn span { display: none; } .st-actions .sbtn { width: 42px; padding: 0; } .st-hero-art { display: none; } .st-hero { min-height: 0; } }

/* ── editor ─────────────────────────────────────────────────── */
body.editing { overflow: hidden; }
.st-editor { position: fixed; inset: 0; z-index: 250; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(6, 6, 12, .82); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); opacity: 0; transform: translateY(18px) scale(.99); transition: opacity .35s ease, transform .45s var(--spring); }
.st-editor.show { opacity: 1; transform: none; }
.st-editor[hidden] { display: none; }
.st-ed-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.st-ed-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 14px; min-width: 0; }
.st-ed-title .i { width: 18px; height: 18px; color: var(--c2); }
.st-ed-title span { font-family: var(--font-en); font-size: 12px; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.06); }
.st-ed-topacts { display: flex; gap: 8px; }
.st-ed-topacts .sbtn { height: 40px; font-size: 13px; }
.st-ed-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.st-ed-stage { position: relative; display: grid; place-items: center; padding: 24px; min-height: 0; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--c1) 12%, transparent), transparent 70%), repeating-conic-gradient(rgba(255,255,255,.025) 0 25%, transparent 0 50%) 0 0 / 28px 28px; overflow: hidden; }
.st-ed-canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); background: #0a0a12; transition: width .35s ease, height .35s ease; }
.st-ed-canvas-wrap.round { border-radius: 50%; }
.st-ed-canvas-wrap canvas { display: block; }
.st-ed-overlay { position: absolute; inset: 0; direction: ltr; }
.st-ed-overlay .hot { position: absolute; border: 1.5px dashed transparent; border-radius: 6px; cursor: grab; transition: border-color .2s, background .2s; touch-action: none; }
.st-ed-overlay .hot span { position: absolute; top: -20px; left: 0; padding: 2px 7px; border-radius: 6px; background: var(--c1); color: #0b0b12; font-size: 10px; font-weight: 900; opacity: 0; transition: opacity .2s; white-space: nowrap; pointer-events: none; }
.st-ed-overlay .hot:hover, .st-ed-overlay .hot.active { border-color: color-mix(in srgb, var(--c2) 80%, #fff); background: color-mix(in srgb, var(--c1) 12%, transparent); }
.st-ed-overlay .hot:hover span, .st-ed-overlay .hot.active span { opacity: 1; }
.st-ed-overlay .hot.active { cursor: grabbing; }
.st-ed-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.st-ed-hint .i { width: 15px; height: 15px; color: var(--c2); flex: 0 0 auto; }
.st-ed-hint.hide { opacity: 0; pointer-events: none; }
.st-ed-side { overflow-y: auto; border-inline-start: 1px solid var(--line); background: rgba(255,255,255,.025); padding: 8px 14px 30px; scrollbar-width: thin; }
.ed-sec { padding: 14px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ed-sec:last-child { border-bottom: 0; }
.ed-sec h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ed-sec h4 .i { width: 15px; height: 15px; color: var(--c2); }
.ed-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-formats button { display: grid; justify-items: center; gap: 5px; padding: 9px 4px 7px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 10.5px; font-weight: 800; transition: border-color .2s, background .2s, color .2s, transform .25s var(--spring); }
.ed-formats button i { display: block; height: 22px; max-width: 34px; border-radius: 3px; background: currentColor; opacity: .45; }
.ed-formats button i.round { border-radius: 50%; }
.ed-formats button small { font-family: var(--font-en); font-size: 9px; color: var(--muted); }
.ed-formats button:hover { color: #fff; transform: translateY(-1px); }
.ed-formats button.on { color: #fff; background: color-mix(in srgb, var(--c1) 26%, var(--glass)); border-color: color-mix(in srgb, var(--c1) 70%, transparent); }
.ed-formats button.on i { opacity: 1; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ed-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-styles button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-weight: 800; font-size: 12px; transition: border-color .2s, color .2s; }
.ed-styles button:hover { color: #fff; } .ed-styles button.on { color: #fff; border-color: color-mix(in srgb, var(--c1) 70%, transparent); background: color-mix(in srgb, var(--c1) 22%, var(--glass)); }
.ed-field { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.ed-field input:not([type=range]) { height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; outline: 0; transition: border-color .2s, box-shadow .2s; width: 100%; }
.ed-field input:focus { border-color: color-mix(in srgb, var(--c1) 70%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 22%, transparent); }
.ed-field input[type=range] { width: 100%; accent-color: var(--c1); }
.ed-field.sm input:not([type=range]) { height: 34px; font-size: 12.5px; }
.ed-row { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.ed-row .ed-field { flex: 1; }
.ed-row.colors { align-items: center; }
.ed-row.colors label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--muted); font-family: var(--font-en); }
.ed-row.colors input[type=color] { width: 36px; height: 36px; padding: 0; border: 2px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; }
.ed-toggle-group { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); }
.ed-toggle-group button { height: 30px; padding: 0 12px; border-radius: 8px; font-family: var(--font-en); font-weight: 800; font-size: 12px; color: var(--muted); transition: background .2s, color .2s; }
.ed-toggle-group button.on { background: #fff; color: #0b0b12; }
.ed-covers { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-covers button { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: rgba(0,0,0,.3); display: grid; place-items: center; color: var(--muted); font-size: 20px; transition: border-color .2s, transform .25s var(--spring); }
.ed-covers button img { width: 100%; height: 100%; object-fit: cover; }
.ed-covers button:hover { transform: translateY(-2px); } .ed-covers button.on { border-color: var(--c2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2) 25%, transparent); }
.sbtn.file { cursor: pointer; }
.ed-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ed-swatches button { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; transition: transform .25s var(--spring), border-color .2s; }
.ed-swatches button:hover { transform: scale(1.08); } .ed-swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.ed-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ed-layers label { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.ed-layers label.on { color: #fff; border-color: color-mix(in srgb, var(--c2) 50%, var(--line)); }
.ed-layers input { accent-color: var(--c2); width: 15px; height: 15px; }
.ed-export .ed-row { align-items: stretch; }
.ed-note { margin: 0; font-size: 11px; color: var(--muted); font-weight: 700; direction: ltr; text-align: start; }
html[dir="rtl"] .ed-note { text-align: right; }
@media (max-width: 900px) {
  .st-ed-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .st-ed-stage { padding: 14px; }
  .st-ed-side { max-height: 46vh; border-inline-start: 0; border-top: 1px solid var(--line); padding: 4px 12px 24px; }
  .st-ed-top { grid-template-columns: auto 1fr auto; padding: 10px 12px; }
  .st-ed-title b { display: none; }
  .st-ed-topacts .sbtn span:not(.kbd), .st-ed-topacts .kbd, #edClose span { display: none; }
  .st-ed-topacts .sbtn, #edClose { width: 40px; padding: 0; }
  .ed-formats { grid-template-columns: repeat(4, 1fr); }
  .st-ed-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sh-back .orb, #stHeroA, #stHeroB, #stHeroC, .st-card { animation: none !important; } .sh-card-preview.ready::after { animation: none; } }
