.gift-admin-head, .gift-codes-head, .gift-section-label{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.gift-admin-head{ margin-bottom:22px; }
.gift-admin-head h3, .gift-codes-head h3{ margin:4px 0 8px; font-size:1.2rem; }
.gift-admin-head p{ margin:0; color:var(--text-dim); font-size:.88rem; line-height:1.5; }
.gift-eyebrow{ display:block; color:var(--green-2); text-transform:uppercase; letter-spacing:.1em; font-size:.65rem; font-weight:800; }
.gift-single{ flex:none; padding:9px 13px; border:1px solid var(--green-dim); border-radius:30px; background:var(--green-dim); color:var(--green-2); font-size:.78rem; font-weight:700; }
.gift-editor{ border:0; padding:0; margin:0; min-width:0; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr); gap:22px; align-items:start; }
.gift-config{ display:grid; gap:16px; min-width:0; }
.gift-step{ border:1px solid var(--line); border-radius:16px; padding:20px; background:var(--panel-2); }
.gift-step h4{ display:flex; align-items:center; gap:10px; font-size:.98rem; margin:0 0 20px; }
.gift-step h4 > span{ display:grid; place-items:center; width:26px; height:26px; border-radius:8px; background:var(--green-dim); color:var(--green-2); font-size:.78rem; }
.gift-fields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.gift-fields label, .gift-type-label, .gift-size-label{ display:grid; gap:7px; color:var(--text-dim); font-size:.8rem; font-weight:600; }
.gift-fields .tag-input, .gift-type-label .tag-input{ width:100%; min-width:0; margin:0; }
.gift-code-fields{ grid-template-columns:minmax(0,1.5fr) minmax(115px,1fr); }
.gift-code-input{ display:flex; gap:8px; align-items:center; }
.gift-code-input input{ min-width:0; text-transform:uppercase; font-family:monospace; letter-spacing:.04em; }
.gift-booster-fields{ margin:18px 0; grid-template-columns:minmax(0,1.6fr) minmax(100px,1fr); }
.gift-section-label{ margin:20px 0 12px; font-size:.82rem; }
.gift-size-label{ grid-template-columns:1fr 80px; align-items:center; margin:14px 0; }
.gift-selected{ display:flex; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); min-width:0; }
.gift-thumb{ width:48px; flex:none; pointer-events:none; overflow:hidden; border-radius:7px; max-height:70px; }
.gift-thumb .rcard{ width:100% !important; margin:0; }
.gift-selected-info{ flex:1; min-width:0; font-size:.82rem; }
.gift-selected-info b{ display:block; overflow-wrap:anywhere; }
.gift-selected-info small{ display:block; color:var(--text-faint); font-size:.72rem; margin-top:4px; }
.gift-quantity{ flex:none; color:var(--green-2); font-size:.8rem; font-weight:700; }
.gift-empty{ margin:12px 0; color:var(--text-faint); font-size:.83rem; line-height:1.5; }
.gift-preview{ position:sticky; top:20px; border:1px solid var(--line); border-radius:16px; padding:22px; background:var(--panel); min-width:0; }
.gift-preview h4{ font-family:'Lilita One',sans-serif; font-size:1.3rem; font-weight:400; margin:8px 0 20px; }
.gift-preview > button{ display:block; width:100%; margin-top:10px; }
.gift-preview p{ font-size:.85rem; color:var(--text-dim); line-height:1.6; overflow-wrap:anywhere; }
.gift-preview .gift-preview-reward{ color:var(--text); }
.gift-preview-booster{ border-top:1px solid var(--line); margin-top:16px; padding-top:16px; }
.gift-preview-booster > small{ display:block; color:var(--text-faint); font-size:.73rem; line-height:1.5; margin-top:12px; }
.gift-preview-status{ margin:22px 0 14px; }
.gift-preview .gift-message{ color:var(--green-2); margin:14px 0 0; }
.gift-preview .gift-message:empty{ display:none; }
.gift-preview .gift-message.error, .gift-error{ color:#e9a29d; }
.gift-formula{ margin-top:16px; padding:14px; border-radius:12px; border:1px solid var(--line); background:var(--panel); }
.gift-rate-bar{ display:flex; overflow:hidden; height:6px; border-radius:12px; margin-bottom:12px; }
.gift-rate-bar i:first-child{ width:92%; background:var(--green-2); }.gift-rate-bar i:last-child{ width:8%; background:#f0c94a; }
.gift-rate-labels{ display:flex; justify-content:space-between; gap:12px; color:var(--text-dim); font-size:.75rem; }
.gift-rate-labels b{ display:block; color:var(--text); font-size:1.05rem; margin-bottom:4px; }
.gift-formula p{ color:var(--text-dim); font-size:.76rem; line-height:1.7; margin:14px 0 8px; }
.gift-formula small{ color:var(--text-faint); font-size:.72rem; line-height:1.5; display:block; }
.gift-codes-head{ margin:30px 0 12px; border-top:1px solid var(--line); padding-top:24px; }
.gift-code-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; border:1px solid var(--line); background:var(--panel-2); border-radius:14px; padding:18px; margin-top:10px; }
.gift-code-heading{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.gift-code-heading code{ font-size:1rem; color:var(--text); user-select:all; overflow-wrap:anywhere; }
.gift-code-row p{ margin:10px 0 6px; color:var(--text-dim); font-size:.84rem; line-height:1.6; overflow-wrap:anywhere; }
.gift-code-row small{ color:var(--text-faint); font-size:.73rem; }
.gift-code-status{ border-radius:30px; padding:4px 9px; background:var(--panel); color:var(--text-dim); font-size:.69rem; font-weight:700; }
.gift-code-status.ready{ background:var(--green-dim); color:var(--green-2); }.gift-code-status.used{ color:#f0c94a; }
.gift-code-actions{ display:grid; gap:6px; max-width:180px; }
.gift-card-picker.fm-dialog{ width:min(1100px,calc(100vw - 24px)); max-width:none; max-height:94vh; max-height:94dvh; }
.gift-card-picker.fm-dialog[open], .gift-inventory.fm-dialog[open]{ display:flex; flex-direction:column; overflow:hidden; }
.gift-card-picker > header, .gift-inventory > header{ flex:none; }
.gift-card-picker [data-body], .gift-inventory [data-body]{ min-height:0; overflow-y:auto; overflow-x:hidden; max-height:none; }
.gift-card-picker .adm-chooser-grid{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.gift-pick-options{ position:sticky; bottom:0; padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:12px; margin-top:16px; z-index:2; box-shadow:0 -8px 20px #0004; }
.gift-pick-options [data-picked]{ font-size:.9rem; font-weight:700; margin-bottom:12px; }
.gift-pick-options .gift-fields{ grid-template-columns:repeat(3,minmax(0,1fr)); }.gift-pick-options [data-add]{ margin-top:12px; width:100%; }
.gift-shelf{ display:flex; align-items:center; gap:18px; padding:22px; margin:20px 0; border:1px solid var(--line); background:var(--panel); border-radius:18px; }
.gift-shelf-icon{ display:grid; place-items:center; flex:none; width:48px; height:48px; background:var(--green-dim); color:var(--green-2); border-radius:14px; font-size:1.4rem; }
.gift-shelf > div:nth-child(2){ flex:1; }.gift-shelf h3{ margin:0 0 6px; font-size:1.05rem; }.gift-shelf p{ margin:0; color:var(--text-dim); font-size:.84rem; line-height:1.5; }
.gift-inventory.fm-dialog{ width:min(760px,calc(100vw - 24px)); max-width:none; max-height:92vh; max-height:92dvh; }
.gift-owned{ padding:20px; border:1px solid var(--line); border-radius:15px; margin-top:14px; background:var(--panel-2); }
.gift-owned h3{ margin:8px 0 12px; font-size:1.15rem; }.gift-owned > button{ margin-top:18px; width:100%; min-height:44px; }
.gift-owned p{ color:var(--text-dim); font-size:.85rem; line-height:1.6; }
.op-layer.gift .op-count{ max-width:calc(100% - 140px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:1050px){ .gift-editor{ grid-template-columns:1fr; }.gift-preview{ position:static; }.gift-code-row{ grid-template-columns:1fr; }.gift-code-actions{ display:flex; flex-wrap:wrap; max-width:none; }.gift-card-picker .adm-chooser-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:600px){
  .gift-step, .gift-preview{ padding:16px; }.gift-fields, .gift-code-fields, .gift-booster-fields{ grid-template-columns:1fr; }
  .gift-fields input, .gift-fields select, .gift-type-label select, .gift-size-label input{ font-size:1rem; }
  .gift-code-input .btn{ flex:none; }.gift-code-row{ padding:14px; }.gift-shelf{ flex-wrap:wrap; gap:12px; padding:18px; }.gift-shelf > button{ width:100%; }
  .gift-shelf > div:nth-child(2){ flex-basis:calc(100% - 70px); }.gift-card-picker .adm-chooser-grid{ grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); }
  .gift-card-picker .adm-chooser-item .rcard{ zoom:.46; }
  .gift-pick-options .gift-fields{ grid-template-columns:repeat(2,minmax(0,1fr)); }.gift-pick-options .gift-fields label:last-child{ grid-column:1 / -1; }
  .gift-pick-options{ padding:12px; }.gift-owned{ padding:16px; }.gift-selected .btn{ padding:7px; font-size:.72rem; }
}
