
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
}


@font-face {
  font-family: 'Finjaro Emoji';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-color-emoji-finjaro-subset.woff2') format('woff2');
  unicode-range: U+200D, U+21A9-21AA, U+231A, U+2328, U+23F0, U+23F3, U+25B6, U+25C0, U+2600, U+2615, U+267B, U+2699, U+26A0-26A1, U+26BD, U+26F4, U+26FD, U+2705, U+2708-2709, U+270D, U+270F, U+274C, U+2764, U+2795, U+2B50, U+FE0F, U+1F17F, U+1F30D, U+1F30F-1F310, U+1F317, U+1F319, U+1F331, U+1F33F, U+1F34E, U+1F354, U+1F35C, U+1F370, U+1F37D, U+1F381-1F382, U+1F389, U+1F392-1F393, U+1F39F, U+1F3A7-1F3A8, U+1F3AC, U+1F3AE-1F3AF, U+1F3B3, U+1F3B8, U+1F3C1, U+1F3C6, U+1F3CB, U+1F3CD, U+1F3D5, U+1F3D8, U+1F3DB, U+1F3E0-1F3E2, U+1F3E5-1F3E7, U+1F3EA, U+1F3F7, U+1F41F, U+1F431, U+1F436, U+1F43E, U+1F441, U+1F446, U+1F455, U+1F45C, U+1F45F, U+1F464, U+1F466-1F46A, U+1F471, U+1F474-1F476, U+1F484, U+1F487, U+1F48A, U+1F48D-1F48E, U+1F490, U+1F49A, U+1F4A0-1F4A1, U+1F4AC, U+1F4B0-1F4B1, U+1F4B3, U+1F4B5, U+1F4B8-1F4B9, U+1F4BB-1F4BC, U+1F4BE, U+1F4C1-1F4C2, U+1F4C4-1F4C5, U+1F4C7-1F4CC, U+1F4CE, U+1F4D1-1F4D2, U+1F4D5-1F4D6, U+1F4DA, U+1F4DC-1F4DD, U+1F4E4-1F4E6, U+1F4ED, U+1F4F1-1F4F2, U+1F4F7, U+1F501, U+1F504, U+1F50B, U+1F50D, U+1F511-1F514, U+1F520, U+1F525, U+1F527-1F528, U+1F5A5, U+1F5BC, U+1F5D1, U+1F642, U+1F648, U+1F686, U+1F68C, U+1F695, U+1F697, U+1F69A, U+1F6AB, U+1F6CD, U+1F6CF, U+1F6D1-1F6D2, U+1F6DF, U+1F6E1, U+1F6E3, U+1F6F5, U+1F91D, U+1F967, U+1F96C, U+1F9B4, U+1F9B7, U+1F9CB, U+1F9D1, U+1F9E7, U+1F9ED, U+1F9F0, U+1F9F3-1F9F4, U+1F9F7-1F9FA, U+1F9FE, U+1FA7A, U+1FA92, U+1FA94, U+1FA99, U+1FAA3, U+1FAD9;
}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:   #0E9F8E;
  --purple-l: #3ECFB8;
  --green:    #2ECC71;
  --red:      #E74C3C;
  --orange:   #F39C12;
  --bg:       #EFF9F7;
  --white:    #FFFFFF;
  --text:     #2D3436;
  --muted:    #636E72;
  --border:   #DCEDEA;
  --shadow:   0 2px 12px rgba(0,121,107,.08);   
  
  --teal-ink: #00796B;   
  --fill:     #00796B;   
  --fill-l:   #00796B;
  --on-fill:  #FFFFFF;   
  --fill-chip: rgba(0,0,0,.2);        
  --hdr:      #00796B;   
  --hdr-l:    #0B7C6E;
  --hdr-chip: rgba(0,0,0,.12);        
  
  --green-ink:  #1B7F3A;
  --red-ink:    #B3261E;
  --orange-ink: #9A5B00;
  --hover:    #EAF6F3;                
  
  --hero-bg: #E6F6F3; --hero-border: #BFE6DD; --track: #E2ECEA;   
  --warn-bg: #FFF4E0; --warn-ink: #7A4A00;
  --seg-spent: #8A9896; --seg-bills: #C98A00; --seg-free: #0E9F8E;
  --eye-bg: rgba(0,121,107,.10);
  --hol-bg: #FCECEA; --bill: #C98A00;   
  --leaf: #1B7F3A; --leaf-bg: #EBF7EE;   
  
  --hr-bg: #00796B; --hr-text: #FFFFFF; --hr-muted: #E8F8F5; --hr-line: rgba(255,255,255,.28); --hr-eye: rgba(255,255,255,.18); --hr-border: #00796B;
  --hr-free: #FFFFFF; --hr-bills: #FFD166; --hr-spent: #B9E3DC;
  --card2: #E6F6F3;
  --r:        16px;
  --r-sm:     10px;
  --nav-h:    66px;
  --hdr-h:    66px;
}


:root[data-theme="dark"] {
  --li-ink:   #FFFFFF;   
  --purple:   #2DD4BF;
  --purple-l: #7FE9DA;
  --green:    #34D399;
  --red:      #F87171;
  --orange:   #FBBF24;
  --bg:       #07120F;
  --white:    #10241F;
  --text:     #EDEEF5;
  --muted:    #9BA0BB;
  --border:   #23423E;
  --shadow:   0 4px 22px rgba(0,0,0,.55);
  --teal-ink: #2DD4BF;
  --fill:     #2DD4BF;   
  --fill-l:   #2DD4BF;
  --on-fill:  #04201C;
  --fill-chip: rgba(255,255,255,.35);
  --hdr:      #0F3B35;   
  --hdr-l:    #0F3B35;
  --hdr-chip: rgba(255,255,255,.2);
  --green-ink:  #34D399;
  --red-ink:    #F87171;
  --orange-ink: #FBBF24;
  --hover:    #183530;
  --hero-bg: #0F2E29; --hero-border: #1E4F47; --track: #1F3833;
  --warn-bg: #2A2210; --warn-ink: #FCD34D;
  --seg-spent: #5E7470; --seg-bills: #FBBF24; --seg-free: #2DD4BF;
  --eye-bg: rgba(45,212,191,.14);
  --hol-bg: #3A1A1A; --bill: #FBBF24;
  --leaf: #34D399; --leaf-bg: #12301F;
  --hr-bg: #0F3B35; --hr-text: #FFFFFF; --hr-muted: #BFE3DD; --hr-line: rgba(255,255,255,.22); --hr-eye: rgba(255,255,255,.14); --hr-border: #1E4F47;
  --hr-free: #2DD4BF; --hr-bills: #FBBF24; --hr-spent: #8FB0AA;
  --card2: #17302A;
}

:root[data-theme="dark"] .ctab.active { box-shadow: 0 2px 6px rgba(0,0,0,.4); }

html, body {
  height: 100%;
  font-family: 'Finjaro Emoji', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;   
  font-variant-numeric: tabular-nums;          
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}


#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  border-left: 1px solid var(--border);        
  border-right: 1px solid var(--border);
}


button, input, select, textarea { font-family: inherit; }


.header {
  background: linear-gradient(135deg, var(--hdr) 0%, var(--hdr-l) 100%);
  color: white;
  padding: 0 18px;
  height: var(--hdr-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-emoji { font-size: 26px; line-height: 1; }
.brand-name  { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.brand-sub   { font-size: 11px; opacity: .95; }

.hdr-right  { display: flex; align-items: center; gap: 8px; }
.month-nav  { display: flex; align-items: center; gap: 6px; background: var(--hdr-chip); border-radius: 20px; padding: 5px 12px; }
.mnav-btn   { background: none; border: none; color: white; font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }
.mnav-label { font-size: 13px; font-weight: 600; min-width: 84px; text-align: center; }
.hdr-icon-btn { background: var(--hdr-chip); border: none; color: white; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .18s; }
.hdr-icon-btn:hover { background: rgba(255,255,255,.35); }


main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 8px);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}


.view { display: none; padding: 14px 14px 0; animation: fadeUp .22s ease; }
.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


.sum-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.scard {
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  box-shadow: var(--shadow);
}
.scard-ico { font-size: 22px; }
.scard-lbl { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.scard-val { font-size: 12.5px; font-weight: 800; }

.income-c  .scard-val { color: var(--green-ink); }
.expense-c .scard-val { color: var(--red-ink); }
.savings-c .scard-val { color: var(--orange-ink); }


.sav-wrap {
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.sav-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

#savMsg { font-size: 12px; color: var(--muted); font-weight: 500; flex: 1; }

.goal-chip {
  background: none;
  border: 1.5px solid var(--purple);
  color: var(--teal-ink);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .16s;
}
.goal-chip:hover { background: var(--fill); color: var(--on-fill); }

.sav-track { background: var(--bg); border-radius: 6px; height: 8px; overflow: hidden; }
.sav-fill  { height: 100%; border-radius: 6px; width: 0%; background: linear-gradient(90deg, var(--green), #7BC67E); transition: width .7s cubic-bezier(.16,1,.3,1); }
.sav-fill.over  { background: linear-gradient(90deg, var(--red), #FF8B8B); }
.sav-fill.goal-fill { background: linear-gradient(90deg, var(--purple), var(--purple-l)); }
.sav-fill.goal-done { background: linear-gradient(90deg, var(--green), #7BC67E); }

.goal-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.goal-line.hidden { display: none; }
.sav-pct { font-size: 13px; font-weight: 800; color: var(--teal-ink); }


.card-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.cb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cb-title { font-size: 15px; font-weight: 700; }

.text-btn {
  background: none;
  border: none;
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}


.chart-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 20px; padding: 3px; }
.ctab {
  border: none; background: none;
  padding: 4px 11px; border-radius: 16px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: all .18s;
}
.ctab.active { background: var(--white); color: var(--teal-ink); box-shadow: 0 2px 6px rgba(0,0,0,.1); }


.chart-box {
  position: relative; height: 230px;
  display: flex; align-items: center; justify-content: center;
}
.chart-box canvas { max-height: 230px; }
.chart-none {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--muted);
}
.chart-none span { font-size: 32px; }
.chart-none p    { font-size: 13px; }


.txlist { display: flex; flex-direction: column; }

.tx-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }

.tx-emoji { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tx-info  { flex: 1; min-width: 0; }
.tx-cat   { font-size: 14px; font-weight: 600; color: var(--text); }
.tx-note  { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date  { font-size: 11px; color: var(--muted); margin-top: 1px; }

.tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.tx-amt   { font-size: 14px; font-weight: 800; }
.tx-amt.expense { color: var(--red-ink); }
.tx-amt.income  { color: var(--green-ink); }

.tx-acts  { display: flex; gap: 4px; }
.act-btn  {
  background: none; border: none; font-size: 15px; cursor: pointer;
  padding: 3px; border-radius: 6px; opacity: .55;
  transition: opacity .15s; line-height: 1;
}
.act-btn:hover { opacity: 1; }

.dg-hdr {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  padding: 12px 0 5px; border-bottom: 1px solid var(--border);
}

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 20px; gap: 10px; color: var(--muted);
}
.empty-ico { font-size: 40px; }
.empty p   { font-size: 14px; text-align: center; line-height: 1.5; }


.bnav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;      
  align-items: end;
  box-shadow: 0 -3px 16px rgba(0,0,0,.08);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: visible;
}

.nb {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 2px 10px;
  color: var(--muted); transition: color .18s; height: 100%;
}
.nb.active { color: var(--teal-ink); }
.ni { font-size: 19px; line-height: 1; }
.nl { font-size: 11.5px; font-weight: 700; line-height: 1.1; text-align: center; overflow-wrap: normal; letter-spacing: -.1px; }   
html[style*="zoom"] .nl { font-size: 10px; letter-spacing: -.2px; }   

.fab {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fill), var(--fill-l));
  border: 3px solid var(--white); color: var(--on-fill); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(14,159,142,.45);
  position: relative; bottom: 14px; margin: 0 auto;
  transition: transform .12s, box-shadow .12s;
}
.fab:active { transform: scale(.94); box-shadow: 0 3px 10px rgba(14,159,142,.4); }
.fab-plus { font-size: 30px; line-height: 1; font-weight: 300; }


.nav-cap { position: absolute; left: 0; top: 8px; height: 50px; width: 100%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s; }
.nav-cap i { position: absolute; left: 0; top: 0; height: 50px; background: var(--fill); will-change: transform; transform-origin: 0 50%; }
.nav-cap .nc-l, .nav-cap .nc-r { width: 50px; border-radius: 50%; }
.nav-cap .nc-m { width: 100px; }
.bnav .nb { position: relative; z-index: 2; -webkit-tap-highlight-color: transparent; }
.bnav .fab { z-index: 3; }
.bnav.fj-cap .nb { transition: color .12s; }
.bnav.fj-cap .nb.active, .bnav.fj-cap .nb.under { color: var(--on-fill); }
.bnav.fj-cap.moving .nb.active:not(.under) { color: var(--muted); }
.bnav.fj-cap.moving .nb { transition: none; }
.nb { min-width: 48px; }
@media (prefers-reduced-motion: reduce) { .nav-cap { transition: none; } .bnav.fj-cap .nb { transition: none; } }


.ovl {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 200;
  display: flex; align-items: flex-end;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: ovlIn .18s ease;
}
.ovl.hidden { display: none !important; }
@keyframes ovlIn { from { opacity: 0; } to { opacity: 1; } }

#delOvl, #clearConfirmOvl, #importConfirmOvl { z-index: 600; }

#settingsOvl { z-index: 190; }


.sheet {
  background: var(--white);
  border-radius: 22px 22px 0 0;
  padding: 10px 18px 32px;
  width: 100%; max-width: 480px; margin: 0 auto;
  max-height: 93vh; overflow-y: auto;
  animation: sheetUp .28s cubic-bezier(.16,1,.3,1);
  -webkit-overflow-scrolling: touch;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-bar {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 14px;
}

.sheet-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.sheet-hdr h2 { font-size: 18px; font-weight: 700; }

.x-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}


.goal-sheet { padding-bottom: 28px; }
.goal-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.remove-btn {
  width: 100%; padding: 12px; background: none;
  border: 1.5px solid var(--red); color: var(--red);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 10px;
}


.type-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; background: var(--bg);
  border-radius: 12px; padding: 4px; margin-bottom: 18px;
}
.tb {
  border: none; background: none; padding: 10px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; color: var(--muted); transition: all .18s;
}
.tb.active { background: var(--white); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.1); }


.amt-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: var(--r-sm);
  padding: 4px 16px; margin-bottom: 18px;
  border: 2px solid transparent; transition: border-color .18s;
}
.amt-row:focus-within { border-color: var(--purple); background: var(--white); }
.amt-pre { font-size: 22px; font-weight: 700; color: var(--muted); }
.amt-row input {
  flex: 1; border: none; background: none;
  font-size: 32px; font-weight: 800; color: var(--text);
  outline: none; min-width: 0; font-family: inherit;
}
.amt-row input::placeholder { color: #C0C5D0; }


.fg { margin-bottom: 16px; }
.fg-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.optional { font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.fg-pair { display: flex; gap: 10px; }
.fg.half { flex: 1; }

.fg input[type="date"],
.fg input[type="time"],
.fg input[type="text"] {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .18s; -webkit-appearance: none;
}
.fg input:focus { border-color: var(--purple); }


.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; max-height: 260px; overflow-y: auto;
  padding: 2px; -webkit-overflow-scrolling: touch;
}

.cat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 4px;
  border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; background: var(--card2);
  transition: all .16s; -webkit-tap-highlight-color: transparent;
}
.cat-item.sel { border-color: var(--fill); background: var(--fill); }
.cat-item:active { transform: scale(.95); }

.ci-emoji { font-size: 22px; line-height: 1; }
.ci-name  { font-size: 10px; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.2; }
.cat-item.sel .ci-name { color: var(--on-fill); font-weight: 700; }


.save-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--fill), var(--fill-l));
  color: var(--on-fill); border: none; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(14,159,142,.35);
  transition: transform .1s, box-shadow .1s; letter-spacing: .3px;
}
.save-btn:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(14,159,142,.3); }


#delOvl, #clearConfirmOvl, #importConfirmOvl { align-items: center; justify-content: center; }

.del-box {
  background: var(--white); border-radius: 22px;
  padding: 32px 24px 24px; width: calc(100% - 60px); max-width: 320px;
  text-align: center; animation: zoomIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes zoomIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.del-ico  { font-size: 48px; margin-bottom: 14px; }
.del-ttl  { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.del-sub  { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.del-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-cancel, .btn-danger { padding: 13px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-cancel { background: var(--bg); color: var(--text); }
.btn-danger { background: var(--red); color: white; }


.view-hdr { font-size: 20px; font-weight: 800; margin-bottom: 14px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }   
.ftab {
  padding: 6px 16px; border: 2px solid var(--border);
  border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; background: var(--white); color: var(--muted); transition: all .16s;
}
.ftab.active { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }


.pnl-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px;
}

.pnl-hdr {
  text-align: center; padding-bottom: 14px;
  border-bottom: 2px solid var(--border); margin-bottom: 14px;
}
.pnl-company { font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.pnl-period  { font-size: 12px; color: var(--muted); margin-top: 3px; }

.pnl-result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
  margin-top: 12px;
}
.pnl-result-badge.profit { background: rgba(46,204,113,.12); color: var(--green-ink); }
.pnl-result-badge.loss   { background: rgba(231,76,60,.1);   color: var(--red-ink); }

.pnl-sec-lbl {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .7px;
  margin: 14px 0 6px;
}

.pnl-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.pnl-row:last-of-type { border-bottom: none; }
.pnl-row-left { display: flex; align-items: center; gap: 8px; }
.pnl-subtotal {
  display: flex; justify-content: space-between;
  padding: 9px 0 6px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text);
}
.pnl-divider { height: 1px; background: var(--text); margin: 10px 0 6px; }
.pnl-net {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 16px; font-weight: 800;
}
.pnl-net .profit { color: var(--green-ink); }
.pnl-net .loss   { color: var(--red-ink); }


.bs-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.bs-title { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.bs-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.bs-row:last-child { border-bottom: none; }
.bs-label { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bs-val   { font-weight: 700; }
.bs-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0 4px; border-top: 2px solid var(--text);
  margin-top: 4px; font-size: 15px; font-weight: 800;
}
.bs-total-val.positive { color: var(--green-ink); }
.bs-total-val.negative { color: var(--red-ink); }


.rep-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.rep-card-ttl {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}

.rep-donut { position: relative; width: 148px; height: 148px; margin: 0 auto 14px; display: grid; place-items: center; }
.rep-donut svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rep-donut-tot { position: relative; max-width: 100px; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: none; }
.cr-emoji { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.cr-info  { flex: 1; min-width: 0; }
.cr-name  { font-size: 13px; font-weight: 600; }
.cr-bar-wrap { height: 4px; background: var(--bg); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.cr-bar  { height: 100%; border-radius: 2px; transition: width .6s cubic-bezier(.16,1,.3,1); }
.cr-pct  { font-size: 11px; color: var(--muted); min-width: 30px; text-align: right; }
.cr-amt  { font-size: 13px; font-weight: 800; min-width: 72px; text-align: right; }

.week-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.week-row:last-child { border-bottom: none; }
.wr-lbl  { font-size: 14px; font-weight: 600; }
.wr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wr-inc  { font-size: 12px; color: var(--green-ink); font-weight: 700; }
.wr-exp  { font-size: 12px; color: var(--red-ink); font-weight: 700; }


.nw-hero {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: white; border-radius: var(--r);
  padding: 22px 18px 20px; margin-bottom: 14px;
  box-shadow: 0 4px 24px rgba(27,67,50,.3); text-align: center;
}
.nwh-label  { font-size: 11px; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.nwh-amount { font-size: 38px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.nwh-pills  { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.nwh-pill   { font-size: 12px; opacity: .85; }
.asset-pill strong { color: #6EE7A0; }
.liab-pill  strong { color: #FCA5A5; }
.nwh-sep    { opacity: .5; font-size: 14px; }

.nw-section {
  background: var(--white); border-radius: var(--r);
  padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.nw-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nw-sec-title { font-size: 14px; font-weight: 700; }

.add-chip {
  background: var(--bg); border: none;
  padding: 6px 14px; border-radius: 16px;
  font-size: 12px; font-weight: 700; cursor: pointer; color: var(--teal-ink);
  transition: all .16s;
}
.add-chip:hover { background: var(--fill); color: var(--on-fill); }

.nw-list { display: flex; flex-direction: column; }

.nw-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.nw-item:last-child { border-bottom: none; }

.nw-emoji { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.nw-info  { flex: 1; min-width: 0; }
.nw-name  { font-size: 14px; font-weight: 600; }
.nw-note  { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nw-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.nw-val   { font-size: 14px; font-weight: 800; }
.nw-val.asset { color: var(--green-ink); }
.nw-val.liab  { color: var(--red-ink); }
.nw-acts  { display: flex; gap: 4px; }


.set-status-card {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.set-status-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.set-status-dot  { font-size: 10px; color: var(--green); }
.set-status-dot.error { color: var(--red); }
.set-counts { font-size: 12px; color: var(--muted); margin-top: 4px; }
.set-section-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.set-btn {
  display: flex; align-items: center; gap: 13px;
  width: 100%; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 14px; cursor: pointer;
  text-align: left; margin-bottom: 10px;
  transition: transform .12s ease, box-shadow .16s ease;
}
.set-btn:active { transform: scale(.985); }
.set-btn:hover  { box-shadow: var(--shadow); }
.set-btn-ico    {
  font-size: 20px; flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,159,142,.12);
}
.set-btn-title  { font-size: 15px; font-weight: 700; color: var(--text); }
.set-btn-sub    { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.danger-set-btn .set-btn-ico   { background: rgba(231,76,60,.14); }
.danger-set-btn .set-btn-title { color: var(--red); }


.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #2D3436; color: white;
  padding: 9px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .25s, transform .25s;
  z-index: 400; pointer-events: none;
  white-space: nowrap; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


.search-input {
  width: 100%; padding: 10px 14px; margin-bottom: 12px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .18s; -webkit-appearance: none;
}
.search-input:focus { border-color: var(--purple); }


.budget-grid { display: flex; flex-direction: column; max-height: 48vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.budget-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.budget-row:last-child { border-bottom: none; }
.budget-name { flex: 1; font-size: 14px; font-weight: 600; }
.budget-rm   { font-size: 12px; font-weight: 700; color: var(--muted); }
.budget-row input {
  width: 100px; padding: 8px 10px; text-align: right;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; font-weight: 700; font-family: inherit; color: var(--text);
  outline: none; transition: border-color .18s; -webkit-appearance: none;
}
.budget-row input:focus { border-color: var(--purple); }

:root[data-theme="dark"] .budget-row input { background: #FFFFFF; color: #2D3436; }


.recur-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.recur-item:last-child { border-bottom: none; margin-bottom: 10px; }
.recur-sel {
  width: 100%; padding: 11px 10px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--white); outline: none;
}
.recur-sel:focus { border-color: var(--purple); }
.fg input[type="number"] {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .18s; -webkit-appearance: none;
}


::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(14,159,142,.2); border-radius: 2px; }


@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bnav { padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  main  { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); }
}


@media (min-width: 480px) {
  .bnav { box-shadow: 0 -2px 16px rgba(0,0,0,.1); }
}




.brand-logo { display: flex; align-items: center; justify-content: center; }


.set-arrow { margin-left: auto; font-size: 22px; color: var(--muted); font-weight: 300; }
[dir="rtl"] .set-arrow { transform: scaleX(-1); }


.theme-row { cursor: default; }
.theme-row:hover { box-shadow: none; }
.theme-seg { margin-left: auto; display: flex; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; }
.theme-opt {
  width: 38px; height: 32px; border: none; background: none; border-radius: 9px;
  font-size: 15px; cursor: pointer; color: var(--muted); font-weight: 800; font-family: inherit;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.theme-opt.active { background: var(--white); color: var(--teal-ink); box-shadow: 0 2px 6px rgba(0,0,0,.12); }


.subs-hero {
  background: linear-gradient(135deg, var(--hdr), var(--hdr-l)); color: #fff;
  border-radius: var(--r); padding: 18px; margin-bottom: 16px; text-align: center;
  box-shadow: 0 6px 20px rgba(14,159,142,.3);
}
.subs-hero-lbl { font-size: 12px; opacity: .95; text-transform: uppercase; letter-spacing: .06em; }
.subs-hero-amt { font-size: 30px; font-weight: 800; margin-top: 4px; }


.pick-list { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.pick-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 8px; cursor: pointer; text-align: left; font-family: inherit;
  transition: transform .1s ease, border-color .12s;
}
.pick-item:active { transform: scale(.99); }
.pick-item.sel { border-color: var(--purple); background: rgba(14,159,142,.09); }
.pick-sym {
  font-size: 15px; font-weight: 800; min-width: 44px; height: 34px; color: var(--teal-ink);
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,159,142,.12); border-radius: 9px;
}
.pick-name { flex: 1; font-size: 14px; color: var(--text); display: flex; flex-direction: column; }
.pick-name strong { font-weight: 700; }
.pick-code { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.pick-check { color: var(--teal-ink); font-weight: 800; font-size: 16px; }


.scan-menu { display: flex; gap: 10px; margin-bottom: 14px; }
.scan-menu.hidden { display: none; }
.scan-opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; border: 1px solid var(--border); background: var(--white);
  border-radius: 14px; font-size: 24px; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s;
}
.scan-opt span { font-size: 12px; font-weight: 700; color: var(--text); }
.scan-opt:active { transform: scale(.96); }
.scan-opt:hover  { box-shadow: var(--shadow); border-color: var(--purple); }


.range-row { display: flex; gap: 8px; margin-bottom: 10px; }
.rtab {
  flex: 1; padding: 8px 4px; border: 2px solid var(--border); background: var(--white);
  border-radius: var(--r-sm); font-size: 13px; font-weight: 700; color: var(--muted);
  font-family: inherit; cursor: pointer; transition: all .15s;
}
.rtab.active { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.range-custom { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.range-custom input {
  flex: 1; padding: 8px 10px; border: 2px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px; color: var(--text); background: var(--white); outline: none;
}


.scan-btn {
  width: 100%; padding: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--fill), var(--fill-l)); color: var(--on-fill);
  border: none; border-radius: var(--r-sm); font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; box-shadow: 0 4px 14px rgba(14,159,142,.3);
}
.scan-btn:active { transform: scale(.98); }
.scan-status {
  font-size: 13px; color: var(--text); background: var(--bg);
  padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.spin {
  width: 14px; height: 14px; border: 2px solid var(--purple-l); border-top-color: var(--purple);
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


.split-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer;
}
.split-check { width: 20px; height: 20px; accent-color: var(--purple); }
.split-body { margin-top: 10px; background: var(--bg); border-radius: var(--r-sm); padding: 12px; }
.split-hint { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.split-taxopt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-top: 4px; }
.split-result { margin-top: 10px; font-size: 15px; color: var(--text); }


.subs-summary { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.subs-summary strong { color: var(--teal-ink); font-size: 16px; }
.subs-list, .trash-list { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sub-item, .trash-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.sub-item:last-child, .trash-item:last-child { border-bottom: none; }


.export-btns { display: flex; gap: 10px; margin-top: 16px; }
.exp-fmt-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 6px; border: 1px solid var(--border); background: var(--white);
  border-radius: 16px; font-size: 28px; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s;
}
.exp-fmt-btn span { font-size: 12px; font-weight: 700; color: var(--text); }
.exp-fmt-btn:active { transform: scale(.96); }
.exp-fmt-btn:hover  { box-shadow: var(--shadow); border-color: var(--purple); }


.faq-list { max-height: 64vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 10px; overflow: hidden; transition: box-shadow .16s ease;
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; padding: 14px; text-align: left; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text); font-family: inherit;
}
.faq-caret { transition: transform .2s; color: var(--teal-ink); flex-shrink: 0; font-size: 13px; }
.faq-item.open .faq-caret { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease;
  font-size: 13px; line-height: 1.6; color: var(--muted); padding: 0 14px;
}
.faq-item.open .faq-a { max-height: 520px; padding: 0 14px 14px; }


.pin-input {
  width: 100%; padding: 14px; text-align: center; letter-spacing: 8px;
  font-size: 24px; font-weight: 800; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-family: inherit; color: var(--text);
  background: var(--white); outline: none; -webkit-appearance: none;
}
.pin-input:focus { border-color: var(--purple); }

.lock-screen {
  position: fixed; inset: 0; z-index: 900;
  background: linear-gradient(160deg, var(--hdr), var(--hdr-l));
  display: flex; flex-direction: column; color: #fff; overflow-y: auto;
}
.lock-screen.hidden { display: none; }
.lock-top { flex: 1 1 auto; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px 20px 40px; }
.lock-logo { width: 52px; height: 52px; border-radius: 13px; display: block; }
.lock-title { font-size: 22px; font-weight: 800; margin-top: 6px; }
.lock-sub { font-size: 14px; margin-top: 2px; }
.lock-ring { width: 76px; height: 76px; margin-top: 14px; border-radius: 50%; border: 2.5px solid #fff; background: rgba(0,35,30,.32); color: #fff; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; }
.lock-ring svg { width: 44px; height: 44px; fill: currentColor; display: block; }
.lock-screen.fp-only .lock-ring { width: 112px; height: 112px; margin-top: 28px; animation: lock-pulse 1.6s infinite; }
.lock-screen.fp-only .lock-ring svg { width: 64px; height: 64px; }
.lock-touch { font-size: 13px; font-weight: 700; margin-top: 8px; }
.lock-ring.hidden, .lock-touch.hidden, .lock-sheet.hidden, .lock-help.hidden, .lock-modes.hidden, #lockBkWhy.hidden { display: none; }
.lock-sheet { flex: none; width: 100%; max-width: 440px; margin: -24px auto 0; background: var(--white); color: var(--text); border-radius: 24px 24px 0 0; padding: 16px 18px calc(10px + env(safe-area-inset-bottom, 0px)); position: relative; text-align: center; }
.lock-ask { font-size: 14px; font-weight: 700; }
.lock-dots { display: flex; justify-content: center; gap: 16px; height: 28px; align-items: center; margin-top: 4px; color: var(--teal-ink); }
.lock-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.lock-dot.f { background: currentColor; }
.lock-screen.wrong .lock-dots { color: var(--red-ink); }
.lock-dots.shake { animation: lock-shake .45s; }
.lock-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lock-err { min-height: 38px; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.lock-err.on { background: #FDECEA; color: #8C1D18; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 700; line-height: 1.3; width: fit-content; max-width: 100%; margin: 4px auto 0; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin-top: 6px; }
.lock-key { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card2); color: var(--text); font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.lock-key:active { filter: brightness(.92); }
.lock-key svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.lock-key-ok { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.lock-forgot { display: block; min-height: 48px; margin: 4px auto 0; padding: 8px 16px; border: 0; background: none; color: var(--teal-ink); font: inherit; font-size: 14px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.lock-help { position: absolute; inset: 0; z-index: 2; background: var(--white); color: var(--text); overflow-y: auto; padding: 28px 22px 24px; }
.lock-help > * { max-width: 440px; margin-left: auto; margin-right: auto; }
.lock-help h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.lock-help p { font-size: 14.5px; line-height: 1.55; margin-bottom: 12px; }
.lock-help-back { display: block; width: 100%; min-height: 48px; margin-top: 8px; border-radius: var(--r-sm); border: 0; background: var(--fill); color: var(--on-fill); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.lock-ring:focus-visible, .lock-key:focus-visible, .lock-forgot:focus-visible, .lock-help-back:focus-visible { outline: 3px solid #FBBF24; outline-offset: 2px; }
@keyframes lock-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-10px); } 30% { transform: translateX(9px); } 45% { transform: translateX(-7px); } 60% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes lock-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .lock-dots.shake, .lock-screen.fp-only .lock-ring { animation: none; } }

.lock-modes { margin: 8px 0 10px; }
.lock-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; margin-top: 8px; text-align: left; border: 2px solid var(--border); border-radius: 14px; background: var(--white); color: var(--text); font: inherit; cursor: pointer; }
.lock-opt.on { border-color: var(--teal-ink); }
.lock-opt-r { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 50%; border: 2px solid var(--teal-ink); display: flex; align-items: center; justify-content: center; }
.lock-opt.on .lock-opt-r::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-ink); }
.lock-opt-t b { display: block; font-size: 15px; }
.lock-opt-t small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }


.savings-mini { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.savings-mini-main { font-size: 22px; font-weight: 800; color: var(--green-ink); }
.savings-mini-sub  { font-size: 12px; color: var(--muted); font-weight: 600; }
.sav-hero {
  background: linear-gradient(135deg, #14653A, #1B7F3A); color: #fff;   
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(39,174,96,.3);
}
.sav-hero-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; opacity: .92; }
.sav-hero-row strong { font-size: 20px; font-weight: 800; }
.sav-hero-row.usable { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.25); }
.sav-list { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lock-badge { font-size: 11px; }


.jars-card {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.jars-card:active { transform: scale(.99); }
.jars-card-top { display: flex; align-items: center; justify-content: space-between; }
.jars-card-ttl { font-size: 15px; font-weight: 800; color: var(--text); }
.jars-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jars-mini-pill { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 20px; white-space: nowrap; }


.jar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jarchip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; border: 2px solid var(--border); border-radius: 12px;
  background: var(--card2); cursor: pointer; font-family: inherit; transition: transform .1s;
}
.jarchip:active { transform: scale(.95); }
.jc-emoji { font-size: 18px; }
.jc-name  { font-size: 10px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.2; }


.jar-income { background: var(--bg); border-radius: var(--r-sm); padding: 12px; margin-bottom: 14px; }
.jar-income-lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.jar-income .amt-row { margin: 0; }
.jar-income-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; gap: 8px; }
.jar-income-note { font-size: 11px; color: var(--muted); }
.jar-income-reset { background: none; border: none; color: var(--teal-ink); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.jar-income-reset.hidden { display: none; }


.jar-list { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.jar-item { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.jar-track { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; margin: 10px 0 0; }
.jar-track i { display: block; height: 100%; border-radius: 99px; }
.jar-head { display: flex; align-items: center; gap: 11px; }
.jar-emoji { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.jar-headtext { flex: 1; }
.jar-name { font-size: 14px; font-weight: 700; color: var(--text); }
.jar-code { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--bg); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.jar-pct  { font-size: 12px; font-weight: 700; margin-top: 2px; color: var(--text); }   
.jar-bal  { font-size: 17px; font-weight: 800; color: var(--green-ink); }
.jar-bal.neg { color: var(--red-ink); }
.jar-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 9px 0; }
.jar-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 9px; }
.jar-meta strong { color: var(--text); }
.jar-sum { text-align: right; font-size: 14px; font-weight: 800; margin-top: 8px; }


[dir="rtl"] .set-btn, [dir="rtl"] .pick-item, [dir="rtl"] .tx-item { text-align: right; }


.pro-row .set-btn-ico { background: linear-gradient(135deg,#FFD86B,#F5A623); }
.pro-row.pro-on .set-btn-title { color: #E0A400; }


.pro-why {
  background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.35);
  color: var(--text); font-size: 13px; padding: 11px 13px;
  border-radius: 12px; margin-bottom: 14px; line-height: 1.5;
}
.pro-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pro-feat { display: flex; align-items: flex-start; gap: 12px; }
.pf-ico {
  font-size: 18px; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,159,142,.12);
}
.pf-ttl { font-size: 14px; font-weight: 700; color: var(--text); }
.pf-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.pro-free-note {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  background: var(--bg); border-radius: 12px; padding: 12px; margin-bottom: 16px;
}
.pro-buy {
  background: linear-gradient(135deg,#F5A623,#E08600) !important;
  box-shadow: 0 6px 18px rgba(245,166,35,.35);
}
.pro-restore {
  display: block; width: 100%; text-align: center;
  margin-top: 14px; font-size: 13px; padding: 6px;
}

.key-box { margin-top: 14px; background: var(--bg); padding: 13px; border-radius: 12px; }
.key-box.hidden { display: none; }
.key-box input {
  width: 100%; padding: 12px 14px; letter-spacing: 1px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; color: var(--text); background: var(--white);
  outline: none; text-transform: uppercase;
}
.key-box input:focus { border-color: var(--purple); }


.pro-active { text-align: center; padding: 22px 12px; }
.pro-active.hidden { display: none; }
.pro-active-ico { font-size: 46px; }
.pro-active-ttl { font-size: 19px; font-weight: 800; color: var(--text); margin-top: 8px; }
.pro-active-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
#proOfferBox.hidden { display: none; }


.subs-limit-hint {
  font-size: 12px; color: var(--muted); font-weight: 600;
  background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px;
  text-align: center;
}
.subs-limit-hint.hidden { display: none; }


.pro-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(135deg,#FFD86B,#F5A623); color: #4A3200;
  padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle;
}
body.is-pro .pro-badge { display: none; }


.hidden { display: none !important; }


.pro-secondary {
  width: 100%; margin-top: 10px; padding: 13px;
  background: var(--white); color: var(--teal-ink);
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: border-color .15s;
}
.pro-secondary:hover { border-color: var(--purple); }


.debt-pill {
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 20px;
  white-space: nowrap;
}
.debt-pill.in  { background: rgba(22,160,133,.08); color: var(--green-ink); }
.debt-pill.out { background: rgba(231,76,60,.12);  color: var(--red-ink); }
.debt-pill strong { font-weight: 800; }

.debt-hero {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 10px; margin-bottom: 14px;
}
.debt-hero-col { text-align: center; }
.dh-lbl { font-size: 10px; color: var(--muted); font-weight: 700;
          text-transform: uppercase; letter-spacing: .04em; }
.dh-val { font-size: 15px; font-weight: 800; margin-top: 4px; }
.dh-val.in  { color: var(--green-ink); }
.dh-val.out { color: var(--red-ink); }
.debt-net-val { font-size: 15px; font-weight: 800; margin-top: 4px; }
.debt-net-val.pos { color: var(--green-ink); }
.debt-net-val.neg { color: var(--red-ink); }

.debt-list { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.debt-person {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 2px 7px; border-bottom: 1px solid var(--border); margin-top: 6px;
}
.dp-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fill), var(--fill-l));
  color: var(--on-fill); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dp-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
.dp-bal  { font-size: 13px; font-weight: 800; }
.dp-bal.pos { color: var(--green-ink); }
.dp-bal.neg { color: var(--red-ink); }

.debt-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0 10px 8px; border-bottom: 1px solid var(--border);
}
.debt-item:last-child { border-bottom: none; }
.debt-item.settled { opacity: .55; }
.debt-item .tx-emoji { font-size: 17px; font-weight: 800; }
.settle-btn { color: var(--green-ink); font-weight: 800; }


#splitNamesBox input {
  width: 100%; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--white); outline: none;
}
#splitNamesBox input:focus { border-color: var(--purple); }


body.pro-disabled .pro-badge,
body.pro-disabled #proRow,
body.pro-disabled #subsLimitHint { display: none !important; }


.jar-total-card {
  background: linear-gradient(135deg,#3498DB,#2471A3); color:#fff;
  border-radius: var(--r); padding: 18px; margin-bottom: 12px; text-align: center;
  box-shadow: 0 6px 18px rgba(52,152,219,.3);
}
.jt-lbl { font-size: 11px; opacity: .88; text-transform: uppercase; letter-spacing: .05em; }
.jt-val { font-size: 28px; font-weight: 800; margin-top: 4px; }
.jt-sub { font-size: 11px; opacity: .8; margin-top: 3px; }

.target-list { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.target-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px; margin-bottom: 10px; position: relative;
}
.target-item.done { border-color: var(--green); }
.tg-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.tg-emoji { font-size: 24px; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
            display: flex; align-items: center; justify-content: center; background: var(--bg); }
.tg-headtext { flex: 1; min-width: 0; }
.tg-name { font-size: 14px; font-weight: 700; color: var(--text); }
.tg-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tg-pct  { font-size: 15px; font-weight: 800; color: var(--teal-ink); }
.tg-done { font-size: 9px; font-weight: 800; color: #fff; background: var(--green);
           padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: middle; }
.tg-acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; opacity: .55; }
.tg-acts:hover { opacity: 1; }


.calc-line {
  font-size: 13px; font-weight: 700; color: var(--teal-ink);
  text-align: right; margin: -6px 0 8px; letter-spacing: .5px;
}
.calc-row { display: flex; gap: 6px; margin-bottom: 14px; }
.calc-row.hidden { display: none; }
.calc-row button {
  flex: 1; padding: 11px 0; border: 1px solid var(--border); background: var(--white);
  border-radius: 11px; font-size: 17px; font-weight: 700; color: var(--text);
  font-family: inherit; cursor: pointer; transition: transform .1s, background .15s;
}
.calc-row button:active { transform: scale(.94); background: var(--bg); }
.calc-row .calc-eq { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.calc-row .calc-c  { color: var(--red); }


.cat-add { border-style: dashed !important; opacity: .85; }
.cat-add .ci-emoji { font-size: 18px; }


.emoji-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  max-height: 34vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.emoji-opt {
  aspect-ratio: 1; border: 2px solid var(--border); background: var(--white);
  border-radius: 10px; font-size: 19px; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .1s;
}
.emoji-opt:active { transform: scale(.9); }
.emoji-opt.sel { border-color: var(--purple); background: rgba(14,159,142,.12); }


.type-row-3 { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.type-row-3 .tb { font-size: 12.5px; padding: 10px 2px; white-space: nowrap; }


.tr-swap-wrap { display: flex; justify-content: center; margin: -4px 0 2px; }
.tr-swap {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); color: var(--teal-ink); font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.tr-swap:active { transform: rotate(180deg); }


.rep-card-sub { font-size: 12px; color: var(--muted); margin: -8px 0 12px; line-height: 1.45; }


.eye-inline {
  background: none; border: none; cursor: pointer; padding: 2px 4px; color: inherit;
  font-size: 15px; line-height: 1; opacity: .9; flex-shrink: 0;
  transition: opacity .15s, transform .12s;
}
.eye-inline:hover  { opacity: 1; }
.eye-inline:active { transform: scale(.88); }
.eye-on-dark { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.nwh-amount-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sav-hero-amt   { display: flex; align-items: center; gap: 6px; }
.scope-opt { width: auto; padding: 0 10px; font-size: 11px; font-weight: 700; }


.brand-btn {
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  color: inherit; font-family: inherit; display: block;
}

.brand-btn:active { opacity: .75; }
#ledgerList .pick-item { cursor: pointer; }
#ledgerList .act-btn { margin-left: 4px; }


.receipt-preview { position: relative; margin-bottom: 14px; }
.receipt-preview.hidden { display: none; }
.receipt-preview img {
  width: 100%; max-height: 190px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--border); display: block;
}
.rp-remove {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}


.gallery-grid { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gallery-date { margin-top: 6px; }
.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.gallery-cell {
  aspect-ratio: 3/4; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; padding: 0; cursor: pointer; background: var(--bg);
  transition: transform .12s;
}
.gallery-cell:active { transform: scale(.96); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.receipt-full {
  max-height: 55vh; overflow-y: auto; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg);
}
.receipt-full img { width: 100%; display: block; }


.amt-cur {
  border: none; background: var(--bg); color: var(--teal-ink);
  font-size: 13px; font-weight: 800; font-family: inherit;
  border-radius: 9px; padding: 6px 4px; cursor: pointer; outline: none;
  max-width: 92px; flex-shrink: 0;
}
.fx-preview {
  font-size: 12.5px; color: var(--text); background: var(--bg);
  padding: 9px 12px; border-radius: var(--r-sm); margin: -6px 0 12px; line-height: 1.45;
}
.fx-preview.hidden { display: none; }

.sec-cur-line { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.sec-cur-line.on-dark { color: rgba(255,255,255,.75); font-size: 12px; margin-top: 4px; }
.sec-cur-sel {
  margin-left: auto; max-width: 120px; border: 1px solid var(--border);
  background: var(--white); color: var(--text); border-radius: 10px;
  padding: 7px 6px; font-size: 12px; font-family: inherit; outline: none;
}

.cv-result-card {
  background: linear-gradient(135deg, var(--hdr), var(--hdr-l)); color: #fff;
  border-radius: var(--r); padding: 18px; margin-top: 14px; text-align: center;
  box-shadow: 0 6px 18px rgba(14,159,142,.28);
}
.cv-result { font-size: 30px; font-weight: 800; }
.cv-rate   { font-size: 12px; opacity: .95; margin-top: 4px; }
.cv-foot   { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }


.imp-list { max-height: 42vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.imp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.imp-row:last-child { border-bottom: none; }
.imp-row.dup { opacity: .55; }
.imp-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--purple); flex-shrink: 0; }
.imp-row .tx-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.imp-dup-tag {
  font-size: 9px; font-weight: 800; background: var(--orange); color: #fff;
  padding: 1px 5px; border-radius: 5px; vertical-align: middle;
}
.paste-box {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: var(--r-sm); font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--white); outline: none; resize: vertical;
  line-height: 1.5; margin-bottom: 14px;
}
.paste-box:focus { border-color: var(--purple); }


.convert-banner {
  background: rgba(14,159,142,.12); border: 1px solid rgba(14,159,142,.3);
  color: var(--text); font-size: 12px; line-height: 1.45;
  padding: 10px 13px; border-radius: var(--r-sm); margin-bottom: 12px;
}
.convert-banner.hidden { display: none; }


.paste-img-zone {
  width: 100%; min-height: 110px; padding: 14px;
  border: 2px dashed var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  outline: none; margin-bottom: 14px; overflow: hidden;
}
.paste-img-zone:focus { border-color: var(--purple); color: var(--text); }
.paste-img-zone img { max-width: 100%; max-height: 220px; border-radius: 8px; }


.needs-check {
  border-color: #f0a020 !important;
  background: rgba(240,160,32,.08) !important;
  box-shadow: 0 0 0 3px rgba(240,160,32,.15);
}
.needs-check::placeholder { color: #b8791a; }


.sheet-tall { max-height: 92vh; display: flex; flex-direction: column; }
.rate-top { display: flex; gap: 8px; margin-bottom: 10px; }
.rate-amt {
  flex: 1 1 45%; min-width: 0; padding: 12px 14px; font-size: 20px; font-weight: 700;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--text); outline: none;
}
.rate-amt:focus { border-color: var(--purple); }
.rate-from {
  flex: 1 1 55%; min-width: 0; padding: 12px 10px; font-size: 14px;
  border: 2px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--text); outline: none;
}
.rate-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-bottom: 10px;
}
.rate-refresh {
  border: none; background: none; color: var(--teal-ink);
  font-size: 18px; cursor: pointer; padding: 2px 6px; line-height: 1;
}
.rate-refresh.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rate-list { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.rate-sec {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); padding: 12px 2px 6px;
}
.rate-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 8px; border: none; border-bottom: 1px solid var(--border);
  background: none; color: var(--text); text-align: left; cursor: pointer;
}
.rate-row:active { background: var(--hover); }
.rate-star { font-size: 15px; color: var(--muted); flex: 0 0 auto; }
.rate-star.on { color: #f0a020; }
.rate-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rate-id b { font-size: 14px; }
.rate-id small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate-val { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; font-weight: 700; font-size: 15px; }
.rate-val small { font-weight: 400; font-size: 10px; color: var(--muted); }


.policy-body { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; font-size: 13.5px; line-height: 1.65; color: var(--text); padding-bottom: 12px; }
.policy-body h1 { font-size: 18px; margin: 0 0 2px; color: var(--teal-ink); }
.policy-body .meta { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.policy-body h2 { font-size: 14.5px; margin: 20px 0 6px; }
.policy-body p { margin: 6px 0; }
.policy-body ul { padding-left: 18px; margin: 6px 0; }
.policy-body li { margin: 3px 0; }

.policy-body a, .empty-note a { color: var(--teal-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.policy-body .box { background: rgba(14,159,142,.12); border-left: 3px solid var(--purple); padding: 10px 12px; border-radius: 6px; margin-bottom: 10px; }


.nw-item { cursor: pointer; }
.ah-hero { text-align: center; padding: 6px 0 14px; }
.ah-hero-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.ah-hero-val { font-size: 26px; font-weight: 800; color: var(--text); }
.ah-list { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.ah-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.ah-emoji { width: 34px; height: 34px; border-radius: 10px; background: var(--hover); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.ah-info { flex: 1 1 auto; min-width: 0; }
.ah-label { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-date { font-size: 11px; color: var(--muted); }
.ah-right { text-align: right; flex: 0 0 auto; }
.ah-delta { font-size: 14px; font-weight: 700; }
.ah-delta.pos { color: var(--green-ink); }
.ah-delta.neg { color: var(--red-ink); }
.ah-after { font-size: 10.5px; color: var(--muted); }
.ah-adjust .ah-emoji { background: rgba(240,160,32,.18); }
.ah-open { background: var(--hover); border-radius: 10px; margin-top: 8px; border-bottom: none; }

.needs-check { box-shadow: 0 0 0 2px #f0a020 inset; }



.act-btn[data-action="del"], .act-btn[data-del], .act-btn[data-rid] { display: none; }
.show-del .act-btn[data-action="del"], .show-del .act-btn[data-del], .show-del .act-btn[data-rid] {
  display: inline-flex; animation: delIn .18s ease-out;
}
@keyframes delIn { from { transform: translateX(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.show-del { background: var(--hover) !important; border-radius: 12px; }
.tx-item, .nw-item, .trash-item, .target-item, .budget-row, [class$="-item"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }


.diag-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.diag-btns .save-btn { flex: 1 1 100%; margin: 0; }
.diag-btns .rv-btn-2, #diagClearBtn { flex: 1; border: 2px solid var(--border); background: var(--white); color: var(--text); border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
#diagClearBtn { width: 100%; margin-top: 10px; }
.diag-env { font-size: 12px; line-height: 1.6; color: var(--text); background: var(--hover); border-radius: 10px; padding: 8px 12px; word-break: break-word; }
.diag-env b { display: inline-block; min-width: 96px; color: var(--muted); font-weight: 600; }
.diag-list { max-height: 34vh; overflow-y: auto; font-size: 12px; }
.diag-row { padding: 5px 2px; border-bottom: 1px solid var(--border); word-break: break-word; }
.diag-t { color: var(--muted); font-family: ui-monospace, monospace; margin-right: 6px; }
.diag-pre { font-size: 11px; white-space: pre-wrap; word-break: break-word; background: var(--hover); padding: 8px 10px; border-radius: 10px; max-height: 26vh; overflow-y: auto; color: var(--text); font-family: ui-monospace, monospace; }


.hold-summary { display: flex; gap: 8px; margin-bottom: 10px; }
.hold-stat { flex: 1; background: var(--hover); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.hold-stat small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.hold-stat-val { display: block; font-size: 13.5px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-stat-val.pos, .hold-grid b.pos, .hold-pill.pos { color: var(--green-ink); }
.hold-stat-val.neg, .hold-grid b.neg, .hold-pill.neg { color: var(--red-ink); }
.hold-results { max-height: 40vh; overflow-y: auto; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 0 6px; }
.hold-form { background: var(--hover); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.hold-form .paste-box { margin-bottom: 8px; padding: 10px 12px; font-size: 14px; }
.hold-form-row { display: flex; gap: 8px; }
.hold-form-row > * { flex: 1; min-width: 0; }
.hold-form .rate-from { margin-bottom: 8px; padding: 10px; }
.hold-live { font-size: 12px; color: var(--muted); margin: -2px 0 8px; }
.hold-check { display: block; font-size: 13px; color: var(--text); margin: 6px 0 10px; line-height: 1.4; }
.hold-check small { display: block; font-size: 11px; color: var(--muted); margin-left: 22px; }
.hold-link { margin-top: 12px; }
.hold-form-btns { display: flex; gap: 8px; }
.hold-btn-2 { flex: 1; border: 2px solid var(--border); background: var(--white); color: var(--text); border-radius: 12px; padding: 11px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.hold-btn-1 { flex: 1.4; margin: 0; }
.hold-row { padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.hold-head { display: flex; align-items: center; gap: 8px; }
.hold-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hold-name b { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-name small, .hold-val small { font-size: 11px; color: var(--muted); }
.hold-val { text-align: right; display: flex; flex-direction: column; flex: 0 0 auto; }
.hold-val b { font-size: 14px; color: var(--text); }
.hold-badge { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(240,160,32,.18); color: #b26a00; margin-left: 4px; }
.hold-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.hold-grid > div { min-width: 0; }
.hold-grid small { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hold-grid b { display: block; font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hold-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--hover); margin: 4px 0; }
.hold-note { font-size: 10.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.ah-market .ah-emoji { background: rgba(22,160,133,.18); }


.jar-tap { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.jar-tap:active { transform: scale(.985); }
.jar-more { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--teal-ink); text-align: right; }
.jh-totals { display: flex; justify-content: center; gap: 18px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.jh-totals strong { color: var(--text); font-weight: 700; }
#jhBalance.neg { color: var(--red-ink); }
.jh-hint { font-size: 11.5px; color: var(--muted); text-align: center; padding: 2px 0 8px; }
.jh-tap { cursor: pointer; border-radius: 10px; }
.jh-tap:active { background: var(--hover); }
.jh-transfer .ah-emoji { background: rgba(52,152,219,.16); }

.hold-view { display: flex; background: var(--hover); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.hold-view-btn { flex: 1; border: none; background: none; color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px; border-radius: 10px; cursor: pointer; font-family: inherit; }
.hold-view-btn.on { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hold-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); margin: 2px 0; }
.hold-line b { min-width: 64px; }
.hold-line .hold-pill { margin: 0 0 0 auto; }

.hold-grid.money { grid-template-columns: repeat(6, 1fr); }
.hold-grid.money > div:nth-child(-n+2) { grid-column: span 3; }
.hold-grid.money > div:nth-child(n+3) { grid-column: span 2; }
.hold-stat-val small { display: block; font-size: 11px; font-weight: 600; opacity: .85; }


#toast { z-index: 1000; }                      
.tour-full { position: fixed; inset: 0; z-index: 800; background: var(--bg, #F4FAF9); overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.tour-full-in { width: 100%; max-width: 420px; text-align: center; }
.tour-logo { border-radius: 18px; margin: 0 auto 14px; display: block; }
.tour-h1 { font-size: 24px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.tour-lead { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.tour-q { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.tour-pick { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--white); border: 2px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; cursor: pointer; font-family: inherit; color: var(--text); }
.tour-pick:active { border-color: var(--purple); }
.tour-pick-ico { font-size: 30px; flex: 0 0 auto; }
.tour-pick b { display: block; font-size: 16px; }
.tour-pick small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tour-grid { display: grid; gap: 10px; text-align: left; margin-bottom: 14px; }
.tour-grp { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tour-grp b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.tour-small { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.tour-big { font-size: 56px; margin-bottom: 8px; }
.tour-link { background: none; border: none; color: var(--teal-ink); font-weight: 700; font-size: 14px; margin-top: 14px; cursor: pointer; font-family: inherit; }

.tour-ovl { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
.tour-blk { position: fixed; background: rgba(0,0,0,.62); pointer-events: auto; transition: all .25s ease; }
.tour-ring { position: fixed; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 4px rgba(14,159,142,.6); pointer-events: none; transition: all .25s ease; animation: tourPulse 1.6s ease-in-out 4; }
@keyframes tourPulse { 50% { box-shadow: 0 0 0 9px rgba(14,159,142,.25); } }
.tour-bubble { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; background: var(--white); color: var(--text); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: auto; }
.tour-bub-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.tour-stepno { font-size: 11px; color: var(--muted); font-weight: 700; }
.tour-skip { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; font-family: inherit; }
.tour-title { display: block; font-size: 16px; margin-bottom: 4px; }
.tour-body { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 10px; }
.tour-hint { font-size: 13px; font-weight: 700; color: var(--teal-ink); margin: 0 0 6px; }
.tour-note { color: var(--text); background: var(--hover); border-radius: 10px; padding: 8px 10px; font-weight: 600; }

.tour-still .tour-blk, .tour-still .tour-ring { transition: none; }
.tour-nudge { animation: tourNudge .45s ease; }
@keyframes tourNudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .tour-nudge { animation: none; } }
.tour-bub-btns { display: flex; gap: 8px; justify-content: flex-end; }
.tour-next, .tour-back { border: none; border-radius: 12px; padding: 9px 18px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.tour-next { background: var(--fill); color: var(--on-fill); }
.tour-back { background: var(--hover); color: var(--text); }

.tour-chap { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: none; border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
.tour-chap-ico { font-size: 22px; width: 32px; text-align: center; }
.tour-chap-txt { flex: 1; min-width: 0; }
.tour-chap-txt b { display: block; font-size: 14px; }
.tour-chap-txt small { display: block; font-size: 12px; color: var(--muted); }
.tour-chap-tick { color: var(--teal-ink); font-weight: 800; }


:root.hc {
  --purple: #00695C; --purple-l: #00897B; --green: #1B7F3A; --red: #B3261E; --orange: #9A5B00;
  --bg: #FFFFFF; --white: #FFFFFF; --text: #000000; --muted: #2F3A3C; --border: #5F7370;
  --teal-ink: #00695C;
  --fill: #00574D; --fill-l: #00695C; --on-fill: #FFFFFF; --fill-chip: rgba(0,0,0,.2);
  --hdr: #00574D; --hdr-l: #00695C; --hdr-chip: rgba(0,0,0,.2);
  --green-ink: #1B7F3A; --red-ink: #B3261E; --orange-ink: #9A5B00; --hover: #F0F4F3;
  --hero-bg: #FFFFFF; --hero-border: #5F7370; --track: #E2ECEA; --warn-bg: #FFF4E0; --warn-ink: #5C3700;
  --seg-spent: #5F7370; --seg-bills: #9A5B00; --seg-free: #00695C; --eye-bg: transparent; --hol-bg: #FDE8E6; --bill: #9A5B00; --leaf: #1B7F3A; --leaf-bg: #EBF7EE;
  --hr-bg: #00574D; --hr-text: #FFFFFF; --hr-muted: #E3F6F2; --hr-line: rgba(255,255,255,.4); --hr-eye: rgba(255,255,255,.22); --hr-border: #00574D;
  --hr-free: #FFFFFF; --hr-bills: #FFD166; --hr-spent: #C4E8E2;
  --card2: #F0F4F3;
}
:root.hc[data-theme="dark"] {
  --purple: #5EEAD4; --purple-l: #99F6E4; --green: #4ADE80; --red: #FCA5A5; --orange: #FCD34D;
  --bg: #000000; --white: #0A1311; --text: #FFFFFF; --muted: #D7DBE8; --border: #7FA39D;
  --teal-ink: #5EEAD4;
  --fill: #5EEAD4; --fill-l: #5EEAD4; --on-fill: #000000; --fill-chip: rgba(255,255,255,.35);
  --hdr: #0F3B35; --hdr-l: #0F3B35; --hdr-chip: rgba(255,255,255,.2);
  --green-ink: #4ADE80; --red-ink: #FCA5A5; --orange-ink: #FCD34D; --hover: #1C2B28;
  --hero-bg: #0A1311; --hero-border: #7FA39D; --track: #1F3833; --warn-bg: #2A2210; --warn-ink: #FCD34D;
  --seg-spent: #7FA39D; --seg-bills: #FCD34D; --seg-free: #5EEAD4; --eye-bg: transparent; --hol-bg: #3A1A1A; --bill: #FCD34D; --leaf: #4ADE80; --leaf-bg: #12301F;
  --hr-bg: #0A1311; --hr-text: #FFFFFF; --hr-muted: #D7DBE8; --hr-line: rgba(255,255,255,.4); --hr-eye: rgba(255,255,255,.22); --hr-border: #7FA39D;
  --hr-free: #5EEAD4; --hr-bills: #FCD34D; --hr-spent: #9FBFB9;
  --card2: #1C2B28;
}
:root.hc .set-btn, :root.hc .tx-item, :root.hc .scard, :root.hc .jar-item, :root.hc .pro-feat { border-width: 1.5px; }


.lang-beta { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .3px; color: var(--orange); background: rgba(243,156,18,.14); vertical-align: middle;
  width: max-content; align-self: flex-start; }
.lang-beta-note { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: var(--r-sm); padding: 8px 12px; margin: 0 0 8px; }


.fs-opt { width: 38px; height: 32px; border: none; background: none; border-radius: 9px; cursor: pointer; color: var(--muted);
  font-weight: 800; font-family: inherit; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.fs-opt.active { background: var(--white); color: var(--teal-ink); box-shadow: 0 2px 6px rgba(0,0,0,.12); }


#fjGlance { display: grid; gap: 10px; margin-bottom: 12px; }
.fj-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; }
.fj-card-ttl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.fj-more { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--teal-ink); font-weight: 700; }
.fj-big { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.fj-big small { font-size: 12px; font-weight: 600; color: var(--muted); }
.fj-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.fj-good { color: var(--green-ink); font-weight: 700; }
.fj-bad { color: var(--red-ink); font-weight: 700; }
.fj-cat { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 2px 8px; margin: 6px 0; }
.fj-cat-ico { font-size: 16px; }
.fj-cat-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-cat-amt { font-size: 13.5px; font-weight: 700; color: var(--text); }
.fj-bar { grid-column: 2 / -1; height: 5px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.fj-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--purple-l)); }
.fj-safe { border-left: 4px solid var(--purple); }
.fj-safe-out { border-left-color: var(--red); }
.fj-btn { margin-top: 8px; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--on-fill); background: var(--fill); }
.fj-streak { font-size: 12.5px; color: var(--text); background: rgba(243,156,18,.12); border-radius: 999px; padding: 6px 12px; justify-self: start; }
.fj-week { border-left: 4px solid var(--orange); cursor: default; }
.fj-x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.jar-safe { margin-top: 6px; font-size: 12px; color: var(--muted); }
.jar-safe b { color: var(--teal-ink); }


html.simple #importOpenBtn, html.simple #giOpenBtn, html.simple #settingsRatesBtn, html.simple #converterOpenBtn,
html.simple #galleryOpenBtn, html.simple #diagOpenBtn { display: none !important; }

html.simple.tour-reveal #importOpenBtn, html.simple.tour-reveal #settingsRatesBtn { display: flex !important; }


.js-in { max-width: 460px; }
.js-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.js-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.js-dots i.on { width: 20px; border-radius: 99px; background: var(--purple); }
.js-hero { font-size: 54px; text-align: center; margin-bottom: 4px; }
.js-amt { margin: 16px 0 14px; }
.js-skip { display: block; margin: 10px auto 0; }
.js-jars { display: grid; gap: 8px; margin: 14px 0 16px; }
.js-jar { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid; border-radius: var(--r-sm);
  padding: 9px 11px; opacity: 0; transform: translateY(8px); animation: jsIn .45s ease forwards; }
@keyframes jsIn { to { opacity: 1; transform: none; } }
.js-jar-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto; }
.js-jar-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.js-jar-txt b { font-size: 13.5px; color: var(--text); }
.js-jar-txt small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.js-jar-amt { font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; }
.js-how p { font-size: 14px; color: var(--text); line-height: 1.55; margin: 10px 0; }
.js-use { margin: 14px 0; }
.js-replay { display: block; margin: 8px 0 12px; border: 0; background: transparent; color: var(--teal-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }


.jar-why { margin-left: 8px; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.jl-body h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 4px; }
.jl-body p { font-size: 14.5px; color: var(--text); line-height: 1.55; }
.jl-kicker { font-size: 12px; font-weight: 800; color: var(--teal-ink); }
.jl-numbers { margin: 16px 0 14px; padding: 10px 12px; background: var(--bg); border-left: 4px solid; border-radius: var(--r-sm); display: grid; gap: 3px; font-size: 13.5px; color: var(--text); }


.batch-progress { margin: 4px 0 10px; }
.batch-progress.hidden { display: none; }
.batch-ptxt { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.batch-bar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-bottom: 4px; }
.batch-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--purple-l)); transition: width .3s; }
.batch-list { overflow-y: auto; max-height: 52vh; -webkit-overflow-scrolling: touch; display: grid; gap: 8px; margin-bottom: 8px; }
.batch-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); }
.batch-row.off { opacity: .55; }
.batch-row .batch-use { margin-top: 18px; flex: 0 0 auto; }
.batch-thumb { width: 46px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--bg); }
.batch-wait { flex: 1; align-self: center; font-size: 13px; color: var(--muted); }
.batch-fields { flex: 1 1 auto; min-width: 0; display: grid; gap: 5px; }
.batch-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.batch-fields input, .batch-fields select { font: inherit; font-size: 13px; color: var(--text); background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 7px; min-width: 0; }
.batch-amt { width: 92px; font-weight: 800; }
.batch-date { width: 132px; }
.batch-note, .batch-cat { width: 100%; }
.batch-badge { font-size: 10.5px; font-weight: 800; color: var(--orange); background: rgba(243,156,18,.14); border-radius: 99px; padding: 2px 8px; }
.batch-keep { margin: 4px 0 10px; }


.tel-see { display: inline; border: 0; background: transparent; padding: 0; font: inherit; font-size: inherit; color: var(--teal-ink); font-weight: 700; text-decoration: underline; cursor: pointer; }


.jarchip.who-sel { border-color: var(--purple); background: rgba(14,159,142,.12); }
.fam-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.fam-emo { width: 42px; height: 42px; flex: none; border: 2px solid var(--border); border-radius: 10px; background: var(--white); font-size: 20px; padding: 0; cursor: pointer; }
.fam-row .fam-name { flex: 1; min-width: 0; }
.fam-rm { flex: none; }
.fam-emo-grid { flex-basis: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.who-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--teal-ink); background: rgba(14,159,142,.1); border-radius: 99px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.who-filter { flex-wrap: wrap; margin-top: -6px; }
.who-filter .ftab { padding: 5px 12px; font-size: 12.5px; }
.fam-rep-row { cursor: pointer; }
.fam-tip { margin-top: 10px; }


.fx-credit { display: block; margin-top: 10px; text-align: center; font-size: 11px; color: var(--muted); text-decoration: underline; }


.x-btn, .hdr-icon-btn, .mnav-btn, .act-btn, .goal-chip, .ctab, .ftab, .rtab, .add-chip,
.tour-skip, .jar-why, .fjb-later, .theme-opt, .fs-opt { position: relative; }
.x-btn::before, .hdr-icon-btn::before, .mnav-btn::before, .act-btn::before, .goal-chip::before,
.ctab::before, .ftab::before, .rtab::before, .add-chip::before, .tour-skip::before,
.jar-why::before, .fj-x::before, .fjb-later::before, .theme-opt::before, .fs-opt::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%);
}


.act-btn + .act-btn::before, .theme-opt + .theme-opt::before, .fs-opt + .fs-opt::before { left: -2px; width: calc(50% + 26px); transform: translateY(-50%); }
[dir="rtl"] .act-btn + .act-btn::before, [dir="rtl"] .theme-opt + .theme-opt::before, [dir="rtl"] .fs-opt + .fs-opt::before { left: auto; right: -2px; }


.header { flex-wrap: wrap; height: auto; min-height: var(--hdr-h); align-content: center; padding-bottom: 6px; }
.header .brand, .header .hdr-right { min-height: 54px; }
.header .month-nav { flex: 1 0 100%; order: 3; justify-content: space-between; gap: 0; padding: 0; border-radius: 14px; }
.header .mnav-btn { width: 48px; height: 44px; font-size: 24px; padding: 0; display: flex; align-items: center; justify-content: center; }
.header .mnav-label { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; }


html.fj-home-new[data-view="Dash"] #eyeBtn, html[data-view="Subs"] #eyeBtn, html[data-view="Wealth"] #eyeBtn { display: none; }


.fj-eye-svg { display: inline-grid; place-items: center; }
.fj-eye-svg svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .2s; }
.fj-eye-svg .i-off { opacity: 0; transform: scale(.8); }
.fj-eye-svg[aria-pressed="true"] .i-on { opacity: 0; transform: scale(.8); }
.fj-eye-svg[aria-pressed="true"] .i-off { opacity: 1; transform: none; }
.eye-inline { position: relative; }
.eye-inline::before { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%); }
.fj-eye { width: 48px; height: 48px; flex: 0 0 auto; border: 0; border-radius: 50%; padding: 0; cursor: pointer; color: var(--muted);
  background: radial-gradient(circle, var(--eye-bg) 0 16px, transparent 17px); }
.fj-eye svg { width: 22px; height: 22px; }
.fj-eye[aria-pressed="true"] { color: var(--teal-ink); }
.fj-eye:focus-visible, .eye-inline:focus-visible, #eyeBtn:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: -2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes fjEyeFade { from { opacity: .15; } to { opacity: 1; } }
.fj-eye-anim :is(.scard-val, .tx-amt, .fj-big, .fj-cat-amt, .fj-h-big, .fj-row3 b, .fj-legend, .fj-pot, .fj-h-fc, .fj-due-amt, .fj-due-sum,
  .nwh-amount, .nw-val, .subs-hero-amt, #savTotal, #savUsable, .jars-mini, .savings-mini, .dp-bal, .dh-val, .debt-net-val, .cr-amt, .jar-bal,
  .ah-delta, .hold-stat-val, .sub-item .tx-note) { animation: fjEyeFade .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .fj-eye-anim * { animation: none !important; }
  .fj-eye-svg svg { transition: none; }
}
.subs-hero-amt-row { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.subs-hero-amt-row .subs-hero-amt { margin-top: 0; }


#fjHero, #fjDue, #fjHomeMore { display: none; }
html.fj-home-new #vDash.active { display: flex; flex-direction: column; gap: 12px; }
html.fj-home-new #vDash > *, html.fj-home-new #fjGlance > * { margin-bottom: 0; order: 40; }
html.fj-home-new #fjGlance { display: contents; }
html.fj-home-new #vDash .sum-cards, html.fj-home-new #vDash .fj-safe { display: none; }   
html.fj-home-new #convertBanner { order: 0; }
html.fj-home-new #fjHero { display: block; order: 1; }
html.fj-home-new #fjDue:not(.hidden) { display: block; order: 2; }
html.fj-home-new #vDash .fj-streak { order: 3; align-self: flex-start; }
html.fj-home-new #vDash .fj-blk-recent { order: 4; }
html.fj-home-new #vDash #jarsCard { order: 5; }
html.fj-home-new #vDash .fj-where { order: 6; }
html.fj-home-new #vDash .fj-vs { order: 7; }
html.fj-home-new #vDash .fj-blk-chart { order: 8; }
html.fj-home-new #vDash .fj-blk-budgets { order: 9; }
html.fj-home-new #vDash #debtsCard { order: 10; }
html.fj-home-new #vDash #savingsCard { order: 11; }
html.fj-home-new #vDash .sav-wrap { order: 12; }
html.fj-home-new #vDash #holdingsCard { order: 13; }
html.fj-home-new #vDash .fj-week { order: 14; }
html.fj-home-new #vDash .fj-backup-card { order: 15; }

html.fj-home-new.simple #vDash .fj-streak { order: 7; }
html.fj-home-new.simple #fjHomeMore { display: flex; order: 50; }
html.fj-home-new.simple #vDash .fj-vs { order: 51; }
html.fj-home-new.simple #vDash .fj-blk-chart { order: 52; }
html.fj-home-new.simple #vDash .fj-blk-budgets { order: 53; }
html.fj-home-new.simple #vDash #debtsCard { order: 54; }
html.fj-home-new.simple #vDash #savingsCard { order: 55; }
html.fj-home-new.simple #vDash .sav-wrap { order: 56; }
html.fj-home-new.simple #vDash #holdingsCard { order: 57; }
html.fj-home-new.simple #vDash .fj-week { order: 58; }
html.fj-home-new.simple #vDash .fj-backup-card { order: 59; }
html.fj-home-new.simple:not(.fj-home-more):not(.fj-cust) #vDash :is(.fj-vs, .fj-blk-chart, .fj-blk-budgets, #debtsCard, #savingsCard, .sav-wrap, #holdingsCard, .fj-week, .fj-backup-card, .fj-family, .fj-nospend) { display: none !important; }



.fj-hero { --text: var(--hr-text); --muted: var(--hr-muted); --teal-ink: var(--hr-text); --green-ink: var(--hr-text); --red-ink: var(--hr-text); --eye-bg: var(--hr-eye);
  --hero-border: var(--hr-line); --fill: var(--hr-text); --on-fill: var(--hr-bg);
  background: var(--hr-bg); border: 1px solid var(--hr-border); border-radius: 20px; padding: 16px 16px 12px; box-shadow: 0 6px 18px rgba(0,60,52,.22); cursor: pointer; color: var(--hr-text); }
.fj-h-top { display: flex; align-items: flex-start; gap: 10px; }
.fj-h-main { flex: 1 1 auto; min-width: 0; }
.fj-ring { flex: 0 0 auto; margin-bottom: -20px; }
.fj-ring:empty { display: none; }
.fj-ring-wrap { position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.fj-ring-wrap svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.fj-ring-wrap b { position: relative; font-size: 15px; font-weight: 800; color: var(--hr-text); }
.fj-ring-track { stroke: var(--hr-line); }
.fj-ring-wrap .seg-spent { stroke: var(--hr-spent); background: none; }
.fj-ring-wrap .seg-bills { stroke: var(--hr-bills); background: none; }
.fj-ring-wrap .seg-free  { stroke: var(--hr-free);  background: none; }
.fj-hero .fj-legend .seg-spent { background: var(--hr-spent); }
.fj-hero .fj-legend .seg-bills { background: var(--hr-bills); }
.fj-hero .fj-legend .seg-free  { background: var(--hr-free); }
.fj-hero .fj-h-big, .fj-hero .fj-h-big.fj-neg { color: var(--hr-text); }
.fj-hero.fj-hero-out .fj-h-big, .fj-hero .fj-h-big.fj-neg { text-decoration: underline wavy var(--hr-bills); text-underline-offset: 6px; }
.fj-hero .fj-row3 b { color: var(--hr-text); }
.fj-hero .fj-btn { background: var(--hr-text); color: var(--hr-bg); border-color: var(--hr-text); }
.fj-hero :focus-visible { outline: 3px solid var(--hr-text); outline-offset: 2px; }
body.amounts-hidden .fj-ring-wrap svg { filter: saturate(.25); }
@media (max-width: 330px) { .fj-ring-wrap { width: 56px; height: 56px; } .fj-ring-wrap svg { width: 56px; height: 56px; } }
.fj-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fj-h-lbl { font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.fj-h-big-row { display: flex; align-items: center; gap: 2px; margin-left: -2px; }
.fj-h-big { font-size: 40px; font-weight: 800; line-height: 1.05; color: var(--teal-ink); letter-spacing: -.5px; min-width: 0; overflow-wrap: anywhere; }
.fj-h-big small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.fj-h-big.fj-neg { color: var(--red-ink); }
.fj-h-fc { font-size: 14px; line-height: 1.45; margin: 6px 0 0; }
.fj-h-fc .fj-btn { display: block; }
.fj-potbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 12px 0 6px; background: var(--track); }
.fj-potbar i { display: block; height: 100%; }
.seg-spent { background: var(--seg-spent); }
.seg-bills { background: var(--seg-bills); }
.seg-free  { background: var(--seg-free); }
.fj-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.fj-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fj-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fj-pot { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.fj-row3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hero-border); }
.fj-row3 small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.fj-row3 > div { flex: 1 1 auto; min-width: max-content; }          
.fj-row3 b { display: block; font-size: clamp(12px, 3.9vw, 15px); white-space: nowrap; }
.fj-row3 b.fj-inc { color: var(--green-ink); }
.fj-row3 b.fj-exp { color: var(--red-ink); }


.fj-due .cb-head { margin-bottom: 4px; gap: 8px; }
.fj-due-sum { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fj-due-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 0; border: 0; border-top: 1px solid var(--border);
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fj-due-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.fj-due-txt { flex: 1; min-width: 0; }
.fj-due-txt b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-due-txt small { font-size: 12.5px; color: var(--muted); }
.fj-chip { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 1px 8px; margin-left: 6px; background: var(--track); color: var(--text); }
.fj-chip.soon { background: var(--warn-bg); color: var(--warn-ink); }
.fj-due-amt { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.fj-due-all { min-height: 48px; padding: 0 4px; font-weight: 700; }


.fj-more-btn { align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1.5px dashed var(--muted); border-radius: 16px;
  background: var(--white); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fj-more-btn b { display: block; font-size: 14.5px; }
.fj-more-btn small { font-size: 12px; color: var(--muted); }
.fj-car { margin-left: auto; font-size: 18px; color: var(--teal-ink); transition: transform .2s; }
html.fj-home-more .fj-car { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .fj-car { transition: none; } }


.fj-layout-opt { width: auto; padding: 0 12px; font-size: 12.5px; }



.header .mnav-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.header .mnav-mid .mnav-label { flex: none; min-width: 0; }
.mnav-cap { font-size: 11px; font-weight: 600; opacity: .95; }
.mnav-cap:empty { display: none; }

.fj-h-note { font-size: 12.5px; color: var(--muted); margin-top: -2px; }
.fj-h-note:empty { display: none; }

.fj-due-amt { text-align: right; }
.fj-due-jar { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.fj-due.card-block { padding-bottom: 4px; }

html.fj-home-new.simple #recentList > :nth-child(n+4) { display: none; }

body.amounts-hidden .fj-potbar, body.amounts-hidden .fj-legend i { filter: saturate(.25); }


.cal-tabs { display: flex; background: var(--track); border-radius: 14px; padding: 4px; margin-bottom: 12px; }
.cal-tabs button { flex: 1; min-height: 44px; border: 0; background: none; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.cal-tabs button::before { content: ''; position: absolute; inset: -2px 0; }   
.cal-tabs button.on { background: var(--white); color: var(--teal-ink); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.cal-tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cal-view { display: none; }
html.fj-cal-on .cal-view { display: block; }
html.fj-cal-on #vHist :is(#histSearch, .range-row, #rangeCustom, .filter-row, .who-filter, #histList) { display: none !important; }

.cal-sum-lbl { font-size: 13px; color: var(--muted); }
.cal-sum-big { font-size: 22px; font-weight: 800; color: var(--red-ink); }
.cal-mrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cal-mrow small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-mrow b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cal-inc { color: var(--green-ink); }
.cal-exp { color: var(--red-ink); }

.cal-card { padding: 8px 2px 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; padding: 4px 0 6px; }
.cal-day { position: relative; min-height: 56px; min-width: 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font: inherit;
  display: flex; flex-direction: column; align-items: center; padding: 4px 1px; gap: 1px; cursor: pointer; }
.cal-day.blank { cursor: default; }
.cal-dn { font-size: 13px; font-weight: 700; min-width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.cal-day.hol .cal-dn { color: var(--red-ink); background: var(--hol-bg); }
.cal-day.today .cal-dn { background: var(--fill); color: var(--on-fill); }
.cal-tent { font-style: normal; font-size: 10px; margin-left: 1px; }
.cal-mo { font-size: 9.5px; font-weight: 800; color: var(--muted); line-height: 1; margin-bottom: -2px; }
.cal-dv { font-size: 11px; font-weight: 700; color: var(--red-ink); line-height: 1.15; white-space: nowrap; }
.cal-dv-bill { color: var(--muted); }
.cal-dv-inc { color: var(--green-ink); }
.cal-mk { display: flex; gap: 3px; height: 8px; align-items: center; }
.cal-mk i, .cal-legend i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.cal-mk .b, .cal-legend .b { background: var(--bill); }
.cal-mk .n, .cal-legend .n { background: var(--teal-ink); }
.cal-pay { font-size: 10px; line-height: 1; }
.cal-day:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: -3px; border-radius: 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); padding: 8px 10px 0; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 8px; height: 8px; }
.cal-legend .h { width: 12px; height: 12px; background: var(--hol-bg); border: 1.5px solid var(--red-ink); }


.cal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 8px; }
.cal-chip { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.cal-chip.hol { background: var(--hol-bg); color: var(--red-ink); }
.cal-chip.pay { background: var(--hero-bg); color: var(--teal-ink); }
.cal-dsum { font-size: 13.5px; color: var(--muted); }
.cal-dh { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 12px 0 2px; }
.cal-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--border); }
.cal-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.cal-txt { flex: 1; min-width: 0; }
.cal-txt b { display: block; font-size: 14.5px; }
.cal-txt small { font-size: 12.5px; color: var(--muted); }
.cal-amt { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.cal-none { font-size: 13px; color: var(--muted); padding: 6px 0; }
.cal-notebox { width: 100%; min-height: 64px; border: 2px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px;
  color: var(--text); background: var(--white); resize: vertical; }
.cal-notebox:focus { outline: none; border-color: var(--teal-ink); }
.cal-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cal-rem { display: flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 8px; padding: 0 8px; border-radius: 12px; background: var(--bg); cursor: pointer; }
.cal-rem b { flex: 1; font-size: 14.5px; }
.cal-time { border: 1.5px solid var(--border); background: var(--white); color: var(--text); border-radius: 10px; min-height: 44px; padding: 0 8px; font: inherit; font-weight: 700; }
.cal-webnote { margin-top: 8px; font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 10px 12px; line-height: 1.45; }
.cal-add { margin-top: 14px; }


.fj-due-note .fj-due-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }



.fam-bar { display: block; height: 100%; border-radius: 99px; background: var(--purple); }
.fam-bar.warn { background: var(--orange); }
.fam-bar.over { background: var(--red); }
.fam-bpct { font-weight: 600; font-size: 11px; color: var(--muted); }
.fam-bpct.warn, .fam-pct.warn { color: var(--orange-ink); }
.fam-bpct.over, .fam-pct.over { color: var(--red-ink); }
.fam-rep-row { cursor: pointer; min-height: 48px; }
.fam-rep-row:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; border-radius: 10px; }


#fjFamily { display: none; }
html.fj-home-new #vDash #fjFamily:not(.hidden) { display: block; order: 16; }
html.fj-home-new.simple #vDash #fjFamily:not(.hidden) { order: 60; }
.fam-pers { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "av pn pa" "av pb pb"; gap: 2px 10px; align-items: center; width: 100%;
  min-height: 56px; padding: 8px 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fam-av { grid-area: av; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 18px; }
.fam-pn { grid-area: pn; font-size: 14.5px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-pa { grid-area: pa; font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.fam-pb { grid-area: pb; display: flex; align-items: center; gap: 8px; }
.fam-track { flex: 1; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.fam-pct { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }


.fam-bud-sub { font-size: 13px; color: var(--muted); }
.fam-bud-sub b { color: var(--text); }
.fam-bud-row { margin: 6px 0 6px; }
.fam-bud-link { display: block; width: 100%; min-height: 48px; margin-top: 4px; }


.fam-rep-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.fam-rep-top .view-hdr { margin-bottom: 0; }
.fam-share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--teal-ink); border-radius: 99px;
  background: var(--white); color: var(--teal-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; flex: 0 0 auto; }
.fam-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fam-sh-img { display: flex; justify-content: center; margin: 4px 0 6px; }
.fam-sh-img img { width: 240px; height: 300px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); background: var(--track); }
.fam-sh-dim { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 8px; }
.fam-sh-opt { margin-bottom: 8px; }


.fj-storage-full { position: fixed; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 2000; max-width: 456px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 8px 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink);
  border: 1.5px solid var(--warn-ink); box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; font-weight: 600; line-height: 1.45; }
.fj-storage-full span { flex: 1; }
.fj-storage-full button { width: 48px; height: 48px; flex: 0 0 auto; margin: -10px -4px -10px 0; border: 0; background: none; color: inherit; font-size: 16px; cursor: pointer; }



.fj-streak { border-radius: 16px; padding: 10px 12px; background: var(--warn-bg); color: var(--warn-ink); }
.fj-st-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fj-st-top > span:first-child { flex: 1; min-width: 0; }
.fj-shield { font-size: 12px; font-weight: 800; border: 1.5px solid currentColor; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.fj-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.fj-days span { display: grid; place-items: center; height: 28px; border-radius: 9px; font-size: 11.5px; font-weight: 800; background: var(--track); color: var(--text); }
.fj-days .ok { background: var(--fill); color: var(--on-fill); }
.fj-days .fz { background: var(--hero-bg); color: var(--teal-ink); outline: 2px dashed var(--teal-ink); outline-offset: -2px; }
.fj-days .td { outline: 2px solid var(--teal-ink); outline-offset: -2px; background: none; color: var(--teal-ink); }
.fj-frz { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
html.fj-home-new #vDash .fj-streak { align-self: stretch; }


#fjNoSpend, #fjMilestone, #fjFestHome { display: none; }
html.fj-home-new #vDash #fjNoSpend:not(.hidden) { display: block; order: 3; }
html.fj-home-new.simple #vDash #fjNoSpend:not(.hidden) { order: 61; }
.fj-ns-n { font-size: 13px; font-weight: 800; color: var(--leaf); }
.fj-week7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.fj-wd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fj-wd b { font-size: 13px; color: var(--text); }
.fj-wd i { height: 16px; font-size: 13px; font-style: normal; }
.fj-wd.ns { background: var(--leaf-bg); }
.fj-wd.ns b { color: var(--leaf); }
.fj-wd.td { outline: 2px solid var(--teal-ink); outline-offset: -2px; }
.fj-ns-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.cal-ns { font-size: 9px; line-height: 1; }


html.fj-home-new #vDash #fjMilestone:not(.hidden) { display: block; order: 1; }
.fj-ms { position: relative; border-left: 4px solid var(--teal-ink); padding-right: 52px; }
.fj-ms-tag { font-size: 12px; font-weight: 800; color: var(--teal-ink); text-transform: uppercase; letter-spacing: .4px; }
.fj-ms-line { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px; }
.fj-ms .fj-x { top: 50%; right: 4px; transform: translateY(-50%); width: 48px; height: 48px; }


html.fj-home-new #vDash #fjFestHome:not(.hidden) { display: block; order: 2; }
html.fj-home-new #vDash #fjGoals { order: 2; }   
.fj-fest-box { margin-top: 14px; }
.fj-fest-ttl { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.fj-fest { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 64px; padding: 8px 0; border: 0; border-top: 1px solid var(--border); background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fj-fest-em { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.fj-fest-t { flex: 1; min-width: 0; }
.fj-fest-t b { display: block; font-size: 15px; }
.fj-fest-t small { display: block; font-size: 12.5px; color: var(--muted); }
.fj-fest-add { color: var(--teal-ink) !important; font-weight: 700; }
.fj-fest-bar { display: block; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; margin: 4px 0 2px; }
.fj-tent { font-size: 11px; font-weight: 800; color: var(--warn-ink); background: var(--warn-bg); border-radius: 99px; padding: 1px 7px; white-space: nowrap; display: inline-block; }
.fj-cd { text-align: center; min-width: 56px; }
.fj-cd b { display: block; font-size: 20px; font-weight: 800; color: var(--teal-ink); line-height: 1; }
.fj-cd small { font-size: 11px; color: var(--muted); font-weight: 700; }
.fj-fest-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.fj-fest-chip { min-height: 44px; padding: 0 14px; border: 2px solid var(--border); border-radius: 99px; background: var(--white); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; margin: 0 6px 6px 0; position: relative; }
.fj-fest-chip::before { content: ''; position: absolute; inset: -2px 0; }
.fj-fest-chip.on { border-color: var(--teal-ink); background: var(--hero-bg); color: var(--teal-ink); }


.fj-backup-line { font-size: 12.5px; color: var(--muted); line-height: 1.5; background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; margin: 0 0 8px; }
.fj-backup-line b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 2px; }
.fj-nudge-row .rem-time { margin-left: auto; }
.fj-nudge-off .fj-nudge-row, .fj-nudge-off .fj-nudge-more, .fj-nudge-off .fj-nudge-rule { display: none; }
html.simple .fj-nudges:not(.fj-nudge-all) .fj-nudge-extra { display: none; }
.fj-nudge-more { display: none; min-height: 48px; }
html.simple .fj-nudges:not(.fj-nudge-all):not(.fj-nudge-off) .fj-nudge-more { display: block; }
.fj-nudge-rule { font-size: 12px; color: var(--muted); padding: 2px 4px 10px; line-height: 1.45; }


html.fj-home-new #vDash #fjAskNudge { order: 0; }
.fj-ask { border-left: 4px solid var(--teal-ink); }
.fj-ask-q { font-size: 15px; font-weight: 800; color: var(--text); }
.fj-ask-sub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.fj-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fj-ask-btns .save-btn, .fj-ask-btns .pro-secondary { margin: 0; min-height: 48px; padding: 10px; font-size: 14px; }
.fj-streak { justify-self: stretch; }


.gi-body { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; padding-bottom: 4px; }
.gi-into { font-size: 13px; font-weight: 700; color: var(--text); background: var(--bg); border-radius: var(--r-sm); padding: 9px 12px; margin: 0 0 12px; }
.gi-file { font-size: 13px; color: var(--muted); margin-bottom: 6px; overflow-wrap: anywhere; }
.gi-h { font-size: 15px; font-weight: 800; color: var(--text); margin: 14px 0 4px; }
.gi-body .goal-desc { margin-bottom: 10px; }
.gi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gi-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gi-f > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.gi-f .recur-sel { min-height: 44px; padding: 9px 8px; font-size: 13.5px; }
.gi-wide { grid-column: 1 / -1; }
.gi-ask { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn-ink); font-size: 13.5px; }
.gi-ask b { display: block; margin-bottom: 8px; }
.gi-ask-btns { display: flex; flex-wrap: wrap; }
.gi-prev { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px 10px; background: var(--white); }
.gi-prow { display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid var(--border); font-size: 13px; }
.gi-prow:last-child { border-bottom: 0; }
.gi-pdate { flex: 0 0 auto; color: var(--muted); min-width: 52px; }
.gi-pnote { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.gi-prow .tx-amt { flex: 0 0 auto; font-weight: 800; }
.gi-tot { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 12px 0 4px; }
.gi-tot b { color: var(--text); }
.gi-sub { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 12px 0 6px; }
.gi-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.gi-map.gi-pick { border-left: 4px solid var(--warn-ink); padding-left: 8px; }
.gi-src { min-width: 0; }
.gi-src b { display: block; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.gi-src small { display: block; font-size: 12px; color: var(--muted); }
.gi-map .recur-sel { min-height: 44px; padding: 9px 8px; font-size: 13.5px; }
.gi-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 8px 0 10px; }
.gi-btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }
.gi-btns .pro-secondary, .gi-btns .save-btn { margin: 0; min-height: 48px; padding: 10px 16px; font-size: 14.5px; }
.gi-btns .save-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.gi-done { text-align: center; padding: 10px 0 4px; font-size: 15px; color: var(--text); }
.gi-done-ico { font-size: 40px; margin-bottom: 6px; }
.gi-done .goal-desc { margin: 6px 0 0; }
.gi-undo-last { display: block; width: 100%; min-height: 48px; margin-top: 10px; }
.gi-undo-last.armed { color: var(--red-ink); }
.gi-welcome { margin-top: 2px; }
@media (max-width: 360px) { .gi-grid { grid-template-columns: 1fr; } .gi-map { grid-template-columns: 1fr; } }


.rec-seg { display: none; flex: 1 0 100%; order: 4; gap: 2px; margin-top: 6px; padding: 3px; border-radius: 14px; background: var(--hdr-chip); }
html[data-view="Hist"] .rec-seg, html[data-view="Rep"] .rec-seg { display: flex; }
.rec-seg button { flex: 1 1 0; min-width: 0; min-height: 44px; border: 0; border-radius: 11px; background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; position: relative; white-space: nowrap; }
.rec-seg button::before { content: ''; position: absolute; inset: -2px 0; }          
.rec-seg button span { overflow: hidden; text-overflow: ellipsis; }
html[lang="ta"] .rec-seg button { font-size: 12.5px; gap: 4px; }   
.rec-seg button.on { background: var(--white); color: var(--teal-ink); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
:root[data-theme="dark"] .rec-seg button.on { background: var(--fill); color: var(--on-fill); }
.rec-seg button:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.rec-seg svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#vHist > .view-hdr, #calTabs { display: none !important; }

html.simple #vHist .rtab[data-r="custom"], html.simple #rangeCustom { display: none !important; }



.sheet.tx-sheet { display: flex; flex-direction: column; overflow: hidden; padding: 8px 0 0; max-height: 96vh; max-height: 96dvh; }
.tx-sheet .sheet-bar { flex: 0 0 auto; margin-bottom: 6px; }
.tx-sheet .sheet-hdr { flex: 0 0 auto; padding: 0 18px; margin-bottom: 4px; }
.tx-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 18px 12px; }
.tx-foot {
  flex: 0 0 auto; display: flex; gap: 8px; align-items: stretch;
  padding: 8px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border); background: var(--white);
}
.tx-foot.hidden { display: none; }
.tx-foot .save-btn { flex: 1 1 auto; width: auto; min-height: 52px; }
.save-more {
  flex: 0 0 auto; min-height: 52px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--teal-ink); background: none; color: var(--teal-ink);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.save-more.hidden { display: none; }
.ovl.again, .ovl.again .sheet { animation: none; }
.tx-sheet .type-row { margin-bottom: 8px; }
.tx-sheet .fg { margin-bottom: 10px; }
.tx-sheet .amt-row { margin-bottom: 8px; padding: 2px 4px 2px 16px; min-height: 58px; }
.tx-sheet .calc-row { margin-bottom: 6px; }
.tx-sheet .calc-row button { min-height: 44px; }


.tx-sheet .cat-grid { max-height: none; overflow: visible; gap: 6px; }
.tx-sheet .cat-item { min-height: 56px; padding: 6px 4px; gap: 2px; justify-content: center; }
.tx-sheet .ci-name { font-size: 11.5px; font-weight: 600; }
.cat-grid:not(.expanded) .cat-extra { display: none; }
.fav-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; gap: 8px; }
.fav-head .fg-lbl { margin: 0; }
.fa-link {
  position: relative; background: none; border: 0; color: var(--teal-ink); font: inherit; font-size: 13.5px; font-weight: 700;
  min-height: 44px; padding: 0 4px; cursor: pointer; text-align: left;
}
.fa-link::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 48px; transform: translateY(-50%); }
.fa-link.hidden { display: none; }


.fav-fg { margin-bottom: 6px; }
.fav-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.fav-row::-webkit-scrollbar { display: none; }
.fav-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; max-width: 70vw; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--white); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.fav-chip .fav-lab { overflow: hidden; text-overflow: ellipsis; }
.fav-chip small { font-size: 12px; font-weight: 600; color: var(--muted); }
.fav-chip.sug { border-style: dashed; }
.fav-chip.on { border-color: var(--teal-ink); border-style: solid; background: var(--hover); }
.fav-chip-edit { padding: 0 2px 0 12px; cursor: default; }
.fav-x { min-width: 48px; min-height: 48px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }


#tagFg.no-tags > .fg-lbl { display: none; }
#tagFg.no-tags { margin-bottom: 4px; }
.fav-save { min-height: 52px; margin-bottom: 8px; }
html.simple #favSaveRow { display: none; }
html.simple .tx-sheet .calc-row[data-calc-for="amtIn"] { display: none; }      


.fa-pill {
  position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: 99px; background: var(--white); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.fa-pill::after { content: ''; position: absolute; inset: -6px -2px; }                
.fa-pill.on { border-color: var(--teal-ink); background: var(--hover); color: var(--teal-ink); }
.tag-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tag-chips:empty { display: none; }
.tag-in-wrap { width: 100%; }
.tag-in-wrap.hidden { display: none; }
.tag-in-wrap input { width: 100%; }


.tx-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--teal-ink); background: var(--hover); border-radius: 99px; padding: 1px 7px; margin-left: 2px; }
.tag-filter { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.tag-filter.hidden { display: none; }
.tag-f-lbl { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.fj-rowmenu {
  position: fixed; right: 12px; z-index: 700; min-width: 210px; padding: 4px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fj-rowmenu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.fj-rowmenu button.hl { background: var(--hover); color: var(--teal-ink); font-weight: 800; }


#setLegacy { display: none; }
.sheet-hdr #setBack { width: 48px; height: 48px; margin: -8px 0 -8px -12px; border: 0; background: none; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 50%; flex: 0 0 auto; }
.sheet-hdr #setBack:active { background: var(--hover); }
.sheet-hdr #setBack.hidden, .sheet-hdr .set-ledchip.hidden { display: none; }
#settingsOvl .sheet-hdr h2 { flex: 1; min-width: 0; }
.set-ledchip { min-height: 48px; max-width: 46%; margin: -8px 8px -8px 8px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--hover); color: var(--teal-ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; margin-bottom: 12px; background: var(--white); border: 2px solid var(--border); border-radius: 14px; color: var(--muted); }
.set-search:focus-within { border-color: var(--teal-ink); }
.set-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.set-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.set-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.set-grp { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 64px; padding: 8px 14px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.set-grp:first-child { border-top: 0; }
.set-grp:active { background: var(--hover); }
.set-grp .set-btn-text { flex: 1; min-width: 0; display: block; }
.set-grp .set-btn-title, .set-grp .set-btn-sub { display: block; }
.set-grp .set-btn-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-arrow { color: var(--muted); font-size: 20px; }
.set-btn .set-btn-text { flex: 1; min-width: 0; }
.set-led { background: var(--hero-bg); border-color: var(--hero-border); min-height: 64px; }
.set-led .set-sw { font-size: 13px; font-weight: 800; color: var(--teal-ink); white-space: nowrap; }
.set-page { display: none; }
.set-page.on { display: block; }
#setRoot.in-page #setTop, #setRoot.in-page #setHome { display: none; }
#setRoot.searching #setHome { display: none; }
.set-crumb { display: none; font-size: 12px; font-weight: 800; color: var(--teal-ink); margin: 6px 4px 8px; }
#setRoot.searching .set-crumb { display: block; }
.set-miss { display: none !important; }
.set-none { text-align: center; font-size: 14px; color: var(--muted); padding: 24px 12px; }
.set-none.hidden { display: none; }
#setPages .set-section-lbl, #setPages #setRecurLbl { margin: 16px 4px 8px; }
#setPages #clearDataBtn { margin-top: 18px; }
#setCards .set-btn { margin-bottom: 12px; }


.brand-btn { min-height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; max-width: 220px; }
.brand-btn .brand-name { line-height: 1.1; }
.brand-btn .brand-sub { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 99px; background: var(--hdr-chip); color: white; font-size: 12px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 1; }
.brand-btn .brand-sub::after { content: ' ▾'; opacity: 1; margin-left: 4px; }


.wel-lang { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 0 0 6px; }
.wel-lang-k { flex: 0 0 100%; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.wel-lg { min-height: 48px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 99px; background: var(--white); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.wel-lg.on { border-color: var(--teal-ink); background: var(--hover); color: var(--teal-ink); }
html.wel-open #languageOvl { z-index: 900; }


.tx-sheet .fg input[type="text"], .tx-sheet .fg input[type="date"], .tx-sheet .fg input[type="time"], .tx-sheet .fg select { min-height: 48px; }


.cc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-col { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.cc-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; overflow-wrap: anywhere; }
.cc-hint:empty { display: none; }
#ccFields .recur-sel { width: 100%; min-height: 48px; }
.fj-due-card .fj-due-ico { font-size: 18px; }


.lic-intro { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.lic-grp { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 6px; }
.lic-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--white); }
.lic-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lic-name { font-size: 14.5px; overflow-wrap: anywhere; }
.lic-ver { font-size: 12.5px; color: var(--muted); }
.lic-tag { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--teal-ink); background: var(--hover); border-radius: 99px; padding: 2px 9px; }
.lic-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.lic-link { display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal-ink); overflow-wrap: anywhere; line-height: 1.4; padding: 11px 0; }



html.fj-cust:not(.fj-home-new) #vDash.active { display: flex; flex-direction: column; gap: 12px; }
html.fj-cust:not(.fj-home-new) #vDash > *, html.fj-cust:not(.fj-home-new) #fjGlance > * { margin-bottom: 0; order: 40; }
html.fj-cust:not(.fj-home-new) #fjGlance { display: contents; }
html.fj-cust:not(.fj-home-new) #vDash > #convertBanner, html.fj-cust:not(.fj-home-new) #vDash > #fjAskNudge { order: 0; }
html.fj-cust:not(.fj-home-new) #vDash > .sum-cards { order: 1; }          
html.fj-cust:not(.fj-home-new) #vDash .fj-safe { order: 2; }              

html.fj-cust #vDash [data-fj-place="hidden"]:not(.fj-hc-peek) { display: none !important; }
html.fj-cust.simple:not(.fj-home-more) #vDash [data-fj-place="more"]:not(.fj-hc-peek) { display: none !important; }
html.fj-cust.simple #fjHomeMore { display: flex; }
html.fj-cust #fjHomeMore.hidden, html.fj-cust:not(.simple) #fjHomeMore { display: none !important; }
#vDash [data-fj-card], #fjHero, #vDash .sum-cards { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

#vDash .fj-hc-lift { transform: scale(1.02); box-shadow: 0 10px 28px rgba(0,0,0,.3); position: relative; z-index: 20; transition: transform .15s, box-shadow .15s; }
#vDash .fj-hc-mv { transition: transform .18s ease; }
html.fj-hc-dragging #vDash .fj-hc-lift { transition: none; }
html.fj-hc-dragging, html.fj-hc-dragging body, html.fj-hc-dragging main { touch-action: none; -webkit-user-select: none; user-select: none; }
html.fj-hc-dragging { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { #vDash .fj-hc-lift, #vDash .fj-hc-mv { transition: none; } }
.fj-hc-hl { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: var(--r); scroll-margin-top: 84px; }


.fjhc-wrap { position: fixed; inset: 0; z-index: 250; }
.fjhc-wrap.hidden { display: none; }
.fjhc-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.fjhc-sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 480px; height: 57vh; height: 57dvh; min-height: 320px; max-height: calc(100dvh - 72px);
  display: flex; flex-direction: column; background: var(--white); color: var(--text); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.35); outline: none;
  animation: sheetUp .28s cubic-bezier(.16,1,.3,1); }
.fjhc-grab { flex: 0 0 auto; width: 44px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .5; margin: 8px auto 2px; }
.fjhc-head { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 2px 14px 4px; }
.fjhc-head h2 { flex: 1 1 auto; font-size: 17px; font-weight: 800; min-width: 0; }
.fjhc-btn { min-height: 48px; padding: 0 14px; border-radius: 24px; border: 1.5px solid var(--teal-ink); background: var(--white); color: var(--teal-ink); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.fjhc-btn.fjhc-done { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.fjhc-btn.fjhc-reset { border-color: var(--red-ink); color: var(--red-ink); margin-top: 8px; }
.fjhc-status { flex: 0 0 auto; padding: 0 16px 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.fjhc-tip { flex: 0 0 auto; padding: 0 16px 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.fjhc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
.fjhc-fixed { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--hero-bg); border: 1px solid var(--hero-border); font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.fjhc-sec { font-size: 13px; font-weight: 800; margin: 12px 4px 2px; color: var(--text); }
.fjhc-sec span { color: var(--muted); font-weight: 700; }
.fjhc-empty { font-size: 12.5px; color: var(--muted); padding: 6px 4px 2px; }
.fjhc-row { display: flex; align-items: center; gap: 2px; min-height: 56px; border-bottom: 1px solid var(--border); background: var(--white); }
.fjhc-row.off .fjhc-nm { color: var(--muted); font-weight: 600; }
.fjhc-row.fjhc-drag { box-shadow: 0 8px 22px rgba(0,0,0,.35); border-radius: 12px; position: relative; z-index: 2; background: var(--hover); }
.fjhc-nm { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
button.fjhc-nm { cursor: pointer; border-radius: 10px; }
.fjhc-ic { flex: 0 0 auto; font-size: 18px; }
.fjhc-hd, .fjhc-gap { flex: 0 0 44px; width: 44px; height: 48px; }
.fjhc-hd { border: 0; background: none; color: var(--teal-ink); font-size: 22px; cursor: grab; touch-action: none; border-radius: 10px; }
.fjhc-mv { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--muted); background: var(--white); color: var(--text); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.fjhc-mv[disabled] { opacity: .35; cursor: default; }
.fjhc-chip { flex: 0 0 88px; width: 88px; min-height: 48px; padding: 2px 8px; border-radius: 12px; border: 1px dashed var(--muted); background: none; color: var(--warn-ink); font: inherit; font-size: 11.5px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.fjhc-sw { position: relative; flex: 0 0 56px; width: 56px; height: 48px; border: 0; background: none; cursor: pointer; }
.fjhc-sw::before { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; bottom: 10px; border-radius: 14px; border: 2px solid var(--muted); background: none; }
.fjhc-sw::after { content: ''; position: absolute; left: 10px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.fjhc-sw[aria-checked="true"]::before { background: var(--fill); border-color: var(--fill); }
.fjhc-sw[aria-checked="true"]::after { left: 30px; background: var(--on-fill); }
.fjhc-row button:focus-visible, .fjhc-btn:focus-visible, .fjhc-set-top:focus-visible, .fjhc-sheet:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fjhc-sheet { animation: none; } .fjhc-sw::after { transition: none; } }


.fjhc-set { display: block; padding: 0; cursor: default; }
.fjhc-set:hover { box-shadow: none; }
.fjhc-set-top { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 64px; padding: 12px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.fjhc-set-top .set-btn-text { flex: 1; min-width: 0; }
.fjhc-set-top .set-btn-title, .fjhc-set-top .set-btn-sub { display: block; }
.fjhc-set-box { padding: 0 12px 14px; }
.fjhc-set-box.hidden { display: none; }
.fjhc-intro { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0 4px 6px; }
.fjhc-set-list { overflow: visible; padding: 0; }


:root[data-theme="dark"] input[type="date"], :root[data-theme="dark"] input[type="time"] { color-scheme: dark; }


.fj-li { display: inline-block; width: 1em; height: 1em; line-height: 0; vertical-align: -.14em; color: inherit; font-style: normal; }
.fj-li-svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

:where(html.fj-lineicons) :where(button) { color: inherit; }

:root[data-theme="dark"] .fj-li { color: var(--li-ink); }
:root[data-theme="dark"] :is(.fab, .save-btn, .scan-btn, .fj-btn, .tour-next, .calc-eq, .ftab.active, .rtab.active, .goal-chip:hover, .add-chip:hover,
  .bnav.fj-cap .nb.active, .bnav.fj-cap .nb.under, .rec-seg button.on, .fjhc-btn.fjhc-done, .fjh-fab, .fjh-mu, .fjh-act, .fjh-send, .lock-key-ok, .lock-help-back, .dp-avatar, .fj-days .ok) .fj-li { color: inherit; }

.cat-item.sel .fj-li { color: var(--on-fill); }
.ni .fj-li { display: block; }
.ci-emoji .fj-li, .jc-emoji .fj-li, .cr-emoji .fj-li { display: block; margin: 0 auto; }

#iconsRow { flex-wrap: wrap; }
#iconsRow .set-btn-text { flex: 1 1 140px; min-width: 0; }
#iconsRow .theme-seg { flex: 1 1 100%; margin-left: 0; display: flex; }
#iconsRow .theme-opt { flex: 1 1 0; }
.fj-due-paid { display: block; width: 100%; min-height: 48px; margin: 0; padding: 4px 0 6px; border: 0; background: none; color: var(--teal-ink); font: inherit; font-size: 13px; font-weight: 800; text-align: right; cursor: pointer; }
html.simple .jar-code { display: none; }   
.fav-ren-in { min-height: 48px; width: 9.5em; border: 0; border-bottom: 2px solid var(--teal-ink); background: transparent; color: var(--text); font: inherit; padding: 0 4px; }

html.fj-cal-on #vHist #tagFilterRow:not(.hidden) { display: flex !important; }



.fjh-fab { position: fixed; right: 12px; bottom: calc(var(--nav-h) + 90px); width: 52px; height: 52px; z-index: 120; border-radius: 50%;
  border: 3px solid var(--white); background: var(--fill); color: var(--on-fill); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,121,107,.4);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.fjh-fab.hidden, .fjh-x.hidden { display: none; }
.fjh-fab.drag { transform: scale(1.1); z-index: 160; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.fjh-fab-ico { display: block; line-height: 1; }
html.fj-hc-dragging .fjh-fab { pointer-events: none; }       

.fjh-x { position: fixed; left: 50%; bottom: calc(var(--nav-h) - 4px); transform: translateX(-50%); width: 64px; height: 64px; z-index: 150; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; line-height: 1;
  background: var(--red-ink); color: var(--white); box-shadow: 0 6px 22px rgba(0,0,0,.35); transition: transform .12s; pointer-events: none; }
.fjh-x.hot { transform: translateX(-50%) scale(1.25); outline: 3px solid var(--white); }
.fjh-hl { outline: 2px solid var(--fill); outline-offset: -2px; background: var(--hero-bg) !important; }
@media (prefers-reduced-motion: reduce) { .fjh-x { transition: none; } }


.fjh-ovl { align-items: stretch; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.fjh-page { width: 100%; max-width: 480px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.fjh-hdr { background: var(--hdr); color: white; padding: 10px 10px 12px 8px; display: flex; align-items: center; gap: 8px; min-height: 66px; flex: none; }
html.native-app .fjh-hdr { padding-top: calc(10px + var(--sat)); }
.fjh-t { flex: 1; min-width: 0; font-weight: 800; font-size: 18px; }
.fjh-t small { display: block; font-weight: 500; font-size: 12px; opacity: .95; }
.fjh-rb { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--hdr-chip); color: white; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.fjh-chat { flex: 1; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.fjh-mu { align-self: flex-end; max-width: 82%; background: var(--fill); color: var(--on-fill); border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.fjh-mh { display: flex; gap: 8px; align-items: flex-start; }
.fjh-av { width: 30px; height: 30px; border-radius: 50%; background: var(--hero-bg); border: 1px solid var(--hero-border); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; color: var(--teal-ink); }
.fjh-bub { background: var(--white); border-radius: 4px 18px 18px 18px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; flex: 1; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.fjh-ti { font-weight: 800; font-size: 15px; color: var(--teal-ink); margin-bottom: 2px; }
.fjh-big { font-size: 26px; font-weight: 800; margin: 2px 0; }
.fjh-mut { color: var(--muted); font-size: 12.5px; }
.fjh-how { font-size: 12px; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 6px; }
.fjh-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; margin: 8px 0; }
.fjh-line .nm { font-weight: 600; min-width: 0; }
.fjh-line .am { font-weight: 700; text-align: right; }
.fjh-trk { grid-column: 1 / 3; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.fjh-trk i { display: block; height: 100%; background: var(--seg-free); border-radius: 4px; }
.fjh-trk i.w { background: var(--orange); }
.fjh-trk i.o { background: var(--red); }
.fjh-line .st { grid-column: 1 / 3; font-size: 12px; color: var(--muted); }
.fjh-line .st.w { color: var(--orange-ink); font-weight: 700; }
.fjh-line .st.o { color: var(--red-ink); font-weight: 700; }
.fjh-sect { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 10px; }
.fjh-drow { display: flex; justify-content: space-between; gap: 8px; min-height: 36px; align-items: center; border-bottom: 1px solid var(--border); }
.fjh-drow .d { color: var(--muted); font-size: 12.5px; white-space: nowrap; margin-left: auto; }
.fjh-cmp { display: grid; gap: 6px; margin: 8px 0; }
.fjh-cmp .l { font-size: 12.5px; display: flex; justify-content: space-between; }
.fjh-warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 8px 10px; font-size: 13px; margin-top: 8px; }
.fjh-draft { background: var(--hover); border: 1px solid var(--hero-border); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; margin-top: 8px; overflow-wrap: anywhere; }
.fjh-steps { margin: 6px 0 0; padding-left: 20px; }
.fjh-steps li { margin: 4px 0; }
.fjh-act { margin-top: 10px; min-height: 48px; width: 100%; border-radius: 24px; border: 0; background: var(--fill); color: var(--on-fill); font-weight: 800; font-size: 14px; cursor: pointer; padding: 0 16px; }
.fjh-act.ghost { background: var(--hover); color: var(--teal-ink); border: 1px solid var(--hero-border); }
.fjh-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 12px 10px; flex: none; max-height: 42vh; overflow-y: auto; }
.fjh-chips.simple { grid-template-columns: 1fr; }
.fjh-chips.strip { scrollbar-width: none; display: flex; overflow-x: auto; overflow-y: hidden; max-height: none; padding: 4px 12px 8px; }
.fjh-chip { min-height: 48px; border-radius: 24px; border: 1.5px solid var(--hero-border); background: var(--white); color: var(--teal-ink); font-weight: 700; font-size: 13px; padding: 6px 12px; cursor: pointer; text-align: left; line-height: 1.25; }
.fjh-chips.strip .fjh-chip { white-space: nowrap; flex: none; }
.fjh-chip.block { display: block; width: 100%; margin-top: 6px; }
.fjh-in { display: flex; gap: 8px; padding: 6px 12px 2px; flex: none; }
.fjh-in input { flex: 1; min-height: 48px; border-radius: 24px; border: 1.5px solid var(--border); background: var(--white); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; padding: 0 16px; min-width: 0; }
.fjh-in input:focus { outline: 2px solid var(--fill); border-color: var(--fill); }
.fjh-send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--fill); color: var(--on-fill); font-size: 20px; font-weight: 800; cursor: pointer; flex: none; }
.fjh-priv { font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px 12px 10px; flex: none; }
.fjh-chips.strip::-webkit-scrollbar { display: none; }
.toast.fjh-toast { white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 32px); }


.debt-hint { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.debt-pay-who { font-size: 16px; font-weight: 700; color: var(--text); margin: 2px 0 14px; }


.lic-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0; margin-top: -6px; font-size: 13px; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }

html:not(.fj-diag-on) #diagOpenBtn { display: none !important; }

button.lic-link { background: none; border: 0; border-radius: 0; box-shadow: none; font-family: inherit; font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none; }


.fjg-new { min-height: 48px; padding: 0 2px; color: var(--teal-ink); font-weight: 700; font-size: 13px; background: none; border: 0; font-family: inherit; }
.fjg-mission { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px; margin: 2px 0 6px; background: color-mix(in srgb, var(--fill) 12%, transparent); }
.fjg-mtxt { flex: 1; min-width: 0; font-size: 13.5px; }
.fjg-mtxt small { display: block; color: var(--muted); font-size: 12px; }
.fjg-mtxt b { font-weight: 800; }
.fjg-done { min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--fill); color: var(--on-fill); font-weight: 800; font-size: 14px; white-space: nowrap; border: 0; font-family: inherit; }

.fjg-ef { flex-wrap: wrap; }
.fjg-ef-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.fjg-later { min-height: 48px; padding: 0 12px; border-radius: 12px; background: none; color: var(--teal-ink); font-weight: 700; font-size: 14px; border: 0; font-family: inherit; white-space: nowrap; }
.tg-efhint { margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: color-mix(in srgb, var(--fill) 10%, transparent); color: var(--text); }
.tg-efhint small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.tg-ef-btns { display: flex; gap: 8px; margin-top: 8px; }
.tg-ef-btn { flex: 1; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-weight: 700; font-size: 14px; font-family: inherit; }
.tg-ef-btn.sel { border-color: var(--fill); background: color-mix(in srgb, var(--fill) 14%, transparent); color: var(--teal-ink); }
.fjg-row { display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; width: 100%; text-align: left; padding: 10px 0; background: none; border: 0; border-top: 1px solid var(--border); color: inherit; font: inherit; }
.fjg-list > .fjg-row:first-child { border-top: 0; }
.fjg-ic { grid-row: span 3; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; }
.fjg-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.fjg-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.fjg-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.fjg-bar { display: block; height: 8px; border-radius: 5px; background: var(--track); overflow: hidden; }
.fjg-bar i { display: block; height: 100%; border-radius: 5px; }
.fjg-sub { font-size: 12px; color: var(--muted); }
.fjg-empty { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.fjg-edit { width: 100%; margin-top: 10px; }
.tg-calc { margin-top: 12px; border-radius: 12px; padding: 10px 12px; font-size: 14px; background: color-mix(in srgb, var(--fill) 12%, transparent); }
.tg-calc b { font-weight: 800; }
.tg-warn { display: block; margin-top: 4px; font-size: 12.5px; color: var(--orange-ink); }
