.redemption-editor[hidden],.redemption-editor [hidden]{display:none!important}
.redemption-editor{font-family:var(--font);color:var(--ink)}
.redemption-editor .rx-panel{width:min(760px,calc(100vw - 48px));max-width:none;max-height:min(940px,calc(100dvh - 48px));border-radius:var(--dialog-radius)}
.redemption-editor .rx-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.redemption-editor .rx-head{padding:24px 28px 0}.redemption-editor .rx-head h2{padding:0;font-size:20px;line-height:28px}
.redemption-editor-label{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:1px 6px}
.redemption-editor .rx-head p{margin:6px 0 0;font-size:13px}.redemption-editor .rx-form{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.redemption-editor .rx-body{padding:22px 28px 24px;display:block;scrollbar-gutter:stable;min-height:0}
.redemption-editor .rx-section{padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.redemption-editor h3,.redemption-editor h4{margin:0 0 14px;font-size:14px;line-height:22px;font-weight:600}
.redemption-editor .rx-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.redemption-editor .rx-section-heading h3{margin:0}
.redemption-editor .rx-section-heading button{padding:0;min-height:24px;font-size:12px;color:var(--muted);border:0;background:transparent}.redemption-editor .rx-section-heading button[aria-pressed=true]{color:var(--brand)}
.redemption-editor .rx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.redemption-editor .rx-three{grid-template-columns:repeat(3,minmax(0,1fr))}.redemption-editor .rx-wide{grid-column:1/-1}
.redemption-editor .rx-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0!important;font-size:13px;line-height:20px;color:var(--muted)}
.redemption-editor .rx-field>span,.redemption-editor .rx-field>label{display:flex;align-items:center;gap:4px;min-height:20px;margin:0;font-weight:400}
.redemption-editor .rx-field :is(input,select,textarea){font-size:14px;line-height:22px;min-height:40px;padding:8px 11px;color:var(--ink);border-color:var(--line);box-shadow:none}
.redemption-editor .rx-field :is(input,select,textarea):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.redemption-editor .title-help-button{flex-shrink:0;vertical-align:middle}.redemption-editor .rx-required{color:var(--danger)}
.redemption-editor .rx-command{display:flex;align-items:stretch;gap:8px;min-width:0}.redemption-editor .rx-command input{flex:1;width:0;min-width:0}.redemption-editor .rx-command button{flex:none;padding:6px 12px;font-size:13px}
.redemption-editor .rx-unit{display:flex;position:relative;min-width:0;align-items:center}.redemption-editor .rx-unit input{padding-right:52px;width:100%;min-width:0;appearance:textfield}.redemption-editor .rx-unit input::-webkit-inner-spin-button{appearance:none}.redemption-editor .rx-unit>span{position:absolute;right:12px;white-space:nowrap;color:var(--muted);font-size:13px;pointer-events:none}
.redemption-editor .rx-target-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;line-height:20px;color:var(--muted);margin-top:10px}
.redemption-editor .rx-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--surface-subtle);padding:4px;border:1px solid var(--line);border-radius:var(--radius)}
.redemption-editor .rx-choices label{display:flex;align-items:center;justify-content:center;position:relative;margin:0;min-height:36px;font-size:14px;line-height:20px;font-weight:400;border:1px solid transparent;border-radius:4px;cursor:pointer;color:var(--muted);padding:6px 5px;text-align:center}
.redemption-editor .rx-choices label:has(input:checked){color:var(--brand);background:var(--surface);border-color:var(--line);font-weight:500}
.redemption-editor .rx-choices input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.redemption-editor .rx-choices label:focus-within{outline:2px solid var(--brand);outline-offset:1px}
.redemption-editor .rx-choices[aria-disabled=true]{opacity:.5;pointer-events:none}
.redemption-editor .rx-behavior{font-size:12px;line-height:20px;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}.redemption-editor .rx-subfields{margin-top:14px}
.redemption-editor .rx-custom{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;font-size:13px}.redemption-editor .rx-custom label{display:flex;align-items:center;gap:6px}
.redemption-editor .rx-limit{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;font-size:13px;color:var(--muted)}.redemption-editor .rx-limit>label{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.redemption-editor .rx-limit .rx-unit{width:108px;flex-shrink:0}.redemption-editor .rx-limit input{min-height:36px;padding-block:6px;font-size:14px}
.redemption-editor .rx-notify-row,.redemption-editor .rx-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;line-height:22px}.redemption-editor .rx-notify-row{margin-top:14px}.redemption-editor .rx-destination{margin-top:12px!important}.redemption-editor .rx-toggle-row>label{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.redemption-editor .toggle-switch-input{flex:none}
.redemption-editor .rx-other{margin:0 0 18px;padding:0;border:0}.redemption-editor .rx-other>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:28px;font-size:13px}.redemption-editor .rx-other>summary::-webkit-details-marker{display:none}.redemption-editor .rx-other>summary strong{font-size:14px}.redemption-editor .rx-other>summary span{flex:1;color:var(--muted);font-size:12px}.redemption-editor .rx-other>summary svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;color:var(--muted)}.redemption-editor .rx-other[open]>summary svg{transform:rotate(180deg)}
.redemption-editor .rx-other-body{display:grid;gap:20px;margin-top:18px}.redemption-editor .rx-other-body section+section{padding-top:20px;border-top:1px solid var(--line)}
.redemption-editor .rx-summary{border-radius:var(--radius);background:var(--surface-subtle);padding:12px 14px;line-height:22px;font-size:13px}.redemption-editor .rx-summary strong{font-weight:500;color:var(--muted);font-size:12px}.redemption-editor .rx-summary p{margin:4px 0 0;color:var(--ink);overflow-wrap:anywhere}
.redemption-editor .rx-footer{padding:16px 28px;justify-content:space-between;gap:12px}.redemption-editor .rx-footer-note{font-size:12px;color:var(--muted)}
.redemption-editor .rx-candidates{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.redemption-editor .rx-muted{font-size:12px;color:var(--muted)}.redemption-editor .rx-candidates>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.redemption-editor .rx-product-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;min-width:0;padding:10px 12px;background:var(--surface);color:var(--ink)}.redemption-editor .rx-product-option strong{font-size:13px;font-weight:500}.redemption-editor .rx-product-option small{font-size:12px;color:var(--muted);white-space:normal}.redemption-editor .rx-product-option[aria-pressed=true]{border-color:var(--brand);background:var(--brand-tint)}
.redemption-editor .rx-weekdays{display:flex;flex-wrap:wrap;gap:12px;border:0;margin:0;padding:0;font-size:13px}.redemption-editor .rx-weekdays legend{font-size:12px;color:var(--muted);padding-bottom:8px}.redemption-editor .rx-weekdays label{display:flex;gap:5px;align-items:center}
.redemption-editor .form-error{font-size:13px;line-height:22px;margin-bottom:16px}
@media(max-width:600px){.redemption-editor .rx-panel{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.redemption-editor .rx-head{padding:20px 18px 0}.redemption-editor .rx-head h2{font-size:18px}.redemption-editor .rx-body{padding:20px 18px}.redemption-editor .rx-grid{grid-template-columns:minmax(0,1fr);gap:14px}.redemption-editor .rx-three{grid-template-columns:repeat(2,minmax(0,1fr))}.redemption-editor .rx-three>.rx-field:last-child{grid-column:1/-1}.redemption-editor .rx-title-line{gap:8px}.redemption-editor .redemption-editor-label{font-size:11px}.redemption-editor .rx-other>summary{flex-wrap:wrap;gap:4px 8px}.redemption-editor .rx-other>summary span{order:3;flex-basis:100%;line-height:20px}.redemption-editor .rx-other>summary svg{margin-left:auto}.redemption-editor .rx-footer{padding:12px 18px;gap:8px}.redemption-editor .rx-footer-note{flex-basis:100%;font-size:11px}.redemption-editor .rx-footer .modal-action-group{margin-left:auto}.redemption-editor .rx-choices label{font-size:13px;min-height:40px;padding-inline:2px}.redemption-editor .rx-candidates>div{grid-template-columns:1fr}.redemption-editor .rx-command button{padding:6px 10px}.redemption-editor .rx-limit>label{max-width:calc(100% - 105px)}.redemption-editor .rx-limit .rx-unit{width:90px}.redemption-editor .rx-target-meta{gap:4px 12px}}
/* Refinement: ordinary choices stay near their target, uncommon inputs disclose on demand. */
.redemption-editor .rx-field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px}
.redemption-editor .rx-field-heading>label{display:flex;gap:4px;align-items:center;font-size:13px;color:var(--muted);white-space:nowrap}
.redemption-editor .rx-field-heading>.text-action{padding:0;min-height:20px;font-size:12px;line-height:20px;white-space:nowrap}
.redemption-editor .rx-product-control{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:8px;min-width:0}
.redemption-editor .rx-product-control .enhanced-select{min-width:0}.redemption-editor .rx-product-control .enhanced-select-trigger{padding-inline:9px;font-size:13px}
.redemption-editor .rx-inner-disclosure{padding:16px 0 0;border:0;border-top:1px solid var(--line)}
.redemption-editor .rx-inner-disclosure>summary{display:flex;align-items:center;gap:12px;min-height:24px;cursor:pointer;list-style:none;font-size:13px}
.redemption-editor .rx-inner-disclosure>summary::-webkit-details-marker{display:none}.redemption-editor .rx-inner-disclosure>summary strong{font-weight:500}
.redemption-editor .rx-inner-disclosure>summary span{flex:1;color:var(--muted);font-size:12px}
.redemption-editor .rx-inner-disclosure>summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;color:var(--muted)}
.redemption-editor .rx-inner-disclosure[open]>summary svg{transform:rotate(180deg)}.redemption-editor .rx-inner-body{margin-top:14px}
.redemption-editor .rx-info-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:38px}
.redemption-editor .rx-info-row+ .rx-info-row{margin-top:10px}.redemption-editor .rx-info-row>div{display:flex;align-items:baseline;gap:18px;min-width:0;font-size:13px;line-height:22px}
.redemption-editor .rx-info-row span{color:var(--muted);white-space:nowrap}.redemption-editor .rx-info-row strong{font-size:13px;font-weight:400;overflow-wrap:anywhere}
.redemption-editor .rx-info-row button{flex:none;font-size:12px;min-height:32px;padding:0 2px}.redemption-editor .rx-inline-editor{margin-block:10px!important}
@media(max-width:600px){.redemption-editor .rx-product-control{grid-template-columns:minmax(0,1fr) 120px}.redemption-editor .rx-field-heading>.text-action{min-height:28px}.redemption-editor .rx-info-row>div{flex-direction:column;gap:2px}.redemption-editor .rx-info-row{align-items:center}.redemption-editor .rx-inner-disclosure>summary{gap:8px}.redemption-editor .rx-task-info h4{margin-bottom:10px}}

/* Real-form adapters retain the existing controls and Webhook library. */
.redemption-editor .rx-choices button {position:relative;min-width:0;min-height:36px;padding:6px 5px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:4px;box-shadow:none;font-size:14px;line-height:20px;font-weight:400;}
.redemption-editor .rx-choices button[aria-pressed="true"] {color:var(--brand);background:var(--surface);border-color:var(--line);font-weight:500;}
.redemption-editor .rx-choices button:focus-visible{outline:2px solid var(--brand);outline-offset:1px;}
.redemption-editor .redemption-action-mode {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:var(--surface-subtle);border:1px solid var(--line);border-radius:var(--radius);}
.redemption-editor .redemption-action-mode button{min-width:0;min-height:36px;font-size:14px;}
.redemption-editor .redemption-core-grid>.wide-label{grid-column:auto;}
.redemption-editor .redemption-inspection-status{margin-top:10px;padding:0;border:0;background:transparent;}
.redemption-editor .redemption-product-candidates{margin-top:10px;}
.redemption-editor .redemption-capability-config .form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;}
.redemption-editor .redemption-capability-config label{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;}
.redemption-editor .redemption-capability-config label>span{font-size:13px;color:var(--muted);}
.redemption-editor .redemption-capability-config .redemption-three-column-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.redemption-editor .rx-custom-flag{min-height:36px;flex:1 1 180px;gap:12px;}
.redemption-editor .rx-custom-flag strong{font-size:13px;font-weight:400;}
.redemption-editor .rx-notification{border:0!important;padding:0!important;background:transparent;}
.redemption-editor .rx-notification>.redemption-capability-toggle{margin-top:14px;}
.redemption-editor .rx-plan-monitor,.redemption-editor .rx-pull-monitor{padding:0;border:0;background:transparent;}
.redemption-editor .rx-plan-monitor .redemption-capability-title strong{font-size:13px;font-weight:400;}
.redemption-editor .rx-pull-monitor{margin-top:14px;}
.redemption-editor .rx-plan-monitor .form-grid,.redemption-editor .rx-notification .form-grid{margin-top:12px;}
.redemption-editor .rx-limit{margin-bottom:14px;}
.redemption-editor .rx-limit>span{display:inline;font-size:13px;}
.redemption-editor .rx-limit .rx-unit{width:108px;}
.redemption-editor .rx-summary .redemption-draft-summary-label{font-size:12px;color:var(--muted);}
.redemption-editor .rx-summary .redemption-draft-summary-main>strong{font-size:13px;line-height:22px;font-weight:400;white-space:normal;color:var(--ink);}
.redemption-editor .rx-summary{display:block;border:0;background:var(--surface-subtle);}
.redemption-editor .rx-task-enabled{margin-bottom:16px;}
.redemption-editor .rx-other-body>section+section{margin-top:0;}
.redemption-editor .rx-field .title-help-button{min-height:16px;}
@media(max-width:600px){
 .redemption-editor .redemption-capability-config .form-grid{grid-template-columns:minmax(0,1fr);gap:14px;}
 .redemption-editor .redemption-capability-config .redemption-three-column-grid{grid-template-columns:minmax(0,1fr);}
 .redemption-editor .rx-choices button{font-size:13px;min-height:40px;}
 .redemption-editor .rx-custom{display:block;}.redemption-editor .rx-custom-flag{margin-block:8px;}
 .redemption-editor .rx-limit{align-items:center;flex-wrap:nowrap;}.redemption-editor .rx-limit .rx-unit{width:90px;}
}
