@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{--ink:#1c2834;--muted:#6c7884;--surface:#fff;--bg:#f8f7f4;--line:#e5e8e8;--orange:#f06d4d;--pink:#ffede4;--green:#1b7a69;--dark:#143e39;--shadow:0 14px 42px rgba(27,45,50,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Outfit,'DM Sans',sans-serif;letter-spacing:-.035em}h1{font-size:clamp(30px,5vw,49px);line-height:1.06}h2{font-size:28px}h3{font-size:19px}small{font-size:12px}.muted{color:var(--muted)}.strong{font-weight:800}.app-shell{max-width:1150px;margin:auto;padding:0 22px 84px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 0}.brand{display:flex;align-items:center;gap:11px;font-family:Outfit,sans-serif;font-weight:800;font-size:19px;letter-spacing:-.04em}.brand-icon{background:var(--pink);width:42px;height:42px;border-radius:15px;display:grid;place-items:center;font-size:23px}.top-actions{display:flex;align-items:center;gap:10px}.pill{border:1px solid #dbe7df;background:#edf8f0;border-radius:99px;padding:9px 13px;color:var(--dark);font-size:12px;font-weight:800}.btn{border:0;display:inline-flex;gap:9px;align-items:center;justify-content:center;border-radius:13px;padding:12px 17px;font-weight:800;transition:transform .18s,background .18s;text-decoration:none}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--dark);color:white}.btn-primary:hover{background:#22584e}.btn-light{background:#fff;color:var(--dark);border:1px solid var(--line)}.btn-accent{background:var(--orange);color:white}.btn-small{font-size:13px;padding:9px 12px}.btn-wide{width:100%}.hero{position:relative;overflow:hidden;background:linear-gradient(110deg,#154b42 4%,#226b57 90%);border-radius:27px;color:white;min-height:264px;padding:38px 44px;display:flex;align-items:center;box-shadow:var(--shadow)}.hero-text{max-width:620px;z-index:1}.hero-kicker{font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#bbebda;margin-bottom:10px}.hero p{color:#dcf0e9;margin-top:12px;max-width:480px}.hero-badges{display:flex;gap:9px;flex-wrap:wrap;margin-top:23px}.hero-badges span{background:#ffffff21;border:1px solid #ffffff25;border-radius:99px;font-weight:700;padding:8px 13px;font-size:12px}.gift-art{position:absolute;right:7%;top:17%;font-size:133px;transform:rotate(11deg);filter:drop-shadow(14px 19px 9px #0a362b55)}.hero-dot{position:absolute;border:1px solid #ffffff24;border-radius:50%;width:270px;height:270px;right:0;top:-60px}.hero-dot:after{content:'';position:absolute;border:1px solid #ffffff24;border-radius:50%;inset:40px}.demo-warning{background:#fff8e9;border:1px solid #f6dfaa;color:#765117;padding:12px 16px;border-radius:13px;margin:17px 0 0;font-size:13px;display:flex;gap:10px;align-items:center}.nav{display:flex;gap:7px;border-bottom:1px solid var(--line);margin:30px 0 27px;overflow:auto}.nav button{border:0;background:transparent;padding:14px 20px;font-weight:800;white-space:nowrap;color:var(--muted);border-bottom:3px solid transparent}.nav button.active{border-color:var(--orange);color:var(--ink)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.section-heading p{color:var(--muted);font-size:14px;margin-top:6px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.chip{border:1px solid var(--line);background:#fff;color:var(--muted);padding:9px 13px;border-radius:99px;font-size:13px;font-weight:800}.chip.active{background:var(--dark);border-color:var(--dark);color:white}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card,.white-card,.person-card{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 4px 18px rgba(40,60,60,.025)}.product-visual{height:171px;background:#f3f1ea;position:relative;display:grid;place-items:center;font-size:66px;overflow:hidden}.product-visual img{width:100%;height:100%;object-fit:cover}.product-cat{position:absolute;top:11px;left:11px;z-index:1;background:#ffffffdf;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:800;color:var(--dark)}.product-body{padding:14px}.product-body h3{font-size:16px;min-height:43px;line-height:1.2}.price{font-family:Outfit,sans-serif;font-size:21px;font-weight:800;color:var(--dark);margin:8px 0 13px}.rating-header{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:6px;color:var(--muted);font-weight:700}.score-value{color:var(--orange);font-weight:800}input[type=range]{accent-color:var(--orange);width:100%;margin:10px 0}.rating-controls{display:flex;align-items:center;gap:10px}.rating-controls input{min-width:0;flex:1}.rating-controls .btn{white-space:nowrap}.count-note{font-size:12px;color:var(--muted)}.empty{border:1px dashed #cbd3d0;background:white;text-align:center;padding:47px 25px;border-radius:20px}.empty .emoji{font-size:44px;margin-bottom:10px}.top-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.favorite{padding:16px;position:relative}.favorite .rank{position:absolute;top:22px;left:23px;background:#fff;color:var(--dark);border-radius:100px;font-size:12px;font-weight:800;padding:6px 10px;box-shadow:0 5px 13px #0001}.favorite .product-visual{border-radius:13px;height:180px}.favorite h3{margin-top:15px}.rank-heading{margin-bottom:16px}.favorite .score{color:var(--orange);font-size:13px;font-weight:800;margin-top:7px}.inline-link{font-weight:800;color:var(--green);text-decoration:underline;text-underline-offset:3px}.people-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.person-card{padding:19px}.person-top{display:flex;gap:12px;align-items:center}.avatar{width:51px;height:51px;border-radius:17px;background:#e8f3ed;color:var(--dark);display:grid;place-items:center;font:800 21px Outfit,sans-serif;flex-shrink:0}.person-top h3{font-size:18px}.person-tags{font-size:12px;color:var(--muted);margin-top:4px}.person-gifts{margin-top:16px;display:grid;gap:8px}.person-gift{display:flex;align-items:center;gap:10px;padding:10px;background:#f8f9f7;border-radius:12px;font-size:13px}.person-gift .gift-num{font-size:13px;color:var(--orange);font-weight:800;width:19px}.person-gift strong{flex:1}.person-gift .amt{font-size:12px;color:var(--green);font-weight:800}.onboarding{min-height:100vh;background:radial-gradient(circle at 70% 10%,#d7ecdf,transparent 40%),#f8f7f4;display:grid;place-items:center;padding:24px}.intro-card{max-width:510px;width:100%;background:#fff;border:1px solid var(--line);padding:35px;border-radius:26px;box-shadow:var(--shadow)}.intro-icon{font-size:54px;margin-bottom:18px}.intro-card h1{font-size:37px}.intro-card > p{margin:12px 0 25px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px;margin-bottom:16px}.field label{font-size:13px;font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid #d8e1df;background:#fbfcfa;border-radius:12px;padding:12px 13px;outline:none;color:var(--ink)}.field :is(input,select,textarea):focus{border-color:#1b7a69;box-shadow:0 0 0 3px #1b7a691a}.field textarea{min-height:83px;resize:vertical}.intro-note{font-size:12px;text-align:center;margin-top:14px;color:var(--muted)}.modal-scrim{position:fixed;inset:0;background:#142c28aa;z-index:20;display:grid;place-items:center;padding:18px}.modal{background:white;width:min(530px,100%);max-height:92vh;overflow:auto;border-radius:24px;padding:27px;box-shadow:0 25px 90px #0004}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:17px}.icon-button{border:0;background:#f1f3f0;border-radius:11px;width:36px;height:36px;font-size:20px}.footer{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-top:38px;padding-top:25px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}#toast{position:fixed;z-index:50;bottom:24px;left:50%;transform:translate(-50%,160px);max-width:min(90vw,420px);background:#172e2a;color:white;padding:12px 18px;border-radius:12px;font-weight:700;box-shadow:0 8px 24px #0002;opacity:0;transition:.22s}#toast.shown{transform:translate(-50%,0);opacity:1}.boot{min-height:95vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:12px}.boot-mark{font-size:60px}.error-box{background:#fff3eb;border:1px solid #f0d0bf;padding:15px;margin:18px 0;border-radius:13px;color:#86452a}.loading{opacity:.65;pointer-events:none}.more-row{text-align:center;margin-top:20px}.manual-tag{color:var(--orange);font-size:12px;font-weight:800}.participant-count{color:var(--green);font-weight:800}.separator{height:1px;background:var(--line);margin:20px 0}
@media(max-width:940px){.product-grid{grid-template-columns:repeat(3,1fr)}.gift-art{font-size:100px;right:3%}.hero-text{max-width:75%}}
@media(max-width:680px){.app-shell{padding:0 15px 64px}.topbar{padding:16px 0}.brand{font-size:16px}.brand-icon{width:38px;height:38px}.top-actions .pill{display:none}.hero{padding:28px 23px;min-height:250px;border-radius:19px}.hero-text{max-width:88%}.hero h1{font-size:34px}.hero p{font-size:13px}.gift-art{right:-17px;top:45%;font-size:87px;opacity:.38}.hero-badges{margin-top:19px}.nav{margin:20px 0 22px}.nav button{padding:12px 15px;font-size:13px}.section-heading{align-items:start;flex-direction:column}.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-visual{height:139px}.product-body{padding:11px}.product-body h3{font-size:14px;min-height:35px}.price{font-size:18px}.rating-controls{display:block}.rating-controls .btn{width:100%}.top-grid,.people-list{grid-template-columns:1fr}.favorite .product-visual{height:185px}.intro-card{padding:24px}.intro-card h1{font-size:30px}.footer{flex-direction:column;align-items:start}}
@media(max-width:370px){.product-grid{grid-template-columns:1fr}.product-visual{height:190px}}
.product-visual img{position:absolute;inset:0}.product-visual>span:not(.product-cat){z-index:0}


:root{--muted:#53616d;--orange:#a63e28}
:focus-visible{outline:3px solid #1b7a69;outline-offset:3px}
.btn,.nav button,.chip,.icon-button{min-height:44px}
.btn-accent{background:#b3462d}
.top-actions,.row-actions{flex-wrap:wrap}
.product-grid,.people-list,.top-grid,.form-grid{grid-auto-columns:minmax(0,1fr)}
.product-card,.person-card,.favorite,.intro-card,.field,.person-top>div{min-width:0;overflow-wrap:anywhere}
.product-cat{max-width:calc(100% - 22px)}
.favorite .product-cat{top:auto;bottom:11px}
.product-body h3{min-height:2.4em}
input[type=range]{height:34px;display:block;cursor:pointer}
.modal{border:0;color:var(--ink);max-height:min(92vh,92dvh)}
.modal::backdrop{background:#142c28aa}
body:has(.modal[open]){overflow:hidden}
.modal .icon-button{flex:0 0 44px}
.intro-kicker{color:var(--green)}
.form-error{margin:0 0 12px;color:#92341f;font-weight:700}
.gift-note{margin-bottom:14px;color:var(--muted)}
.empty p{margin:8px 0 16px;color:var(--muted)}
.manual-section{margin-top:25px}
.manual-row{justify-content:space-between;flex-wrap:wrap}
.manual-row .amt{display:block}
.row-actions{display:flex;gap:8px}
.person-gift{flex-wrap:wrap}
.person-gift .inline-link{margin-left:auto;min-height:44px;display:inline-flex;align-items:center}
#toast{bottom:max(16px,env(safe-area-inset-bottom));pointer-events:none}
@media(max-width:680px){
  .app-shell{padding:0 14px max(44px,env(safe-area-inset-bottom))}
  .topbar{gap:8px}
  .brand{gap:7px}
  .brand-icon{flex:0 0 38px}
  .hero{min-height:0;padding:20px}
  .hero h1{font-size:clamp(23px,6vw,34px)}
  .hero-badges{margin-top:12px}
  .gift-art{right:5px;top:10%;font-size:65px}
  .nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
  .nav button{padding:8px 4px;white-space:normal}
  .chips{flex-wrap:nowrap;overflow-x:auto;padding:4px 3px;margin-bottom:15px}
  .chip{flex-shrink:0}
  .field :is(input,select,textarea){font-size:16px}
  .section-heading{margin-bottom:12px}
  .onboarding{padding:14px;min-height:100dvh}
  .modal{padding:19px}
  .product-visual{height:120px}
}
@media(max-width:390px){
  .form-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .intro-card{padding:18px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important}
}
.sync-status{color:#92341f;font-size:14px;margin:0 0 12px}
