/* =============================================================
   /tools/voice-studio 在线语音工作台
   深色为基线，[data-theme="light"] 覆盖；--vs-* 定义在 :root，
   因为 toast / 弹层等可能挂在页面根容器之外。
   ============================================================= */
:root {
    --vs-bg: #0c1016;
    --vs-bg-2: #121822;
    --vs-card: #161d29;
    --vs-card-2: #1b2431;
    --vs-card-3: #212c3b;
    --vs-line: #2a3646;
    --vs-line-2: #3a4a5e;
    --vs-fg: #e8edf4;
    --vs-fg-2: #aab7c8;
    --vs-sub: #8797ab;
    --vs-faint: #6b7c90;
    --vs-accent: #58b6ff;
    --vs-accent-2: #2b7fd4;
    --vs-on-accent: #06121e;
    --vs-ok: #35c98b;
    --vs-warn: #e5a83a;
    --vs-err: #f2636b;
    --vs-ok-soft: rgba(53, 201, 139, .12);
    --vs-warn-soft: rgba(229, 168, 58, .13);
    --vs-err-soft: rgba(242, 99, 107, .13);
    --vs-accent-soft: rgba(88, 182, 255, .13);
    --vs-zebra: rgba(127, 127, 127, .055);
    --vs-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    --vs-shadow-sm: 0 2px 10px rgba(0, 0, 0, .16);
    --vs-r-lg: 16px;
    --vs-r-md: 11px;
    --vs-r-sm: 8px;
    --vs-maxw: 100%;
}
[data-theme="light"] {
    --vs-bg: #f4f7fa;
    --vs-bg-2: #ffffff;
    --vs-card: #ffffff;
    --vs-card-2: #f6f9fc;
    --vs-card-3: #eef3f8;
    --vs-line: #dfe7ef;
    --vs-line-2: #c6d3e0;
    --vs-fg: #16222f;
    --vs-fg-2: #41546a;
    --vs-sub: #5a6b7e;
    --vs-faint: #6d7d8f;
    --vs-accent: #1677c8;
    --vs-accent-2: #0e5ea6;
    --vs-on-accent: #ffffff;
    --vs-ok: #12855a;
    --vs-warn: #9a6700;
    --vs-err: #c62f3c;
    --vs-ok-soft: rgba(18, 133, 90, .10);
    --vs-warn-soft: rgba(154, 103, 0, .10);
    --vs-err-soft: rgba(198, 47, 60, .09);
    --vs-accent-soft: rgba(22, 119, 200, .09);
    --vs-zebra: rgba(15, 20, 25, .038);
    --vs-shadow: 0 10px 30px rgba(24, 42, 64, .10);
    --vs-shadow-sm: 0 2px 10px rgba(24, 42, 64, .07);
}

/* 满屏（保留左侧导航）：双保险，即使站点 style.css 是旧版也生效 */
body.page-voice-studio-full { overflow: visible; }
body.page-voice-studio-full .app,
body.page-voice-studio-full .main-content,
body.page-voice-studio-full .page-container {
    max-width: 100%; width: 100%; border-right: 0; min-width: 0;
}

.vs {
    max-width: var(--vs-maxw);
    margin: 0;
    padding: 16px 20px 72px;
    color: var(--vs-fg);
    background: var(--vs-bg);
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    min-height: 60vh;
}
.vs *, .vs *::before, .vs *::after { box-sizing: border-box; }
.vs [hidden] { display: none !important; }
.vs a { color: var(--vs-accent); text-decoration: none; }
.vs a:hover { text-decoration: underline; }
.vs h1, .vs h2, .vs p, .vs ul { margin: 0; }
.vs code {
    background: var(--vs-card-3); border: 1px solid var(--vs-line);
    border-radius: 5px; padding: 1px 5px; font-size: .92em;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.vs :focus-visible { outline: 2px solid var(--vs-accent); outline-offset: 2px; }
.vs ::-webkit-scrollbar { width: 10px; height: 10px; }
.vs ::-webkit-scrollbar-thumb { background: var(--vs-line-2); border-radius: 8px; }
.vs ::-webkit-scrollbar-track { background: transparent; }

/* ---------- hero ---------- */
.vs-hero {
    display: flex; gap: 18px; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; padding: 18px 20px; border-radius: var(--vs-r-lg);
    border: 1px solid var(--vs-line); background: var(--vs-card);
    background-image: linear-gradient(120deg, var(--vs-accent-soft), transparent 62%);
    box-shadow: var(--vs-shadow-sm); margin-bottom: 14px;
}
.vs-hero-l { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1 1 560px; }
.vs-hero-ic {
    flex: 0 0 54px; width: 54px; height: 54px; border-radius: 15px;
    display: grid; place-items: center; color: var(--vs-on-accent);
    background: linear-gradient(140deg, var(--vs-accent), var(--vs-accent-2));
    box-shadow: 0 6px 18px var(--vs-accent-soft);
}
.vs-hero-txt { min-width: 0; }
.vs-title { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: .2px; }
.vs-sub { color: var(--vs-fg-2); margin-top: 7px; max-width: 92ch; font-size: 13.2px; }
.vs-hero-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.vs-tag {
    font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
    background: var(--vs-card-2); border: 1px solid var(--vs-line); color: var(--vs-sub);
    white-space: nowrap;
}
.vs-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- tabs ---------- */
.vs-tabs {
    display: flex; gap: 5px; overflow-x: auto; padding: 5px; margin-bottom: 14px;
    background: var(--vs-card); border: 1px solid var(--vs-line);
    border-radius: 12px; scrollbar-width: thin; position: sticky; top: 8px; z-index: 30;
}
.vs-tab {
    flex: 0 0 auto; padding: 9px 15px; min-height: 40px; border: 0; border-radius: 9px;
    background: transparent; color: var(--vs-fg-2); font-size: 13.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.vs-tab:hover { background: var(--vs-card-2); color: var(--vs-fg); }
.vs-tab.is-on { background: var(--vs-accent); color: var(--vs-on-accent); }

/* ---------- body layout ---------- */
.vs-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.vs-main { min-width: 0; display: grid; gap: 14px; }
.vs-pane { display: grid; gap: 14px; min-width: 0; }
.vs-rail { position: sticky; top: 68px; display: grid; gap: 12px; min-width: 0; }
.vs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.vs-grid-2 > * { min-width: 0; }
.vs-grid-live { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.vs-grid-live > div:first-child { display: grid; gap: 14px; min-width: 0; }

/* ---------- cards ---------- */
.vs-card {
    background: var(--vs-card); border: 1px solid var(--vs-line);
    border-radius: var(--vs-r-lg); box-shadow: var(--vs-shadow-sm);
    overflow: hidden; min-width: 0;
}
.vs-card-h {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--vs-line);
    background: var(--vs-card-2);
}
.vs-card-h h2 { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.vs-card-meta { font-size: 12px; color: var(--vs-sub); white-space: nowrap; }
.vs-card-b { padding: 15px 16px; display: grid; gap: 12px; min-width: 0; }
.vs-rail-card .vs-card-b { padding: 12px 13px; gap: 10px; }
.vs-rail-card .vs-card-h { padding: 10px 13px; }
.vs-note { color: var(--vs-sub); font-size: 12.3px; line-height: 1.75; }
.vs-note strong { color: var(--vs-fg-2); }
.vs-hint {
    background: var(--vs-warn-soft); color: var(--vs-warn); border: 1px solid var(--vs-warn);
    border-radius: var(--vs-r-sm); padding: 9px 11px; font-size: 12.5px;
}
.vs-status { font-size: 12.5px; color: var(--vs-accent); }
.vs-lbl { font-size: 12px; color: var(--vs-sub); white-space: nowrap; }
.vs-flex1 { flex: 1 1 auto; }
.vs-file-name { font-size: 12.5px; color: var(--vs-fg-2); overflow-wrap: anywhere; }

/* ---------- controls ---------- */
.vs-btn {
    appearance: none; border: 1px solid var(--vs-line-2); background: var(--vs-card-2);
    color: var(--vs-fg); border-radius: var(--vs-r-sm); padding: 8px 13px;
    min-height: 38px; font-size: 13px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: transform .12s, background .15s, border-color .15s;
}
.vs-btn:hover:not(:disabled) { background: var(--vs-card-3); border-color: var(--vs-accent); }
.vs-btn:active:not(:disabled) { transform: translateY(1px); }
.vs-btn:disabled { opacity: .48; cursor: not-allowed; }
.vs-btn-go {
    background: var(--vs-accent); border-color: var(--vs-accent); color: var(--vs-on-accent);
}
.vs-btn-go:hover:not(:disabled) { background: var(--vs-accent-2); border-color: var(--vs-accent-2); }
.vs-btn-sm { min-height: 34px; padding: 6px 10px; font-size: 12.3px; font-weight: 600; }
.vs-mini {
    appearance: none; border: 1px solid var(--vs-line); background: var(--vs-card-2);
    color: var(--vs-fg-2); border-radius: 6px; min-width: 30px; min-height: 30px;
    padding: 3px 7px; cursor: pointer; font-size: 12px; flex: 0 0 auto;
}
.vs-mini:hover { border-color: var(--vs-accent); color: var(--vs-accent); }
.vs-mini.is-danger:hover { border-color: var(--vs-err); color: var(--vs-err); }
.vs-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.vs-row-wrap { flex-wrap: wrap; }
.vs-export-row { border-top: 1px dashed var(--vs-line); padding-top: 11px; }
.vs-input, .vs-select, .vs-textarea {
    width: 100%; background: var(--vs-bg-2); color: var(--vs-fg);
    border: 1px solid var(--vs-line-2); border-radius: var(--vs-r-sm);
    padding: 8px 10px; font-size: 13.5px; font-family: inherit; min-width: 0;
}
.vs-input:focus, .vs-select:focus, .vs-textarea:focus { border-color: var(--vs-accent); outline: none; }
.vs-select { height: 38px; }
.vs-select-sm { width: auto; min-width: 108px; height: 34px; padding: 4px 8px; font-size: 12.5px; }
.vs-textarea { resize: vertical; line-height: 1.72; min-height: 120px; }
.vs-field { display: grid; gap: 5px; min-width: 0; }
.vs-field label { font-size: 12.3px; color: var(--vs-sub); font-weight: 600; }
.vs-field label small { font-weight: 400; color: var(--vs-faint); }
.vs-check { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--vs-fg-2); cursor: pointer; min-height: 34px; }
.vs-check input { width: 17px; height: 17px; accent-color: var(--vs-accent); }
.vs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vs-chip, .vs-fx-chip {
    appearance: none; border: 1px solid var(--vs-line-2); background: var(--vs-card-2);
    color: var(--vs-fg-2); border-radius: 999px; padding: 6px 11px; min-height: 32px;
    font-size: 12.2px; cursor: pointer; white-space: nowrap;
}
.vs-chip:hover, .vs-fx-chip:hover { border-color: var(--vs-accent); color: var(--vs-fg); }
.vs-chip.is-on, .vs-fx-chip.is-on {
    background: var(--vs-accent); border-color: var(--vs-accent); color: var(--vs-on-accent); font-weight: 700;
}
.vs-fx-x { display: inline-block; margin-left: 6px; opacity: .7; }
.vs-sliders { display: grid; gap: 10px; }
.vs-sliders-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.vs-slider { display: grid; gap: 3px; min-width: 0; }
.vs-slider > label { display: flex; justify-content: space-between; gap: 8px; font-size: 12.2px; color: var(--vs-sub); }
.vs-slider > label b { color: var(--vs-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.vs input[type="range"] { width: 100%; height: 20px; accent-color: var(--vs-accent); cursor: pointer; }
.vs input[type="number"] { height: 34px; padding: 5px 8px; }
.vs-progress input { opacity: .8; pointer-events: none; /* 仅作进度展示，避免误触跳动 */ }
.vs-now { font-size: 12.3px; color: var(--vs-fg-2); min-height: 18px; overflow-wrap: anywhere; }
.vs-clock { font-size: 13px; color: var(--vs-accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.vs-audio, .vs-video { width: 100%; border-radius: var(--vs-r-sm); background: var(--vs-bg); }
.vs-video { max-height: 300px; }

/* ---------- segments / files / activity ---------- */
.vs-segs { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.vs-seg {
    text-align: left; max-width: 100%; border: 1px solid var(--vs-line);
    background: var(--vs-card-2); color: var(--vs-fg-2); border-radius: var(--vs-r-sm);
    padding: 6px 9px; font-size: 12.2px; cursor: pointer; overflow-wrap: anywhere;
}
.vs-seg:hover { border-color: var(--vs-accent); }
.vs-seg.is-cur { border-color: var(--vs-accent); background: var(--vs-accent-soft); color: var(--vs-fg); }
.vs-seg-pause { color: var(--vs-warn); border-style: dashed; }
.vs-seg-n { color: var(--vs-faint); margin-right: 6px; font-variant-numeric: tabular-nums; }
.vs-empty-mini { color: var(--vs-faint); font-size: 12.3px; padding: 6px 0; }
.vs-file-list { display: grid; gap: 5px; max-height: 210px; overflow-y: auto; overscroll-behavior: contain; }
.vs-file-i {
    display: flex; gap: 9px; align-items: center; width: 100%; text-align: left;
    border: 1px solid var(--vs-line); background: var(--vs-card-2); color: var(--vs-fg-2);
    border-radius: var(--vs-r-sm); padding: 7px 10px; cursor: pointer; font-size: 12.5px;
}
.vs-file-i:hover { border-color: var(--vs-accent); }
.vs-file-i.is-on { border-color: var(--vs-accent); background: var(--vs-accent-soft); }
.vs-file-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-file-m, .vs-file-s { flex: 0 0 auto; color: var(--vs-sub); font-size: 11.5px; }
.vs-file-x { flex: 0 0 auto; color: var(--vs-err); font-weight: 700; padding: 0 3px; }
.vs-drop {
    border: 2px dashed var(--vs-line-2); border-radius: var(--vs-r-md);
    padding: 20px 14px; text-align: center; display: grid; gap: 8px; justify-items: center;
    background: var(--vs-bg-2); color: var(--vs-sub);
}
.vs-drop.is-over { border-color: var(--vs-accent); background: var(--vs-accent-soft); }
.vs-drop-ic { font-size: 30px; }
.vs-drop-tip { font-size: 11.5px; color: var(--vs-faint); }
.vs-activity { display: grid; gap: 5px; }
.vs-act-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: baseline; font-size: 11.8px; }
.vs-act-k { color: var(--vs-accent); font-weight: 700; }
.vs-act-d { color: var(--vs-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-act-i time { color: var(--vs-faint); font-variant-numeric: tabular-nums; }
.vs-hist { display: grid; gap: 5px; max-height: 190px; overflow-y: auto; }
.vs-hist-i {
    display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
    border: 1px solid var(--vs-line); background: var(--vs-card-2); color: var(--vs-fg-2);
    border-radius: var(--vs-r-sm); padding: 7px 9px; cursor: pointer; font-size: 12.2px;
}
.vs-hist-i:hover { border-color: var(--vs-accent); }
.vs-hist-i small { color: var(--vs-faint); flex: 0 0 auto; }
.vs-state { font-size: 12.3px; color: var(--vs-ok); }
.vs-live-text {
    min-height: 54px; padding: 10px 12px; border-radius: var(--vs-r-sm);
    border: 1px solid var(--vs-line); background: var(--vs-bg-2);
    color: var(--vs-accent); font-size: 13.5px; overflow-wrap: anywhere;
}

/* ---------- visualizers ---------- */
.vs-vis { display: grid; gap: 8px; }
.vs-canvas {
    display: block; width: 100%; height: 96px; border-radius: var(--vs-r-sm);
    border: 1px solid var(--vs-line); background: var(--vs-bg);
}
.vs-canvas-tall { height: 112px; }
.vs-level { position: relative; height: 15px; border-radius: 999px; background: var(--vs-bg-2); border: 1px solid var(--vs-line); overflow: hidden; }
.vs-level-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--vs-ok), var(--vs-warn), var(--vs-err)); transition: width .08s linear; }
.vs-level > span { position: absolute; top: -1px; right: 7px; font-size: 10.5px; color: var(--vs-fg-2); font-variant-numeric: tabular-nums; }

/* ---------- dubbing timeline ---------- */
.vs-dub-head, .vs-dub-row {
    display: grid; grid-template-columns: 34px 76px 76px 96px minmax(0, 1fr) auto;
    gap: 7px; align-items: center;
}
.vs-dub-head { font-size: 11.5px; color: var(--vs-faint); padding: 0 4px 6px; border-bottom: 1px solid var(--vs-line); }
.vs-dub-list { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.vs-dub-row { padding: 6px 4px; border-bottom: 1px solid var(--vs-line); }
.vs-dub-row:nth-child(even) { background: var(--vs-zebra); }
.vs-dub-idx { color: var(--vs-faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.vs-dub-ops { display: flex; gap: 4px; justify-content: flex-end; }
.vs-dub-row input[type="text"], .vs-dub-row input[type="number"] {
    width: 100%; min-width: 0; height: 32px; padding: 4px 7px; font-size: 12.5px;
    border: 1px solid var(--vs-line-2); border-radius: 6px; background: var(--vs-bg-2); color: var(--vs-fg);
}
.vs-dub-row .vs-mini { min-width: 26px; min-height: 28px; padding: 2px 5px; }

/* ---------- tables / about ---------- */
.vs-table-wrap { overflow: auto; max-height: 420px; overscroll-behavior: contain; border: 1px solid var(--vs-line); border-radius: var(--vs-r-md); }
.vs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.vs-table th, .vs-table td { padding: 9px 11px; text-align: left; border-right: 1px solid var(--vs-line); border-bottom: 1px solid var(--vs-line); vertical-align: top; }
.vs-table th { position: sticky; top: 0; z-index: 2; background: var(--vs-card-2); color: var(--vs-fg); font-weight: 700; }
.vs-table td { color: var(--vs-fg-2); }
.vs-table tbody tr:nth-child(even) { background: var(--vs-zebra); }
.vs-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--vs-fg); }
.vs-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.2px; white-space: nowrap; }
.vs-badge.is-ok, .vs-badge.is-done { background: var(--vs-ok-soft); color: var(--vs-ok); }
.vs-badge.is-no, .vs-badge.is-model { background: var(--vs-err-soft); color: var(--vs-err); }
.vs-badge.is-part, .vs-badge.is-link { background: var(--vs-warn-soft); color: var(--vs-warn); }
.vs-faq { border: 1px solid var(--vs-line); border-radius: var(--vs-r-sm); background: var(--vs-card-2); padding: 8px 11px; }
.vs-faq + .vs-faq { margin-top: 8px; }
.vs-faq summary { cursor: pointer; font-size: 12.8px; font-weight: 600; color: var(--vs-fg); }
.vs-faq p { margin-top: 7px; font-size: 12.3px; color: var(--vs-sub); line-height: 1.75; }
.vs-kbd-list { display: grid; gap: 7px; font-size: 12.3px; color: var(--vs-sub); padding-left: 17px; }
.vs kbd {
    background: var(--vs-card-3); border: 1px solid var(--vs-line-2); border-bottom-width: 2px;
    border-radius: 5px; padding: 1px 5px; font-size: 11px; font-family: inherit; color: var(--vs-fg);
}

/* ---------- toast ---------- */
.vs-toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); z-index: 100000; max-width: min(92vw, 620px);
    padding: 11px 17px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: var(--vs-card-3); color: var(--vs-fg); border: 1px solid var(--vs-accent);
    box-shadow: var(--vs-shadow); text-align: center; overflow-wrap: anywhere;
}
.vs-toast.is-err { border-color: var(--vs-err); color: var(--vs-err); }

/* ---------- responsive ---------- */
@media (min-width: 1600px) {
    .vs { max-width: 1720px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
    .vs-body { grid-template-columns: minmax(0, 1fr) 330px; }
    .vs-grid-live { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
    .vs-hero { padding: 20px 26px; }
    .vs-title { font-size: 26px; }
}
@media (max-width: 1400px) {
    .vs-body { grid-template-columns: minmax(0, 1fr) 280px; }
    .vs-rail { top: 66px; }
}
@media (max-width: 1100px) {
    .vs-body { grid-template-columns: minmax(0, 1fr); }
    .vs-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-grid-live { grid-template-columns: minmax(0, 1fr); }
    .vs-grid-live > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .vs-grid-2, .vs-grid-live > div:first-child, .vs-rail { grid-template-columns: minmax(0, 1fr); }
    .vs-hero { padding: 15px; }
    .vs-title { font-size: 21px; }
    .vs-hero-acts { width: 100%; }
    .vs-hero-acts .vs-btn { flex: 1 1 auto; }
    .vs-dub-head, .vs-dub-row { grid-template-columns: 28px 68px 68px minmax(0, 1fr) auto; }
    .vs-dub-head > span:nth-child(4), .vs-dub-role { display: none; }
}
@media (max-width: 767px) {
    .vs { padding: 12px 10px 84px; font-size: 14px; }
    .vs-hero { gap: 12px; padding: 13px; }
    .vs-hero-ic { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
    .vs-hero-ic svg { width: 25px; height: 25px; }
    .vs-title { font-size: 19px; }
    .vs-sub { font-size: 12.5px; }
    .vs-hero-tags { gap: 5px; }
    .vs-tag { font-size: 11px; padding: 3px 8px; }
    .vs-tabs { top: 0; margin-inline: -2px; }
    .vs-tab { padding: 9px 12px; min-height: 42px; font-size: 12.8px; }
    .vs-card-h { padding: 10px 12px; }
    .vs-card-b { padding: 12px; }
    .vs-btn { min-height: 42px; padding: 9px 12px; }
    .vs-btn-sm, .vs-mini { min-height: 40px; }
    .vs-mini { min-width: 38px; }
    .vs-input, .vs-select, .vs-textarea, .vs-dub-row input[type="text"], .vs-dub-row input[type="number"] {
        font-size: 16px; /* iOS 聚焦不放大 */
    }
    .vs-select, .vs-select-sm { height: 42px; }
    .vs-textarea { min-height: 140px; }
    .vs-sliders-2 { grid-template-columns: minmax(0, 1fr); }
    .vs-canvas { height: 88px; }
    .vs-toast { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 14px; }
    .vs-table th, .vs-table td { padding: 8px 9px; }
    .vs-dub-head, .vs-dub-row { grid-template-columns: 26px 62px 62px minmax(0, 1fr) auto; }
    .vs-file-i { flex-wrap: wrap; }
}
@media (max-width: 420px) {
    .vs-hero-tags .vs-tag:nth-child(n+4) { display: none; }
    .vs-hero-acts .vs-btn { flex: 1 1 100%; }
    .vs-row { gap: 6px; }
    .vs-btn { font-size: 12.5px; padding: 8px 9px; }
    .vs-dub-head, .vs-dub-row { grid-template-columns: 24px 56px 56px minmax(0, 1fr) auto; gap: 4px; }
    .vs-dub-row .vs-mini { min-width: 24px; padding: 2px; }
    .vs-dub-ops { gap: 3px; }
}
@media (hover: none) {
    .vs-btn:hover, .vs-chip:hover, .vs-fx-chip:hover, .vs-seg:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .vs *, .vs *::before, .vs *::after { transition: none !important; animation: none !important; }
}
@media print {
    .vs-tabs, .vs-hero-acts, .vs-rail, .vs-toast, .vs-btn, .vs-mini { display: none !important; }
    .vs { background: #fff; color: #000; }
    .vs-card { break-inside: avoid; box-shadow: none; }
}
