:root{color-scheme:light;--pine:#193b29;--ink:#203428;--cream:#faf7ef;--card:#fffcf6;--line:#ded8ca;--muted:#615f51;--berry:#852c38;--serif:"Baskervville","Iowan Old Style","Palatino Linotype","Book Antiqua",Georgia,serif;--sans:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.45 var(--sans);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button,a{touch-action:manipulation}
button{color:inherit;cursor:pointer}
button{background:none;border:0}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bc8247;outline-offset:3px}
.skip{position:fixed;z-index:10;left:12px;top:-80px;background:white;color:var(--pine);padding:12px}.skip:focus{top:12px}
svg.ic{width:20px;height:20px;display:inline-block;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand,.gift-name,.family-name,.detail-name,.person-name{font-family:var(--serif);font-weight:500}
h1,h2,h3{line-height:1.08;text-wrap:balance}
.shell{max-width:1192px;margin:auto;padding-inline:clamp(20px,5vw,70px)}
.mast{background:#183725;color:#fbf7e9;position:relative;isolation:isolate;overflow:hidden}
.topbar{height:76px;display:flex;align-items:center;gap:30px;border-bottom:1px solid #ffffff29;position:relative;z-index:1}
.brand{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-size:clamp(23px,2.4vw,31px);letter-spacing:-1.3px;padding:0;line-height:1}
.brand .logo-tree{width:31px;height:39px;fill:none;stroke:#e5cd93;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.desktop-nav{margin-left:auto;display:flex;gap:6px;align-self:center}
.nav-btn{display:flex;align-items:center;justify-content:center;gap:8px;color:#eeeadd;border-radius:7px;padding:9px 13px;font-size:14px;font-weight:550;white-space:nowrap}
.nav-btn:hover{background:#ffffff0c}.nav-btn.current{background:#ffffff14;color:#fff8e2}
.nav-btn .ic{width:17px;height:17px}
.profile{display:flex;align-items:center;gap:9px;border:1px solid #fcf3dd59;border-radius:100px;padding:4px 11px 4px 5px;min-height:41px;font-size:14px;font-weight:600;color:inherit;white-space:nowrap}
.profile .ic{width:14px;height:14px}
.profile img,.avatar{object-fit:cover;border-radius:50%;aspect-ratio:1;flex:none}.profile img,.profile .avatar{width:30px;height:30px}
.avatar.letter{display:inline-grid;place-items:center;color:var(--pine);background:#e3d9b9;font-family:var(--serif);font-size:1.3em}
.hero{position:relative;min-height:270px;padding-block:32px 38px;display:flex;align-items:center}
.hero::before{content:"";position:absolute;z-index:-1;inset:0 min(-5vw,-20px) 0 36%;background-image:linear-gradient(90deg,#183725 0%,rgba(24,55,37,.03) 25%),url('/assets/snow-scene.webp');background-size:cover;background-position:right center;background-repeat:no-repeat}
.kicker{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;line-height:1.4;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted)}
.hero .kicker{color:#e4d1a0}.kicker .ic{width:15px;height:15px}
.hero h1{font-size:clamp(49px,5.2vw,72px);line-height:.99;letter-spacing:-2.8px;margin:12px 0 18px}
.hero h1 em{font-weight:400;color:#f0d9a4;font-family:var(--serif)}
.countdown{color:#f1e8d3;display:inline-flex;align-items:center;gap:8px;font-size:14px}.countdown .ic{width:16px;height:16px;color:#dbc791}
main{min-height:40vh;padding-bottom:45px}
.section{padding-block:26px 23px}.section+.section{border-top:1px solid var(--line)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.section h2{font-size:clamp(28px,3vw,39px);letter-spacing:-1.3px}.small-link{font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--pine);border-radius:8px;min-height:38px;padding:3px 8px}.small-link .ic{width:16px;height:16px}.small-link:hover{background:#24402b0a}
.family-grid{display:flex;gap:12px;flex-wrap:wrap}
.family-card{flex:1 1 20%;display:flex;align-items:center;gap:13px;text-align:left;min-width:155px;padding:12px 15px;background:var(--card);border:1px solid var(--line);border-radius:12px;transition:border .15s,transform .15s}
.family-card:hover,.gift-card:hover{border-color:#929b82;transform:translateY(-2px)}
.family-card .avatar{width:58px;height:58px;box-shadow:0 0 0 1px #353e2012}
.family-name{font-size:24px;letter-spacing:-.7px;line-height:1.15}
.subtle,.gift-owner{color:var(--muted);font-size:14px}.family-count{display:block;font-size:13px;color:var(--muted);margin-top:3px;line-height:1.25}
.family-card>.ic{color:#7c806d;width:17px;height:17px;margin-left:auto}
.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px;min-height:43px;padding:10px 19px;border-radius:8px;font-weight:600;font-size:15px;line-height:1.25;background:var(--pine);color:#fffaf0;border:1px solid transparent}
.button:hover{filter:brightness(1.1)}.button .ic{width:17px;height:17px}.button.berry{background:var(--berry)}.button.light{color:var(--pine);background:transparent;border-color:#a7ae9e}.button.wide{width:100%}.button:disabled{opacity:.6;cursor:wait}
.gift-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gift-card{overflow:hidden;display:flex;flex-direction:column;text-align:left;align-items:stretch;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:0;transition:border .15s,transform .15s;min-width:0}
.gift-art{width:100%;aspect-ratio:1.85;position:relative;overflow:hidden;background:#e9e2d5;display:grid;place-items:center;color:#6f463d}
.gift-art img,.detail-art img{width:100%;height:100%;object-fit:cover;display:block}
.gift-art .ic,.detail-art>.ic{width:44px;height:44px;stroke-width:.95}
.placeholder{background:radial-gradient(ellipse at 35% 10%,#eee7d6,#dcd8c4);color:#617058}
.gift-body{padding:14px 17px 15px;position:relative;display:flex;flex-direction:column;gap:5px}
.gift-name{font-size:clamp(21px,2.1vw,28px);line-height:1.12;letter-spacing:-.7px;overflow-wrap:anywhere}
.gift-body>.ic{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;display:none}
.gift-meta{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px;flex-wrap:wrap}.middot{color:#968e80}
.bottom-nav{display:none}.foot{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-block:15px 24px;font-size:13px;color:var(--muted)}.foot span{display:flex;align-items:center;gap:6px}.foot .ic{width:15px;height:15px}.foot button{text-decoration:underline;text-underline-offset:3px;color:var(--muted);font-size:13px}
.inner-heading{display:flex;align-items:center;gap:18px;padding:30px 0 24px;flex-wrap:wrap}.inner-heading .avatar{width:80px;height:80px}.inner-heading .button{margin-left:auto}.inner-heading h1{font-size:clamp(37px,5vw,58px);letter-spacing:-2px}.inner-heading p{margin-top:7px;color:var(--muted)}
.back{margin-top:20px;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;padding:4px 0}.back .ic{width:16px;height:16px}
.empty{padding:35px 20px;border:1px dashed #c5c7b7;border-radius:12px;text-align:center;color:var(--muted)}.empty .ic{height:28px;width:28px;margin-bottom:8px;color:var(--pine)}.empty h3{font-size:25px;color:var(--ink);margin-bottom:8px}.empty .button{margin-top:14px}
dialog{border:1px solid #d7d0c3;background:var(--cream);color:var(--ink);padding:0;border-radius:18px;max-height:90dvh;width:calc(100vw - 36px);max-width:470px;box-shadow:0 24px 90px #0b211b40;overflow-y:auto;overscroll-behavior:contain}
dialog::backdrop{background:rgba(12,28,18,.58)}body:has(dialog[open]){overflow:hidden}
.modal-head{position:sticky;top:0;z-index:1;background:var(--cream);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 17px 10px 23px;min-height:54px}.modal-head>span{font-size:14px;font-weight:600}.icon-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%}.icon-btn:hover{background:#eae5d7}
.modal-body{padding:23px}.modal-title{font-size:35px;letter-spacing:-1.3px;margin-bottom:18px}
.detail-art{aspect-ratio:1.6;width:100%;display:grid;place-items:center;overflow:hidden}.detail-name{font-size:36px;line-height:1.08;letter-spacing:-1.1px;overflow-wrap:anywhere}
.detail-price{color:var(--muted);margin-top:6px}.note{background:#e9ece3;border-radius:8px;padding:13px 14px;margin:16px 0 0;font-style:italic;overflow-wrap:anywhere;white-space:pre-line}.actions{display:grid;gap:10px;margin-top:19px}
.privacy,.claimed-info{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:14px;text-align:center}.privacy .ic,.claimed-info .ic{width:15px;height:15px}.claimed-info{background:#e7eadf;border-radius:8px;padding:12px;color:var(--pine);font-weight:600}
.text-action{text-decoration:underline;text-underline-offset:3px;font-size:14px;padding:7px;min-height:38px}.danger{color:var(--berry)}
.form{display:grid;gap:13px}.field{display:grid;gap:5px;font-size:14px;font-weight:600}.field small{color:var(--muted);font-weight:400;font-size:13px}
input,textarea,select{color:var(--ink);border:1px solid #a7a99b;border-radius:8px;background:#fffcf7;min-height:46px;padding:9px 11px;width:100%;font-size:16px;font-weight:400}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23203428' stroke-width='1.6'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px}
textarea{resize:vertical;min-height:72px}.inputs-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px}
.form-error{color:var(--berry);font-size:14px;margin:0}.form-error:empty{display:none}
.person-list{display:grid;gap:7px;margin-top:16px}.person-row{display:flex;align-items:center;gap:12px;text-align:left;padding:10px 14px;background:var(--card);border:1px solid var(--line);border-radius:10px}.person-name{font-size:22px}.person-row .avatar{width:43px;height:43px}.person-row .ic{margin-left:auto}
#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(12px);z-index:20;border-radius:9px;background:#163823;color:#fff8e4;padding:10px 16px;text-align:center;font-size:14px;opacity:0;pointer-events:none;transition:.16s;max-width:calc(100% - 25px);width:max-content}#toast.show{transform:translateX(-50%);opacity:1}
@media(min-width:681px){.hero::before{right:calc((100% - 100vw)/2)}}
@media(max-width:850px){.topbar{gap:12px}.nav-btn{padding:8px}.nav-btn .ic{display:none}.shell{padding-inline:25px}.gift-grid{gap:11px}.family-card{gap:9px;padding:10px}.family-card .avatar{width:48px;height:48px}}
@media(max-width:680px){.shell{padding-inline:20px}.topbar{height:65px;justify-content:space-between;border-bottom:0}.desktop-nav{display:none}.brand{font-size:25px;gap:5px;letter-spacing:-1px}.brand .logo-tree{width:27px;height:34px}.profile{padding:3px 8px 3px 4px;gap:6px;min-height:36px;font-size:13px}.profile img,.profile .avatar{width:26px;height:26px}.profile .view-as{display:none}.hero{min-height:177px;padding-block:11px 22px}.hero::before{inset:-65px -20px 0 27%;background-position:70% center;opacity:.97}.hero h1{font-size:clamp(39px,10.5vw,57px);letter-spacing:-1.7px;margin:9px 0 11px}.hero .kicker{font-size:11px;letter-spacing:1.1px}.countdown{font-size:13px}.section{padding-block:21px 18px}.section-head{margin-bottom:13px}.section h2{font-size:29px;letter-spacing:-1px}.family-grid{gap:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.family-card{min-width:0;border:0;border-radius:8px;background:transparent;display:flex;flex-direction:column;text-align:center;gap:6px;padding:2px}.family-card .avatar{width:min(21vw,87px);height:auto}.family-card .avatar.letter{height:min(21vw,87px)}.family-name{font-size:21px;line-height:1.2}.family-count{display:none}.family-card>.ic{display:none}.small-link{font-size:13px;padding:2px}.gift-grid{display:grid;grid-template-columns:1fr;gap:9px}.gift-card{display:grid;grid-template-columns:89px 1fr;align-items:stretch;border-radius:10px}.gift-art{width:85px;height:72px;aspect-ratio:auto;align-self:center;border-radius:7px;margin:4px}.gift-body{padding:9px 25px 9px 12px;justify-content:center;gap:5px}.gift-name{font-size:21px}.gift-body>.ic{display:block}.gift-meta{gap:5px;line-height:1.2}.gift-meta .card-price,.gift-meta .middot{display:none}.section-head>.button{min-height:35px;padding:7px 11px;font-size:13px}.foot{padding-bottom:calc(86px + env(safe-area-inset-bottom));align-items:flex-start}main{padding-bottom:22px}.bottom-nav{display:flex;position:fixed;z-index:2;bottom:0;left:0;right:0;min-height:62px;padding:3px 8px calc(4px + env(safe-area-inset-bottom));border-top:1px solid #d7d0c2;background:rgba(250,247,239,.97);backdrop-filter:blur(12px);justify-content:space-around}.bottom-nav button{display:flex;min-width:60px;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:500;color:var(--muted)}.bottom-nav .ic{height:22px;width:22px}.bottom-nav .current{font-weight:700;color:var(--pine)}.bottom-nav .current .ic{stroke-width:2.15}.inner-heading{gap:11px;padding:23px 0 18px}.inner-heading .avatar{width:55px;height:55px}.inner-heading .button{min-height:36px;font-size:13px;padding:7px 10px}.inner-heading h1{font-size:34px}.inner-heading p{font-size:14px}.inner-heading .kicker{font-size:11px}.modal-body{padding:20px}.modal-head{padding:8px 13px 8px 20px}.modal-title,.detail-name{font-size:32px}.button{min-height:45px}dialog{max-height:91dvh}.back{margin-top:13px}#toast{bottom:calc(75px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
:root{--cream:#f9faf7;--card:#fff;--line:#d8e1d9;--ink:#213c30;--muted:#59675c;--pine:#19442e;--berry:#963045}
body{background:#f9faf7}
.mast{background:#f3f7f3;color:var(--ink);border-bottom:1px solid #d3ded4}
.topbar{border-bottom-color:#29443126}
.brand .logo-tree{stroke:#2d5a41}
.nav-btn{color:#3b5144}.nav-btn.current,.nav-btn:hover{background:#e2ebe2;color:#173923}
.profile{border-color:#becfbe;background:#ffffffc8}
.hero{min-height:303px;isolation:isolate}
.hero::before{inset:0 calc((100% - 100vw)/2);background-image:linear-gradient(90deg,#f3f7f3 0%,rgba(248,250,246,.18) 49%,transparent 66%),url('/assets/snow-scene.webp');background-size:cover;background-position:center}
.hero-copy{width:min(630px,71%)}.hero .kicker{color:#855047}
.title-row{display:flex;align-items:center;gap:12px;max-width:100%;width:fit-content}
.hero h1{font-size:clamp(46px,5.5vw,75px);line-height:1.02;letter-spacing:-2.8px;margin:12px 0 10px;overflow-wrap:anywhere;color:#1b3f2d}
.title-edit{background:#ffffffae;border:1px solid #bdccbf;border-radius:50%;display:grid;place-items:center;width:36px;height:36px;color:#475b4c;flex:none}.title-edit .ic{width:16px;height:16px}
.countdown,.countdown .ic{color:#4a6250}.hero-actions{display:flex;align-items:center;gap:12px;margin-top:18px}.hero-actions .text-action{font-weight:550;color:#334c39;text-decoration-color:#94a699}
.avatar.letter{background:#dce7db;color:#29432f;font-size:23px;font-weight:600}.avatar.tone-1{background:#e9d6d8;color:#704454}.avatar.tone-2{background:#e9e3d2;color:#60553e}.avatar.tone-3{background:#dbe6eb;color:#3a5360}
.profile .avatar.letter{font-size:15px}.foot div{display:flex;gap:12px}.family-card:hover,.gift-card:hover{border-color:#829b89}
.form-intro{color:var(--muted);margin-bottom:16px}
.designs figure{margin:0 0 25px}.designs img{width:100%;border:1px solid var(--line);border-radius:10px;display:block}.designs figcaption{display:grid;gap:4px;margin-top:9px}.designs strong{font:600 22px var(--serif)}.designs figcaption span{color:var(--muted);font-size:14px}
input,textarea,select{background:#fff}.modal-head{background:var(--cream)}.bottom-nav{background:#f9faf7f5}
@media(max-width:680px){
 .hero{min-height:220px;padding-top:12px;padding-bottom:19px}.hero-copy{width:84%}
 .hero::before{inset:0 -20px;background-position:68% center;background-image:linear-gradient(90deg,rgba(247,250,247,.92) 0%,rgba(247,250,247,.7) 40%,rgba(247,250,247,.03) 88%),url('/assets/snow-scene.webp')}
 .hero h1{font-size:clamp(38px,9.9vw,55px);letter-spacing:-1.65px}.title-row{gap:7px}.hero-actions{margin-top:13px}.hero-actions .button{min-height:38px;font-size:14px;padding:8px 13px}.title-edit{width:31px;height:31px}
 .family-card .avatar.letter{font-size:30px;width:min(17vw,67px);height:min(17vw,67px)}
 .foot{flex-wrap:wrap}.hero .kicker{font-size:12px}.topbar{border-bottom:1px solid var(--line)}
}
.welcome-copy{max-width:640px;margin:18px 0;line-height:1.6}
.email-invite{margin-top:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.foot div{flex-wrap:wrap}
.tour-symbol{width:64px;height:64px;display:grid;place-items:center;background:#e3eddf;border-radius:18px;color:#19442e;margin-bottom:16px}
.tour-symbol .ic{width:32px;height:32px}
.tour .modal-title{margin-top:10px}.tour>p{line-height:1.6}
.home-screen-help{margin:12px 0 30px;border:1px solid var(--line);border-radius:12px;background:#fff}
.home-screen-help summary{padding:16px;cursor:pointer;font-weight:600;line-height:1.4}
.home-screen-help summary .ic{margin-right:6px}
.home-screen-help>div{padding:0 18px 18px}
.home-screen-help p{margin-top:16px;line-height:1.7}
@media(max-width:680px){.shell>.home-screen-help{margin-bottom:calc(85px + env(safe-area-inset-bottom))}.foot{padding-bottom:15px}.tour .home-screen-help{margin-bottom:10px}}

.member-manage{padding:20px 0;border-bottom:1px solid #e2e9e6}.member-manage .actions{margin-top:12px}

.visibility-option{display:flex;align-items:center;gap:12px;padding:12px 0;cursor:pointer;font-size:16px}.visibility-option input{width:20px;height:20px;flex:0 0 20px;accent-color:#245446}.visibility-choices{border:1px solid #d8e3dc;border-radius:12px;padding:16px}.visibility-choices[hidden]{display:none}.visibility-choices legend{font-weight:600;padding:0 6px}
/* Dialog headings receive programmatic focus for screen-reader announcements. */
#sheet-title:focus,#content:focus{outline:none}
.repeat-target[hidden]{display:none}.purchase-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #d8e3dc}.gift-name small{font-size:14px;font-weight:400}.circle-intro p{line-height:1.6}

.gift-status{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;width:fit-content;margin-top:10px;padding:5px 9px;border-radius:20px;font-size:14px;font-weight:600;line-height:1.35}.gift-status .ic{position:static;width:16px;height:16px;flex:0 0 16px}.gift-status.bought{background:#e3f0e7;color:#20533a}.gift-status.reserved{background:#eef0ed;color:#45594c}


.gift-category.category-voucher{background:#f2e8e9;color:#8e3447}.gift-category.category-wine{background:#f0e7ec;color:#75435b}.gift-category.category-book{background:#e8edf3;color:#3d5876}.gift-category.category-coffee{background:#f1e9e0;color:#796044}.gift-category.category-game{background:#e9e8f2;color:#635382}.gift-category.category-clothing{background:#e7eef0;color:#426a75}.gift-category.category-beauty{background:#f4e9eb;color:#92596c}

.gift-category.category-toy{background:#e9efe1;color:#57713e}.gift-category.category-ticket{background:#efe7f1;color:#775081}

/* Device-local day/night appearance */
.theme-controls{display:flex;gap:3px;align-items:center;flex:none;margin-left:auto}
.theme-controls button{min-height:40px;padding:6px 9px;border:1px solid var(--line);border-radius:20px;display:flex;gap:5px;align-items:center;font-size:14px}
.theme-controls [aria-pressed="true"]{background:var(--ink);color:var(--cream)}
:root[data-theme="dark"]{color-scheme:dark;--cream:#101b1e;--card:#19292c;--ink:#f0eee5;--pine:#c6dbc7;--muted:#b4c3bb;--line:#3c5052;--berry:#e58c9e}
[data-theme="dark"] body{background:var(--cream)}
[data-theme="dark"] .mast{background:#101e20;border-color:var(--line)}
[data-theme="dark"] .hero::before{background-image:linear-gradient(90deg,#101e20 0%,#101e2070 42%,transparent 75%),url('/assets/snow-night.webp')}
[data-theme="dark"] .hero h1,[data-theme="dark"] .hero h1 em{color:#f7f1e6}
[data-theme="dark"] .hero .kicker{color:#e9a3ac}
[data-theme="dark"] .brand .logo-tree{stroke:#c6dbc7}
[data-theme="dark"] .topbar{border-color:var(--line)}
[data-theme="dark"] .nav-btn,[data-theme="dark"] .countdown,[data-theme="dark"] .countdown .ic,[data-theme="dark"] .hero-actions .text-action{color:var(--ink)}
[data-theme="dark"] .nav-btn.current,[data-theme="dark"] .nav-btn:hover,[data-theme="dark"] .note,[data-theme="dark"] .claimed-info,[data-theme="dark"] .icon-btn:hover{background:#2c4141;color:var(--ink)}
[data-theme="dark"] .profile,[data-theme="dark"] .title-edit,[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select,[data-theme="dark"] .home-screen-help{background:var(--card);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .bottom-nav{background:#101b1ef5;border-color:var(--line)}
[data-theme="dark"] .button.light{background:#182a2bbf;color:var(--ink);border-color:#9bad9d}
[data-theme="dark"] .button.berry{background:#913249;color:#fff}
[data-theme="dark"] select{color-scheme:dark}
@media(max-width:680px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;gap:10px;padding-block:12px}.theme-controls{margin-left:auto}.theme-controls button{padding:6px 8px}.theme-controls button span{display:none}.topbar>.profile,.topbar>.small-link{margin-left:auto}.topbar .desktop-nav{display:none}}

/* Stable header: appearance controls always sit above the account menu. */
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) 150px;grid-template-rows:40px 40px;column-gap:20px;row-gap:6px;height:auto;min-height:110px;padding-block:12px}
.topbar>.brand{grid-column:1;grid-row:1 / 3;align-self:center}
.topbar>.desktop-nav{grid-column:2;grid-row:1 / 3;justify-self:end}
.topbar>.theme-controls{grid-column:3;grid-row:1;justify-self:end;margin:0;height:40px}
.theme-controls button{height:40px;min-height:40px;justify-content:center}
.theme-controls button:first-child{width:78px}
.theme-controls button:last-child{width:57px}
.topbar>.profile,.topbar>.small-link{grid-column:3;grid-row:2;justify-self:end;margin:0;max-width:150px;height:40px;min-height:40px}
.topbar>.profile span{overflow:hidden;text-overflow:ellipsis}
@media(max-width:680px){
 .topbar{grid-template-columns:minmax(0,1fr) 110px;column-gap:10px;row-gap:6px}
 .topbar>.brand{font-size:clamp(20px,5.8vw,25px);letter-spacing:-1px;min-width:0}
 .topbar>.theme-controls,.topbar>.profile,.topbar>.small-link{grid-column:2}
 .theme-controls button:first-child{width:42px}
 .topbar>.profile,.topbar>.small-link{max-width:110px}
}
.preferences-section{margin-bottom:24px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.preferences-section .section-head{flex-wrap:wrap;gap:8px;margin-bottom:10px}
.preferences-section h2{font-size:28px}
.preferences-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-top:14px}
.preferences-grid:empty{display:none}
.preference-card{border:1px solid var(--line);border-radius:10px;padding:13px;font-size:16px}
.preference-card p{margin-top:6px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.app-update{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(20px,calc((100vw - 1052px)/2));background:var(--card);color:var(--ink);border-bottom:1px solid var(--line);font-size:14px}
.app-update p{margin-top:3px;color:var(--muted)}
.app-update button{flex:none;background:#963045;color:white;border-radius:8px;min-height:44px;padding:8px 14px;font-weight:600}
@media(max-width:420px){.app-update{gap:10px}.app-update button{padding-inline:10px}}
.pending-members{padding:16px;margin-top:20px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.pending-members p{color:var(--muted);margin-top:6px}.pending-members .small-link{margin-top:6px}
.member-badge{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#963045;color:white;margin-right:6px}
.priority-heart{color:var(--berry);font-size:14px}
.shopping-checklist{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.shopping-checklist p{flex-basis:100%}
.shopping-checklist .button{font-size:14px;padding:8px 10px}
.shopping-checklist [aria-pressed="true"]{outline:2px solid var(--pine);outline-offset:1px}
.gift-privacy-note {
  margin: .5rem 0 1.25rem;
  border-radius: 8px;
  background: #e9ece3;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .gift-privacy-note { background: #2c4141; }
.gift-privacy-note summary {
  display: grid;
  gap: .35rem;
  padding: .75rem 1rem;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}
.gift-privacy-note summary::-webkit-details-marker { display: none; }
.gift-privacy-note summary:focus-visible { outline: 3px solid #bc8247; outline-offset: 3px; }
.gift-privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--pine);
  font-size: .9375rem;
  font-weight: 600;
}
.gift-privacy-toggle .ic { width: 1rem; height: 1rem; }
.gift-privacy-note[open] .gift-privacy-toggle .ic { transform: rotate(180deg); }
.gift-privacy-details { margin: 0 1rem; padding: .75rem 0 1rem; border-top: 1px solid var(--line); }
.gift-privacy-details p + p { margin-top: .75rem; }
.private-add{display:grid;gap:8px;justify-items:start;margin-bottom:22px}
.private-recipient{display:block;margin-top:3px}
form[data-form="private-idea"]{margin-top:18px}
.recent-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-3px 0 18px}
.recent-filters button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:22px;padding:8px 14px;min-height:44px;font-size:14px;background:var(--card);color:var(--ink)}
.recent-filters button[aria-pressed="true"]{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.family-card.has-new-ideas .family-name{color:var(--berry);font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.new-ideas-label{display:block;color:var(--berry);font-family:var(--sans);font-size:13px;font-weight:650;margin-top:5px}
@media(max-width:680px){.family-count{display:block;font-size:13px;margin-top:5px}.family-grid{row-gap:16px}.family-card>span{min-width:0;max-width:100%}.family-name{overflow-wrap:anywhere}}

.gift-category.category-sport{background:#e3eeea;color:#326956}

.owner-dashboard{padding-block:32px 64px;max-width:1100px}.owner-dashboard>.section-head{margin-top:28px}.owner-dashboard h1{font-size:clamp(36px,6vw,60px)}.owner-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:28px 0}.owner-metric{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--paper,#fff)}.owner-metric h2{font-family:inherit;font-size:16px;line-height:1.4}.owner-metric p{font-size:42px;color:var(--pine);margin-top:10px}.owner-dashboard .section p{margin-top:16px;line-height:1.65}

.home-my-list-link{margin-top:24px}

.start-list-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid var(--line)}.start-list-banner strong{font-size:17px}.start-list-banner p{font-size:15px;line-height:1.5;margin-top:6px;max-width:600px;color:var(--muted)}.start-list-banner .button{flex-shrink:0}@media(max-width:680px){.start-list-banner{align-items:flex-start;flex-direction:column;gap:14px}.start-list-banner .button{width:100%}}

.plan-intro{display:flex;gap:18px;align-items:center;justify-content:space-between;margin:20px 0}.plan-intro p{max-width:700px}.plan-intro .button{flex-shrink:0}.plan-item{min-width:0;border:1px solid var(--line);border-radius:18px;overflow:hidden}.plan-item .gift-card{width:100%;border:0;border-radius:0}.plan-quick{display:flex;flex-wrap:wrap;gap:6px;padding:12px;border-top:1px solid var(--line)}.plan-check{display:flex;align-items:center;gap:6px;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}.plan-check[aria-checked="true"]{background:var(--pine);color:#fff}.plan-check:focus-visible{outline:3px solid #bc8247;outline-offset:2px}.plan-count{font-family:var(--sans);font-size:20px;color:var(--muted)}@media(max-width:680px){.plan-intro{align-items:flex-start;flex-direction:column}.plan-section h2{font-size:30px}.plan-quick{gap:5px}.plan-check{flex:1;justify-content:center;padding:7px 5px}}
