/* Agiftable website. Tokens follow apple/GiftApp/Design/Theme.swift in the GiftApp repo; layout
   follows the owner's mockups (GiftApp docs/design/web, 2026-11-01). No inline styles anywhere:
   the Content-Security-Policy refuses them. Values the script sets per list (the hero's colors)
   are CSS custom properties. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --text: #111318;
  --text-2: #5E6470;
  --text-3: #3A3F4A;
  --border: #DDE0E6;
  --accent: #B8322C;
  --brand: #C2410C;
  --done: #1F5E4B;
  --done-chip: #E9F5EE;
  --muted-chip: #EEEFF2;
  --hero-bg: #3A3F4A;
  --hero-text-2: #DDE0E6;
  --hero-ink: #FFFFFF;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* `hidden` always hides, even where a rule gives the element a display (the request count's
   badge showed "0", and the claim sheet's "Claiming as" box showed empty when signed out). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark: "A" and "able" in Manrope 800; "gift" in the system serif italic, as in the app. */
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark .gift {
  font-family: ui-serif, "New York", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--brand);
  letter-spacing: 0.02em;
  padding: 0 0.06em 0 0.02em;
}
.on-dark .gift { color: #F0805F; }

/* Header */
.site-header { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--text); color: #FFF; font-size: 14px; font-weight: 700; text-decoration: none; }
.cta .wordmark { font-size: 14px; letter-spacing: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 28px; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(22px, 4vw, 44px) clamp(20px, 4vw, 48px); }
.hero .dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .tree { position: absolute; right: clamp(8px, 4vw, 60px); bottom: 0; width: clamp(104px, 18vw, 210px); height: auto; }
.hero-body { position: relative; max-width: 640px; }
.hero.with-art .hero-body { padding-right: 104px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-text-2); }
.hero h1 { margin: 8px 0 0; font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; }
.hero-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.owner { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.counts { font-size: 14px; font-weight: 600; color: var(--hero-text-2); }

/* Avatars: the app's illustrated library, else an initial on a pastel. */
.avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 2px rgba(255,255,255,0.7); background: var(--avatar-bg, #F0EBFA); color: var(--avatar-ink, #4A3878); }
.avatar img { width: 100%; height: 100%; display: block; }

/* Surprise banner */
.banner { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(17,19,24,0.05); }
.banner .icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 18px; background: var(--done-chip); color: var(--done); display: flex; align-items: center; justify-content: center; }
.banner p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.banner strong { color: var(--text); }

/* Filters */
.toolbar { padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 14px; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #FFF; }
.as-of { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* Items */
.grid { padding-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 48px) / 4)), 1fr)); gap: 16px; }
.item { background: var(--card); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(17,19,24,0.06), 0 8px 24px rgba(17,19,24,0.05); }
.photo { position: relative; aspect-ratio: 1 / 1; background: #F1F2F4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #FFF; display: block; }
.photo .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hero-bg); opacity: 0.55; }
.item.claimed .photo img, .item.claimed .photo .placeholder { opacity: 0.45; }
.badge { position: absolute; top: 10px; height: 26px; padding: 0 9px; border-radius: 13px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.badge.wanted { left: 10px; background: #FFF; color: var(--accent); box-shadow: 0 2px 6px rgba(17,19,24,0.12); }
.badge.count { right: 10px; background: rgba(17,19,24,0.78); color: #FFF; }
/* The viewer's own claim on the tile, now that its Undo is in the item's card. */
.badge.count.mine { background: var(--done-chip); color: var(--done); }
.item-body { flex: 1; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.item h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.where { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.where .price { color: var(--text); }
/* A full list's price line (owner's 65B): the store's small logo, then the price, no store name.
   A store that isn't ours shows its name's initial in the same box. The line keeps its height. */
.price-line { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.store-mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 1px solid #E4E6EA; background: var(--card); object-fit: cover; }
/* A store's own icon (GiftApp's 1A): fills the square on white, as the apps' logos. */
.store-mark.site-icon { background: #FFF; }
.store-mark.initial { display: grid; place-items: center; font-size: 9px; font-weight: 800; line-height: 1; color: var(--text-3); }
.notes { margin: 0; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
/* Amazon's Associate sentence under an Amazon item (GiftApp's 1A). */
.amazon-note { margin: 0; font-size: 11px; color: var(--text-2); }

/* Promo and footer */
.promo { margin: 28px auto 0; max-width: 560px; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 2px rgba(17,19,24,0.05); }
.promo img { width: 52px; height: 52px; border-radius: 13px; }
.promo h2 { margin: 0; font-size: 17px; font-weight: 800; }
.promo p { margin: 4px 0 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.promo-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.promo .promo-badge { display: block; border-radius: 7px; }
.promo .promo-badge img { display: block; width: auto; height: 40px; border-radius: 0; }
/* Google's badge has its clear space built in (41 of its 250 px each side): drawn larger and
   pulled in to stand as tall as Apple's, as on the home page. */
.promo .promo-badge.gp { margin: -10px; border-radius: 16px; }
.promo .promo-badge.gp img { height: 60px; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 28px 20px 40px; font-size: 13px; color: var(--text-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.site-footer a, .link-button { color: var(--text-3); text-decoration: none; font-weight: 600; font-size: 13px; }
.link-button { border: 0; background: none; padding: 0; }

/* Messages: loading, not found, errors */
.message { max-width: 520px; margin: 60px auto; text-align: center; padding: 0 20px; }
.message h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 8px; }
.message p { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.message .circle { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: #EEEFF2; display: flex; align-items: center; justify-content: center; color: #8A8F99; }
.skeleton { border-radius: 28px; height: 220px; background: linear-gradient(90deg, #ECEEF1, #F4F5F7, #ECEEF1); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #FFF; padding: 12px 18px; border-radius: 22px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(17,19,24,0.25); max-width: calc(100% - 32px); }

/* Dialogs: a sheet from the bottom on phones, a centered card on wider screens. */
dialog { border: 0; padding: 0; background: transparent; max-width: 100%; max-height: 100%; }
dialog::backdrop { background: rgba(17,19,24,0.45); }
.sheet { background: var(--card); width: min(480px, 100vw); border-radius: 28px; padding: 18px 22px 24px; }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 14px; }
@media (max-width: 600px) {
  dialog { margin: auto 0 0; width: 100%; }
  .sheet { width: 100vw; border-radius: 28px 28px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (min-width: 601px) { .sheet .grabber { display: none; } }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-head .thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: #FFF; flex: 0 0 64px; }
.sheet-head .kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--done); }
.sheet-head h2 { margin: 2px 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sheet-head .where { font-size: 14px; }
.field-label { display: block; margin: 20px 0 8px; font-size: 15px; font-weight: 700; }
.field { width: 100%; height: 52px; border-radius: 14px; border: 2px solid var(--border); padding: 0 16px; font-family: inherit; font-size: 17px; color: var(--text); background: #FFF; }
.field:focus { outline: none; border-color: var(--text); }
textarea.field { height: 110px; padding: 12px 16px; resize: vertical; }
.hint { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.hint strong { color: var(--text); }
.primary { width: 100%; height: 54px; margin-top: 20px; border-radius: 27px; border: 0; background: var(--accent); color: #FFF; font-size: 17px; font-weight: 800; }
.primary:disabled { opacity: 0.5; cursor: default; }
.secondary { width: 100%; height: 48px; margin-top: 10px; border-radius: 24px; border: 1px solid var(--border); background: #FFF; color: var(--text); font-size: 15px; font-weight: 700; }
.fine { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }
.error { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.qty { display: flex; gap: 8px; flex-wrap: wrap; }
.qty .chip { min-width: 52px; }

/* The wordmark inside a sentence takes the sentence's size. */
p .wordmark { font-size: inherit; letter-spacing: 0; }

/* Shared ideas (/shares/<token>, mockup 03): who they're for, from whom, how much is claimed. */
.hero.ideas .hero-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero.ideas .hero-body { flex: 1 1 240px; min-width: 0; max-width: none; }
.from { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hero-text-2); }
.from .avatar { width: 26px; height: 26px; font-size: 12px; }
.progress { flex: 1 1 240px; max-width: 320px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.12); }
.progress p { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 800; }
.progress .open { color: var(--hero-text-2); font-weight: 600; }
.progress .bar { margin-top: 10px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.2); overflow: hidden; }
.progress .fill { height: 8px; border-radius: 4px; background: #F6D27A; }
.banner.surprise { background: #FDF3D6; box-shadow: none; }
.banner.surprise .icon { background: #F6D27A; color: #5E4A0E; }
.banner.surprise p { color: #4A3D12; }
.banner.surprise strong { color: #2A220A; }
.banner.how { margin-top: 10px; align-items: flex-start; }
.banner.how .icon { background: var(--muted-chip); color: var(--text-3); }
.banner.how p { margin: 0; }
.banner.how p.small { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.notes.quote { margin-top: 2px; padding: 7px 9px; border-radius: 10px; background: var(--bg); font-size: 12px; line-height: 1.4; color: var(--text-3); }

/* Support, privacy, terms and delete account (src/content/*.md, through src/templates/doc.html). */
.doc { max-width: 720px; margin: 8px auto 40px; padding: 28px 24px 32px; background: var(--card); border-radius: 24px; line-height: 1.6; font-size: 16px; }
.doc h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 6px; }
.doc h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 30px 0 6px; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--brand); font-weight: 600; }
.doc em { color: var(--text-2); }
.draft-banner { max-width: 720px; margin: 0 auto 8px; padding: 10px 16px; border-radius: 12px; background: #FFF4D6; color: #6E5A1A; font-weight: 700; font-size: 14px; text-align: center; }
@media (max-width: 600px) { .doc { border-radius: 0; padding: 22px 18px 28px; } .doc h1 { font-size: 26px; } }

/* Prelaunch splash: the app icon's navy gradient, its gift, and nothing else. */
body.splash {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: linear-gradient(180deg, #3C4569 0%, #262C47 50%, #161A2C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash main { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 4vh, 36px); padding: 24px; }
.splash-gift { width: min(56vmin, 300px); height: auto; }
.splash-text { margin: 0; color: #E4E7F0; font-size: clamp(18px, 2.6vmin, 24px); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* The photo and the name open the item's card (owner's A, 2026-11-17); the name is a button. */
.item.openable { cursor: pointer; }
button.title-link { border: 0; background: none; padding: 0; margin: 0; font: inherit; text-align: left; letter-spacing: inherit; cursor: pointer; }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover, .title-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Accounts (GiftApp docs/web-accounts.md; mockups 20A–23). */
.header-right { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.owner-block { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.owner-block .avatar { width: 40px; height: 40px; }
.owner-lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.owner-name { font-size: 16px; font-weight: 800; }
.handle { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--hero-text-2); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 3px; }
.counts-line { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--hero-text-2); }
.auth { max-width: 440px; margin: 18px auto 40px; background: var(--card); border-radius: 28px; padding: 26px 24px 28px; box-shadow: 0 1px 2px rgba(17,19,24,0.05); }
.auth h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.auth .lede { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.auth .field-label { margin-top: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }
.text-link { font-size: 14px; font-weight: 700; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.divider { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }
.divider a { color: var(--text); font-weight: 800; }
.field.code { letter-spacing: 0.4em; font-size: 24px; font-weight: 800; text-align: center; }
.handle-field { position: relative; }
.handle-field .at { position: absolute; left: 16px; top: 14px; font-size: 17px; color: var(--text-2); }
.handle-field .field { padding-left: 34px; }
.ok { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--done); }
.provider { width: 100%; height: 50px; margin-top: 10px; border-radius: 25px; border: 1px solid var(--border); background: #FFF; color: var(--text); font-size: 16px; font-weight: 700; }
.provider.apple { margin-top: 20px; background: #000; border-color: #000; color: #FFF; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--text-2); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head .avatar { width: 56px; height: 56px; font-size: 22px; box-shadow: none; }
.handle-text { font-size: 15px; font-weight: 700; color: var(--text-2); }
.danger { width: 100%; height: 48px; margin-top: 10px; border-radius: 24px; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 800; }
.as-who { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.as-who .avatar { width: 36px; height: 36px; flex: 0 0 36px; box-shadow: none; }
.as-who p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.as-who strong { color: var(--text); }
/* The claim sheet signed out (owner's 4A): the offer to sign in, and the email's typo or refusal (2B/2A). */
.signin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.signin-row[hidden] { display: none; }
.signin-row p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.signin-row strong { color: var(--text); }
.signin-row .pill { flex: 0 0 auto; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--border); background: #FFF; font-size: 14px; font-weight: 800; color: var(--text); text-decoration: none; }
.field.bad { border-color: var(--accent); }
.field-note { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.field-note.err { color: var(--accent); font-weight: 700; }
.suggest-fix { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--text); text-decoration: underline; cursor: pointer; }
.provider.apple, .provider.google { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* New Account Creation Paused (the apps' 85B): in place of the sign-up form. */
.auth.paused { text-align: center; }
.paused-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--done-chip); color: var(--done); font-size: 28px; font-weight: 800; }
.paused .lede { margin-top: 10px; }
.paused-note { margin: 12px 0 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--text-3); }
.paused a.primary.as-button { margin-top: 22px; }

/* Profiles and connections (W2: 24A and 27A on phones, 28B and 29A wider). */
a.primary.as-button { display: flex; align-items: center; justify-content: center; text-decoration: none; max-width: 360px; margin-left: auto; margin-right: auto; }
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 20px 22px; background: var(--card); border-radius: 28px; }
.profile-head .avatar { width: 88px; height: 88px; font-size: 34px; box-shadow: none; }
.profile-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.profile-head .sub { margin-top: 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.profile-head .handle-text { font-size: 15px; font-weight: 700; color: var(--text-2); }
.profile-head .stat { display: none; font-size: 14px; color: var(--text-2); font-weight: 600; }
.profile-action { margin-top: 16px; }
.badge-connected { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--done-chip); color: var(--done); font-size: 13px; font-weight: 800; }
.connect-btn { height: 46px; padding: 0 22px; border-radius: 23px; border: 0; background: var(--text); color: #FFF; font-size: 15px; font-weight: 800; }
.pending { height: 46px; padding: 0 22px; border-radius: 23px; background: var(--muted-chip); color: var(--text-3); font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; }
.quiet { margin: 14px 8px 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.section-title { margin: 22px 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.list-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list-card { border-radius: 22px; padding: 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-decoration: none; background: var(--card-bg, #3A3F4A); color: var(--card-ink, #FFF); }
.list-card:hover, .list-card:focus-visible { filter: brightness(1.06); }
.list-card .eyebrow { color: inherit; opacity: 0.75; font-size: 10px; }
.list-card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.list-card .meta { font-size: 12px; font-weight: 700; opacity: 0.85; }
.list-card .peek { display: none; gap: 6px; margin-top: 12px; }
.list-card .peek span { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, currentColor 16%, transparent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; opacity: 0.9; }
.list-card .peek img { width: 100%; height: 100%; object-fit: contain; background: #FFF; display: block; }
.remove-link { display: block; margin: 26px auto 0; color: var(--accent); font-weight: 800; }
.profile-page .message { margin-top: 40px; }

.page-title h1 { margin: 8px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.page-title .lede { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.ask-row { display: flex; gap: 8px; margin-top: 14px; }
.ask-row .handle-field { flex: 1; }
.ask-row .primary { width: auto; margin: 0; padding: 0 22px; height: 52px; }
.mini { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border); background: #FFF; color: var(--text); font-size: 13px; font-weight: 800; }
.mini.dark { background: var(--text); color: #FFF; border-color: var(--text); }
.requests { background: #FDF3D6; border-radius: 22px; padding: 4px 0; }
.request, .person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; }
.request .avatar, .person .avatar { width: 44px; height: 44px; flex: 0 0 44px; box-shadow: none; }
.request .t, .person .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.request strong, .person strong { font-size: 15px; font-weight: 800; }
.request span, .person span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.request .buttons { display: flex; gap: 8px; margin-top: 8px; }
.people { background: var(--card); border-radius: 22px; padding: 4px 0; }
.people .lists-count { display: none; }
.waiting .mini { align-self: flex-start; margin-top: 6px; }
p.ok { margin: 10px 0 0; }

@media (min-width: 900px) {
  /* 28B: the profile across the top, the lists four to a row with a peek at their items. */
  .profile-head { flex-direction: row; text-align: left; gap: 22px; padding: 26px 30px; }
  .profile-head .avatar { width: 96px; height: 96px; }
  .profile-head .grow { flex: 1; }
  .profile-head h1 { font-size: 34px; }
  .profile-head .sub { flex-direction: row; gap: 12px; }
  .profile-head .stat { display: block; }
  .profile-action { margin-top: 14px; }
  .profile-page .quiet { text-align: left; margin-left: 4px; }
  .list-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .list-card { min-height: 170px; padding: 20px; }
  .list-card h3 { font-size: 22px; }
  .list-card .peek { display: flex; }
  .remove-link { margin-left: 4px; }

  .page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .page-title h1 { font-size: 34px; }
  .page-title .ask-row { margin: 0; width: 420px; flex: 0 0 auto; }
  .request { padding: 14px 18px; }
  .request .t { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; }
  .request .buttons { margin: 0 0 0 auto; }
  .people:not(.waiting) { background: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .people:not(.waiting) .person { flex-direction: column; text-align: center; background: var(--card); border-radius: 22px; padding: 18px; box-shadow: 0 1px 2px rgba(17,19,24,0.05); }
  .people:not(.waiting) .person .avatar { width: 64px; height: 64px; flex-basis: 64px; }
  .people:not(.waiting) .t { align-items: center; }
  .people .lists-count { display: block; margin-top: 4px; color: var(--text-3); }
}

/* ---- Your own wishlists (W3: 31A, 32A, 33A, 34) ---- */
.page-title .btn-dark { flex: 0 0 auto; }
.btn-dark { height: 42px; padding: 0 18px; border-radius: 21px; border: 0; background: var(--text); color: #FFF; font-size: 14px; font-weight: 800; }
.mine-grid { margin-top: 14px; }
.list-card.mine .status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.list-card.mine .status span { height: 24px; padding: 0 9px; border-radius: 12px; background: color-mix(in srgb, currentColor 18%, transparent); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.new-card { border: 2px dashed var(--border); border-radius: 22px; min-height: 132px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-family: inherit; font-weight: 800; font-size: 15px; }
.new-card .plus { width: 44px; height: 44px; border-radius: 22px; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 1px 2px rgba(17,19,24,0.08); }
.hero.own-hero { margin-top: 8px; }
.hero-tools { position: relative; display: flex; gap: 8px; margin-top: 16px; }
.btn-on-hero { height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: color-mix(in srgb, var(--hero-ink) 18%, transparent); color: var(--hero-ink); font-size: 14px; font-weight: 800; }
.paste-bar { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--card); border-radius: 22px; padding: 12px; box-shadow: 0 1px 2px rgba(17,19,24,0.05); }
.paste-bar .field { flex: 1 1 240px; border-color: var(--bg); background: var(--bg); }
.paste-bar .primary { width: auto; margin: 0; padding: 0 22px; height: 52px; }
.paste-bar .or-hand { white-space: nowrap; font-size: 14px; font-weight: 800; color: var(--text-3); padding: 0 6px; }
.photo .placeholder.letter { font-size: 44px; font-weight: 800; }
/* Received (owner's R2): out of the grid into a smaller section under it, the photo faded, the
   done green check in the corner where the star would be. */
.received-title { color: var(--done); margin-top: 28px; }
.received-grid { padding-top: 0; grid-template-columns: repeat(auto-fill, minmax(max(120px, calc((100% - 60px) / 6)), 1fr)); gap: 12px; }
.item.received { border-radius: 18px; }
.item.received .photo img, .item.received .photo .placeholder { opacity: 0.45; }
.item.received .photo .placeholder.letter { font-size: 32px; }
.item.received .item-body { padding: 10px 10px 12px; }
.item.received h3 { font-size: 13px; color: var(--text-2); }
.badge.received-check { right: 10px; width: 28px; padding: 0; justify-content: center; border-radius: 14px; background: var(--done); color: #FFF; font-size: 15px; box-shadow: 0 0 0 2px #FFF; }
.wide-sheet { width: min(560px, 100vw); max-height: 92vh; overflow-y: auto; }
.wide-sheet .sheet-title { margin: 0 0 4px; }
.item-form { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
.item-side:empty { display: none; }
.photo-box { width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #FFF; border: 1px solid #EEEFF2; box-sizing: border-box; }
.photo-box img { width: 100%; height: 100%; object-fit: contain; background: #FFF; display: block; }
/* 5A: the photos a read link found, one at a time; what the form says about the read. */
.photo-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--text-3); }
.photo-nav[hidden] { display: none; }
.photo-nav button { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--border); background: #FFF; color: var(--text); font-size: 18px; font-weight: 800; }
.read-note { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.read-note.unread { color: var(--text-2); }
.paste-bar .primary.reading { opacity: .85; }
/* The price with its currency's symbol before it ("$ 249"). */
.money-field { position: relative; }
.money-field .money-symbol { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; font-weight: 700; color: var(--text-2); pointer-events: none; }
.money-field .field { padding-left: 38px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 15px; font-weight: 700; }
.switch-input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--border); position: relative; cursor: pointer; transition: background 0.15s; }
.switch-input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #FFF; box-shadow: 0 1px 2px rgba(17,19,24,0.2); transition: left 0.15s; }
.switch-input:checked { background: var(--done); }
.switch-input:checked::after { left: 21px; }
.switch-input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 6px; border-radius: 20px; border: 1px solid var(--border); font-weight: 800; }
.stepper button { width: 28px; height: 28px; border-radius: 14px; border: 0; background: var(--bg); color: var(--text); font-size: 16px; font-weight: 800; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-dot { width: 36px; height: 36px; border-radius: 18px; border: 1px solid rgba(17,19,24,0.12); }
.swatch-dot[aria-checked="true"] { outline: 3px solid var(--text); outline-offset: 2px; }
/* Plus (3B): the occasion's own color first, marked with a star, then a divider and the palette. */
.swatch-dot.occasion-dot { position: relative; }
.swatch-dot.occasion-dot::after { content: "★"; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 9px; background: #FFFFFF; color: var(--text-2); font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 1px 3px rgba(17,19,24,0.18); }
.swatch-divider { width: 1px; height: 28px; background: var(--border, #DDE0E6); align-self: center; }
.swatch-dot[hidden], .swatch-divider[hidden] { display: none; }
.small-note { font-size: 12px; color: var(--text-2); margin: 6px 0 0; line-height: 1.4; }
.dialog-buttons { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.dialog-buttons.end { justify-content: flex-end; }
.dialog-buttons .primary, .dialog-buttons .secondary { width: auto; margin: 0; height: 46px; padding: 0 20px; font-size: 15px; }
.danger-link { color: var(--accent); font-size: 15px; font-weight: 800; }
select.field { appearance: auto; }
@media (min-width: 900px) {
  .hero-tools { position: absolute; right: 28px; top: 26px; margin: 0; }
  .hero.own-hero .hero-body { padding-right: 220px; }
  .new-card { min-height: 170px; }
  .item-form:not(.no-side) { width: min(760px, 100vw); grid-template-columns: 220px 1fr; }
}
.share-sheet .lede { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.link-field { display: flex; gap: 8px; align-items: center; }
.link-field .field { flex: 1; min-width: 0; font-size: 15px; color: var(--text-2); background: var(--bg); border-color: var(--bg); }
.link-field .copy { flex: 0 0 auto; height: 52px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--hero-bg); color: var(--hero-ink); font-family: inherit; font-weight: 800; font-size: 15px; }
.link-field .copy:disabled { opacity: 0.5; }
.share-sheet .send-row { margin-top: 12px; }
.small-note.center { text-align: center; }
.quiet-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; font-weight: 800; }
.quiet-row .reset { color: var(--text-3); font-weight: 800; }
.quiet-row .stop { color: var(--accent); font-weight: 800; }

/* ---- Who can see a wishlist (W3 visibility: 40, 41) ---- */
.vis { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.vis-row { display: flex; width: 100%; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-top: 1px solid var(--border); background: #FFF; color: var(--text); font-family: inherit; text-align: left; cursor: pointer; }
.vis-row:first-child { border-top: 0; }
.vis-row .ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 15px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.vis-row.on { background: #F3FAF6; }
.vis-row.on .ic { background: var(--done-chip); }
.vis-row b { display: block; font-size: 15px; }
.vis-row small { display: block; font-size: 13px; color: var(--text-2); }
.vis-row .check { margin-left: auto; color: var(--done); font-weight: 900; font-size: 18px; visibility: hidden; }
.vis-row.on .check { visibility: visible; }
.vis-row:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.list-card .status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.list-card .status span { height: 22px; padding: 0 8px; border-radius: 11px; background: color-mix(in srgb, currentColor 18%, transparent); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.public-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; padding: 12px 16px; border-radius: 16px; background: var(--card); font-size: 14px; line-height: 1.45; color: var(--text-2); }
.public-note strong { color: var(--text); }
.public-note .btn-dark { margin-left: auto; display: inline-flex; align-items: center; text-decoration: none; }
/* 5A (owner, 2026-11-15): barely there, at the very bottom; "Report · Block" signed in (3A/3B). */
.report-link { display: flex; justify-content: center; align-items: center; margin: 36px auto 0; padding: 12px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.report-link .link-button, .report-link .dot { font-size: 12px; font-weight: 600; color: var(--text-2); opacity: 0.55; white-space: pre; }
.report-link .link-button { padding: 4px 2px; }
.report-link .link-button:hover, .report-link .link-button:focus-visible { opacity: 0.9; text-decoration: underline; }
/* The report sheet (1A): the five reasons as one bordered list, like who can see a wishlist. */
.report-reasons { margin: 0; padding: 0; border: 0; min-width: 0; }
.report-reasons legend { padding: 0; margin-top: 14px; }
.report-reason { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-top: 0; background: #FFF; font-size: 15px; font-weight: 600; cursor: pointer; }
.report-reason:first-of-type { border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; }
.report-reason:last-of-type { border-radius: 0 0 16px 16px; }
.report-reason:has(input:checked) { background: #F3FAF6; }
.report-reason input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--done); }
.report-dialog textarea.field { margin-top: 14px; height: 90px; font-size: 15px; }
.report-dialog .fine { font-size: 13px; }
.confirm-dialog .hint { font-size: 15px; }

/* Discover (GiftApp docs/discover.md; owner's 52C, 52D and 66B), rendered by the Worker. */
.discover { padding-bottom: 48px; }
.disc-title { font-size: clamp(30px, 5vw, 40px); font-weight: 800; margin: 8px 0 4px; }
.disc-lede { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }
.discover .label { font-size: 13px; font-weight: 700; letter-spacing: .15em; color: var(--text-2); text-transform: uppercase; margin: 32px 0 12px; }
.shops { display: flex; gap: 18px; flex-wrap: wrap; }
.shop { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; width: 76px; text-align: center; }
.shop img, .shop-initial { width: 64px; height: 64px; border-radius: 17px; border: 1px solid #E4E6EA; background: var(--card); object-fit: cover; }
.shop-initial { display: grid; place-items: center; font-size: 24px; font-weight: 800; color: var(--text-3); }
.cbar { display: block; border-radius: 22px; padding: 22px 28px; margin-top: 34px; text-decoration: none; }
.cbar h2, .cbar h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.cbar p { margin: 0; color: var(--text-2); font-size: 16px; }
.page-bar { margin-top: 14px; }
/* A collection's art (64D): a 3:2 illustration at the right, running off the right and bottom
   edges, clipped by the bar's corners; the text keeps the left. */
.cbar.has-art { position: relative; overflow: hidden; min-height: 110px; box-sizing: border-box; display: flex; align-items: center; }
.cbar.has-art .cbar-text { position: relative; z-index: 1; max-width: calc(100% - 200px); }
.cbar-art { position: absolute; right: -20px; bottom: -14px; height: 150px; width: auto; pointer-events: none; user-select: none; }
.cbar.lilac, .pick-photo.lilac { background: #F0EBFA; }
.cbar.pink, .pick-photo.pink { background: #FCEAF1; }
.cbar.peach, .pick-photo.peach { background: #FDEEE6; }
.cbar.blue, .pick-photo.blue { background: #E8F0F7; }
.cbar.mauve, .pick-photo.mauve { background: #F3ECF6; }
.cbar.green, .pick-photo.green { background: #E9F5EE; }
.items5, .items4 { display: grid; gap: 16px; margin-top: 16px; }
.items5 { grid-template-columns: repeat(5, 1fr); }
.items4 { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.pick { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.pick-photo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.pick-photo img { width: 100%; height: 100%; object-fit: contain; background: #FFF; }
.pick-gift { font-size: 48px; }
.pick-name { font-size: 15px; margin: 8px 0 2px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick .where { color: var(--text-2); font-size: 13px; }
.pick .price { font-weight: 800; color: var(--text); }
.seeall { display: block; margin-top: 14px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid #E4E6EA; font-weight: 800; color: var(--accent); text-decoration: none; font-size: 15px; }
.seeall span { color: var(--text-2); font-weight: 600; margin-left: 6px; }
.crumb { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: 15px; }
@media (max-width: 900px) { .items5 { grid-template-columns: repeat(3, 1fr); } .items4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .items5, .items4 { grid-template-columns: repeat(2, 1fr); } .cbar { padding: 18px 20px; } .cbar h2, .cbar h1 { font-size: 22px; }
  .cbar.has-art { min-height: 92px; } .cbar.has-art .cbar-text { max-width: calc(100% - 130px); } .cbar-art { height: 110px; right: -18px; bottom: -12px; } }
@media (max-width: 380px) { .cbar-art { display: none; } .cbar.has-art .cbar-text { max-width: none; } }
.shop-collection { margin-top: 16px; }
/* 66B: a section's first bar sits under its label. */
.discover .label + .cbar { margin-top: 0; }
/* COLLECTIONS (66B): full-width cards in a row that scrolls sideways, each a little narrower than
   the column so the next one's edge shows. Scrollbar hidden; the row still scrolls by trackpad,
   touch and keyboard (it takes focus). */
.ccards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0;
  scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.ccards::-webkit-scrollbar { display: none; }
.ccards:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 22px; }
.ccard { flex: 0 0 93%; scroll-snap-align: start; position: relative; overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px; border-radius: 22px; padding: 22px 28px 24px; text-decoration: none; color: var(--text); }
.ccards.single .ccard { flex-basis: 100%; }
.ccard-text { position: relative; z-index: 1; }
/* The art sits bottom right, partly behind the last photo: the row leaves it a little room
   (owner, 2026-11-09: use more of the row). */
.ccard.has-art .ccard-picks { margin-right: 120px; }
.ccard h3 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.ccard p { margin: 0; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-art { position: absolute; right: -20px; bottom: -14px; height: 170px; width: auto; pointer-events: none; user-select: none; }
/* Five picks in a row on a desktop window (owner, 2026-11-09); narrower, as many as fit. Rows
   past the first have no height and are clipped. */
.ccard-picks { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto; grid-auto-rows: 0; column-gap: 14px; row-gap: 0; overflow: hidden; }
.ccard .pick-photo { background: rgba(255, 255, 255, .6); }
.ccard.lilac { background: #F0EBFA; }
.ccard.pink { background: #FCEAF1; }
.ccard.peach { background: #FDEEE6; }
.ccard.blue { background: #E8F0F7; }
.ccard.mauve { background: #F3ECF6; }
.ccard.green { background: #E9F5EE; }
@media (max-width: 900px) { .ccard-picks { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
@media (max-width: 560px) { .ccards { gap: 12px; } .ccard { padding: 18px 18px 20px; } .ccard h3 { font-size: 21px; }
  .ccard-picks { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); column-gap: 10px; }
  .ccard.has-art .ccard-picks { margin-right: 60px; } .ccard-art { height: 110px; right: -18px; bottom: -10px; }
  .ccard .pick-name { font-size: 13px; } }
@media (max-width: 380px) { .ccard-art { display: none; } .ccard.has-art .ccard-picks { margin-right: 0; } }

/* Agiftable Plus (GiftApp plan §6): a profile's font, banner and palette. The 14 fonts are
   self-hosted (Latin subsets, OFL/Apache: fonts/plus/LICENSES.txt), each fetched only when a page uses it. */
@font-face { font-family: "Plus playfair"; src: url("/fonts/plus/playfair.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus dm-serif"; src: url("/fonts/plus/dm-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus fraunces"; src: url("/fonts/plus/fraunces.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus pacifico"; src: url("/fonts/plus/pacifico.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus dancing-script"; src: url("/fonts/plus/dancing-script.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus satisfy"; src: url("/fonts/plus/satisfy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus fredoka"; src: url("/fonts/plus/fredoka.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus baloo"; src: url("/fonts/plus/baloo.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus bebas"; src: url("/fonts/plus/bebas.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus righteous"; src: url("/fonts/plus/righteous.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus josefin"; src: url("/fonts/plus/josefin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus lobster"; src: url("/fonts/plus/lobster.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus comfortaa"; src: url("/fonts/plus/comfortaa.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plus space-grotesk"; src: url("/fonts/plus/space-grotesk.woff2") format("woff2"); font-display: swap; }
/* One weight per file: never synthesized bold. --plus-scale: scripts and condensed faces read small. */
.plus-font { font-weight: 400 !important; letter-spacing: 0 !important; }
.plus-font-playfair { font-family: "Plus playfair", "Manrope", system-ui, sans-serif; }
.plus-font-dm-serif { font-family: "Plus dm-serif", "Manrope", system-ui, sans-serif; }
.plus-font-fraunces { font-family: "Plus fraunces", "Manrope", system-ui, sans-serif; }
.plus-font-pacifico { font-family: "Plus pacifico", "Manrope", system-ui, sans-serif; }
.plus-font-dancing-script { font-family: "Plus dancing-script", "Manrope", system-ui, sans-serif; }
.plus-font-satisfy { font-family: "Plus satisfy", "Manrope", system-ui, sans-serif; }
.plus-font-fredoka { font-family: "Plus fredoka", "Manrope", system-ui, sans-serif; }
.plus-font-baloo { font-family: "Plus baloo", "Manrope", system-ui, sans-serif; }
.plus-font-bebas { font-family: "Plus bebas", "Manrope", system-ui, sans-serif; }
.plus-font-righteous { font-family: "Plus righteous", "Manrope", system-ui, sans-serif; }
.plus-font-josefin { font-family: "Plus josefin", "Manrope", system-ui, sans-serif; }
.plus-font-lobster { font-family: "Plus lobster", "Manrope", system-ui, sans-serif; }
.plus-font-comfortaa { font-family: "Plus comfortaa", "Manrope", system-ui, sans-serif; }
.plus-font-space-grotesk { font-family: "Plus space-grotesk", "Manrope", system-ui, sans-serif; }
.profile-head h1.plus-font { font-size: calc(26px * var(--plus-scale, 1)); }
.profile-head .handle-text.plus-font { font-size: calc(15px * var(--plus-scale, 1)); }
.list-card h3.plus-font { font-size: calc(18px * var(--plus-scale, 1)); }
.hero h1.plus-font { font-size: calc(clamp(30px, 5vw, 50px) * var(--plus-scale, 1)); line-height: 1.15; }

/* The banner behind a profile's head: drawn on a canvas filling it. Over a dark banner the text
   goes white. */
.profile-head.with-banner { position: relative; overflow: hidden; background: transparent; }
.profile-head.with-banner > :not(.plus-banner) { position: relative; }
.plus-banner { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plus-banner-photo { object-fit: cover; background: #595959; }
.profile-head.with-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.35)); }
.profile-head.with-photo > :not(.plus-banner) { z-index: 2; }
.profile-head.with-banner .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95); }
.profile-head.on-dark h1, .profile-head.on-dark .stat { color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.profile-head.on-dark .handle-text { color: rgba(255, 255, 255, 0.85); }
@media (min-width: 900px) {
  .profile-head h1.plus-font { font-size: calc(34px * var(--plus-scale, 1)); }
  /* W1 (owner, 2026-11-15): on a wide screen the banner stays full width but taller, about 3.5:1,
     closer to the app's header, so an uploaded photo (2:1) or a drawn banner isn't cut to a strip;
     the face, name and count sit at its bottom. */
  .profile-head.with-banner { min-height: 330px; align-items: flex-end; padding-bottom: 30px; }
}

/* An item's card over the page (owner's A, 2026-11-17; mockups/item-card A1–A3): the photo, 420 px
   square, beside the details; on a narrow screen the photo goes on top. A <dialog>: the scrim is
   its backdrop, and a bottom sheet on a phone, as the other dialogs. */
.item-card .card-sheet { position: relative; width: min(860px, 100vw); display: grid; grid-template-columns: 420px 1fr; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
/* The photo at its own shape, rounded, in the pane's fixed frame (GiftApp #25, owner's 25D, as the
   apps' item pages): the pane shows around it, never white bars. It spans the frame's height, or
   its width when it's wider than the frame (`fit-wide`, item-card.js `photoFit`); the other side
   follows its shape. The 20 px inset and margin: auto centre it. */
.card-photo { position: relative; aspect-ratio: 1 / 1; background: #F1F2F4; }
.card-photo img { position: absolute; inset: 20px; margin: auto; width: auto; height: calc(100% - 40px); max-width: calc(100% - 40px); border-radius: 20px; background: #FFF; display: block; }
.card-photo.fit-wide img { width: calc(100% - 40px); height: auto; max-width: none; max-height: calc(100% - 40px); }
.card-photo .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: 0.55; }
.card-info { padding: 30px 28px 26px; display: flex; flex-direction: column; min-width: 0; }
.card-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 18px; border: 1px solid #E4E6EA; background: rgba(255,255,255,0.92); color: var(--text-3); font-size: 15px; font-weight: 800; display: grid; place-items: center; padding: 0; }
.card-close:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.card-store { display: flex; align-items: center; gap: 8px; padding-right: 40px; font-size: 14px; font-weight: 700; color: var(--text-3); }
.card-store .store-mark { width: 24px; height: 24px; }
.item-card h2 { margin: 10px 0 4px; padding-right: 32px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.card-price { margin: 2px 0 10px; font-size: 20px; font-weight: 800; }
.card-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.card-chip { padding: 5px 10px; border-radius: 99px; background: var(--muted-chip); color: var(--text-3); font-size: 12px; font-weight: 800; }
.card-chip.star { background: #FFF4D6; color: #8A5A00; }
.card-chip.done { background: var(--done-chip); color: var(--done); }
.card-note { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.card-note b { color: var(--text); }
.card-spacer { flex: 1; min-height: 12px; }
.card-info .primary { margin-top: 12px; }
.card-info .secondary { margin-top: 10px; }
.card-info a.as-button { display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; margin-left: 0; margin-right: 0; text-decoration: none; }
.card-row { display: flex; gap: 10px; }
.card-row .secondary { flex: 1; }
.card-info .amazon-note { margin-top: 10px; text-align: center; }
.card-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-2); text-align: center; }
@media (max-width: 900px) {
  .item-card .card-sheet { width: min(480px, 100vw); grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .card-photo { aspect-ratio: 4 / 3; }
  .card-info { padding: 20px 24px 24px; }
}
@media (max-width: 600px) {
  .item-card .card-sheet { width: 100vw; border-radius: 28px 28px 0 0; }
  .card-info { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Newest first ▾ over a list's items (owner, 2026-11-17): a small native select, its arrow drawn. */
.toolbar-end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sort-control { position: relative; display: inline-flex; align-items: center; }
.sort-control::after { content: "▾"; position: absolute; right: 12px; pointer-events: none; font-size: 14px; color: var(--text-3); }
.sort-select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 14px; border-radius: 17px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sort-select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* The top bar (owner's option A, 2026-11-24; header.js): the wordmark, the app's pill in the
   middle, the account links and Get Agiftable on the right. On a phone the pill floats at the
   bottom of the screen, as in the app, and the page leaves room for it. */
.site-header.topbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; }
.site-header.topbar .header-right { justify-self: end; gap: 22px; }
.top-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 26px; background: #111318; }
.top-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; color: #C9CDD4; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.top-tabs a:hover { background: #2A2E37; color: #FFF; }
.top-tabs a.on { background: #FFF; color: #111318; font-weight: 800; }
.top-tabs a:focus-visible { outline: 2px solid #FFF; outline-offset: -4px; }
.top-tabs svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.top-link { color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.top-link:hover { color: var(--text); }
.get-pill { display: inline-flex; align-items: center; gap: 0.28em; height: 40px; padding: 0 18px; border-radius: 20px; background: #111318; color: #FFF; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.get-pill .wordmark { font-size: inherit; letter-spacing: 0; }
.get-pill .wordmark .gift { color: #F0805F; }
@media (max-width: 640px) {
  .site-header.topbar { display: flex; padding: 12px 16px; }
  .site-header.topbar .header-right { gap: 16px; }
  .site-header.topbar .sign-up { display: none; }
  .get-pill { height: 38px; padding: 0 14px; font-size: 13px; }
  .top-tabs { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; box-shadow: 0 12px 30px rgba(17,19,24,0.25); }
  .top-tabs a { padding: 0 14px; gap: 7px; font-size: 13px; }
  body.has-tabs { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .top-tabs a { padding: 0 11px; } .site-header.topbar .top-link { display: none; } }

/* Wishlists (/lists; owner's mockups, 2026-11-24; lists.js, wish-cards.js): Me | Connections, each
   list a full-width card: the pastel band (--band-*, set per list), then its first photos flush
   in one row, seven wide and three on a phone, "+N" on the last. */
.wl-page { max-width: 1180px; margin: 0 auto; padding: 20px 20px 48px; }
.wl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wl-top h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.wl-new { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border: 0; border-radius: 22px; background: var(--accent); color: #FFF; text-decoration: none; font-size: 14px; font-weight: 800; }
.wl-new .plus { font-size: 20px; line-height: 1; }
.wl-seg { display: flex; width: 320px; max-width: 100%; margin: 18px 0 22px; padding: 3px; border-radius: 20px; background: #ECEDF1; }
.wl-seg a { flex: 1; height: 36px; line-height: 36px; text-align: center; border-radius: 17px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 700; }
.wl-seg a.on { background: #FFF; color: var(--text); font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.wl-cards { display: flex; flex-direction: column; gap: 20px; }
.wl-card { display: block; overflow: hidden; border-radius: 24px; background: #FFF; color: var(--text); text-decoration: none; box-shadow: 0 0 0 1px #EEEFF2; }
.wl-card:hover .wl-band { filter: brightness(0.98); }
.wl-card:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.wl-band { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--band-bg); color: var(--band-ink); }
.wl-tx { min-width: 0; padding-right: 70px; }
/* The occasion's art (owner's 1A): the band's top corner, as the apps' ListCard; the chips below it. */
.wl-art { position: absolute; top: 12px; right: 18px; width: 60px; height: 65px; object-fit: contain; pointer-events: none; }
.wl-band:has(.wl-chips) { min-height: 124px; }
.wl-who { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.wl-who .avatar { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,0.8); }
.wl-who b { font-weight: 800; }
.wl-k { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.wl-title { display: block; margin-top: 4px; color: var(--band-title); font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; }
.wl-title.plus-font { font-size: calc(24px * var(--plus-scale, 1)); }
.wl-counts { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.wl-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.wl-chips span { height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(255,255,255,0.65); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; }
.wl-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: #FFF; }
.wl-c { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #F3F3F0; }
.wl-c img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wl-c.empty { background: #FFF; }
.wl-star { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 13px; background: rgba(255,255,255,0.92); color: #8A6400; font-style: normal; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.wl-more { position: absolute; right: 8px; bottom: 8px; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 18px; background: rgba(17,19,24,0.78); color: #FFF; font-style: normal; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wl-more.narrow { display: none; }
.wl-newcard { display: flex; align-items: center; justify-content: center; gap: 10px; height: 72px; border: 2px dashed #C9CDD4; border-radius: 24px; background: none; color: var(--text-3); font-size: 15px; font-weight: 800; }
.wl-newcard .plus { font-size: 22px; line-height: 1; }
.wl-h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.wl-sh { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.wl-sh h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.wl-all { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 800; }
.wl-all .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #FFF; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.wl-people { display: flex; gap: 22px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 30px; scrollbar-width: none; }
.wl-people::-webkit-scrollbar { display: none; }
.wl-person { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 800; }
.wl-person .ring { width: 80px; height: 80px; padding: 3px; border-radius: 40px; background: #E3E5EA; display: flex; align-items: center; justify-content: center; }
.wl-person .ring.new { background: conic-gradient(#C2410C, #F2A7B8, #9DB8FF, #A8DCC6, #F6D27A, #C2410C); }
.wl-person .ring .avatar { width: 100%; height: 100%; font-size: 26px; border: 3px solid var(--bg); box-shadow: none; }
.wl-person .nm { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-person.add .ring { background: none; border: 2px dashed #C9CDD4; color: var(--text-2); font-size: 28px; font-weight: 600; }
.wl-person:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 12px; }
.wl-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; margin-bottom: 30px; border-radius: 20px; background: #FFF; box-shadow: 0 0 0 1px #EEEFF2; }
.wl-empty p { margin: 0; font-size: 15px; color: var(--text-3); }
.wl-sentinel { height: 1px; }
@media (max-width: 640px) {
  .wl-page { padding: 8px 16px 32px; }
  .wl-top h1 { font-size: 30px; }
  .wl-top .wl-new { width: 44px; padding: 0; justify-content: center; }
  .wl-top .wl-new span:not(.plus) { display: none; }
  .wl-seg { width: 100%; margin: 14px 0; }
  .wl-cards { gap: 14px; }
  .wl-card { border-radius: 22px; }
  .wl-band { padding: 14px 16px; min-height: 0; }
  .wl-band:has(.wl-chips) { min-height: 0; }
  .wl-art { top: 10px; right: 12px; width: 52px; height: 56px; }
  .wl-tx { padding-right: 60px; }
  .wl-who { margin-bottom: 10px; font-size: 12px; }
  .wl-title { font-size: 19px; }
  .wl-counts { font-size: 12px; }
  .wl-chips { display: none; }
  .wl-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-row .wl-c:nth-child(n+4) { display: none; }
  .wl-more.wide { display: none; }
  .wl-more.narrow { display: flex; }
  .wl-sh h2, .wl-h2 { font-size: 17px; }
  .wl-people { gap: 14px; margin: 0 -16px 22px; padding: 2px 16px 6px; }
  .wl-person { width: 66px; font-size: 12px; }
  .wl-person .ring { width: 64px; height: 64px; border-radius: 32px; }
}
.wl-person .avatar img, .wl-who .avatar img { object-fit: cover; }

/* All connections (/connections; owner's mockup, 2026-11-24; connections.js). */
.ac-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-bottom: 4px; color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 800; }
.ac-ask { max-width: 520px; margin-top: 16px; }
#ask-error { margin: 10px 0 0; }
.ac-page .wl-sh, .wl-page .wl-sh { margin-top: 26px; }
.ac-requests { display: flex; flex-direction: column; gap: 10px; }
.ac-rq { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: #FFF; box-shadow: 0 0 0 1px #EEEFF2; }
.ac-rq .avatar { width: 52px; height: 52px; flex: 0 0 52px; font-size: 20px; box-shadow: none; }
.ac-rq .avatar img, .ac-card .avatar img, .ac-wait .avatar img { object-fit: cover; }
.ac-rq .t { flex: 1; min-width: 0; }
.ac-rq b { display: block; font-size: 15px; font-weight: 800; }
.ac-rq small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ac-rq .acts { display: flex; gap: 8px; }
.ac-btn { height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: none; box-shadow: inset 0 0 0 1.5px #C9CDD4; color: var(--text-3); font-size: 14px; font-weight: 800; }
.ac-btn.yes { background: var(--text); box-shadow: none; color: #FFF; }
.ac-sort { display: flex; padding: 3px; border-radius: 18px; background: #ECEDF1; }
.ac-sort button { height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: none; color: var(--text-2); font-size: 13px; font-weight: 700; }
.ac-sort button.on { background: #FFF; color: var(--text); font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.ac-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ac-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 16px; border-radius: 20px; background: #FFF; box-shadow: 0 0 0 1px #EEEFF2; color: var(--text); text-decoration: none; text-align: center; min-width: 0; }
.ac-card:hover { box-shadow: 0 0 0 1px #C9CDD4; }
.ac-card:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.ac-card .avatar { width: 64px; height: 64px; margin-bottom: 6px; font-size: 24px; box-shadow: none; }
.ac-card b { max-width: 100%; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-card small { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ac-up { margin-top: 6px; height: 22px; padding: 0 9px; border-radius: 11px; background: #FCEBEA; color: #8F2420; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; }
.ac-up.quiet { background: #F1F2F5; color: var(--text-2); }
.ac-waiting { display: flex; flex-direction: column; gap: 8px; }
.ac-wait { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text-3); }
.ac-wait .avatar { width: 32px; height: 32px; font-size: 13px; box-shadow: none; }
.ac-none { text-align: left; margin: 22px 0 0; }
@media (max-width: 900px) { .ac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-rq { flex-wrap: wrap; }
  .ac-rq .acts { width: 100%; }
  .ac-rq .acts .ac-btn { flex: 1; }
}

/* An item typed in with no photo (owner's 1C, 2026-11-24; typed-item.js): a gift outline and its
   name on the item's own pastel (--typed-*, the owner's Plus palette when they have one). Where
   the name sits under the tile (a list's grid, the item's card) the tile shows the gift alone. */
.typed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; background: var(--typed-bg); color: var(--typed-ink); }
.typed svg { display: block; width: 30px; height: 30px; flex: 0 0 auto; }
.typed b { max-width: 100%; font-size: 13px; font-weight: 800; line-height: 1.22; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo .typed svg, .card-photo .typed svg { width: 44px; height: 44px; }
.item.claimed .photo .typed, .item.received .photo .typed { opacity: 0.45; }
.typed.mini { position: static; width: 100%; height: 100%; padding: 0; }
.typed.mini svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .typed b { font-size: 12px; } .typed { gap: 6px; padding: 10px; } .typed svg { width: 26px; height: 26px; } }
/* A "+N" badge on a typed-in item: its name moves up, clear of the badge. */
.wl-c:has(.wl-more.wide) .typed { padding-bottom: 44px; }
@media (max-width: 640px) {
  .wl-c:has(.wl-more.wide) .typed { padding-bottom: 10px; }
  .wl-c:has(.wl-more.narrow) .typed { padding-bottom: 44px; }
}
