/* Settings only: never change compact operational lists or business rules. */
.settings-content input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px;padding:0!important;margin:2px 0 0!important;flex:0 0 18px;accent-color:#2563eb;border-radius:4px;box-shadow:none}
.settings-fields label:has(>input[type="checkbox"]),.settings-card>label:has(>input[type="checkbox"]),.settings-form>label:has(>input[type="checkbox"]){display:flex;align-items:flex-start;gap:10px;line-height:1.45;cursor:pointer}
.screen-buy-preferences-pane{min-width:0}
.prefs-form{gap:16px}
.prefs-feedback{margin:0 0 16px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.prefs-card{padding:20px;min-width:0}
.prefs-card-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e7edf5}
.prefs-step{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:13px;font-weight:800}
.prefs-card-heading h3{margin:0 0 5px;color:#142b4a;font-size:16px;line-height:1.3}
.prefs-card-heading p,.prefs-field small,.prefs-hint,.prefs-scope-note{margin:0;color:#64748b;font-size:12px;line-height:1.5;font-weight:400}
.prefs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.prefs-field{display:flex!important;flex-direction:column;align-items:stretch;gap:7px!important;min-width:0;font-size:13px!important;font-weight:650!important;color:#334155}
.prefs-field>span{line-height:1.4}
.prefs-field input,.prefs-field select,.prefs-field textarea{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172033;font:inherit;font-weight:400;font-size:13px;padding:10px 12px;line-height:1.4}
.prefs-field input,.prefs-field select{min-height:42px}
.prefs-field textarea{min-height:90px;resize:vertical}
.prefs-field :is(input,select,textarea):focus-visible,.prefs-switch input:focus-visible{outline:3px solid #bfdbfe;outline-offset:2px;border-color:#2563eb}
.prefs-switch-list{display:grid;gap:10px;padding:0;margin:20px 0 10px;border:0;min-width:0}
.prefs-switch-list legend{font-size:12px;font-weight:700;color:#475569;margin-bottom:10px;padding:0}
.prefs-switch{display:grid!important;grid-template-columns:18px minmax(0,1fr);align-items:start!important;gap:12px!important;padding:13px 14px;border:1px solid #dce5ef;border-radius:10px;background:#f8fafc;cursor:pointer;min-width:0}
.prefs-switch:has(input:checked){border-color:#bfdbfe;background:#f2f7ff}
.prefs-switch>span,.prefs-switch b,.prefs-switch small{display:block;min-width:0}
.prefs-switch b{font-size:13px;line-height:1.4;font-weight:650;color:#243d5e}
.prefs-switch small{margin-top:4px;font-size:12px;line-height:1.45;font-weight:400;color:#64748b}
.prefs-switch-main{margin-bottom:8px}
.prefs-mail-state{margin:0 0 20px;font-size:12px;line-height:1.45;color:#64748b}
.prefs-mail-state.is-enabled{color:#166534}
.prefs-block{margin:20px 0}
.prefs-block h4{margin:0 0 12px;color:#334155;font-size:13px}
.prefs-template-picker{padding:15px;margin:20px 0 16px;border:1px solid #dbe7f7;border-radius:10px;background:#f5f9ff}
.prefs-template-fields{display:grid;gap:17px}
.prefs-hint{margin:10px 0}
.prefs-variables{padding:12px;border-radius:9px;background:#f8fafc;overflow-wrap:anywhere}
.prefs-variables code{display:inline-block;max-width:100%;padding:3px 5px;margin:3px 2px;border:1px solid #e2e8f0;border-radius:5px;color:#28507e;font-size:11px}
.prefs-variables span{display:block;margin-top:5px}
.prefs-preview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}
.prefs-reset-template{padding:7px 0;text-align:left}
.prefs-preview{margin-top:16px;min-width:0}
.prefs-preview>p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:#475569}
.prefs-preview iframe{display:block;box-sizing:border-box;width:100%;height:500px;min-width:0;border:1px solid #dbe3ef;border-radius:10px;background:#fff}
.prefs-scope-note{padding-top:14px;margin-top:18px;border-top:1px solid #edf2f7;font-size:11px}
.prefs-secondary-card{padding:15px 18px}
.prefs-secondary-card summary{font-size:13px;line-height:1.5;color:#334155;font-weight:650;cursor:pointer}
.prefs-secondary-card details>p{font-size:12px;line-height:1.6;color:#64748b}
#screenBuyPreferencesHistory>p{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;margin:0;border-bottom:1px solid #edf2f7;flex-wrap:wrap}
.prefs-save-panel{display:grid;gap:14px;padding:16px;border:1px solid #bfdbfe;border-radius:12px;background:#f5f9ff}
.prefs-confirm{background:#fff}
.prefs-save-actions,.prefs-secondary-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.prefs-save-actions{justify-content:space-between}
.prefs-save-actions>.btn{min-height:42px}
.prefs-form .btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:1050px){.prefs-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .prefs-card{padding:16px}.prefs-card-heading{gap:10px;margin-bottom:16px}.prefs-card-heading h3{font-size:15px}
 .prefs-field input,.prefs-field select,.prefs-field textarea{font-size:16px}.prefs-switch{padding:12px;gap:10px!important}.prefs-field small,.prefs-switch small{font-size:12px}
 .prefs-save-panel{padding:12px}.prefs-save-actions,.prefs-secondary-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.prefs-save-actions .btn{width:100%;min-height:42px;white-space:normal}
 .prefs-preview-actions{display:grid;grid-template-columns:minmax(0,1fr)}.prefs-preview-actions .btn{width:100%;white-space:normal}.prefs-preview iframe{height:420px}
}
