/* Compact attribution shared with the Key Buy visual style. */
#panel-redeem .subscription-cost-compact{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 14px;margin-top:12px;max-width:100%;font-size:12px}
#panel-redeem .subscription-cost-compact .subscription-order-button{flex:none;width:auto;min-height:32px;padding:6px 10px;border:1px solid var(--border);border-radius:9px;background:#34465b;color:#d5e4f7;font-size:12px;font-weight:500;line-height:1.4;box-shadow:none;max-width:100%;white-space:normal;text-align:left}
#panel-redeem .subscription-cost-compact .subscription-order-button:disabled{opacity:.75}
#panel-redeem .subscription-cost-breakdown{min-width:0;max-width:100%;border:0;background:none;padding:0;color:var(--text2)}
#panel-redeem .subscription-cost-breakdown>summary{padding:7px 0;cursor:pointer;font-size:12px;line-height:18px;list-style:none;color:var(--text2)}
#panel-redeem .subscription-cost-breakdown>summary::-webkit-details-marker{display:none}
#panel-redeem .subscription-cost-breakdown>summary::after{content:'⌄';margin-left:8px}
#panel-redeem .subscription-cost-breakdown[open]>summary::after{content:'⌃'}
#panel-redeem .subscription-cost-breakdown .subscription-cost-lines{margin:6px 0 8px;font-size:12px;gap:5px}
#panel-redeem .subscription-cost-breakdown small{font-size:11px;font-weight:400;line-height:1.5}
/* Inventory overview first; import forms are an explicit secondary action. */
#panel-redeem #redeem-stock-manage{margin-top:28px;padding:22px 24px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
#panel-redeem #redeem-stock-manage>summary{padding:0;gap:16px;min-height:42px}
#panel-redeem #redeem-stock-manage>summary strong{font-size:15px;line-height:1.5}
#panel-redeem #redeem-stock-manage>summary small{margin-top:4px;line-height:1.5}
#panel-redeem #redeem-stock-manage .redeem-stock-manage-body{padding:20px 0 0}
#panel-redeem .stock-section-label{font-size:11px;color:var(--text2);margin:0 0 10px;letter-spacing:.03em}
#panel-redeem #redeem-stock-manage .redeem-inventory-list{display:grid;grid-template-columns:1fr;gap:10px;margin:0;padding:0}
#panel-redeem #redeem-stock-manage .redeem-stock-group{border:1px solid var(--border);border-radius:11px;background:var(--surface2)}
#panel-redeem #redeem-stock-manage .redeem-stock-group>summary{padding:15px 16px;min-height:52px}
#panel-redeem #redeem-stock-manage .redeem-stock-group>summary strong{font-size:13px}
#panel-redeem #redeem-stock-manage .redeem-stock-group>summary span{font-size:12px}
#panel-redeem #redeem-stock-manage .redeem-stock-group-body{padding:4px 16px 12px}
#panel-redeem .stock-refill{margin-top:20px;border-top:1px solid var(--border);padding-top:18px}
#panel-redeem .stock-refill>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:0 0 4px}
#panel-redeem .stock-refill>summary::-webkit-details-marker{display:none}
#panel-redeem .stock-refill>summary strong{font-size:13px}
#panel-redeem .stock-refill>summary small{display:block;color:var(--text2);font-size:12px;line-height:1.5;margin-top:4px}
#panel-redeem .stock-refill>summary>span:last-child{font-size:22px;color:var(--text2)}
#panel-redeem .stock-refill[open]>summary>span:last-child{transform:rotate(45deg)}
#panel-redeem #redeem-stock-manage .redeem-inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:22px 0 0}
#panel-redeem #redeem-stock-manage .redeem-inventory-block{display:flex;flex-direction:column;gap:10px;min-width:0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}
#panel-redeem #redeem-stock-manage .redeem-inventory-block h3{margin:0;font-size:13px}
#panel-redeem #redeem-stock-manage .redeem-inventory-block p{margin:0;min-height:36px;font-size:12px;line-height:1.5}
#panel-redeem #redeem-stock-manage .redeem-inventory-block textarea{min-height:116px;resize:vertical;margin:0;font-size:12px;line-height:1.6}
#panel-redeem #redeem-stock-manage .redeem-inventory-block>button{align-self:flex-start;width:auto;min-height:34px;padding:7px 12px;font-size:12px;margin-top:auto}
#panel-redeem #redeem-stock-manage .redeem-stock-region-label{margin:0}
#panel-redeem #redeem-stock-manage-feedback:empty{display:none}
#panel-redeem #redeem-stock-attention,#panel-redeem #redeem-stock-used{margin-top:14px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}
:root[data-theme=light] #panel-redeem .subscription-cost-compact .subscription-order-button{background:#e7eef7;color:#294966}
@media(max-width:760px){#panel-redeem #redeem-stock-manage{padding:18px}#panel-redeem #redeem-stock-manage .redeem-inventory-grid{grid-template-columns:1fr;gap:14px}}

/* Attribution sits between the account identity and task status. */
.layout-transfer #panel-redeem .redeem-job-header{align-items:center;gap:20px;flex-wrap:wrap}
.layout-transfer #panel-redeem .redeem-job-header>.redeem-job-heading{flex:1 1 340px;min-width:0}
.layout-transfer #panel-redeem .redeem-job-header>.subscription-cost-compact{flex:0 1 auto;margin:0;align-items:center;justify-content:flex-end;gap:10px 14px}
.layout-transfer #panel-redeem .redeem-job-header>.subscription-cost-compact .subscription-cost-breakdown>summary{outline-offset:3px}
@media(max-width:720px){.layout-transfer #panel-redeem .redeem-job-header>.redeem-job-heading{flex-basis:100%}.layout-transfer #panel-redeem .redeem-job-header>.subscription-cost-compact{justify-content:flex-start;margin-top:2px}.layout-transfer #panel-redeem .redeem-job-header{gap:12px}}

/* Stock management: a visible add action and compact product groups. */
#panel-redeem #redeem-stock-manage{padding:0;overflow:hidden}
#panel-redeem .stock-manager-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border)}
#panel-redeem .stock-manager-toolbar h3{margin:0 0 5px;font-size:15px}
#panel-redeem .stock-manager-toolbar small{color:var(--text2);font-size:12px}
#panel-redeem .stock-add-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 14px;background:var(--accent,#78aede);border:1px solid var(--accent,#78aede);border-radius:9px;color:var(--on-accent,#102338);font-weight:600;white-space:nowrap;cursor:pointer}
#panel-redeem .stock-add-primary svg{width:18px;height:18px;flex:none}
#panel-redeem .stock-add-primary:hover{filter:brightness(1.08)}
#panel-redeem #redeem-stock-manage .redeem-stock-manage-body{padding:16px 20px 18px}
#panel-redeem #redeem-stock-manage .stock-section-label{margin:0 0 10px;color:var(--text2);font-size:11px}
#panel-redeem #redeem-stock-manage #redeem-inventory-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:0}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group[data-group="accounts"],#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group[data-group="other"]{grid-column:1/-1}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group{align-self:start;border-radius:10px;overflow:hidden;background:transparent}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group>summary{min-height:44px;padding:9px 12px;transition:background .15s}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group>summary:hover{background:color-mix(in srgb,var(--accent) 9%,transparent)}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group>summary strong{font-size:12px;font-weight:600;line-height:1.5}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group>summary span{padding:3px 7px;border-radius:6px;background:color-mix(in srgb,var(--accent) 10%,transparent);font-variant-numeric:tabular-nums}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .is-empty>summary{color:var(--text2)}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-stock-group-body{max-height:300px;padding:4px 12px 8px;scrollbar-gutter:stable}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-inventory-item{gap:6px;min-height:43px}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-inventory-item:first-child{border-top:0}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-inventory-item>strong{font-family:inherit;font-size:12px;flex:1 1 110px}
#panel-redeem #redeem-stock-manage #redeem-inventory-list .redeem-inventory-state{font-size:10px;color:var(--text2)}
#panel-redeem #redeem-stock-manage #redeem-stock-refill{margin-top:16px;padding:0;border:0;background:transparent}
#panel-redeem #redeem-stock-manage #redeem-stock-refill>summary{display:none}
#panel-redeem .stock-refill-heading{display:flex;align-items:start;justify-content:space-between;gap:14px;padding-top:16px;border-top:1px solid var(--border);margin-bottom:12px}
#panel-redeem .stock-refill-heading h3{margin:0 0 4px;font-size:14px}
#panel-redeem .stock-refill-heading p{margin:0;color:var(--text2);font-size:12px}
#panel-redeem #redeem-stock-manage #redeem-stock-refill-close{width:30px;height:30px;min-height:30px;padding:0;border:1px solid var(--border);border-radius:7px;font-size:21px;line-height:1;background:transparent;color:var(--text2)}
#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;align-items:stretch}
#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-block{min-width:0;padding:14px;border:1px solid var(--border);border-radius:10px;background:transparent;display:flex;flex-direction:column;align-items:stretch}
#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-block h3{font-size:13px;margin:0 0 6px}
#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-block p{font-size:11px;line-height:1.5;margin:0 0 12px;min-height:33px}
#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-block textarea{width:100%;box-sizing:border-box;min-height:110px;resize:vertical;margin-top:auto;font-size:12px}
#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-block>button{align-self:start;margin-top:8px}
#panel-redeem #redeem-stock-manage-feedback:empty{display:none}
#panel-redeem #redeem-stock-manage-feedback{font-size:12px;line-height:1.6;margin:12px 0 0}
#panel-redeem .stock-import-details{margin-top:6px}
#panel-redeem .stock-import-details>summary{cursor:pointer;color:var(--accent)}
#panel-redeem .stock-import-details ul{padding-left:20px;margin:6px 0}
@media(max-width:700px){#panel-redeem #redeem-stock-manage #redeem-inventory-list,#panel-redeem #redeem-stock-manage #redeem-stock-refill .redeem-inventory-grid{grid-template-columns:1fr}#panel-redeem .stock-manager-toolbar{padding:14px;gap:10px;flex-wrap:wrap}#panel-redeem #redeem-stock-manage .redeem-stock-manage-body{padding:14px}#panel-redeem .stock-add-primary{min-height:38px}}
