/* Poppins (SIL Open Font License, fonts/OFL.txt) — bundled so it also works offline */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Light.woff") format("woff"); font-weight: 100 350; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.woff") format("woff"); font-weight: 351 450; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 451 550; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff") format("woff"); font-weight: 551 900; font-style: normal; font-display: swap; }

/*
  VOICE   clean, calm, premium — a quiet personal assistant
  IDEA    "liquid glass": frosted pills and bubbles floating over a soft pastel haze
  COLOUR  near-white grey ground; pastel glass tints — lavender, mint, peach, pink, ice;
          slate text for crisp contrast
  TYPE    system rounded (SF Rounded / Nunito), medium weights, generous spacing
  LAYOUT  dashboard of glass tiles on home; lists only after choosing a category
*/
:root {
  --bg: #eef0f5;
  --ink: #2c2f3f;
  --ink-2: #5d6175;
  --ink-3: #9a9db0;
  --line: rgb(255 255 255 / .85);
  --edge: rgb(160 166 196 / .28);
  --lavender: #c9cdf6; --mint: #cbe9d3; --peach: #fcd6b0; --pink: #f4c6db; --ice: #cfe4f4; --lilac: #e3d3f4;
  --accent: #6a70c8;                 /* lavender-indigo for links/focus */
  --ok: #3f8a63; --warn: #b9792c; --bad: #c2475a;
  --wa: #2fa865;
  --radius: 24px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* glass recipe */
  --glass: linear-gradient(180deg, rgb(255 255 255 / .78) 0%, rgb(255 255 255 / .46) 100%);
  --glass-shadow:
    inset 0 1px 0 rgb(255 255 255 / .95),
    inset 0 -1px 0 rgb(255 255 255 / .35),
    0 1px 2px rgb(44 47 63 / .05),
    0 10px 28px rgb(90 99 160 / .10);
  --blur: blur(18px) saturate(1.6);
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent; overflow-x: clip; min-height: 100dvh; background: transparent; }
/* pastel haze behind the glass */
body::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 12% 8%, rgb(201 205 246 / .75), transparent 70%),
    radial-gradient(34% 28% at 92% 18%, rgb(244 198 219 / .6), transparent 70%),
    radial-gradient(40% 32% at 85% 78%, rgb(252 214 176 / .55), transparent 70%),
    radial-gradient(36% 30% at 8% 70%, rgb(203 233 211 / .6), transparent 70%),
    var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid rgb(106 112 200 / .45); outline-offset: 2px; }
svg { display: block; }

/* reusable glass surface */
.glass, .card, .tile, .qbtn, .ib, .chip, .search input, .rc, .qc, .cgroup, .bell-panel, .sheet, .btn, .x, .qa, .ob-card, .ob-opt, .ob-input,
.form input, .form textarea, .form select, .more, .summary, .fab {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
/* pastel tint layer: set --tint on any glass element */
.tinted { background: linear-gradient(180deg, rgb(255 255 255 / .88) 0%, color-mix(in srgb, var(--tint) 75%, white) 100%) !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px color-mix(in srgb, var(--tint) 60%, transparent), 0 10px 26px color-mix(in srgb, var(--tint) 70%, transparent) !important;
  border-color: color-mix(in srgb, var(--tint) 55%, white) !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: linear-gradient(180deg, rgb(238 240 245 / .92), rgb(238 240 245 / .7)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / .7); }
.bar { position: relative; display: flex; align-items: center; gap: 8px; max-width: 880px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 15.5px; line-height: 1.12; letter-spacing: -.01em; cursor: pointer; flex: 1; overflow: hidden; }
.brand span#brandName { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 12ch; }
@media (min-width: 520px) { .brand span#brandName { max-width: none; font-size: 17px; } }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px rgb(106 112 200 / .25); flex: none; }
body.is-home .back { display: none !important; }
.net { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); flex: none; box-shadow: 0 0 0 3px rgb(63 138 99 / .15); font-size: 11px; font-weight: 700; }
.net.off { width: auto; height: auto; padding: 2px 9px; background: var(--peach); color: #7a4a17; box-shadow: none; }
.tools { display: flex; gap: 8px; flex: none; }
.ib { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; }
.ib.bell { --tint: var(--pink); } .ib.sync { --tint: var(--ice); } .ib.set { --tint: var(--lavender); } .back { --tint: var(--mint); }
.ib.bell, .ib.sync, .ib.set, .back { background: linear-gradient(180deg, rgb(255 255 255 / .9), color-mix(in srgb, var(--tint) 70%, white)); }
.ib:active { transform: scale(.95); }
.ib.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* loading: spinner inside a button while it works, and the header sync icon spins during any server call */
.spinner { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -0.15em; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; opacity: .8; animation: spin .7s linear infinite; flex: none; }
.is-busy { pointer-events: none; opacity: .85; }
body.net-busy #btnSync svg { animation: spin 1s linear infinite; }
.bell { position: relative; }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #d4568a;
  color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

.search { position: relative; max-width: 880px; margin: 12px auto 0; }
.search input { width: 100%; height: 52px; border-radius: 99px; padding: 0 48px 0 60px; font-size: 16px; outline: none; -webkit-appearance: none; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { box-shadow: var(--glass-shadow), 0 0 0 4px rgb(201 205 246 / .7); }
.search .lens { position: absolute; left: 7px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center;
  color: var(--ink-2); background: rgb(255 255 255 / .8); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(90 99 160 / .12); }
.search kbd { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font: 12px var(--font); color: var(--ink-3); border: 1px solid var(--edge); border-radius: 7px; padding: 1px 7px; }
@media (hover: none) { .search kbd { display: none; } }

.crumbrow { max-width: 880px; margin: 0 auto; }
.crumb { margin: 14px 4px 0; font-size: 21px; font-weight: 750; letter-spacing: -.01em; }
.crumb:empty, body.is-home .crumbrow { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 880px; margin: 12px auto 0; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
body.is-home .chips { display: none; }
.chip { flex: none; border-radius: 99px; padding: 8px 16px; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--ink-2); min-height: 40px; font-weight: 600; }
.chip b { font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.chip.on { --tint: var(--lavender); color: var(--ink); background: linear-gradient(180deg, rgb(255 255 255 / .9), color-mix(in srgb, var(--lavender) 85%, white)); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgb(106 112 200 / .22); }
.chip.on b { color: var(--accent); }

/* ---------- bell dropdown ---------- */
.bell-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; z-index: 20;
  border-radius: 24px; padding: 8px; background: linear-gradient(180deg, #fff, #f7f8fc); animation: drop .16s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.bp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; }
.bp-head span { font-size: 12.5px; color: var(--ink-3); }
.bp-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; border-radius: 18px; padding: 9px 10px; cursor: pointer; color: var(--ink); }
.bp-item:hover { background: rgb(255 255 255 / .8); }
.bp-item b { display: block; font-weight: 650; font-size: 14.5px; }
.bp-item small { display: block; font-size: 12.5px; color: var(--ink-2); }
.bp-ic { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; flex: none; font-size: 18px;
  background: linear-gradient(180deg, #fff, var(--lavender)); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgb(106 112 200 / .18); }
.bp-item.warn .bp-ic { background: linear-gradient(180deg, #fff, var(--peach)); }
.bp-item.bad .bp-ic { background: linear-gradient(180deg, #fff, var(--pink)); } .bp-item.bad small { color: var(--bad); font-weight: 700; }
.bp-item.soft { cursor: default; } .bp-item.soft .bp-ic { background: linear-gradient(180deg, #fff, var(--ice)); }
.bp-empty { margin: 4px 12px 12px; color: var(--ink-2); }

/* ---------- layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 16px 16px calc(120px + env(safe-area-inset-bottom)); }

/* ---------- home ---------- */
.home { display: grid; gap: 26px; }
.hello { position: relative; border-radius: 32px; padding: 24px 20px 20px; overflow: hidden;
  background: linear-gradient(160deg, rgb(255 255 255 / .85), rgb(255 255 255 / .45)); border: 1px solid #fff; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.hello::before { content: ""; position: absolute; inset: auto -30px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(244 198 219 / .7), rgb(201 205 246 / .45) 55%, transparent 72%); pointer-events: none; }
.hello-date { margin: 0; font-size: 13px; color: var(--ink-3); font-weight: 600; text-transform: capitalize; position: relative; }
.hello h1 { margin: 2px 0 4px; font-size: clamp(25px, 6.5vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; position: relative; }
.hello-sub { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 46ch; position: relative; }
.quick { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; margin-top: 20px; }
.qbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 76px; border-radius: 26px;
  color: var(--ink); font-weight: 650; font-size: 13.5px; cursor: pointer; transition: transform .12s; }
.qbtn > span { font-size: 22px; line-height: 1.1; }
.quick .qbtn:nth-child(1) { --tint: var(--lavender); } .quick .qbtn:nth-child(2) { --tint: var(--mint); }
.quick .qbtn:nth-child(3) { --tint: var(--peach); } .quick .qbtn:nth-child(4) { --tint: var(--pink); }
.quick .qbtn { background: linear-gradient(180deg, rgb(255 255 255 / .92) 0%, color-mix(in srgb, var(--tint) 80%, white) 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px color-mix(in srgb, var(--tint) 55%, transparent), 0 10px 22px color-mix(in srgb, var(--tint) 70%, transparent);
  border-color: color-mix(in srgb, var(--tint) 50%, white); }
.qbtn.main { font-size: 15px; } .qb-plus { font-size: 28px !important; font-weight: 300; }
.qbtn:active, .tile:active, .rc:active, .btn:active, .chip:active { transform: scale(.97); }
@media (max-width: 380px) { .quick { grid-template-columns: 1fr 1fr; } }

.block { display: grid; gap: 12px; }
.bh { margin: 0; font-size: 18.5px; font-weight: 750; letter-spacing: -.01em; }
.bd { margin: 1px 0 0; font-size: 13.5px; color: var(--ink-3); }
.bh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 639px) { .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 14px; align-content: center; min-height: 86px; } }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; text-align: left; min-height: 96px;
  border-radius: var(--radius); padding: 16px; cursor: pointer; color: var(--ink); transition: transform .12s, box-shadow .2s; }
.tile:hover { box-shadow: var(--glass-shadow), 0 14px 30px color-mix(in srgb, var(--t) 80%, transparent); }
.tile-ic { width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(180deg, #fff 0%, var(--t) 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -6px 12px color-mix(in srgb, var(--t) 70%, transparent), 0 6px 14px color-mix(in srgb, var(--t) 90%, transparent); }
.tile-tx b { display: block; font-size: 16.5px; font-weight: 700; }
.tile-tx small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; margin-top: 1px; }
.tile-n { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 750; color: var(--c); background: rgb(255 255 255 / .85);
  border-radius: 99px; padding: 1px 9px; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(90 99 160 / .12); }
@media (max-width: 400px) { .tile { grid-template-columns: 1fr; gap: 10px; align-content: start; min-height: 124px; } }

.qcontacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.qc { display: flex; align-items: center; gap: 8px; border-radius: 99px; padding: 6px 6px 6px 20px; }
.qc-name { flex: 1; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; display: grid; color: var(--ink); }
.qc-name b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-name small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-btns { display: flex; gap: 6px; flex: none; }

.recent { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.recent::-webkit-scrollbar { display: none; }
.rc { flex: none; width: 136px; scroll-snap-align: start; display: grid; gap: 5px; text-align: left; border-radius: 24px; padding: 8px 8px 10px; cursor: pointer; color: var(--ink); }
.rc-img { height: 90px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; font-size: 32px;
  background: linear-gradient(180deg, #fff, var(--t)); box-shadow: inset 0 1px 0 #fff; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; }
.rc b { font-size: 13.5px; font-weight: 650; line-height: 1.25; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc small { font-size: 11.5px; color: var(--c); font-weight: 700; padding: 0 4px; }

/* ---------- lists ---------- */
.count { color: var(--ink-2); font-size: 13.5px; margin: 8px 4px 8px; }
.count:empty { margin: 2px 0; }
.list { display: grid; gap: 12px; }
@media (min-width: 720px) { .list { grid-template-columns: 1fr 1fr; } }
.card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; border-radius: var(--radius); padding: 12px; cursor: pointer; transition: transform .1s; }
.card:active { transform: scale(.99); }
.thumb { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: rgb(255 255 255 / .7); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.icon { font-size: 28px; border-radius: 99px; background: linear-gradient(180deg, #fff, var(--t)); box-shadow: inset 0 1px 0 #fff, inset 0 -6px 12px color-mix(in srgb, var(--t) 70%, transparent); }
.thumb.missing::after, .rc-img.missing::after { content: "🖼️"; font-size: 22px; opacity: .5; }
.row1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cat { font-size: 12px; font-weight: 750; color: var(--c, var(--ink-2)); letter-spacing: .01em; }
.card h3 { margin: 2px 0; font-size: 16px; line-height: 1.3; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sub { margin: 0; color: var(--ink-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snip { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kws { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.kw { font-size: 12px; background: rgb(255 255 255 / .75); border: 1px solid #fff; color: var(--ink-2); border-radius: 99px; padding: 1px 10px; box-shadow: 0 1px 3px rgb(90 99 160 / .08); }
button.kw { cursor: pointer; }
.kws.big .kw { font-size: 13.5px; padding: 5px 12px; }
.qas { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.qa { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; text-decoration: none; font-size: 18px; flex: none; }
.badge { font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: rgb(255 255 255 / .8); color: var(--ink-2); box-shadow: inset 0 1px 0 #fff; }
.badge.in { background: var(--mint); color: #2d6a4a; } .badge.out { background: var(--pink); color: #93365f; }
.badge.warn { background: var(--peach); color: #8a5214; } .badge.wait { background: var(--lavender); color: #474da0; }
.pin { font-size: 12px; }
.more { width: 100%; padding: 14px; border-radius: 99px; color: var(--ink-2); cursor: pointer; grid-column: 1 / -1; font-weight: 650; }
.seeall { flex: none; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 2px; min-height: 40px; }

/* contact directory */
.cdir { display: grid; gap: 14px; }
@media (min-width: 720px) { .cdir { grid-template-columns: 1fr 1fr; align-items: start; } }
.cgroup { border-radius: var(--radius); overflow: hidden; }
.cgroup h4 { margin: 0; padding: 12px 18px 6px; color: var(--accent); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.crow { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; cursor: pointer; }
.crow + .crow { border-top: 1px solid rgb(160 166 196 / .18); }
.crow:active { background: rgb(255 255 255 / .6); }
.cinfo { flex: 1; display: grid; }
.cinfo b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinfo span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtns { display: flex; gap: 6px; flex: none; }
.src-chip { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 650; color: var(--accent); text-decoration: none; padding: 2px 10px; border-radius: 99px;
  background: rgb(255 255 255 / .85); border: 1px solid #fff; box-shadow: 0 1px 4px rgb(90 99 160 / .12); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* WhatsApp: official logo on a clean glass pill */
.wa-logo { width: 22px; height: 22px; flex: none; object-fit: contain; }
.qa-wa { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 16px 0 12px; border-radius: 99px; flex: none;
  color: #1f7a45; font-weight: 750; font-size: 14px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, rgb(255 255 255 / .95), #dcf3e4); border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, inset 0 -6px 12px rgb(203 233 211 / .7), 0 8px 18px rgb(47 168 101 / .18); }
.qa-wa.round { width: 44px; padding: 0; }
.qa-wa.round .wa-logo { width: 26px; height: 26px; }
.qa-wa:active { transform: scale(.96); }

.empty { text-align: center; color: var(--ink-2); padding: 50px 20px; }
.empty-ill { font-size: 54px; }
.empty h2 { color: var(--ink); margin: 8px 0 6px; font-size: 20px; }
.empty p { max-width: 380px; margin: 0 auto; }

.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 60px; padding: 0 24px 0 18px; border-radius: 99px;
  color: var(--ink); font-size: 16px; font-weight: 750; cursor: pointer; z-index: 5; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgb(255 255 255 / .95), color-mix(in srgb, var(--lavender) 85%, white));
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px rgb(201 205 246 / .6), 0 14px 30px rgb(106 112 200 / .35); }
body.is-home .fab { display: none; }
@media (min-width: 920px) { .fab { right: calc(50% - 440px); } }

/* ---------- sheet ---------- */
.sheet { padding: 0; margin: auto auto 0; width: 100%; max-width: 640px; max-height: 92dvh; border-radius: 32px 32px 0 0; color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .95), rgb(246 247 252 / .92)); }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 32px; } }
.sheet::backdrop { background: rgb(44 47 63 / .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .bell-panel { animation: none; } }
.sheet-body { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 92dvh; }
.sh-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -16px; padding: 8px 0; z-index: 1;
  background: #fbfbfd; box-shadow: 0 8px 12px -10px rgb(44 47 63 / .15); margin: 0 -20px; padding: 8px 20px; }
.x { width: 40px; height: 40px; border-radius: 99px; cursor: pointer; color: var(--ink-2); padding: 0; }
.sh-title { margin: 4px 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; font-weight: 750; }
.summary { border-radius: 20px; padding: 12px 16px; color: var(--ink-2); margin: 12px 0; }
.gallery { display: flex; gap: 10px; overflow-x: auto; margin: 12px -20px; padding: 0 20px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; }
.gallery img { height: 200px; max-width: 80vw; border-radius: 20px; object-fit: cover; background: #fff; display: block; }
.gallery .grid img { object-fit: contain; }
.gallery figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fields { display: grid; margin: 10px 0; }
.f { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 11px 2px; border-bottom: 1px solid rgb(160 166 196 / .2); }
.f dt { color: var(--ink-3); font-size: 13.5px; } .f dd { margin: 0; word-break: break-word; }
@media (max-width: 480px) { .f { grid-template-columns: 1fr; gap: 2px; } }
.pre { white-space: pre-wrap; max-height: 260px; overflow: auto; font-size: 14.5px; }
.menu { list-style: none; margin: 0; padding: 0; } .menu li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hist { list-style: none; padding: 0; margin: 0 0 10px; font-size: 14.5px; }
.hist li { padding: 8px 0; border-bottom: 1px dashed rgb(160 166 196 / .3); } .hist time { float: right; color: var(--ink-3); font-size: 12px; }
h4 { margin: 18px 0 6px; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); font-weight: 750; }
.meta { color: var(--ink-3); font-size: 12.5px; }
.sh-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; justify-content: flex-end; }

/* buttons: glass pills */
.btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 10px 18px; text-decoration: none; color: var(--ink);
  cursor: pointer; font-size: 15px; font-weight: 650; min-height: 46px; transition: transform .1s; }
.btn.primary { --tint: var(--lavender); }
.btn.primary, .btn.tg, .btn.danger, .btn.on {
  background: linear-gradient(180deg, rgb(255 255 255 / .92) 0%, color-mix(in srgb, var(--tint) 85%, white) 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px color-mix(in srgb, var(--tint) 55%, transparent), 0 10px 22px color-mix(in srgb, var(--tint) 75%, transparent);
  border-color: color-mix(in srgb, var(--tint) 50%, white); }
.btn.tg { --tint: var(--ice); justify-content: center; margin-top: 8px; }
.btn.danger { --tint: var(--pink); color: #9b2f55; }
.btn.on { --tint: var(--mint); color: #2d6a4a; }
.btn.wa { color: #1f7a45; border: 1px solid #fff; background: linear-gradient(180deg, rgb(255 255 255 / .96), #d3f0dd);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px rgb(203 233 211 / .8), 0 10px 22px rgb(47 168 101 / .2); }
.btn.wa .wa-logo { width: 26px; height: 26px; }
.btn.wa.big { width: 100%; justify-content: center; padding: 14px; font-size: 17px; font-weight: 750; }
.btn.wide { width: 100%; justify-content: center; padding: 14px; font-size: 17px; min-height: 56px; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.form small { color: var(--ink-3); font-weight: 400; }
.form input, .form textarea, .form select { width: 100%; border-radius: 18px; padding: 12px 16px; font-size: 16px; color: var(--ink); font-weight: 400; background: rgb(255 255 255 / .85); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; box-shadow: var(--glass-shadow), 0 0 0 4px rgb(201 205 246 / .7); }
.form textarea { resize: vertical; }
.form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-tools select.btn { width: auto; padding: 9px 14px; }
.qa-prev { display: flex; gap: 8px; flex-wrap: wrap; } .qa-prev:empty { display: none; }
.qa-prev img { width: 76px; height: 76px; object-fit: cover; border-radius: 18px; }
.hint { color: var(--ink-3); font-size: 13.5px; margin: 0; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); translate: -50% 20px; opacity: 0; pointer-events: none;
  background: rgb(44 47 63 / .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; padding: 12px 20px; border-radius: 99px;
  font-size: 14.5px; max-width: calc(100% - 32px); transition: .2s; z-index: 100; box-shadow: 0 12px 30px rgb(44 47 63 / .25); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- onboarding ---------- */
.onboard { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
  background:
    radial-gradient(50% 40% at 15% 10%, rgb(201 205 246 / .9), transparent 70%),
    radial-gradient(45% 35% at 90% 25%, rgb(244 198 219 / .8), transparent 70%),
    radial-gradient(50% 40% at 80% 90%, rgb(252 214 176 / .75), transparent 70%),
    radial-gradient(45% 40% at 10% 85%, rgb(203 233 211 / .8), transparent 70%), var(--bg); }
body.ob-open { overflow: hidden; }
.ob-card { width: 100%; max-width: 440px; min-height: min(720px, calc(100dvh - 32px)); border-radius: 36px; padding: 18px 22px 22px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgb(255 255 255 / .72), rgb(255 255 255 / .5)); }
.ob-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-direction: row-reverse; }
.ob-langs { display: flex; gap: 4px; background: rgb(255 255 255 / .6); border-radius: 99px; padding: 4px; box-shadow: inset 0 1px 2px rgb(90 99 160 / .12); }
.ob-lang { border: 0; background: none; border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; min-height: 34px; }
.ob-lang.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgb(90 99 160 / .18); }
.ob-skip { border: 0; background: none; color: var(--ink-2); font-weight: 650; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.ob-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.ob-hero { text-align: center; }
.ob-logo { width: 108px; height: 108px; margin: 6px auto 16px; border-radius: 34px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgb(255 255 255 / .95), rgb(255 255 255 / .6)); box-shadow: var(--glass-shadow), 0 16px 34px rgb(106 112 200 / .25); }
.ob-logo img { border-radius: 24px; }
.ob-hero h1 { margin: 0; font-size: clamp(28px, 7.5vw, 36px); letter-spacing: -.02em; font-weight: 750; line-height: 1.1; }
.ob-tag { margin: 8px auto 0; color: var(--ink-2); font-size: 16px; max-width: 30ch; }
.ob-feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ob-feats li { display: flex; gap: 14px; align-items: flex-start; }
.ob-feats li > span { width: 44px; height: 44px; flex: none; border-radius: 99px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(180deg, #fff, var(--lavender)); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(106 112 200 / .2); }
.ob-feats li:nth-child(2) > span { background: linear-gradient(180deg, #fff, var(--mint)); }
.ob-feats li:nth-child(3) > span { background: linear-gradient(180deg, #fff, var(--peach)); }
.ob-feats li:nth-child(4) > span { background: linear-gradient(180deg, #fff, var(--pink)); }
.ob-feats b { display: block; font-weight: 700; }
.ob-feats small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.ob-q { display: grid; gap: 12px; }
.ob-emoji { font-size: 44px; }
.ob-q h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; }
.ob-q > p { margin: 0 0 6px; color: var(--ink-2); }
.ob-input { width: 100%; height: 56px; border-radius: 99px; padding: 0 20px; font-size: 17px; color: var(--ink); background: rgb(255 255 255 / .85); }
.ob-input:focus { outline: none; box-shadow: var(--glass-shadow), 0 0 0 4px rgb(201 205 246 / .7); }
.ob-opt { display: grid; gap: 2px; text-align: left; width: 100%; padding: 16px 20px; border-radius: 26px; cursor: pointer; color: var(--ink); }
.ob-opt b { font-size: 16px; font-weight: 700; } .ob-opt small { color: var(--ink-2); font-size: 13.5px; }
.ob-opt.on { background: linear-gradient(180deg, rgb(255 255 255 / .95), color-mix(in srgb, var(--lavender) 80%, white));
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgb(106 112 200 / .25); border-color: #fff; }
.ob-sync { display: grid; gap: 8px; } .ob-sync small { color: var(--ink-3); font-size: 12.5px; padding: 0 8px; }
.ob-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin-top: 6px; cursor: pointer; }
.ob-check input { width: 22px; height: 22px; accent-color: #8e94e0; }
.ob-foot { display: grid; gap: 10px; }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgb(160 166 196 / .4); transition: .2s; }
.ob-dots i.on { width: 26px; background: linear-gradient(90deg, var(--lavender), var(--pink)); }
.ob-legal { margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- settings panels & switches ---------- */
.panel { display: grid; gap: 12px; padding: 16px; border-radius: 26px; background: linear-gradient(180deg, rgb(255 255 255 / .85), rgb(255 255 255 / .55));
  border: 1px solid #fff; box-shadow: var(--glass-shadow); }
.panel-h { display: flex; gap: 12px; align-items: flex-start; }
.panel-h b { display: block; font-size: 16px; color: var(--ink); }
.panel-h small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; line-height: 1.4; }
.panel-ic { width: 44px; height: 44px; flex: none; border-radius: 99px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(180deg, #fff, var(--t)); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(90 99 160 / .15); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink); font-weight: 600; padding: 2px 2px; }
.switch { position: relative; width: 58px; height: 34px; flex: none; cursor: pointer; display: block !important; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(180deg, #eceef4, #f8f9fc);
  box-shadow: inset 0 2px 5px rgb(90 99 160 / .18), 0 1px 0 #fff; transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 99px;
  background: radial-gradient(circle at 35% 30%, #fff, #e9ebf3); box-shadow: 0 2px 6px rgb(44 47 63 / .22), inset 0 1px 0 #fff; transition: transform .2s; }
.switch input:checked + span { background: linear-gradient(180deg, #fff3e6, var(--peach)); box-shadow: inset 0 2px 5px rgb(185 121 44 / .2), 0 6px 14px rgb(252 214 176 / .8); }
.switch input:checked + span::after { transform: translateX(24px); background: radial-gradient(circle at 35% 30%, #fff, var(--pink)); }
.switch input:focus-visible + span { outline: 3px solid rgb(106 112 200 / .45); outline-offset: 2px; }
.how { font-size: 13.5px; color: var(--ink-2); }
.how summary { cursor: pointer; font-weight: 650; color: var(--accent); }
.how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- add-on modules ---------- */
.toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.toolbar .setrow { flex: 1; justify-content: flex-end; font-size: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgb(255 255 255 / .6); box-shadow: inset 0 1px 3px rgb(90 99 160 / .15); }
.seg.wrap { flex-wrap: wrap; border-radius: 22px; }
.seg button { border: 0; background: none; border-radius: 99px; padding: 8px 14px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; min-height: 38px; }
.seg button.on { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--lavender) 70%, white)); color: var(--ink); box-shadow: 0 3px 10px rgb(106 112 200 / .22); }
.badge.alarm { background: #c2475a; color: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(194 71 90 / .22); } }
.badge.prio-high { background: #fbdde2; color: #a12e44; } .badge.prio-medium { background: var(--peach); color: #8a5214; } .badge.prio-low { background: var(--mint); color: #2d6a4a; }
.qa.chk { font-weight: 800; color: var(--ink-3); cursor: pointer; }
.qa.chk.on { background: linear-gradient(180deg, #fff, var(--mint)); color: #2d6a4a; }

/* membership wallet: stacked cards */
.wallet { display: grid; gap: 0; padding-top: 8px; }
.mcard { --h: 250; position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; text-align: left; border: 1px solid rgb(255 255 255 / .7);
  aspect-ratio: 1.586; max-height: 230px; border-radius: 22px; padding: 18px 20px; margin-top: -120px; cursor: pointer; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 55% 62%), hsl(calc(var(--h) + 40) 50% 45%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 -2px 10px rgb(44 47 63 / .08), 0 14px 30px hsl(var(--h) 50% 40% / .35); transition: transform .2s; }
.mcard:first-child { margin-top: 0; }
.mcard:hover, .mcard:focus-visible { transform: translateY(-14px); z-index: 2; }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(255 255 255 / .35), transparent 45%); pointer-events: none; }
.mc-brand { font-size: 19px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.mc-tier { justify-self: end; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; background: rgb(255 255 255 / .25); }
.mc-chip { grid-row: 2; font-size: 30px; align-self: center; opacity: .9; }
.mc-photo { grid-row: 2; grid-column: 2; width: 74px; height: 48px; border-radius: 8px; overflow: hidden; align-self: center; box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
.mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.mc-no { grid-row: 3; grid-column: 1 / -1; font: 600 17px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-shadow: 0 1px 2px rgb(0 0 0 / .25); }

.barcode-box { background: #fff; border-radius: 20px; padding: 16px; margin: 12px 0; display: grid; gap: 8px; justify-items: center; box-shadow: var(--glass-shadow); }
.barcode-box svg { width: 100%; height: 110px; }
.barcode-box.qr svg { width: min(240px, 70vw); height: auto; }
.barcode-box code { font: 600 16px ui-monospace, Menlo, monospace; letter-spacing: .1em; }
.barcode-box.max, .barcode-box:fullscreen { position: fixed; inset: 0; z-index: 200; border-radius: 0; align-content: center; padding: 30px; }
.barcode-box:fullscreen svg, .barcode-box.max svg { height: 40vh; }
.row.center { justify-content: center; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(180deg, rgb(255 255 255 / .95), rgb(255 255 255 / .6)); box-shadow: var(--glass-shadow); }
.stats small { color: var(--ink-3); font-size: 12px; }
.stats b { font-size: 17px; font-weight: 750; }
.stats b.ok { color: var(--ok); } .stats b.bad { color: var(--bad); }
.mini-h { margin: 8px 2px; font-size: 13px; color: var(--ink-2); font-weight: 650; }

/* agenda */
.agenda { display: grid; gap: 8px; }
.ag-month { margin: 14px 4px 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.ag-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 22px; cursor: pointer;
  background: var(--glass); border: 1px solid #fff; box-shadow: var(--glass-shadow); }
.ag-row.soon { box-shadow: var(--glass-shadow), inset 3px 0 0 #c2475a; }
.ag-row.past { opacity: .6; }
.ag-date { display: grid; justify-items: center; padding: 6px 0; border-radius: 16px; background: linear-gradient(180deg, #fff, var(--t)); }
.ag-date b { font-size: 20px; line-height: 1.1; } .ag-date small { font-size: 11px; color: var(--ink-2); text-transform: capitalize; }
.ag-body { display: grid; } .ag-body b { font-weight: 700; } .ag-body small { color: var(--ink-2); font-size: 12.5px; }
.gcal { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; color: #3d6fd6; text-decoration: none;
  background: linear-gradient(180deg, #fff, #dfe8fb); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(61 111 214 / .2); }

/* duplicate dialog, family */
.dup-q { font-size: 17px; margin: 6px 0 4px; }
.dup-actions { display: grid; gap: 8px; margin-top: 16px; }
.btn.ghost { background: none; box-shadow: none; border-color: transparent; }
.hint.upd { color: var(--accent); font-weight: 650; }
.sharerow { margin: 12px 0 0; padding: 12px 14px; border-radius: 18px; background: rgb(255 255 255 / .7); box-shadow: var(--glass-shadow); }
.sharerow small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.ws { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgb(255 255 255 / .6); }
.ws ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.qr-box { width: 200px; margin: 6px auto; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--glass-shadow); }
.code { display: block; text-align: center; font: 700 20px ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.badge.tiny { justify-self: start; margin-top: 3px; font-size: 11px; }

/* =====================================================================
   v2.4 — soft pastel colour (less plain white), roomier forms, badge-safe layout
   ===================================================================== */
:root { --lemon: #f6ecb8; --sky: #d6e6fb; --rose: #f9d5dd; --sage: #d5ead8; --bg: #f1eff8; }

/* hello card: pastel wash */
.hello { background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 75%, white) 0%, color-mix(in srgb, var(--pink) 55%, white) 55%, color-mix(in srgb, var(--peach) 60%, white) 100%); }

/* tiles & cards carry their module colour */
.tile { background: linear-gradient(150deg, color-mix(in srgb, var(--t) 78%, white) 0%, color-mix(in srgb, var(--t) 30%, white) 100%);
  border-color: color-mix(in srgb, var(--t) 55%, white); }
.tile-ic { background: rgb(255 255 255 / .75) !important; }
.tile-n { background: rgb(255 255 255 / .9); }
.card { background: linear-gradient(100deg, color-mix(in srgb, var(--t) 55%, white) 0%, rgb(255 255 255 / .82) 46%); border-color: color-mix(in srgb, var(--t) 40%, white); }
.rc { background: linear-gradient(180deg, color-mix(in srgb, var(--t) 60%, white), rgb(255 255 255 / .85)); }
.cgroup { background: linear-gradient(180deg, color-mix(in srgb, var(--lavender) 40%, white), rgb(255 255 255 / .8)); }
.cgroup h4 { color: #5b5fb3; }
.qc { background: linear-gradient(180deg, color-mix(in srgb, var(--mint) 55%, white), rgb(255 255 255 / .85)); }

/* buttons: every button gets a soft pastel fill */
.btn { background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--lavender) 45%, white) 100%);
  border-color: color-mix(in srgb, var(--lavender) 60%, white);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgb(106 112 200 / .14); }
.btn.primary { --tint: var(--lavender);
  background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 90%, white) 0%, color-mix(in srgb, var(--pink) 80%, white) 100%) !important;
  color: #2c2f3f; border-color: #fff !important; }
.actions .btn:nth-of-type(6n+1) { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--mint) 85%, white)); border-color: color-mix(in srgb, var(--mint) 70%, white); }
.actions .btn:nth-of-type(6n+2) { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--peach) 80%, white)); border-color: color-mix(in srgb, var(--peach) 70%, white); }
.actions .btn:nth-of-type(6n+3) { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--sky) 90%, white)); border-color: color-mix(in srgb, var(--sky) 80%, white); }
.actions .btn:nth-of-type(6n+4) { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--pink) 75%, white)); border-color: color-mix(in srgb, var(--pink) 70%, white); }
.actions .btn:nth-of-type(6n+5) { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--lemon) 85%, white)); border-color: color-mix(in srgb, var(--lemon) 75%, white); }
.actions .btn:nth-of-type(6n) { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--lilac) 90%, white)); border-color: color-mix(in srgb, var(--lilac) 80%, white); }
.chip { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--sky) 45%, white)); }
.chip.on { background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 90%, white), color-mix(in srgb, var(--pink) 70%, white)); }
.ib { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--lavender) 40%, white)); }
.sh-head { background: linear-gradient(180deg, color-mix(in srgb, var(--lavender) 35%, white), #fbfaff); }
.panel { background: linear-gradient(180deg, rgb(255 255 255 / .9), color-mix(in srgb, var(--lilac) 30%, white)); }
.kw { background: color-mix(in srgb, var(--sky) 55%, white); }

/* WhatsApp: only the green logo, no text */
.qa-wa.round { background: linear-gradient(180deg, #fff, #e3f6ea); }
.qa-wa.round.lg { width: 56px; height: 56px; }
.qa-wa.round.lg .wa-logo { width: 32px; height: 32px; }

/* the free-plan "Powered by Netlify" badge sits bottom-right → keep our controls clear of it */
.fab { right: auto; left: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 90%, white), color-mix(in srgb, var(--pink) 75%, white)); }
@media (min-width: 920px) { .fab { right: auto; left: calc(50% - 440px); } }
.toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
#onboard { padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* edit form: two columns for short fields, multi-choice chips */
.form { grid-template-columns: 1fr 1fr; column-gap: 10px; }
.form > .fld.full, .form > label, .form > .sh-foot, .form > .setrow, .form > div:not(.fld) { grid-column: 1 / -1; }
.form > .fld { display: grid; }
.form .fld > label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.form .fld.half select, .form .fld.half input { padding: 12px 12px; }
.multi { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.multi legend { font-size: 13.5px; color: var(--ink-2); font-weight: 600; padding: 0; margin-bottom: 6px; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip { position: relative; cursor: pointer; }
.mchip input { position: absolute; opacity: 0; pointer-events: none; }
.mchip span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--sky) 45%, white)); border: 1px solid #fff; box-shadow: 0 2px 8px rgb(90 99 160 / .12); }
.mchip input:checked + span { color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 95%, white), color-mix(in srgb, var(--pink) 80%, white));
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgb(106 112 200 / .25); }
.mchip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }
.mchip input:focus-visible + span { outline: 3px solid rgb(106 112 200 / .45); outline-offset: 2px; }
.mother { margin-top: 2px; }
.form .mchip { display: inline-block; }

/* =====================================================================
   v2.5 — bigger Home button, wrapped categories, Add sheet with forms, detail hero, notes
   ===================================================================== */
/* header: clear "Home" pill instead of a tiny arrow */
.backpill { width: auto !important; height: 46px; padding: 0 16px 0 12px !important; gap: 7px; display: inline-flex; align-items: center; border-radius: 99px;
  font-weight: 700; font-size: 15px; color: #2d6a4a; flex: none; }
.backpill svg { width: 20px; height: 20px; }
@media (max-width: 380px) { .backpill span { display: none; } .backpill { padding: 0 12px !important; } }
body:not(.is-home) .brand span#brandName { display: none; }

/* categories: wrapped, alphabetical, two lines until expanded */
.chips { display: block; overflow: visible; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 8px; max-height: 96px; overflow: hidden; transition: max-height .25s; }
.chipwrap.open { max-height: 2000px; }
.chip-more { margin-top: 8px; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 4px 2px; }

/* sheet: nothing hides under the header */
.sh-head + * { margin-top: 10px; }
.sh-head.slim { padding-top: 4px; padding-bottom: 4px; }
.sh-head .cat { font-weight: 700; font-size: 14px; }

/* Add sheet */
.qa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 99px; margin: 10px 0 14px;
  background: color-mix(in srgb, var(--lavender) 35%, white); box-shadow: inset 0 1px 3px rgb(90 99 160 / .15); }
.qa-tabs button { border: 0; border-radius: 99px; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--ink-2); background: transparent; cursor: pointer; }
.qa-tabs button.on { color: var(--ink); background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--pink) 45%, white)); box-shadow: 0 4px 12px rgb(106 112 200 / .2); }
.qa-lead { margin: 4px 2px 10px; font-weight: 700; font-size: 16px; }
.qcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.qcat { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 22px; cursor: pointer; border: 1px solid #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 80%, white), color-mix(in srgb, var(--t) 35%, white)); box-shadow: 0 6px 14px color-mix(in srgb, var(--t) 70%, transparent); }
.qcat i { font-style: normal; font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 99px; background: rgb(255 255 255 / .8); }
.qcat span { font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; }
.qcat:active { transform: scale(.96); }
.qa-sel { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 22px; cursor: pointer; border: 1px solid #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--t) 80%, white), #fff); text-align: left; }
.qa-sel i { font-style: normal; font-size: 24px; }
.qa-sel b { flex: 1; font-size: 16px; }
.qa-sel small { color: var(--accent); font-weight: 700; }
.qa-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-smart textarea { min-height: 140px; font-size: 16.5px; line-height: 1.5; }

/* notes: comfortable writing */
.note-form { gap: 14px; }
.note-title { font-size: 22px !important; font-weight: 700; padding: 14px 18px !important; }
.note-types { display: flex; flex-wrap: wrap; gap: 8px; }
.note-paper { min-height: 260px; font-size: 17px !important; line-height: 32px !important; padding: 16px 20px !important; border-radius: 22px !important;
  background: repeating-linear-gradient(180deg, #fffdf6 0, #fffdf6 31px, #efe6d2 31px, #efe6d2 32px) !important; background-attachment: local !important;
  border: 1px solid #f1e7cf !important; box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgb(185 160 110 / .15) !important; resize: none; }
.note-view { white-space: pre-wrap; font-size: 17px; line-height: 32px; padding: 14px 20px; margin: 12px 0; border-radius: 22px; color: var(--ink);
  background: repeating-linear-gradient(180deg, #fffdf6 0, #fffdf6 31px, #efe6d2 31px, #efe6d2 32px); border: 1px solid #f1e7cf; }

/* detail: colourful hero + evenly sized actions */
.hero { display: flex; gap: 14px; align-items: center; padding: 16px; margin: 6px 0 12px; border-radius: 26px; border: 1px solid #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 85%, white), color-mix(in srgb, var(--t) 30%, white));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--t) 70%, transparent); }
.hero-ic { flex: none; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: rgb(255 255 255 / .85);
  box-shadow: 0 4px 12px rgb(44 47 63 / .08); }
.hero-tx { display: grid; gap: 6px; }
.hero .sh-title { margin: 0; font-size: 22px; line-height: 1.2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: stretch; }
.actions .btn { justify-content: center; min-height: 52px; font-size: 15px; border-radius: 18px; text-align: center; line-height: 1.2; }
.actions .qa-wa.round.lg { width: 100%; height: 52px; border-radius: 18px; }
.actions .btn { white-space: nowrap; }

/* =====================================================================
   v2.6 — "clean": flat solid pastels (no gradients / glass shine) everywhere except the home dashboard,
   and light typography — only titles are bold.
   ===================================================================== */
:root {
  --p-lav: #ecebfd; --p-mint: #e4f5ea; --p-peach: #fdeedd; --p-sky: #e5effc; --p-pink: #fce8ef; --p-lemon: #fbf5d9; --p-lilac: #f2eafb;
  --p-line: #ececf3; --surface: #ffffff; --sheet: #fafafc;
}

/* typography: regular text, medium for buttons, bold only for titles */
body { font-weight: 400; }
button, .btn, .chip, .seeall, .chip-more, .qa-tabs button, .mchip span, .qcat span, .qa-sel b, .badge, .cat, .kw, .form label, .multi legend,
.f dt, .f dd, .cinfo b, .cinfo span, .tile-tx small, .hello-sub, .hello-date, .bd, .count, .meta, .hint, .setrow span, .panel-h small, .src-chip,
.sh-head .cat, .qa-lead, .tile-n, .rc b, .rc small, .cgroup h4, h4, .note-types span, .backpill, .fab { font-weight: 400 !important; }
.btn, .chip, .qa-tabs button, .backpill, .fab, .seeall, .chip-more, .qa-sel b, .badge, .cinfo b, .rc b, .tile-n, .mchip span, .qcat span, .cat, .sh-head .cat { font-weight: 500 !important; }
h1, h2, h3, .bh, .sh-title, .crumb, .tile-tx b, .card h3, .hello h1, .panel-h b, .qa-lead, .note-title, .empty h2 { font-weight: 700 !important; }

/* inside screens: solid surfaces, no glass, no inner gradients */
.sheet, .sheet-body { background: var(--sheet) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sh-head, .sh-head.slim { background: var(--sheet) !important; box-shadow: 0 1px 0 var(--p-line) !important; }
.btn, .btn.primary, .btn.tg, .btn.danger, .btn.on, .btn.wa, .actions .btn, .chip, .chip.on, .x, .qa, .qa-wa, .qa-wa.round, .ib.backpill, .mchip span,
.qa-tabs, .qa-tabs button.on, .qcat, .qa-sel, .hero, .hero-ic, .card, .crow, .cgroup, .qc, .panel, .summary, .kw, .badge, .note-paper, .note-view,
.form input, .form textarea, .form select, .ob-input, .more, .seg, .seg button, .seg .on {
  background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.btn { background: var(--p-lav) !important; border: 0 !important; box-shadow: none !important; color: var(--ink) !important; }
.btn.primary { background: #dcd9fb !important; }
.btn.danger { background: var(--p-pink) !important; color: #9b2f55 !important; }
.btn.on { background: var(--p-mint) !important; color: #2d6a4a !important; }
.btn.tg { background: var(--p-sky) !important; }
.btn.ghost { background: transparent !important; }
.actions .btn:nth-of-type(6n+1) { background: var(--p-lav) !important; }
.actions .btn:nth-of-type(6n+2) { background: var(--p-peach) !important; }
.actions .btn:nth-of-type(6n+3) { background: var(--p-mint) !important; }
.actions .btn:nth-of-type(6n+4) { background: var(--p-sky) !important; }
.actions .btn:nth-of-type(6n+5) { background: var(--p-pink) !important; }
.actions .btn:nth-of-type(6n)   { background: var(--p-lemon) !important; }
.sh-foot .btn { background: var(--p-lav) !important; }
.sh-foot .btn.danger { background: var(--p-pink) !important; }
.x { background: #f0f0f5 !important; border: 0 !important; box-shadow: none !important; }
.qa, .qa-wa, .qa-wa.round { background: #f3f3f8 !important; border: 0 !important; box-shadow: none !important; }
.qa-wa.round { background: #e6f6ec !important; }

/* detail hero: flat pastel block */
.hero { background: color-mix(in srgb, var(--t) 45%, white) !important; border: 0 !important; box-shadow: none !important; }
.hero-ic { background: #fff !important; box-shadow: none !important; }

/* lists inside categories: white cards, colour only on the icon */
.card, .crow, .cgroup, .qc, .panel, .summary { background: var(--surface) !important; border: 1px solid var(--p-line) !important; box-shadow: 0 2px 10px rgb(44 47 63 / .04) !important; }
.cgroup .crow { border: 0 !important; box-shadow: none !important; border-top: 1px solid var(--p-line) !important; }
.cgroup .crow:first-of-type { border-top: 0 !important; }
.chip { background: #f1f1f6 !important; border: 0 !important; box-shadow: none !important; color: var(--ink-2) !important; }
.chip.on { background: #dcd9fb !important; color: var(--ink) !important; }
.kw { background: #f1f1f6 !important; border: 0 !important; box-shadow: none !important; }
.badge { box-shadow: none !important; }

/* forms */
.form input, .form textarea, .form select, .ob-input { background: #fff !important; border: 1px solid var(--p-line) !important; box-shadow: none !important; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: #c9c5f6 !important; box-shadow: 0 0 0 3px #ecebfd !important; }
.mchip span { background: #f1f1f6 !important; border: 0 !important; box-shadow: none !important; }
.mchip input:checked + span { background: #dcd9fb !important; box-shadow: none !important; }
.qa-tabs { background: #f1f1f6 !important; box-shadow: none !important; }
.qa-tabs button.on { background: #fff !important; box-shadow: 0 1px 4px rgb(44 47 63 / .08) !important; }
.qcat { background: color-mix(in srgb, var(--t) 50%, white) !important; border: 0 !important; box-shadow: none !important; }
.qcat i { background: #fff !important; }
.qa-sel { background: color-mix(in srgb, var(--t) 45%, white) !important; border: 0 !important; }
.note-paper, .note-view { box-shadow: none !important; }

/* header buttons inside screens */
.ib.backpill { background: var(--p-mint) !important; border: 0 !important; box-shadow: none !important; }
.fab { background: #dcd9fb !important; box-shadow: 0 6px 18px rgb(106 112 200 / .22) !important; border: 0 !important; }

/* lighter, cleaner type (like the reference): secondary text in Light */
.hint, .meta, .bd, .hello-sub, .hello-date, .f dt, .form label, .multi legend, small, .cinfo span, .tile-tx small, .card .sub, .count,
.qa-smart textarea::placeholder, .form input::placeholder, .form textarea::placeholder, .search input::placeholder, .panel-h small, .setrow small { font-weight: 300 !important; }
.f dd, .stats, .stats b, .mod-extra, .mod-extra b, .summary, .pre, .menu li { font-weight: 400 !important; }
.f dt { letter-spacing: .01em; }

/* =====================================================================
   v2.6.1 — light, small, elegant type (like the reference): medium titles, regular text, light captions
   ===================================================================== */
body { font-size: 14.5px; letter-spacing: .005em; }
h1, h2, h3, .bh, .sh-title, .crumb, .tile-tx b, .card h3, .hello h1, .panel-h b, .qa-lead, .note-title, .empty h2 { font-weight: 500 !important; letter-spacing: -.01em; }
.hello h1 { font-size: clamp(22px, 6vw, 28px) !important; }
.bh { font-size: 17px !important; }
.crumb { font-size: 20px !important; }
.sh-title { font-size: 20px !important; }
.hero .sh-title { font-size: 19px !important; }
.tile-tx b { font-size: 15px !important; }
.card h3 { font-size: 15px !important; }
.cinfo b { font-size: 14.5px; }
.btn, .chip, .qa-tabs button, .backpill, .fab, .seeall, .chip-more, .qa-sel b, .mchip span, .qcat span, .cat, .sh-head .cat, .badge, .cinfo b, .rc b, .tile-n { font-weight: 400 !important; }
.btn { font-size: 14px !important; }
.actions .btn { font-size: 14px !important; min-height: 48px; }
.chip { font-size: 13px !important; min-height: 36px; padding: 6px 14px; }
.form label, .multi legend, .f dt { font-size: 12.5px !important; color: var(--ink-3) !important; }
.f dd { font-size: 14.5px; }
.tile-tx small, .hello-date, .bd, .meta, .hint, .cinfo span, .rc small, .count, .panel-h small, .card p, .sub { font-weight: 300 !important; }
.hello-sub { font-size: 14px !important; font-weight: 300 !important; }
.bd { font-size: 12.5px !important; }
.qbtn { font-weight: 400 !important; font-size: 13px !important; }
.qbtn.main { font-size: 14px !important; }
.badge { font-size: 11px !important; }
.kw { font-size: 11.5px !important; font-weight: 300 !important; }
.cgroup h4, h4 { font-weight: 500 !important; font-size: 11.5px !important; letter-spacing: .06em; }
.brand { font-weight: 500 !important; }
.mini-h, .stats, .stat, .ag-row, .agenda, .wallet, .mcard, .hist, .menu, .setrow, .panel { font-weight: 400 !important; }
.mini-h b, .stats b, .stat b, .hist b, .menu b, .f dd b, .card p b, .ag-row b { font-weight: 500 !important; }
.mini-h { font-size: 13.5px; color: var(--ink-2); }

/* v2.6.2 — titles a little stronger (not heavy), pink Home, star ratings, 5 quick buttons */
.bh, .hello h1, .sh-title, .hero .sh-title, .crumb, .qa-lead, .panel-h b, .empty h2 { font-weight: 600 !important; }
.tile-tx b, .card h3 { font-weight: 500 !important; }
.ib.backpill { background: #fce8ef !important; color: #d0578a !important; }
.ib.backpill svg { stroke: #d0578a; }
.quick { grid-template-columns: repeat(4, 1fr) !important; }
.quick .qbtn.main { grid-column: 1 / -1; flex-direction: row; gap: 8px; min-height: 54px; font-size: 15px !important; }
.quick .qbtn.main .qb-plus { font-size: 22px !important; }
.quick .qbtn:nth-child(2) { --tint: var(--pink); } .quick .qbtn:nth-child(3) { --tint: var(--peach); }
.quick .qbtn:nth-child(4) { --tint: var(--mint); } .quick .qbtn:nth-child(5) { --tint: var(--ice); }
.quick .qbtn:not(.main) { min-height: 70px; font-size: 12.5px !important; }
@media (max-width: 380px) { .quick { grid-template-columns: repeat(4, 1fr) !important; } }
/* star rating input: tap a star (right-to-left trick so hover/checked fills the stars before it) */
.stars-in { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.stars-in legend { font-size: 12.5px; color: var(--ink-3); padding: 0; margin-bottom: 4px; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 30px; line-height: 1; color: #e3e1ec; cursor: pointer; transition: color .1s, transform .1s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f4b740; }
.stars label:active { transform: scale(.9); }
.stars input:focus-visible + label { outline: 2px solid #c9c5f6; border-radius: 6px; }
.stars-clear { font-size: 12px !important; color: var(--ink-3) !important; display: inline-flex !important; gap: 6px; align-items: center; cursor: pointer; }
.stars-clear input { width: auto !important; }
.form .stars label, .stars label { font-size: 32px !important; color: #e3e1ec !important; display: inline-block !important; font-weight: 400 !important; }
.form .stars input:checked ~ label, .form .stars label:hover, .form .stars label:hover ~ label,
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f4b740 !important; }

/* v2.6.3 */
.bh { font-size: 20px !important; }
.chip { background: #fff !important; border: 1px solid #ececf3 !important; box-shadow: 0 1px 4px rgb(44 47 63 / .06) !important; color: var(--ink-2) !important; }
.chip.on { background: #dcd9fb !important; border-color: #dcd9fb !important; color: var(--ink) !important; box-shadow: 0 3px 10px rgb(106 112 200 / .18) !important; }
.ib.backpill { background: #f9d3e2 !important; color: #b8426f !important; }
.ib.backpill svg { stroke: #b8426f; }
.play-ic { flex: none; }

/* v2.6.4 — bold greeting; Quick add sits in the same row as the 4 shortcuts */
.hello h1 { font-weight: 700 !important; }
.bh { font-size: 20px !important; }
.quick { grid-template-columns: 1.2fr repeat(4, 1fr) !important; gap: 8px !important; }
.quick .qbtn.main { grid-column: auto !important; flex-direction: column !important; gap: 3px !important; min-height: 72px !important; font-size: 12.5px !important; }
.quick .qbtn.main .qb-plus { font-size: 24px !important; }
.quick .qbtn:not(.main) { min-height: 72px !important; font-size: 12px !important; padding: 6px 2px; }
@media (max-width: 380px) { .quick { grid-template-columns: repeat(5, 1fr) !important; } .quick .qbtn { font-size: 11px !important; } }

/* v2.6.5 — Quick add gets its own full row; the 4 shortcuts (Movies, Tasks, Food, Vouchers) sit below it */
.quick { grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; }
.quick .qbtn.main { grid-column: 1 / -1 !important; flex-direction: row !important; gap: 8px !important; min-height: 56px !important; font-size: 15px !important; }
.quick .qbtn.main .qb-plus { font-size: 24px !important; }
.quick .qbtn:not(.main) { min-height: 76px !important; font-size: 12.5px !important; }
@media (max-width: 380px) { .quick { grid-template-columns: repeat(4, 1fr) !important; } .quick .qbtn:not(.main) { font-size: 11.5px !important; } }

/* v2.6.6 — full-screen photo viewer */
.g-open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgb(20 20 28 / .94); display: grid; grid-template-rows: 1fr auto; }
.lb-scroll { overflow: auto; display: grid; place-items: center; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.lightbox img { max-width: 100vw; max-height: 86dvh; object-fit: contain; cursor: zoom-in; }
.lightbox.zoom .lb-scroll { place-items: start; }
.lightbox.zoom img { max-width: none; max-height: none; width: 250vw; cursor: zoom-out; }
.lb-x { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 99px; border: 0;
  background: rgb(255 255 255 / .18); color: #fff; font-size: 18px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 64px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .14);
  color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
.lightbox.zoom .lb-nav { display: none; }
.lb-cap { margin: 0; padding: 10px 16px calc(env(safe-area-inset-bottom) + 14px); color: #d9d9e3; text-align: center; font-size: 13px; font-weight: 300; }
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; }
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox::backdrop { background: rgb(20 20 28 / .94); }
/* v2.6.7 — delete photo */
.gallery figure { position: relative; }
.g-del { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0 9px; border: 0; border-radius: 99px;
  background: rgb(255 255 255 / .92); color: #555; font: 400 13px/30px Poppins, sans-serif; box-shadow: 0 1px 4px rgb(0 0 0 / .18); cursor: pointer; }
.g-del.armed { background: #f9d6d5; color: #a33a36; }

/* v2.6.7 — Settings: one clean column of cards */
.settings { display: grid; gap: 14px; padding-bottom: 24px; }
.settings .sc { background: #fff; border: 1px solid var(--p-line, #ecebf3); border-radius: 22px; padding: 16px; display: grid; gap: 14px; }
.settings .sc-h { display: flex; gap: 12px; align-items: center; }
.settings .sc-h b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.settings .sc-h small { display: block; font-size: 13px; font-weight: 300; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.settings .sc-ic { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 19px; background: var(--t); }
.settings .sc-b { display: grid; gap: 12px; }
.settings label { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.settings input:not([type=checkbox]):not([type=file]), .settings select { width: 100%; min-width: 0; border-radius: 14px; padding: 12px 14px; font-size: 16px;
  font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--p-line, #ecebf3); box-shadow: none; }
.settings input:focus, .settings select:focus { outline: none; border-color: #c9c5f6; box-shadow: 0 0 0 3px #ecebfd; }
.settings .sr { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0; }
.settings .sr > span { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.settings .bt2, .settings .bt3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings .bt3 { grid-template-columns: 1fr 1fr 1fr; }
.settings .bt2 > :only-child { grid-column: 1 / -1; }
.settings .btn { min-height: 46px; padding: 10px 12px; font-size: 14px; font-weight: 400; line-height: 1.25; text-align: center; justify-content: center;
  display: flex; align-items: center; gap: 6px; white-space: normal; border-radius: 14px; margin: 0; }
.settings .hint { margin: 0; font-size: 13px; font-weight: 300; color: var(--ink-3); line-height: 1.5; }
.settings .status { display: flex; gap: 10px; align-items: center; background: #eef8f1; border-radius: 14px; padding: 10px 12px; }
.settings .status i { width: 9px; height: 9px; border-radius: 99px; background: #3aa76d; flex: none; }
.settings .status b { display: block; font-size: 14px; font-weight: 500; color: #23603f; }
.settings .status small { display: block; font-size: 12.5px; font-weight: 300; color: #4f7a62; }
.settings details.how { border-top: 1px solid var(--p-line, #ecebf3); padding-top: 10px; }
.settings details.how > summary { font-size: 13.5px; color: var(--ink-2); cursor: pointer; list-style: none; }
.settings details.how > summary::before { content: '›'; display: inline-block; margin-right: 8px; transition: rotate .15s; }
.settings details.how[open] > summary::before { rotate: 90deg; }
.settings details.how[open] > .sc-b, .settings details.how[open] > ol { margin-top: 12px; }
.settings .ws ul { margin: 6px 0 10px; padding-left: 4px; list-style: none; font-size: 14px; }
.settings .danger-zone { background: #fff7f7; border-color: #f6dede; }
.settings .dz-t { font-size: 14px; font-weight: 500; color: #a33a36; }
@media (max-width: 360px) { .settings .bt3 { grid-template-columns: 1fr; } }

/* v2.7.1 — collapsed category chips scroll up/down inside their box */
.chipwrap:not(.open) { max-height: 112px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: thin; }
.chipwrap:not(.open)::-webkit-scrollbar { width: 3px; }
.chipwrap:not(.open)::-webkit-scrollbar-thumb { background: #d9d6ea; border-radius: 9px; }
/* price match line on search results */
.card .phit { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; padding: 6px 10px; border-radius: 12px; background: #f1f7ef; font-size: 13px; }
.card .phit span { color: var(--ink-2); font-weight: 400; }
.card .phit b { color: #2f7a4c; font-weight: 500; }
.card .phit small { color: var(--ink-3); font-weight: 300; font-size: 12px; }
/* v2.7.2 — price box: list of matching options */
.card .phit { display: block; padding: 8px 12px; }
.card .phit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.card .phit li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card .phit li span { color: var(--ink-2); font-weight: 400; }
.card .phit li b { color: #2f7a4c; font-weight: 500; white-space: nowrap; }
.card .phit.open li + li { border-top: 1px dashed #d6e8d5; padding-top: 4px; }
.card .ph-more { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 400; cursor: pointer; }
.card .phit { box-sizing: border-box; max-width: 100%; }
.card .phit li span { flex: 1; min-width: 0; }
.card .phit li b { flex: none; padding-right: 2px; }

/* v2.8 — your own categories */
.settings .cc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--p-line, #ecebf3); border-radius: 16px;
  background: var(--t); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.settings .cc-ic { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.settings .cc-tx { flex: 1; min-width: 0; } .settings .cc-tx b { display: block; font-size: 15px; font-weight: 500; }
.settings .cc-tx small { display: block; font-size: 12.5px; font-weight: 300; color: var(--ink-2); }
.settings .cc-go { color: var(--c); font-size: 22px; }
.cc-ed .cc-lab { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.cc-ed .cc-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.cc-ed .cc-i { height: 42px; border-radius: 12px; border: 1px solid var(--p-line, #ecebf3); background: #fff; font-size: 20px; cursor: pointer; }
.cc-ed .cc-i.on { border-color: #8f86e6; box-shadow: 0 0 0 3px #ecebfd; }
.cc-ed .cc-own { margin-top: 8px; }
.cc-ed .cc-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-ed .cc-c { width: 36px; height: 36px; border-radius: 99px; border: 3px solid #fff; background: linear-gradient(135deg, var(--t) 50%, var(--c) 50%); box-shadow: 0 0 0 1px var(--p-line, #ecebf3); cursor: pointer; }
.cc-ed .cc-c.on { box-shadow: 0 0 0 2px var(--c); }
.cc-ed .cc-preview .tile { pointer-events: none; min-height: 0; }
.cc-ed .cc-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-ed .cc-fields .mchip input { position: absolute; opacity: 0; pointer-events: none; }
.cc-ed .cc-fields .mchip span { display: inline-block; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--p-line, #ecebf3); background: #fff; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.cc-ed .cc-fields .mchip input:checked + span { background: #ecebfd; border-color: #c9c5f6; color: #3d3a8c; }
.cc-ed .cc-fields .mchip { position: relative; }
.cc-ed > .btn.primary { min-height: 50px; }
.settings textarea { width: 100%; min-width: 0; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid var(--p-line, #ecebf3); box-shadow: none; outline: none; resize: vertical; }
.settings textarea:focus { border-color: #c9c5f6; box-shadow: 0 0 0 3px #ecebfd; }
.ai-err { grid-column: 1 / -1; flex-basis: 100%; margin: 0; padding: 10px 12px; border-radius: 14px; background: #fff3e6; color: #8a4b12; font-size: 13px; font-weight: 300; line-height: 1.45; }

/* v2.9 — wellness: opening hours, filters, booking */
.card .openln { display: flex; align-items: center; gap: 6px; margin: 3px 0 0; font-size: 12.5px; font-weight: 400; }
.card .openln i, .detail .openln i, .openln i { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.openln.on { color: #2f7a4c; } .openln.on i { background: #3aa76d; }
.openln.soon { color: #a8641c; } .openln.soon i { background: #e39b3a; }
.openln.off { color: var(--ink-3); } .openln.off i { background: #c9c7d3; }
.openln { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 6px; }
.wfilt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.wfilt .fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--p-line, #ecebf3);
  background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 400; cursor: pointer; }
.wfilt .fchip.on { background: #fadbe9; border-color: #f0b9d1; color: #8a2d5c; }
.wfilt .fchip.tm input { border: 0; background: transparent; font: inherit; font-size: 13px; color: inherit; padding: 0; width: 76px; min-height: 0; box-shadow: none; }
.wf-note { margin: -4px 0 10px; font-size: 12.5px; }
.bk .bk-to { margin: 0 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.bk .bk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk .seg { display: flex; flex-wrap: wrap; gap: 6px; background: none; padding: 0; }
.bk .seg button { flex: 1 1 0; min-height: 42px; border-radius: 12px; border: 1px solid var(--p-line, #ecebf3); background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.bk .seg button.on { background: #ecebfd; border-color: #c9c5f6; color: #3d3a8c; }
.bk .bk-p { background: #fff; border: 1px solid var(--p-line, #ecebf3); border-radius: 22px; padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 12px; }
.bk #bkPeople { display: block; }
.bk .hint.ok { color: #2f7a4c; } .bk .hint.warn { color: #a8641c; }
.bk textarea#bkMsg { font-size: 14px; line-height: 1.5; }
.bk .bk-go { min-height: 52px; background: #dff3e4 !important; color: #1f6b3d !important; font-size: 15px; }
.bk .bk-go img { vertical-align: middle; }
.bk .seg button { white-space: nowrap; padding: 0 8px; }
.bk .bk-n button:first-child { flex: 1.6 1 0; }

/* v3.0 — tidy price lists: names wrap, prices stay on one line */
.menu li { align-items: baseline; }
.menu li > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.menu li > span:last-child { flex: none; white-space: nowrap; text-align: right; padding-left: 8px; }
.menu li + li { border-top: 1px solid #f1f0f6; padding-top: 6px; margin-top: 4px; }
.wfilt .fchip.tm { position: relative; min-width: 120px; }
.wfilt .fchip.tm input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.wfilt .fchip.x { min-width: 36px; justify-content: center; padding: 6px 10px; }
.bk .bk-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.bk .bk-picks .fchip { border: 1px solid var(--p-line, #ecebf3); background: #fff; border-radius: 99px; padding: 6px 10px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }

/* v3.0 — travel dashboard */
.tv-mini { display: grid; gap: 8px; width: 100%; margin: 0 0 12px; padding: 14px 16px; border: 0; border-radius: 22px; background: #d4eef0; color: #1f5a60; text-align: left; font: inherit; cursor: pointer; }
.tv-mini-top { display: flex; justify-content: space-between; align-items: baseline; } .tv-mini-top b { font-size: 18px; font-weight: 600; } .tv-mini-top small { font-size: 13px; font-weight: 400; }
.tv-mini-cta { font-size: 12.5px; font-weight: 400; color: #2f7f86; }
.tv-bar { display: block; height: 10px; border-radius: 99px; background: rgb(255 255 255 / .75); overflow: hidden; }
.tv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5fb8a0, #2f7f86); }
.tv-bar.lg { height: 14px; } .tv-bar.sm { height: 6px; background: #eef3f4; }
.travel { display: grid; gap: 16px; }
.tv-hero { background: #fff; border-radius: 26px; padding: 20px 18px; border: 1px solid var(--p-line, #ecebf3); display: grid; gap: 10px; }
.tv-num b { font-size: 44px; font-weight: 600; color: #1f5a60; line-height: 1; } .tv-num span { font-size: 16px; color: var(--ink-3); margin-left: 6px; }
.tv-hero > p { margin: 0; font-size: 13.5px; color: var(--ink-2); font-weight: 400; }
.tv-hero .tv-bar { background: #e6f2f3; }
.tv-conts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.tv-cont { display: grid; gap: 4px; padding: 10px; border-radius: 16px; border: 1px solid var(--p-line, #ecebf3); background: #fbfbfd; text-align: left; font: inherit; cursor: pointer; }
.tv-cont span:first-child { font-size: 12.5px; color: var(--ink-2); } .tv-cont b { font-size: 15px; font-weight: 500; color: var(--ink); }
.tv-cont.on { border-color: #8cc9cf; background: #eef8f9; }
.tv-pick .hint { margin: 6px 0; font-size: 12.5px; }
.tv-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }
.tv-chip { border: 1px solid var(--p-line, #ecebf3); background: #fff; border-radius: 99px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tv-chip.on { background: #d4eef0; border-color: #9fd3d8; color: #1f5a60; font-weight: 500; }
.tv-sec { display: grid; gap: 10px; }
.tv-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tv-h h3 { margin: 0; font-size: 18px; font-weight: 600; } .tv-h h3 small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.tv-h-b { display: flex; gap: 6px; } .tv-h .seeall.add { background: #ecebfd; color: #3d3a8c; }
.tv-list { display: grid; gap: 8px; }
.tv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--p-line, #ecebf3); background: #fff; text-align: left; font: inherit; cursor: pointer; }
.tv-flag { font-size: 26px; line-height: 1; flex: none; }
.tv-tx { flex: 1; min-width: 0; display: grid; gap: 2px; border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer; }
.tv-tx b { font-size: 15px; font-weight: 500; color: var(--ink); } .tv-tx small { font-size: 12.5px; font-weight: 300; color: var(--ink-3); }
.tv-yr { font-size: 12px; color: var(--ink-3); flex: none; }
.tv-wish { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tv-wish li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--p-line, #ecebf3); }
.tv-rank { width: 30px; height: 30px; border-radius: 99px; background: #dbe7f8; color: #3f6fa8; display: grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; }
.tv-mv { display: flex; gap: 4px; flex: none; }
.tv-mv button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--p-line, #ecebf3); background: #fbfbfd; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.tv-mv button:disabled { opacity: .3; }
.kws.big .kw { font-size: 13.5px; padding: 6px 10px; }
/* documents */
.docs .wfilt { margin-bottom: 8px; }
.wfilt .fchip.add { background: #ecebfd; border-color: #c9c5f6; color: #3d3a8c; }
.doc-state { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; margin-bottom: 10px; }
.doc-state b { font-size: 15px; font-weight: 500; } .doc-state small { font-size: 12.5px; font-weight: 400; }
.doc-state.ok { background: #eef8f1; color: #23603f; } .doc-state.soon, .doc-state.warn { background: #fff3e6; color: #8a4b12; } .doc-state.out { background: #fdecec; color: #a33a36; }
.doc-no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.doc-no small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); }
.doc-no code { font-size: 18px; letter-spacing: .06em; background: #f4f3fa; padding: 6px 10px; border-radius: 10px; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }

/* v3.1 — family, health, bills, trips, PIN */
.fam-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.fam-strip::-webkit-scrollbar { display: none; }
.fam-chip { flex: none; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 10px 14px 10px 10px; border-radius: 20px; border: 1px solid var(--p-line, #ecebf3); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.fam-chip.add { background: #f6dcf1; border-color: #f0c6e8; }
.fam-ic { width: 40px; height: 40px; border-radius: 14px; background: #f6dcf1; display: grid; place-items: center; font-size: 20px; flex: none; }
.fam-chip.add .fam-ic { background: #fff; color: #a0478f; font-size: 22px; }
.fam-tx b { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); } .fam-tx small { display: block; font-size: 12px; font-weight: 300; color: var(--ink-3); }
.hl-mini { background: #dcefe3; color: #24573d; } .hl-mini .tv-mini-top small { color: #4f8a6a; }
.hl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hl-stats span { display: grid; font-size: 11.5px; font-weight: 400; color: #4f8a6a; } .hl-stats b { font-size: 16px; font-weight: 600; color: #24573d; }
.hl-hero .hl-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-alert { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff3e6; color: #8a4b12; font-size: 13px; font-weight: 400; }
.fam-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fam-facts > div { background: #fff; border: 1px solid var(--p-line, #ecebf3); border-radius: 14px; padding: 8px 12px; }
.row.wrap { flex-wrap: wrap; }
table.labs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.labs th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid #ecebf3; }
table.labs td { padding: 6px; border-bottom: 1px solid #f3f2f8; vertical-align: top; font-weight: 400; }
table.labs tr.flag td { background: #fff3e6; } table.labs .lf { font-size: 11px; color: #a33a36; font-weight: 600; }
ol.itin { margin: 0; padding-left: 18px; display: grid; gap: 6px; } ol.itin li b { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); } ol.itin li span { font-size: 14px; font-weight: 400; }
ul.chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.chk li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; }
.chk-b { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #c9c5f6; background: #fff; color: #fff; font-size: 14px; display: grid; place-items: center; cursor: pointer; flex: none; }
.chk-b.on { background: #6a5aa8; border-color: #6a5aa8; } ul.chk li:has(.chk-b.on) span { color: var(--ink-3); text-decoration: line-through; }
ul.trip-ready { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
ul.trip-ready li { padding: 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 400; background: #eef8f1; color: #23603f; }
ul.trip-ready li.soon { background: #fff8e6; color: #7a5a12; } ul.trip-ready li.warn, ul.trip-ready li.out { background: #fdecec; color: #a33a36; }
.bill-sum { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bill-sum > div { background: #fff; border: 1px solid var(--p-line, #ecebf3); border-radius: 16px; padding: 10px 12px; display: grid; gap: 2px; }
.bill-sum small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; } .bill-sum b { font-size: 16px; font-weight: 600; color: #8a4517; }
.tv-ct { display: flex; gap: 6px; }
.tv-ct button { flex: 1; min-height: 38px; border-radius: 12px; border: 1px solid var(--p-line, #ecebf3); background: #fff; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tv-ct button.on { background: #d4eef0; border-color: #9fd3d8; color: #1f5a60; }
dialog.pin-dlg { border: 0; padding: 0; width: min(360px, 92vw); border-radius: 28px; background: #fbfaff; }
dialog.pin-dlg::backdrop { background: rgb(40 36 60 / .45); }
dialog.pin-dlg.lock { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; display: grid; place-items: center; background: linear-gradient(160deg, #fbeff6, #eef0fd 60%, #eaf6f2); }
dialog.pin-dlg.lock::backdrop { background: #f3f1fa; }
.pin-box { display: grid; justify-items: center; gap: 14px; padding: 26px 22px; }
.pin-logo { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, #f8c8dc, #c8d0f8); }
.pin-t { margin: 0; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.pin-dots { display: flex; gap: 14px; }
.pin-dot { width: 14px; height: 14px; flex: 0 0 14px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #b9b2f0; }
.pin-dot.on { background: #4a43a0; border-color: #4a43a0; }
.pin-msg { min-height: 18px; margin: 0; font-size: 13px; color: #a33a36; text-align: center; max-width: 280px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; }
.pin-pad button { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgb(80 70 140 / .10); font: inherit; font-size: 26px; font-weight: 300; color: var(--ink); cursor: pointer; }
.pin-pad button.ghost { background: none; box-shadow: none; font-size: 15px; color: var(--ink-3); }
.pin-forgot { border: 0; background: none; font: inherit; font-size: 13px; color: #6a5aa8; cursor: pointer; }
body.locked #app, body.locked main, body.locked header { filter: blur(14px); }

/* ---------- v3.2: food log, vehicles, emergency card ---------- */
.fd-wrap { display: grid; gap: 8px; margin-bottom: 12px; }
.fd-today { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.fd-today small { color: var(--muted, #8a8a99); }
.fd-pill { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #f1e3d3; }
.fd-pill.at_home { background: #e9f6ee; border-color: #d2ecdc; }
.fd-pill.delivery { background: #fff4df; border-color: #f7e3bd; }
.fd-log { justify-self: start; }
.fd-hero .seg { margin-bottom: 12px; }
.fd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fd-stats div { background: #fff; border-radius: 14px; padding: 10px; text-align: center; }
.fd-stats b { display: block; font-size: 20px; font-weight: 500; }
.fd-stats small { font-size: 12px; color: var(--muted, #8a8a99); }
.tv-row .tv-rank { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fde4c8; color: #8a4d1a; font-size: 13px; font-weight: 500; }
.ml-where { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.ml-where button { border: 1.5px solid #ececf3; background: #fff; border-radius: 16px; padding: 12px 6px; font: inherit; font-size: 13px; display: grid; gap: 4px; justify-items: center; }
.ml-where button span { font-size: 24px; }
.ml-where button.on { border-color: #b26a2c; background: #fde4c8; }
.meal-form #mlQ { width: 100%; margin: 4px 0 8px; }
.meal-form .seg.wrap { flex-wrap: wrap; margin-bottom: 8px; }
.meal-form .fchip.tm input { border: 0; background: transparent; font: inherit; width: 125px; }
.tv-chip small { opacity: .7; margin-left: 2px; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.veh-grid .doc-state { margin: 0; }
.fam-chip.sos { background: #fde2e2; border-color: #f6c9c9; }
.sos-head { background: #fde2e2; border-radius: 20px; padding: 16px; margin-bottom: 12px; }
.sos-head h2 { margin: 0 0 4px; font-weight: 500; }
.sos-head p { margin: 0 0 12px; font-size: 13.5px; color: #7a3b3b; }
.sos-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sos-num { background: #fff; border-radius: 14px; padding: 8px 4px; text-align: center; text-decoration: none; color: #b23b3b; }
.sos-num b { display: block; font-size: 20px; font-weight: 600; }
.sos-num small { font-size: 11px; color: #7a5b5b; }
.sos-card { background: #fff; border: 1px solid #f0e4e4; border-radius: 20px; padding: 14px; margin-bottom: 10px; }
.sos-card .sos-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sos-card .sos-top h3 { margin: 0; font-weight: 500; font-size: 17px; }
.sos-card .sos-top small { color: var(--muted, #8a8a99); }
.sos-card .sos-top > div { flex: 1; }
.sos-ic { font-size: 26px; }
.sos-blood { background: #b23b3b; color: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 600; font-size: 16px; }
.sos-l { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed #f1e6e6; }
.sos-l > span { width: 22px; text-align: center; }
.sos-l small { display: block; font-size: 11.5px; color: var(--muted, #8a8a99); }
.sos-l b { font-weight: 500; font-size: 14px; }
.sos-l.bad b { color: #b23b3b; }
.sos-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sos-foot { text-align: center; }
.pin-low { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.pin-sos { border: 0; background: #fde2e2; color: #b23b3b; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; }
.pin-box.sos-lock { max-height: 90vh; overflow: auto; text-align: left; }
.pin-box.sos-lock .travel { margin-top: 10px; }
.meal-form .seg.wrap { align-items: center; }
.meal-form .seg.wrap button { padding: 8px 14px; }

/* ---------- v3.3: staff, stock, meters, hubs, helper mode ---------- */
.hub-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.hub-tabs button small { opacity: .6; margin-left: 2px; }
.tile.hub .tile-tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-chip.off { opacity: .6; }
.st-top { margin-bottom: 10px; }
.st-box { background: #fff; border: 1px solid #efeff5; border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.st-box > b { display: block; font-weight: 500; margin-bottom: 6px; }
.st-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.st-h b { font-weight: 500; }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.st-h .fchip.tm input { border: 0; background: transparent; font: inherit; width: 120px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.st-grid .st-box { margin: 0; }
.pay-r { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13.5px; border-top: 1px dashed #f0f0f5; }
.pay-r:first-of-type { border-top: 0; }
.pay-r b { font-weight: 500; }
.pay-r.minus b { color: #b23b3b; }
.pay-r.plus b { color: #2f7f52; }
.pay-r.total { border-top: 1px solid #e4e4ee; margin-top: 2px; }
.pay-r.total b { font-weight: 600; }
.st-box .btn { margin-top: 8px; }
.st-score { display: flex; align-items: baseline; gap: 8px; }
.st-score b { font-size: 28px; font-weight: 600; }
.st-score.good b { color: #2f7f52; } .st-score.ok b { color: #b08a2c; } .st-score.bad b { color: #b23b3b; }
.st-note { font-size: 12.5px; margin: 4px 0 0; color: #555; }
.st-types { margin-bottom: 10px; }
.st-log time { white-space: nowrap; }
.stk-need { background: #fff4df; border: 1px solid #f7e3bd; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.stk-need.ok { background: #e9f6ee; border-color: #d2ecdc; }
.stk-need b { font-weight: 500; }
.stk-need p { margin: 4px 0 8px; font-size: 13.5px; }
.stk-list { display: grid; gap: 8px; }
.stk { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n q" "r q"; gap: 6px 10px; align-items: center; background: #fff; border: 1px solid #efeff5; border-radius: 18px; padding: 12px; }
.stk.out { border-color: #f3c7c7; background: #fff7f7; } .stk.warn { border-color: #f7e3bd; background: #fffaf0; }
.stk-name { grid-area: n; text-align: left; border: 0; background: none; padding: 0; font: inherit; }
.stk-name b { display: block; font-weight: 500; font-size: 15px; }
.stk-name small { color: var(--muted, #8a8a99); font-size: 12.5px; }
.stk-qty { grid-area: q; display: flex; align-items: center; gap: 6px; }
.stk-qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eef0fb; font-size: 22px; line-height: 1; color: #4a5fb0; }
.stk-qty span { min-width: 44px; text-align: center; display: grid; }
.stk-qty span b { font-size: 20px; font-weight: 600; }
.stk-qty span small { font-size: 11px; color: var(--muted, #8a8a99); }
.stk-rs { grid-area: r; justify-self: start; margin: 0 !important; }
.ut-rep { display: grid; gap: 6px; }
.ut-row { display: grid; grid-template-columns: 52px 1fr auto 56px; align-items: center; gap: 8px; font-size: 13px; }
.ut-bar { height: 10px; background: #f1f1f6; border-radius: 6px; overflow: hidden; }
.ut-bar i { display: block; height: 100%; background: #d9c98a; border-radius: 6px; }
.ut-row.waste .ut-bar i { background: #e59a9a; } .ut-row.thrift .ut-bar i { background: #8fcfa8; }
.ut-v { text-align: right; display: grid; } .ut-v b { font-weight: 500; } .ut-v small { color: var(--muted, #8a8a99); font-size: 11.5px; }
.ut-l { font-size: 12px; } .ut-l small { color: var(--muted, #8a8a99); }
body.helper #chips, body.helper .search, body.helper #crumb, body.helper .chip-row { display: none !important; }
body.helper .stk-qty button { width: 48px; height: 48px; }
.st-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pay-r b { white-space: nowrap; }
.pay-r span { min-width: 0; }

/* ---------- v3.3.1: phone layout fixes ---------- */
.sheet, .sheet .sh-body, #sheetBody { overflow-x: hidden; }
.form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form .fld, .form .fld > label { min-width: 0; }
.form input, .form select, .form textarea, .settings input, .settings select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
input[type=date], input[type=time], input[type=month] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 46px; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
.form .fld input, .form .fld select { min-height: 46px; padding: 10px 14px; font-size: 16px; }
.form .fld.half select, .form .fld.half input { padding: 10px 12px; }
.form .fld > label { font-size: 13px; line-height: 1.3; align-content: end; }
.chipwrap:not(.open) { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: none; }
.chipwrap:not(.open)::-webkit-scrollbar { display: none; }
.chipwrap:not(.open) .chip { flex: none; }
.search input { text-overflow: ellipsis; }
.back-btn { border: 0; background: #fff; border: 1px solid #ececf3; border-radius: 99px; padding: 8px 16px; font: inherit; font-size: 14px; color: var(--ink-2); margin: 0 0 12px; box-shadow: 0 1px 4px rgb(44 47 63 / .06); cursor: pointer; }
.list > .back-btn, .groups > .back-btn, .cdir > .back-btn, .stock > .back-btn, .wallet > .back-btn { grid-column: 1 / -1; justify-self: start; }
