:root{
  --navy:#0d1b2e; --navy2:#1e3050; --steel:#5d6f88; --silver:#8a9ab0; --silver-light:#c8d4e0;
  --pale:#e8eef5; --bg:#f4f6f9; --card:#ffffff; --line:#dfe5ed;
  --ink:#0d1b2e; --muted:#4a6080; --faint:#7a90a8; --gold:#c9a24a;
  --radius:18px; --shadow:0 6px 24px rgba(13,27,46,.08);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:#e3e8ef;color:var(--ink);font-family:Jost,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px;line-height:1.45}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--navy2)}
.app{max-width:480px;min-height:100vh;margin:0 auto;background:var(--bg);position:relative;padding-bottom:120px;box-shadow:0 0 40px rgba(0,0,0,.06)}
.preview-bar{background:var(--navy);color:#fff;text-align:center;font-size:14px;padding:8px 14px;line-height:1.35}
.preview-bar b{color:var(--silver-light)}
.demo-bar{background:#fff4d6;color:#5b4500;text-align:center;font-size:13px;padding:7px 12px}
header.top{position:sticky;top:0;z-index:5;background:rgba(244,246,249,.95);backdrop-filter:blur(8px);padding:14px 20px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{font-family:"Cormorant Garamond",Georgia,serif;font-size:34px;font-weight:600;letter-spacing:.5px;line-height:1;color:var(--navy);text-decoration:none;display:flex;align-items:center}
.brand span{color:var(--silver)}
.brand svg{width:22px;height:28px;margin-left:6px}
.tagline{font-size:13px;color:var(--muted);margin-top:4px}
.acct-btn{min-width:48px;height:48px;border-radius:999px;border:1px solid var(--line);background:var(--card);display:flex;align-items:center;justify-content:center;gap:6px;font-size:15px;font-weight:600;padding:0 14px}
.acct-btn .crown{color:var(--gold)}
main{padding:18px 20px}
h2.view-title{font-family:"Cormorant Garamond",Georgia,serif;font-size:32px;font-weight:600;margin:4px 0 6px;line-height:1.1}
.sub{color:var(--muted);margin:0 0 18px;font-size:17px}
.banner{background:var(--navy);color:#fff;border-radius:var(--radius);padding:18px 20px;display:flex;gap:14px;align-items:center;margin-bottom:22px;border:0;width:100%;text-align:left}
.banner .num{font-family:"Cormorant Garamond",serif;font-size:44px;font-weight:600;color:var(--silver-light);line-height:1}
.banner .txt{flex:1;font-size:17px}
.banner .go{background:#fff;color:var(--navy);border-radius:999px;padding:10px 16px;font-weight:600;font-size:16px;white-space:nowrap}
.memory{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px;overflow:hidden;border:1px solid var(--line)}
.memory-head{padding:14px 16px 10px;display:flex;gap:10px;align-items:flex-start}
.memory-head>div{flex:1;min-width:0}
.memory-title{font-family:"Cormorant Garamond",serif;font-size:26px;font-weight:600;line-height:1.15}
.meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:15px;margin-top:4px}
.mini-btn{border:1px solid var(--line);background:var(--pale);color:var(--navy2);border-radius:999px;padding:8px 12px;font-size:14px;font-weight:600;white-space:nowrap;min-height:40px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
.grid img,.thumb{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:#dde3ea}
.grid button{padding:0;border:0;background:none;display:block}
.people-row{display:flex;flex-wrap:wrap;gap:6px;padding:10px 16px 14px}
.pill{background:var(--pale);color:var(--navy2);border-radius:999px;padding:4px 12px;font-size:15px;font-weight:500}
.pill.grey{background:#eef0f3;color:var(--muted)}
.batch{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin-bottom:18px;border:1px solid var(--line)}
.batch-q{font-size:19px;font-weight:500;margin:0 0 12px}
.batch-q b{color:var(--navy2)}
.strip{display:flex;gap:4px;overflow:hidden;border-radius:12px;margin-bottom:14px}
.strip img{width:22%;aspect-ratio:1;object-fit:cover;flex:none}
.strip .more{flex:1;display:grid;place-items:center;background:#eef0f3;color:var(--muted);font-weight:600;font-size:17px}
.threshold{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 18px;font-size:15px;color:var(--muted)}
.seg{display:flex;background:#e4e9f0;border-radius:999px;padding:3px}
.seg button{border:0;background:none;padding:8px 12px;border-radius:999px;font-size:15px;color:var(--muted);min-height:40px}
.seg button.on{background:var(--card);color:var(--ink);font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.1)}
.seg.wide{margin-bottom:18px}
.seg.wide button{flex:1;font-size:16px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:58px;border-radius:16px;border:0;font-weight:600;font-size:19px;padding:12px 18px;text-decoration:none}
.btn.primary{background:var(--navy);color:#fff}
.btn.primary:active{background:var(--navy2)}
.btn.dark{background:var(--navy2);color:#fff}
.btn.gold{background:var(--gold);color:var(--navy)}
.btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}
.btn.danger{background:transparent;color:#b3261e;border:1px solid #f0c9c6}
.btn[disabled]{opacity:.55}
.btn-row{display:flex;gap:10px}
.btn-col{display:flex;flex-direction:column;gap:10px}
.searchbox{display:flex;align-items:center;gap:10px;background:var(--card);border:2px solid var(--line);border-radius:16px;padding:0 14px;min-height:60px;margin-bottom:14px}
.searchbox:focus-within{border-color:var(--navy2)}
.searchbox input{flex:1;border:0;outline:0;background:none;font-size:19px;min-height:56px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.chip{border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:9px 16px;font-size:17px;min-height:46px}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.chip.add{border-style:dashed;color:var(--muted)}
.results-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border-radius:14px;overflow:hidden}
.results-grid button{padding:0;border:0;position:relative}
.results-grid .cap{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font-size:12px;padding:14px 6px 5px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:12px 0}
.pick-grid button{padding:0;border:3px solid transparent;border-radius:10px;overflow:hidden;position:relative;background:none}
.pick-grid button.on{border-color:var(--navy)}
.pick-grid button.on::after{content:"✓";position:absolute;top:6px;right:6px;background:var(--navy);color:#fff;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:700}
.empty{text-align:center;color:var(--muted);padding:36px 10px}
.empty .big{font-size:46px}
.section-label{font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:600;margin:6px 0 10px}
.results-actions{margin:14px 0 4px}
.bundle-card{display:flex;gap:14px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px;margin-bottom:12px;width:100%;text-align:left}
.bundle-card .cover{width:82px;height:82px;border-radius:12px;object-fit:cover;flex:none;background:#dde3ea}
.bundle-card b{display:block;font-family:"Cormorant Garamond",serif;font-size:24px;line-height:1.1}
.bundle-card span{color:var(--muted);font-size:15px}
.limit-note{font-size:15px;color:var(--muted);text-align:center;margin:8px 0 16px}
nav.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:var(--card);border-top:1px solid var(--line);display:flex;padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:10}
nav.bottom button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;font-size:14px;color:var(--muted);min-height:62px;position:relative}
nav.bottom button .ic{font-size:24px}
nav.bottom button.on{color:var(--navy);font-weight:600}
nav.bottom .add{flex:none;width:76px}
nav.bottom .add .plus{width:62px;height:62px;border-radius:50%;background:var(--navy);color:#fff;font-size:36px;line-height:54px;margin-top:-30px;box-shadow:0 8px 20px rgba(13,27,46,.35);border:4px solid var(--card)}
.badge{position:absolute;top:2px;right:calc(50% - 26px);background:#c0392b;color:#fff;font-size:12px;border-radius:999px;padding:1px 7px;font-weight:600}
.scrim{position:fixed;inset:0;background:rgba(13,27,46,.5);z-index:20;display:none;align-items:flex-end;justify-content:center}
.scrim.open{display:flex}
.sheet{background:var(--bg);width:100%;max-width:480px;max-height:92vh;overflow-y:auto;border-radius:24px 24px 0 0;padding:10px 20px calc(20px + env(safe-area-inset-bottom));animation:up .25s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.5}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sheet{animation:none}}
.grab{width:44px;height:5px;border-radius:5px;background:#cfd6df;margin:4px auto 14px}
.sheet h3{font-family:"Cormorant Garamond",serif;font-size:30px;margin:0 0 4px;line-height:1.1}
.sheet .sheet-photos{display:flex;gap:6px;overflow-x:auto;margin:12px 0 6px;padding-bottom:4px}
.sheet .sheet-photos img{width:76px;height:76px;object-fit:cover;border-radius:12px;flex:none}
.field{margin:18px 0 0}
.field-label{display:flex;align-items:center;gap:8px;font-weight:600;font-size:18px;margin-bottom:10px}
.field-label .opt{font-weight:400;color:var(--faint);font-size:15px}
.text-in{width:100%;border:2px solid var(--line);background:var(--card);border-radius:14px;padding:12px 14px;font-size:18px;outline:0;min-height:54px}
.text-in:focus{border-color:var(--navy2)}
textarea.text-in{min-height:80px;resize:vertical}
.inline-add{display:none;gap:8px;margin-top:10px}
.inline-add.show{display:flex}
.inline-add .text-in{flex:1}
.inline-add .btn{width:auto;min-height:54px}
.sheet-actions{position:sticky;bottom:-20px;background:var(--bg);padding:16px 0 4px;margin-top:20px;display:flex;flex-direction:column;gap:10px}
.viewer img{width:100%;border-radius:16px;display:block;max-height:52vh;object-fit:contain;background:#000}
.kv{display:grid;grid-template-columns:100px 1fr;gap:8px 12px;margin:16px 0;font-size:17px}
.kv dt{color:var(--muted)}
.kv dd{margin:0}
.add-option{display:flex;align-items:center;gap:16px;width:100%;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:12px;text-align:left;min-height:84px}
.add-option .ic{font-size:32px}
.add-option b{display:block;font-size:19px}
.add-option span{color:var(--muted);font-size:15px}
.add-option .lock{margin-left:auto;font-size:13px;font-weight:600;color:var(--gold);white-space:nowrap}
.plans{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.plan{display:flex;align-items:center;gap:14px;border:2px solid var(--line);background:var(--card);border-radius:16px;padding:14px 16px;text-align:left;width:100%}
.plan.on{border-color:var(--navy);box-shadow:0 0 0 3px rgba(13,27,46,.08)}
.plan .dot{width:22px;height:22px;border-radius:50%;border:2px solid var(--silver);flex:none}
.plan.on .dot{border:7px solid var(--navy)}
.plan b{display:block;font-size:19px}
.plan span{color:var(--muted);font-size:15px}
.plan .save{margin-left:auto;background:#e7f3ec;color:#21633f;font-size:13px;font-weight:700;border-radius:999px;padding:4px 10px;white-space:nowrap}
.perks{list-style:none;padding:0;margin:14px 0}
.perks li{padding:6px 0 6px 30px;position:relative}
.perks li::before{content:"✓";position:absolute;left:4px;color:#21633f;font-weight:700}
.status-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0}
.status-card .lbl{font-size:14px;color:var(--faint);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.status-card .val{font-size:20px;font-weight:600;margin-top:2px}
.prem{color:var(--gold)}
.form-err{color:#b3261e;font-size:15px;min-height:20px;margin:6px 0 0}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:var(--muted);margin:12px 0 0}
.check input{width:22px;height:22px;margin-top:1px;flex:none}
.or{text-align:center;color:var(--faint);font-size:14px;margin:12px 0}
.small-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:18px 0 4px;font-size:14px}
.small-links a,.link-btn{background:none;border:0;color:var(--navy2);text-decoration:underline;font-size:15px;padding:8px}
.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);background:var(--navy);color:#fff;padding:14px 22px;border-radius:999px;font-size:17px;z-index:40;opacity:0;pointer-events:none;transition:opacity .25s;max-width:90vw;text-align:center}
.toast.show{opacity:1}
.foot-note{font-size:13px;color:var(--faint);text-align:center;margin:28px 0 0}
/* Print at home */
#printArea{display:none}
@media print{
  body{background:#fff}
  .app,nav.bottom,.scrim,.toast,.preview-bar,.demo-bar{display:none!important}
  #printArea{display:block}
  #printArea h1{font-family:"Cormorant Garamond",Georgia,serif;font-size:26px;margin:0 0 4px}
  #printArea p{margin:0 0 14px;color:#444;font-size:13px}
  #printArea .pp{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  #printArea figure{margin:0;break-inside:avoid}
  #printArea img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
  #printArea figcaption{font-size:11px;color:#555;margin-top:4px}
}
