/* =====================================================================
   Glass look (v23): soft colour orbs behind, see-through cards, Poppins.
   Loaded after app.css. The orbs are plain gradients (no live blur) so scrolling
   stays smooth; only the header, the bottom bar and sheets use real blur.
   ===================================================================== */
:root { --display: "Poppins", system-ui, sans-serif; --body: "Poppins", system-ui, sans-serif; --r: 22px; --r-sm: 16px; --nav-h: 76px;
  --glass: rgba(255,255,255,.5); --glass-hi: rgba(255,255,255,.78); --glass-line: rgba(255,255,255,.85); --sheet: rgba(255,255,255,.86); --shadow: 0 12px 40px rgba(40,40,90,.10);
  --b1: #9FA9F2; --b2: #CDBDF4; --b3: #A6D3F7; }
html { background: var(--bg); }
body { background: transparent; font-weight: 400; letter-spacing: -.005em; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 0% 0%, var(--b1) 0, transparent 46%), radial-gradient(circle at 108% 42%, var(--b2) 0, transparent 40%), radial-gradient(circle at 12% 100%, var(--b3) 0, transparent 44%), var(--bg); }
h1 { font-weight: 300; font-size: 2.05rem; letter-spacing: -.03em; }
h2 { font-weight: 300; font-size: 1.55rem; letter-spacing: -.02em; }
h3 { font-weight: 500; font-size: 1.02rem; }
b, strong { font-weight: 500; }
.eyebrow { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .84rem; }
.mono { font-family: var(--body); }

/* cards */
.card-lite, .soon-card, .rcard, .idea, .banner, .cu-card, .rev-item, .help-tip, .emptyst, .busy, .prod, .verdict, .wx, .dept, section.set, .swap, .tip, .totalbar, .tipstat, .question, .note, .holiday, .meal-type, .nut-mini, .day, .chat-recipe, .receipt, .gsec, .timeline li, .vit {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--shadow); }
.row { border-top-color: var(--line); }
.hello { background: none; border: 0; box-shadow: none; }
.help-tip { box-shadow: none; }

/* buttons, chips, segments, inputs */
.btn { background: var(--glass-hi); border: 1px solid var(--glass-line); font-weight: 500; }
.btn:hover { border-color: var(--glass-line); filter: brightness(1.02); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip { background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); font-weight: 400; padding: 7px 15px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; font-weight: 400; }
.seg button[aria-pressed="true"] { background: var(--glass-hi); box-shadow: var(--shadow); font-weight: 500; }
.qbtn { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: none; font-weight: 400; }
input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], input[type=date], input[type=url], input[type=tel], select, textarea, .search { background: var(--glass-hi); border: 1px solid var(--glass-line); }
.pill { font-weight: 500; }

/* hide icon slots that only held an emoji */
.ico:empty, .ti:empty, .idea-ico:empty, .cu-ico:empty, .rcard-ico:empty, .big-ico:empty, .wx-ico:empty, .dz-ico:empty, .tip-i:empty, .v-ico:empty, .prod-ico:empty, .qbtn > span:empty, .hbtn > span:empty, .tl-dot:empty { display: none; }

/* header */
header.top { background: transparent; }
header.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--glass-line); }
.brand { font-family: var(--body); font-weight: 400; font-size: 1.05rem; letter-spacing: -.01em; }
.hbtn { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); display: inline-grid; place-items: center; }
.hbtn:hover, .hbtn[aria-pressed="true"] { background: var(--glass-hi); }

/* bottom bar */
nav.tabs { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); border-top: 1px solid var(--glass-line); padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px)); align-items: center; }
nav.tabs button { font-weight: 400; font-size: .72rem; gap: 3px; }
nav.tabs button[aria-current="true"] { background: transparent; color: var(--accent); font-weight: 500; }
nav.tabs .ti { filter: none; opacity: 1; display: grid; place-items: center; }
nav.tabs .nav-add { margin-top: -26px; }
nav.tabs .nav-add .ti { border: 0; box-shadow: var(--shadow); width: 56px; height: 56px; }
.badge { background: var(--accent); color: var(--accent-ink); font-family: var(--body); font-weight: 500; right: calc(50% - 24px); }

/* sheets, toasts */
.scrim { background: rgba(20, 22, 40, .22); }
.sheet { background: var(--sheet); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); border: 1px solid var(--glass-line); border-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: var(--shadow); }
@media (min-width: 760px) { .sheet { border-radius: 30px; border-bottom: 1px solid var(--glass-line); } }
.toast { background: var(--glass-hi); color: var(--ink); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 18px; }
.back-home { border: 1px solid var(--glass-line); background: var(--glass); border-radius: 999px; padding: 8px 14px; color: var(--ink); font-weight: 400; margin: 4px 0 10px; }

/* Kitchen: Have / Need */
.hn { display: flex; align-items: baseline; gap: 18px; }
.hn h1 { margin: 0; }
.hn-off { border: 0; background: none; padding: 0; font: 300 2.05rem/1.15 var(--display); letter-spacing: -.03em; color: var(--muted); display: inline-flex; align-items: flex-start; gap: 4px; }
.hn-off i { font: 500 .7rem/20px var(--body); font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-top: 6px; text-align: center; }

/* Profile */
.prof { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 0 4px; }
.prof h1 { font-size: 1.8rem; }
.prof-av { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--glass-line); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 2rem; font-weight: 300; }
.prof .row-btns { margin-top: 6px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0; padding: 14px 6px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--shadow); }
.prof-stats div { display: flex; flex-direction: column; align-items: center; }
.prof-stats div + div { border-left: 1px solid var(--line); }
.prof-stats b { font-size: 1.4rem; font-weight: 300; } .prof-stats span { font-size: .78rem; color: var(--muted); }
.pages-card { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; text-align: left; padding: 22px 20px; min-height: 88px; border-radius: 26px; background: var(--glass-hi); border: 1px solid var(--glass-line); box-shadow: var(--shadow); color: var(--ink); margin-bottom: 16px; }
.pages-card b { display: block; font-size: 1rem; } .pages-card small { color: var(--muted); }
.pc-arc { position: absolute; right: -130px; top: -60px; width: 210px; height: 210px; border-radius: 50%; border: 1px solid var(--line); }
.pc-arc i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: .5; left: -5px; }
.pc-arc i:nth-child(1) { top: 70px; left: 6px; } .pc-arc i:nth-child(2) { top: 100px; } .pc-arc i:nth-child(3) { top: 130px; left: 6px; }
.pc-arc i.on { width: 26px; height: 8px; border-radius: 999px; background: var(--accent); opacity: 1; left: -13px; top: 101px; }
.plist { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); padding: 2px 18px; }
.prow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); }
.prow:last-child { border-bottom: 0; }
.prow b { display: block; font-weight: 400; font-size: .98rem; } .prow small { color: var(--muted); font-size: .8rem; }
.prow .chev { color: var(--muted); font-size: 1.3rem; }

/* the dial */
.pd-wrap { padding-bottom: 10px; }
.pdial { position: relative; height: 380px; margin: 4px auto 6px; max-width: 360px; touch-action: none; }
.pd-ring { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 1px solid var(--line); }
.pd-mark { position: absolute; left: 50%; top: calc(50% - 104px); width: 26px; height: 8px; margin-left: -13px; border-radius: 999px; background: var(--accent); }
.pd-rot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.pd-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--muted); opacity: .5; }
.pd-w { position: absolute; width: 0; height: 0; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.pd-l { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1.5px solid transparent; background: none; color: var(--ink); font-size: .95rem; opacity: .7; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.pd-l[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 500; opacity: 1; }
.pd-c { position: absolute; left: 50%; top: 50%; width: 170px; transform: translate(-50%, -50%); border: 0; background: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pd-c b { font-size: 1.5rem; font-weight: 300; } .pd-c small { color: var(--muted); font-size: .78rem; } .pd-c span { color: var(--accent); font-size: .84rem; font-weight: 500; margin-top: 6px; }
.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { .pd-rot, .pd-w { transition: none; } }
.pd-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 0; }
.pages-card .grow { padding-right: 70px; }
[class*="ico"]:empty, .tip-i:empty { display: none; }
:root { --mono: "Poppins", system-ui, sans-serif; }
.sh { background: transparent; }
.sheet .sh { background: transparent; position: static; }
.pin-btn { font-weight: 400; }
.pin-btn span { background: var(--accent-soft); color: var(--accent); border-radius: 50%; border: 1px solid var(--glass-line); }
