:root {
  --brand: #0f9d7a;
  --ink: #0c1c18;
  --ink-60: rgba(12, 28, 24, .6);
  --ink-55: rgba(12, 28, 24, .55);
  --ink-50: rgba(12, 28, 24, .5);
  --muted: #66706d;
  --tab: #a2aca8;
  --line: #e6e6e6;
  --line-soft: rgba(12, 28, 24, .07);
  --ok: #0b7a52;
  --ok-bg: #e2f4eb;
  --danger: #d93036;
  --badge: #e5484d;
  --gray-bg: #f4f4f4;
  --blue: #3d6bea;
  --shadow-btn: 0 4px 12px rgba(13, 28, 23, .12);
  --shadow-bar: 0 6px 20px rgba(0, 0, 0, .08);
  --top-inset: 50px;           /* design status bar; Telegram sets its own inset in JS */
  --bottom-inset: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/normal 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
img { display: block; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: clip; }

/* icons: Phosphor SVGs tinted with currentColor */
.ico {
  display: inline-block; flex: none;
  width: var(--s, 24px); height: var(--s, 24px);
  background: currentColor;
  -webkit-mask: var(--u) center / contain no-repeat;
  mask: var(--u) center / contain no-repeat;
}

/* ---------- Home: photo header ---------- */
.hero { position: relative; height: calc(var(--top-inset) + 354px); }
.hero__photo {
  position: absolute; inset: 0 0 auto; height: calc(var(--top-inset) + 286px);
  border-radius: 0 0 24px 24px; overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__top {
  position: absolute; left: 16px; right: 16px; top: calc(var(--top-inset) + 6px); height: 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.addr {
  display: flex; align-items: center; gap: 8px; height: 40px;
  padding: 4px 14px 4px 6px; border-radius: 20px; background: #fff;
  font-weight: 600; font-size: 15px; max-width: calc(100% - 56px);
}
.addr img { width: 32px; height: 32px; border-radius: 16px; }
.addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr .ico { --s: 16px; transform: rotate(90deg); }
.bell { position: relative; width: 40px; height: 40px; border-radius: 20px; background: #fff; display: grid; place-items: center; }
.bell .ico { --s: 22px; }
.bell__n {
  position: absolute; left: 24px; top: -4px; min-width: 18px; padding: 0 5px;
  border: 2px solid #fff; border-radius: 9px; background: var(--badge);
  color: #fff; font-weight: 700; font-size: 11px; line-height: 14px; text-align: center;
}
.hero__sum {
  position: absolute; left: 16px; top: calc(var(--top-inset) + 66px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: #fff;
}
.hero__label { font-weight: 500; font-size: 14px; }
.hero__amount { font-weight: 600; font-size: 44px; letter-spacing: -.88px; white-space: nowrap; }
.pill {
  display: flex; gap: 6px; padding: 7px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .72); color: var(--ink); font-weight: 600; font-size: 14px;
}
.pill b { font-weight: 600; color: var(--ink-50); }
.dots { display: flex; gap: 4px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.dots i.on { width: 14px; background: #fff; }
.hero__dots { position: absolute; left: 16px; top: calc(var(--top-inset) + 200px); }

.actions {
  position: absolute; left: 16px; right: 16px; top: calc(var(--top-inset) + 260px);
  display: flex; justify-content: space-between;
}
.act { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.act__c { width: 52px; height: 52px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-btn); display: grid; place-items: center; }
.act__c .ico { --s: 24px; }
.act--main .act__c { background: var(--brand); color: #fff; }

/* ---------- Home: sheet ---------- */
.sheet { padding: 20px 16px calc(130px + var(--bottom-inset)); display: flex; flex-direction: column; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.scanrow {
  display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 10px;
  border: 1px solid var(--line); border-radius: 22px;
}
.scanrow img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.scanrow p { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; }
.scanrow b { font-weight: 600; font-size: 15px; color: var(--ink-55); white-space: nowrap; }

.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: start; }

.banner { position: relative; height: 144px; border-radius: 22px; background: var(--blue); overflow: hidden; color: #fff; }
.banner__pat { position: absolute; inset: 0; opacity: .13; }
.banner__pat .ico { position: absolute; color: #fff; }
.banner__text { position: absolute; left: 18px; top: 18px; width: 196px; display: flex; flex-direction: column; gap: 6px; }
.banner__title { font-weight: 700; font-size: 21px; line-height: 25px; }
.banner__sub { font-weight: 500; font-size: 13px; }
.banner .dots { position: absolute; left: 18px; top: 122px; }
.frag {
  position: absolute; left: calc(100% - 151px); top: -6px; width: 132px; height: 116px;
  transform: rotate(7deg); border-radius: 12px; background: #fff;
  box-shadow: 0 8px 20px rgba(13, 26, 77, .28); color: #0f1a17; font-size: 11px;
}
.frag p { position: absolute; left: 12px; }
.frag__h { top: 12px; font-weight: 500; font-size: 10px; color: #73807d; }
.frag__k { color: #73807d; }
.frag__v { left: auto !important; right: 14px; font-weight: 500; }
.frag__hl { position: absolute; left: 6px; top: 57px; width: 120px; height: 24px; border-radius: 6px; background: #ffe3a3; }
.frag .r1 { top: 36px; } .frag .r2 { top: 61px; } .frag .r3 { top: 88px; }
.frag .r2.frag__k { color: #0f1a17; font-weight: 500; }
.frag .r2.frag__v { font-weight: 700; }

.card { border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.pay { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.pay__h { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px; }
.h2 { font-weight: 600; font-size: 17px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft); width: 100%; text-align: left;
}
.row:last-child { border-bottom: 0; }
.row--fill { border: 0; border-radius: 16px; background: var(--gray-bg); }
.row--ok { border: 0; border-radius: 16px; background: var(--ok-bg); }
.row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__t p:first-child { font-weight: 500; font-size: 16px; }
.row__t p:last-child { font-size: 13px; color: var(--muted); }
.row__t p.danger { color: var(--danger); }
.amt { font-size: 22px; letter-spacing: -.22px; white-space: nowrap; }
.amt small { font-size: 15px; letter-spacing: -.15px; }
.amt.dim { color: var(--ink-60); }
.amt.ok { color: var(--ok); }

.logo { position: relative; width: 36px; height: 36px; border-radius: 9px; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo--line { border: 1px solid rgba(12, 28, 24, .08); }
.logo--line img { object-fit: contain; }
.logo--ico { color: var(--brand); }
.logo--ico .ico { --s: 20px; }
.logo--txt { border-radius: 18px; font-weight: 700; font-size: 13px; }
.logostack { position: relative; width: 64px; height: 36px; flex: none; }
.logostack .logo { position: absolute; top: 2px; width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--gray-bg); }

.tips { align-items: center; }
.tips .h2 { align-self: stretch; }
.tip { display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 14px; }
.tip img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.tip__t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tip__t b { font-weight: 600; font-size: 18px; line-height: 23px; }
.tip__t p { font-size: 14px; line-height: 20px; color: var(--muted); }
.dots--dark i { width: 8px; height: 8px; border-radius: 4px; background: #d9dedc; }
.dots--dark i.on { width: 8px; background: var(--brand); }
.dots--blue i { background: rgba(255, 255, 255, .45); }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 10;
  width: 100%; max-width: 480px; height: calc(110px + var(--bottom-inset));
  padding: 14px 16px 0; display: flex; gap: 10px; align-items: flex-start;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 45%, #fff); pointer-events: none;
}
.tabbar > * { pointer-events: auto; }
.tabbar__tabs {
  flex: 1; height: 64px; border-radius: 32px; background: #fff; box-shadow: var(--shadow-bar);
  display: flex; justify-content: center; padding: 0;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; width: 66px; color: var(--tab); font-weight: 500; font-size: 11px; }
.tab.is-active { color: var(--brand); }
.tab .ico { --s: 24px; }
.tabbar__family { width: 66px; height: 66px; margin-top: -1px; flex: none; border-radius: 33px; background: #fff; box-shadow: var(--shadow-bar); padding-top: 12px; }

/* ---------- states ---------- */
.state { padding: 120px 24px; text-align: center; color: var(--muted); font-size: 15px; }
.skel { background: linear-gradient(90deg, #f1f3f2 25%, #e8ecea 50%, #f1f3f2 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
button { text-align: inherit; }
.banner { display: block; width: 100%; text-align: left; }
.tips .slides { align-self: stretch; }
.tips .slides > .tip { border-radius: 22px; }

/* ---------- screen header (green) ---------- */
.head { position: relative; height: calc(var(--top-inset) + 200px); background: var(--brand); color: #fff; overflow: hidden; }
.head .banner__pat { opacity: .12; }
.head__bar { position: absolute; left: 16px; right: 16px; top: calc(var(--top-inset) + 6px); height: 32px; display: flex; align-items: center; justify-content: space-between; }
.head__bar .h2 { position: absolute; left: 50%; transform: translateX(-50%); }
.head__btn { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; }
.seg { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 50px); display: flex; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.seg button { flex: 1; height: 33px; color: rgba(255, 255, 255, .7); font-weight: 500; font-size: 15px; text-align: center; position: relative; }
.seg button.on { color: #fff; }
.seg button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: #fff; }
.body { position: relative; margin-top: -90px; padding: 0 16px calc(130px + var(--bottom-inset)); display: flex; flex-direction: column; gap: 24px; }

/* ---------- bills ---------- */
.due { position: relative; padding: 17px 18px 18px; border-radius: 18px; box-shadow: 0 4px 8px rgba(0, 0, 0, .05); }
.due__img { position: absolute; right: 7px; top: -35px; width: 118px; height: 118px; object-fit: contain; }
.due h1 { margin: 0; font-weight: 700; font-size: 24px; letter-spacing: -.6px; }
.due p { width: 214px; margin-top: 8px; font-size: 15px; line-height: 21px; }
.cal { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 4px 8px; display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 10px; text-align: center; }
.cal span { font-size: 11.5px; color: #66736e; }
.cal b { justify-self: center; width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; font-weight: 400; font-size: 15px; }
.cal b.c-today { background: var(--ink); color: #fff; font-weight: 600; }
.cal b.c-due { background: #e2f5ee; color: var(--brand); font-weight: 600; }
.cal b.c-next { color: var(--tab); }
.cal b.c-past { color: var(--tab); }

.list { border-radius: 18px; overflow: hidden; }
.grp { height: 28px; padding: 6px 16px; color: #fff; font-weight: 600; font-size: 13px; }
.grp--overdue { background: #eb4b3f; } .grp--week { background: #ff7a45; } .grp--later { background: var(--brand); } .grp--paid { background: var(--tab); }
.bill { display: flex; align-items: center; gap: 11px; height: 62px; padding: 0 16px; position: relative; }
.bill + .bill::before { content: ''; position: absolute; left: 61px; right: 0; top: 0; height: 1px; background: var(--line); }
.svc { position: relative; width: 34px; height: 34px; border-radius: 17px; flex: none; display: grid; place-items: center; }
.svc img { width: 23.8px; height: 23.8px; object-fit: contain; }
.svc--obj img { width: 28px; height: 28px; opacity: .6; }
.bill__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bill__t b, .bill__r b { font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.bill__t span { font-size: 13px; color: #66736e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill__t span.danger { color: #eb4b3f; }
.bill__r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.bill__r span { font-weight: 500; font-size: 11.5px; letter-spacing: .4px; color: var(--tab); }
.bill.is-paid b { color: #66736e; }
.total { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; margin-top: -2px; }
.total span { font-weight: 500; font-size: 15px; color: #66736e; }
.total b { font-weight: 700; font-size: 22px; letter-spacing: -.55px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- bill ---------- */
.head--bill { height: calc(var(--top-inset) + 253px); }
.navbar { position: absolute; left: 10px; right: 16px; top: calc(var(--top-inset) + 3px); height: 26px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 17px; }
.navbar .h2 { position: absolute; left: 50%; transform: translateX(-50%); }
.navbar__back { display: flex; align-items: center; gap: 0; color: #fff; }
.navbar__act { color: #fff; }
.body--bill { margin-top: -218px; gap: 0; padding-bottom: calc(130px + var(--bottom-inset)); }
.billcard { position: relative; overflow: hidden; padding: 0 33px 25px; display: flex; flex-direction: column; }
.strip { margin: 0 -33px; height: 44px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; }
.billcard__wd { margin-top: 17px; text-align: center; font-weight: 500; font-size: 18px; color: #6b7370; }
.billcard__date { margin-top: 3px; text-align: center; font-weight: 700; font-size: 44px; letter-spacing: -1px; line-height: 53px; white-space: nowrap; }
.billcard hr, .reqs hr { border: 0; height: 1px; background: var(--line); margin: 16px 0 0; width: 100%; }
.billcard__facts { display: flex; align-items: center; margin-top: 14px; height: 64px; }
.billcard__facts > img, .billcard__facts > .svc { width: 64px; height: 64px; object-fit: contain; flex: none; }
.billcard__facts p { display: flex; flex-direction: column; gap: 4px; font-size: 17px; white-space: nowrap; }
.billcard__facts p:nth-of-type(1) { margin-left: 20px; width: 110px; }
.billcard__facts small { font-size: 13px; color: #66736e; }
.billcard__btns { margin-top: 25px; display: flex; flex-direction: column; gap: 8px; }
.btn { height: 48px; border-radius: 24px; font-weight: 600; font-size: 15.5px; display: grid; place-items: center; width: 100%; }
.btn:disabled { opacity: .5; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--soft { background: #e2f5ee; color: var(--brand); }
.btn--gray { background: #f2f2f2; color: #66736e; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { margin-top: 10px; height: 51px; border-radius: 14px; background: var(--gray-bg); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 9px; }
.billcard__btns + .tile { margin-top: 24px; }
.tile > img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.tile > span:not(.bars) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tile b { font-weight: 400; font-size: 17px; }
.tile small { font-size: 12px; color: #66736e; }
.tile .ico { color: #a2aca8; margin-right: 0; }
.bars { display: flex; align-items: flex-end; gap: 4.4px; height: 28px; }
.bars i { width: 7px; border-radius: 2px; background: #bfc7c4; }
.bars i.cur { background: #e84d3d; }
.note { margin-top: 30px; display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; }
.note small { font-weight: 500; font-size: 13px; color: #66736e; }
.note span { font-size: 17px; white-space: pre-wrap; }
.note span.ph { color: var(--ink); }
.reqs { padding: 28px 10px 0; display: flex; flex-direction: column; }
.h3 { font-weight: 600; font-size: 20px; }
.reqs .h3 + * { margin-top: 22px; }
.reqs hr { margin: 0 0 28px; }
.reqs hr + .h3 + * { margin-top: 14px; }
.req { display: flex; gap: 19px; align-items: flex-start; width: 100%; text-align: left; padding: 3px 0 19px 1px; }
.req > span { display: flex; flex-direction: column; gap: 3px; margin-top: -3px; min-width: 0; }
.req b { font-weight: 500; font-size: 16px; line-height: 21px; overflow-wrap: anywhere; }
.req small { font-size: 14.5px; color: #66736e; }
.act-row { display: flex; align-items: center; gap: 19px; height: 58px; width: 100%; text-align: left; padding-left: 1px; }
.act-row span { flex: 1; font-weight: 500; font-size: 16px; }
.act-row .ico:last-child { color: #a2aca8; }
.muted { color: var(--muted); font-size: 15px; line-height: 21px; padding-bottom: 20px; }

/* ---------- sheet + toast ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(12, 28, 24, .4); opacity: 0; transition: opacity .2s; }
.sheet-box { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 100%); transition: transform .2s;
  background: #fff; border-radius: 22px 22px 0 0; padding: 22px 16px calc(20px + var(--bottom-inset)); display: flex; flex-direction: column; gap: 16px; max-height: 90vh; overflow: auto; }
.sheet-wrap.on .sheet-bg { opacity: 1; }
.sheet-wrap.on .sheet-box { transform: translate(-50%, 0); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field small { font-size: 13px; color: #66736e; }
.field input, .field textarea { font: inherit; font-size: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; width: 100%; resize: none; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; height: 48px; padding: 0 6px; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand); }
.stepper b { font-weight: 500; font-size: 17px; }
.err { color: var(--danger); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.photo-full { width: 100%; border-radius: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(120px + var(--bottom-inset)); transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 60;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 14px; font-weight: 500; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- service ---------- */
.head--svc { height: calc(var(--top-inset) + 170px); }
.head--svc .navbar { top: calc(var(--top-inset) + 2px); }
.head--svc .navbar__act { display: grid; place-items: center; }
.svc-title { margin: 0; position: absolute; left: 16px; top: calc(var(--top-inset) + 46px); font-weight: 700; font-size: 32px; letter-spacing: -.8px; line-height: 40px; }
.svc-sub { position: absolute; left: 16px; right: 90px; top: calc(var(--top-inset) + 88px); font-size: 14px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-hero { position: absolute; right: 8px; top: calc(var(--top-inset) + 32px); width: 108px; height: 108px; object-fit: contain; }
.stats { position: relative; margin-top: -44px; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 0 0; }
.stats__top { display: grid; grid-template-columns: 1fr 1fr; height: 74px; border-bottom: 1px solid var(--line); }
.stats__top p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 0; }
.stats__top p + p { border-left: 1px solid var(--line); height: 52px; margin-top: 2px; padding-top: 0; }
.stats__top small { font-weight: 500; font-size: 13px; color: #6b7370; }
.stats__top b { font-weight: 600; font-size: 24px; letter-spacing: -.6px; white-space: nowrap; }
.stats__cap { text-align: center; font-weight: 500; font-size: 13px; color: #6b7370; margin-top: 16px; }
.mbars { display: flex; flex-direction: column; gap: 12px; padding: 15px 16px 0; }
.mbars p { display: flex; align-items: center; height: 22px; }
.mbars span { width: 42px; flex: none; font-size: 13px; color: #66736e; }
.mbars i { height: 22px; border-radius: 4px; background: #bde8d9; width: calc((100% - 132px) * var(--w)); flex: none; }
.mbars small { margin-left: 8px; font-weight: 500; font-size: 12.5px; color: #66736e; white-space: nowrap; }
.mbars .cur span { font-weight: 600; color: var(--ink); }
.mbars .cur i { background: var(--brand); }
.mbars .cur small { color: var(--brand); }
.stats__empty { padding: 0 16px 8px; text-align: center; }
.body--svc { margin-top: 24px; gap: 28px; }
.usage { position: relative; overflow: hidden; border-radius: 18px; background: #0a3d31; color: #fff; }
.usage .banner__pat { opacity: .1; }
.usage__in { position: relative; padding: 16px 18px 20px; }
.usage__seg { display: flex; height: 32px; margin: 0 -2px; padding: 2px; border-radius: 16px; border: 1px solid #e6e6e6; background: rgba(255, 255, 255, .15); }
.usage__seg button { flex: 1; border-radius: 13px; color: #fff; font-weight: 600; font-size: 13px; text-align: center; }
.usage__seg button.on { background: #fff; color: var(--brand); }
.usage__lbl { margin-top: 18px; font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .7); }
.usage__big { margin-top: 2px; font-weight: 700; font-size: 34px; letter-spacing: -.85px; line-height: 43px; white-space: nowrap; }
.usage__sub { margin-top: 1px; font-size: 15px; opacity: .85; }
.usage hr { border: 0; height: 1px; background: rgba(255, 255, 255, .25); margin: 15px 0 0; }
.usage__cmp { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; gap: 12px; }
.usage__cmp p { display: flex; flex-direction: column; gap: 3px; font-size: 14px; min-width: 0; }
.usage__cmp p span { opacity: .8; }
.usage__cmp b { font-weight: 600; white-space: nowrap; }
.usage__none { margin-top: 15px; font-size: 14px; opacity: .8; line-height: 19px; }
.diff { flex: none; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; background: #fff; color: var(--brand); font-weight: 600; font-size: 14px; }
.diff.up { color: #e84d3d; }
.recent .h3 { font-weight: 700; }
.rec-list { margin-top: 14px; padding: 17px 16px 12px 15px; display: flex; flex-direction: column; gap: 20px; }
.rec { display: flex; align-items: center; gap: 12px; height: 40px; }
.rec.is-more { display: none; }
.rec-list.open .rec.is-more { display: flex; }
.rec__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #e2f5ee; color: var(--brand); }
.rec__ic img { width: 28px; height: 28px; object-fit: contain; }
.rec__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rec__t b, .rec__a { font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.rec__t small { font-size: 13px; color: #66736e; }
.rec-all { height: 32px; margin-top: -4px; text-align: center; font-weight: 600; font-size: 14.5px; color: var(--brand); }
a.act-row { color: inherit; }
.rec-list.card { border-radius: 18px; }
.usage, .head, .banner { overflow: clip; }

/* ---------- readings ---------- */
.rd { padding: calc(var(--top-inset) + 12px) 16px calc(130px + var(--bottom-inset)); display: flex; flex-direction: column; }
.rd__bar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 2px; }
.rd__x { width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink); }
.switch { width: 44px; height: 26px; border-radius: 13px; background: #d4dad8; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: transform .2s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }
.rd__title { margin: 20px 0 0; font-weight: 700; font-size: 30px; letter-spacing: -.75px; line-height: 38px; }
.rd__desc { margin-top: 4px; font-size: 15px; line-height: 21px; color: #66736e; max-width: 340px; }
.rd__cap { margin-top: 22px; font-weight: 600; font-size: 13px; }
.chips { margin: 9px -16px 0; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: 0 0 calc((100% - 16px) / 3); min-width: 108px; height: 58px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; padding: 7px 10px; display: flex; flex-direction: column; gap: 4px; }
.chip b { font-weight: 600; font-size: 14px; }
.chip small { font-size: 13px; color: #66736e; }
.chip img { position: absolute; right: 10px; top: 15px; width: 26px; height: 26px; object-fit: contain; }
.chip.on { background: #e2f5ee; border: 2px solid var(--brand); padding: 6px 9px; }
.chip.on b { color: var(--brand); }
.rd__info { margin-top: 14px; height: 68px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 10px; padding: 0 9px; text-align: left; width: 100%; }
.rd__info img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.rd__info span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd__info b { font-weight: 600; font-size: 14px; color: #0f1a17; }
.rd__info small { font-weight: 500; font-size: 13px; color: #0f8c6b; }
.rd__hr { border: 0; height: 1px; background: var(--line); margin: 20px 0 0; }
.tiles { margin-top: 20px; display: flex; justify-content: center; gap: 6px; }
.tiles b { width: 46px; height: 64px; border-radius: 8px; background: #121a17; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 38px; flex: 0 1 46px; min-width: 0; }
.tiles b.ph { color: rgba(255, 255, 255, .22); }
.tiles b.frac { margin-left: 4px; background: rgba(214, 69, 51, .35); color: rgba(255, 255, 255, .8); }
.tiles b.frac.ph { color: rgba(255, 255, 255, .35); }
.tiles b.frac.cur { outline: 2px solid #d64533; outline-offset: 1px; }
.rd__pillwrap { margin-top: 16px; display: flex; justify-content: center; height: 30px; }
.rd__pill { height: 30px; border-radius: 15px; background: #e2f5ee; color: var(--brand); font-weight: 600; font-size: 14px; padding: 0 12px; display: grid; place-items: center; white-space: nowrap; }
.rd__pill.muted { background: #f2f2f2; color: #66736e; }
.rd__pill.bad { background: #fdeceb; color: #d64533; }
.keys { margin: 32px 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.keys button { height: 72px; font-weight: 500; font-size: 28px; letter-spacing: -.7px; display: grid; place-items: center; border-radius: 16px; color: var(--ink); }
.keys button:active { background: #f2f2f2; }
.rd__save { margin-top: 14px; }
.rd__note { margin-top: 14px; text-align: center; font-size: 13px; line-height: 18px; color: #a2aca8; }
.sheet-text { font-size: 15px; line-height: 21px; color: #44514c; }
.howto-img { width: 120px; height: 120px; object-fit: contain; align-self: center; }

/* ---------- analytics ---------- */
.head--an { height: calc(var(--top-inset) + 213px); }
.an__title { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 18px); text-align: center; font-weight: 700; font-size: 25px; letter-spacing: -.625px; }
.an__ic { position: absolute; top: calc(var(--top-inset) + 22px); width: 25px; height: 25px; color: #fff; opacity: .8; display: grid; place-items: center; }
.an__ic.l { left: 17px; }
.an__ic.r { right: 17px; }
.an__tabs { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 71px); display: flex; justify-content: center; gap: 8px; }
.an__tabs button { height: 31px; padding: 0 12px; border-radius: 16px; border: 1px solid transparent; color: #fff; font-weight: 600; font-size: 15px; opacity: .6; }
.an__tabs button.on { opacity: 1; background: #1c9a84; border-color: rgba(255, 255, 255, .35); }
.body--an { margin-top: -92px; gap: 26px; }
.an__card { border-radius: 18px; box-shadow: 0 6px 18px rgba(26, 51, 115, .07); padding: 15px 0 18px; display: flex; flex-direction: column; align-items: center; min-height: 336px; }
.an__h { font-weight: 700; font-size: 13.5px; }
.an__range { margin-top: 14px; font-size: 12.5px; color: #66736e; }
.an__sum { margin-top: 4px; font-weight: 600; font-size: 20px; }
.badge { margin-top: 9px; height: 21px; border-radius: 11px; padding: 0 9px; display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 12.5px; }
.badge.up { background: #fdecea; color: #eb4b3f; }
.badge.down { background: #e2f5ee; color: var(--brand); }
.an__vs { margin-top: 7px; font-size: 12px; color: #66736e; text-align: center; padding: 0 16px; }
.chart { position: relative; width: 326px; height: 146px; margin-top: 29px; }
.chart__y { position: absolute; right: calc(100% - 37px); font-size: 10px; color: #a2aca8; white-space: nowrap; }
.chart__grid { position: absolute; left: 41px; right: 0; height: 1px; background: repeating-linear-gradient(90deg, #e6e6e6 0 3px, transparent 3px 6px); }
.chart__base { position: absolute; left: 42px; right: 0; top: 116px; height: 1px; background: #e6e6e6; }
.chart__bars { position: absolute; left: 43px; top: 0; height: 116px; width: 284px; }
.chart__bar { position: absolute; bottom: 0; width: 15.5px; height: 116px; }
.chart__bar i { position: absolute; left: 0; right: 0; border-radius: 2px; }
.chart__x { position: absolute; top: 128px; left: 41px; font-size: 11.5px; color: #a2aca8; }
.chart__x.r { left: auto; right: 0; }
.alist { width: 100%; padding: 18px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.alist__row { display: flex; align-items: center; gap: 12px; color: inherit; }
.alist__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.alist__t b { font-weight: 500; font-size: 15px; }
.alist__t i { height: 6px; border-radius: 3px; min-width: 4px; }
.alist__a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.alist__sub { margin-top: auto; padding-top: 14px; font-size: 12.5px; color: #66736e; }
.an__sec { font-weight: 600; font-size: 19px; }
.fc { margin-top: 16px; border-radius: 18px; padding: 19px 16px 0; overflow: hidden; }
.fc__head { width: 100%; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 16px; text-align: left; }
.fc__head .ico, .fc__save .ico { color: #a2aca8; }
.fc__sum { margin-top: 6px; font-weight: 700; font-size: 31px; letter-spacing: -.775px; }
.fc__sub { margin-top: 6px; display: flex; gap: 28px; font-size: 14px; color: #66736e; }
.fc__btns { margin-top: 22px; gap: 12px; }
.fc__btns .btn, a.btn { display: grid; place-items: center; }
.fc__save { margin: 16px -16px 0; width: calc(100% + 32px); border-top: 1px solid var(--line); height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 13px; text-align: left; }
.fc__save img { width: 32px; height: 32px; object-fit: contain; }
.fc__save span { flex: 1; font-weight: 500; font-size: 16px; }
.fc__save small { font-size: 14px; color: #66736e; margin-right: 8px; }
.struct { margin-top: 14px; border: 0; border-radius: 18px; padding-bottom: 14px; }
.stabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.stabs button { height: 58px; font-weight: 500; font-size: 16.5px; text-align: center; position: relative; color: var(--muted); }
.stabs button.on { color: var(--ink); }
.stabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); }
.over { height: 50px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 21px; font-size: 14.5px; color: #66736e; margin-top: 16px; }
.switch--sm { width: 40px; height: 24px; border-radius: 12px; background: #e6e6e6; }
.switch--sm::after { width: 20px; height: 20px; }
.switch--sm.on::after { transform: translateX(16px); }
.switch:not(.on) { background: #e6e6e6; }
.donut-wrap { position: relative; width: 248px; height: 152px; margin: 4px auto 0; }
.donut { width: 248px; height: 160px; display: block; }
.donut path { fill: none; stroke-width: 18; }
.donut__sum { position: absolute; left: 0; right: 0; top: 68px; text-align: center; font-weight: 600; font-size: 26px; letter-spacing: -.65px; }
.donut__cap { position: absolute; left: 0; right: 0; top: 102px; text-align: center; font-size: 14.5px; color: #66736e; }
.srows { margin-top: 0; }
.srow { display: flex; align-items: center; height: 46px; padding: 0 18px; gap: 12px; color: inherit; position: relative; }
.srow + .srow::before { content: ''; position: absolute; left: 74px; right: 2px; top: 0; height: 1px; background: var(--line); }
.srow__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.srow__ic img { width: 22.4px; height: 22.4px; object-fit: contain; }
.srow__n { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__n small { font-size: 12px; color: #66736e; }
.srow__p { font-size: 13px; color: #66736e; }
.srow__a { font-weight: 500; font-size: 16px; white-space: nowrap; min-width: 92px; text-align: right; }
.cmp { display: flex; flex-direction: column; }
.cmp p { display: grid; grid-template-columns: 1fr auto 80px 48px; gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp b { font-weight: 600; white-space: nowrap; }
.cmp small { color: #66736e; font-size: 13px; text-align: right; white-space: nowrap; }
.cmp em { font-style: normal; font-size: 13px; text-align: right; font-weight: 600; }
.cmp em.up { color: #eb4b3f; }
.cmp em.down { color: var(--brand); }
.empty-card { padding: 24px 18px; color: var(--muted); font-size: 15px; line-height: 21px; }
.cmp span small.cmp__note { display: block; text-align: left; font-size: 12px; }

/* ---------- savings ---------- */
.head--sav { height: calc(var(--top-inset) + 200px); }
.head--sav .navbar { top: calc(var(--top-inset) + 2px); }
.sav__label { position: absolute; left: 16px; top: calc(var(--top-inset) + 54px); font-weight: 500; font-size: 15px; opacity: .8; }
.sav__total { position: absolute; left: 16px; top: calc(var(--top-inset) + 76px); font-weight: 700; font-size: 44px; letter-spacing: -1.1px; white-space: nowrap; }
.sav__sub { position: absolute; left: 16px; right: 160px; top: calc(var(--top-inset) + 132px); font-size: 14px; opacity: .8; }
.sav__piggy { position: absolute; left: calc(50% + 33px); top: calc(var(--top-inset) + 44px); width: 140px; height: 140px; object-fit: contain; z-index: 3; pointer-events: none; }
.body--sav { margin-top: -22px; gap: 16px; position: relative; z-index: 2; }
.body--sav > .btn { margin-top: 4px; }
.sav { border-radius: 18px; padding: 17px 17px 0; }
.sav__head { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.sav__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sav__ic img { width: 28px; height: 28px; object-fit: contain; }
.sav__head > span:not(.sav__ic) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sav__head b { font-weight: 600; font-size: 17px; }
.sav__head small { font-size: 13px; color: #66736e; }
.sav__pct { margin-top: 2px; height: 28px; padding: 0 13px; border-radius: 14px; background: #e2f5ee; color: var(--brand); font-style: normal; font-weight: 600; font-size: 13.5px; display: grid; place-items: center; white-space: nowrap; }
.sav__pct.bad { background: #fdecea; color: #eb4b3f; }
.sav__wait { margin: 22px 0 19px; background: #f4f4f4; border-radius: 14px; padding: 13px 14px; display: flex; gap: 10px; align-items: flex-start; }
.sav__wait > .ico { margin-top: 1px; flex: none; }
.sav__wait p { display: flex; flex-direction: column; gap: 5px; }
.sav__wait b { font-weight: 600; font-size: 14.5px; }
.sav__wait small { font-size: 13px; color: #66736e; }
.sav__cols { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; }
.sav__cols p { display: flex; flex-direction: column; gap: 4px; }
.sav__cols p + p { border-left: 1px solid var(--line); padding-left: 16px; }
.sav__cols small { font-weight: 500; font-size: 13px; color: #a2aca8; }
.sav__cols b { font-weight: 600; font-size: 20px; white-space: nowrap; }
.sav__cols span { font-size: 12.5px; color: #66736e; }
b.good { color: var(--brand); }
b.bad { color: #eb4b3f; }
.sav__bars { margin-top: 36px; display: flex; justify-content: space-around; align-items: flex-end; height: 132px; }
.sav__pair { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sav__pair span { display: flex; align-items: flex-end; gap: 4px; height: 108px; }
.sav__pair i { width: 13px; border-radius: 4px; }
.sav__pair i.b, .sav__legend i.b { background: #cdd6d3; }
.sav__pair i.a, .sav__legend i.a { background: var(--brand); }
.sav__pair small { font-weight: 500; font-size: 12px; color: #66736e; }
.sav__legend { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #66736e; }
.sav__legend i { width: 10px; height: 10px; border-radius: 3px; }
.sav__legend i.a { margin-left: 18px; }
.sav__note { margin-top: 18px; font-size: 13px; color: #66736e; }
.sav__diff { margin-top: 15px; border-top: 1px solid var(--line); height: 54px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #66736e; }
.sav__diff b { font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.pills button.on { background: #e2f5ee; border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ---------- family ---------- */
.head--fam { height: calc(var(--top-inset) + 183px); }
.fam__title { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 9px); text-align: center; font-weight: 600; font-size: 17px; }
.fam__faces { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 50px); display: flex; justify-content: center; }
.fam__faces .ava + .ava { margin-left: -20px; }
.ava { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; color: #fff; }
.ava b { font-weight: 600; font-size: 15px; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava--xl { width: 70px; height: 70px; border: 3px solid #fff; }
.ava--xl b { font-size: 24px; }
.ava--wait { background: #4fb89d; color: #fff; border-style: dashed; }
.fam__inv { position: absolute; left: 16px; right: 16px; top: calc(var(--top-inset) + 137px); height: 64px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 26, 18, .1); display: flex; align-items: center; gap: 6px; padding: 0 13px 0 11px; text-align: left; color: var(--ink); z-index: 2; }
.fam__inv img { width: 44px; height: 44px; object-fit: contain; }
.fam__inv span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fam__inv b { font-weight: 600; font-size: 15px; }
.fam__inv small { font-size: 13px; color: #66736e; }
.fam__inv .ico, .mrow .ico { color: #a2aca8; }
.body--fam { margin-top: 64px; gap: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; }
.sec-head .h3 { font-weight: 600; font-size: 18px; }
.pill-btn { height: 30px; padding: 0 14px; border-radius: 15px; background: #e2f5ee; color: var(--brand); font-weight: 600; font-size: 13.5px; }
.pill-btn[aria-disabled="true"] { opacity: .5; }
.mlist { margin-top: 16px; display: flex; flex-direction: column; }
.mrow { height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.mrow span:not(.ava) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mrow span b { font-weight: 600; font-size: 15.5px; }
.mrow span small { font-size: 13px; color: #66736e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow--wait .ava { opacity: .55; }
.rule { display: block; height: 1px; background: var(--line); margin: 8px 0 24px; }
.split { border-radius: 18px; padding: 17px 17px 18px; }
.split__title { font-weight: 700; font-size: 18px; }
.split__sub { margin-top: 8px; font-size: 13.5px; line-height: 19px; color: #66736e; }
.split__t { margin-top: 18px; }
.split__t p { display: grid; grid-template-columns: 1fr 90px 74px; align-items: center; height: 36px; font-size: 14px; }
.split__t p > :nth-child(n+2) { text-align: right; }
.split__t p span:first-child { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14.5px; }
.split__t p span:first-child i { width: 8px; height: 8px; border-radius: 50%; }
.split__t p span:nth-child(2) { color: #66736e; }
.split__t p b { font-weight: 600; }
.split__t .split__h { height: 22px; margin-bottom: 4px; font-weight: 500; font-size: 12.5px; color: #a2aca8; }
.split__t .split__h span:first-child { font-weight: 500; font-size: 12.5px; }
.split__sum { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; font-size: 13px; color: #66736e; }
.split__sum b { color: var(--ink); font-weight: 600; }
.split__bar { margin-top: 10px; height: 10px; border-radius: 5px; background: #f2f2f2; overflow: hidden; }
.split__bar i { display: block; height: 100%; border-radius: 5px; background: var(--brand); }
.split__pct { margin-top: 8px; font-weight: 600; font-size: 12px; color: var(--brand); }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.btn.danger { color: var(--danger); }
.msheet { display: flex; align-items: center; gap: 12px; }
.msheet p { display: flex; flex-direction: column; gap: 4px; }
.msheet b { font-weight: 600; font-size: 17px; }
.msheet small { font-size: 13px; color: #66736e; }
.split__t .split__h > * { color: #a2aca8 !important; font-weight: 500 !important; font-size: 12.5px !important; }

/* ---------- more / settings ---------- */
body.no-tabs .tabbar { display: none; }
body.no-tabs .body { padding-bottom: calc(34px + var(--bottom-inset)); }
.head--more { height: calc(var(--top-inset) + 186px); text-align: center; }
.head--more .navbar { top: calc(var(--top-inset) + 2px); }
.more__ava { position: absolute; left: 50%; top: calc(var(--top-inset) + 44px); width: 72px; height: 72px; margin-left: -36px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: #4a7cf6; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 40, 30, .18); }
.more__ava img { width: 100%; height: 100%; object-fit: cover; }
.more__ava b { font-size: 26px; font-weight: 600; }
.more__title { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 128px); font-weight: 700; font-size: 24px; letter-spacing: -.6px; }
.more__plan { position: absolute; left: 0; right: 0; top: calc(var(--top-inset) + 160px); font-size: 14px; opacity: .8; }
.body--more { margin-top: 24px; gap: 24px; }
.body--more section { display: flex; flex-direction: column; gap: 9px; }
.body--more > .card + .card, .body--more > .prem-banner + .card, .body--more > .card + section { margin-top: -8px; }
.more__h { font-weight: 600; font-size: 15px; color: #0f1a17; }
.more__note { font-size: 13px; line-height: 18px; color: #a2aca8; margin-top: 1px; }
.lrow { position: relative; width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 15px 8px 13px; text-align: left; color: var(--ink); }
.lrow + .lrow::before { content: ""; position: absolute; left: 59px; right: 0; top: 0; height: 1px; background: var(--line); }
.lrow > span:not([class]) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lrow b { font-weight: 500; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow b.muted { color: #66736e; padding: 0; font-size: 15.5px; line-height: normal; }
.lrow b.bad { color: #eb4b3f; }
.lrow small { font-size: 13px; color: #66736e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow small em { font-style: normal; color: var(--brand); font-weight: 500; }
.lrow .lrow__v { font-size: 14px; flex: none; }
.lrow > .ico:last-child { color: #a2aca8; flex: none; margin-left: -6px; }
.lrow:has(.lrow__pic) { min-height: 64px; }
.lrow__img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.lrow__img--sm { width: 32px; height: 32px; margin: 0 2px; object-fit: contain; border-radius: 0; }
.lrow__ic { width: 32px; height: 32px; margin: 0 2px; border-radius: 50%; background: #f3f5f2; display: grid; place-items: center; flex: none; color: #0c1c18; }
.lrow__ic--bad { background: #fdecea; color: #eb4b3f; }
.prem-tag { flex: none; font-style: normal; height: 24px; padding: 0 8px; border-radius: 12px; background: #fff4d6; color: #a67a00; font-weight: 600; font-size: 12px; display: grid; place-items: center; margin-right: 4px; }
.prem-banner { position: relative; display: block; min-height: 104px; padding: 18px 18px 16px; border-radius: 18px; background: #0a3d31; color: #fff; overflow: hidden; }
.prem-banner .banner__pat { opacity: .1; }
.prem-banner b { position: relative; display: block; font-weight: 700; font-size: 18px; }
.prem-banner p { position: relative; margin-top: 10px; width: 250px; max-width: 70%; font-size: 13.5px; line-height: 18px; opacity: .9; }
.prem-banner__faces { position: absolute; right: 18px; top: 12px; display: flex; }
.prem-banner__faces > i { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #0a3d31; display: grid; place-items: center; color: #fff; margin-left: -10px; }
.prem-banner__faces > i:last-child { color: #0a3d30; }
.svlist { display: flex; flex-direction: column; margin: 4px 0 8px; }
.svrow { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.svrow:last-child { border-bottom: 0; }
.help { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.help p { font-size: 15px; line-height: 21px; color: #44514c; }
.help b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.btn--bad { background: #eb4b3f; color: #fff; border-color: #eb4b3f; }
.lrow__pic { position: relative; flex: none; display: flex; }
.lrow__pic i { position: absolute; right: -3px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; display: grid; place-items: center; color: #fff; }

/* ---------- premium ---------- */
body.is-dark { background: #0f1e1b; }
.prem { position: relative; min-height: 100vh; min-height: 100dvh; background: #0f1e1b; color: #fff; overflow: hidden; padding: calc(var(--top-inset) + 140px) 16px calc(24px + var(--bottom-inset)); text-align: center; }
.prem__pat { position: absolute; inset: 0; opacity: .54; pointer-events: none; }
.prem__pat > div { position: absolute; left: 0; right: 0; height: 312px; }
.prem__pat .banner__pat { opacity: .13; }
.prem__x { position: absolute; left: 16px; top: calc(var(--top-inset) + 6px); width: 36px; height: 36px; border-radius: 18px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; z-index: 2; }
.prem__art { position: absolute; left: 50%; top: calc(var(--top-inset) + 6px); width: 220px; height: 128px; margin-left: -110px; }
.prem__art img { position: absolute; object-fit: contain; }
.prem__art .a1 { left: 54px; top: 0; width: 112px; height: 112px; }
.prem__art .a2 { left: 14px; top: 56px; width: 72px; height: 72px; }
.prem__art .a3 { left: 138px; top: 52px; width: 76px; height: 76px; }
.prem__title { position: relative; margin: 0; font-weight: 700; font-size: 28px; letter-spacing: -.7px; line-height: 36px; }
.prem__sub { position: relative; margin-top: 4px; font-size: 15px; opacity: .7; }
.prem__feats { position: relative; list-style: none; margin: 37px 0 0; padding: 0 20px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.prem__feats li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15.5px; }
.prem__feats span { width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(15, 157, 122, .25); color: #4fd1a8; display: grid; place-items: center; }
.prem__plans { position: relative; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pplan { position: relative; height: 118px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; text-align: left; padding: 15px 14px 0; display: flex; flex-direction: column; transition: background .15s, border-color .15s; }
.pplan b { font-weight: 600; font-size: 15px; }
.pplan strong { margin-top: 10px; font-weight: 700; font-size: 24px; letter-spacing: -.6px; }
.pplan small { margin-top: 10px; font-size: 12.5px; opacity: .7; }
.pplan em { position: absolute; right: 14px; top: 11px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--brand); color: #fff; font-style: normal; font-weight: 700; font-size: 11.5px; display: grid; place-items: center; }
.pplan.on { background: #fff; color: var(--ink); border: 3px solid var(--brand); padding: 13px 12px 0; }
.pplan.on em { right: 12px; top: 9px; }
.prem__err { position: relative; margin-top: 12px; color: #ff8a80; }
.prem__cta { position: relative; margin-top: 28px; background: var(--brand); color: #fff; }
.prem__err:not(:empty) + .prem__cta { margin-top: 12px; }
.prem__cta:disabled { opacity: .6; }
.prem__note { position: relative; width: 310px; max-width: 100%; margin: 12px auto 0; font-size: 12.5px; line-height: 17px; opacity: .55; }

/* ---------- onboarding ---------- */
.onb { min-height: 100vh; min-height: 100dvh; padding: calc(var(--top-inset) + 6px) 20px calc(24px + var(--bottom-inset)); display: flex; flex-direction: column; background: #fff; }
.onb__art { position: relative; height: 244px; border-radius: 28px; overflow: hidden; background: #098c70; flex: none; }
.onb__art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onb--3 .onb__art { background: #e2f5ee; display: grid; place-items: center; }
.onb__art > .onb__phone { width: auto; height: 220px; object-fit: contain; }
.onb__back { position: absolute; left: 12px; top: 12px; width: 36px; height: 36px; border-radius: 18px; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; }
.onb__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.onb__bars i { height: 4px; border-radius: 2px; background: #f2f2f2; }
.onb__bars i.on { background: var(--brand); }
.onb__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; height: 18px; }
.onb__meta span { font-weight: 500; font-size: 13px; color: #66736e; }
.onb__meta button { font-weight: 600; font-size: 14px; color: #66736e; }
.onb__h { margin: 4px 0 0; font-weight: 700; font-size: 30px; letter-spacing: -.75px; line-height: 38px; color: var(--ink); }
.onb__p { margin-top: 6px; font-size: 15px; line-height: 21px; color: #66736e; }
.onb__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.otile { position: relative; height: 96px; border-radius: 20px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 9px; color: var(--ink); transition: background .15s, border-color .15s; }
.otile img { width: 48px; height: 48px; object-fit: contain; }
.otile b { margin-top: 8px; font-weight: 600; font-size: 14px; }
.otile__ck { position: absolute; right: 9px; top: 7px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d5dbd8; display: grid; place-items: center; color: #fff; }
.otile.on { background: #e2f5ee; border: 2px solid var(--brand); padding-top: 8px; }
.otile.on .otile__ck { right: 8px; top: 6px; border: 0; background: var(--brand); }
.otile--more > .ico { margin-top: 13px; color: #0c1c18; }
.otile--more b { margin-top: 17px; }
.otile--more.on b { margin-top: 18px; }
.onb__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.ochip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 14px; color: var(--ink); }
.ochip.on { background: #e2f5ee; border-color: var(--brand); color: var(--brand); }
.onb .field + .field { margin-top: 12px; }
.onb__cta { margin-top: auto; }
.onb__grid + .onb__cta, .field + .onb__cta, .onb__p + .onb__cta { margin-top: 26px; }
.onb--1 .onb__cta, .onb--2 .onb__cta, .onb--3 .onb__cta { margin-top: auto; }
.onb__grid, .onb .field:last-of-type { margin-bottom: 26px; }
.onb__cta--col { display: flex; flex-direction: column; gap: 10px; }
.onb .btn { display: flex; align-items: center; justify-content: center; }
.onb .btn .ico { margin-right: 8px; }
.onb__feats { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.onb__feats li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: center; }
.onb__feats span { grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; background: #e2f5ee; color: var(--brand); display: grid; place-items: center; }
.onb__feats b { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.onb__feats small { font-size: 13px; color: #66736e; }

/* ---------- Сканування ---------- */
.scan { position: relative; height: 100vh; height: 100svh; min-height: 700px; background: #0b1311; overflow: hidden; color: #fff; }
.scan__cam { position: absolute; left: 0; right: 0; top: 0; bottom: calc(244px + var(--bottom-inset)); overflow: hidden; background: #0b1311; }
.scan__bg, .scan__video, .scan__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__video, .scan__shot { opacity: 0; transition: opacity .25s; }
.scan.live .scan__video { opacity: 1; }
.scan.reading .scan__shot { opacity: 1; }
.scan__shot { background: #0b1311; }
.scan__top { position: absolute; left: 18px; right: 18px; top: calc(var(--top-inset) + 6px); height: 40px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.scan__top b { font-size: 17px; font-weight: 600; }
.scan__btn { width: 40px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.scan__frame { position: absolute; left: 38px; right: 38px; top: calc(var(--top-inset) + 77px); bottom: calc(296px + var(--bottom-inset)); z-index: 1; }
.scan__frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #3ddc97; }
.scan__frame i:nth-child(1) { left: 0; top: 0; border-width: 4px 0 0 4px; border-top-left-radius: 14px; }
.scan__frame i:nth-child(2) { right: 0; top: 0; border-width: 4px 4px 0 0; border-top-right-radius: 14px; }
.scan__frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 14px; }
.scan__frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 14px; }
.scan__line { position: absolute; left: 10px; right: 10px; top: 48%; height: 3px; border-radius: 2px; background: #34d1a1; box-shadow: 0 0 14px 4px rgba(52, 209, 161, .55); opacity: 0; }
.scan.reading .scan__line { opacity: 1; animation: scanline 1.8s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 6%; } to { top: 92%; } }
.scan__panel { position: absolute; left: 0; right: 0; bottom: 0; height: calc(288px + var(--bottom-inset)); padding: 16px 20px var(--bottom-inset); border-radius: 24px 24px 0 0; background: #0b1311; z-index: 2; text-align: center; }
.scan__status { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 20px; background: #fff; color: var(--ink); font-size: 15px; }
.scan__status b { font-weight: 600; }
.scan__status .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #bfeedd; border-top-color: #0f9d7a; animation: spin .8s linear infinite; }
.scan__status.busy .spin { display: block; }
.scan__status.bad { background: #fdecea; color: #b3261e; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan__hint { margin: 14px auto 0; max-width: 340px; min-height: 40px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .7); }
.scan__hint .link { color: #3ddc97; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.scan__modes { margin-top: 16px; display: flex; justify-content: center; gap: 22px; font-size: 15px; height: 32px; }
.scan__modes > * { position: relative; color: rgba(255, 255, 255, .6); }
.scan__modes i { position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 3px; background: #3ddc97; opacity: 0; }
.scan__modes .on { color: #3ddc97; font-weight: 600; }
.scan__modes .on i { opacity: 1; }
.scan__row { margin-top: 4px; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 26px; }
.scan__gal, .scan__flash { width: 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 12px; cursor: pointer; }
.scan__gal span { width: 52px; height: 52px; border-radius: 12px; border: 2px solid #fff; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.scan__flash span { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.scan__flash.on span { background: #fff; color: #0b1311; }
.scan__flash:disabled { opacity: .35; cursor: default; }
.scan__gal small, .scan__flash small { font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.scan__shutter { width: 76px; height: 76px; border-radius: 38px; border: 4px solid #fff; display: grid; place-items: center; }
.scan__shutter i { width: 60px; height: 60px; border-radius: 30px; background: #fff; transition: transform .15s; }
.scan__shutter:active i { transform: scale(.9); }

/* ---------- Перевірка ---------- */
.check { padding: calc(var(--top-inset) + 2px) 16px calc(34px + var(--bottom-inset)); }
.check .navbar--dark { position: relative; left: auto; right: auto; top: auto; height: 34px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); margin: 0 0 6px -6px; }
.check .navbar--dark .navbar__back { color: var(--brand); }
.check .navbar--dark span { font-size: 14px; color: #66736e; }
.check__photo { height: 158px; border-radius: 22px; overflow: hidden; background: #e8ebe9; }
.check__photo img { width: 100%; height: 100%; object-fit: cover; }
.check__h { margin: 22px 0 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.check__sub { margin-top: 6px; font-size: 14px; color: #66736e; }
.check__warn { margin-top: 20px; display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: #fdecea; color: #b3261e; }
.check__warn > .ico { margin-top: 1px; }
.check__warn b { display: block; font-size: 15.5px; color: var(--ink); }
.check__warn p { margin-top: 4px; font-size: 14px; line-height: 20px; color: #44514c; }
.check__card { margin-top: 20px; padding: 0 16px; }
.crow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; text-align: left; color: #b6bdba; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow__ic { width: 30px; height: 30px; border-radius: 15px; background: #f2f4f3; color: #66736e; display: grid; place-items: center; flex: none; }
.crow__ic img { width: 22px; height: 22px; object-fit: contain; }
.crow__ic--t { font-size: 14px; font-weight: 600; }
.crow__l { flex: 1; font-size: 15.5px; color: var(--ink); text-align: left; min-width: 0; }
.crow__l small { display: block; margin-top: 2px; font-size: 12.5px; color: #66736e; overflow-wrap: anywhere; }
.crow__v { font-size: 15px; color: #66736e; text-align: right; }
.crow__v.strong { color: var(--ink); font-weight: 700; }
.crow em { font-style: normal; color: var(--brand); font-weight: 600; }
.crow--2 { padding: 10px 0; }
.crow__copy { width: 32px; height: 32px; border-radius: 10px; background: #e2f5ee; color: var(--brand); display: grid; place-items: center; flex: none; }
.check__more { margin-top: 22px; font-size: 14px; color: #66736e; }
.check__fix { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check__fix .btn { height: 44px; font-size: 15px; color: #44514c; background: #efefef; }
.check .err { margin-top: 12px; }
.check__save { margin-top: 18px; }
.svpick { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svpick__i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; text-align: left; }
.svpick__i img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.svpick__i.on { border-color: var(--brand); background: #e2f5ee; font-weight: 600; }
.field--unit { flex-direction: row; align-items: center; position: relative; margin-top: 14px; }
.field--unit span { position: absolute; right: 14px; color: #66736e; font-size: 16px; }
.dcal { margin: 12px 0 14px; }
.dcal__head { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.dcal__head button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); }
.dcal__head b { font-size: 16px; }
.dcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.dcal__grid small { font-size: 12px; color: #66736e; padding: 6px 0; }
.dcal__grid button { justify-self: center; width: 38px; height: 38px; border-radius: 19px; font-size: 15px; }
.dcal__grid button.on { background: var(--brand); color: #fff; font-weight: 600; }
