/* BillBell — warm ledger paper, deep teal ink, amber bell. */
:root {
  --bg: #f4f1e8;
  --bg-2: #ebe6d8;
  --card: #fffdf8;
  --ink: #18302d;
  --ink-2: #4e625f;
  --ink-3: #7d8c89;
  --line: #e2dccb;
  --brand: #0f4c47;
  --brand-2: #16685f;
  --brand-ink: #ffffff;
  --amber: #e29a2d;
  --amber-soft: #fbecd2;
  --red: #c8433f;
  --red-soft: #fbe3e0;
  --green: #2c8155;
  --green-soft: #def1e5;
  --blue: #3567b5;
  --blue-soft: #e1eaf8;
  --shadow: 0 1px 2px rgba(24, 48, 45, .06), 0 6px 20px rgba(24, 48, 45, .06);
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101614; --bg-2: #18201e; --card: #1a2321; --ink: #e8efec; --ink-2: #aab9b5; --ink-3: #7a8a86;
    --line: #2a3533; --brand: #5cc2b4; --brand-2: #7ad3c6; --brand-ink: #0b1f1c;
    --amber: #f0b356; --amber-soft: #3a2f1c; --red: #ff7b72; --red-soft: #3b201f;
    --green: #5fc48b; --green-soft: #183126; --blue: #82a9ea; --blue-soft: #1c2a40;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101614; --bg-2: #18201e; --card: #1a2321; --ink: #e8efec; --ink-2: #aab9b5; --ink-3: #7a8a86;
  --line: #2a3533; --brand: #5cc2b4; --brand-2: #7ad3c6; --brand-ink: #0b1f1c;
  --amber: #f0b356; --amber-soft: #3a2f1c; --red: #ff7b72; --red-soft: #3b201f;
  --green: #5fc48b; --green-soft: #183126; --blue: #82a9ea; --blue-soft: #1c2a40;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-2); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: .85rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 8px; }

/* ---------- layout */
#app { max-width: 640px; margin: 0 auto; padding: calc(var(--safe-t) + 8px) 16px calc(96px + var(--safe-b)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 14px; }
.topbar h1 { font-size: 1.55rem; margin: 0; letter-spacing: -.02em; }
.topbar .sub { font-size: .9rem; color: var(--ink-2); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe-b));
  display: flex; justify-content: center;
}
.tabbar-inner { display: flex; width: 100%; max-width: 560px; justify-content: space-around; }
.tab { flex: 1; border: 0; background: none; padding: 6px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--ink-3); cursor: pointer; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--brand); font-weight: 600; }

.fab {
  position: fixed; right: max(16px, calc(50% - 304px)); bottom: calc(80px + var(--safe-b)); z-index: 21;
  width: 58px; height: 58px; border-radius: 20px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 24px rgba(15, 76, 71, .35);
  display: grid; place-items: center;
}
.fab svg { width: 28px; height: 28px; }

/* ---------- cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2, .section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; font-weight: 700; }
.section-title { margin: 22px 4px 8px; display: flex; justify-content: space-between; align-items: center; }
.section-title a, .section-title button { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; background: none; border: 0; color: var(--brand-2); cursor: pointer; padding: 0; }

.hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.hero h2 { color: color-mix(in srgb, var(--brand-ink) 70%, transparent); }
.hero .big { font-size: 2.4rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.hero .row { display: flex; gap: 10px; margin-top: 14px; }
.hero .pill { flex: 1; background: color-mix(in srgb, var(--brand-ink) 12%, transparent); border-radius: 12px; padding: 8px 10px; }
.hero .pill small { display: block; font-size: .72rem; opacity: .8; }
.hero .pill strong { font-size: 1.02rem; }
.hero .bell-bg { position: absolute; right: -18px; top: -14px; width: 120px; height: 120px; opacity: .1; }
.progress { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand-ink) 18%, transparent); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width .4s; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--brand-2); }
.meter.over > i { background: var(--red); }

.banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.banner.warn { background: var(--red-soft); color: var(--red); }
.banner.info { background: var(--blue-soft); color: var(--blue); }
.banner.amber { background: var(--amber-soft); color: color-mix(in srgb, var(--amber) 60%, var(--ink)); }
.banner.good { background: var(--green-soft); color: var(--green); }
.banner .b-body { flex: 1; }
.banner button { margin-top: 8px; }
.banner .x { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; padding: 0 2px; }

/* ---------- bill rows */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; }
.row-item:last-child { border-bottom: 0; }
.row-item:active { background: var(--bg-2); }
.cat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; background: var(--bg-2); }
.row-main { flex: 1; min-width: 0; }
.row-main .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .s { font-size: .82rem; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-amt { text-align: right; font-weight: 650; }
.row-amt .s { font-size: .78rem; font-weight: 500; }
.due-over { color: var(--red); font-weight: 600; }
.due-soon { color: color-mix(in srgb, var(--amber) 70%, var(--ink)); font-weight: 600; }
.paid-txt { color: var(--green); font-weight: 600; }
.tag { font-size: .7rem; padding: 1px 7px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.tag.auto { background: var(--blue-soft); color: var(--blue); }
.tag.paid { background: var(--green-soft); color: var(--green); }
.tag.over { background: var(--red-soft); color: var(--red); }
.check-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; flex: none; color: var(--ink-3); }
.check-btn svg { width: 20px; height: 20px; }
.check-btn:hover, .check-btn:focus-visible { border-color: var(--green); color: var(--green); }
.check-btn.done { background: var(--green); border-color: var(--green); color: #fff; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.empty .e-icon { font-size: 2.2rem; margin-bottom: 6px; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 650; cursor: pointer; background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--bg-2); color: var(--ink); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.green { background: var(--green); color: #fff; }
.btn.small { padding: 8px 12px; font-size: .88rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 1; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { border-color: var(--brand-2); outline: none; }
textarea.input { min-height: 80px; resize: vertical; }
.field-row { display: flex; gap: 10px; }
.field-row > .field { flex: 1; min-width: 0; }
.money-wrap { position: relative; }
.money-wrap .sym { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.money-wrap .input { padding-left: 30px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle .tl { flex: 1; }
.toggle .tl small { display: block; color: var(--ink-3); font-size: .8rem; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--card); padding: 7px 13px; border-radius: 99px; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.search .input { padding-left: 40px; }
.seg { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- sheet (modal) */
.sheet-back { position: fixed; inset: 0; background: rgba(10, 20, 18, .45); z-index: 40; opacity: 0; transition: opacity .2s; }
.sheet-back.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0 auto; max-width: 640px;
  background: var(--card); border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 8px 18px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .25s ease-out;
}
.sheet.open { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.sheet-head h3 { margin: 0; font-size: 1.2rem; }
.sheet-close { background: var(--bg-2); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; flex: none; }

.detail-amt { font-size: 2.2rem; font-weight: 750; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0; font-size: .93rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 550; overflow-wrap: anywhere; }
.notes { background: var(--bg); border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; font-size: .92rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.receipt-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.receipt-full { width: 100%; border-radius: 12px; }

/* ---------- toast */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(92px + var(--safe-b)); z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); pointer-events: auto; max-width: 520px; animation: toastIn .2s ease-out; font-size: .95rem; }
.toast.error { background: var(--red); color: #fff; }
.toast button { background: none; border: 0; color: var(--amber); font-weight: 700; cursor: pointer; padding: 0; }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

/* ---------- calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { margin: 0; font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-3); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / 1.05; border-radius: 12px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 3px; font-size: .9rem; color: var(--ink); }
.cal-day.other { color: var(--ink-3); opacity: .45; }
.cal-day.today { background: var(--bg-2); font-weight: 800; }
.cal-day[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 30px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.over { background: var(--red); } .dot.due { background: var(--amber); } .dot.paid { background: var(--green); } .dot.pay { background: var(--blue); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- plan */
.period { border-left: 4px solid var(--blue); padding: 2px 0 2px 12px; margin: 6px 0 16px; }
.period.pre { border-color: var(--amber); }
.period.short { border-color: var(--red); }
.period-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.period-head strong { font-size: 1.02rem; }
.period ul { list-style: none; margin: 8px 0; padding: 0; font-size: .9rem; }
.period li { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); gap: 10px; }
.period .left { display: flex; justify-content: space-between; font-weight: 700; padding-top: 6px; border-top: 1px dashed var(--line); }
.pos { color: var(--green); } .neg { color: var(--red); }

/* ---------- charts */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 11px; }
.chart .bar-in { fill: var(--green); } .chart .bar-out { fill: var(--amber); } .chart .bar-paid { fill: var(--brand-2); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.hbar { margin: 10px 0; }
.hbar-top { display: flex; justify-content: space-between; font-size: .9rem; gap: 8px; }

/* ---------- auth */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 420px; margin: 0 auto; padding: 24px 20px calc(24px + var(--safe-b)); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 26px; text-align: center; }
.brand img { width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--shadow); }
.brand h1 { margin: 6px 0 0; font-size: 1.9rem; letter-spacing: -.03em; }
.brand p { margin: 0; color: var(--ink-2); }
.auth .switch-link { text-align: center; margin-top: 18px; font-size: .95rem; }
.auth .switch-link button { background: none; border: 0; color: var(--brand-2); font-weight: 700; cursor: pointer; padding: 4px; }
.auth .legal { text-align: center; font-size: .8rem; color: var(--ink-3); margin-top: 20px; }
.err-msg { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .92rem; }
.ok-msg { background: var(--green-soft); color: var(--green); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .92rem; }

.member { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber-soft); color: color-mix(in srgb, var(--amber) 60%, var(--ink)); display: grid; place-items: center; font-weight: 800; flex: none; }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: .18em; font-weight: 700; background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; margin: 8px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.4rem; }
.stat small { color: var(--ink-3); }
.offline-pill { position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--bg); font-size: .8rem; padding: 5px 12px; border-radius: 99px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Keep toasts out of the way while a sheet is open */
body:has(.sheet.open) .toast-wrap { bottom: auto; top: calc(var(--safe-t) + 12px); }

/* =================================================================== landing page */
.lp { max-width: 1080px; margin: 0 auto; padding: calc(var(--safe-t) + 6px) 18px calc(30px + var(--safe-b)); }
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.lp-logo img { border-radius: 10px; }
.lp-hero { display: grid; gap: 34px; align-items: center; padding: 26px 0 40px; }
.lp-kicker { display: inline-block; background: var(--amber-soft); color: color-mix(in srgb, var(--amber) 55%, var(--ink)); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 99px; }
.lp-hero h1 { font-size: clamp(2.3rem, 9vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; margin: 16px 0 14px; }
.lp-lead { font-size: 1.08rem; color: var(--ink-2); line-height: 1.55; margin: 0; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-big { padding: 15px 22px; font-size: 1.05rem; border-radius: 14px; }
.lp-cta .lp-big:first-child { box-shadow: 0 10px 26px rgba(15, 76, 71, .28); }
.lp-small { font-size: .85rem; color: var(--ink-3); margin-top: 14px; }
.lp-link { background: none; border: 0; color: var(--brand-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* phone mockup */
.lp-phone { position: relative; width: min(300px, 82vw); margin: 0 auto; aspect-ratio: 9 / 18.5; background: #121a18; border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px rgba(15, 40, 36, .28), inset 0 0 0 2px #2b3533; transform: rotate(-2deg); }
.lp-screen { height: 100%; background: #f4f1e8; border-radius: 32px; padding: 46px 12px 12px; overflow: hidden; color: #18302d; font-size: 12px; }
.lp-s-greet { font-weight: 800; font-size: 16px; margin-bottom: 10px; letter-spacing: -.02em; }
.lp-s-hero { background: #0f4c47; color: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.lp-s-hero small { opacity: .75; font-size: 9px; letter-spacing: .08em; font-weight: 700; }
.lp-s-hero strong { display: block; font-size: 24px; letter-spacing: -.03em; margin: 2px 0 6px; }
.lp-s-bar { height: 6px; background: rgba(255,255,255,.2); border-radius: 9px; overflow: hidden; }
.lp-s-bar i { display: block; width: 38%; height: 100%; background: #e29a2d; border-radius: 9px; }
.lp-s-pills { display: flex; gap: 6px; margin-top: 8px; }
.lp-s-pills span { flex: 1; background: rgba(255,255,255,.12); border-radius: 9px; padding: 5px 7px; font-weight: 700; }
.lp-s-pills small { display: block; font-size: 8px; opacity: .8; font-weight: 500; letter-spacing: 0; }
.lp-s-row { display: flex; align-items: center; gap: 8px; background: #fffdf8; border-radius: 12px; padding: 8px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lp-s-ic { width: 28px; height: 28px; border-radius: 8px; background: #ebe6d8; display: grid; place-items: center; font-size: 14px; }
.lp-s-t { flex: 1; font-weight: 700; display: flex; flex-direction: column; }
.lp-s-t small { font-weight: 500; color: #4e625f; font-size: 10px; }
.lp-s-t small.soon { color: #a8711c; font-weight: 700; }
.lp-s-t small.over { color: #c8433f; font-weight: 700; }
.lp-notif { position: absolute; left: -14px; right: -14px; top: 30px; z-index: 2; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 18px; padding: 10px 12px; box-shadow: 0 14px 34px rgba(0,0,0,.2); color: #18302d; font-size: 12px; animation: lpDrop 3.6s ease-in-out infinite; transform: rotate(2deg); }
.lp-notif img { width: 32px; height: 32px; border-radius: 8px; }
.lp-notif div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.lp-notif em { font-style: normal; color: #7d8c89; font-size: 11px; align-self: flex-start; }
@keyframes lpDrop { 0%, 8% { opacity: 0; transform: translateY(-16px) rotate(2deg); } 16%, 78% { opacity: 1; transform: translateY(0) rotate(2deg); } 90%, 100% { opacity: 0; transform: translateY(-8px) rotate(2deg); } }

.lp-section { padding: 34px 0; }
.lp-section h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -.035em; margin: 0 0 20px; line-height: 1.1; }
.lp-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lp-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.lp-card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.lp-card p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.lp-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--bg-2); display: grid; place-items: center; font-size: 1.35rem; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-steps li { display: flex; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.lp-steps li > span { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.lp-steps h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.lp-steps p { margin: 0; color: var(--ink-2); }
.lp-split { display: grid; gap: 22px; align-items: center; }
.lp-plan { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px 22px; border-left: 5px solid var(--blue); }
.lp-plan-head { display: flex; justify-content: space-between; font-size: 1.05rem; }
.lp-plan small { color: var(--ink-3); }
.lp-plan ul { list-style: none; padding: 0; margin: 10px 0; }
.lp-plan li { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lp-plan-left { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 8px; }
.lp-faq details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 0 16px; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brand-2); font-size: 1.3rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.55; }
.lp-final { text-align: center; background: var(--brand); color: var(--brand-ink); border-radius: 26px; padding: 38px 20px; margin: 30px 0 10px; }
.lp-final img { border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.lp-final h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); letter-spacing: -.035em; margin: 14px 0 6px; }
.lp-final p { opacity: .85; margin: 0; }
.lp-final .lp-cta { justify-content: center; }
.lp-final .btn:not(.ghost) { background: var(--amber); color: #1d1408; }
.lp-final .btn.ghost { background: color-mix(in srgb, var(--brand-ink) 14%, transparent); color: var(--brand-ink); }
.lp-foot { text-align: center; color: var(--ink-3); font-size: .9rem; padding: 18px 0; }
.lp-foot a, .lp-foot .lp-link { color: var(--ink-2); }

/* install guide sheet */
.lp-howto { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.lp-howto li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.lp-howto-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.lp-addbox { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 6px; font-size: .8rem; vertical-align: -4px; }
.lp-arrow { text-align: center; font-weight: 700; color: var(--amber); animation: lpBounce 1.4s ease-in-out infinite; margin: 6px 0 10px; }
@keyframes lpBounce { 50% { transform: translateY(6px); } }

@media (min-width: 720px) {
  .lp-hero { grid-template-columns: 1.15fr .85fr; padding: 50px 0 60px; }
  .lp-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 520px) and (max-width: 719px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
.lp-arrow { text-align: right; padding-right: 6px; }
.lp-dots { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 8px; background: var(--bg-2); color: var(--ink); font-weight: 900; vertical-align: middle; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .92rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.agree input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--brand); }

/* fuller phone mockup */
.lp-screen { position: relative; padding: 40px 10px 54px; font-size: 11px; }
.lp-s-greet { font-size: 14px; margin-bottom: 7px; display: flex; flex-direction: column; }
.lp-s-greet small { font-size: 9px; color: #4e625f; font-weight: 500; letter-spacing: 0; }
.lp-s-hero { padding: 9px 10px; margin-bottom: 6px; border-radius: 14px; }
.lp-s-hero strong { font-size: 20px; margin: 1px 0 4px; }
.lp-s-sub { font-size: 8px; opacity: .85; margin-top: 4px; }
.lp-s-pills { margin-top: 6px; }
.lp-s-pills span { padding: 4px 6px; font-size: 10px; }
.lp-s-label { font-size: 7.5px; font-weight: 800; letter-spacing: .1em; color: #7d8c89; margin: 7px 2px 3px; display: flex; gap: 5px; align-items: center; }
.lp-s-label em { font-style: normal; background: #fbe3e0; color: #c8433f; border-radius: 99px; padding: 0 5px; }
.lp-s-row { padding: 5px 6px; margin-bottom: 3px; border-radius: 10px; gap: 6px; }
.lp-s-ic { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; flex: none; }
.lp-s-t { font-size: 10.5px; min-width: 0; }
.lp-s-t small { font-size: 8.5px; display: flex; gap: 3px; align-items: center; }
.lp-s-t small.paid { color: #2c8155; font-weight: 700; }
.lp-s-tag { background: #e1eaf8; color: #3567b5; border-radius: 99px; padding: 0 4px; font-size: 7px; font-weight: 700; }
.lp-s-row b { font-size: 10.5px; }
.lp-s-chk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #e2dccb; flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; }
.lp-s-chk.done { background: #2c8155; border-color: #2c8155; }
.lp-s-paid { opacity: .75; }
.lp-s-pay { display: flex; justify-content: space-between; background: #fffdf8; border-radius: 10px; padding: 6px 8px; font-weight: 800; font-size: 10.5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lp-s-pay span { display: flex; flex-direction: column; }
.lp-s-pay span:last-child { text-align: right; }
.lp-s-pay small { font-size: 8px; color: #7d8c89; font-weight: 500; }
.lp-s-fab { position: absolute; right: 12px; bottom: 50px; width: 32px; height: 32px; border-radius: 11px; background: #0f4c47; color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 600; box-shadow: 0 6px 14px rgba(15,76,71,.35); }
.lp-s-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: rgba(255,253,248,.96); border-top: 1px solid #e2dccb; display: flex; justify-content: space-around; align-items: center; padding-bottom: 6px; }
.lp-s-tabs span { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: #7d8c89; line-height: 1.1; }
.lp-s-tabs small { font-size: 7px; }
.lp-s-tabs .on { color: #0f4c47; font-weight: 800; }

/* =================================================== landing polish: contrast, outline button, motion */
.lp-kicker { color: #7a4e0f; }
:root[data-theme="dark"] .lp-kicker { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-kicker { color: var(--amber); } }
.lp-lead { color: var(--ink); opacity: .86; }
.lp-small { color: var(--ink-2); }
.lp-small strong { color: var(--ink); }
.btn.lp-outline { background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn.lp-outline:hover { background: color-mix(in srgb, var(--brand) 8%, var(--card)); }

/* entrance */
.lp-in { animation: lpUp .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes lpUp { from { opacity: 0; transform: translateY(16px); } }

/* swoosh under "again." */
.lp-swoosh { position: relative; white-space: nowrap; display: inline-block; }
.lp-swoosh svg { position: absolute; left: -2%; bottom: -.36em; width: 104%; height: .26em; overflow: visible; }
.lp-hero h1 { margin-bottom: 26px; }
.lp-swoosh path { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: lpDraw 1s .75s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes lpDraw { to { stroke-dashoffset: 0; } }

/* ringing bell */
.lp-ring { display: inline-block; transform-origin: 50% 10%; animation: lpRing 4.5s 1.4s ease-in-out infinite; }
@keyframes lpRing { 0%, 12%, 100% { transform: rotate(0); } 2% { transform: rotate(16deg); } 4% { transform: rotate(-14deg); } 6% { transform: rotate(10deg); } 8% { transform: rotate(-6deg); } 10% { transform: rotate(3deg); } }

/* hero glow + floating phone */
.lp-hero { position: relative; }
.lp-glow { position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 28%, transparent) 0%, color-mix(in srgb, var(--brand-2) 14%, transparent) 45%, transparent 70%); filter: blur(10px); animation: lpDrift 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes lpDrift { to { transform: translate(-40px, 30px) scale(1.08); } }
html.on-landing, html.on-landing body { overflow-x: clip; }
.lp-phone { animation: lpUp 1s .35s cubic-bezier(.2, .7, .2, 1) both, lpFloat 7s 1.4s ease-in-out infinite; }
@keyframes lpFloat { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
.lp-s-bar i { animation: lpFill 1.6s 1.1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes lpFill { from { width: 0; } }

/* scroll reveal (only when JS turns it on) */
.lp-js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.lp-js .lp-reveal.in { opacity: 1; transform: none; }

/* final call-to-action box */
.lp-final { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--amber) 22%, var(--brand)) 0%, var(--brand) 55%, color-mix(in srgb, black 18%, var(--brand)) 100%); padding: 46px 20px 42px; }
.lp-final::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--brand-ink) 9%, transparent) 1px, transparent 1px); background-size: 18px 18px; mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 75%); pointer-events: none; }
.lp-final > * { position: relative; }
.lp-deco { position: absolute !important; font-size: 140px; opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none; }
.lp-deco1 { left: -26px; top: -20px; transform: rotate(-18deg); }
.lp-deco2 { right: -30px; bottom: -40px; transform: rotate(14deg); }
.lp-final-icon { animation: lpRing 4.5s 2s ease-in-out infinite; transform-origin: 50% 15%; }
.lp-trust { list-style: none; padding: 0; margin: 18px 0 4px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-weight: 600; font-size: .95rem; }
.lp-trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--amber); color: #1d1408; font-size: .72rem; font-weight: 900; }
.lp-final .btn:not(.lp-outline) { animation: lpPulse 2.8s ease-in-out infinite; }
@keyframes lpPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.lp-final .btn.lp-outline { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-ink) 85%, transparent); }
.lp-final .btn.lp-outline:hover { background: color-mix(in srgb, var(--brand-ink) 10%, transparent); }

.lp-arrow.lp-arrow-up { text-align: right; margin: 0 0 12px; }

/* clearer selected state for segmented buttons (esp. dark mode) */
.seg button[aria-pressed="true"] { color: var(--brand); box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 55%, transparent); }

/* left-to-spend card + 5-tab money switcher */
.spend-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; cursor: pointer; }
.spend-big { display: block; font-size: 2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.spend-break { margin-top: 4px; }
.spend-card .btn-row { margin-top: 12px; }
.seg button { padding: 8px 2px; font-size: .84rem; }
.seg { gap: 2px; }
.seg button { padding: 8px 0; font-size: .8rem; letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 420px) { .seg button { font-size: .88rem; } }

.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-back { touch-action: none; }

/* help */
.help-card { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.help-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 900; font-size: 1.25rem; }
.help-txt { flex: 1; display: flex; flex-direction: column; }
.help-txt small { color: var(--ink-3); font-size: .85rem; }
.help-go { font-size: 1.6rem; color: var(--ink-3); line-height: 1; }
.help-sec { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; padding: 0 14px; background: var(--card); }
.help-sec summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.help-sec summary::-webkit-details-marker { display: none; }
.help-sec summary::after { content: "+"; margin-left: auto; color: var(--brand-2); font-size: 1.3rem; line-height: 1; }
.help-sec[open] summary::after { content: "–"; }
.help-body { padding: 0 0 14px; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.help-body p { margin: 0 0 10px; }
.help-body ul, .help-body ol { margin: 0 0 10px; padding-left: 20px; }
.help-body li { margin: 4px 0; }
.help-body strong { color: var(--ink); }
.help-jump { margin-top: 2px; }
.help-contact { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--bg); }
.help-contact p { margin: 4px 0 12px; }

/* getting-started checklist */
.checklist .ck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.checklist .ck-hide { background: none; border: 0; color: var(--ink-3); font-weight: 600; cursor: pointer; padding: 2px 4px; }
.checklist ul { list-style: none; margin: 10px 0 0; padding: 0; }
.checklist li { border-top: 1px solid var(--line); }
.checklist li > button, .checklist li.done { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.checklist li.done { color: var(--ink-3); text-decoration: line-through; cursor: default; }
.ck-box { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
.checklist li.done .ck-box { background: var(--green); border-color: var(--green); color: #fff; text-decoration: none; }
.ck-go { margin-left: auto; color: var(--brand-2); font-size: 1.3rem; line-height: 1; }
.help-ic-alt { background: var(--amber-soft); font-size: 1.15rem; }
/* admin feedback */
.fb-item { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.fb-item:last-child { border-bottom: 0; }
.fb-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.fb-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-shots { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-shots img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.fb-meta { font-size: .78rem; overflow-wrap: anywhere; }
.fb-item .btn { justify-self: start; }

/* devices */
.dev-list { box-shadow: none; border: 1px solid var(--line); }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dev-row:last-child { border-bottom: 0; }
.dev-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.dev-main { flex: 1; min-width: 0; }
.dev-main .t { font-weight: 600; }
.dev-main .s { font-size: .82rem; }

/* keep the + button from covering the last card */
#app { padding-bottom: calc(160px + var(--safe-b)); }
@media (min-width: 820px) {
  .fab { right: calc(50% - 320px - 82px); bottom: calc(96px + var(--safe-b)); }
}

/* home header: greeting left, date right */
.home-top { min-height: 92px; padding: 20px 0 22px; gap: 14px; }
.home-top .greet { font-size: 1.75rem; line-height: 1.15; margin: 0; flex: 1 1 auto; min-width: 0; letter-spacing: -.03em; }
.home-top .today { font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink-2); white-space: nowrap; text-align: right; }
.home-top .d-short { display: none; }
@media (max-width: 640px) {
  .home-top { min-height: 76px; padding: 14px 0 18px; gap: 10px; }
  .home-top .greet { font-size: 1.45rem; }
  .home-top .today { font-size: 1.05rem; font-weight: 700; }
  .home-top .d-long { display: none; }
  .home-top .d-short { display: inline; }
}

.sheet { padding-top: 18px; }

.lp-maker { margin-top: 10px; font-size: .82rem; color: var(--ink-3); }
.lp-maker a { color: var(--ink-2); font-weight: 600; }

/* account button */
.me-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; flex: none; cursor: pointer; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow); position: relative; }
.me-btn.syncing::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid transparent; border-top-color: var(--amber); animation: spin 1s linear infinite; }
.me-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.me-big { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: none; }
.me-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.me-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.me-item:last-child { border-bottom: 0; color: var(--red); }
.me-item:active { background: var(--bg-2); }
.me-ic { width: 26px; text-align: center; }
/* lock screen */
.lock-screen { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 20px calc(var(--safe-b) + 20px); overflow-y: auto; }
.lock-inner { width: 100%; max-width: 320px; text-align: center; }
.lock-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow); }
.lock-inner h2 { margin: 14px 0 4px; font-size: 1.3rem; }
.lock-sub { margin: 0; color: var(--ink-2); min-height: 1.4em; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 22px 0 6px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); transition: background .1s; }
.pin-dots i.on { background: var(--brand); border-color: var(--brand); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-err { color: var(--red); min-height: 1.4em; margin: 4px 0 10px; font-size: .9rem; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.keypad button { height: 64px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 1.5rem; font-weight: 600; color: var(--ink); cursor: pointer; aspect-ratio: 1; justify-self: center; width: 64px; }
.keypad button:active { background: var(--bg-2); }
.lock-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; }
.lock-links button { background: none; border: 0; color: var(--brand-2); font-weight: 600; cursor: pointer; padding: 6px; }

.fb-reply { background: var(--green-soft); color: var(--ink); border-radius: 10px; padding: 8px 10px; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-reply strong { color: var(--green); display: block; margin-bottom: 2px; }
.fb-actions { display: flex; gap: 8px; }

/* support conversation */
.thread { display: grid; gap: 8px; margin-bottom: 14px; }
.th-me, .th-them { border-radius: 14px; padding: 10px 12px; max-width: 92%; }
.th-me { background: var(--bg-2); justify-self: end; border-bottom-right-radius: 4px; }
.th-them { background: var(--green-soft); justify-self: start; border-bottom-left-radius: 4px; }
.th-who { font-size: .75rem; font-weight: 700; color: var(--ink-3); margin-bottom: 3px; }
.th-them .th-who { color: var(--green); }
.th-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.th-wait { justify-self: start; font-size: .85rem; }
