/* Shared PC tokens; calculator/editor geometry and all existing handlers stay. */
html[data-pc-dialogs]{--pd-panel:#151d23;--pd-panel2:#0e151b;--pd-line:#ffffff16;--pd-copy:#bcc7ce;--pd-title:#e0e6e9;--pd-muted:#8b9aa4;--pd-radius:16px}
html[data-pc-dialogs] body:is([data-pc-ui-theme=theme2],[data-my-theme=theme2]){--pd-panel:#111e20;--pd-panel2:#0a1517;--pd-line:#b0d3c624}
html[data-pc-dialogs] body:is([data-pc-ui-theme=theme3],[data-my-theme=theme3]){--pd-panel:#151e29;--pd-panel2:#0e1621;--pd-line:#b4c9e424}
html[data-pc-dialogs] .pd-panel{box-sizing:border-box!important;border:1px solid var(--pd-line)!important;border-radius:var(--pd-radius)!important;background:linear-gradient(180deg,var(--pd-panel),var(--pd-panel2))!important;color:var(--pd-copy)!important;box-shadow:0 24px 75px #0008,inset 0 1px #ffffff05!important;font-family:system-ui,"Microsoft YaHei",sans-serif!important;font-size:14px!important;line-height:1.6!important}
html[data-pc-dialogs] :is(.gl-modal-head,.pc-preset-modal-head,.diy-result-head,.mb70-modal-head,.ampv2-head,.ut-drawer-head){box-sizing:border-box;padding:16px 19px 13px!important;gap:12px;border-bottom:1px solid var(--pd-line)!important}
html[data-pc-dialogs] :is(.gl-modal h3,.pc-preset-modal-head strong,.pc-preset-modal-head h3,.pc-preset-modal-title,.diy-result-head h3,.mb70-modal h3,.ampv2-head strong,.ut-drawer-title,.facility-selector-title){font-size:18px!important;line-height:1.3!important;font-weight:700!important;color:var(--pd-title)!important;margin:0!important}
html[data-pc-dialogs] :is(.gl-modal-body,.pc-preset-modal-body,.mb70-modal-body,.match-note-copy){padding:17px 19px!important;font-size:14px!important;line-height:1.65!important;color:var(--pd-copy)!important}
html[data-pc-dialogs] :is(.gl-modal-head small,.diy-result-head>div>span,.mb70-modal-head small){display:none!important}
html[data-pc-dialogs] :is(.gl-modal-foot,.pc-preset-modal-actions,.mb70-modal-foot,.amp-center-footer){padding:13px 19px 16px!important;gap:10px!important;border-top:1px solid var(--pd-line)!important}
html[data-pc-dialogs] :is(.gl-modal-foot,.pc-preset-modal-actions,.mb70-modal-foot,.amp-center-footer) button{box-sizing:border-box!important;min-height:38px!important;height:38px!important;padding:0 16px!important;border-radius:9px!important;font-family:inherit!important;font-size:14px!important;line-height:1.3!important;box-shadow:inset 0 1px #ffffff08,0 2px 4px #0002}
html[data-pc-dialogs] :is(.gl-x,.pc-preset-close,.pc-preset-modal-close,.diy-result-close,.mb70-x,.ampv2-head>button,.ut-drawer-close,.fc27-amp-modal-close){box-sizing:border-box!important;display:grid;place-items:center;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--pd-muted)!important;box-shadow:none!important;font:24px/1 system-ui!important;flex:none}
html[data-pc-dialogs] :is(.gl-x,.pc-preset-close,.diy-result-close,.ampv2-head>button):hover{background:#ffffff06!important;color:#e1e7ea!important}
html[data-pc-dialogs] :is(.gl-modal,.pc-preset-modal,.mb70-modal):not(.gl-preview-modal){max-height:calc(100dvh - 40px);overflow:auto}
html[data-pc-dialogs] .pd-panel :is(input:not([type=checkbox]):not([type=range]),select){font-size:14px!important;border-radius:8px}
html[data-pc-dialogs] .attr-match-note-popover{padding:0!important;overflow:hidden}
html[data-pc-dialogs] .accel-rule-popover{padding:17px 19px!important;font-size:14px!important;line-height:1.65!important}
html[data-pc-dialogs] .amp-center-tabs button{font-size:14px!important}
html[data-pc-dialogs] #pcPresetModal{max-height:calc(100dvh - 40px);overflow:auto}
html[data-pc-dialogs] .pc-preset-modal-head small{display:none!important}
html[data-pc-dialogs] :is(.pc-preset-modal-head>div>span,.pc-preset-note,.pc-preset-help){font-size:12px!important;line-height:1.6!important;color:var(--pd-muted)!important}
html[data-pc-dialogs] :is(.facility-selector-head){padding:16px 19px 13px!important;border-bottom:1px solid var(--pd-line)!important}
html[data-pc-dialogs] .facility-selector-head h3{font-size:18px!important;color:var(--pd-title)!important}
html[data-pc-dialogs] .facility-drawer-close{width:32px!important;height:32px!important;border:0!important;background:transparent!important;font-size:24px!important;color:var(--pd-muted)!important}
html[data-pc-dialogs] :is(#pcFeedbackNotice h3,.ut-player-link-confirm-name){font-size:18px!important;color:var(--pd-title)!important}
html[data-pc-dialogs] :is(#pcFeedbackNotice p,.ut-player-link-confirm-copy){font-size:14px!important;line-height:1.65!important}
html[data-pc-dialogs] :is(.pc-feedback-actions,.ut-player-link-confirm-actions) button{height:38px!important;min-height:38px!important;border-radius:9px!important;font-size:14px!important}
html[data-pc-dialogs] .accel-rule-popover::before{font-size:18px!important;line-height:1.3!important;margin-bottom:12px}
html[data-pc-dialogs] .pd-note-backdrop{position:fixed;inset:0;background:#03070aa6;backdrop-filter:blur(3px);z-index:100998}
html[data-pc-dialogs] .attr-match-note-popover{position:fixed!important;left:50%!important;top:50%!important;bottom:auto!important;right:auto!important;transform:translate(-50%,-50%)!important;width:min(495px,calc(100vw - 32px))!important;max-height:calc(100dvh - 40px)!important;overflow:auto!important;z-index:100999!important}
html[data-pc-dialogs] .pd-price-dialog .cost-legend{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html[data-pc-dialogs] .pd-price-dialog .cost-legend-item{border:1px solid var(--pd-line);border-radius:10px;padding:12px;background:#ffffff02}
html[data-pc-dialogs] .pd-price-dialog .cost-legend-name{font-size:14px!important;color:var(--pd-title)}
html[data-pc-dialogs] .pd-price-dialog .cost-legend-desc{font-size:12px!important;color:var(--pd-muted);margin-top:5px}
html[data-pc-dialogs] .pd-price-dialog .attribute-price-note{font-size:12px!important;line-height:1.6!important;margin-top:14px}

html[data-pc-dialogs] .pc-lang-dialog h3{font-size:18px!important;line-height:1.3!important}html[data-pc-dialogs] .pc-lang-dialog p{font-size:14px!important;line-height:1.65!important}html[data-pc-dialogs] .pc-lang-dialog-actions button{height:38px!important;min-height:38px!important;font-size:14px!important;border-radius:9px!important}

html[data-pc-dialogs] .account-dialog-head #account-window-title{font-size:18px!important;line-height:1.3!important;font-weight:700!important}html[data-pc-dialogs] .account-icon{width:32px!important;min-width:32px!important;height:32px!important}html[data-pc-dialogs] .account-embedded .panel{padding:16px 19px 20px!important}html[data-pc-dialogs] .account-embedded form>button:is(.primary,.secondary){height:38px!important;min-height:38px!important;font-size:14px!important;border-radius:9px!important}
