.gift-hero .gift-redeem-panel {gap:clamp(16px,2vw,28px)}
.gift-redeem-panel form {display:flex;align-items:end;gap:10px;max-width:35rem}
.gift-redeem-panel .gift-code-label {display:grid;gap:6px;flex:1;min-width:0;color:#fff5e6;font-size:13px}
.gift-redeem-panel .gift-code-label input {color:#44282a;background:#fffaf2;border-color:#cab493;font:500 15px/1.25 ui-monospace,Menlo,monospace}
.gift-redeem-panel .btn {min-height:46px;background:#f4dfb8;color:#490f1d;border-color:#e6c891}
.gift-redeem-panel :is(input,button):focus-visible {outline-color:#ffe6b7}
.gift-redeem-panel [data-claim-notice]:empty {display:none}
.gift-redeem-panel [data-claim-notice]:not(:empty) {color:#6b2630;font-weight:600}
.gift-send-form .gift-send-note {color:var(--gift-muted);font-size:12px;line-height:1.45}
.gift-compose.gift-send-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto; align-items:end; gap:10px 14px; }
.gift-send-form .gift-sender,.gift-send-form .gift-send-note { grid-column:1/-1; }
.gift-send-form .gift-sender { display:flex; align-items:center; gap:9px; }
.gift-send-form .gift-avatar {
  display:grid; place-items:center; height:30px; width:30px;
  border-radius:50%; background:#f2e5d5; color:var(--gift-wine); font-size:11px; font-weight:700;
}
.gift-send-form .gift-sender > span:last-child { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px; }
.gift-send-form .gift-sender small { color:#675a4f; font-size:12px; }
.gift-send-form .gift-sender b { font-size:13px; }
.gift-send-form label { min-width:0; }
.gift-send-form input { width:100%; min-width:0; }
.gift-view .gift-main:has(>aside:empty) { grid-template-columns:minmax(0,1fr); }
.gift-main>aside:empty { display:none; }
@media(max-width:620px) {
  .gift-redeem-panel form {gap:7px;align-items:end}
  .gift-redeem-panel .btn {padding-inline:11px;font-size:12px}
  .gift-redeem-panel .gift-code-label input {padding-inline:8px}
  .gift-compose.gift-send-form { grid-template-columns:minmax(0,1fr) auto; }
  .gift-send-form label:first-of-type { grid-column:1/-1; }
  .gift-send-form .btn { min-height:44px; }
}
@media(max-width:360px) {
  .gift-redeem-panel form {display:grid;grid-template-columns:minmax(0,1fr)}
  .gift-redeem-panel .btn {justify-self:start;min-width:122px}
}

.gift-code-field { position:relative; display:block; }
.gift-code-field .gift-code-input { position:absolute; z-index:1; inset:0; width:100%; height:100%; opacity:0; padding:0; margin:0; pointer-events:none; }
.gift-code-track { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:8px; cursor:text; }
.gift-code-track b { font:600 11px/1 var(--sans,Arial,sans-serif); color:#ffedca; letter-spacing:.08em; }
.gift-code-group { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
.gift-code-slot {
  display:grid; place-items:center; width:100%; height:38px; border:1px solid #c8bba7;
  border-radius:6px; background:#f7f2e9; color:#47141f; box-shadow:inset 0 1px 2px #6a4a2c0a;
  font:600 17px/1.1 ui-monospace,Menlo,Consolas,monospace;
}
.gift-code-slot:empty::after { content:''; width:4px; height:4px; border-radius:50%; background:#b7a991; }
.gift-code-slot[data-filled] { background:#fffdf8; }
.gift-code-slot[data-active] { border-color:var(--gift-wine); outline:2px solid #64182344; outline-offset:1px; }
.gift-code-slot {color:var(--gift-wine)}
.gift-code-slot[data-active] {outline:2px solid #905c36;outline-offset:2px}
.gift-hero .gift-redeem-panel form {align-items:start;flex-direction:column;gap:14px}
.gift-redeem-panel .gift-code-label {width:100%;max-width:19rem}
@media(max-width:620px){
  .gift-hero .gift-code-label {max-width:19rem}
  .gift-code-track {gap:5px}
  .gift-code-track b {font-size:9px;letter-spacing:0}
  .gift-code-group {gap:2px}
  .gift-code-slot {width:100%;height:34px;font-size:15px;border-radius:4px}
}

.gift-order-dialog {width:min(92vw,740px);max-height:92dvh;overflow:auto;margin:auto;padding:44px clamp(16px,3vw,30px) clamp(16px,3vw,30px);color:var(--gift-ink);background:var(--gift-paper);border:1px solid var(--gift-line);border-radius:22px;box-shadow:0 20px 80px #32221f38}
.gift-order-dialog::backdrop {background:#30252377}
.gift-order-dialog [data-close] {position:absolute;top:0;right:4px;z-index:1;display:grid;place-items:center;width:44px;height:44px;appearance:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#57172b;font-size:25px;line-height:1}
.gift-order-dialog [data-close]:focus-visible {outline:0;text-decoration:underline;text-underline-offset:3px}
.gift-order-preview {display:block;width:100%;height:auto;border-radius:clamp(14px,2vw,24px)}
.gift-order-dialog form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.gift-order-dialog form label:last-of-type,.gift-order-dialog form small,.gift-order-dialog [role=status] {grid-column:1/-1}
.gift-order-dialog form .btn {justify-self:start}.gift-archive {margin-top:1rem}
@media(max-width:480px){.gift-order-dialog form {grid-template-columns:minmax(0,1fr)}}
