/* Emberlo app UI — iOS-native feel, warm & calm. Everything scoped inside .screen */
.screen { font-family: var(--font); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
.screen button { border: 0; background: none; padding: 0; text-align: inherit; }
.screen p { margin: 0; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.18em; }
.av { border-radius: 50%; flex: none; display: inline-block; background: var(--bg2); }
.avpair { display: inline-flex; } .avpair .av + .av { margin-left: -9px; box-shadow: 0 0 0 2px var(--surface); }
.mascot { flex: none; } .mascot .flick { transform-origin: 60px 105px; animation: flick 3.2s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97) rotate(-1deg); } }
.tapped { animation: tap .22s var(--ease); } @keyframes tap { 40% { transform: scale(.96); } }

/* ---------- Chrome ---------- */
.status { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 38px; z-index: 50; font-weight: 600; font-size: 16px; pointer-events: none; color: var(--ink); }
.status.light { color: #fff; } .st-ic { display: flex; gap: 6px; align-items: center; }
.island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .85; z-index: 70; pointer-events: none; }
.locked .home-ind { background: #fff; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.nav { padding: 54px 16px 6px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); z-index: 5; position: relative; }
.nav:not(.large) { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 10px; border-bottom: .5px solid var(--line); }
.nav-back { display: flex; align-items: center; gap: 2px; color: var(--ember-ink); font-weight: 500; height: 34px; margin-left: -6px; }
.nav-t { margin: 0; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.nav-r { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.nav-top { display: flex; align-items: center; justify-content: space-between; }
.nav-lt { margin: 8px 2px 2px; font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.hh-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--surface); border-radius: 99px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.ibtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); position: relative; background: var(--surface) !important; box-shadow: var(--shadow); }
.ibtn.sm { width: 30px; height: 30px; box-shadow: none; background: transparent !important; color: var(--muted); }
.ibtn.solid { background: var(--ember) !important; color: #fff; flex: none; }
.ibtn.light { background: rgba(255,255,255,.18) !important; color: #fff; box-shadow: none; }
.bell b { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 9px; background: var(--ember); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--surface); }
.scr { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 16px 0; scrollbar-width: none; overscroll-behavior: contain; }
.scr::-webkit-scrollbar { display: none; }
.scr-pad { height: 110px; }
.anim-push { animation: push .38s var(--ease); } .anim-pop { animation: pop .32s var(--ease); } .anim-fade { animation: fade .28s ease; }
@keyframes push { from { transform: translateX(40px); opacity: 0; } } @keyframes pop { from { transform: translateX(-30px); opacity: 0; } } @keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 86px; padding: 6px 10px 26px; display: flex; align-items: center; justify-content: space-around; background: color-mix(in srgb, var(--surface) 93%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border-top: .5px solid var(--line); z-index: 6; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--muted); width: 64px; }
.tab.on { color: var(--ember); } .tab.on .ic { stroke-width: 2.2; }
.tab-fab { width: 56px; height: 56px; border-radius: 20px; background: linear-gradient(160deg, #F2A541, #D9692B) !important; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(217, 105, 43, .38); margin-top: -18px; }
.tab-fab .ic { stroke-width: 2.4; }

/* ---------- Basic blocks ---------- */
.date-line { color: var(--muted); font-size: 13px; margin: -2px 2px 12px !important; }
.sync-ok { color: var(--sage); font-weight: 500; }
.sec { margin: 18px 0 6px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.sec-h h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.lnk { color: var(--ember-ink); font-weight: 600; font-size: 14px; }
.center-b { display: block; margin: 12px auto 0; } .center { text-align: center; }
.fine { font-size: 12px; color: var(--muted); margin-top: 8px !important; line-height: 1.45; }
.muted { color: var(--muted); }
.card { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card > div p { color: var(--ink2); font-size: 13.5px; margin-top: 2px; }
.solo, .propose, .week, .soft-ok, .safety-on, .vote-mini, .thanks-in, .pending-ag, .intro { display: flex; gap: 12px; align-items: flex-start; }
.solo { background: linear-gradient(135deg, var(--amber-soft), var(--ember-soft)); }
.solo .btn { margin-top: 10px; }
.week { align-items: center; } .week > .ic { color: var(--sage); background: var(--sage-soft); border-radius: 12px; padding: 8px; width: 40px; height: 40px; }
.week > div { flex: 1; } .week b { font-size: 14.5px; } .week.done { background: var(--sage-soft); }
.soft-ok { align-items: center; background: var(--sage-soft); color: var(--ink); font-size: 14px; font-weight: 500; }
.safety-on { background: var(--sage-soft); align-items: center; } .safety-on > div { flex: 1; } .safety-on .ic { color: var(--sage); }
.vote-mini { align-items: center; background: var(--amber-soft); } .vote-mini > div { flex: 1; }
.thanks-in { background: var(--plum-soft); }
.pending-ag .ic, .intro > .ic { color: var(--ember); background: var(--ember-soft); border-radius: 12px; padding: 8px; width: 40px; height: 40px; }
.intro { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.intro p { color: var(--ink2); font-size: 13.5px; margin-top: 3px; }
.row-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); background: var(--bg2); padding: 10px 12px; border-radius: var(--r-sm); margin: 12px 0; line-height: 1.45; }
.note .ic { color: var(--ember); margin-top: 1px; }
.pill { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--bg2); color: var(--ink2); font-weight: 500; }
.pill.soon { background: var(--amber-soft); color: var(--ember-ink); }
.on-pill { font-size: 11px; font-weight: 600; color: var(--sage); background: var(--sage-soft); padding: 3px 8px; border-radius: 99px; }
.pro-badge { font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #F2A541, #D9692B); padding: 1px 6px; border-radius: 6px; vertical-align: 1px; letter-spacing: .03em; }
.kv { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; } .kv span { color: var(--ink2); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 15px !important; font-weight: 600; font-size: 15.5px; margin-top: 12px; transition: transform .15s, opacity .2s; }
.btn.primary { background: var(--ember) !important; color: #fff; box-shadow: 0 6px 16px rgba(217, 105, 43, .28); }
.btn.soft { background: var(--ember-soft) !important; color: var(--ember-ink); }
.btn.ghost { background: transparent !important; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.quiet { background: var(--bg2) !important; color: var(--ink2); }
.btn.sm { height: 36px; width: auto; padding: 0 14px !important; font-size: 13.5px; margin-top: 0; border-radius: 11px !important; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn:active { transform: scale(.97); }
/* Toggle */
.tg { width: 51px; height: 31px; border-radius: 99px; background: var(--line2) !important; position: relative; flex: none; transition: background .25s; }
.tg i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .28s var(--ease); }
.tg.on { background: var(--sage) !important; } .tg.on i { transform: translateX(20px); }
#panel .tg { width: 42px; height: 26px; border: 0; padding: 0; } #panel .tg i { width: 22px; height: 22px; } #panel .tg.on i { transform: translateX(16px); }
/* Chips */
.chips { display: flex; gap: 6px; margin: 10px 0; } .chips.scroll { overflow-x: auto; scrollbar-width: none; margin: 10px -16px; padding: 0 16px; } .chips.wrap { flex-wrap: wrap; }
.chip { flex: none; padding: 7px 13px !important; border-radius: 99px; background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line2); font-size: 13px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.chip.on { background: var(--ink) !important; color: var(--bg); box-shadow: none; }
/* Lists */
.list { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 54px; position: relative; width: 100%; }
.list .row + .row::before { content: ''; position: absolute; top: 0; left: 60px; right: 0; border-top: .5px solid var(--line); }
.row[data-a] { cursor: pointer; } .row[data-a]:active { background: var(--bg2); }
.row-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); color: var(--ink2); flex: none; }
.row-ic.ember { background: var(--ember-soft); color: var(--ember-ink); } .row-ic.amber { background: var(--amber-soft); color: #A86E12; } .row-ic.sage { background: var(--sage-soft); color: var(--sage); } .row-ic.sky { background: var(--sky-soft); color: var(--sky); } .row-ic.plum { background: var(--plum-soft); color: var(--plum); }
.row-av { position: relative; flex: none; display: flex; }
.ph-dot { position: absolute; right: -3px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); color: var(--ember); display: grid; place-items: center; box-shadow: var(--shadow); }
.row-b { flex: 1; min-width: 0; }
.row-t { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.row-s { font-size: 12.5px; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row-r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; color: var(--ink2); flex: none; }
.row-time { font-size: 11.5px; color: var(--muted); } .chev { color: var(--line2); }
.row.unread .row-t { font-weight: 600; } .row.unread::after { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ember); }
.pk { color: var(--plum); display: inline-flex; align-items: center; gap: 2px; } .dot { color: var(--line2); }
.money { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; } .money.in { color: var(--sage); }
.src { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--bg2); color: var(--ink2); letter-spacing: .01em; }
.src-receipt { background: var(--ember-soft); color: var(--ember-ink); } .src-evening { background: var(--plum-soft); color: var(--plum); } .src-shopping { background: var(--sage-soft); color: var(--sage); } .src-quick { background: var(--amber-soft); color: #9A6410; } .src-recon { background: var(--sky-soft); color: var(--sky); } .src-income { background: var(--sage-soft); color: var(--sage); }
[data-theme="dark"] .src-quick, [data-theme="dark"] .row-ic.amber { color: var(--amber); }
.empty { text-align: center; padding: 26px 20px; color: var(--muted); font-size: 14px; } .empty p { margin-top: 6px; }

/* ---------- Home ---------- */
.bar { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--amber), var(--ember)); transition: width .6s var(--ease); }
.bar.low i { background: linear-gradient(90deg, #F5C98A, var(--amber)); } .bar.fund i { background: linear-gradient(90deg, #A8C9A1, var(--sage)); } .bar.pk i { background: linear-gradient(90deg, #D9AFC7, var(--plum)); }
.bar i.grow { width: 100%; animation: grow 1.5s var(--ease); } @keyframes grow { from { width: 0; } }
.jars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .jars.funds { margin-top: 10px; }
.jar { background: var(--surface) !important; border-radius: var(--r); padding: 12px !important; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; min-height: 124px; }
.jar-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; }
.c-amber .ic, .jar-ic.c-amber { color: #A86E12; } .jar-ic.c-amber { background: var(--amber-soft); }
.jar-ic.c-peach { background: var(--peach-soft); color: #B4652F; } .jar-ic.c-sky { background: var(--sky-soft); color: var(--sky); } .jar-ic.c-rose { background: var(--rose-soft); color: var(--rose); } .jar-ic.c-plum { background: var(--plum-soft); color: var(--plum); } .jar-ic.c-ember { background: var(--ember-soft); color: var(--ember); } .jar-ic.c-sage { background: var(--sage-soft); color: var(--sage); }
.jar-n { font-size: 13px; color: var(--ink2); font-weight: 500; } .jar-v { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-top: 1px; font-variant-numeric: tabular-nums; } .jar-s { font-size: 11px; color: var(--muted); margin-top: 1px; flex: 1; }
.pockets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pocket { background: var(--surface); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.pocket.me { background: linear-gradient(160deg, var(--surface), var(--plum-soft)); }
.pk-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 500; } .pk-h .ic { color: var(--plum); margin-left: auto; }
.pk-v { font-size: 18px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; } .pk-v.sm small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pk-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { background: var(--surface) !important; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 4px !important; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.25; }
.quick .ic { color: var(--ember); }
.pro-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pro-strip button { position: relative; background: var(--surface) !important; border-radius: 14px; padding: 10px 4px !important; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; text-align: center; box-shadow: var(--shadow); color: var(--ink2); }
.pro-strip button .ic:first-child { color: var(--ember); } .pro-strip .lk { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.pro-strip button.on { background: linear-gradient(160deg, var(--surface), var(--amber-soft)) !important; }
/* Suggestion */
.sg { border-radius: var(--r); padding: 13px 14px; margin-bottom: 10px; background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--amber); }
.sg-warm { border-left-color: var(--amber); } .sg-calm { border-left-color: var(--sky); } .sg-happy { border-left-color: var(--sage); background: linear-gradient(160deg, var(--surface), var(--sage-soft)); }
.sg-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ember-ink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.sg-calm .sg-h { color: var(--sky); } .sg-happy .sg-h { color: var(--sage); }
.sg p { font-size: 14px; line-height: 1.5; } .sg-a { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.why { margin-top: 8px; font-size: 12.5px; color: var(--ink2); } .why summary { cursor: pointer; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.why summary::-webkit-details-marker { display: none; } .why div { margin-top: 6px; padding: 8px 10px; background: var(--bg2); border-radius: 10px; line-height: 1.5; }
/* Inbox */
.inbox { padding: 4px 14px 12px; } .ib-item { padding: 10px 0; border-bottom: .5px solid var(--line); } .ib-item:last-of-type { border: 0; }
.ib-amt { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; } .ib-sub { font-size: 12.5px; color: var(--muted); }
.seg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.seg3 button { height: 40px; border-radius: 12px; background: var(--bg2) !important; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; }
.seg3 button:first-child { background: var(--plum-soft) !important; color: var(--plum); } .seg3 button:nth-child(2) { background: var(--ember-soft) !important; color: var(--ember-ink); }
.seg3.big button { height: 48px; }

/* ---------- Sheets & toast ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-bg { position: absolute; inset: 0; background: rgba(25, 15, 8, .38); }
.sheet { position: relative; background: var(--bg); border-radius: 28px 28px 0 0; max-height: 88%; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,.15); }
.sheet-wrap.enter .sheet-bg { animation: fade .3s ease; } .sheet-wrap.enter .sheet { animation: sheetIn .42s var(--ease); }
.sheet-wrap.closing .sheet { transform: translateY(100%); transition: transform .22s ease-in; } .sheet-wrap.closing .sheet-bg { opacity: 0; transition: opacity .22s; }
@keyframes sheetIn { from { transform: translateY(100%); } }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line2); margin: 8px auto 0; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 4px 20px; } .sheet-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.sheet-h .ibtn { width: 32px; height: 32px; box-shadow: none; background: var(--bg2) !important; }
.sheet-b { overflow-y: auto; padding: 8px 18px 34px; scrollbar-width: none; }
.sheet-wrap.full .sheet { max-height: 100%; height: 100%; border-radius: 0; }
.sheet-wrap.full .sheet-b { padding: 0; height: 100%; }
.sheet.ext { margin: 0 8px 8px; border-radius: 26px; max-height: 80%; }
.toast { position: absolute; left: 16px; right: 16px; top: 56px; z-index: 80; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(-120px); transition: transform .4s var(--ease); }
.toast.in { transform: none; } .toast .ic { color: var(--amber); }
/* Fields */
.fld { display: block; margin: 12px 0; } .fld-l { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 12px 0 6px; } .fld .fld-l { margin-top: 0; }
.fld-h { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; } .amt-prev { color: var(--sage); font-weight: 600; }
.inp { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: 13px; padding: 12px 13px; outline: none; transition: border .2s, box-shadow .2s; resize: none; }
.inp:focus { border-color: var(--ember); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember) 15%, transparent); }
.inp.sm { width: auto; padding: 10px; font-size: 13.5px; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .two .fld { margin: 6px 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 12px 2px; color: var(--ink2); }
.check input, .cbx { width: 20px; height: 20px; accent-color: var(--ember); flex: none; }
.big-amt { text-align: center; padding: 10px 0 4px; }
.amt-in { width: 100%; border: 0; background: transparent; text-align: center; font: inherit; font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); outline: none; font-variant-numeric: tabular-nums; }
.amt-prev2 { display: block; font-size: 13px; color: var(--muted); }
.pick { display: grid; gap: 6px; }
.pick-i { display: flex; align-items: center; gap: 10px; padding: 11px 12px !important; border-radius: 14px; background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; cursor: pointer; width: 100%; }
.pick-i span { flex: 1; } .pick-i em { font-style: normal; font-size: 12.5px; color: var(--muted); } .pick-i small { display: block; color: var(--muted); font-size: 12px; } .pick-i input { accent-color: var(--ember); }
.pick-i.on { box-shadow: inset 0 0 0 2px var(--ember); background: var(--ember-soft) !important; }
.radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line2); flex: none !important; } .pick-i.on .radio { box-shadow: inset 0 0 0 6px var(--ember); }

/* ---------- Lock screen & widgets ---------- */
.lock { position: absolute; inset: 0; background: var(--wall); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 50px 14px 30px; animation: fade .35s; }
.lk-lock { margin-top: 8px; opacity: .9; } .lk-date { font-size: 17px; font-weight: 500; margin-top: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.15); }
.lk-time { font-size: 92px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 2px 0 14px; text-shadow: 0 2px 20px rgba(0,0,0,.12); }
.lk-wg { width: 100%; display: grid; gap: 8px; }
.wg { background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); border-radius: 22px; padding: 12px; color: #fff; text-align: left; }
.wg-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; opacity: .95; } .wg-x { margin-left: auto; color: #fff; }
.wg-item { margin: 6px 0 8px; } .wg-item b { font-size: 22px; font-variant-numeric: tabular-nums; } .wg-item small { display: block; font-size: 12px; opacity: .85; }
.wg-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .wg-btns.one { grid-template-columns: 1fr; margin-top: 8px; }
.wg-btns button, .wg-grid button { height: 38px; border-radius: 12px; background: rgba(255,255,255,.26) !important; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; }
.wg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; } .wg-grid button { font-size: 12px; }
.wg-done { margin-top: 6px; } .wg-done b { font-size: 17px; display: block; } .wg-done small { opacity: .85; font-size: 12.5px; }
.wg-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; } .wg-row:has(> :nth-child(3)) { grid-template-columns: 1fr 1.6fr 1fr; }
.wg-s { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; font-size: 11.5px; }
.wg-s.list { align-items: stretch; justify-content: flex-start; gap: 4px; } .wg-cap { opacity: .9; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.wg-s.list button { color: #fff; font-size: 12.5px; display: flex; align-items: center; gap: 6px; text-align: left; white-space: nowrap; overflow: hidden; }
.wg-s.list button i { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid #fff; flex: none; }
.lk-n { width: 100%; margin-top: auto; display: grid; gap: 8px; padding-bottom: 8px; }
.ln { background: rgba(255,255,255,.82); color: #2B2320; border-radius: 20px; padding: 10px 12px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: lnIn .5s var(--ease); }
[data-theme="dark"] .ln { background: rgba(40,30,25,.85); color: #F5ECE3; }
@keyframes lnIn { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.ln-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; } .ln-h small { margin-left: auto; opacity: .6; font-weight: 400; }
.ln p { font-size: 14px; margin-top: 3px; }
.ln-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; } .ln-btns button { height: 34px; border-radius: 10px; background: rgba(0,0,0,.07) !important; font-size: 13px; font-weight: 600; text-align: center; }
.lk-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.lk-b { width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.22) !important; display: grid; place-items: center; color: #fff; }
.lk-open { color: #fff; font-size: 13px; opacity: .9; padding: 10px !important; }
.faceid { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: .25s; background: rgba(0,0,0,.45); border-radius: 22px; padding: 18px; color: #fff; pointer-events: none; }
.faceid.on { opacity: 1; transform: translate(-50%, -50%) scale(1); } .faceid .ic { stroke-width: 1.5; }

/* ---------- Bank app + iOS share ---------- */
.bank-app { height: 100%; background: linear-gradient(180deg, #0F5C4D 0%, #0B4A3E 40%, #F2F4F3 40%); padding: 54px 18px 30px; display: flex; flex-direction: column; color: #1B2B27; }
.bank-top { display: flex; align-items: center; justify-content: space-between; color: #fff; font-weight: 600; margin-bottom: 18px; }
.bank-card { background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.12); text-align: center; }
.bank-ok { width: 56px; height: 56px; border-radius: 50%; background: #E3F4EC; color: #11885C; display: grid; place-items: center; margin: 0 auto 8px; }
.bank-t { font-weight: 600; color: #11885C; } .bank-amt { font-size: 30px; font-weight: 700; margin: 4px 0 14px; }
.bank-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; text-align: left; font-size: 13px; margin: 0; } .bank-card dt { color: #6E7C78; } .bank-card dd { margin: 0; font-weight: 500; text-align: right; word-break: break-word; }
.blur-rc .photo { filter: blur(3px); width: 100%; border-radius: 12px; }
.bank-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bank-b { height: 50px; border-radius: 14px; background: #fff !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: #0F5C4D; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.bank-b.main { background: #0F5C4D !important; color: #fff; }
.bank-note { font-size: 11.5px; color: #6E7C78; text-align: center; margin-top: auto !important; }
.ios-share { position: absolute; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: flex-end; animation: fade .25s; }
.ios-sh-card { width: 100%; background: #F2F2F7; border-radius: 16px 16px 0 0; padding: 14px 14px 34px; color: #000; animation: sheetIn .35s var(--ease); }
.ios-sh-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: .5px solid #D1D1D6; } .ios-sh-h div { flex: 1; } .ios-sh-h small { display: block; color: #8E8E93; font-size: 12px; }
.ios-sh-h .ibtn { width: 30px; height: 30px; box-shadow: none; background: #E5E5EA !important; color: #8E8E93; }
.ios-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: block; } .ios-thumb svg { width: 100%; height: 100%; }
.ios-apps { display: flex; gap: 14px; padding: 14px 2px; overflow-x: auto; }
.ios-app { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; flex: none; } .ios-app small { font-size: 11px; color: #3A3A3C; }
.ios-ic { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.ios-ic.ember { background: linear-gradient(160deg, #FFF3E2, #FCE0C2); }
.ios-rows { background: #fff; border-radius: 12px; } .ios-rows div { padding: 12px 14px; font-size: 15px; } .ios-rows div + div { border-top: .5px solid #D1D1D6; }
.reading { position: relative; border-radius: 16px; overflow: hidden; margin: 6px 0 12px; } .reading .photo { width: 100%; display: block; }
.scanline { position: absolute; left: 0; right: 0; height: 40px; top: 0; background: linear-gradient(180deg, transparent, rgba(242, 165, 65, .45), transparent); animation: scan 1.1s ease-in-out infinite; }
@keyframes scan { 0% { top: -40px; } 100% { top: 100%; } }
.ext-ok { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sage); background: var(--sage-soft); border-radius: 10px; padding: 8px 10px; }
.dup { display: flex; gap: 10px; background: var(--amber-soft); border-radius: 14px; padding: 12px; margin-top: 10px; font-size: 13.5px; } .dup .ic { color: var(--ember); }
.fail-rc .photo { width: 100%; filter: blur(2px); border-radius: 14px; margin-bottom: 10px; }

/* ---------- Ritual / onboarding ---------- */
.ritual .scr { padding-top: 4px; }
.rt-prog { display: flex; gap: 5px; margin: 4px 0 6px; } .rt-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); } .rt-prog i.done { background: var(--amber); } .rt-prog i.on { background: var(--ember); }
.rt-step { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rt-h { font-size: 22px; letter-spacing: -.02em; margin: 14px 0 8px; text-align: center; }
.qr-box { width: 220px; margin: 12px auto; padding: 14px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); } .qr { width: 100%; display: block; }
.code { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--ember-ink); background: var(--ember-soft); border-radius: 16px; padding: 12px; margin: 8px 0; }
.scanner { position: relative; height: 300px; border-radius: 24px; background: linear-gradient(160deg, #3A302B, #1A1411); overflow: hidden; display: grid; place-items: center; color: #fff; margin: 10px 0; }
.scanner p { position: absolute; bottom: 14px; font-size: 13px; opacity: .8; }
.sc-frame { width: 180px; height: 180px; border-radius: 24px; box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 0 0 999px rgba(0,0,0,.25); }
.sc-line { position: absolute; width: 170px; height: 2px; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: scl 1.8s ease-in-out infinite alternate; } @keyframes scl { from { transform: translateY(-80px); } to { transform: translateY(80px); } }
.both-ok { display: flex; justify-content: center; gap: 10px; margin: 16px 0 0; }
.both-ok span { position: relative; opacity: .45; transition: .3s; } .both-ok span.ok { opacity: 1; }
.both-ok span .ic { position: absolute; right: -3px; bottom: -3px; background: var(--sage); color: #fff; border-radius: 50%; padding: 2px; width: 16px; height: 16px; }
.fam { background: var(--surface); border-radius: 16px; padding: 12px; margin: 8px 0; box-shadow: var(--shadow); } .fam.on { box-shadow: inset 0 0 0 2px var(--amber), var(--shadow); }
.fam-h { display: flex; align-items: center; gap: 8px; } .fam-h b { flex: 1; } .fam-h .ic { color: var(--ember); } .fam textarea { margin-top: 8px; font-size: 14px; }
.never { display: flex; gap: 8px; font-size: 13px; background: var(--plum-soft); color: var(--ink2); padding: 12px; border-radius: 14px; margin: 12px 0; } .never .ic { color: var(--plum); margin-top: 2px; }
.wg-guide { display: grid; gap: 8px; margin: 12px 0; } .wg-guide div { display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 10px 12px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; }
.wg-guide b { width: 26px; height: 26px; border-radius: 50%; background: var(--ember-soft); color: var(--ember-ink); display: grid; place-items: center; font-size: 13px; flex: none; }
.ag-paper { background: var(--surface); border-radius: 22px; padding: 22px 18px 16px; box-shadow: var(--shadow); position: relative; margin: 14px 0 12px; background-image: radial-gradient(circle at 100% 0, var(--amber-soft), transparent 40%); }
.ag-paper h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; } .ag-paper > p { font-size: 12.5px; margin: 2px 0 10px; }
.ag-seal { position: absolute; top: 14px; right: 14px; }
.ag-item { position: relative; padding: 10px 30px 10px 0; border-top: .5px dashed var(--line2); } .ag-item p { font-size: 14px; line-height: 1.5; margin-top: 3px; }
.ag-item .ibtn { position: absolute; right: -6px; top: 8px; }
.ag-cat { font-size: 11px; font-weight: 700; color: var(--ember-ink); text-transform: uppercase; letter-spacing: .05em; }
.ag-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ag-sign div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px; border-radius: 14px; background: var(--bg2); font-size: 13px; font-weight: 600; }
.ag-sign i { font-style: normal; font-size: 11px; color: var(--sage); font-weight: 500; } .ag-sign div.signed, .ag-paper:not(.sm) .ag-sign div { background: var(--sage-soft); }
.ag-q { margin: 10px 0; padding: 12px 14px; border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: 0 14px 14px 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.done-hero { text-align: center; padding: 24px 10px 8px; } .done-hero h2 { font-size: 22px; letter-spacing: -.02em; margin: 12px 0 6px; } .done-hero p { color: var(--ink2); font-size: 14.5px; }
.done-hero > .ic { color: var(--sage); background: var(--sage-soft); border-radius: 24px; padding: 14px; width: 72px; height: 72px; }
.done-hero.sm { padding: 14px; background: var(--sage-soft); border-radius: 18px; margin-top: 12px; } .done-hero.sm h2 { font-size: 17px; }
.confetti { position: relative; } .confetti::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, var(--amber) 2px, transparent 3px) 10% 20%/40px 40px, radial-gradient(circle, var(--sage) 2px, transparent 3px) 30% 60%/50px 50px, radial-gradient(circle, var(--plum) 2px, transparent 3px) 70% 10%/46px 46px; opacity: .5; animation: fade 1s; pointer-events: none; }
.welcome .scr { padding: 0; } .wl { min-height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 26px 40px; background: linear-gradient(180deg, var(--amber-soft), var(--bg) 60%); }
.wl-art { width: 100%; height: 280px; display: grid; place-items: center; } .wl-art .art { width: 100%; }
.wl-pk { width: 160px; height: 160px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--plum); box-shadow: var(--shadow); }
.wl h1 { font-size: 27px; letter-spacing: -.025em; line-height: 1.2; margin: 18px 0 10px; } .wl p { color: var(--ink2); font-size: 15.5px; }
.dots { display: flex; gap: 6px; margin: 22px 0 auto; } .dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line2); } .dots i.on { width: 22px; background: var(--ember); }
.wl .btn { margin-top: 26px; }
.bubble-out { background: #0A84FF; color: #fff; border-radius: 20px 20px 6px 20px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; margin-left: 30px; }
.hh-hero, .me-hero { text-align: center; padding: 6px 0 4px; } .hh-hero h2 { margin: 10px 0 2px; font-size: 21px; } .hh-hero p { color: var(--muted); font-size: 13.5px; }
.me-hero { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 14px; } .me-hero h2 { margin: 0; font-size: 19px; } .me-hero p { color: var(--muted); font-size: 13px; }
.left-s { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: var(--bg); } .left-s h2 { margin: 14px 0 8px; } .left-s p { color: var(--ink2); }

/* ---------- Ledger & tx ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 13px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); height: 42px; outline: none; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; } .stat-row div { background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.stat-row small { font-size: 11.5px; color: var(--muted); display: block; } .stat-row b { font-size: 17px; }
.day-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 16px 4px 6px; }
.tx-hero { text-align: center; padding: 12px 0 16px; } .tx-amt { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; } .tx-amt.in { color: var(--sage); }
.tx-t { font-size: 16px; font-weight: 500; } .tx-s { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 4px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tx-photo .photo, .war-ph .photo { width: 100%; display: block; border-radius: 16px; }
.photo-add { width: 100%; height: 90px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; background: var(--surface) !important; border-style: dashed; }
.trend { display: flex; align-items: flex-end; gap: 8px; height: 140px; background: var(--surface); border-radius: var(--r); padding: 12px 12px 8px; box-shadow: var(--shadow); }
.tr-c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.tr-c i { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--sky), color-mix(in srgb, var(--sky) 55%, transparent)); }
.tr-c small { font-size: 10.5px; color: var(--muted); } .tr-c em { font-style: normal; font-size: 10px; color: var(--ink2); order: -1; }
.limits { padding-left: 18px; margin: 8px 0; font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: .5px solid var(--line); vertical-align: top; } .tbl th { background: var(--bg2); font-weight: 600; }

/* ---------- Shopping ---------- */
.sh-add { display: flex; gap: 6px; align-items: center; } .sh-add .inp:first-child { flex: 1; min-width: 0; }
.sh-list { margin: 12px 0; display: grid; gap: 6px; }
.sh-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px !important; background: var(--surface) !important; border-radius: 14px; box-shadow: var(--shadow); width: 100%; transition: .2s; }
.sh-i.big { padding: 16px !important; font-size: 17px; }
.cb { width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--line2); display: grid; place-items: center; flex: none; color: #fff; transition: .2s; }
.sh-i.done .cb { background: var(--sage); box-shadow: none; } .sh-i.done .sh-n { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line2); }
.sh-n { flex: 1; display: flex; align-items: center; gap: 6px; text-align: left; } .sh-p { font-size: 12.5px; color: var(--muted); }
.est { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 0; } .est span { flex: 1; } .est em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ember-ink); background: var(--amber-soft); padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.est-card .btn { margin-top: 10px; }
.market .scr { background: var(--surface2); } .mk-total { text-align: center; padding: 10px 0 8px; } .mk-total small { color: var(--muted); } .mk-total b { display: block; font-size: 36px; letter-spacing: -.02em; }

/* ---------- Backup / restore / privacy ---------- */
.rcode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.rcode span { background: var(--surface); border-radius: 12px; padding: 10px 6px; text-align: center; font-weight: 700; font-size: 18px; letter-spacing: .1em; font-family: ui-monospace, 'SF Mono', monospace; box-shadow: var(--shadow); }
.rcode span small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0; font-family: var(--font); font-weight: 500; }
.rcode.in .inp { text-align: center; font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 12px 4px; }
.qr-sm { width: 110px; margin: 0 auto; }
.proj { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 4px; align-items: stretch; }
.proj-col { background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.proj-col.other { background: var(--sky-soft); }
.proj-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.proj-b { font-size: 11.5px; background: var(--bg2); border-radius: 9px; padding: 7px 8px; line-height: 1.35; } .proj-col.other .proj-b { background: var(--surface); }
.proj-b small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.proj-b.mine { background: var(--plum-soft); } .proj-b.none { color: var(--ink2); background: transparent !important; box-shadow: inset 0 0 0 1px dashed var(--line2); border: 1px dashed var(--line2); }
.proj-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sky); } .proj-arrow small { font-size: 8.5px; text-align: center; color: var(--muted); line-height: 1.2; }

/* ---------- Pro ---------- */
.paywall .sheet-b { padding-top: 0; }
.pw-hero { text-align: center; padding: 6px 0; } .pw-hero h2 { margin: 6px 0 4px; font-size: 24px; letter-spacing: -.02em; } .pw-hero p { color: var(--ink2); font-size: 14px; }
.pw-hero.sm { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 10px; }
.pw-list { display: grid; gap: 4px; margin: 12px 0; } .pw-list div { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 12px; font-size: 13.5px; }
.pw-list .ic { color: var(--ember); margin-top: 2px; } .pw-list small { display: block; color: var(--muted); font-size: 12px; } .pw-list div.hl { background: var(--amber-soft); }
.pw-price { background: var(--surface); border-radius: 14px; padding: 12px; text-align: center; box-shadow: var(--shadow); } .pw-price small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.locked { position: relative; border-radius: var(--r); overflow: hidden; margin-top: 10px; }
.locked-in { filter: blur(5px) saturate(.8); opacity: .55; pointer-events: none; user-select: none; max-height: 320px; overflow: hidden; }
.locked-cta { position: absolute; inset: auto 10px 10px 10px; top: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; background: color-mix(in srgb, var(--surface) 88%, transparent); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.locked-cta .ic { color: var(--ember); } .locked-cta p { font-size: 13px; color: var(--ink2); margin-bottom: 8px !important; }
.war { display: flex; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); margin-top: 10px; cursor: pointer; }
.war-ph { width: 96px; flex: none; } .war-b { flex: 1; min-width: 0; } .war-b b { display: block; } .war-b small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 6px; line-height: 1.4; }
.war-list { margin-top: 2px; }
.tet-hero { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FCE3CF, #F8C9B5); border-radius: 22px; padding: 16px; position: relative; overflow: hidden; margin-bottom: 10px; color: #3B2316; }
.tet-n { font-size: 46px; font-weight: 700; color: #B4421E; letter-spacing: -.03em; line-height: 1; } .tet-hero small { display: block; font-size: 12.5px; opacity: .8; }
.tet-fl { position: absolute; right: -6px; top: -6px; color: #E2675A; opacity: .5; width: 90px; height: 90px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cmp div { background: var(--surface); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); } .cmp span { font-size: 12px; color: var(--muted); display: block; } .cmp b { font-size: 16px; } .cmp small { display: block; font-size: 11px; color: var(--ink2); }
.vote-hero { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; } .vote-hero b { display: block; font-size: 16px; } .vote-hero small { color: var(--muted); }
.vote-opts { display: grid; gap: 8px; margin-top: 10px; }
.vopt { display: grid !important; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: var(--surface) !important; border-radius: 16px; padding: 12px !important; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); width: 100%; }
.vopt b { font-size: 14.5px; } .vopt small { display: block; font-size: 12px; color: var(--muted); }
.vopt.on { box-shadow: inset 0 0 0 2px var(--ember), var(--shadow); background: var(--ember-soft) !important; }
.vo-m { text-align: center; font-weight: 700; font-size: 18px; color: var(--ember-ink); } .vo-m.ok { color: var(--sage); } .vo-m small { font-size: 10px; font-weight: 500; color: var(--muted); }
.vo-av { grid-column: 1 / -1; display: flex; gap: 4px; min-height: 0; } .vo-av:empty { display: none; }
.ratio { background: var(--surface); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.ratio-r { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; font-size: 13.5px; }
.ratio-r i { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--amber), var(--ember)) 0 0 / var(--w) 100% no-repeat, var(--bg2); }
.ratio-r b { color: var(--muted); font-weight: 500; } .ratio-r em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.safety-hero { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--sage-soft), var(--surface)); border-radius: 20px; padding: 16px; } .safety-hero .ic { color: var(--sage); } .safety-hero small { display: block; color: var(--ink2); font-size: 12.5px; margin-top: 2px; }
.sim-out { text-align: center; background: linear-gradient(160deg, var(--sky-soft), var(--surface)); border-radius: 20px; padding: 16px; margin: 12px 0; } .sim-out b { display: block; font-size: 26px; letter-spacing: -.02em; margin: 2px 0; } .sim-out small { color: var(--ink2); font-size: 12.5px; }
.rng { width: 100%; accent-color: var(--ember); }
.mems { display: grid; gap: 12px; } .mem { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); } .mem .art { width: 100%; display: block; } .mem-b { padding: 12px 14px; } .mem-b small { color: var(--muted); } .mem-b p { font-size: 13.5px; margin-top: 4px; color: var(--ink2); }
.subs { display: grid; gap: 8px; } .sub { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); } .sub > div:first-child { flex: 1; min-width: 0; } .sub small { display: block; color: var(--muted); font-size: 12px; }
.sub.idle { background: var(--surface2); } .sub-q { display: flex; flex-direction: column; align-items: center; gap: 3px; } .sub-q small { font-size: 10.5px; }
.thx-card { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, var(--plum-soft), var(--amber-soft)); margin-bottom: 12px; } .thx-card .ic { color: var(--rose); width: 26px; height: 26px; }
.thx-in { display: flex; gap: 10px; background: var(--surface); padding: 12px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 8px; } .thx-in p { font-size: 14px; } .thx-in small { color: var(--muted); font-size: 11.5px; }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tpl { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px !important; background: var(--surface) !important; border-radius: 14px; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500; }
.tpl .ic { color: var(--ember); } .tpl i { position: absolute; top: -6px; right: 8px; font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--amber); color: #fff; padding: 1px 6px; border-radius: 6px; }
.jar-hero { text-align: center; padding: 10px 0 14px; } .jh-v { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; } .jh-s { color: var(--muted); font-size: 13px; }
.jar-hero .jar-ic { margin: 0 auto; width: 52px; height: 52px; border-radius: 16px; }
.jar-hero .bar { max-width: 260px; margin: 12px auto 0; }
.week:not(.done) { flex-wrap: wrap; }
.week:not(.done) > div { flex: 1 1 0; min-width: 0; }
.week:not(.done) > .btn { flex: 1 0 100%; justify-content: center; }
.week p { margin: 2px 0 0; }
.mem-b b { display: block; } .mem-b small { display: block; margin-top: 2px; }
[data-theme="dark"] .tet-hero { background: linear-gradient(135deg, #4A2618, #3A1D14); color: #F5E6DA; }
[data-theme="dark"] .tet-n { color: #FFB089; }
[data-theme="dark"] input[type=checkbox] { accent-color: var(--ember); color-scheme: dark; }
.confetti::before { -webkit-mask-image: linear-gradient(#000 0 40%, transparent 62%); mask-image: linear-gradient(#000 0 40%, transparent 62%); }

/* ================= Chế độ Người mới ================= */
.fr .scr { padding: 0; }
.fr-wrap { min-height: 100%; display: flex; flex-direction: column; padding: 18px 22px 30px; background: linear-gradient(180deg, var(--amber-soft), var(--bg) 46%); }
.fr-top { display: flex; align-items: center; justify-content: space-between; }
.fr-step { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow); }
.fr-q { font-size: 25px; line-height: 1.28; letter-spacing: -.02em; margin: 18px 0 6px; font-weight: 700; text-wrap: balance; }
.fr-amt { font-size: 42px; font-weight: 700; letter-spacing: -.03em; text-align: center; margin: 14px 0 2px; font-variant-numeric: tabular-nums; color: var(--ink); }
.fr-amt.empty { color: var(--line2); }
.fr-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.chips.center { justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.chips.center .chip { padding: 9px 18px !important; font-size: 14.5px; }
.chip.on { background: var(--ember) !important; color: #fff; box-shadow: none; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.numpad button { height: 52px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 21px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.numpad button:active { background: var(--ember-soft); }
.fr-wrap > .btn { margin-top: auto; }
.fr-jar { margin: 26px auto 0; width: 100%; background: var(--surface); border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 10px 30px rgba(217, 105, 43, .16); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.fr-jar .jar-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 6px; }
.fr-jar b { font-size: 16px; } .fr-jar small { color: var(--muted); font-size: 12.5px; }
.fr-jv { font-size: 36px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fr-jar .bar { width: 100%; margin-top: 10px; }
.fr-jar.pop { animation: jarPop 1s var(--ease); }
@keyframes jarPop { 0% { transform: scale(.55) translateY(30px); opacity: 0; box-shadow: 0 0 0 0 rgba(242, 165, 65, .6); } 55% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 0 18px rgba(242, 165, 65, 0); } 100% { transform: scale(1); } }
.fr-delta { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 600; color: var(--ember-ink); background: var(--ember-soft); padding: 4px 9px; border-radius: 99px; animation: fade .5s var(--ease); }
.fr-line { text-align: center; font-size: 15px; line-height: 1.5; color: var(--ink2); margin: 16px 6px 0; text-wrap: balance; }
.fr-try { margin-top: 22px; } .fr-try small { color: var(--muted); font-size: 12.5px; }
.fr-try-r { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; } .fr-try-r b { font-size: 22px; } .fr-try-r span { color: var(--ink2); }
.fr-ok { margin-top: auto; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 14px; border-radius: 16px; background: var(--sage-soft); color: var(--sage); font-weight: 600; font-size: 14px; animation: fade .4s var(--ease); }
.fr-done { align-items: center; text-align: center; justify-content: center; }
.fr-done h1 { font-size: 26px; letter-spacing: -.02em; margin: 18px 0 8px; text-wrap: balance; }
.fr-done p { color: var(--ink2); font-size: 15px; line-height: 1.5; margin: 0 0 6px; text-wrap: balance; }
.fr-mascot { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #FFE3BF 0%, transparent 70%); animation: jarPop 1s var(--ease); }
.fr-mascot.dim { background: none; opacity: .8; animation: none; }
.fr-acts { width: 100%; margin-top: auto; padding-top: 18px; }
.fr-done .fr-acts { margin-top: 18px; }
.fr-acts .btn + .btn { margin-top: 10px; }
.c-dots { display: flex; gap: 6px; justify-content: center; margin: 6px 0 18px; } .c-dots i { width: 26px; height: 5px; border-radius: 99px; background: var(--line2); } .c-dots i.on { background: var(--ember); }
.cfr-inv { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-top: 40px; } .cfr-inv > b { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.bubble { background: var(--surface); border-radius: 20px 20px 20px 6px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.cfr-pk { margin-top: 36px; background: linear-gradient(160deg, var(--plum-soft), var(--surface)); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.cfr-pk .pk-h { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink2); } .cfr-pk .pk-h .ic { margin-left: auto; color: var(--plum); }
.cfr-pv { font-size: 36px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 8px; } .cfr-pv small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.cfr-pk p { margin: 0; color: var(--ink2); line-height: 1.5; font-size: 14.5px; }
.cfr-wg { margin-top: 26px; text-align: center; } .cfr-wg > b { display: block; font-size: 19px; margin-top: 18px; } .cfr-wg p { color: var(--ink2); font-size: 14.5px; line-height: 1.5; margin: 6px 4px 0; }
.cfr-lock { background: var(--wall); border-radius: 26px; padding: 22px 16px 18px; color: #fff; } .cl-t { display: block; font-size: 46px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.15); }
.cfr-lock .wg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; } .cfr-lock .wg-grid button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 600; }
.nb-hero { background: linear-gradient(160deg, var(--amber-soft), var(--surface) 70%); border-radius: 26px; padding: 22px 20px 18px; box-shadow: var(--shadow); margin-top: 4px; }
.nb-hero small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.nb-big { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; line-height: 1.1; }
.nb-hero p { margin: 0; color: var(--ink2); font-size: 14px; } .nb-hero .btn { margin-top: 18px; height: 54px; font-size: 16.5px; }
.card.gift { margin-top: 14px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--ember) 45%, var(--line2)); animation: giftIn .6s var(--ease); }
@keyframes giftIn { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.gift-h { display: flex; gap: 10px; align-items: center; } .gift-h small { display: flex; align-items: center; gap: 4px; color: var(--ember-ink); font-size: 12px; font-weight: 600; } .gift-h b { display: block; font-size: 16px; margin-top: 2px; }
.card.gift p { margin: 8px 0 0; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.card.gift.sm { margin: 0 0 14px; }
.nb-pk { display: flex; gap: 12px; align-items: center; } .nb-pk > div { flex: 1; } .nb-pk b { font-size: 20px; display: block; } .nb-pk small { color: var(--muted); font-size: 12.5px; } .nb-pk > .ic { color: var(--plum); }
.nb-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; cursor: pointer; } .nb-row > div { flex: 1; } .nb-row b { display: block; } .nb-row small { color: var(--muted); font-size: 12.5px; } .nb-row > .ic:first-child { color: var(--sage); }
.nb-explore { display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; margin: 22px 0 6px; padding: 12px; border-radius: 14px; color: var(--ink2); font-size: 13.5px; background: transparent; border: 1px dashed var(--line2); }
.nb-explore b { color: var(--ember-ink); } .nb-explore .ic { color: var(--amber); }
.nbq-alt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.nbq-alt button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 12px; background: var(--surface2); color: var(--ink2); font-size: 12.5px; font-weight: 500; }
.nbi { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.nbi-opt { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--surface2); }
.nbi-opt span b { display: block; font-size: 14px; } .nbi-opt span small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.tabbar.nb .tab { animation: fade .5s var(--ease); }
[data-theme="dark"] .fr-mascot { background: radial-gradient(circle, rgba(242,165,65,.25) 0%, transparent 70%); }
.fr-wrap { padding-top: 58px; }
.numpad { margin-top: auto; }
.numpad + .btn { margin-top: 12px; }
.numpad button { display: grid; place-items: center; text-align: center; }
.fr-q { margin-top: 14px; }
.fr-delta { position: static; margin-top: 10px; }
