#treeGifts {
    position: absolute;
    z-index: 7;
    pointer-events: none;
    width: min(48%, 94vw);
    aspect-ratio: 1000 / 1355.932;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -71.763%);
}
#treeGifts img {
    position: absolute;
    object-fit: contain;
    filter: drop-shadow(0 3px 2px #21122155);
}
#shelfPanelGifts label { display: block; margin: 10px 0; }
#shelfPanelGifts { min-height: 0; justify-content: center; }
#shelfPanelGifts h2 { margin: 0; }
#shelfPanelGifts p { font-size: 11px; }
#treeGiftCount { width: min(230px, 85%); accent-color: #ddbc77; }
#openGiftCatalog { border: 1px solid #b58b49; border-radius: 9px; padding: 10px 18px; background: #5b3926; color: #ffe6ad; cursor: pointer; margin: 12px; }
#giftCatalogDialog .garland-style-card img { display:block; width:116px; height:90px; object-fit:contain; }
#giftCatalogDialog[data-placement="bottom"] .gift-recipient-field { grid-column:2; }
#treeGifts [data-received] { position:absolute; border:0; padding:0; background:none; pointer-events:auto; }
#treeGifts button[data-received] { cursor:pointer; }
#treeGifts [data-received] img { position:static; width:100%; height:100%; object-fit:contain; }
#treeGifts button[data-received]:focus-visible { outline:2px solid #ffe1a6; border-radius:9px; }
#receivedGiftList { display:flex; flex-direction:column; gap:5px; max-height:120px; overflow:auto; width:90%; }
#receivedGiftList button { font-size:11px; padding:5px; background:#583a23; color:#ffe0ac; border:1px solid #ad8557; border-radius:5px; cursor:pointer; }
#openReceivedGift { width:min(380px,calc(100vw - 24px)); border:3px solid #482811; border-radius:12px; background:linear-gradient(100deg,#492b1a,#724729,#482b1b); color:#ffe4aa; text-align:center; }
#openReceivedGift::backdrop { background:#130a09a0; }
#openReceivedGift :where(.gift-reveal-stage) img { display:block; width:100%; height:220px; object-fit:contain; }
#openReceivedGift button { padding:10px; margin:4px; background:#80562d; color:#fff4da; border:1px solid #ba8d58; border-radius:6px; cursor:pointer; }
#openReceivedGift { max-height:calc(100dvh - 24px); overflow:auto; }
#openReceivedGift h2 { font:normal 24px Georgia,serif; }
#openReceivedGift .gift-reveal-stage { position:relative; height:300px; isolation:isolate; overflow:hidden; }
#openReceivedGift .gift-reveal-box { position:absolute; bottom:8px; left:calc(50% - 110px); width:220px; aspect-ratio:1; transform-origin:50% 85%; z-index:2; }
#openReceivedGift .gift-reveal-body,
#openReceivedGift .gift-reveal-lid { position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; object-fit:fill; filter:drop-shadow(0 8px 7px #180c0760); }
#openReceivedGift .gift-reveal-body { z-index:2; }
#openReceivedGift .gift-reveal-lid { z-index:3; transform-origin:50% 50%; }
#openReceivedGift .gift-reveal-mouth { position:absolute; top:43%; left:8%; width:84%; height:22%; border-radius:50%; background:radial-gradient(ellipse,#ffdb82 0%,#9c5a20 40%,#28140b 72%); opacity:0; }
#openReceivedGift .gift-reveal-glow { position:absolute; left:50%; top:44%; width:260px; height:260px; z-index:0; opacity:0; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,#fff4c699 0%,#f8cf6670 20%,#eebf3b25 42%,transparent 70%); }
#openReceivedGift .gift-reveal-item { position:absolute; left:50%; top:42%; width:165px; height:165px; object-fit:contain; opacity:0; transform:translate(-50%,60%) scale(.15); z-index:1; filter:drop-shadow(0 0 12px #ffe6a990) drop-shadow(0 6px 4px #24120780); }
#openReceivedGift .gift-reveal-item[hidden] { display:none; }
#openReceivedGift .gift-reveal-stage[data-phase="opening"] .gift-reveal-mouth,
#openReceivedGift .gift-reveal-stage[data-phase="revealed"] .gift-reveal-mouth { opacity:1; }
#openReceivedGift .gift-reveal-stage[data-phase="revealed"] .gift-reveal-box { transform:translateY(24px) scale(.84); opacity:.35; }
#openReceivedGift .gift-reveal-stage[data-phase="revealed"] .gift-reveal-lid { transform:translate(-48px,-155px) rotate(-26deg); opacity:0; }
#openReceivedGift .gift-reveal-stage[data-phase="revealed"] .gift-reveal-glow { opacity:.5; }
#openReceivedGift .gift-reveal-stage[data-phase="revealed"] .gift-reveal-item { transform:translate(-50%,-58%) scale(1); opacity:1; }
#openReceivedGift .gift-reveal-name { min-height:26px; margin:0; font:21px Georgia,serif; color:#ffe8b7; }
#openReceivedGift [role="status"] { min-height:36px; font-size:13px; color:#e5c89e; }
#openReceivedGift button:disabled { cursor:wait; opacity:.65; }
#openReceivedGift button[hidden] { display:none; }
#openReceivedGift #confirmOpenGift { min-width:150px; }
@media(max-height:620px) { #openReceivedGift .gift-reveal-stage { height:240px; } #openReceivedGift .gift-reveal-box { width:180px; left:calc(50% - 90px); } #openReceivedGift .gift-reveal-item { width:140px; height:140px; } }
#shelfPanelGifts { justify-content:flex-start; overflow-y:auto; overflow-x:hidden; }
#shelfPanelGifts > * { flex-shrink:0; }
#openGiftCatalog { width:calc(100% - 10px); max-width:100%; margin:5px; padding:8px 4px; white-space:normal; }

/* Wrapping supplies fill the shelf; gift controls live in the editor. */
.secret-compartment #shelfPanelGifts { position:relative; padding:0; overflow:visible; }
#shelfPanelGifts #openGiftCatalog {
    position:absolute; inset:-4% -3% -8%; width:auto; max-width:none;
    margin:0; padding:0; border:0; border-radius:0;
    background:url('/front/assets/gift-wrapping-pile-v1.png') center / contain no-repeat;
    filter:drop-shadow(0 4px 3px #28130690); transition:filter .18s ease;
}
#shelfPanelGifts #openGiftCatalog:hover { filter:drop-shadow(0 4px 3px #28130690) brightness(1.15); }
#shelfPanelGifts #openGiftCatalog:focus-visible { outline:2px solid #ffe1a6; outline-offset:2px; }
.gift-shelf-controls { text-align:center; color:#efcea0; }
.gift-shelf-controls h2 { display:none; }
.gift-shelf-controls label { display:block; margin:8px 0; }
.gift-shelf-controls p { font-size:12px; }
.gift-shelf-controls #receivedGiftList { width:100%; }
#giftCatalogDialog[data-placement="bottom"] .gift-shelf-controls { grid-column:1 / -1; }
@media (prefers-reduced-motion:reduce) { #shelfPanelGifts #openGiftCatalog { transition:none; } }

#giftCatalogDialog .gift-content-field { grid-column:1 / -1; }
#giftCatalogDialog .gift-content-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-height:230px; overflow-y:auto; }
#giftCatalogDialog .gift-content-card { min-width:0; padding:6px; border:1px solid #b58b4980; border-radius:8px; background:#42251480; color:#ffe6ad; cursor:pointer; }
#giftCatalogDialog .gift-content-card[aria-pressed="true"] { outline:2px solid #ffe1a6; background:#815530; }
#giftCatalogDialog .gift-content-card img { display:block; width:100%; height:72px; object-fit:contain; }
#giftCatalogDialog .gift-content-card span { display:block; font-size:12px; }
#giftContentsStatus { font-size:12px; color:#e5c394; }
#giftCatalogDialog[data-placement="bottom"] .gift-content-field { grid-column:1 / -1; grid-row:1; }
#giftCatalogDialog[data-placement="bottom"] .garland-image-field { grid-row:2; }
#giftCatalogDialog[data-placement="bottom"] .garland-color-field { grid-row:3; }
#giftCatalogDialog[data-placement="bottom"] .gift-recipient-field { grid-row:4; }
#giftCatalogDialog[data-placement="bottom"] .gift-content-catalog { display:flex; overflow-x:auto; max-height:145px; }
#giftCatalogDialog[data-placement="bottom"] .gift-content-card { flex:0 0 110px; }

/* A personal greeting is read before the contents are revealed. */
.gift-message-fields { display:grid; gap:7px; margin-top:16px; }
.gift-message-fields>label { color:#f6deb2; font-size:14px; }
.gift-message-fields input[type="text"],.gift-message-fields textarea { box-sizing:border-box; width:100%; border:1px solid #b28d58; border-radius:5px; padding:9px 10px; background:#2f2018a0; color:#fff0d5; font:14px/1.5 Georgia,serif; }
.gift-message-fields textarea { resize:vertical; min-height:90px; }
.gift-anonymous-label { display:flex; align-items:center; gap:7px; }
.gift-anonymous-label input { accent-color:#c8a363; }
.gift-postcard { position:relative; box-sizing:border-box; padding:36px 27px 60px; margin:6px 0; color:#523523; text-align:left; background:radial-gradient(ellipse at 20% 0%,#fffdf0,#f3e3bc 70%,#ddc38f); border:1px solid #c6a46a; border-radius:5px; box-shadow:inset 0 0 0 6px #f5e9cb,inset 0 0 0 7px #bca16e,0 9px 24px #24110760; overflow-wrap:anywhere; }
.gift-postcard::before { content:'✦  ✦  ✦'; display:block; position:absolute; left:27px; right:27px; top:14px; text-align:center; color:#a04f32; font-size:14px; letter-spacing:10px; }
.gift-postcard::after { content:'✧'; position:absolute; bottom:15px; right:24px; width:36px; height:36px; display:grid; place-items:center; color:#f8dfac; font-size:27px; background:radial-gradient(circle at 35% 30%,#b84b48,#7f252b); border:2px solid #a43f3d; border-radius:50%; box-shadow:1px 2px 3px #43201450,inset 0 0 0 2px #c76b4d60; transform:rotate(-12deg); }
.gift-postcard .gift-postcard-greeting { margin:0 0 17px; text-align:center; font:italic 20px Georgia,serif; color:#93442e; }
.gift-postcard h3 { font:normal 22px/1.3 Georgia,serif; color:#66432c; margin:0 0 17px; }
.gift-postcard .gift-postcard-wish { white-space:pre-wrap; font:16px/1.65 Georgia,serif; color:#523523; margin:0; }
.gift-postcard .gift-postcard-sender { margin:24px 0 0; padding-right:35px; font:italic 15px Georgia,serif; color:#7c4e39; }
#openReceivedGift .gift-opening-postcard[hidden],#openReceivedGift .gift-reveal-stage[hidden] { display:none; }
#openReceivedGift:has(.gift-opening-postcard:not([hidden])) { width:min(460px,calc(100vw - 24px)); }
#openReceivedGift:has(.gift-opening-postcard:not([hidden])) .gift-reveal-name { display:none; }
#openReceivedGift:has(.gift-opening-postcard:not([hidden])) [role="status"]:empty { display:none; }
#savedPostcardDialog { box-sizing:border-box; width:min(460px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:14px; background:linear-gradient(135deg,#62442c,#3e291e); border:2px solid #af8a55; border-radius:9px; text-align:center; }
#savedPostcardDialog::backdrop { background:#160e0bb0; }
#savedPostcardDialog>button { border:1px solid #c9a06b; border-radius:5px; padding:10px 30px; margin:12px 0 0; background:#78522f; color:#fff0d5; cursor:pointer; }
@media(max-width:500px) { .gift-postcard { padding:33px 19px 58px; } .gift-postcard .gift-postcard-wish { font-size:15px; } }
#giftCatalogDialog[data-placement="bottom"] .gift-recipient-field { grid-column:1 / -1; }
#giftCatalogDialog[data-placement="bottom"] .gift-postcard-field { grid-column:1 / -1; grid-row:5; }
#giftCatalogDialog[data-placement="bottom"] .gift-message-fields { grid-column:1 / -1; grid-row:6; }
#giftCatalogDialog[data-placement="bottom"] .garland-status { grid-column:1 / -1; grid-row:7; }
#giftCatalogDialog[data-placement="bottom"] .garland-actions { grid-row:8; }
/* Illustrated paper keeps its painted motif separate from the readable greeting. */
.gift-postcard-designed { color:var(--postcard-ink,#523523); background:radial-gradient(ellipse at top,#fffdf4,var(--postcard-paper,#f3e3bc)); border-color:var(--postcard-accent,#bca16e); }
.gift-postcard-designed h3,.gift-postcard-designed .gift-postcard-wish,.gift-postcard-designed .gift-postcard-sender { color:var(--postcard-ink,#523523); }
.gift-postcard-cover { position:relative; display:grid; justify-items:center; box-sizing:border-box; min-height:210px; padding:18px 18px 12px; margin:0 0 24px; overflow:hidden; border:1px solid var(--postcard-accent,#bca16e); outline:1px solid var(--postcard-accent,#bca16e); outline-offset:-6px; border-radius:46% 46% 3px 3px / 18% 18% 3px 3px; background:radial-gradient(ellipse at 50% 38%,#fffaf0cc,transparent 70%),var(--postcard-paper,#efdbb4); }
.gift-postcard-cover img { width:100%; height:190px; object-fit:contain; filter:drop-shadow(0 5px 4px #51351d25); }
.gift-postcard-cover-caption { z-index:1; margin:9px 0 0; color:var(--postcard-ink,#633d28); font:italic 22px/1.3 Georgia,serif; text-align:center; }
.gift-postcard-designed>.gift-postcard-greeting { display:none; }
#openPostcardArchive[hidden] { display:none; }
#postcardArchiveDialog { position:relative; box-sizing:border-box; width:min(660px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:26px 22px; border:2px solid #af8a55; border-radius:9px; background:linear-gradient(135deg,#62442c,#3e291e); color:#f7e5c4; }
#postcardArchiveDialog::backdrop { background:#160e0bb0; }
#postcardArchiveTitle { margin:0 30px 22px 0; font:24px Georgia,serif; }
#closePostcardArchive { position:absolute; right:12px; top:9px; border:0; background:transparent; color:#f7e5c4; font-size:27px; cursor:pointer; }
#receivedPostcardsList { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.postcard-archive-card { display:grid; align-content:start; gap:8px; text-align:left; padding:12px; border:1px solid #bd9f68; border-radius:4px; background:linear-gradient(115deg,#f8edce,#dfc899); color:#5b3b29; box-shadow:1px 3px 7px #26100560; cursor:pointer; }
.postcard-archive-card .gift-postcard-cover { width:100%; min-height:150px; margin:0 0 5px; padding:12px; }
.postcard-archive-card .gift-postcard-cover img { height:115px; }
.postcard-archive-card .gift-postcard-cover-caption { font-size:16px; }
.postcard-archive-card strong { font:17px Georgia,serif; overflow-wrap:anywhere; }
.postcard-archive-card>span,.postcard-archive-status { font:13px/1.5 Georgia,serif; }
.postcard-archive-card:focus-visible { outline:3px solid #f3ce7e; outline-offset:3px; }

.gift-postcard-field { margin-top:16px; }
.gift-postcard-choices { display:flex; gap:10px; overflow-x:auto; padding:4px; }
.gift-postcard-choice { flex:0 0 132px; padding:7px; border:1px solid #ae8a55; border-radius:6px; background:#eeddbb; color:#583b28; cursor:pointer; }
.gift-postcard-choice[aria-pressed="true"] { outline:3px solid #f1c86e; }
.gift-postcard-choice .gift-postcard-cover { min-height:110px; margin:0 0 6px; padding:9px; }
.gift-postcard-choice .gift-postcard-cover img { height:80px; }
.gift-postcard-choice .gift-postcard-cover-caption { font-size:12px; }
#giftPostcardStatus { font-size:13px; }
#adventPostcardReward { width:min(100%, 260px, 38dvh); margin:14px auto 0; }
#itemDialog #adventPostcardReward img { width:100%; height:auto; margin:0; }

/* Clean card artwork has one fixed format in every gallery and dialog. */
.gift-postcard-cover.gift-postcard-artwork { display:block; aspect-ratio:2 / 3; min-height:0; width:100%; margin:0; padding:0; border:0; outline:0; border-radius:3px; background:none; }
.gift-postcard-cover.gift-postcard-artwork img { display:block; width:100%; height:100%; object-fit:contain; filter:none; }
.gift-postcard.gift-postcard-picture { width:100%; max-width:420px; aspect-ratio:2 / 3; padding:0; margin:6px auto; border:0; border-radius:3px; box-shadow:0 9px 24px #24110760; background:none; overflow:hidden; container-type:inline-size; }
.gift-postcard-picture::before,.gift-postcard-picture::after { display:none; }
.gift-postcard-lettering { position:absolute; box-sizing:border-box; top:var(--postcard-text-top); height:var(--postcard-text-height); left:var(--postcard-text-left,5%); width:var(--postcard-text-width,90%); display:flex; flex-direction:column; justify-content:center; gap:4px; padding:5px 8px; background:radial-gradient(ellipse,var(--postcard-text-shade),transparent 78%); text-align:center; }
.gift-postcard-picture .gift-postcard-lettering h3 { flex:none; margin:0; color:var(--postcard-text-ink); font:normal clamp(15px,5.3cqw,23px)/1.2 Georgia,serif; max-height:2.4em; overflow:auto; }
.gift-postcard-picture .gift-postcard-wish { flex:0 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:none; margin:0; color:var(--postcard-text-ink); font:clamp(13px,4.1cqw,18px)/1.4 Georgia,serif; }
.gift-postcard-picture .gift-postcard-wish::-webkit-scrollbar { display:none; width:0; height:0; }
.gift-postcard-picture .gift-postcard-sender { flex:none; padding:0; margin:0; color:var(--postcard-text-ink); font:italic clamp(11px,3.5cqw,15px)/1.2 Georgia,serif; overflow-wrap:anywhere; }
.gift-postcard-preview-dialog { box-sizing:border-box; width:min(460px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:14px; border:2px solid #af8a55; border-radius:8px; background:#3e291e; text-align:center; }
.gift-postcard-preview-dialog::backdrop { background:#160e0bb0; }
.gift-postcard-preview-dialog .gift-postcard { width:min(100%,calc((100dvh - 120px) * 2 / 3)); }
.gift-postcard-preview-dialog>button { margin-top:10px; padding:9px 18px; border:1px solid #c9a06b; border-radius:5px; background:#78522f; color:#fff0d5; cursor:pointer; }
#giftPreview { margin-top:10px; padding:9px 12px; border:1px solid #c9a06b; border-radius:5px; background:#78522f; color:#fff0d5; cursor:pointer; }
#giftPreview:disabled { opacity:.5; cursor:default; }
.gift-postcard-picture .gift-postcard-wish,.gift-postcard-picture .gift-postcard-sender { font-family:var(--postcard-font,Georgia,serif); }
.gift-message-fields select { display:block; box-sizing:border-box; width:100%; margin-top:7px; padding:9px; border:1px solid #bc9562; border-radius:4px; background:#3e291e; color:#fff0d5; font-size:16px; }
.postcard-archive-card .gift-postcard-picture { margin:0; }
#openReceivedGift .gift-opening-postcard .gift-postcard-picture { width:min(100%,calc((100dvh - 190px) * 2 / 3)); }
#savedPostcardDialog .gift-postcard-picture { width:min(100%,calc((100dvh - 110px) * 2 / 3)); }

#giftCatalogDialog {
  box-sizing:border-box;
  width:min(900px,calc(100vw - 24px));
  height:min(740px,calc(100dvh - 24px));
  max-height:none;
  padding:clamp(12px,3vw,24px);
  border:1px solid #af8a55;
  border-radius:16px;
  background:#3e291e;
  color:#ffe6ad;
  overflow:hidden;
}
#giftCatalogDialog[open] { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr) auto auto; gap:10px; }
#giftCatalogDialog::backdrop { background:#160d09b8; }
#giftCatalogDialog h2 { margin:0; }
#giftCatalogDialog [hidden] { display:none; }
.gift-steps { display:flex; gap:clamp(8px,3vw,28px); margin:0; padding:0; list-style:none; }
.gift-steps li { padding:6px 0; border-bottom:2px solid transparent; }
.gift-steps [aria-current="step"] { border-color:#ffe1a6; font-weight:bold; }
#giftBody { overflow:auto; min-width:0; padding:4px; scrollbar-width:thin; }
.gift-step { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.gift-card-step { grid-template-columns:minmax(0,1fr) minmax(0,280px); }
#giftCatalogDialog .garland-actions { display:flex; flex-wrap:wrap; gap:8px; }
#giftCatalogDialog .garland-actions button { padding:8px 14px; }
#giftCatalogDialog .garland-status { margin:0; }
#giftCatalogDialog .garland-style-track { display:flex; overflow-x:auto; gap:8px; min-width:0; }
#giftCatalogDialog .garland-style-track::-webkit-scrollbar { display:block; }
#giftCatalogDialog .garland-style-card { flex:none; }
#giftCatalogDialog .garland-palette-track { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:600px) {
  .gift-card-step { grid-template-columns:minmax(0,1fr); }
  #giftLivePreview { width:min(100%,260px); margin-inline:auto; }
}

#giftCatalogDialog header { justify-content:flex-start; }
#giftBack { min-width:44px; min-height:44px; border:1px solid #af8a55; border-radius:8px; background:#563822; color:inherit; font-size:23px; }
.gift-carousel { display:grid; grid-template-columns:36px minmax(0,1fr) 36px; align-items:center; gap:6px; }
.gift-carousel > button { min-height:44px; border:0; background:transparent; color:inherit; font-size:28px; }
#giftCatalogDialog .gift-content-catalog,
#giftCatalogDialog .gift-postcard-choices { display:flex; overflow-x:auto; max-height:none; padding:4px; }
#giftCatalogDialog .garland-style-track,
#giftCatalogDialog .gift-content-catalog,
#giftCatalogDialog .gift-postcard-choices { scrollbar-width:thin; }
#giftCatalogDialog .gift-content-card { flex:0 0 110px; }
#giftCatalogDialog .gift-postcard-choice { flex:0 0 100px; }

.gift-shelf-step { height:100%; }
.gift-shelf-step .gift-content-field { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; }
.gift-shelf-step .gift-carousel { min-height:0; align-items:stretch; }
.gift-shelf-step .gift-carousel > button { align-self:center; }
#giftCatalogDialog .gift-content-catalog {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:clamp(82px,14vw,130px);
  grid-template-rows:repeat(3,minmax(0,1fr));
  justify-content:start;
  align-content:stretch;
  gap:0 8px;
  padding:6px 12px;
  border:5px ridge #9b693b;
  border-radius:7px;
  background:
    repeating-linear-gradient(to bottom,transparent 0 calc(33.333% - 9px),#8e5c31 calc(33.333% - 9px),#d3a469 calc(33.333% - 6px),#4e2c17 33.333%),
    repeating-linear-gradient(1deg,transparent 0 5px,#2d140b25 6px,transparent 7px 13px),
    linear-gradient(90deg,#9b693b,#bd8c54 18%,#996237 86%,#70401f);
}
#giftCatalogDialog .gift-content-card { min-height:0; margin:4px 0 10px; display:grid; grid-template-rows:minmax(0,1fr); }
#giftCatalogDialog .gift-content-card img { height:100%; min-height:0; }
#giftCatalogDialog .gift-content-card span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#giftContentsStatus:empty, #giftCatalogDialog .garland-status:empty { display:none; }
#giftCatalogDialog .gift-message-fields { margin-top:4px; gap:4px; }
#giftCatalogDialog .gift-message-fields > label, #giftCatalogDialog .gift-recipient-field > label { margin:4px 0; }
#giftCatalogDialog #giftWish { min-height:0; height:58px; resize:none; }
#giftCatalogDialog #giftPostcardFont { margin-top:4px; padding:4px 6px; }
#giftCatalogDialog .gift-postcard-choice { flex-basis:76px; }
#giftCatalogDialog #giftLivePreview .gift-postcard { width:min(100%,calc((100dvh - 190px) * .58)); }
#giftCatalogDialog .garland-field-title { margin:4px 0; }
#giftCatalogDialog .garland-style-card img { height:clamp(45px,12dvh,76px); }
#giftCatalogDialog .garland-palette-track { min-height:36px; padding-block:3px; }
@media (max-width:600px) {
  #giftCatalogDialog .gift-card-step { gap:4px; }
  #giftCatalogDialog #giftLivePreview .gift-postcard { width:min(100%,max(80px,calc((100dvh - 370px) * .6))); }
}

.gift-shelf-step .gift-content-field { grid-template-rows:auto auto minmax(0,1fr) auto; gap:6px; }
.gift-shelf-section { display:grid; grid-template-rows:auto minmax(0,1fr); min-height:0; }
.gift-shelf-section h3 { margin:0 0 3px; font-size:inherit; }
#giftCatalogDialog .gift-content-catalog {
  grid-template-rows:minmax(0,1fr);
  background:
    linear-gradient(to top,#4e2c17 0 3px,#d3a469 3px 6px,transparent 8px),
    repeating-linear-gradient(1deg,transparent 0 5px,#2d140b25 6px,transparent 7px 13px),
    linear-gradient(90deg,#9b693b,#bd8c54 18%,#996237 86%,#70401f);
}
#giftCatalogDialog #giftTitle { padding:5px 8px; }
#giftCatalogDialog #giftContents {
  display:grid;
  grid-template-columns:none;
  grid-template-rows:repeat(2,minmax(44px,max-content));
  grid-auto-columns:max-content;
  align-items:center;
  row-gap:4px;
  max-height:none;
}
#giftCatalogDialog #giftContents .gift-content-card {
  min-width:44px;
  min-height:44px;
  margin:0;
  place-items:center;
}
#giftCatalogDialog #giftContents .gift-content-card img {
  width: var(--shelf-toy-size);
  height: var(--shelf-toy-size);
}
@font-face {
  font-family: "Marck Script";
  src: url("/front/assets/postcard-fonts/marckscript.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Lobster;
  src: url("/front/assets/postcard-fonts/lobster.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/front/assets/postcard-fonts/cormorantgaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Ruslan Display";
  src: url("/front/assets/postcard-fonts/ruslandisplay.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Rubik Doodle Shadow";
  src: url("/front/assets/postcard-fonts/rubikdoodleshadow.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Pacifico;
  src: url("/front/assets/postcard-fonts/pacifico.ttf") format("truetype");
  font-display: swap;
}
