/* AI Clone Digital Human Studio · warm editorial reskin (scoped to #p22s0) */
body:has(#p22s0.act) .main,
body:has(#p22s0.act) .main-content{
  background:
    radial-gradient(900px 560px at 92% -8%,#ffece3 0%,transparent 62%),
    radial-gradient(720px 420px at 0% 10%,#fff7ef 0%,transparent 58%),
    #fbf9f6;
}
body:has(#p22s0.act) .main-content{
  padding:28px 30px 46px;
}
body:has(#p22s0.act){background:#fbf9f6!important}
body:has(#p22s0.act) #pageHead{display:none!important}
#p22s0{padding:0;color:#1b1b1f}
#p22s0>.section,
body:has(#p22s0.act) .main-content>#p22s0>.section{
  margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;
}

#p22s0 .dh22-head,
.dh22-head{display:flex;align-items:center;justify-content:space-between;gap:24px}
.dh22-head-main{min-width:0}
.dh22-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;color:#a54832;font-size:9px;font-weight:800;letter-spacing:.17em}
.dh22-kicker::before{content:"";width:18px;height:1px;background:#d64226}
.dh22-head-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.dh22-title{margin:0;font-family:Georgia,"Noto Serif CJK SC","Songti SC",serif;font-size:34px;font-weight:800;line-height:1.12;letter-spacing:-.035em;color:#1d1d20}
.dh22-beta{padding:4px 8px;border:1px solid #f0c8bc;border-radius:999px;background:#fff4ef;color:#b03c25;font-size:8px;font-weight:850;letter-spacing:.1em}
.dh22-sub{margin:9px 0 0;color:#716c66;font-size:12px;line-height:1.7;max-width:720px}
.dh22-mode{flex:0 0 auto;margin-left:4px}
.dh22-head-side{display:flex;align-items:stretch;gap:8px;flex:0 0 auto}
.dh22-head-stat{display:flex;align-items:center;gap:8px;min-width:112px;padding:8px 11px;border:1px solid #eadfd5;border-radius:12px;background:rgba(255,255,255,.74);box-shadow:0 6px 18px rgba(78,52,34,.035)}
.dh22-head-stat .ic{width:15px;height:15px;color:#b34a33;flex:0 0 auto}
.dh22-head-stat span{display:flex;flex-direction:column;gap:1px;min-width:0}
.dh22-head-stat small{color:#908a82;font-size:8px;line-height:1.2;white-space:nowrap}
.dh22-head-stat b{font-family:Georgia,"Noto Serif CJK SC",serif;font-size:15px;line-height:1.25;color:#2d2a2c;font-weight:700}
.dh22-mode .dh-mode-switch{margin:0;background:#f1ece6;border-color:#e7ddd2;border-radius:14px;padding:4px}
.dh22-mode .dh-mode-tab{color:#7d7369;font-weight:650}
.dh22-mode .dh-mode-tab:hover{color:#b5452d;background:rgba(255,255,255,.7)}
.dh22-mode .dh-mode-tab.active{background:#1b1b1f;color:#fff;box-shadow:0 6px 16px rgba(27,27,31,.16)}
.dh22-mode .dh-mode-badge{background:#ffd9cd;color:#a63d26}

.dh22-steps{display:flex;align-items:center;gap:10px;margin:18px 0 20px;padding:11px 16px;border:1px solid #e9e2d9;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 10px 28px rgba(80,50,30,.035);overflow-x:auto;scrollbar-width:none}
.dh22-steps::-webkit-scrollbar{display:none}
.dh22-step{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.dh22-step-index{display:grid;place-items:center;width:24px;height:24px;border:1px solid #e5ddd4;border-radius:8px;background:#f7f3ee;color:#9a938b;font-family:Georgia,serif;font-size:10px;font-weight:700}
.dh22-step b{color:#8f8881;font-size:10.5px;font-weight:700;white-space:nowrap}
.dh22-step small{color:#aaa39a;font-size:8.5px;white-space:nowrap}
.dh22-step.is-active .dh22-step-index{background:#1b1b1f;border-color:#1b1b1f;color:#fff;box-shadow:0 5px 13px rgba(27,27,31,.17)}
.dh22-step.is-active b{color:#282529}
.dh22-step-line{height:1px;flex:1 1 26px;min-width:20px;background:linear-gradient(90deg,#e7dfd6,#f2ede6)}
.dh22-step-note{margin-left:auto;padding-left:12px;color:#958e85;font-size:9px;white-space:nowrap}
.dh22-step-note i{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#1f8b6b;box-shadow:0 0 0 3px rgba(31,139,107,.1)}

.dh22-studio{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}
.dh22-stage,.dh22-settings{min-width:0;border:1px solid #e8e1d8;border-radius:22px;background:rgba(255,255,255,.93);box-shadow:0 20px 46px rgba(78,52,34,.06)}
.dh22-stage{overflow:hidden;position:sticky;top:18px}
.dh22-stage-head,.dh22-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 18px 13px}
.dh22-settings-head{border-bottom:1px solid #f0e9e1}
.dh22-stage-kicker,.dh22-settings-kicker{display:block;margin-bottom:4px;color:#b34a33;font-size:8px;font-weight:850;letter-spacing:.16em}
.dh22-stage-title,.dh22-settings-title{margin:0;color:#2b282b;font-family:Georgia,"Noto Serif CJK SC",serif;font-size:18px;font-weight:800;line-height:1.15}
.dh22-settings-sub{margin:5px 0 0;color:#948d85;font-size:10px;line-height:1.55}
.dh22-ratio{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #ecdcd2;border-radius:99px;background:#fff8f3;color:#a04a34;font-size:8.5px;font-weight:800;letter-spacing:.04em;white-space:nowrap}

.dh22-preview-shell{position:relative;display:grid;place-items:center;min-height:700px;margin:0 14px;overflow:hidden;border:1px solid #eee6dc;border-radius:18px;background:
  radial-gradient(460px 390px at 50% 36%,rgba(255,244,235,.96),transparent 70%),
  radial-gradient(320px 280px at 14% 90%,rgba(244,211,196,.36),transparent 70%),
  linear-gradient(155deg,#f3ece4 0%,#eae1d7 47%,#e6ddd3 100%)}
.dh22-preview-shell::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(122,95,74,.065) 1px,transparent 1px),linear-gradient(90deg,rgba(122,95,74,.065) 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(circle at 50% 45%,#000,transparent 82%);opacity:.62;pointer-events:none}
.dh22-preview-shell::after{content:"";position:absolute;width:470px;height:470px;left:50%;top:48%;transform:translate(-50%,-50%);border:1px solid rgba(182,112,82,.13);border-radius:50%;box-shadow:0 0 0 56px rgba(255,255,255,.08),0 0 0 112px rgba(255,255,255,.045);pointer-events:none}
.dh22-preview{position:relative;z-index:2;width:clamp(260px,46%,318px);aspect-ratio:9/16;overflow:hidden;border:1px solid rgba(255,255,255,.5);border-radius:25px;background:#1b1a1c;box-shadow:0 28px 58px rgba(55,31,20,.24),0 0 0 7px rgba(255,255,255,.18)}
.dh22-preview-media{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(150deg,#2c2827,#151416 62%,#33221d)}
.dh22-preview-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 16%}
.dh22-preview-empty{display:grid;place-items:center;gap:8px;color:#b9b0a8;font-size:10px;text-align:center;line-height:1.5}
.dh22-preview-empty .ic{width:30px;height:30px;color:#8b7d73}
.dh22-preview-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,13,12,.02) 0%,transparent 36%,rgba(15,12,11,.18) 62%,rgba(12,10,9,.78) 100%)}
.dh22-preview-brand{position:absolute;left:14px;top:13px;z-index:3;color:rgba(255,255,255,.68);font-size:7px;font-weight:800;letter-spacing:.18em}
.dh22-preview-titles{position:absolute;left:8%;right:8%;top:14%;z-index:4;text-align:center;font-size:clamp(17px,2vw,22px);font-weight:900;line-height:1.3;letter-spacing:.015em;text-shadow:0 2px 10px rgba(0,0,0,.6),0 1px 2px rgba(0,0,0,.5)}
.dh22-preview-titles.is-empty{display:none}
.dh22-preview-line{display:block;margin:0 0 2px;word-break:break-all}
.dh22-preview-caption{position:absolute;left:13px;right:13px;bottom:48px;z-index:4;min-height:30px;padding:7px 9px;border-radius:9px;background:rgba(14,12,11,.56);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);color:#fff;font-size:10px;line-height:1.5;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.dh22-preview-caption.is-empty{color:rgba(255,255,255,.55);background:rgba(14,12,11,.34)}
.dh22-preview-foot{position:absolute;left:13px;right:13px;bottom:13px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;color:rgba(255,255,255,.7);font-size:7.5px;font-weight:650}
.dh22-preview-foot span{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dh22-preview-foot span:last-child{text-align:right}
.dh22-stage-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px 14px;color:#9a938b;font-size:8.5px}
.dh22-stage-meta span:first-child{font-family:Georgia,serif;color:#6d655e;letter-spacing:.06em}
.dh22-stage .mdh-recent{margin:0!important;padding:14px 18px 17px!important;border:0!important;border-top:1px solid #f0e9e1!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.dh22-stage .mdh-recent-head{margin-bottom:8px}

.dh22-settings-body{display:flex;flex-direction:column;gap:0;padding:4px 20px 20px}
.dh22-block{padding:16px 0;border-top:1px solid #f0e9e1}
.dh22-block:first-child{border-top:0;padding-top:14px}
.dh22-block-head{display:flex;align-items:flex-start;gap:9px;margin-bottom:11px}
.dh22-block-no{display:grid;place-items:center;flex:0 0 auto;width:22px;height:22px;margin-top:1px;border:1px solid #eadfd5;border-radius:7px;background:#faf5ef;color:#9a7f70;font-family:Georgia,serif;font-size:9px;font-weight:700}
.dh22-block-title{color:#353033;font-size:11.5px;font-weight:800;line-height:1.3}
.dh22-block-sub{margin-top:2px;color:#9d958d;font-size:8.5px;line-height:1.5}
.dh22-block-hint{margin-left:auto;padding-top:2px;color:#a04a34;font-size:8.5px;font-weight:750;white-space:nowrap}
.dh22-field-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.dh22-field-title{color:#4a4541;font-size:10.5px;font-weight:800}
.dh22-field-hint{color:#9a938b;font-size:8.5px}
/* 配音语速：四段式分段控件（对齐高级混剪设计稿） */
.dh22-rate{display:flex;gap:3px;padding:3px;border:1px solid #ece3d8;border-radius:10px;background:#f7f1ea}
.dh22-rate-btn{flex:1 1 0;min-width:0;height:27px;padding:0;border:0;border-radius:7px;background:transparent;color:#8d857d;font-family:inherit;font-size:10.5px;font-weight:750;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.dh22-rate-btn:hover{background:rgba(255,255,255,.6);color:#a93822}
.dh22-rate-btn.active{background:#fff;color:#a93822;box-shadow:0 2px 6px rgba(75,45,30,.1)}
.dh22-rate-btn:focus-visible{outline:2px solid #d64226;outline-offset:1px}
.dh22-rate-native{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;opacity:0;clip-path:inset(50%);pointer-events:none}

.dh22-avatar-scroll{gap:9px;padding-bottom:4px}
.dh22-avatar-scroll .dh-avatar-item{width:68px;height:92px;border-radius:13px;border-color:#e9e0d7;background:#f7f2ec}
.dh22-avatar-scroll .dh-avatar-item.active{border-color:#d64226!important;box-shadow:0 7px 16px rgba(214,66,38,.18)}
.dh22-avatar-scroll .dh-avatar-name{position:absolute;left:0;right:0;bottom:0;padding:10px 3px 3px;background:linear-gradient(transparent,rgba(18,15,14,.72));color:#fff;font-size:8px;font-weight:650;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dh22-avatar-scroll .dh-avatar-fallback{display:grid;place-items:center;width:100%;height:100%;color:#b7aaa0}
.dh22-empty-note{padding:12px;color:#a59b92;font-size:10px;line-height:1.6}

.dh22-studio .dh-h-scroll{gap:8px}
.dh22-studio .vv-voice-disc:not(.dh22-vc){width:82px!important;border-radius:13px!important;padding:8px 5px!important}
.dh22-studio .vv-voice-disc[style*="#4A9EFF"]{border-color:#d64226!important;background:#fff4ef!important}
.dh22-studio .dh-section-label{margin:0 0 7px;color:#4a4541;font-size:10.5px;font-weight:800}
.dh22-studio .ks-label{color:#4a4541;font-size:10px;font-weight:750}
.dh22-studio .ks-input,.dh22-studio .ks-textarea{border-color:#e7ddd3;border-radius:11px;background:#fff;color:#2d292c;font-size:12px;padding:9px 11px}
.dh22-studio .ks-textarea{height:128px;line-height:1.7}
.dh22-studio .ks-input:focus,.dh22-studio .ks-textarea:focus{border-color:#d64226;box-shadow:0 0 0 3px rgba(214,66,38,.12);outline:none}
.dh22-studio .btn{border-radius:9px}
.dh22-studio .btn-out{border-color:#e5d8cd;background:#fff;color:#6d5e54}
.dh22-studio .btn-out:hover{border-color:#d9b7a6;color:#a04a34;background:#fff9f5}
.dh22-studio .btn-pri{background:#1b1b1f;border-color:#1b1b1f;color:#fff}
.dh22-studio .btn-pri:hover{background:#332d2b;border-color:#332d2b}

.dh22-mode-row{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.dh22-title-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:11px}
.dh22-char-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.dh22-char-row button{min-width:24px!important;height:24px!important;border-radius:5px!important;font-size:11px!important}
.dh22-tools{display:flex;align-items:center;gap:9px;margin-top:10px;flex-wrap:wrap;padding:9px 10px;border:1px dashed #ebdfd5;border-radius:11px;background:#fffcf9}
.dh22-tools .ks-label{margin:0}
.dh22-tools input[type=color]{width:38px!important;height:28px!important;border-color:#e7d9ce!important;border-radius:6px!important;padding:2px!important}
.dh22-tools-note{flex:1 1 150px;min-width:120px;color:#9d948b;font-size:8.5px;line-height:1.5}
.dh22-tools .btn{white-space:nowrap}

.dh22-tpl-scroll{padding-bottom:6px;gap:9px}
.dh22-tpl-scroll .ks-tpl-card{position:relative;border-radius:11px;border:1px solid #e9dfd3!important;background:#fffaf6!important;box-shadow:0 1px 2px rgba(86,58,36,.04)!important}
.dh22-tpl-scroll .ks-tpl-card:hover{border-color:#e3b7a7!important;background:#fffaf6!important;box-shadow:0 4px 12px rgba(120,80,50,.07)!important}
.dh22-tpl-scroll .ks-tpl-card.active{border-color:#d64226!important;background:#fff2eb!important;box-shadow:0 0 0 2px rgba(214,66,38,.13)!important}
.dh22-tpl-scroll .ks-tpl-card.active>div:last-child{color:#a93822!important;font-weight:800}
.dh22-tpl-scroll .ks-tpl-card.active::after{content:'✓';position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#d64226;color:#fff;font-size:10px;font-weight:900;line-height:16px;text-align:center;box-shadow:0 1px 4px rgba(120,30,15,.35)}
.dh22-bgm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.dh22-studio #dhBGMList{min-height:30px}
.dh22-studio #dhBGMVolumeRow{background:#fbf5ef!important;border-radius:10px!important}
.dh22-studio #dhBGMVolume{accent-color:#d64226!important}
.dh22-studio #dhBGMStatus{color:#9d948b;line-height:1.5}

.dh22-generate{padding-top:17px;border-top:1px solid #f0e9e1}
.dh22-generate-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;border:0;border-radius:12px;background:#1b1b1f;color:#fff;font-size:13px;font-weight:750;letter-spacing:.02em;cursor:pointer;box-shadow:0 12px 24px rgba(27,27,31,.16);transition:background .16s ease,transform .16s ease}
.dh22-generate-btn:hover{background:#332d2b;transform:translateY(-1px)}
.dh22-generate-btn:active{transform:none}
.dh22-generate-btn .ic{width:16px;height:16px;color:#ff8c72}
.dh22-generate-note{margin-top:8px;color:#a29a92;font-size:8.5px;line-height:1.5;text-align:center}
.dh22-studio #dhResult{margin-top:11px;font-size:11px;line-height:1.65}
.dh22-studio #dhResult:empty{display:none}

@media(max-width:1139px){
  .dh22-studio{grid-template-columns:minmax(0,1fr)}
  .dh22-stage{position:static}
  .dh22-preview-shell{min-height:470px}
  .dh22-preview{width:clamp(240px,46%,292px)}
}
@media(max-width:980px){
  .dh22-head{align-items:flex-start;flex-direction:column;gap:12px}
  .dh22-head-side{width:100%}
  .dh22-head-stat{flex:1 1 0;min-width:0}
}
@media(max-width:760px){
  body:has(#p22s0.act) .main-content{padding:18px 16px 32px}
  .dh22-head{align-items:flex-start;flex-direction:column;gap:13px}
  .dh22-title{font-size:28px}
  .dh22-sub{font-size:11px}
  .dh22-mode{width:100%;padding:0}
  .dh22-mode .dh-mode-switch{width:100%;display:flex}
  .dh22-mode .dh-mode-tab{flex:1;justify-content:center;padding:9px 6px;font-size:11.5px}
  .dh22-steps{padding:10px 12px;margin:14px 0 16px}
  .dh22-step small{display:none}
  .dh22-step-line{min-width:12px}
  .dh22-step-note{display:none}
  .dh22-stage-head,.dh22-settings-head{padding:15px 15px 12px}
  .dh22-preview-shell{min-height:420px;margin:0 11px}
  .dh22-preview{width:min(270px,82%)}
  .dh22-stage-meta{padding:9px 15px 13px;flex-direction:column;align-items:flex-start;gap:3px}
  .dh22-settings-body{padding:2px 15px 16px}
  .dh22-block-hint{display:none}
  .dh22-tools-note{display:none}
  .dh22-stage .mdh-recent{padding:13px 15px 16px!important}
}
@media(max-width:390px){
  .dh22-title{font-size:26px}
  .dh22-preview-shell{min-height:390px}
  .dh22-preview{width:250px}
  .dh22-preview-titles{font-size:17px}
  .dh22-preview-caption{font-size:9.5px}
}

/* small action buttons inside the studio */
.dt-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:0 10px;border:1px solid #e8ded4;border-radius:9px;background:#fffaf6;color:#6f655d;font-size:10px;font-weight:750;line-height:1;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease;white-space:nowrap}
.dt-btn:hover{border-color:#dcb9a9;background:#fff3ec;color:#a5432d}
.dt-btn .ic{width:12px;height:12px}
.dt-btn-soft{background:#fff1ea;border-color:#f0cdbf;color:#a5432d}
.dt-btn-ghost{background:transparent}


/* ============================================================
   v2 · 统一字号层级 / 声音与背景音乐卡 / 行内帮助提示
   ============================================================ */
#p22s0{
  --dh-fs-display:34px;
  --dh-fs-section:18px;
  --dh-fs-block:13px;
  --dh-fs-label:11px;
  --dh-fs-body:12px;
  --dh-fs-meta:10px;
  --dh-fs-micro:9px;
  --dh-line:#ece3da;
  --dh-ink:#2b282b;
  --dh-muted:#8f8881;
}

/* --- 字号层级 --- */
#p22s0 .dh22-title{font-size:var(--dh-fs-display)}
#p22s0 .dh22-sub{font-size:12px;line-height:1.75}
#p22s0 .dh22-beta{font-size:9px}
#p22s0 .dh22-head-stat small{font-size:9px}
#p22s0 .dh22-step b{font-size:11px}
#p22s0 .dh22-step small{font-size:9px}
#p22s0 .dh22-step-note{font-size:9px}
#p22s0 .dh22-step-index{font-size:9px}
#p22s0 .dh22-stage-kicker,
#p22s0 .dh22-settings-kicker{font-size:9px}
#p22s0 .dh22-stage-title,
#p22s0 .dh22-settings-title{font-size:var(--dh-fs-section)}
#p22s0 .dh22-settings-sub{font-size:10px}
#p22s0 .dh22-ratio{font-size:9px}
#p22s0 .dh22-stage-meta{font-size:9px}
#p22s0 .dh22-block-title{font-size:var(--dh-fs-block)}
#p22s0 .dh22-block-sub{font-size:var(--dh-fs-meta);line-height:1.55}
#p22s0 .dh22-block-hint{font-size:var(--dh-fs-micro)}
#p22s0 .dh22-field-title,
#p22s0 .dh22-field-label,
#p22s0 .dh22-title-label,
#p22s0 .dh22-tool-label{font-size:var(--dh-fs-label);font-weight:750;color:#4a4541;letter-spacing:.01em}
#p22s0 .dh22-field-hint{font-size:var(--dh-fs-micro);color:#9a938b}
#p22s0 .dh22-hint{font-size:var(--dh-fs-micro);color:#9a938b}
#p22s0 .dh22-input{font-size:var(--dh-fs-body)}
#p22s0 .dh22-generate-note{font-size:var(--dh-fs-micro)}
#p22s0 .dh22-tools-note{font-size:var(--dh-fs-micro)}
#p22s0 .dh22-studio #dhResult{font-size:11px}
#p22s0 .dh22-empty-note{font-size:10px}
#p22s0 .dh22-avatar-scroll .dh-avatar-name{font-size:9px}
#p22s0 .dh22-tpl-name{font-size:9px}

/* --- 小标题行 / 工具条布局 --- */
#p22s0 .dh22-field-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;min-height:18px}
#p22s0 .dh22-field-head>.dh22-field-label{display:inline-flex;align-items:center;gap:4px;margin:0}
#p22s0 .dh22-inline-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;min-height:20px}
#p22s0 .dh22-title-head{display:flex;align-items:center;gap:6px;margin:11px 0 7px;min-height:18px}
#p22s0 .dh22-title-head .dh22-field-hint{margin-left:auto}
#p22s0 .dh22-optimize-row{display:flex;align-items:center;gap:7px;margin:8px 0 2px}
#p22s0 .dh22-mode-row{
  display:inline-flex;align-items:center;gap:3px;margin:0 0 11px;padding:3px;
  border:1px solid #e8ded2;border-radius:10px;background:#f7f0e7;
}
#p22s0 .dh22-mode-row .nw-seg-btn{
  height:28px;padding:0 12px;border:0;border-radius:8px;background:transparent;
  color:#7d7369;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;
}
#p22s0 .dh22-mode-row .nw-seg-btn:hover{color:#a93822}
#p22s0 .dh22-mode-row .nw-seg-btn.is-on{
  background:#fffdfb;color:#a93822;box-shadow:0 1px 4px rgba(120,72,44,.10);
}
#p22s0 .dh22-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:8px 9px;border:1px solid #f1e7de;border-radius:10px;background:#fdfaf7}
#p22s0 .dh22-tools .dt-btn{padding:4px 8px;font-size:9.5px}
#p22s0 .dh22-color{width:26px;height:22px;padding:0;border:1px solid #e5d8cd;border-radius:6px;background:#fff;cursor:pointer}
#p22s0 .dh22-title-grid{gap:9px}
#p22s0 .dh22-title-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
#p22s0 .dh22-title-label span{color:#b3a89f;font-size:9px;font-weight:600}

/* --- 声音卡：横排列表 --- */
#p22s0 #dhVoiceList{display:grid;grid-template-columns:1fr;gap:7px;align-items:stretch;max-height:198px;overflow-y:auto;overflow-x:hidden;padding:2px 5px 2px 1px;scrollbar-width:thin;scrollbar-color:#e6d9cd transparent}
#p22s0 #dhVoiceList::-webkit-scrollbar{width:4px;height:4px}
#p22s0 #dhVoiceList::-webkit-scrollbar-thumb{background:#e6d9cd;border-radius:99px}
#p22s0 .dh22-studio .vv-voice-disc.dh22-vc{
  display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;
  width:auto!important;padding:7px 9px!important;margin:0!important;border:1px solid var(--dh-line)!important;
  border-radius:11px!important;background:#fff!important;cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
#p22s0 .dh22-vc:hover{border-color:#e0bfae!important;background:#fffaf6!important}
#p22s0 .dh22-vc.is-active{border-color:#d64226!important;background:#fff4ef!important;box-shadow:0 6px 16px rgba(214,66,38,.08)}
#p22s0 .dh22-vc:focus-visible{outline:2px solid rgba(214,66,38,.35);outline-offset:2px}
#p22s0 .dh22-vc-avatar{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(150deg,#f6ebe2,#ecdccf);color:#92705d;flex:0 0 auto}
#p22s0 .dh22-vc-avatar .ic{width:16px;height:16px}
#p22s0 .dh22-vc-check{position:absolute;right:-2px;bottom:-2px;display:none;place-items:center;width:14px;height:14px;border-radius:50%;background:#d64226;color:#fff;box-shadow:0 0 0 2px #fff4ef}
#p22s0 .dh22-vc-check .ic{width:8px;height:8px}
#p22s0 .dh22-vc.is-active .dh22-vc-check{display:grid}
#p22s0 .dh22-vc-main{display:flex;flex-direction:column;gap:3px;min-width:0}
#p22s0 .dh22-vc-name{color:var(--dh-ink);font-size:12px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p22s0 .dh22-vc-meta{display:flex;align-items:center;gap:7px;min-width:0}
#p22s0 .dh22-vc-tag{flex:0 0 auto;padding:0 4px;border-radius:4px;background:#f1ece7;color:#8b8178;font-size:9px;font-weight:700;line-height:1.5}
#p22s0 .dh22-vc-tag.is-clone{background:#ffe9e1;color:#a8472f}
#p22s0 .dh22-vc-wave{display:flex;align-items:center;gap:2px;height:13px;overflow:hidden;opacity:.75}
#p22s0 .dh22-vc-wave i{display:block;width:2px;border-radius:99px;background:linear-gradient(180deg,#f0b09c,#d64226)}
#p22s0 .dh22-vc-wave i:nth-child(1){height:4px}
#p22s0 .dh22-vc-wave i:nth-child(2){height:7px}
#p22s0 .dh22-vc-wave i:nth-child(3){height:11px}
#p22s0 .dh22-vc-wave i:nth-child(4){height:6px}
#p22s0 .dh22-vc-wave i:nth-child(5){height:12px}
#p22s0 .dh22-vc-wave i:nth-child(6){height:5px}
#p22s0 .dh22-vc-wave i:nth-child(7){height:9px}
#p22s0 .dh22-vc-wave i:nth-child(8){height:5px}
#p22s0 .dh22-vc.is-active .dh22-vc-wave{opacity:1}
#p22s0 .dh22-vc-play{flex:0 0 auto;padding:4px 9px;border:1px solid #eddfd3;border-radius:99px;background:#fff;color:#8d5a45;font-size:9.5px;font-weight:700;line-height:1.5;cursor:pointer;white-space:nowrap;transition:border-color .15s ease,background .15s ease}
#p22s0 .dh22-vc-play:hover{border-color:#d64226;color:#b03c25;background:#fff4ef}
#p22s0 .dh22-vc-play .ic{width:9px;height:9px;margin-right:2px}
#p22s0 .dh22-vc-noplay{flex:0 0 auto;color:#b6ada5;font-size:9px;white-space:nowrap}

/* --- 背景音乐卡 --- */
#p22s0 #dhBGMList{display:grid;grid-template-columns:1fr;gap:7px;align-items:stretch;max-height:186px;overflow-y:auto;overflow-x:hidden;padding:2px 5px 2px 1px;scrollbar-width:thin;scrollbar-color:#e6d9cd transparent}
#p22s0 #dhBGMList::-webkit-scrollbar{width:4px;height:4px}
#p22s0 #dhBGMList::-webkit-scrollbar-thumb{background:#e6d9cd;border-radius:99px}
#p22s0 .dh22-bgm{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 9px;border:1px solid var(--dh-line);border-radius:11px;background:#fff;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
#p22s0 .dh22-bgm:hover{border-color:#e0bfae;background:#fffaf6}
#p22s0 .dh22-bgm.is-active{border-color:#d64226;background:#fff4ef;box-shadow:0 6px 16px rgba(214,66,38,.08)}
#p22s0 .dh22-bgm-ic{position:relative;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f6efea;color:#9a7f70;flex:0 0 auto}
#p22s0 .dh22-bgm.is-active .dh22-bgm-ic{background:#ffe4d9;color:#c04a2f}
#p22s0 .dh22-bgm-ic .ic{width:14px;height:14px}
#p22s0 .dh22-bgm-main{display:flex;flex-direction:column;gap:2px;min-width:0}
#p22s0 .dh22-bgm-main b{color:var(--dh-ink);font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p22s0 .dh22-bgm-main small{color:#a39a92;font-size:9px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p22s0 .dh22-bgm-play{flex:0 0 auto;padding:4px 9px;border:1px solid #eddfd3;border-radius:99px;background:#fff;color:#8d5a45;font-size:9.5px;font-weight:700;line-height:1.5;cursor:pointer;white-space:nowrap}
#p22s0 .dh22-bgm-play:hover{border-color:#d64226;color:#b03c25;background:#fff4ef}
#p22s0 .dh22-bgm-play .ic{width:9px;height:9px;margin-right:2px}
#p22s0 .dh22-bgm-mark{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#f1ece7;color:#b6ada5}
#p22s0 .dh22-bgm-mark .ic{width:9px;height:9px}
#p22s0 .dh22-bgm.is-active .dh22-bgm-mark{background:#d64226;color:#fff}
#p22s0 .dh22-bgm-empty{padding:10px 11px;border:1px dashed #e3d6ca;border-radius:10px;color:#a59b92;font-size:10px;line-height:1.6}

/* --- 音量条 --- */
#p22s0 #dhBGMVolumeRow{margin-top:9px!important;padding:8px 11px!important;border:1px solid #f0e7de;border-radius:10px!important;background:#faf6f2!important;gap:9px!important}
#p22s0 #dhBGMVolumeRow span{font-size:10px!important;color:#8f8881!important}
#p22s0 #dhBGMVolume{accent-color:#d64226}
#p22s0 #dhBGMStatus{font-size:10px!important;margin-top:6px;color:#9a938b}

/* --- 行内 ? 帮助 --- */
#p22s0 .dh22-help{position:relative;display:inline-grid;place-items:center;width:14px;height:14px;margin-left:4px;border:1px solid #d9cec4;border-radius:50%;background:#fff;color:#9a8d81;font-size:9px;font-weight:800;line-height:1;cursor:help;vertical-align:middle;flex:0 0 auto;user-select:none}
#p22s0 .dh22-help:hover,
#p22s0 .dh22-help:focus{border-color:#d64226;background:#fff4ef;color:#c04228;outline:none}
#p22s0 .dh22-help-pop{position:absolute;left:0;bottom:calc(100% + 8px);width:max-content;max-width:min(250px,calc(100vw - 72px));padding:8px 10px;border-radius:9px;background:#1b1b1f;color:#fff;font-size:11px;font-weight:500;line-height:1.65;letter-spacing:0;white-space:normal;text-align:left;box-shadow:0 12px 26px rgba(27,27,31,.24);display:none;pointer-events:none;z-index:80}
#p22s0 .dh22-help-pop::after{content:"";position:absolute;left:11px;top:100%;width:7px;height:7px;margin-top:-4px;border-radius:1px;background:#1b1b1f;transform:rotate(45deg)}
#p22s0 .dh22-help.is-right .dh22-help-pop{left:auto;right:0}
#p22s0 .dh22-help.is-right .dh22-help-pop::after{left:auto;right:11px}
#p22s0 .dh22-help.is-center .dh22-help-pop{left:50%;transform:translate(-50%,0)}
#p22s0 .dh22-help.is-center .dh22-help-pop::after{left:50%;margin-left:-3.5px}
#p22s0 .dh22-help:hover .dh22-help-pop,
#p22s0 .dh22-help:focus .dh22-help-pop{display:block;animation:dh22-tip-in .14s ease both}
#p22s0 .dh22-help.is-center:hover .dh22-help-pop,
#p22s0 .dh22-help.is-center:focus .dh22-help-pop{transform:translate(-50%,0)}
@keyframes dh22-tip-in{from{opacity:0}to{opacity:1}}
@keyframes dh22-tip-in{from{opacity:0}to{opacity:1}}
#p22s0 .dh22-generate-note{display:flex;align-items:center;justify-content:center;gap:1px;margin-top:8px;color:#a29a92;line-height:1.5}

@media(max-width:760px){
  #p22s0{--dh-fs-display:28px}
  #p22s0 #dhVoiceList{max-height:186px}
  #p22s0 #dhBGMList{max-height:176px}
  #p22s0 .dh22-vc-name,
  #p22s0 .dh22-bgm-main b{font-size:11.5px}
  #p22s0 .dh22-help-pop{max-width:min(220px,calc(100vw - 56px))}
}
@media(max-width:390px){
  #p22s0{--dh-fs-display:26px}
}

@media(max-width:1139px){
  #p22s0 #dhVoiceList,
  #p22s0 #dhBGMList{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}
}
@media(max-width:520px){
  #p22s0 #dhVoiceList,
  #p22s0 #dhBGMList{grid-template-columns:1fr;max-height:196px}
}

/* --- 默认示例形象（无已注册形象时） --- */
#p22s0 .dh22-preview-media.is-demo img{object-position:50% 20%}
#p22s0 .dh22-demo-tag{position:absolute;right:11px;top:10px;z-index:5;padding:3px 7px;border-radius:999px;background:rgba(22,17,15,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:rgba(255,255,255,.92);font-size:8px;font-weight:700;letter-spacing:.06em;line-height:1.4;pointer-events:none}

/* --- 画面模板缩略图：用真实人物画面代替纯黑底 --- */
#p22s0 .dh-tpl-thumb{background-image:linear-gradient(180deg,rgba(15,12,11,.22) 0%,rgba(15,12,11,.12) 38%,rgba(15,12,11,.55) 100%),var(--tpl-bg)!important;background-size:cover!important;background-position:50% 20%!important;background-repeat:no-repeat!important}
