/* Social Studio — hệ thiết kế chính (nền than tối, chữ trắng ngà, nhấn cam). Nạp SAU legacy.css + video.css (bản chép tự sinh của workflow cũ)
   nên các biến ở đây ghi đè màu của workflow để mọi màn cùng một bảng màu. Font: Bricolage Grotesque (tiêu đề) + Be Vietnam Pro (chữ). */
:root {
  color-scheme: dark;
  --bg: #121316; --s1: #1A1C20; --s2: #22252A; --s3: #2B2E34; --line: #2C2F35; --line-2: #383C44;
  --tx: #F3F0E8; --mut: #A5A69E; --mut-2: #7C7D77; --ink: #1A0F06;
  --acc: #FF8A3D; --acc-h: #FF9B57; --acc-soft: rgba(255,138,61,.14); --acc-line: rgba(255,138,61,.45);
  --ok: #7CF0C5; --ok-soft: rgba(124,240,197,.13); --warn: #FFC56B; --warn-soft: rgba(255,197,107,.13); --err: #FF8F8F; --err-soft: rgba(255,107,107,.13);
  --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rail: 84px; --tabbar: 76px;
  /* biến của phần workflow chép từ Dashboard → cùng bảng màu */
  --surface: var(--s2); --surface-2: var(--s1); --text: var(--tx); --muted: var(--mut); --hover: rgba(255,255,255,.06);
  --accent: var(--acc); --accent-ink: var(--acc); --accent-soft: var(--acc-soft);
  --ok-bg: var(--ok-soft); --warn-bg: var(--warn-soft); --err-bg: var(--err-soft);
  --v-card: var(--s1); --v-card-2: #1E2024; --v-sunk: #16171A; --v-line: var(--line); --v-line-2: var(--line-2); --v-line-3: #4A4F58;
  --v-text: var(--tx); --v-text-2: #C9C7BE; --v-text-3: var(--mut);
  --v-accent: var(--acc); --v-accent-h: #FF7A22; --v-accent-a: #F06A12; --v-accent-soft: var(--acc-soft); --v-ring: rgba(255,138,61,.35);
  --v-ok: var(--ok); --v-ok-bg: var(--ok-soft); --v-warn: var(--warn); --v-warn-bg: var(--warn-soft); --v-err: var(--err); --v-err-bg: var(--err-soft);
  --v-r: 12px; --v-r-lg: 16px; --v-r-xl: 22px;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); }
body { min-height: 100vh; min-height: 100dvh; color: var(--tx); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: inherit; } button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; } :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.vi { width: 1.15em; height: 1.15em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; line-height: 1.15; }

/* ============ khung: rail + nội dung + thanh tab (điện thoại) ============ */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 0 18px; border-right: 1px solid var(--line); background: var(--bg); z-index: 20; }
.rail .logo { width: 44px; height: 44px; border-radius: 14px; background: var(--acc); color: var(--ink); display: grid; place-items: center; margin-bottom: 22px; text-decoration: none; }
.rail .logo svg { width: 20px; height: 20px; }
.rail a.nav, .rail button.nav { position: relative; width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; color: var(--mut); display: grid; place-items: center; text-decoration: none; transition: background .15s, color .15s; }
.rail .nav svg.vi { width: 22px; height: 22px; }
.rail .nav:hover { background: rgba(255,255,255,.07); color: var(--tx); }
.rail .nav[aria-current=page] { background: var(--acc-soft); color: var(--acc); }
.rail .nav[aria-current=page]::before { content: ""; position: absolute; left: -18px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
.rail .nav .tip { position: absolute; left: 58px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 9px; background: var(--s3); color: var(--tx); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.rail .nav:hover .tip, .rail .nav:focus-visible .tip { opacity: 1; }
.rail .grow { flex: 1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; border: 0; color: var(--tx); }
#view { min-width: 0; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); background: rgba(18,19,22,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { height: 58px; border: 0; background: transparent; color: var(--mut); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; text-decoration: none; }
  .tabbar svg.vi { width: 22px; height: 22px; }
  .tabbar [aria-current=page] { color: var(--acc); font-weight: 700; }
}

/* ============ trang ============ */
.page { padding: 32px clamp(16px, 3.4vw, 40px) 64px; max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.page.narrow { max-width: 1080px; }
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.phead h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.phead p { margin-top: 8px; color: var(--mut); font-size: 14.5px; max-width: 680px; }
.phead .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--mut); font-size: 14px; margin-top: 8px; }
.phead .meta b { color: var(--tx); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .main { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols > .side { flex: 1 1 340px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .cols > .side { flex: 0 0 380px; } }
.card { border-radius: var(--r-xl); background: var(--s1); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.tight { padding: 16px; gap: 12px; border-radius: var(--r-lg); }
.card h2 { font-size: 20px; font-weight: 650; }
.card h3 { font-size: 16px; font-weight: 650; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; font-weight: 650; }
.muted { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.empty { padding: 34px 16px; text-align: center; color: var(--mut); border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg.vi { width: 30px; height: 30px; color: var(--mut-2); }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* ============ nút, ô nhập, công tắc, chip ============ */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--tx); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; }
.b:hover:not(:disabled) { background: rgba(255,255,255,.06); border-color: #4A4F58; }
.b:active:not(:disabled) { transform: scale(.98); }
.b:disabled { opacity: .45; cursor: not-allowed; }
.b svg.vi { width: 18px; height: 18px; }
.b.pri { background: var(--acc); border-color: var(--acc); color: var(--ink); font-weight: 700; }
.b.pri:hover:not(:disabled) { background: var(--acc-h); border-color: var(--acc-h); }
.b.dan { border-color: rgba(255,107,107,.45); color: var(--err); }
.b.dan:hover:not(:disabled) { background: var(--err-soft); }
.b.ghost { border-color: transparent; color: var(--mut); } .b.ghost:hover:not(:disabled) { color: var(--tx); }
.b.sm { min-height: 36px; padding: 0 14px; font-size: 13px; } .b.lg { min-height: 54px; padding: 0 26px; font-size: 15.5px; }
.b.sq { border-radius: 12px; } .b.icon { width: 44px; padding: 0; border-radius: 12px; } .b.sm.icon { width: 36px; border-radius: 10px; }
.b.block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span, .lab { font-weight: 600; font-size: 12.5px; color: var(--mut); }
.inp, .field > input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .field > select, .field > textarea, textarea.inp, select.inp {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--tx); font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.field > textarea, textarea.inp { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 84px; }
.field > select, select.inp { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A5A69E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.inp:focus, .field > :is(input, select, textarea):focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.inp::placeholder, .field ::placeholder { color: var(--mut-2); }
.ibox { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.ibox:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.ibox > svg.vi { color: var(--mut); width: 19px; height: 19px; }
.ibox input { flex: 1; min-width: 0; height: 48px; background: transparent; border: 0; outline: 0; color: var(--tx); font-size: 16px; }
.ibox.hero { min-height: 64px; border-radius: 22px; background: var(--s1); border: 1.5px solid var(--acc-line); padding: 0 8px 0 18px; }
.ibox.hero > svg.vi { color: var(--acc); }
.ibox textarea { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; resize: none; padding: 14px 0; font-size: 15px; color: var(--tx); line-height: 1.45; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #3A3E46; border: 0; padding: 0; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #C9C9C0; transition: left .15s, background .15s; }
.sw[aria-checked=true] { background: var(--acc); } .sw[aria-checked=true]::after { left: 22px; background: var(--ink); }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.toggle-row .t { flex: 1; min-width: 0; font-weight: 600; } .toggle-row .t small { display: block; color: var(--mut); font-weight: 400; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--mut); font-weight: 600; font-size: 13px; }
.chip svg.vi { width: 15px; height: 15px; }
.chip[aria-pressed=true], .chip[aria-checked=true], .chip.on { background: var(--acc); border-color: var(--acc); color: var(--ink); font-weight: 700; }
.chip.soft[aria-pressed=true] { background: var(--acc-soft); color: var(--acc); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); gap: 2px; }
.seg button { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--mut); font-weight: 600; font-size: 13px; }
.seg button[aria-selected=true], .seg button[aria-pressed=true] { background: var(--s3); color: var(--tx); font-weight: 700; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--tx); text-align: left; }
.opt b { font-size: 15px; } .opt small { color: var(--mut); font-size: 12.5px; }
.opt[aria-checked=true] { border: 1.5px solid var(--acc); background: var(--acc-soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-weight: 700; font-size: 12px; background: var(--s3); color: var(--mut); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.err { background: var(--err-soft); color: var(--err); } .pill.acc { background: var(--acc-soft); color: var(--acc); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--acc-soft); border: 1px solid var(--acc-line); font-size: 13.5px; }
.note > svg.vi { color: var(--acc); width: 20px; height: 20px; margin-top: 1px; }
.note.warn { background: var(--warn-soft); border-color: rgba(255,197,107,.35); } .note.warn > svg.vi { color: var(--warn); }
.note.err { background: var(--err-soft); border-color: rgba(255,107,107,.35); } .note.err > svg.vi { color: var(--err); }
.alert { padding: 12px 14px; border-radius: 14px; background: var(--err-soft); color: var(--err); font-size: 14px; border: 1px solid rgba(255,107,107,.35); }
.prog { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; } .prog > i { display: block; height: 100%; border-radius: 3px; background: var(--acc); transition: width .3s; }
.thumb { position: relative; flex: none; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #2B2E34, #16171A); }
.thumb img, .thumb video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mut-2); }
.thumb .ph svg.vi { width: 28px; height: 28px; }
.brand-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--s2); flex: none; }
.brand-ic svg.vi { width: 17px; height: 17px; }
.kbd { font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--s3); }
.list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.item .tx { flex: 1; min-width: 0; } .item .tx b { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item .tx small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ hộp thoại + thông báo nổi (dùng chung với workflow) ============ */
dialog { margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--s1); color: var(--tx); box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(8,9,10,.66); }
dialog#axdlg, dialog.sd { width: min(540px, calc(100vw - 24px)); overflow: auto; } dialog#axdlg.ax-wide, dialog.sd.wide { width: min(720px, calc(100vw - 24px)); }
dialog .dlg-head, dialog .sd-h { padding: 20px 22px 4px; } dialog .dlg-head h3, dialog .sd-h h3 { font-size: 20px; font-weight: 650; }
dialog .dlg-body, dialog .sd-b { padding: 12px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
#axdlg input:not([type=checkbox]):not([type=radio]):not([type=range]), #axdlg select, #axdlg textarea { background-color: var(--bg); border-color: var(--line); color: var(--tx); border-radius: 12px; }
#axtoasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.ax-toast { pointer-events: auto; cursor: pointer; padding: 12px 16px; border-radius: 14px; background: var(--tx); color: var(--bg); font-size: 14px; font-weight: 500; line-height: 1.45; box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: opacity .3s, transform .3s; }
.ax-toast.err { background: #E5484D; color: #fff; } .ax-toast.ok { background: var(--ok); color: #06261A; } .ax-toast.out { opacity: 0; transform: translateY(6px); }
@media (max-width: 860px) { #axtoasts { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); } }
/* bottom sheet (menu "Thêm" trên điện thoại) */
dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 26px 26px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); }
dialog.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--s3); margin: 0 auto 10px; }
dialog.sheet a, dialog.sheet button.mi { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--tx); font-weight: 600; font-size: 15px; text-decoration: none; text-align: left; }
dialog.sheet a:hover, dialog.sheet button.mi:hover { background: rgba(255,255,255,.05); }
dialog.sheet svg.vi { width: 21px; height: 21px; color: var(--mut); }

/* ============ đăng nhập ============ */
.login { display: flex; flex-wrap: wrap; min-height: 100vh; min-height: 100dvh; }
.login .art { position: relative; flex: 1 1 560px; min-height: 100dvh; overflow: hidden; background: radial-gradient(700px 420px at 15% 0%, rgba(255,138,61,.16), transparent 65%), #17181B; border-right: 1px solid var(--line); }
.login .brandline { position: absolute; left: 56px; top: 48px; display: flex; align-items: center; gap: 12px; font: 700 22px var(--display); letter-spacing: -.01em; }
.login .brandline i { width: 44px; height: 44px; border-radius: 14px; background: var(--acc); color: var(--ink); display: grid; place-items: center; }
.login .stack { position: absolute; left: 50%; top: 150px; width: 520px; height: 470px; margin-left: -260px; }
.login .stack div { position: absolute; border-radius: 26px; border: 1px solid #33363D; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.login .stack .a { left: 0; top: 70px; width: 200px; height: 290px; transform: rotate(-8deg); background: radial-gradient(80% 60% at 70% 20%, #FF8A5B 0%, transparent 55%), radial-gradient(70% 70% at 10% 90%, #1E5B52 0%, transparent 60%), linear-gradient(170deg, #2B2140, #0E0F14); }
.login .stack .b2 { right: 0; top: 40px; width: 200px; height: 290px; transform: rotate(7deg); background: radial-gradient(80% 60% at 60% 15%, #E8E0C8 0%, transparent 50%), radial-gradient(70% 70% at 15% 85%, #6B3B2B 0%, transparent 60%), linear-gradient(175deg, #2A2A2E, #0E0E10); }
.login .stack .c { left: 150px; top: 0; width: 230px; height: 350px; border-radius: 30px; background: radial-gradient(90% 70% at 25% 15%, #F6C768 0%, transparent 55%), radial-gradient(80% 80% at 85% 85%, #5B3FA8 0%, transparent 60%), linear-gradient(165deg, #1B3A4B, #0D1317); overflow: hidden; }
.login .stack .c::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) 62%, rgba(255,255,255,.25) 62%); }
.login .claim { position: absolute; left: 56px; right: 56px; bottom: 56px; }
.login .claim h2 { font-size: 44px; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; max-width: 520px; }
.login .claim p { margin-top: 16px; color: var(--mut); font-size: 16px; max-width: 460px; }
.login main { flex: 1 1 460px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.login form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.login form h1 { font-size: 36px; font-weight: 700; } .login form > div > p { margin-top: 10px; color: var(--mut); }
.login .ibox { min-height: 56px; background: var(--s1); }
.login .foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mut); font-size: 13px; text-align: center; }
.login .foot svg.vi { width: 15px; height: 15px; }
@media (max-width: 860px) {
  .login .art { flex: 0 0 auto; width: 100%; min-height: 300px; height: 300px; border-right: 0; }
  .login .art .stack { top: 40px; transform: scale(.58); transform-origin: top center; }
  .login .art .claim { display: none; } .login .brandline { left: 22px; top: 20px; font-size: 18px; } .login .brandline i { width: 36px; height: 36px; border-radius: 12px; }
  .login main { padding: 4px 22px 40px; align-items: flex-start; } .login form h1 { font-size: 30px; }
}

/* ============ Studio ============ */
.studio-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 1100px) { .studio-top { grid-template-columns: minmax(0, 1fr); } }
.hero-new { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; background: radial-gradient(600px 300px at 0% 0%, rgba(255,138,61,.16), transparent 70%), var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.hero-new h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.hero-new p.sub { color: var(--mut); margin-top: -8px; }
.live { border-radius: var(--r-xl); background: var(--s1); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.live .lv { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.live .lv .thumb { width: 64px; height: 86px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.pcard .thumb { width: 100%; aspect-ratio: 9 / 13; border-radius: 22px; border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.pcard:hover .thumb { transform: translateY(-2px); border-color: var(--line-2); }
.pcard .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); }
.pcard .chip-s { position: absolute; left: 10px; top: 10px; z-index: 2; }
.pcard .bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; } .pcard .bar i { display: block; height: 100%; background: var(--acc); }
.pcard .plats { position: absolute; left: 10px; bottom: 24px; z-index: 2; display: flex; gap: 4px; }
.pcard .plats span { width: 24px; height: 24px; border-radius: 8px; background: rgba(18,19,22,.7); display: grid; place-items: center; } .pcard .plats svg.vi { width: 12px; height: 12px; }
.pcard .t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.pcard .m { color: var(--mut); font-size: 12.5px; margin-top: -6px; }
.conn { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .conn:first-of-type { border-top: 0; }
.conn .tx { flex: 1; min-width: 0; font-weight: 600; } .conn .tx small { display: block; color: var(--mut); font-weight: 400; font-size: 12.5px; }

/* ============ workflow (bản chép) nằm trong khung mới ============ */
.vgx { padding: 24px clamp(14px, 2.4vw, 28px) 40px; }
.vgx .vx-head h1 { font-family: var(--display); }
@media (max-width: 860px) { .vgx { padding-top: 16px; } }

/* ============ Tải video ============ */
.dl-hero { text-align: center; } .dl-hero h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; } .dl-hero p { margin-top: 12px; color: var(--mut); font-size: 16px; }
.dl-res { display: flex; flex-wrap: wrap; gap: 26px; }
.dl-res .thumb { width: 240px; aspect-ratio: 9 / 16; border-radius: 24px; border: 1px solid var(--line-2); }
.dl-res .info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 560px) { .dl-res .thumb { width: 108px; border-radius: 16px; } .dl-res { gap: 14px; } }

/* ============ Lịch đăng ============ */
.cal { border-radius: var(--r-xl); background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.cal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; } .cal-h h2 { font-size: 22px; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 9px 12px; color: var(--mut); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line); }
.cal-d { min-height: 108px; padding: 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; background: transparent; text-align: left; border-right: 0; border-bottom: 0; color: inherit; min-width: 0; }
.cal-d:nth-child(7n+1) { border-left: 0; }
.cal-d:hover { background: #1F2226; } .cal-d.other { background: rgba(255,255,255,.015); color: var(--mut-2); }
.cal-d .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.cal-d.today .n { background: var(--acc); color: var(--ink); } .cal-d.sel { box-shadow: inset 0 0 0 2px var(--acc); }
.ev { display: flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; border-radius: 8px; background: var(--acc-soft); color: var(--acc); font-weight: 700; font-size: 11.5px; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.ev.done { background: var(--ok-soft); color: var(--ok); } .ev.err { background: var(--err-soft); color: var(--err); } .ev.cancelled { background: var(--s3); color: var(--mut); text-decoration: line-through; }
.ev svg.vi { width: 11px; height: 11px; color: var(--tx); }
@media (max-width: 700px) { .cal-d { min-height: 64px; padding: 5px; } .ev { font-size: 0; min-height: 8px; padding: 0; border-radius: 4px; } .ev svg.vi { display: none; } .cal-wd { padding: 8px 4px; text-align: center; } }

/* ============ Dựng video (timeline tự do) ============ */
.ed { display: flex; flex-direction: column; min-height: 100dvh; }
.ed-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-top input.name { background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px; font: 700 18px var(--display); color: var(--tx); min-width: 0; width: 260px; max-width: 50vw; }
.ed-top input.name:hover, .ed-top input.name:focus { border-color: var(--line-2); outline: 0; }
.ed-work { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; }
.ed-lib, .ed-insp { padding: 16px; display: flex; flex-direction: column; gap: 14px; overflow: auto; max-height: calc(100dvh - 380px); min-height: 360px; }
.ed-lib { border-right: 1px solid var(--line); } .ed-insp { border-left: 1px solid var(--line); }
.ed-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 20px; border: 1.5px dashed var(--acc-line); background: rgba(255,138,61,.05); color: var(--tx); text-align: center; }
.ed-drop.over { background: var(--acc-soft); }
.ed-drop i { width: 42px; height: 42px; border-radius: 14px; background: var(--acc); color: var(--ink); display: grid; place-items: center; } .ed-drop i svg.vi { width: 20px; height: 20px; }
.ed-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-asset { position: relative; display: flex; flex-direction: column; gap: 5px; border: 0; background: transparent; padding: 0; color: inherit; text-align: left; min-width: 0; }
.ed-asset .thumb { width: 100%; aspect-ratio: 3 / 4; border: 1px solid #33363D; }
.ed-asset .tg, .ed-asset .du { z-index: 2; }
.ed-asset .tg { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(18,19,22,.75); font-weight: 600; font-size: 10.5px; z-index: 2; }
.ed-asset .du { position: absolute; right: 6px; top: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(18,19,22,.75); font-weight: 600; font-size: 11px; z-index: 2; }
.ed-asset small { color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-asset .add { display: flex; gap: 4px; flex-wrap: nowrap; }
.ed-asset .add .b.sm.icon { width: 32px; min-height: 32px; }
.ed-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: #0E0F11; min-width: 0; }
.ed-canvas { position: relative; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid #3B3F47; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.ed-canvas video, .ed-canvas img.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ed-canvas .txt { position: absolute; max-width: 92%; width: max-content; text-align: center; transform: translate(-50%, -50%); cursor: grab; pointer-events: auto; padding: .12em .22em; touch-action: none; font-weight: 600; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.85); white-space: pre-wrap; line-height: 1.2; }
.ed-canvas .txt.box span { background: rgba(0,0,0,.55); padding: .15em .35em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ed-ctrl { display: flex; align-items: center; gap: 12px; } .ed-ctrl .time { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; } .ed-ctrl .time b { color: var(--tx); }
.ed-tl { border-top: 1px solid var(--line); background: var(--s1); display: flex; flex-direction: column; }
.ed-tools { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-tracks { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); }
.ed-heads { border-right: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 8px; color: var(--mut); font-size: 12px; font-weight: 600; }
.ed-heads div { display: flex; align-items: center; gap: 6px; padding: 0 12px; } .ed-heads svg.vi { width: 14px; height: 14px; }
.ed-lanes { position: relative; overflow-x: auto; overflow-y: hidden; padding: 0 16px 14px; touch-action: pan-x; }
.ed-inner { position: relative; min-width: 100%; }
.ed-ruler { position: relative; height: 28px; border-bottom: 1px solid var(--line); color: var(--mut); font-size: 11px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ed-ruler span { position: absolute; top: 6px; transform: translateX(-50%); }
.ed-lane { position: relative; margin-top: 8px; }
.ed-lane.v { height: 50px; } .ed-lane.t { height: 34px; } .ed-lane.a { height: 40px; }
.ed-clip { position: absolute; top: 0; bottom: 0; border-radius: 10px; border: 1.5px solid transparent; overflow: hidden; display: flex; align-items: center; padding: 0 9px; font-weight: 700; font-size: 11.5px; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; background: #2B2E34 center / auto 100% repeat-x; }
.ed-clip.sel { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(255,138,61,.35); z-index: 2; }
.ed-clip.t { background: rgba(255,138,61,.2); border-color: rgba(255,138,61,.5); text-shadow: none; color: var(--tx); } .ed-clip.t.sel { border-color: var(--acc); }
.ed-clip.a { background: rgba(124,240,197,.12); border-color: rgba(124,240,197,.45); color: var(--tx); text-shadow: none; }
.ed-clip .h { position: absolute; top: 0; bottom: 0; width: 12px; cursor: ew-resize; } .ed-clip .h.l { left: 0; } .ed-clip .h.r { right: 0; }
.ed-clip.sel .h { background: rgba(255,138,61,.55); }
.ed-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--acc); pointer-events: none; z-index: 5; }
.ed-head::before { content: ""; position: absolute; left: -6px; top: 0; width: 14px; height: 14px; border-radius: 4px 4px 7px 7px; background: var(--acc); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; }
.swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
input[type=range] { width: 100%; accent-color: var(--acc); }
@media (max-width: 1100px) { .ed-work { grid-template-columns: 240px minmax(0, 1fr); } .ed-insp { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); max-height: none; min-height: 0; } }
@media (max-width: 760px) {
  .ed-work { grid-template-columns: minmax(0, 1fr); } .ed-stage { order: -1; padding: 10px; } .ed-lib { border-right: 0; border-top: 1px solid var(--line); max-height: none; min-height: 0; }
  .ed-top input.name { width: 150px; font-size: 16px; } .ed-heads { display: none; } .ed-tracks { grid-template-columns: minmax(0, 1fr); }
}

/* ============ Kênh ============ */
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; list-style: none; padding: 0; }
@media (max-width: 560px) { .chgrid { grid-template-columns: minmax(0, 1fr); } }
.chcard { border-radius: 24px; background: var(--s1); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chav { flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #F6C768, #5B3FA8); display: grid; place-items: center; font-weight: 700; font-size: 19px; color: #fff; overflow: hidden; }
.chav img { width: 100%; height: 100%; object-fit: cover; }
.chnote { display: flex; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chnote svg.vi { color: var(--mut); width: 16px; height: 16px; margin-top: 3px; }

/* ============ Cài đặt API / Kết nối ============ */
pre.code { margin: 0; padding: 18px 20px; background: #0E0F11; border-top: 1px solid var(--line); font: 12.5px/1.75 var(--mono); color: #D9D6CC; white-space: pre-wrap; word-break: break-all; }
pre.code .k { color: var(--acc); } pre.code .s { color: var(--ok); }
dl.params { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 10px; font-size: 13px; } dl.params dt { font-family: var(--mono); color: var(--acc); font-size: 12.5px; } dl.params dd { margin: 0; color: var(--mut); }
.pf { border-radius: 26px; background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.pf.warn { border-color: rgba(255,197,107,.45); }
.pf-h { display: flex; align-items: center; gap: 16px; padding: 18px 22px; flex-wrap: wrap; }
.pf-h .brand-ic { width: 48px; height: 48px; border-radius: 15px; } .pf-h .brand-ic svg.vi { width: 22px; height: 22px; }
.pf-h h2 { font-size: 20px; } .pf-h .tx { flex: 1; min-width: 200px; } .pf-h .tx small { color: var(--mut); font-size: 13px; }
.pf-b { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.secret { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.secret .v { flex: 1; min-width: 0; font: 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret .v.none { color: var(--mut-2); font-family: var(--sans); }
.sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.sumgrid li { padding: 16px 18px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); }
.sumgrid .st { font: 700 19px var(--display); margin-top: 4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } table.tbl th { text-align: left; color: var(--mut); font-size: 12px; font-weight: 600; padding: 8px 10px; } table.tbl td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
@media (max-width: 560px) { .hero-new { padding: 20px; } .hero-new .row > .grow { flex-basis: 100%; } .hero-new .row > .b { flex: 1; } }

/* Timeline lồng tiếng (bản chép): dải làn trong Dashboard vốn tối, ánh xạ tự động đã đảo thành sáng → trả về tối */
.vf-tl-scroll { background: #17181B !important; border-color: var(--line) !important; }
.vf-tl-lane { background: #1B1D21 !important; border-bottom-color: #2C2F35 !important; }
.vf-tl-strip { background-color: #101113 !important; }
.vf-tl-ruler, .vf-tl-rul { color: var(--mut); }
.vf-tl-blk { color: #1A0F06 !important; }
.vf-tl-blk.warn { background: #E5BD65 !important; color: #2B2008 !important; }
.vf-tl-ruler { border-bottom-color: #2C2F35 !important; color: #A5A69E !important; } .vf-tl-ruler i { background: #4A4F58 !important; }
.vf-tl-head-line { background: #fff !important; }

/* Hộp xác nhận đăng bài (video-admin.js): tiêu đề / mô tả dài phải xuống dòng, không tràn khỏi hộp */
dialog#axdlg .dlg-body { min-width: 0; overflow-x: hidden; }
.vf-confirm { min-width: 0 !important; width: 100%; }
.vf-confirm > * { min-width: 0; }
.vf-cf-title { overflow-wrap: anywhere; word-break: break-word; }
.vf-cf-text { margin: 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-height: min(34vh, 260px); overflow: auto; }
.vf-cf-row { flex-wrap: wrap; }

/* kéo tệp từ thư viện vào timeline */
.ed-asset[draggable=true] { cursor: grab; } .ed-asset .thumb { cursor: pointer; }
.ed-asset:hover .thumb { border-color: var(--acc); }
.ed-inner.drop .ed-lane { background: rgba(255,138,61,.08); outline: 1.5px dashed var(--acc-line); outline-offset: 2px; border-radius: 10px; }
body.ed-dragging .ed-lane.v::after, body.ed-dragging .ed-lane.a::after { content: attr(data-drop); position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--acc); font-size: 12px; font-weight: 600; pointer-events: none; }
.ed-lib { max-height: none; } @media (min-width: 1101px) { .ed-lib { max-height: calc(100dvh - 330px); } }

/* chữ trên khung video kiểu CapCut: khung nét đứt cam, 4 chấm góc, núm đổi cỡ ở góc dưới phải */
.ed-canvas { touch-action: none; }
#ed-txt { position: absolute; inset: 0; pointer-events: none; }
.ed-canvas .txt .tt { outline: 0; display: inline-block; min-width: .5em; }
.ed-canvas .txt.sel { outline: 1.5px dashed var(--acc); outline-offset: 3px; cursor: move; }
.ed-canvas .txt .c { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--acc); pointer-events: none; }
.ed-canvas .txt .c1 { left: -8px; top: -8px; } .ed-canvas .txt .c2 { right: -8px; top: -8px; } .ed-canvas .txt .c3 { left: -8px; bottom: -8px; }
.ed-canvas .txt .rz { position: absolute; right: -14px; bottom: -14px; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); border: 2px solid #fff; cursor: nwse-resize; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ed-canvas .txt .tt[contenteditable] { cursor: text; text-shadow: none; background: rgba(0,0,0,.25); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { min-width: 56px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #2a2d33; font-size: 20px; font-weight: 700; line-height: 1; }
.presets button:hover { border-color: var(--acc); }
.ed-clip.t::before { content: "T"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 5px; background: var(--acc); color: var(--ink); font: 800 10px var(--sans); flex: none; }

.ed-canvas { overflow: hidden; }
.ed-canvas .txt { overflow-wrap: anywhere; }

.ed-canvas .txt .rt { position: absolute; left: 50%; top: -34px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.5); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A3D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E"); background-size: 70%; background-repeat: no-repeat; background-position: center; }
.ed-canvas .txt .rl { position: absolute; left: 50%; top: -14px; width: 0; height: 12px; border-left: 1.5px dashed var(--acc); pointer-events: none; }
.ed-canvas .txt.rotating::after { content: attr(data-deg); position: absolute; left: 50%; bottom: calc(100% + 44px); transform: translateX(-50%); padding: 2px 8px; border-radius: 8px; background: var(--acc); color: var(--ink); font: 700 12px var(--sans); text-shadow: none; }
.ed-canvas { overflow: visible; } .ed-stage { overflow: hidden; } .ed-canvas video, .ed-canvas img.still { border-radius: inherit; }

/* dải khung hình trong clip hình */
.ed-clip .fs { position: absolute; inset: 0; display: flex; background-repeat: repeat-x; }
.ed-clip .fs i { flex: none; height: 100%; background-image: var(--u); background-size: var(--bs); background-repeat: no-repeat; }
.ed-clip .nm { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.ed-clip .h { z-index: 2; }

/* nút xoá trên thẻ (danh sách Studio, Dựng video) */
.pc-del { position: absolute; right: 10px; top: 10px; z-index: 4; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(18,19,22,.78); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.92); transition: opacity .15s, transform .15s, background .15s; }
.pc-del svg.vi { width: 18px; height: 18px; }
.pcard:hover .pc-del, .pcard:focus-within .pc-del, .pc-del:focus-visible { opacity: 1; transform: none; }
.pc-del:hover { background: #E5484D; border-color: #E5484D; }
@media (hover: none) { .pc-del { opacity: 1; transform: none; } }

/* ============ Giọng nói ============ */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .vgrid { grid-template-columns: minmax(0, 1fr); } }
.vcard { border-radius: 24px; background: var(--s1); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s; }
.vcard.playing { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.vc-top { display: flex; align-items: center; gap: 12px; }
.vc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vc-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vc-t .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--acc); color: var(--ink); display: grid; place-items: center; transition: transform .1s, background .15s; }
.vc-play svg.vi { width: 20px; height: 20px; } .vc-play:hover:not(:disabled) { background: var(--acc-h); } .vc-play:active:not(:disabled) { transform: scale(.94); }
.vc-play:disabled { background: var(--s3); color: var(--mut); cursor: default; }
.vc-play[data-gen] { background: var(--s3); color: var(--acc); }
.vc-wave { display: flex; align-items: center; gap: 3px; height: 34px; opacity: .85; }
.vc-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--s3); }
.vcard.playing .vc-wave i { background: var(--acc); animation: vcw .9s ease-in-out infinite alternate; } .vcard.playing .vc-wave i:nth-child(odd) { animation-delay: .25s; }
@keyframes vcw { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.vc-role { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-f5 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
.vc-act { gap: 8px; }
