/* Explicit choices override the legacy fixed input sizes without changing desktop defaults. */
html body [data-personalization-editor]:not(#pz-editor-priority),
html body [data-personalization-editor]:not(#pz-editor-priority) :is(h1,h2,h3,h4,p,label,button,input,textarea,select,summary,small,strong,span,a){font-family:"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif!important}
@media(max-width:650px){
  html body :is(input,textarea,select):not(#pz-mobile-priority):not([type=range]):not([type=color]):not([type=checkbox]):not([type=radio]):not([type=file]){font-size:max(16px,var(--pz-input-size,16px))!important}
}
@media(min-width:651px) and (max-width:1150px){:root{--pz-original-sidebar:205px}}
@media(min-width:651px) and (max-width:920px){:root{--pz-original-sidebar:180px}}
@media(min-width:651px) and (max-width:760px){:root{--pz-original-sidebar:160px}}

#theme-editor .pz-section{margin-top:18px;border-top:1px solid #e5c8b2;padding-top:3px}
#theme-editor .pz-section>summary{padding:12px 0;font-size:13px;color:#644638;cursor:pointer;font-weight:600}
#theme-editor .pz-group{border:1px solid #e4c7b2;border-radius:10px;margin:10px 0;background:#fff9f0}
#theme-editor .pz-group>summary{padding:11px 12px;cursor:pointer;font-size:12px;color:#644638}
#theme-editor .pz-group-body{padding:4px 12px 14px}
#theme-editor .pz-field{display:block;margin:12px 0;color:#644638;font-size:11px}
#theme-editor .pz-field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
#theme-editor .pz-field output{font-size:11px;color:#85533c}
#theme-editor .pz-field select,#theme-editor .pz-field input:not([type=checkbox]):not([type=range]):not([type=color]){width:100%;padding:8px;min-height:38px;background:#fffdf6;border:1px solid #d6ab8c;border-radius:7px;color:#644638;font-size:12px}
#theme-editor .pz-field input[type=range]{width:100%;accent-color:#b96f49;border:0;background:none;box-shadow:none}
#theme-editor .pz-field input[type=color]{width:100%;height:36px;padding:3px}
#theme-editor .pz-field input[type=checkbox]{width:17px;height:17px;accent-color:#b96f49}
#theme-editor .pz-help{font-size:10px;line-height:1.8;color:#785344;margin:8px 0;overflow-wrap:anywhere}
#theme-editor .pz-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#theme-editor .pz-actions button,#theme-editor .pz-font-list button{border:1px solid #d6ab8c;background:#fff7eb;color:#76503d;border-radius:6px;padding:6px 9px;font-size:11px;min-height:32px}
#theme-editor .pz-status{font-size:11px;color:#8d372d;line-height:1.7;margin:8px 0}
#theme-editor .pz-preview{border:1px dashed #d6ab8c;background:#fffdf6;border-radius:9px;padding:14px;overflow-wrap:anywhere;color:#644638;margin:10px 0;max-height:180px;overflow:auto}
#theme-editor .pz-font-list{display:grid;gap:10px;max-height:420px;overflow:auto;overscroll-behavior:contain}
#theme-editor .pz-font-card{padding:12px;border:1px solid #e4c7b2;border-radius:9px;background:#fff9f0}
#theme-editor .pz-font-card strong{display:block;font-size:12px;color:#644638}
#theme-editor .pz-font-card small{font-size:10px;color:#785344}
#theme-editor .pz-font-card a{color:#8d5036;font-size:11px;text-underline-offset:3px}
#theme-editor .pz-font-preview{margin:10px 0;font-size:23px;color:#644638;overflow-wrap:anywhere}
#theme-editor .pz-font-tools{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
#theme-editor .pz-font-filters{display:grid;gap:10px;margin-bottom:12px}
#theme-editor .pz-font-filter{display:grid;gap:5px;font-size:11px;color:#644638}
#theme-editor .pz-font-filter input,#theme-editor .pz-font-filter select{width:100%;min-height:38px;padding:8px;background:#fffdf6;border:1px solid #d6ab8c;border-radius:7px;color:#644638;font-size:12px}
#theme-editor .pz-font-favorites-label{display:flex;align-items:center;gap:8px;font-size:11px}
#theme-editor .pz-font-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px}
#theme-editor .pz-font-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
#theme-editor .pz-font-note,#theme-editor .pz-font-status,#theme-editor .pz-font-error{font-size:11px;line-height:1.8;margin:8px 0;color:#785344}
#theme-editor .pz-font-error{color:#8d372d}
@media(max-width:650px){#theme-editor .pz-field input,#theme-editor .pz-field select{font-size:16px!important}#theme-editor .pz-group-body{padding-left:10px;padding-right:10px}}

/* Each customization section shares the sound workbench's card treatment. */
#theme-editor.theme-editor{
  --pz-editor-background:#21162e;--pz-editor-surface:#34243c;--pz-editor-accent:#ffb98c;--pz-editor-secondary:#dcaac3;
  --pz-editor-ink:#fff1e8;--pz-editor-card-ink:#fff1e8;--pz-editor-accent-ink:#211629;--pz-editor-hint:#ffb98c;--pz-editor-card-hint:#ffb98c;
  --pz-editor-base-end:#1e142a;--pz-editor-card-end:#302137;--pz-editor-button-end:#ffc3a0;
  --pz-editor-muted:var(--pz-editor-ink);--pz-editor-line:color-mix(in srgb,var(--pz-editor-hint) 28%,transparent);
  color:var(--pz-editor-ink);color-scheme:var(--pz-editor-scheme,dark);
  background:linear-gradient(150deg,var(--pz-editor-background),var(--pz-editor-base-end));
  border-color:var(--pz-editor-line);box-shadow:inset 0 1px 0 #ffffff1a,0 24px 80px #100a2499,0 0 30px color-mix(in srgb,var(--pz-editor-secondary) 12%,transparent);
}
#theme-editor.theme-editor :is(.te-header,.te-footer){color:var(--pz-editor-ink);background:linear-gradient(120deg,var(--pz-editor-background),var(--pz-editor-base-end));border-color:var(--pz-editor-line);box-shadow:inset 0 1px 0 #ffffff10}
#theme-editor.theme-editor .te-body{scrollbar-color:var(--pz-editor-secondary) var(--pz-editor-background);padding:16px}
#theme-editor.theme-editor :is(.te-color-workbench,.te-design,.pz-section){
  --pz-editor-ink:var(--pz-editor-card-ink);--pz-editor-hint:var(--pz-editor-card-hint);--pz-editor-muted:var(--pz-editor-card-ink);
  --pz-editor-line:color-mix(in srgb,var(--pz-editor-card-hint) 28%,transparent);
  position:relative;margin:14px 0 0;padding:0 14px 14px;color:var(--pz-editor-card-ink);
  border:1px solid var(--pz-editor-line);border-radius:16px;
  background:linear-gradient(145deg,var(--pz-editor-surface),var(--pz-editor-card-end));
  box-shadow:inset 0 1px 0 #ffffff1a,0 8px 24px #0e071c26,0 0 18px color-mix(in srgb,var(--pz-editor-secondary) 5%,transparent);
}
#theme-editor.theme-editor :is(.te-color-workbench,.te-design,.pz-section):not([open]){padding-bottom:0}
#theme-editor.theme-editor :is(.te-color-workbench,.te-design,.pz-section)>summary{padding:14px 0;color:var(--pz-editor-ink);font-size:13px;line-height:1.7;font-weight:600;cursor:pointer}
#theme-editor.theme-editor :is(.te-color-workbench,.te-design,.pz-section)[open]>summary{margin-bottom:12px;border-bottom:1px solid var(--pz-editor-line)}
#theme-editor.theme-editor :is(.te-title,.te-label,.te-design h3,.pz-field,.pz-font-card strong,.pz-font-preview,.pz-font-filter,.pz-preview,.te-part-name){color:var(--pz-editor-ink)}
#theme-editor.theme-editor :is(.te-eyebrow,.te-value,.pz-field output,.pz-rule-caption span,.pz-sound-intro){color:var(--pz-editor-hint)}
#theme-editor.theme-editor :is(.te-intro,.te-help,.te-part-description,.te-footer-note,.pz-help,.pz-font-card small,.pz-font-note,.pz-font-status,.pz-font-favorites-label){color:var(--pz-editor-muted);line-height:1.85}
#theme-editor.theme-editor :is(.te-close,.te-part,.te-button-secondary,.pz-actions button,.pz-font-list button,.pz-rule-row button){
  color:var(--pz-editor-ink);border:1px solid var(--pz-editor-line);border-radius:10px;background:transparent;
  box-shadow:inset 0 1px 0 #ffffff10,0 3px 12px #0b07191a;transition:border-color .18s,box-shadow .18s;
}
#theme-editor.theme-editor .te-close{border-radius:50%}
#theme-editor.theme-editor :is(.te-close,.te-part,.te-button-secondary,.pz-actions button,.pz-font-list button,.pz-rule-row button):hover{background:transparent;border-color:var(--pz-editor-hint);box-shadow:0 0 14px color-mix(in srgb,var(--pz-editor-secondary) 15%,transparent)}
#theme-editor.theme-editor :is(.te-part.is-active,.te-part.is-active:hover,.te-button-primary,.te-button-primary:hover,.pz-sound-channel button[data-sound-preview]:first-child){color:var(--pz-editor-accent-ink);border-color:var(--pz-editor-accent);background:linear-gradient(125deg,var(--pz-editor-accent),var(--pz-editor-button-end));box-shadow:inset 0 1px 0 #ffffff36,0 4px 16px color-mix(in srgb,var(--pz-editor-accent) 13%,transparent)}
#theme-editor.theme-editor .te-part.is-active .te-part-name{color:inherit}
#theme-editor.theme-editor :is(input,select,.pz-field select,.pz-field input:not([type=checkbox]):not([type=range]):not([type=color]),.pz-font-filter input,.pz-font-filter select){color:var(--pz-editor-card-ink);color-scheme:var(--pz-editor-card-scheme,dark);border-color:var(--pz-editor-line);background:var(--pz-editor-card-end);box-shadow:inset 0 2px 7px #0e081a20;border-radius:9px}
#theme-editor.theme-editor select option{color:var(--pz-editor-card-ink);background:var(--pz-editor-surface)}
#theme-editor.theme-editor input[type=color]{display:block;width:100%;height:38px;padding:4px;border:1px solid var(--pz-editor-line);cursor:pointer}
#theme-editor.theme-editor :is(input[type=range],input.te-range){background:transparent;border:0;box-shadow:none;accent-color:var(--pz-editor-accent);height:26px}
#theme-editor.theme-editor input[type=checkbox]{accent-color:var(--pz-editor-accent)}
#theme-editor.theme-editor :is(button,summary,input,select):focus-visible{outline:2px solid var(--pz-editor-hint);outline-offset:3px}
#theme-editor.theme-editor :is(input:focus,select:focus){border-color:var(--pz-editor-hint);box-shadow:0 0 0 3px color-mix(in srgb,var(--pz-editor-hint) 12%,transparent)}
#theme-editor.theme-editor :is(.te-advanced,.te-design h3:not(:first-child)){border-color:var(--pz-editor-line)}
#theme-editor.theme-editor :is(.te-advanced summary,.te-text-button,.te-text-button:hover,.pz-font-card a){color:var(--pz-editor-hint)}
#theme-editor.theme-editor :is(.pz-group,.pz-font-card,.pz-preview,.pz-sound-channel,.pz-sound-routing,.pz-sound-rules){margin:12px 0 0;border:1px solid var(--pz-editor-line);border-radius:12px;background:transparent;box-shadow:inset 0 1px 0 #ffffff0d}
#theme-editor.theme-editor :is(.pz-sound-channel,.pz-sound-routing,.pz-sound-rules){padding:0 12px 10px}
#theme-editor.theme-editor :is(.pz-sound-channel,.pz-sound-routing,.pz-sound-rules):not([open]){padding-bottom:0}
#theme-editor.theme-editor :is(.pz-group,.pz-sound-channel,.pz-sound-routing,.pz-sound-rules)>summary{color:var(--pz-editor-ink);padding:13px 0;font-size:12px;line-height:1.7;cursor:pointer;font-weight:600}
#theme-editor.theme-editor .pz-group>summary{padding-left:12px;padding-right:12px}
#theme-editor.theme-editor :is(.pz-sound-channel,.pz-sound-routing,.pz-sound-rules)[open]>summary{margin-bottom:10px;border-bottom:1px solid var(--pz-editor-line)}
#theme-editor.theme-editor :is(.te-error,.pz-status,.pz-font-error,.te-field-error){color:var(--pz-editor-ink)}
#theme-editor.theme-editor .te-error{border-color:var(--pz-editor-line);background:transparent}
#theme-editor.theme-editor .pz-actions{gap:8px;margin-top:12px}
#theme-editor.theme-editor .pz-actions button{min-height:38px;padding:8px 10px}
#theme-editor.theme-editor .pz-sound-intro{font-size:12px;margin-bottom:12px;letter-spacing:.4px}
#theme-editor.theme-editor .pz-field-heading{gap:8px;line-height:1.6}
#theme-editor.theme-editor .pz-field output{flex-shrink:0;min-width:54px;text-align:right;font-variant-numeric:tabular-nums}
#theme-editor.theme-editor .pz-rule-list{display:grid;gap:8px;margin-top:14px}
#theme-editor.theme-editor .pz-rule-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;padding:10px 0;border-top:1px solid var(--pz-editor-line)}
#theme-editor.theme-editor .pz-rule-caption{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere;font-size:11px}
#theme-editor.theme-editor .pz-rule-caption strong{color:var(--pz-editor-ink);font-weight:500}
#theme-editor.theme-editor .pz-rule-row button{min-height:36px;padding:6px 8px;font-size:11px}
@media(max-width:650px){
 #theme-editor.theme-editor :is(button,.pz-actions button,.pz-rule-row button,summary){min-height:44px}
 #theme-editor.theme-editor :is(input:not([type=range]):not([type=checkbox]),select){min-height:44px;font-size:16px!important}
 #theme-editor.theme-editor .te-close{flex-basis:44px;height:44px}
 #theme-editor.theme-editor .te-body{padding:12px}
 #theme-editor.theme-editor :is(.te-color-workbench,.te-design,.pz-section){padding-left:12px;padding-right:12px}
}
@media(prefers-reduced-motion:reduce){#theme-editor.theme-editor button{transition:none}}

#theme-editor.theme-editor .pz-focus-intro{font-size:12px;line-height:1.8;color:var(--pz-editor-hint);margin:0 0 10px;letter-spacing:.3px}
#theme-editor.theme-editor .pz-focus-preview{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--pz-editor-line);border-radius:12px;min-height:145px;margin:18px 0;padding:18px;display:flex;flex-direction:column;justify-content:center;gap:10px;background:#25182d;color:#fff1e8}
#theme-editor.theme-editor .pz-focus-preview-art{position:absolute;inset:-20px;z-index:-1;pointer-events:none;background:radial-gradient(circle at 28% 35%,#ffe6c2 0 1px,transparent 2px),radial-gradient(circle at 71% 62%,#ffeadb 0 1px,transparent 2px),radial-gradient(ellipse at 23% 26%,#ce8d9e88,transparent 48%),radial-gradient(ellipse at 75% 80%,#e8ab7966,transparent 48%),linear-gradient(125deg,#34223d,#68415b 50%,#281b38);background-size:47px 57px,73px 67px,auto,auto,auto}
#theme-editor.theme-editor .pz-focus-preview-label{font-size:10px;letter-spacing:1px;color:#f1d0ca}
#theme-editor.theme-editor .pz-focus-preview strong{font-size:17px;font-weight:500;color:#fff1e8}
#theme-editor.theme-editor .pz-focus-preview-state{font-size:11px;line-height:1.7;color:#f2d1c9}
