#purchase-policy-admin-host{padding:24px;color:var(--theme-ink,#202238);font-size:14px}
#purchase-policy-admin-host *{box-sizing:border-box;letter-spacing:0}
.ppa-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.ppa-title{margin:0 0 6px;color:inherit;font-size:24px;font-weight:700;line-height:1.4}
.ppa-subtitle,.ppa-help{color:var(--theme-muted,#70748a);font-size:13px;line-height:1.7}
.ppa-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:24px;max-width:1400px}
.ppa-panel{min-width:0;border:1px solid var(--theme-line,#e5e4ef);border-radius:var(--theme-radius,16px);background:var(--theme-surface,#fff);box-shadow:var(--theme-shadow,none);overflow:hidden}
.ppa-panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--theme-line,#e5e4ef)}
.ppa-section-title{margin:0;color:inherit;font-size:16px;font-weight:600;line-height:1.5}
.ppa-body{padding:0 24px}
.ppa-field{padding:21px 0;border-bottom:1px solid var(--theme-line,#e5e4ef)}
.ppa-field:last-child{border-bottom:0}
.ppa-label{display:block;margin-bottom:9px;color:inherit;font-size:14px;font-weight:600}
.ppa-required{margin-left:4px;color:#de4350}
.ppa-control{display:block;width:100%;padding:10px 12px;border:1px solid var(--theme-line,#e5e4ef);border-radius:var(--theme-control-radius,8px);background:var(--theme-surface,#fff);color:var(--theme-ink,#202238);font:inherit;line-height:1.6;outline:none}
.ppa-control:focus{border-color:var(--theme-primary,#7356ef);box-shadow:0 0 0 2px var(--theme-soft,#eee9ff)}
.ppa-control[disabled]{opacity:.65;cursor:wait}
.ppa-textarea{min-height:280px;resize:vertical}
.ppa-field-meta{display:flex;justify-content:space-between;gap:15px;margin-top:6px}
.ppa-count{flex-shrink:0;color:var(--theme-muted,#70748a);font-size:12px;line-height:1.7}
.ppa-switch-label{display:flex;align-items:center;gap:10px;cursor:pointer;white-space:nowrap}
.ppa-switch-label input{position:absolute;width:1px;height:1px;opacity:0}
.ppa-switch-track{position:relative;display:block;width:42px;height:24px;border-radius:12px;background:#b9bdc9;transition:background .15s}
.ppa-switch-track:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 3px #20223826}
.ppa-switch-label input:checked+.ppa-switch-track{background:var(--theme-primary,#7356ef)}
.ppa-switch-label input:checked+.ppa-switch-track:after{transform:translateX(18px)}
.ppa-switch-label input:focus-visible+.ppa-switch-track{outline:2px solid var(--theme-primary,#7356ef);outline-offset:3px}
.ppa-switch-label input:disabled~span{opacity:.55;cursor:wait}
.ppa-switch-copy{font-size:13px;color:var(--theme-muted,#70748a)}
.ppa-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.ppa-type{display:flex;align-items:center;gap:8px;min-height:41px;padding:8px 10px;border:1px solid var(--theme-line,#e5e4ef);border-radius:var(--theme-control-radius,8px);cursor:pointer}
.ppa-type:has(input:checked){border-color:var(--theme-primary,#7356ef);background:var(--theme-soft,#eee9ff)}
.ppa-type input{accent-color:var(--theme-primary,#7356ef)}
.ppa-scope-note{padding:12px 14px;border-radius:var(--theme-control-radius,8px);background:var(--theme-soft,#eee9ff);color:var(--theme-ink,#202238);font-size:12px;line-height:1.7}
.ppa-advice{margin-top:9px;color:var(--theme-muted,#70748a);font-size:12px;line-height:1.8}
.ppa-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 24px;border-top:1px solid var(--theme-line,#e5e4ef);background:var(--theme-surface,#fff)}
.ppa-actions{display:flex;gap:9px;flex-shrink:0}
.ppa-button{min-height:38px;padding:8px 15px;border:1px solid var(--theme-line,#e5e4ef);border-radius:var(--theme-control-radius,8px);background:var(--theme-surface,#fff);color:var(--theme-ink,#202238);font:inherit;font-size:13px;cursor:pointer}
.ppa-button:hover{border-color:var(--theme-primary,#7356ef);color:var(--theme-primary,#7356ef)}
.ppa-button.primary{border-color:var(--theme-primary,#7356ef);background:var(--theme-primary,#7356ef);color:var(--theme-on-primary,#fff)}
.ppa-button:disabled{opacity:.55;cursor:not-allowed}
.ppa-status{min-height:21px;max-width:100%;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:var(--theme-muted,#70748a)}
.ppa-status.is-error{color:#d93c4b}.ppa-status.is-success{color:#168253}
.ppa-loading{padding:50px 24px;color:var(--theme-muted,#70748a);text-align:center}
.ppa-preview-wrap{position:sticky;top:22px}
.ppa-preview-caption{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:13px;color:var(--theme-muted,#70748a)}
.ppa-preview-caption strong{color:var(--theme-ink,#202238);font-size:15px;font-weight:600}
.ppa-phone{padding:20px 14px;background:#e9eaee;border:1px solid #dedfe5;border-radius:26px;color:#202124}
.ppa-preview-dialog{padding:22px 18px 18px;border-radius:18px;background:#fff;box-shadow:0 12px 30px #20212412}
.ppa-preview-tag{display:inline-block;padding:4px 8px;border-radius:6px;background:#fff0f1;color:#ff4955;font-size:11px;font-weight:600}
.ppa-preview-title{margin:13px 0 8px;color:#202124;font-size:20px;font-weight:700;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.ppa-preview-intro{margin-bottom:15px;color:#74777c;font-size:12px;line-height:1.7}
.ppa-preview-content{max-height:290px;overflow:auto;padding:14px;background:#f6f7f9;border-radius:10px;color:#5e6269;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.ppa-preview-check{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;color:#666a70;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.ppa-preview-check input{flex:0 0 auto;width:14px;height:14px;margin:3px 0 0;accent-color:#ff4955}
.ppa-preview-button{width:100%;min-height:42px;margin-top:17px;border:0;border-radius:23px;background:#ff4955;color:white;font-size:13px;font-weight:600;cursor:pointer}
.ppa-preview-button:disabled{background:#eeeef0;color:#a6a8ad;cursor:not-allowed}
.ppa-preview-dismiss{margin-top:11px;text-align:center;color:#92969d;font-size:12px}
.ppa-preview-note{margin-top:12px;color:var(--theme-muted,#70748a);font-size:12px;line-height:1.8}
.ppa-state-tag{display:inline-flex;align-items:center;margin-top:12px;padding:3px 9px;border-radius:20px;background:var(--theme-soft,#eee9ff);color:var(--theme-primary,#7356ef);font-size:12px}
.ppa-menu-mark{display:inline-block;width:7px;height:7px;margin-right:10px;border:2px solid currentColor;border-radius:50%}
@media(max-width:1200px){.ppa-layout{grid-template-columns:minmax(0,1fr) 320px;gap:16px}.ppa-types{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.ppa-layout{grid-template-columns:1fr}.ppa-preview-wrap{position:static;max-width:390px;width:100%;margin:0 auto}}
@media(max-width:600px){#purchase-policy-admin-host{padding:14px}.ppa-header{gap:12px;flex-direction:column}.ppa-title{font-size:21px}.ppa-panel-head{padding:17px 16px}.ppa-body{padding:0 16px}.ppa-toolbar{padding:16px;align-items:flex-start;flex-direction:column}.ppa-actions{width:100%;justify-content:flex-end}.ppa-types{grid-template-columns:repeat(2,minmax(0,1fr))}.ppa-type{font-size:12px}.ppa-switch-copy{display:none}.ppa-preview-wrap{max-width:360px}}
