:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;font-synthesis:none;color:#263e34;background:#f8f5ef;--pine:#244c40;--accent:#244c40;--gold:#e8c98c;--ink:#263e34;--muted:#69746c;--line:#e7e3da;--soft:#edf1e9;--surface:#fffdf9;--red:#a33c3c;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light}
*{box-sizing:border-box}html,body,#app{margin:0;min-width:0;width:100%}body{background:#f8f5ef;color:var(--ink)}body[data-theme=christmas]{--accent:#843747;--soft:#f5ebe7;--line:#e9dfd8;--gold:#edcf94}
button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,.button{height:48px;min-height:48px;padding:0 18px;border:1px solid transparent;border-radius:13px;background:var(--accent);color:#fff;font-size:.9375rem;font-weight:650;line-height:1.25;display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;text-decoration:none;white-space:nowrap;flex-shrink:0;transition:background .16s,border-color .16s,box-shadow .16s}button:hover,.button:hover{filter:brightness(1.06)}button:disabled{cursor:default;opacity:.5}button.secondary,.button.secondary{background:var(--soft);color:var(--ink)}button.outline{border-color:var(--line);background:transparent;color:var(--ink)}button.danger{background:#fae9e5;color:var(--red)}button.text-button{background:var(--soft);color:var(--ink)}button.small,.button.small{height:48px;min-height:48px;font-size:.9375rem}button.icon-button{width:48px;min-width:48px;padding:0;background:transparent;color:var(--muted)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b18a4b;outline-offset:3px}.icon{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin-top:0}h1,h2,h3{overflow-wrap:anywhere}h1{font-size:clamp(2rem,3.3vw,3rem);line-height:1.1;letter-spacing:-.045em;margin-bottom:10px;font-weight:700}h2{font-size:1.3rem;line-height:1.35;letter-spacing:-.025em;margin-bottom:12px}h3{font-size:1.08rem;line-height:1.4;margin-bottom:8px}p{color:var(--muted);line-height:1.6}small,.muted{font-size:.88rem;line-height:1.5;color:var(--muted)}body[data-theme=christmas] .page-title h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.045em}.eyebrow{display:block;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;font-weight:750;margin-bottom:14px}.brand{display:flex;align-items:center;gap:11px;font-size:1.12rem;font-weight:750;letter-spacing:-.035em;white-space:nowrap}.brand img{width:40px;height:40px;flex:none}.initial{padding:calc(50px + var(--safe-top)) 24px;text-align:center}
label{display:block;font-size:.91rem;font-weight:650;margin-bottom:9px}input,textarea,select{display:block;width:100%;min-width:0;min-height:52px;padding:14px;border:1px solid #dcded4;border-radius:12px;background:#fffefa;color:var(--ink);font-size:16px}input::placeholder,textarea::placeholder{color:#8a8c83}textarea{min-height:100px;resize:vertical}form{display:grid;gap:20px}.form-error:empty,.field-note:empty,.empty p:empty{display:none}.field-note{display:block;margin-top:8px;font-size:.84rem;line-height:1.45;color:var(--muted)}.error{margin:0;padding:13px;border-radius:11px;color:var(--red);background:#fae9e5}.checkbox{display:flex;align-items:center;gap:12px;line-height:1.5}.checkbox input{width:22px;min-height:22px;height:22px;accent-color:var(--accent)}.pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.visually-hidden{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.wrap{overflow-wrap:anywhere}
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100svh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fffdf7;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{font-size:1rem;margin:0 4px 46px}.sidebar nav{display:grid;gap:9px}.nav-button{width:100%;justify-content:flex-start;background:transparent;color:var(--muted);padding:0 17px;font-weight:600}.nav-button.active{background:var(--accent);color:#fff;box-shadow:0 5px 14px #4a34200d}.sidebar-season{margin-top:auto;padding-top:24px;opacity:.8;pointer-events:none;max-height:280px;overflow:hidden}.sidebar-season .season-art{width:100%;height:240px}.workspace{grid-column:2;min-width:0;width:100%;max-width:1510px;margin:0 auto;padding:0 44px 48px}.topbar{display:flex;gap:24px;align-items:center;justify-content:space-between;height:112px;margin-bottom:34px;border-bottom:1px solid var(--line)}.event-selector{flex:1;min-width:0;max-width:440px}.mobile-brand,.mobile-event,.mobile-nav{display:none}.topbar-actions{display:flex;align-items:center;gap:10px;flex:none}.topbar .icon-button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:50%}.notification-button{position:relative}.notification-dot{position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid var(--surface)}.person-button{background:var(--surface);color:var(--ink);border:1px solid var(--line);max-width:235px;padding:0 14px 0 6px;border-radius:30px}.person-button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.avatar{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e9ede0;color:var(--pine);font-size:.82rem;font-weight:750;flex:none}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 26px;flex-wrap:wrap}.page-title>div{min-width:0}.page-title p{margin:0}.two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px;align-items:start}.stack{display:grid;gap:24px;align-content:start}.card{min-width:0;padding:28px;border:1px solid var(--line);background:var(--surface);border-radius:24px;box-shadow:0 5px 18px #44372004}.card p:last-child{margin-bottom:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.card-header h2{margin:0;min-width:0;flex:1}.pill{display:inline-block;background:var(--soft);color:var(--accent);border-radius:30px;padding:6px 11px;font-size:.75rem;font-weight:650;line-height:1.5;white-space:nowrap}.section-gap{margin-top:26px}.button-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:22px}.button-row>*{width:100%;min-width:0}
.round-trigger{height:72px;min-height:72px;width:100%;padding:12px 15px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;gap:13px;text-align:left;justify-content:flex-start;white-space:normal;box-shadow:0 3px 12px #44372003}.round-symbol{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:none;background:var(--soft);color:var(--accent);border-radius:13px}.round-symbol .icon{width:23px;height:23px}.round-copy{min-width:0;flex:1;display:grid;gap:2px}.round-kicker{font-size:.67rem;color:var(--muted);font-weight:600;letter-spacing:.06em;text-transform:uppercase}.round-name{font-size:1rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.02em}.round-chevron{width:29px;height:29px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:50%;background:#f3f0e9;color:var(--muted)}.round-chevron .icon{width:17px;height:17px}.round-list{display:grid;gap:12px}.round-choice{width:100%;height:96px;min-height:96px;padding:15px;text-align:left;justify-content:flex-start;background:#fbf9f3;color:var(--ink);border:1px solid var(--line);border-radius:17px;white-space:normal;gap:13px}.round-choice strong{font-size:1rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.round-choice small{font-size:.78rem;line-height:1.5;margin-top:3px}.round-choice[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.round-check{display:flex;align-items:center;justify-content:center;flex:none;width:24px;color:var(--accent)}.round-choice .christmas-symbol{color:#843747;background:#f4e6e2}.picker-error:not(:empty){margin-top:20px}
.celebration{position:relative;isolation:isolate;overflow:hidden;background:#244c40;color:#fff;border:0;padding:35px;min-height:326px;box-shadow:0 12px 28px #244c4018}.celebration .eyebrow{color:var(--gold)}.celebration h2{position:relative;max-width:calc(100% - 150px);font-size:2rem;line-height:1.18;letter-spacing:-.035em;color:#fff;margin-bottom:28px}.celebration .countdown{position:relative;display:flex;align-items:center;gap:16px;margin:24px 0 30px}.countdown strong{font-size:4.7rem;font-weight:500;line-height:1;letter-spacing:-.07em;color:var(--gold)}.countdown span{font-size:.93rem;line-height:1.5;max-width:155px;color:#f5eee3}.celebration-footer{position:relative;border-top:1px solid #ffffff26;padding-top:18px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:.88rem;color:#f4eee4}.celebration-footer>span{display:flex;align-items:center;gap:8px}.hero-art{position:absolute;width:200px;right:8px;bottom:49px;pointer-events:none;z-index:-1}.season-art{display:block;width:100%;height:auto}body[data-theme=christmas] .celebration{background:radial-gradient(ellipse at 90% 20%,#aa6263 0,transparent 66%),linear-gradient(135deg,#70303d,#88434d);box-shadow:0 12px 28px #70303d1a}body[data-theme=christmas] .celebration h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:2.25rem}body[data-theme=christmas] .countdown strong{font-family:Georgia,"Times New Roman",serif;font-size:5rem}body[data-theme=christmas] .hero-art{width:220px;right:0;bottom:46px}.budget{display:flex;align-items:center;gap:17px}.badge-icon{width:54px;height:54px;border-radius:17px;display:flex;align-items:center;justify-content:center;background:#f6edda;color:#8c6f36;flex:none}.badge-icon .icon{width:25px;height:25px}.budget strong{display:block;font-size:1.75rem;letter-spacing:-.045em;margin-top:2px}.budget .muted{font-size:.83rem}.list-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);min-width:0}.list-row:last-child{border-bottom:0}.list-row .copy{flex:1;min-width:0;overflow-wrap:anywhere}.list-row .copy strong{display:block;font-size:.95rem;margin-bottom:2px}.list-row .copy small{font-size:.8rem}.list-row .right{max-width:100px;color:var(--muted);text-align:right;font-size:.77rem;line-height:1.5}.next-steps .list-row{border:0;padding-bottom:0}
.wish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.wish{position:relative;display:flex;flex-direction:column;padding:27px}.wish-category{align-self:flex-start;margin-bottom:18px;color:var(--muted);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;background:#f4f2eb;padding:6px 10px;border-radius:7px;max-width:calc(100% - 36px);overflow-wrap:anywhere}.wish h3{font-size:1.23rem;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere;padding-right:25px;margin-bottom:12px}.wish p{font-size:.92rem;overflow-wrap:anywhere}.wish .edit{position:absolute;top:16px;right:12px}.wish .price{margin-top:auto;font-size:1.75rem;font-weight:650;letter-spacing:-.055em}.source{font-size:.73rem;color:var(--muted);line-height:1.5;margin-top:5px}.wish .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.wish .actions:empty{display:none}.wish .actions>*{width:100%;padding:0 10px;min-width:0}.wishlist-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.sum{display:flex;align-items:center;gap:15px;background:var(--soft);border-radius:17px;padding:21px 24px;margin:24px 0;color:var(--ink);font-size:.92rem}.sum strong{margin-left:auto;white-space:nowrap;font-size:1.6rem;letter-spacing:-.04em}.price-before{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:.85rem;color:var(--muted);margin-top:7px}.price-direction{font-size:.75rem;font-weight:650}.cheaper{color:#2a633e}.higher{color:#a05037}.purchase-select{margin-top:18px;background:#f7f6ef;font-size:.88rem;min-height:48px;padding:12px}.ordered{border-color:#afc8ab;background:#fafcf6}
.empty{padding:44px 24px;text-align:center;border:1px dashed #c6cbbd;border-radius:22px;background:var(--surface)}.empty-icon{width:70px;height:70px;margin:0 auto 21px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--accent)}.empty-icon .icon{width:29px;height:29px}.empty h2{font-size:1.3rem;margin-bottom:20px}.empty p{max-width:430px;margin:0 auto 22px}.draw-card{position:relative;overflow:hidden;text-align:center;padding:50px 28px;background:var(--pine);color:#fff;display:flex;align-items:center;flex-direction:column;border:0}body[data-theme=christmas] .draw-card{background:radial-gradient(ellipse at top right,#a36665,transparent 70%),#783743}.draw-card h2{font-size:1.8rem;line-height:1.25;color:#fff}.draw-card p{color:#ece8da;max-width:450px}.draw-card .eyebrow{color:var(--gold)}.draw-card button{width:min(100%,260px);background:var(--gold);color:#342e23}.draw-orb{width:122px;height:122px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--gold);background:#ffffff0b;border:1px solid #ffffff25;margin:5px 0 29px;box-shadow:0 0 0 12px #ffffff04,0 0 0 24px #ffffff03}.draw-orb .icon{width:49px;height:49px}.draw-name{font-size:clamp(2rem,5vw,4rem);line-height:1.15;letter-spacing:-.05em;font-weight:600;overflow-wrap:anywhere;max-width:100%;margin-bottom:18px}.draw-orb.spinning{animation:spin 1.2s cubic-bezier(.4,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}
.setup-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px;background:#fbf1dc;border-color:#ecdcb8}.setup-entry h2{margin:0}.admin-layout fieldset{margin:0;padding:0;border:0;min-width:0;display:grid;gap:20px}.admin-layout fieldset:disabled{opacity:.75}.admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-layout .card>button{width:100%}.admin-layout .button-row{grid-template-columns:1fr}.step-num{width:31px;height:31px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;background:var(--soft);color:var(--accent);font-size:.8rem;font-weight:750}.step-num.complete{background:#e6efdf;color:#416143}.rule{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);font-size:.93rem;line-height:1.55}.rule:last-child{border-bottom:0}.rule>span{flex:1;overflow-wrap:anywhere;min-width:0}.notice{display:flex;gap:12px;align-items:flex-start;border:1px solid #e8d5a7;background:#fbf2dd;color:#735d2a;padding:16px 18px;border-radius:15px;margin-bottom:22px;font-size:.9rem;line-height:1.6}.notice.good{background:#ecf3e8;border-color:#d3e1c9;color:#44603d}
dialog{inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);margin:auto;width:min(560px,calc(100% - var(--safe-left) - var(--safe-right) - 28px));max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);padding:0;border:1px solid #ffffff66;border-radius:25px;background:var(--surface);color:var(--ink);box-shadow:0 28px 100px #152d3355;overflow:auto}dialog::backdrop{background:#192d28b8;backdrop-filter:blur(5px)}.modal-content{padding:28px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.modal-head h2{margin:0;font-size:1.45rem;line-height:1.25;letter-spacing:-.03em}.modal-head .icon-button{flex:none;width:40px;min-width:40px;height:40px;min-height:40px;border-radius:50%;background:#f2f0e9}.modal-content button:not(.icon-button){width:100%}.modal-content .button-row{grid-template-columns:repeat(2,minmax(0,1fr))}.code-box{display:block;font-family:ui-monospace,monospace;font-size:1.12rem;background:var(--soft);padding:21px;border-radius:15px;user-select:all;overflow-wrap:anywhere;word-break:break-all;margin:20px 0}.price-notification{padding:23px 0;border-top:1px solid var(--line);display:grid;gap:12px}.price-notification h3{margin:0}.price-notification .pill{justify-self:start}.change-prices{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.change-prices>span{color:var(--muted);text-decoration:line-through}.change-prices strong{font-size:1.25rem}.price-notification button{width:100%}#toast{position:fixed;bottom:28px;left:50%;z-index:100;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:opacity .16s,transform .16s;padding:15px 20px;border-radius:15px;max-width:calc(100% - 30px);width:max-content;background:#263e34;color:#fff;box-shadow:0 8px 28px #263e3425;font-size:.92rem;line-height:1.5}#toast.show{opacity:1;transform:translate(-50%,0)}.offline-banner{padding:15px 17px;border-radius:14px;background:#fae9e5;color:var(--red);margin-bottom:20px}.offline-page{padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}a.inline{color:var(--accent);font-weight:650}
.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100svh;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}.auth-intro{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;background:#244c40;color:#fff;padding:70px clamp(35px,7vw,100px)}.auth-intro .brand{position:absolute;top:40px;left:clamp(35px,7vw,100px)}.auth-intro .eyebrow{color:#e7dcbf}.auth-intro h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3.5rem,6vw,6rem);font-weight:500;line-height:.98;margin:14px 0 36px;letter-spacing:-.055em;position:relative;z-index:1}.auth-intro h1 em{font-style:normal;color:var(--gold)}.auth-art{position:absolute;width:240px;right:-6px;bottom:45px;opacity:.8;pointer-events:none}.auth-panel{width:min(100%,465px);padding:48px 30px;margin:auto}.auth-panel h2{font-size:1.85rem;letter-spacing:-.045em}.auth-tabs{display:flex;gap:5px;padding:5px;background:#ebece2;border-radius:16px;margin:26px 0}.auth-tabs button{flex:1;background:transparent;color:var(--muted);padding:0 10px}.auth-tabs button.active{background:#fffdf9;color:var(--ink);box-shadow:0 3px 10px #263e3408}
@media(max-width:1100px){.sidebar{width:210px;padding-left:16px;padding-right:16px}.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar .brand{font-size:.94rem;gap:8px}.brand img{width:35px;height:35px}.workspace{padding-left:28px;padding-right:28px}.two-col{grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr)}.admin-fields{grid-template-columns:1fr}.hero-art{width:160px;right:-16px}body[data-theme=christmas] .hero-art{width:185px;right:-12px}.celebration h2{max-width:calc(100% - 115px)}}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){
 .shell{position:fixed;inset:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:auto;min-height:0;overflow:hidden;padding-top:var(--safe-top)}.sidebar{display:none}.workspace{grid-column:1;grid-row:1;width:100%;max-width:calc(650px + var(--safe-left) + var(--safe-right));min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 calc(18px + var(--safe-right)) 26px calc(18px + var(--safe-left))}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;height:84px;margin-bottom:6px;border:0}.topbar .event-selector{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;min-width:0;font-weight:750;font-size:1rem;letter-spacing:-.035em}.mobile-brand img{width:32px;height:32px;flex:none}.mobile-brand span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{gap:8px}.topbar .person-button{width:48px;min-width:48px;max-width:48px;padding:0;justify-content:center;height:48px}.topbar .person-button span:last-child{display:none}.mobile-event{display:block;margin-bottom:27px}.round-trigger{height:72px;min-height:72px;padding:12px 14px}.round-name{font-size:.97rem}.round-kicker{font-size:.64rem}.round-symbol{width:40px;height:40px}.page-title{gap:12px;align-items:center;margin-bottom:22px}.page-title>div{flex:1;min-width:0}.page-title h1{font-size:2rem;line-height:1.08;margin:0}.page-title>button{padding:0 14px}.two-col{grid-template-columns:1fr;gap:19px}.stack{gap:19px}.card{padding:24px;border-radius:23px}.card-header{margin-bottom:18px}.card-header h2{font-size:1.17rem}.celebration{padding:28px;min-height:310px;border-radius:26px}.celebration h2{max-width:100%;font-size:1.8rem;margin-bottom:24px}body[data-theme=christmas] .celebration h2{font-size:1.85rem}.hero-art,body[data-theme=christmas] .hero-art{width:145px;right:5px;bottom:82px;opacity:.75}.celebration .countdown{gap:13px;margin:20px 0 25px}.countdown strong{font-size:4rem}body[data-theme=christmas] .countdown strong{font-size:4.4rem}.countdown span{font-size:.85rem;max-width:110px}.celebration-footer{font-size:.8rem;gap:12px;padding-top:17px}.celebration-footer .icon{width:18px;height:18px}.home-layout{display:flex;flex-direction:column;align-items:stretch}.home-layout .card{width:100%}.home-layout>.stack{display:contents}.home-layout .celebration{order:0}.home-layout .budget{order:1}.home-layout .next-steps{order:2}.home-layout .family-preview{order:3}.budget{padding:21px 24px}.budget strong{font-size:1.6rem}.badge-icon{width:48px;height:48px;border-radius:15px}.wish-grid{grid-template-columns:1fr;gap:18px}.wish{padding:25px}.wish .actions>*{font-size:.88rem;padding:0 8px}.sum{padding:19px 21px}.sum strong{font-size:1.4rem}.mobile-nav{position:relative;grid-column:1;grid-row:2;inset:auto;align-self:end;width:100%;display:flex;gap:4px;justify-content:space-around;background:#fffdf9;border-top:1px solid var(--line);padding:10px calc(8px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(8px + var(--safe-left));z-index:20}.mobile-nav button{flex:1;min-width:0;min-height:58px;height:58px;padding:7px 2px;border-radius:16px;flex-direction:column;gap:4px;background:transparent;color:var(--muted);font-size:.72rem;line-height:1.2;white-space:normal}.mobile-nav button.active{background:var(--soft);color:var(--accent)}.mobile-nav .icon{width:22px;height:22px}.setup-entry{display:grid;gap:15px}.setup-entry button{width:100%}.admin-layout{display:flex;flex-direction:column}.admin-layout>.stack{width:100%}.admin-fields{grid-template-columns:1fr}.admin-layout .card-header button{width:100%}.draw-card{padding:42px 24px}.draw-card h2{font-size:1.55rem}.modal-content{padding:24px}.modal-head h2{font-size:1.35rem}.modal-content .button-row{grid-template-columns:1fr}dialog.round-dialog{inset:var(--safe-top) var(--safe-right) 0 var(--safe-left);margin:auto auto 0;width:calc(100% - var(--safe-left) - var(--safe-right));max-height:calc(100dvh - var(--safe-top) - 24px);border-radius:28px 28px 0 0;border-bottom:0;padding-bottom:var(--safe-bottom)}dialog.round-dialog::before{content:'';display:block;width:36px;height:4px;border-radius:4px;background:#dcdad0;margin:13px auto -8px}.round-choice{height:96px;min-height:96px}.round-choice small{font-size:.74rem}.auth{display:block}.auth-intro{padding:32px 25px 30px;min-height:262px;justify-content:flex-start}.auth-intro .brand{position:static;font-size:1rem;margin-bottom:29px}.auth-intro .eyebrow{margin-bottom:9px;font-size:.67rem}.auth-intro h1{font-size:3.3rem;line-height:1.05;margin:0;max-width:280px}.auth-art{width:155px;right:-18px;bottom:4px;opacity:.65}.auth-panel{padding:32px 25px 44px}.auth-panel h2{font-size:1.6rem}.auth-tabs{margin:21px 0 25px}.offline-page .auth-panel{margin-top:32px}#toast{bottom:calc(98px + var(--safe-bottom))}
}
@media(max-width:360px){.workspace{padding-left:calc(14px + var(--safe-left));padding-right:calc(14px + var(--safe-right))}.mobile-brand{font-size:.88rem;gap:7px}.mobile-brand img{width:29px;height:29px}.topbar{gap:8px}.topbar-actions{gap:6px}.card{padding:22px}.celebration h2,body[data-theme=christmas] .celebration h2{font-size:1.6rem;max-width:100%}.hero-art,body[data-theme=christmas] .hero-art{width:130px;right:-25px;opacity:.5}.countdown span{max-width:95px}.celebration-footer{gap:10px}.admin-fields,.pair{grid-template-columns:1fr}.mobile-nav{gap:2px}.mobile-nav button{font-size:.7rem}.round-choice{padding:13px;gap:10px}.round-choice strong{font-size:.93rem}.modal-content{padding:22px}.auth-art{width:127px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
.avatar{overflow:hidden}.avatar img{display:block;width:100%;height:100%;object-fit:cover}.avatar-large{width:54px;height:54px;font-size:1.05rem}.avatar-profile{width:112px;height:112px;font-size:2.2rem;border:5px solid var(--surface);box-shadow:0 0 0 1px var(--line)}.avatar-partner{width:116px;height:116px;font-size:2.1rem;border:4px solid #ffffff45;margin-bottom:27px;background:#fff6e5}.personal-space{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:28px}.personal-card{display:flex;flex-direction:column;gap:23px}.personal-title{display:flex;align-items:center;gap:13px}.personal-title h2{margin:0;font-size:1.27rem;line-height:1.25}.personal-icon{width:42px;height:42px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--soft);color:var(--accent)}.personal-detail{display:flex;align-items:center;gap:15px;min-width:0}.personal-detail>div{display:grid;gap:5px;min-width:0}.personal-detail strong{font-size:1.1rem;overflow-wrap:anywhere}.personal-card>button{width:100%;margin-top:auto}.partner-shortcut{background:#f4f1e8}.nav-button{white-space:normal}.nav-label{text-align:left}.profile-photo-section{display:grid;justify-items:center;gap:15px;text-align:center;margin-bottom:28px}.profile-photo-section>strong{font-size:1.25rem}.photo-actions{display:grid;width:100%;gap:10px}.photo-error{width:100%}.start-summary{display:grid;gap:8px;padding:20px;border-radius:15px;background:var(--soft);margin-bottom:24px}.start-summary span{color:var(--muted);font-size:.85rem;line-height:1.5}.start-people{display:grid;gap:12px;max-height:220px;overflow:auto;padding:3px}.start-people>span{display:flex;align-items:center;gap:11px;font-size:.94rem;overflow-wrap:anywhere}.start-rules p{margin:0 0 9px;font-size:.9rem}.start-rules{margin-bottom:24px}#start-form .checkbox{align-items:flex-start}#start-form .checkbox input{flex:none;margin-top:2px}#start-form p.muted{margin:0;font-size:.85rem}.admin-status>button{width:100%}
@media(max-width:1100px){.nav-button{font-size:.86rem}}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){.personal-space{grid-template-columns:1fr;gap:17px;margin-bottom:23px}.personal-card{padding:23px;gap:20px}.personal-title h2{font-size:1.19rem}.personal-icon{width:38px;height:38px}.personal-detail strong{font-size:1.03rem}.mobile-nav button{height:68px;min-height:68px;gap:5px;font-size:.7rem}.mobile-nav .nav-label{text-align:center;max-width:100%;line-height:1.2}.list-heading{display:grid;grid-template-columns:1fr;gap:17px}.list-heading>button{width:100%}.page-title>div{width:100%}.page-title>span.pill{margin-top:0}.home-layout .celebration{min-height:310px}.avatar-partner{width:104px;height:104px}#toast{bottom:calc(110px + var(--safe-bottom))}}
@media(max-width:360px){.mobile-nav button{font-size:.64rem}.mobile-nav .nav-label{letter-spacing:-.025em}.personal-card{padding:21px}.personal-title{gap:10px}.personal-title h2{font-size:1.05rem}}

@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){.page-title>div{flex:1 1 100%}.personal-card{gap:17px}}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){.admin-layout>.stack{display:contents}.admin-layout .card{width:100%}.admin-layout .admin-status{order:-1}}
.round-trigger{height:56px;min-height:56px;border-radius:14px;padding:8px 13px;gap:11px}.round-symbol{width:34px;height:34px;border-radius:10px}.round-symbol .icon{width:21px;height:21px}.round-choice{height:72px;min-height:72px;padding:10px 13px;border-radius:14px}.round-list{gap:9px}.round-choice strong{font-size:.94rem}.round-choice small{font-size:.73rem}.celebration{min-height:250px;padding:28px}.celebration h2{font-size:1.8rem;margin-bottom:16px}body[data-theme=christmas] .celebration h2{font-size:1.8rem}.celebration .countdown{margin:16px 0 20px}.countdown strong,body[data-theme=christmas] .countdown strong{font-size:3.5rem}.hero-art,body[data-theme=christmas] .hero-art{width:165px;bottom:44px}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){.topbar{height:74px}.mobile-event{margin-bottom:22px}.round-trigger{height:56px;min-height:56px;padding:8px 12px}.round-symbol{width:32px;height:32px}.round-kicker{font-size:.6rem}.round-name{font-size:.94rem}.round-choice{height:72px;min-height:72px;padding:10px 12px}.mobile-nav{padding:6px calc(8px + var(--safe-right)) max(6px,var(--safe-bottom)) calc(8px + var(--safe-left));gap:4px}.mobile-nav button{height:54px;min-height:54px;padding:3px 2px;gap:2px;border-radius:12px;font-size:.68rem}.mobile-nav .icon{width:19px;height:19px}.mobile-nav .nav-label{line-height:1.15}.home-layout .celebration,.celebration{min-height:218px;padding:23px;border-radius:22px}.celebration h2,body[data-theme=christmas] .celebration h2{font-size:1.45rem;max-width:100%;margin-bottom:12px}.celebration .eyebrow{font-size:.62rem;margin-bottom:11px}.celebration .countdown{margin:13px 0 16px}.countdown strong,body[data-theme=christmas] .countdown strong{font-size:3rem}.countdown span{font-size:.81rem}.celebration-footer{padding-top:13px;font-size:.76rem;gap:12px}.hero-art,body[data-theme=christmas] .hero-art{width:105px;right:10px;bottom:49px;opacity:.7}#toast{bottom:calc(75px + var(--safe-bottom))}}
@media(max-width:360px){.mobile-nav button{font-size:.62rem}.round-name{font-size:.88rem}.celebration h2,body[data-theme=christmas] .celebration h2{font-size:1.3rem}}
/* The mobile frame is bounded by fixed viewport edges, not vh/lvh/dvh.
   Safe areas are applied once inside the frame; only workspace content scrolls. */
.money-field{position:relative}.money-field input{padding-right:44px}.money-field>span{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:650;pointer-events:none}
.wishlist-mobile{display:none}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){
 .wishlist-desktop{display:none}.wishlist-mobile{display:block}.wishlist-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 24px}.wishlist-heading h1{font-size:2.2rem;line-height:1.04;margin:0;letter-spacing:-.045em}body[data-theme=christmas] .wishlist-heading h1{font-family:Georgia,"Times New Roman",serif;font-weight:500}.wishlist-state{display:flex;align-items:center;gap:5px;background:#eeede7;border:1px solid var(--line);padding:7px 10px;border-radius:24px;font-size:.72rem;font-weight:650;white-space:nowrap;color:var(--muted);flex:none}.wishlist-state .icon{width:15px;height:15px}.wishlist-state.ready{background:var(--soft);color:var(--accent)}
 .wishlist-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);padding:19px 20px 0;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}.wishlist-overview-count,.wishlist-overview-total{display:grid;align-content:start;gap:9px;padding-bottom:17px}.wishlist-overview-count{padding-right:15px}.wishlist-overview-total{padding-left:18px;border-left:1px solid var(--line)}.wishlist-overview-count>span,.wishlist-overview-total>span{font-size:.74rem;color:var(--muted);font-weight:550}.wishlist-overview-count>strong{display:flex;align-items:baseline;gap:8px;font-size:1.7rem;line-height:1.1;font-weight:600;letter-spacing:-.04em}.wishlist-overview-count small{font-size:.75rem;font-weight:500;letter-spacing:0;color:var(--muted)}.wishlist-overview-total>strong{font-size:1.7rem;line-height:1.1;font-weight:600;letter-spacing:-.04em;color:var(--accent);overflow-wrap:anywhere}.wishlist-overview-footer{grid-column:1/-1;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--line);font-size:.74rem;color:var(--muted)}.wishlist-overview-footer strong{font-weight:650;margin-left:6px;color:var(--ink)}
 .wishlist-add-bar{position:sticky;top:0;z-index:5;padding:14px 0;background:#f8f5ef}.wishlist-add-bar>button{width:100%;box-shadow:0 5px 12px #84374712}.wishlist-items{display:grid;gap:15px;margin:2px 0 22px}.wishlist-item{min-width:0;padding:19px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 3px 12px #44372003}.wishlist-item-head{display:flex;align-items:flex-start;gap:12px}.wishlist-number{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:11px;background:var(--soft);color:var(--accent);font-size:.75rem;font-weight:650;font-variant-numeric:tabular-nums}.wishlist-item-copy{min-width:0;flex:1}.wishlist-shop{display:block;color:var(--muted);font-size:.68rem;line-height:1.25;letter-spacing:.055em;text-transform:uppercase;overflow-wrap:anywhere;margin:0 0 5px}.wishlist-item h2{font-size:1.1rem;line-height:1.34;letter-spacing:-.025em;margin:0;font-weight:650;overflow-wrap:anywhere}.wishlist-item-price{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0 0}.wishlist-item-price>strong{font-size:1.45rem;line-height:1.2;font-weight:600;letter-spacing:-.045em;color:var(--ink);overflow-wrap:anywhere}.wishlist-change{display:flex;align-items:center;gap:7px;padding:5px 8px;background:var(--soft);border-radius:8px;font-size:.77rem;white-space:nowrap}.wishlist-change .icon{width:15px;height:15px}.wishlist-notes{padding:11px 13px;margin:13px 0 0;border-radius:11px;background:#f6f3ec;color:var(--muted);font-size:.87rem;line-height:1.5;overflow-wrap:anywhere}.wishlist-checked{display:flex;align-items:center;gap:6px;font-size:.69rem;color:var(--muted);line-height:1.4;margin:8px 0 0;overflow-wrap:anywhere}.wishlist-checked>span{width:5px;height:5px;border-radius:50%;background:#80977d;flex:none}.wishlist-item-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.wishlist-item-actions.single{grid-template-columns:1fr}.wishlist-item-actions>*{width:100%;min-width:0;padding:0 9px;height:48px;min-height:48px;font-size:.81rem;border-radius:12px;gap:7px}.wishlist-item-actions .icon{width:17px;height:17px}
 .wishlist-finish{padding:20px;border-radius:20px;background:var(--soft);border:1px solid var(--line);margin:0 0 6px}.wishlist-finish-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.wishlist-finish-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:50%;background:var(--surface);color:var(--accent)}.wishlist-finish-icon .icon{width:18px;height:18px}.wishlist-finish-heading>div{min-width:0;display:grid;gap:4px}.wishlist-finish-heading strong{font-size:.93rem;line-height:1.3}.wishlist-finish-heading span:not(.wishlist-finish-icon){font-size:.77rem;line-height:1.4;color:var(--muted)}.wishlist-finish>button{width:100%;background:var(--surface);border-color:var(--line);font-size:.9rem}.wishlist-empty{text-align:center;padding:40px 16px 34px}.wishlist-empty>span{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 20px;background:var(--soft);border:1px solid var(--line);border-radius:25px;color:var(--accent);transform:rotate(-7deg)}.wishlist-empty .icon{width:34px;height:34px;transform:rotate(7deg)}.wishlist-empty h2{font-size:1.25rem;margin-bottom:8px}.wishlist-empty p{font-size:.9rem;margin:0}
}
@media(max-width:360px){.wishlist-heading h1{font-size:1.95rem}.wishlist-state{padding:7px 8px;font-size:.68rem}.wishlist-overview{padding:17px 17px 0;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.wishlist-overview-count>strong,.wishlist-overview-total>strong{font-size:1.4rem}.wishlist-overview-count>strong{gap:5px}.wishlist-overview-total{padding-left:12px}.wishlist-item{padding:17px}.wishlist-item-actions>*{font-size:.76rem;gap:5px;padding:0 6px}.wishlist-item-actions .icon{width:16px;height:16px}}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){.wishlist-heading{gap:12px;margin-bottom:20px}.wishlist-heading h1{font-size:1.8rem;line-height:1.15;min-width:0}.wishlist-overview-total>strong{font-variant-numeric:tabular-nums}}
@media(max-width:360px){.wishlist-heading h1{font-size:1.6rem}.wishlist-heading{gap:8px}}
.secret-option{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft);align-items:flex-start;margin:6px 0 0}.secret-option input{flex:none;margin-top:3px}.secret-option>span{display:grid;gap:5px;min-width:0}.secret-option strong{font-size:.94rem}.secret-option small{font-size:.8rem;font-weight:400;line-height:1.5;color:var(--muted)}.secret-release-card{background:var(--soft)}.secret-release-card>button{width:100%}.secret-release-card p{font-size:.9rem}.secret-partner{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 24px;background:radial-gradient(ellipse at 90% 10%,#9a5b66,transparent 80%),#6c303f;color:#fff;border:0;margin-bottom:24px}.secret-partner-icon{display:grid;place-items:center;width:86px;height:86px;border-radius:28px;background:#ffffff12;color:#edcf94;border:1px solid #ffffff20;margin-bottom:22px}.secret-partner-icon .icon{width:42px;height:42px}.secret-partner .eyebrow{color:#edcf94;font-size:.65rem}.secret-partner h2{font-family:Georgia,"Times New Roman",serif;font-size:2.35rem;line-height:1.1;font-weight:500;margin-bottom:20px}.secret-partner p{color:#f4e9e2;font-size:.9rem;max-width:300px}.secret-partner .pill{background:#ffffff16;color:#f4e9e2}.secret-partner button{background:#edcf94;color:#5d2b37;width:min(100%,300px)}
.surprise-dialog{width:min(100% - 32px,490px);overflow-x:hidden;border-radius:28px}.surprise-dialog .modal-content{padding:28px}.surprise-dialog .modal-head{margin-bottom:22px;align-items:center}.surprise-dialog .modal-head h2{font-size:1.2rem;max-width:280px}.gift-surprise{text-align:center}.gift-surprise>.eyebrow{font-size:.64rem;color:var(--accent);margin-bottom:20px;line-height:1.6}.scratch-gift{position:relative;width:100%;height:270px;border-radius:23px;isolation:isolate;box-shadow:0 12px 30px #68304018;background:radial-gradient(ellipse at top,#fff9e8,#efe1ba);margin-bottom:25px}.gift-underlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:20px;color:#6b3340;overflow:hidden;border-radius:23px}.gift-underlay>.icon{width:48px;height:48px;color:#a77c3e}.gift-underlay>span{font-size:.77rem}.gift-reveal-name{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.8rem,6vw,2.8rem);font-weight:500;line-height:1.2;overflow-wrap:anywhere;max-width:100%}#scratch-canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:23px;touch-action:none;cursor:crosshair;z-index:2;transition:opacity .8s,transform .8s}.scratch-gift.unwrapped #scratch-canvas{opacity:0;transform:scale(1.05);pointer-events:none}.unwrapped .gift-reveal-name{animation:gift-name-in .7s .2s both}.gift-surprise>p{font-size:.9rem;color:var(--muted);line-height:1.5}.gift-surprise>button{width:100%;margin-top:5px}.gift-surprise [hidden]{display:none!important}.gift-confetti{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:visible}.gift-confetti i{position:absolute;left:50%;top:50%;width:7px;height:12px;background:#edcf94;border-radius:2px;opacity:0;--angle:0deg;--distance:140px}.unwrapped .gift-confetti i{animation:gift-confetti 1.4s .2s both}.gift-confetti i:nth-child(3n){background:#b96679;border-radius:50%;width:8px;height:8px}.gift-confetti i:nth-child(4n){background:#739a7c}.confetti-0{--angle:0deg!important}.confetti-1{--angle:23deg!important}.confetti-2{--angle:45deg!important}.confetti-3{--angle:67deg!important}.confetti-4{--angle:90deg!important}.confetti-5{--angle:112deg!important}.confetti-6{--angle:135deg!important}.confetti-7{--angle:157deg!important}.confetti-8{--angle:180deg!important}.confetti-9{--angle:202deg!important}.confetti-10{--angle:225deg!important}.confetti-11{--angle:247deg!important}.confetti-12{--angle:270deg!important}.confetti-13{--angle:292deg!important}.confetti-14{--angle:315deg!important}.confetti-15{--angle:337deg!important}
@keyframes gift-confetti{0%{opacity:1;transform:rotate(var(--angle)) translateX(0) rotate(0)}80%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) rotate(200deg)}}@keyframes gift-name-in{from{opacity:0;transform:translateY(18px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:900px), (max-width:1100px) and (max-height:500px), (max-width:1100px) and (hover:none) and (pointer:coarse){.secret-release-card{order:-1}.secret-partner{padding:32px 22px;border-radius:24px}.secret-partner h2{font-size:2rem}.surprise-dialog .modal-content{padding:22px}.scratch-gift{height:255px}.surprise-dialog .modal-head h2{font-size:1.1rem}.gift-surprise>p{font-size:.83rem}.secret-option{padding:15px}}
@media(prefers-reduced-motion:reduce){#scratch-canvas{transition:none}.unwrapped .gift-reveal-name,.unwrapped .gift-confetti i{animation:none}.unwrapped .gift-reveal-name{opacity:1}}
.secret-partner{padding:23px;gap:17px;align-items:stretch;text-align:left}.secret-partner-heading{display:flex;align-items:center;gap:16px}.secret-partner-heading>div{min-width:0}.secret-partner-icon{width:55px;height:55px;border-radius:18px;margin:0;flex:none}.secret-partner-icon .icon{width:29px;height:29px}.secret-partner .eyebrow{margin-bottom:7px;font-size:.58rem}.secret-partner h2{font-family:inherit;font-size:1.16rem;line-height:1.3;font-weight:650;margin:0 0 5px}.secret-partner p{font-size:.8rem;line-height:1.4;margin:0}.secret-partner button{width:100%;max-width:none}
