/* ════════════════════════════════════════════════════════════
   استودیو صدای آلفا — style.css
   تم «استودیوی شبانه ۲»: مشکی-بنفش عمیق + درخشش کهربایی/مرجانی،
   سطح‌های شیشه‌ای با لبهٔ نورانی؛ هر ابزار یک رنگ کانال دارد.
   ════════════════════════════════════════════════════════════ */
:root {
    --bg: #0b0812;
    --bg2: #120d1c;
    --surf: #1a1428;
    --surf2: #241c36;
    --well: #100b19;
    --ink: #f7f2ea;
    --muted: #aaa0c0;
    --faint: #7b7095;
    --line: rgba(236, 222, 255, .08);
    --line2: rgba(236, 222, 255, .15);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
    --amber: 255 184 76;
    --coral: 255 122 122;
    --on-c: #16101f;
    --c: 255 184 76;               /* رنگ فعال (RGB) — با S.accent عوض می‌شود */
    --brand: linear-gradient(135deg, #ffcb6b 0%, #ff9f5a 45%, #ff6f9c 100%);
    --font: 'Vazirmatn', 'Vazir', Tahoma, 'Segoe UI', system-ui, sans-serif;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;
    --sh-1: 0 10px 30px -18px rgba(0, 0, 0, .9);
    --sh-2: 0 26px 60px -30px rgba(0, 0, 0, .95);
}
.c-cyan { --c: 92 218 236; }
.c-pink { --c: 255 134 182; }
.c-amber { --c: 255 184 76; }
.c-green { --c: 92 228 184; }
.c-violet { --c: 186 158 255; }
.c-orange { --c: 255 154 88; }
.c-blue { --c: 112 188 255; }
.c-rose { --c: 255 126 108; }
.c-lime { --c: 190 234 110; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75;
    overflow-x: hidden; overscroll-behavior-y: none; font-feature-settings: 'ss01';
    background:
        radial-gradient(780px 420px at 100% -80px, rgba(255, 184, 76, .13), transparent 72%),
        radial-gradient(680px 460px at -12% 8%, rgba(186, 158, 255, .13), transparent 70%),
        radial-gradient(760px 520px at 50% 118%, rgba(92, 218, 236, .09), transparent 72%),
        var(--bg);
    background-attachment: fixed;
}
/* بافت ریز برای عمق بیشتر */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
    background-image: radial-gradient(rgba(255, 255, 255, .03) .6px, transparent .6px);
    background-size: 4px 4px;
}
#app { position: relative; z-index: 1; }
body.noscroll { overflow: hidden; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
.ico { display: inline-grid; place-items: center; line-height: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: 2px; }
::selection { background: rgb(var(--amber) / .3); }
#bg { display: none; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }

#app { max-width: 820px; margin: 0 auto; padding: 0 16px; min-height: 100vh; }
#main { padding-bottom: calc(118px + var(--safe-b)); }
body.in-tool #main { padding-bottom: 24px; }
.view { animation: fadein .25s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ───────── نوار بالا ───────── */
.topbar {
    position: sticky; top: 0; z-index: 20; isolation: isolate;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + var(--safe-t)) 0 10px;
}
.topbar::before {
    content: ''; position: absolute; z-index: -1; top: 0; bottom: -14px; left: 50%; width: 100vw; transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(11, 8, 18, .92) 58%, rgba(11, 8, 18, 0));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.logo {
    position: relative; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: var(--on-c);
    background: var(--brand);
    box-shadow: 0 10px 24px -10px rgba(255, 159, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .16);
}
.brand-text { display: grid; line-height: 1.3; }
.brand-text b { font-size: 18px; font-weight: 900; letter-spacing: -.2px; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 400; }
.icon-btn {
    position: relative; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; padding: 0;
    background: var(--glass), var(--surf); border: 1px solid var(--line2); color: var(--ink);
    box-shadow: var(--sh-1); transition: background .16s, transform .1s, border-color .16s, color .16s;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, .26); color: #fff; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 12px; box-shadow: none; }
.icon-btn.on { color: rgb(var(--amber)); border-color: rgb(var(--amber) / .5); background: rgb(var(--amber) / .12); }
.icon-btn .dot, .bottomnav .badge {
    position: absolute; top: 7px; inset-inline-end: 7px; width: 8px; height: 8px; border-radius: 50%;
    background: rgb(var(--coral)); box-shadow: 0 0 0 2px var(--bg), 0 0 10px rgb(var(--coral) / .9);
}

/* ───────── عنوان صفحهٔ اصلی ───────── */
.hero { display: grid; justify-items: center; gap: 14px; padding: 26px 4px 6px; text-align: center; }
.hero-t {
    margin: 0; font-size: clamp(22px, 6.2vw, 33px); font-weight: 900; line-height: 1.5; letter-spacing: -.4px; max-width: 24ch;
    background: linear-gradient(100deg, #fff 6%, #ffd79a 42%, #ff9fb4 78%, #d7c4ff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: 0 18px 50px rgba(255, 159, 90, .18);
}
.hero-bars { display: flex; align-items: center; gap: 4px; height: 24px; direction: ltr; }
.hero-bars i {
    width: 4px; height: 100%; border-radius: 4px; transform-origin: center; background: var(--brand); opacity: .9;
    animation: hb 2s ease-in-out infinite;
}
.hero-bars i:nth-child(1) { height: 40%; animation-delay: -1.8s; } .hero-bars i:nth-child(2) { height: 72%; animation-delay: -1.5s; }
.hero-bars i:nth-child(3) { height: 100%; animation-delay: -1.2s; } .hero-bars i:nth-child(4) { height: 58%; animation-delay: -.9s; }
.hero-bars i:nth-child(5) { height: 88%; animation-delay: -.65s; } .hero-bars i:nth-child(6) { height: 46%; animation-delay: -.42s; }
.hero-bars i:nth-child(7) { height: 68%; animation-delay: -.22s; } .hero-bars i:nth-child(8) { height: 34%; animation-delay: 0s; }
@keyframes hb { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* جست‌وجو */
.search {
    display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; padding: 0 16px; height: 54px; border-radius: 18px;
    background: var(--glass), var(--surf); border: 1px solid var(--line2); color: var(--muted);
    box-shadow: var(--sh-1); transition: border-color .16s, box-shadow .16s;
}
.search:focus-within { border-color: rgb(var(--amber) / .65); box-shadow: 0 0 0 4px rgb(var(--amber) / .12), var(--sh-1); color: rgb(var(--amber)); }
.search-in { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 500 14.5px var(--font); color: var(--ink); }
.search-in::placeholder { color: var(--faint); }
.search-in::-webkit-search-cancel-button { filter: invert(.7); }

/* ───────── عنوان بخش‌ها ───────── */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 30px 0 14px; }
.sec-head .sec-title { margin: 0; }
.sec-head small { color: var(--faint); font-size: 12.5px; }
.sec-title {
    position: relative; margin: 28px 0 14px; padding-inline-start: 14px; font-size: 17.5px; font-weight: 900; color: var(--ink);
}
.sec-title::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 5px; height: 20px; margin-top: -10px;
    border-radius: 5px; background: var(--brand); box-shadow: 0 0 14px rgba(255, 159, 90, .5);
}

/* ───────── کاشی ابزارها ───────── */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
    min-width: 0; min-height: 118px; padding: 16px 6px 13px; border-radius: 22px; text-align: center;
    background: linear-gradient(165deg, rgb(var(--c) / .14), rgba(255, 255, 255, .03) 52%), var(--surf);
    border: 1px solid var(--line2); color: var(--ink); font: 800 13px/1.5 var(--font);
    box-shadow: var(--sh-1); transition: border-color .18s, transform .16s, box-shadow .18s;
}
.tile::after {   /* درخشش نرم بالای کاشی */
    content: ''; position: absolute; top: -40%; left: 50%; width: 120%; height: 70%; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgb(var(--c) / .22), transparent 72%); opacity: .8; pointer-events: none;
}
.tile .ti {
    position: relative; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; color: var(--on-c);
    background: linear-gradient(150deg, rgb(var(--c)), rgb(var(--c) / .72));
    box-shadow: 0 10px 22px -10px rgb(var(--c) / .85), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.tile .tt { display: block; padding: 0 2px; }
.tile:hover { border-color: rgb(var(--c) / .6); transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgb(var(--c) / .8), var(--sh-1); }
.tile:active { transform: scale(.96); }
.new {
    display: inline-block; padding: 0 7px; border-radius: 7px; font: 700 10px/18px var(--font); font-style: normal;
    color: rgb(var(--c)); background: rgb(var(--c) / .16);
}
.tile .tt .new { display: block; width: max-content; margin: 4px auto 0; }
.group[hidden] { display: none; }

/* ───────── ناوبری پایین ───────── */
.bottomnav {
    position: fixed; z-index: 30; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%);
    width: min(calc(100% - 32px), 430px); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 7px;
    border-radius: 24px; background: rgba(26, 20, 40, .86); border: 1px solid var(--line2);
    box-shadow: 0 22px 46px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.bottomnav button {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 18px;
    background: transparent; color: var(--muted); font: 800 13.5px var(--font); transition: color .16s, background .16s, box-shadow .16s;
}
.bottomnav button:not(.on):hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.bottomnav button.on { color: var(--on-c); background: var(--brand); box-shadow: 0 10px 22px -12px rgba(255, 159, 90, .9); }
.bottomnav .badge { top: 10px; inset-inline-end: 22%; }
.bottomnav button.on .badge { background: var(--on-c); box-shadow: none; }
body.in-tool .bottomnav { display: none; }

/* ───────── کارت و فرم ───────── */
.card {
    background: var(--glass), var(--surf); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 16px;
    box-shadow: var(--sh-1);
}
.card + .card, .card + .stack, .stack + .card, .notice + .card, .notice + .stack { margin-top: 12px; }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.card-title .ico { color: rgb(var(--c)); }

.field { display: grid; gap: 8px; margin-top: 18px; }
.field:first-child, .card-title + .field { margin-top: 6px; }
.field > .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; font-weight: 700; }
.lbl .val { color: rgb(var(--c)); font-weight: 800; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.9; }
.hint.warn { color: rgb(var(--amber)); }

input[type=range].rng {
    -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; direction: ltr; touch-action: pan-y; --p: 50%;
}
.rng::-webkit-slider-runnable-track { height: 7px; border-radius: 7px; background: linear-gradient(90deg, rgb(var(--c)) var(--p), rgba(255, 255, 255, .09) var(--p)); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7.5px; border-radius: 50%;
    background: var(--ink); border: 4px solid rgb(var(--c)); box-shadow: 0 3px 12px rgb(var(--c) / .5); }
.rng::-moz-range-track { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .09); }
.rng::-moz-range-progress { height: 7px; border-radius: 7px; background: rgb(var(--c)); }
.rng::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid rgb(var(--c)); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line); }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1 1 0; min-width: 0; padding: 10px 6px; border: 0; border-radius: var(--r-sm); background: transparent;
    color: var(--muted); font: 700 13px/1.4 var(--font); transition: background .15s, color .15s; }
.seg.wrap button { flex: 1 1 30%; }
.seg button:not(.on):hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.seg button.on { background: rgb(var(--c)); color: var(--on-c); box-shadow: 0 6px 16px -10px rgb(var(--c)); }

.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; margin-top: 12px;
    border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line); cursor: pointer; user-select: none;
    transition: border-color .15s, background .15s; }
.sw:hover { border-color: var(--line2); }
.sw.on { border-color: rgb(var(--c) / .4); background: linear-gradient(180deg, rgb(var(--c) / .09), rgba(0, 0, 0, 0)), var(--well); }
.sw .t { display: grid; gap: 1px; font-size: 13.5px; font-weight: 700; }
.sw .t small { font-weight: 400; font-size: 12px; color: var(--muted); }
.tg { position: relative; flex: none; width: 46px; height: 28px; border-radius: 20px; background: rgba(255, 255, 255, .13); direction: ltr; transition: background .18s; }
.tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink);
    transition: left .18s; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.sw.on .tg { background: rgb(var(--c)); }
.sw.on .tg::after { left: 21px; background: #fff; }

.sel, .inp {
    width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--well);
    color: var(--ink); font: 600 14px var(--font); transition: border-color .15s, box-shadow .15s;
}
.sel { -webkit-appearance: none; appearance: none; padding-inline-end: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aba1bc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 14px center; }
.sel option { background: #1a1428; color: #fff; }
.inp:focus, .sel:focus { outline: none; border-color: rgb(var(--c) / .8); box-shadow: 0 0 0 3px rgb(var(--c) / .16); }
.inp::placeholder { color: var(--faint); }
.inp.ltr-in { direction: ltr; text-align: left; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2);
    background: rgba(255, 255, 255, .025); color: var(--ink); font: 700 13px var(--font); transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: rgb(var(--c) / .55); }
.chip.on { background: rgb(var(--c) / .16); border-color: rgb(var(--c)); color: rgb(var(--c)); box-shadow: 0 0 0 3px rgb(var(--c) / .1); }

.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; background: var(--k); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.colors button.on { border-color: var(--ink); }

/* ───────── دکمه‌ها ───────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 15px;
    border: 1px solid var(--line2); background: var(--glass), var(--surf2); color: var(--ink); font: 700 14px var(--font);
    transition: transform .1s, background .15s, filter .15s, opacity .15s, border-color .15s;
}
.btn:hover { background: #342b48; border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: scale(.97); }
.btn.primary { border: 0; color: var(--on-c); background: linear-gradient(140deg, rgb(var(--c)), rgb(var(--c) / .78));
    box-shadow: 0 14px 30px -14px rgb(var(--c) / .95), inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffb4a6; border-color: rgba(255, 122, 102, .4); background: transparent; }
.btn.sm { padding: 8px 12px; font-size: 12.5px; border-radius: 12px; gap: 6px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .4; pointer-events: none; box-shadow: none; }
/* دکمهٔ دانلود هنگام ساخت لینک */
.btn.loading, .icon-btn.loading { position: relative; opacity: .75 !important; pointer-events: none; }
.btn.loading::after, .icon-btn.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-inline-end-color: transparent; animation: btnspin .8s linear infinite; }
.icon-btn.loading > svg { display: none; }
@keyframes btnspin { to { transform: rotate(360deg); } }
.btn.lg { padding: 16px 20px; font-size: 16px; font-weight: 900; border-radius: 20px; }

/* ───────── پنجرهٔ پیشرفت ───────── */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
    background: rgba(9, 6, 14, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadein .2s both; }
.progress-card { width: min(100%, 360px); padding: 28px 22px 18px; text-align: center; border-radius: 30px;
    background: var(--glass), var(--surf); border: 1px solid var(--line2); box-shadow: var(--sh-2); }
.eqbars { display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 54px; margin-bottom: 18px; direction: ltr; }
.eqbars i { width: 7px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, rgb(var(--c)), rgb(var(--c) / .45));
    transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eqbars i:nth-child(1) { animation-delay: -.9s; } .eqbars i:nth-child(2) { animation-delay: -.6s; }
.eqbars i:nth-child(3) { animation-delay: -.3s; } .eqbars i:nth-child(4) { animation-delay: -.75s; }
.eqbars i:nth-child(5) { animation-delay: -.15s; } .eqbars i:nth-child(6) { animation-delay: -.45s; }
.eqbars i:nth-child(7) { animation-delay: -.05s; }
@keyframes eq { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.pc-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.pc-bar { height: 9px; border-radius: 9px; background: var(--well); overflow: hidden; }
.pc-bar span { display: block; height: 100%; width: 0; border-radius: 9px; transition: width .35s ease;
    background: linear-gradient(90deg, rgb(var(--c) / .7), rgb(var(--c))); }
.pc-meta { display: flex; justify-content: space-between; margin: 10px 2px 14px; font-size: 13px; color: var(--muted); }
.pc-meta b { color: rgb(var(--c)); font-weight: 800; }

/* ───────── اعلان و پنل پایین ───────── */
.toasts { position: fixed; top: calc(14px + var(--safe-t)); left: 0; right: 0; z-index: 200; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { max-width: 440px; padding: 12px 16px; border-radius: 16px; font-size: 13.5px; font-weight: 600; line-height: 1.8;
    background: rgba(44, 35, 64, .96); border: 1px solid var(--line2); box-shadow: var(--sh-2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: toastin .25s both; }
.toast.error { border-color: rgba(255, 122, 102, .6); color: #ffd2c9; }
.toast.ok { border-color: rgba(94, 224, 181, .5); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .35s; }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

.sheet-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(9, 6, 14, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadein .2s both; }
.sheet { position: relative; width: min(100%, 820px); max-height: 82vh; overflow: auto; padding: 8px 16px calc(22px + var(--safe-b));
    border-radius: 30px 30px 0 0; background: var(--bg2); border-top: 1px solid var(--line2);
    box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .95); animation: sheetin .28s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes sheetin { from { transform: translateY(40px); opacity: 0; } }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 4px; margin: 6px auto 14px; background: rgba(255, 255, 255, .2); }
.sheet h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.sheet .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sheet .tile { min-height: 94px; padding: 12px 2px 8px; border-radius: 18px; font-size: 11.5px; gap: 7px; }
.sheet .tile .ti { width: 38px; height: 38px; border-radius: 13px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ════════════════ شکل موج ════════════════ */
.wv { direction: ltr; border-radius: 20px; background: var(--well); border: 1px solid var(--line); overflow: hidden; }
.wv-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgb(var(--c) / .5) transparent; padding-top: 4px; }
.wv-scroll::-webkit-scrollbar { height: 6px; }
.wv-scroll::-webkit-scrollbar-thumb { background: rgb(var(--c) / .45); border-radius: 6px; }
.wv-inner { position: relative; min-width: 100%; }
.wv-stage { position: relative; cursor: crosshair; }
.wv-cv { position: absolute; top: 0; left: 0; display: block; }
.wv-clip { position: absolute; top: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.wv-ruler { display: block; }
.wv-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; z-index: 3; pointer-events: none; background: var(--ink); box-shadow: 0 0 10px rgba(255, 255, 255, .7); }
.wv-h { position: absolute; top: 0; bottom: 0; left: 0; width: 38px; z-index: 4; touch-action: none; cursor: ew-resize; }
.wv-h.s { margin-left: -4px; } .wv-h.e { margin-left: -34px; }
.wv-h i { position: absolute; top: 0; bottom: 0; width: 3px; background: rgb(var(--c)); }
.wv-h.s i { left: 4px; margin-left: -1.5px; } .wv-h.e i { left: 34px; margin-left: -1.5px; }
.wv-h i::before, .wv-h i::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    background: rgb(var(--c)); border: 3px solid var(--well); box-shadow: 0 0 0 1.5px rgb(var(--c)); }
.wv-h.s i::before, .wv-h.s i::after { left: -1px; }
.wv-h.e i::before, .wv-h.e i::after { right: -1px; }
.wv-h i::before { top: -2px; } .wv-h i::after { bottom: -2px; }
.wv-h.drag i { width: 4px; }
.wv-pt { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 3; pointer-events: none; }
.wv-pt i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: rgb(var(--c)); }
.wv-pt i::before { content: ''; position: absolute; top: -2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
    background: rgb(var(--c)); border: 3px solid var(--well); box-shadow: 0 0 0 1.5px rgb(var(--c)); }
.wv-mks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.wv-mk { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.wv-mk::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; border-left: 2px dashed rgb(var(--c)); }
.wv-mk b { position: absolute; top: 4px; left: 0; transform: translateX(-50%); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
    background: rgb(var(--c)); color: var(--on-c); font: 800 12px/22px var(--font); text-align: center; }
.wv-mk-x { position: absolute; bottom: 6px; left: 0; transform: translateX(-50%); pointer-events: auto; width: 24px; height: 24px; padding: 0;
    border-radius: 50%; display: grid; place-items: center; background: var(--well); border: 1px solid rgb(var(--c) / .7); color: rgb(var(--c)); }
.wv-ctrl { display: grid; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.wv-row { display: flex; align-items: center; gap: 6px; }
.wv-row .sp { flex: 1; }
.wv-row .wv-txt { flex: 1; justify-content: center; }
.wv-play { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--on-c);
    background: linear-gradient(145deg, rgb(var(--c)), rgb(var(--c) / .75)); box-shadow: 0 10px 22px -10px rgb(var(--c) / .95), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .1s, filter .15s; }
.wv-play:hover { filter: brightness(1.07); }
.wv-play:active { transform: scale(.92); }
.wv-sq { flex: none; width: 36px; height: 36px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surf);
    color: var(--ink); display: grid; place-items: center; }
.wv-sq.on { background: rgb(var(--c) / .2); color: rgb(var(--c)); border-color: rgb(var(--c) / .6); }
.wv-txt { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px; border-radius: 12px; white-space: nowrap;
    border: 1px solid rgb(var(--c) / .45); background: rgb(var(--c) / .12); color: rgb(var(--c)); font: 700 12.5px var(--font); direction: rtl; }
.wv-time { flex: none; padding: 0 4px; font: 600 12px var(--font); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.wv.compact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-radius: 18px; }
.wv.compact .wv-ctrl { order: -1; gap: 3px; padding: 8px 10px; border: 0; background: none; }
.wv.compact .wv-row { flex-direction: column; gap: 3px; }
.wv.compact .wv-time { font-size: 10px; padding: 0; }
.wv.compact .wv-scroll { padding: 0; }

/* ════════════════ صفحهٔ ابزار ════════════════ */
.tool-head { display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--safe-t)) 0 16px; }
.tool-head .back { flex: none; }
.tool-head .tbadge { flex: none; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: var(--on-c);
    background: linear-gradient(150deg, rgb(var(--c)), rgb(var(--c) / .72));
    box-shadow: 0 12px 26px -12px rgb(var(--c) / .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.tool-head .th { min-width: 0; }
.tool-head h1 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.4; letter-spacing: -.2px; }
.tool-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* متن توجه بالای ابزار */
.notice {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 20px;
    background: linear-gradient(180deg, rgb(var(--amber) / .13), rgb(var(--amber) / .04)); border: 1px solid rgb(var(--amber) / .34);
}
.notice .nicon { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: var(--on-c);
    background: var(--brand); margin-top: 2px; box-shadow: 0 8px 18px -10px rgba(255, 159, 90, .9); }
.notice p { margin: 0; font-size: 13.5px; line-height: 2; color: var(--ink); }
.notice b { color: rgb(var(--amber)); font-weight: 800; }

.drop { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; border-radius: 22px; cursor: pointer;
    border: 1.5px dashed rgb(var(--c) / .45); background: radial-gradient(90% 80% at 50% 0%, rgb(var(--c) / .07), transparent 72%);
    transition: border-color .15s, background .15s, transform .12s; }
.drop:hover, .drop.over { border-color: rgb(var(--c)); background: radial-gradient(90% 80% at 50% 0%, rgb(var(--c) / .14), transparent 74%); }
.drop.over { transform: scale(1.01); }
.drop-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; color: rgb(var(--c));
    background: rgb(var(--c) / .14); box-shadow: inset 0 0 0 1px rgb(var(--c) / .22); margin-bottom: 4px; }
.drop b { font-size: 15px; font-weight: 800; }
.drop small { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.drop.mini { padding: 14px; grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; gap: 12px; text-align: start; }
.drop.mini .drop-ico { width: 42px; height: 42px; border-radius: 14px; margin: 0; }
.drop.mini b { font-size: 14px; } .drop.mini small { margin: 0; }

.upbar { display: grid; gap: 8px; padding: 20px 16px; text-align: center; }
.upbar .nm { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.upbar small { color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: var(--well); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: rgb(var(--c)); transition: width .2s; }
.bar.ind span { width: 40%; animation: ind 1.1s ease-in-out infinite; }
@keyframes ind { 0% { margin-inline-start: -40%; } 100% { margin-inline-start: 100%; } }

.fchip { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fchip .fi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; color: rgb(var(--c)); background: rgb(var(--c) / .14); }
.fchip .fi img { width: 100%; height: 100%; object-fit: cover; }
.fchip .fm { flex: 1; min-width: 0; display: grid; }
.fchip .fm b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.fchip .fm small { font-size: 12px; color: var(--muted); direction: ltr; text-align: start; unicode-bidi: plaintext; }

.tbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; direction: ltr; }
.tfield { display: grid; gap: 6px; }
.tfield > span { font-size: 12.5px; color: var(--muted); font-weight: 600; direction: rtl; text-align: center; }
.tfield.e .row { flex-direction: row-reverse; }
.tfield .row { display: flex; gap: 6px; }
.tfield .inp { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; padding: 11px 8px; }
.tfield .sq { flex: none; width: 46px; border-radius: 14px; border: 1px solid rgb(var(--c) / .45); background: rgb(var(--c) / .12); color: rgb(var(--c));
    display: grid; place-items: center; padding: 0; }
.tinfo { direction: rtl; grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 0 2px; }
.tinfo b { color: rgb(var(--c)); direction: ltr; unicode-bidi: isolate; }
.mkbar { display: grid; gap: 10px; margin-top: 12px; }
.mkbar .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mklist { display: flex; flex-wrap: wrap; gap: 6px; }
.mklist .chip { padding: 6px 8px 6px 12px; font-size: 12.5px; }
.mklist .chip i { font-style: normal; direction: ltr; }
.mklist .chip button { border: 0; background: rgba(255, 255, 255, .12); color: inherit; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; padding: 0; }

.flist { display: grid; gap: 10px; }
.fitem { display: grid; gap: 10px; padding: 12px; border-radius: 20px; background: var(--well); border: 1px solid var(--line); }
.fitem .top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.fitem .ix { flex: none; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font: 800 12.5px var(--font);
    background: linear-gradient(145deg, rgb(var(--c)), rgb(var(--c) / .75)); color: var(--on-c); }
.fitem .fm { flex: 1 1 130px; min-width: 0; display: grid; }
.fitem .fm b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.fitem .fm small { font-size: 12px; color: var(--muted); }
.fitem .acts { display: flex; gap: 4px; flex: none; margin-inline-start: auto; }
.fitem .wv { background: rgba(0, 0, 0, .22); }
.fitem.busy .bar { margin-top: 2px; }
.fsum { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.fsum b { color: rgb(var(--c)); direction: ltr; unicode-bidi: isolate; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pgrid button { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 78px; padding: 12px 6px; border-radius: var(--r-md); border: 1px solid var(--line);
    background: var(--well); color: var(--ink); font: 700 12.5px/1.5 var(--font); transition: background .15s, border-color .15s, color .15s, transform .12s; }
.pgrid button .ico { color: var(--muted); }
.pgrid button:not(.on):hover { border-color: var(--line2); background: var(--surf); }
.pgrid button:active { transform: scale(.97); }
.pgrid button.on { background: rgb(var(--c) / .15); border-color: rgb(var(--c)); color: rgb(var(--c)); box-shadow: 0 0 0 3px rgb(var(--c) / .1); }
.pgrid button.on .ico { color: rgb(var(--c)); }
.pgrid.two { grid-template-columns: 1fr 1fr; }
.pgrid.four { grid-template-columns: repeat(4, 1fr); }

/* اکولایزر */
.eq { direction: ltr; position: relative; padding: 14px 6px 4px; border-radius: 20px; background: var(--well); border: 1px solid var(--line); }
.eq-curve { position: absolute; left: 6px; right: 6px; top: 40px; width: calc(100% - 12px); height: 160px; pointer-events: none; }
.eq-cols { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0; }
.eq-col { display: grid; justify-items: center; gap: 8px; min-width: 0; touch-action: none; user-select: none; }
.eq-g { font: 700 10.5px var(--font); font-variant-numeric: tabular-nums; color: rgb(var(--c)); min-height: 16px; }
.eq-track { position: relative; width: 100%; max-width: 34px; height: 160px; cursor: ns-resize; touch-action: none; }
.eq-track::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.eq-track::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: rgba(255, 255, 255, .25); }
.eq-fill { position: absolute; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: rgb(var(--c)); }
.eq-thumb { position: absolute; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); border: 4px solid rgb(var(--c)); box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.eq-f { font: 600 10.5px var(--font); color: var(--muted); }

/* تنظیمات خروجی */
details.od { padding: 0; overflow: hidden; }
details.od > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; cursor: pointer; font-weight: 800; font-size: 14px; }
details.od > summary::-webkit-details-marker { display: none; }
details.od > summary small { color: rgb(var(--c)); font-weight: 700; direction: ltr; unicode-bidi: isolate; font-size: 12.5px; margin-inline-start: auto; }
details.od > summary .chev { transition: transform .2s; color: var(--muted); }
details.od[open] > summary .chev { transform: rotate(90deg); }
details.od .odb { padding: 0 16px 16px; }

/* نوار اجرا */
.runbar { position: sticky; bottom: 0; z-index: 10; margin: 16px -16px 0; padding: 12px 16px calc(12px + var(--safe-b));
    background: linear-gradient(180deg, rgba(11, 8, 18, 0), rgba(11, 8, 18, .95) 34%); }

/* نتیجه */
.result { border-color: rgb(var(--c) / .42); box-shadow: 0 0 0 1px rgb(var(--c) / .08), var(--sh-1); scroll-margin-top: 16px; }
.res-h { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; margin-bottom: 6px; }
.res-h .ok { width: 31px; height: 31px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(145deg, rgb(var(--c)), rgb(var(--c) / .75)); color: var(--on-c); box-shadow: 0 8px 18px -10px rgb(var(--c)); }
.out { display: grid; gap: 10px; margin-top: 12px; }
.out + .out { padding-top: 14px; border-top: 1px solid var(--line); }
.out .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.out .meta b { color: var(--ink); font-size: 13.5px; direction: ltr; unicode-bidi: plaintext; }
.out .meta .tagx { padding: 1px 9px; border-radius: 8px; background: rgb(var(--c) / .16); color: rgb(var(--c)); font-weight: 800; direction: ltr; }
.out .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.out .btns .btn { flex: 1 1 auto; }
.out video, .out img.pic { width: 100%; border-radius: 18px; background: #000; display: block; }
.outrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 18px; background: var(--well); border: 1px solid var(--line); }
.outrow .fm { flex: 1; min-width: 0; display: grid; }
.outrow .fm b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.outrow .fm small { font-size: 12px; color: var(--muted); }

/* مقایسهٔ قبل/بعد */
.ab { display: flex; align-items: center; gap: 10px; }
.ab-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ab .seg { flex: 1; padding: 3px; }
.ab .seg button { padding: 7px 6px; font-size: 12.5px; }

.meters { display: grid; gap: 10px; margin-top: 14px; }
.meter { display: grid; grid-template-columns: 92px 1fr 86px; align-items: center; gap: 10px; font-size: 12.5px; }
.meter .mn { color: var(--muted); }
.meter .mb { height: 8px; border-radius: 8px; background: var(--well); overflow: hidden; direction: ltr; }
.meter .mb span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, rgb(var(--c) / .65), rgb(var(--c))); }
.meter .mb span.old { background: rgba(255, 255, 255, .28); }
.meter .mv { direction: ltr; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kv > div { padding: 11px 12px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); display: grid; gap: 1px; }
.kv small { color: var(--muted); font-size: 11.5px; }
.kv b { font-size: 15px; direction: ltr; text-align: start; unicode-bidi: plaintext; font-variant-numeric: tabular-nums; }

/* تمپو و گام */
.music { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mu { display: grid; gap: 0; padding: 14px; border-radius: 20px; background: linear-gradient(170deg, rgb(var(--c) / .14), rgb(var(--c) / .05)); border: 1px solid rgb(var(--c) / .3); }
.mu small { font-size: 12px; color: var(--muted); }
.mu b { font-size: 30px; font-weight: 900; line-height: 1.35; color: rgb(var(--c)); }
.mu b:not(.ltr) { font-size: 22px; padding: 6px 0 4px; }
.mu span { font-size: 12px; color: var(--muted); }
.mu-note { grid-column: 1 / -1; margin: 2px 2px 0; font-size: 11.5px; color: var(--faint); line-height: 1.8; }

.saved { margin-top: 12px; padding: 13px 14px; border-radius: 18px; background: rgb(var(--c) / .1); border: 1px solid rgb(var(--c) / .3); font-size: 13.5px; line-height: 1.9; }
.saved b { color: rgb(var(--c)); unicode-bidi: isolate; }
.note { margin-top: 12px; font-size: 12.5px; color: rgb(var(--amber)); }
.errbox { display: grid; gap: 6px; margin-top: 14px; padding: 14px; border-radius: 20px; border: 1px solid rgba(255, 122, 102, .45); background: rgba(255, 122, 102, .07); }
.errbox b { color: #ffb4a6; display: flex; gap: 8px; align-items: center; }
.errbox > span { font-size: 12.5px; color: var(--muted); }
.errbox summary { cursor: pointer; font-size: 12px; color: var(--faint); }
.errbox pre { margin: 8px 0 0; font: 11px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); white-space: pre-wrap; direction: ltr; text-align: left; max-height: 120px; overflow: auto; }

/* تولیدات */
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 4px; }
.lib-head h1 { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.3px; }
.lib-note { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.lib-list { display: grid; gap: 10px; }
.lib-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px;
    background: linear-gradient(165deg, rgb(var(--c) / .1), rgba(255, 255, 255, .02) 60%), var(--surf);
    border: 1px solid var(--line2); box-shadow: var(--sh-1); }
.lib-item .lp { flex: none; width: 46px; height: 46px; border-radius: 15px; border: 0; display: grid; place-items: center; color: var(--on-c);
    background: linear-gradient(145deg, rgb(var(--c)), rgb(var(--c) / .74)); box-shadow: 0 10px 20px -12px rgb(var(--c) / .9); }
.lib-item .lp.kind { background: rgb(var(--c) / .14); color: rgb(var(--c)); box-shadow: none; }
.lib-item .fm { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lib-item .fm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.lib-item .fm small { font-size: 12px; color: var(--muted); }
.lib-item .acts { display: flex; gap: 6px; flex: none; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--muted); }
.empty.small { padding: 34px 20px; }
.empty .ei { width: 78px; height: 78px; border-radius: 26px; display: grid; place-items: center; color: rgb(var(--amber));
    background: rgb(var(--amber) / .12); box-shadow: inset 0 0 0 1px rgb(var(--amber) / .2); }
.empty b { color: var(--ink); font-size: 16px; }

@media (max-width: 380px) {
    .tool-head h1 { font-size: 18px; }
    .pgrid.four { grid-template-columns: repeat(2, 1fr); }
    .tile { min-height: 108px; font-size: 12.5px; gap: 9px; }
    .tile .ti { width: 44px; height: 44px; border-radius: 14px; }
    .music { grid-template-columns: 1fr; }
}

.stack { display: grid; gap: 12px; }
.fxamps { display: grid; gap: 2px; margin-top: 6px; }
.form { display: block; }
.form > .sw:first-child { margin-top: 0; }
.res-box { margin-top: 14px; }

/* پیش‌نمایش زنده (داخل نوار اجرا) */
.pv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border-radius: 22px;
    background: var(--glass), var(--surf2); border: 1px solid rgb(var(--c) / .42); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .95); }
.pv-btn { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--on-c);
    background: linear-gradient(145deg, rgb(var(--c)), rgb(var(--c) / .75)); box-shadow: 0 10px 20px -12px rgb(var(--c) / .95); }
.pv-btn:disabled { opacity: .5; }
.pv-t { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.pv-t b { font-size: 13.5px; font-weight: 800; }
.pv-t small { font-size: 12px; color: var(--muted); }
.eqbars.mini { height: 26px; margin: 0; gap: 3px; flex: none; }
.eqbars.mini i { width: 4px; }
.pv:not(.live) .eqbars.mini i { animation-play-state: paused; transform: scaleY(.22); opacity: .5; }
.pv.err { border-color: rgba(255, 122, 102, .65); }
.pv.err .pv-t small { color: #ffb4a6; }
