/* Χρήματα — «γυάλινο» μπλε σύστημα: ένα χρώμα έμφασης, μία κλίμακα απόστασης, μικρά στοιχεία ελέγχου. */
:root {
  color-scheme: dark light;
  --shadow: none;
  --bg: #050b27;
  --bg-glow: #1b46e6;
  --surface: #0f1a52;
  --surface-2: #19287a;
  --line: rgb(255 255 255 / .09);
  --ink: #eef3ff;
  --ink-2: #b4c1ee;
  --ink-3: #8c9ccf;
  --accent: #5b98ff;
  --accent-2: #2f6df5;
  --accent-ink: #ffffff;
  --accent-soft: rgb(91 152 255 / .17);
  --pos: #5ee6b0;
  --neg: #ff8f8f;
  --warn: #ffc470;
  --warn-soft: rgb(255 196 112 / .14);
  --mono-l: 76%;
  --bar-off: rgb(255 255 255 / .16);
  --r: 20px;
  --r-sm: 14px;
  --tab-h: 62px;
  --gap: 16px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eef1fb;
    --bg-glow: #b9ccff;
    --surface: #ffffff;
    --surface-2: #eaeefb;
    --line: rgb(15 25 80 / .09);
    --ink: #0d1330;
    --ink-2: #444f78;
    --ink-3: #5c6890;
    --accent: #2f5bff;
    --accent-2: #1b46e6;
    --accent-soft: rgb(47 91 255 / .10);
    --pos: #0b7a55;
    --neg: #c0303a;
    --warn: #8a5200;
    --warn-soft: rgb(138 82 0 / .1);
    --mono-l: 34%;
    --bar-off: rgb(15 25 80 / .14);
    --shadow: 0 1px 2px rgb(15 25 80 / .06), 0 10px 22px -16px rgb(15 25 80 / .28);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1fb;
  --bg-glow: #b9ccff;
  --surface: #ffffff;
  --surface-2: #eaeefb;
  --line: rgb(15 25 80 / .09);
  --ink: #0d1330;
  --ink-2: #444f78;
  --ink-3: #5c6890;
  --accent: #2f5bff;
  --accent-2: #1b46e6;
  --accent-soft: rgb(47 91 255 / .10);
  --pos: #0b7a55;
  --neg: #c0303a;
  --warn: #8a5200;
  --warn-soft: rgb(138 82 0 / .1);
  --mono-l: 34%;
  --bar-off: rgb(15 25 80 / .14);
  --shadow: 0 1px 2px rgb(15 25 80 / .06), 0 10px 22px -16px rgb(15 25 80 / .28);
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: radial-gradient(120% 55% at 50% -8%, var(--bg-glow) 0%, transparent 62%), var(--bg); background-attachment: fixed; color: var(--ink); font: 15px/1.42 var(--font); }
body { overflow: hidden; overscroll-behavior: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num, .amt { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; }
#view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top) + 6px) var(--gap) calc(var(--tab-h) + env(safe-area-inset-bottom) + 34px); outline: none;
}
body.typing .tabbar { display: none; }
body.typing #view { padding-bottom: 20px; }

/* ---------- Κίνηση ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }
#view.view-in > * { animation: rise .42s cubic-bezier(.2, .8, .2, 1) both; }
#view.view-in > *:nth-child(2) { animation-delay: .04s; }
#view.view-in > *:nth-child(3) { animation-delay: .08s; }
#view.view-in > *:nth-child(4) { animation-delay: .12s; }
#view.view-in > *:nth-child(5) { animation-delay: .16s; }
#view.view-in > *:nth-child(6) { animation-delay: .20s; }
#view.view-in > *:nth-child(n+7) { animation-delay: .24s; }

/* ---------- Κεφαλίδα ---------- */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-bottom: 2px; }
.top h1 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; }
.top .actions { display: flex; gap: 2px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .15s, transform .12s; }
.icon-btn::after { content: ''; position: absolute; inset: -3px; }
.icon-btn:active { background: var(--accent-soft); transform: scale(.92); }
.icon-btn .ic { width: 21px; height: 21px; }

/* ---------- Πλωτή μπάρα πλοήγησης ---------- */
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px); height: var(--tab-h);
  padding: 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 38px -16px rgb(0 0 0 / .65), inset 0 1px 0 rgb(255 255 255 / .06);
}
.tab-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 18px; background: var(--accent-soft); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .32s cubic-bezier(.3, .9, .3, 1); pointer-events: none; }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; color: var(--ink-3); min-height: 44px; transition: color .2s; }
.tabbar a .ic { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.tabbar a[aria-current="page"] .ic { transform: translateY(-1px) scale(1.08); }
.tabbar a.tab-main:not([aria-current="page"]) .ic { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 15px; width: 44px; height: 32px; padding: 5px 12px; margin-top: -6px; box-shadow: 0 8px 20px -6px rgb(47 109 245 / .8), inset 0 1px 0 rgb(255 255 255 / .35); }

/* ---------- Ενότητες / κάρτες ---------- */
.section { margin-top: 18px; }
.section > h2, .eyebrow { font-size: .72rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.section-head h2 { font-size: .72rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.link { position: relative; color: var(--accent); font-size: .85rem; font-weight: 650; display: inline-flex; align-items: center; padding: 0 2px; min-height: 28px; }
.link::after { content: ''; position: absolute; inset: -8px -6px; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.list > * + * { border-top: 1px solid var(--line); }

/* ---------- Πτυσσόμενες ενότητες (μαζεύεται ό,τι δεν είναι κρίσιμο) ---------- */
.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-top: 10px; overflow: hidden; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; min-height: 46px; cursor: pointer; user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .ttl { font-weight: 650; flex: 0 1 auto; }
.fold > summary .sm { flex: 1; min-width: 0; text-align: right; color: var(--ink-2); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold > summary::after { content: ''; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .22s; margin-left: 2px; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold-body { border-top: 1px solid var(--line); animation: fadein .26s ease-out; }
.fold-body > .list { border: 0; }
.fold-pad { padding: 10px 12px 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 4px; padding: 18px 18px 14px; border-radius: 26px; color: #fff;
  background: radial-gradient(130% 150% at 0% 0%, #4d8dff 0%, #1951fc 36%, #0b2cb1 70%, #03195b 100%);
  box-shadow: 0 22px 44px -22px rgb(25 81 252 / .85), inset 0 1px 0 rgb(255 255 255 / .28);
}
.hero::after { content: ''; position: absolute; right: -25%; top: -45%; width: 80%; height: 150%; background: radial-gradient(closest-side, rgb(255 255 255 / .24), transparent); transform: rotate(18deg); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: rgb(255 255 255 / .75); margin-bottom: 2px; }
.hero-amt { font-size: 2.55rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.hero-amt small { font-size: 1.3rem; font-weight: 600; color: rgb(255 255 255 / .6); letter-spacing: 0; }
.hero-sub { color: var(--ink-2); margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pillstat { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 99px; background: rgb(255 255 255 / .14); font-size: .78rem; border: 1px solid rgb(255 255 255 / .16); }
.pillstat b { font-weight: 700; }
.pillstat.bad { background: rgb(255 120 120 / .22); }
.heroflow { display: flex; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .16); font-size: .76rem; color: rgb(255 255 255 / .82); white-space: nowrap; overflow: hidden; }
.heroflow b { font-size: .92rem; }
.heroflow .up { color: #9af5cf; }
.heroflow .dn { color: #ffb3b3; }
.alert { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgb(255 196 112 / .2); color: #ffe2b0; font-weight: 600; font-size: .85rem; }
.alert .ic { width: 18px; height: 18px; }
.okline { margin-top: 10px; color: rgb(255 255 255 / .85); font-size: .85rem; }
.page-alert { display: flex; gap: 8px; align-items: center; margin: 10px 0; padding: 9px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .88rem; }

/* ---------- Κάρτες λογαριασμών (carousel) ---------- */
.acc-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gap); cursor: grab; margin: 14px calc(var(--gap) * -1) 0; padding: 2px var(--gap) 10px; scrollbar-width: none; }
.acc-scroll::-webkit-scrollbar { display: none; }
.acc-card {
  position: relative; flex: 0 0 142px; scroll-snap-align: start; min-height: 98px; padding: 12px 12px 11px; border-radius: 20px; text-align: left; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #4d8dff 0%, #1951fc 40%, #0b2cb1 78%, #03195b 100%);
  box-shadow: 0 16px 30px -18px rgb(25 81 252 / .9), inset 0 1px 0 rgb(255 255 255 / .3), inset 0 0 0 1px rgb(255 255 255 / .08);
  display: flex; flex-direction: column; justify-content: space-between; transition: transform .16s ease;
}
.acc-card[data-v="1"] { background: radial-gradient(120% 140% at 100% 0%, #3781fc 0%, #1951fc 36%, #0b2cb1 72%, #03195b 100%); }
.acc-card[data-v="2"] { background: radial-gradient(120% 140% at 0% 100%, #6fb0ff 0%, #2f6df5 38%, #0b2cb1 80%, #03195b 100%); }
.acc-card[data-v="3"] { background: radial-gradient(120% 140% at 100% 100%, #4d8dff 0%, #1951fc 42%, #0b2cb1 78%, #03195b 100%); }
.acc-card.debt { background: linear-gradient(155deg, #1b2a6b 0%, #0e1a55 55%, #060d33 100%); box-shadow: 0 16px 30px -20px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .16), inset 0 0 0 1px rgb(255 143 143 / .35); }
.acc-card.debt .bal { color: #ffb0b0; }
.acc-card::after { content: ''; position: absolute; right: -30%; top: -40%; width: 90%; height: 120%; background: radial-gradient(closest-side, rgb(255 255 255 / .22), transparent); pointer-events: none; }
.acc-card:active { transform: scale(.96); }
.acc-card .k { display: flex; align-items: center; gap: 6px; font-size: .74rem; opacity: .85; }
.acc-card .k .ic { width: 15px; height: 15px; }
.acc-card .bal { display: block; font-size: 1.12rem; font-weight: 740; margin-top: 10px; letter-spacing: -.01em; }
.acc-card .nm { display: block; font-size: .8rem; font-weight: 600; opacity: .92; margin-top: 1px; }
.acc-card.add { background: var(--surface); border: 1.5px dashed var(--line); color: var(--ink-3); align-items: center; justify-content: center; box-shadow: none; flex-basis: 92px; }
.acc-card.add::after { display: none; }

/* ---------- Γρήγορες ενέργειες ---------- */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .72rem; font-weight: 650; color: var(--ink-2); transition: transform .14s; }
.qa button:active { transform: scale(.94); }
.qa .qi { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.qa .qi.out { background: rgb(255 143 143 / .14); color: var(--neg); }
.qa .qi.in { background: rgb(94 230 176 / .14); color: var(--pos); }

/* ---------- Γραμμές ---------- */
.row { display: flex; align-items: center; gap: 11px; padding: 9px 14px; min-height: 54px; width: 100%; text-align: left; }
button.row, a.row { transition: background .15s; }
button.row:active, a.row:active { background: var(--accent-soft); }
.row .grow { flex: 1; min-width: 0; }
.row .t, .row .s { display: block; }
.row .t { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r { text-align: right; }
.row .r .s { margin-top: 1px; }
.row.split { padding: 0 14px; gap: 8px; }
.row-main { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; min-height: 54px; padding: 9px 0; text-align: left; }
.row-main .grow { flex: 1; min-width: 0; }
.row-main .r { text-align: right; }
.row-main .t { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.row-main .s { font-size: .8rem; color: var(--ink-3); display: block; }
.amt { font-weight: 700; white-space: nowrap; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.muted { color: var(--ink-3); }
.mono { --h: 215; width: 38px; height: 38px; flex: none; border-radius: 13px; display: grid; place-items: center; font-weight: 700; background: hsl(var(--h) 65% 55% / .2); color: hsl(var(--h) 80% var(--mono-l)); }
.mono .ic { width: 19px; height: 19px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: hsl(var(--h, 215) 70% 62%); box-shadow: 0 0 0 3px hsl(var(--h, 215) 70% 62% / .18); }
.datebadge { width: 40px; flex: none; text-align: center; line-height: 1.1; }
.datebadge b { display: block; font-size: 1.05rem; }
.datebadge span { display: block; font-size: .66rem; color: var(--ink-3); text-transform: uppercase; }
.pill { display: inline-block; font-size: .66rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); margin-left: 6px; vertical-align: 1px; }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 24px 18px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

/* ---------- Κουμπιά (μικρότερα, με μεγάλη περιοχή αφής) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 13px; font-weight: 650; font-size: .92rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); transition: transform .14s, filter .15s; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgb(47 109 245 / .9), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn.danger { color: var(--neg); background: transparent; border-color: transparent; }
.btn.block { width: 100%; }
.btn:active { transform: scale(.975); filter: brightness(.95); }
.btn[disabled] { opacity: .5; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; font-weight: 650; white-space: nowrap; border: 1px solid var(--line); transition: background .15s, color .15s, transform .12s; }
.chip::after { content: ''; position: absolute; inset: -7px -3px; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -8px rgb(47 109 245 / .9); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 3px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; margin-top: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span, .seg button { display: grid; place-items: center; min-height: 34px; border-radius: 10px; font-size: .85rem; font-weight: 650; color: var(--ink-2); transition: background .2s, color .2s; }
.seg input:checked + span, .seg button[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 14px -8px rgb(47 109 245 / .9); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

/* ---------- Φόρμες ---------- */
.fld { display: block; margin-top: 12px; }
.fld > span { display: block; font-size: .78rem; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; }
.fld[hidden] { display: none; }
input[type=text], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 13px; border-radius: 13px; border: 1.5px solid transparent; background: var(--surface-2); outline: none; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238c9ccf' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.amount-in { font-size: 1.7rem !important; font-weight: 720; min-height: 56px !important; letter-spacing: -.02em; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--ink-3); font-size: .78rem; }
.form-actions { display: grid; gap: 6px; margin-top: 18px; }
.hint { font-size: .8rem; color: var(--ink-3); margin-top: 5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lbl { font-size: .74rem; }

/* ---------- Sheet ---------- */
dialog#sheet {
  margin: auto auto 0; width: 100%; max-width: 520px; max-height: 92dvh; padding: 0;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; background: color-mix(in srgb, var(--surface) 94%, #000); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
dialog#sheet::backdrop { background: rgb(3 8 30 / .6); backdrop-filter: blur(3px); animation: fadein .2s ease-out; }
dialog#sheet[open] { animation: up .26s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(46px); opacity: .4; } }
#sheet-body { padding: 0 var(--gap) var(--gap); }
.grab { width: 38px; height: 4px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 52px; background: color-mix(in srgb, var(--surface) 94%, #000); }
.sheet-head h2 { font-size: 1.15rem; font-weight: 720; }
.sheet-sub { color: var(--ink-3); margin-top: -4px; font-size: .88rem; }
.big { font-size: 2rem; font-weight: 740; letter-spacing: -.02em; margin: 4px 0 2px; }
dialog#sheet .form-actions { position: sticky; bottom: 0; z-index: 2; background: color-mix(in srgb, var(--surface) 94%, #000); margin-top: 8px; padding: 10px 0 calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 12px -10px rgb(0 0 0 / .35); }
.effect { margin-top: 12px; padding: 10px 12px; border-radius: 13px; background: var(--accent-soft); font-size: .86rem; line-height: 1.4; }
.effect:empty { display: none; }
.amt-hint { min-height: 1.2em; }
.amt-hint.ok { color: var(--ink-2); }
.amt-hint.bad { color: var(--neg); }
.discard { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 7px 7px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; }
.discard span { flex: 1; }
.discard .chip { background: var(--bg); color: var(--ink); border: 0; }
@media (min-width: 600px) {
  dialog#sheet { margin: auto; width: min(460px, 88vw); border-radius: 24px; border-bottom: 1px solid var(--line); max-height: 86dvh; box-shadow: 0 24px 80px rgb(0 0 0 / .5); }
  .grab { display: none; }
  dialog#sheet .form-actions { padding-bottom: 8px; }
}

/* ---------- Toast ---------- */
#toast { position: absolute; left: var(--gap); right: var(--gap); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); z-index: 20; pointer-events: none; display: flex; justify-content: center; }
body.typing #toast { bottom: 80px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 3px 4px 3px 14px; font-weight: 600; font-size: .9rem; box-shadow: 0 14px 34px rgb(0 0 0 / .4); animation: up .22s ease-out; }
.toast button { position: relative; color: var(--bg); text-decoration: underline; min-height: 38px; padding: 0 12px; font-weight: 700; }

/* ---------- Chat ---------- */
.chat-wrap { display: flex; flex-direction: column; height: 100%; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); }
body.typing .chat-wrap { padding-bottom: 0; }
#view.chat { padding: env(safe-area-inset-top) 0 0; overflow: hidden; }
.chat-wrap .top { padding: 0 var(--gap); }
.msgs { flex: 1; overflow-y: auto; padding: 6px var(--gap) 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; animation: pop .22s ease-out; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 9px 13px; border-radius: 18px 18px 5px 18px; font-weight: 500; overflow-wrap: anywhere; box-shadow: 0 8px 18px -10px rgb(47 109 245 / .9); }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); padding: 10px 13px; border-radius: 18px 18px 18px 5px; overflow-wrap: anywhere; }
.msg.bot p + p { margin-top: 4px; }
.msg.bot .qrow { display: flex; justify-content: space-between; gap: 16px; }
.cardtx .r1 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.cardtx .r1 .amt { font-size: 1.3rem; }
.cardtx .r1 .ttl { font-weight: 620; }
.cardtx .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 7px; font-size: .8rem; color: var(--ink-3); }
.cardtx .meta select { width: auto; min-height: 30px; padding: 3px 28px 3px 11px; font-size: .8rem; border-radius: 99px; background-position: right 11px center; }
.cardtx .acts { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.cardtx.gone { color: var(--ink-3); text-decoration: line-through; }
.composer { display: flex; gap: 8px; padding: 8px var(--gap) 8px; align-items: center; }
.composer input { flex: 1; min-height: 46px; border-radius: 23px; padding: 0 18px; font-size: 1rem; background: var(--surface); border: 1px solid var(--line); }
.send { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 20px -8px rgb(47 109 245 / .9); transition: transform .14s; }
.send:active { transform: scale(.92); }
.starter { padding: 8px 4px; }
.starter h2 { font-size: 1.1rem; margin-bottom: 4px; }
.starter p { color: var(--ink-2); margin-bottom: 10px; }
.starter .chips { flex-wrap: wrap; overflow: visible; }
.mrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; padding: 5px 0; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow .ttl { font-weight: 620; }
.mrow small { flex-basis: 100%; font-size: .78rem; }

/* ---------- Κινήσεις ---------- */
.monthbar { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.monthbar strong { text-transform: capitalize; font-size: .98rem; }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 2px; }
.sum > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; }
.daygroup { margin-top: 14px; }
.daygroup > h3 { font-size: .78rem; font-weight: 650; color: var(--ink-3); margin: 0 4px 5px; text-transform: capitalize; }
.filterhint { color: var(--accent); font-weight: 650; }

/* ---------- Ανάλυση ---------- */
.chartcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px 10px 8px; margin-top: 10px; }
.chartcard .ctop { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px; }
.chartcard .ctop strong { font-size: .98rem; }
.mcols { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 4px; margin-top: 6px; }
.mcols.dense { gap: 1px; }
.mcol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border-radius: 12px; min-height: 44px; color: var(--ink); }
.mcol .bars { height: 138px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.mcol .bar { position: relative; display: block; width: 62%; max-width: 30px; border-radius: 9px 9px 5px 5px; background: var(--bar-off); transform-origin: bottom; animation: grow .55s cubic-bezier(.2, .9, .3, 1) both; min-height: 0; }
.mcols.dense .bar { width: 70%; max-width: 16px; border-radius: 6px 6px 3px 3px; }
.mcol[aria-pressed="true"] .bar { background: linear-gradient(180deg, #8fc0ff, var(--accent) 45%, var(--accent-2)); box-shadow: 0 0 22px -2px rgb(91 152 255 / .75), inset 0 1px 0 rgb(255 255 255 / .5); }
.mcol[aria-pressed="true"] .bar.in { background: linear-gradient(180deg, #b6ffe0, var(--pos) 50%, #1aa57a); box-shadow: 0 0 22px -2px rgb(94 230 176 / .7), inset 0 1px 0 rgb(255 255 255 / .5); }
.mcol .bars { position: relative; }
.mcol .val { position: absolute; left: 50%; transform: translateX(-50%); font-size: .62rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar.out { background: linear-gradient(180deg, #ffb7b7, var(--neg)); }
.mcol[aria-pressed="true"] .val { color: var(--ink); font-weight: 750; font-size: .78rem; }
.mcol .ml { font-size: .72rem; color: var(--ink-3); text-transform: capitalize; }
.mcol[aria-pressed="true"] .ml { color: var(--ink); font-weight: 700; }
.mcols.dense .ml { font-size: .6rem; }
.mcols.dense .val { display: none; }
.mcols.dense .mcol[aria-pressed="true"] .val { display: block; }
.mcol.static { background: none; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

.statscroll { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gap); margin: 12px calc(var(--gap) * -1) 0; padding: 0 var(--gap) 4px; scrollbar-width: none; }
.statscroll::-webkit-scrollbar { display: none; }
.stat { flex: 0 0 auto; min-width: 118px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 13px; }
.stat .si { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.stat .si.pos { background: rgb(94 230 176 / .14); }
.stat .si.neg { background: rgb(255 143 143 / .14); }
.stat .si .ic { width: 16px; height: 16px; }
.stat .amt { font-size: 1.12rem; display: block; }
.stat .lbl { color: var(--ink-3); }
.delta { display: block; font-size: .7rem; margin-top: 2px; font-weight: 650; }

.insight { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(135deg, rgb(91 152 255 / .22), rgb(91 152 255 / .06)); border: 1px solid rgb(91 152 255 / .28); }
.insight .ii { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; flex: none; }
.insight b { display: block; font-size: .9rem; }
.insight span { font-size: .8rem; color: var(--ink-2); }

.donutwrap { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; margin-top: 12px; }
.donut { width: 138px; height: 138px; flex: none; animation: spin-in .7s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-70deg) scale(.88); } }
.donut .seg-arc { fill: none; stroke-linecap: round; }
.donut .ctr { fill: var(--ink); font-weight: 740; font-size: 17px; font-variant-numeric: tabular-nums; }
.donut .cap { fill: var(--ink-3); font-size: 9px; }
.dlegend { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dlegend button { display: flex; align-items: center; gap: 8px; font-size: .8rem; text-align: left; width: 100%; min-height: 26px; }
.dlegend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dlegend .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.dlegend .pc { font-weight: 700; font-variant-numeric: tabular-nums; }

.catrow { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; min-height: 46px; text-align: left; overflow: hidden; }
button.catrow:active { background: var(--accent-soft); }
.catrow .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; border-radius: 0 10px 10px 0; transform-origin: left; animation: growx .6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes growx { from { transform: scaleX(0); } }
.catrow .nm, .catrow .vl { position: relative; z-index: 1; }
.catrow .nm { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catrow .vl { font-weight: 700; white-space: nowrap; }
.catrow .vl small { color: var(--ink-3); font-weight: 600; margin-left: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- Χρωστούμενα ---------- */
.owedcard { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; margin-top: 10px; transition: transform .14s; }
.owedcard:active { transform: scale(.985); }
.oc-top { display: flex; align-items: center; gap: 11px; }
.oc-top .grow { flex: 1; min-width: 0; }
.oc-top .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 650; overflow: hidden; line-height: 1.25; }
.oc-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; font-size: .78rem; color: var(--ink-3); line-height: 1.3; }
.oc-top .amt { font-size: 1.1rem; }
.oc-bar { display: block; height: 6px; border-radius: 99px; background: var(--bar-off); margin-top: 11px; overflow: hidden; }
.oc-bar i { display: block; height: 100%; min-width: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--pos)); transform-origin: left; animation: growx .7s cubic-bezier(.2, .9, .3, 1) both; }
.oc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: .76rem; color: var(--ink-3); }

/* ---------- Επιλογή διαστήματος ---------- */
.monthpick { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 12px; font-weight: 700; font-size: .98rem; text-transform: capitalize; color: var(--ink); transition: background .15s, transform .12s; }
.monthpick .ic { width: 16px; height: 16px; color: var(--ink-3); }
.monthpick:active { background: var(--accent-soft); }
.yearnav { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.yearnav strong { font-size: 1.1rem; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; padding-bottom: 6px; }
.mgrid.two { grid-template-columns: repeat(2, 1fr); }
.mgrid button { min-height: 46px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 650; font-size: .92rem; transition: transform .12s, background .15s; }
.mgrid button:active { transform: scale(.96); }
.mgrid button[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgb(47 109 245 / .9); }
.mgrid button[disabled] { opacity: .3; }

/* ---------- Ημερολόγιο ---------- */
.calhead { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.calsum { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; color: var(--ink-3); padding: 0 4px; margin-top: 2px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 10px 8px 8px; }
.cal-wd { text-align: center; font-size: .66rem; font-weight: 650; color: var(--ink-3); text-transform: uppercase; padding-bottom: 4px; }
.cal-blank { min-height: 44px; }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 46px; border-radius: 14px; font-weight: 650; transition: background .15s, transform .12s; }
.cal-day .n { font-size: .92rem; font-variant-numeric: tabular-nums; }
.cal-day:active { transform: scale(.92); }
.cal-day.today .n { color: var(--accent); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.late::after { content: ''; position: absolute; top: 5px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.cal-day[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 18px -10px rgb(47 109 245 / .9); }
.cal-day[aria-pressed="true"].today .n { color: #fff; }
.dots { display: flex; gap: 3px; height: 6px; }
.cd { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.cd.out { background: var(--neg); }
.cd.in { background: var(--pos); }
.cd.hollow { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.cd.out.hollow { box-shadow: inset 0 0 0 1.5px var(--neg); }
.cd.in.hollow { box-shadow: inset 0 0 0 1.5px var(--pos); }
.cal-day[aria-pressed="true"] .cd { box-shadow: inset 0 0 0 1.5px #fff; background: #fff; }
.cal-day[aria-pressed="true"] .cd.hollow { background: transparent; }
.callegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .7rem; color: var(--ink-3); margin: 8px 4px 0; }
.callegend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Πάγια ---------- */
.list-cards { display: grid; gap: 8px; }
.plancard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .14s; }
.plancard:active { transform: scale(.985); }
.plancard .grow { flex: 1; min-width: 0; }
.plancard .t { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plancard .s { display: block; font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plancard .nx { color: var(--ink-2); margin-top: 1px; }
.plancard .nx b { color: var(--ink); }
.plancard .r { text-align: right; flex: none; }
.plancard .amt { font-size: 1rem; }
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stats2 .stat { min-width: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.facts > div { background: var(--surface-2); border-radius: 14px; padding: 9px 12px; min-width: 0; }
.facts .lbl { color: var(--ink-3); }
.facts .t { font-weight: 650; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Chat: ερώτηση λογαριασμού (ένα πάτημα) ---------- */
.askq { margin-bottom: 6px; color: var(--ink-2); font-size: .9rem; }
.askq b { color: var(--ink); }
.acc-more summary { display: flex; justify-content: space-between; align-items: center; list-style: none; margin-top: 8px; min-height: 34px; font-size: .84rem; color: var(--ink-3); cursor: pointer; }
.acc-more summary::-webkit-details-marker { display: none; }
.acc-more[open] .link { opacity: .6; }

/* ---------- Σκιές για το φωτεινό θέμα (στο σκούρο δεν χρειάζονται) ---------- */
.card, .fold, .stat, .plancard, .owedcard, .chartcard, .donutwrap, .calendar, .qa button, .sum > div, .facts > div { box-shadow: var(--shadow); }
:root[data-theme="light"] .card, :root[data-theme="light"] .fold { border-color: rgb(15 25 80 / .07); }

/* ---------- Φίλτρα ---------- */
.fbar { display: flex; gap: 8px; margin-top: 10px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; color: var(--ink-3); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .ic { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; min-height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); }
.search input:focus { border: 0; box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 13px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .88rem; color: var(--ink-2); }
.fbtn .ic { width: 18px; height: 18px; }
.badge { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; }
.fpills { margin-top: 6px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.fcard { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; text-align: left; transition: border-color .15s, background .15s, transform .12s; }
.fcard:active { transform: scale(.97); }
.fcard[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fcard .grow { flex: 1; min-width: 0; }
.fcard .ft { display: block; font-weight: 650; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard .fs { display: block; font-size: .76rem; color: var(--ink-3); }
.fcard .mono { width: 34px; height: 34px; border-radius: 11px; }
.catgrid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- Λεπτομέρειες πάγιου ---------- */
.hero.mini { padding: 14px 16px 12px; border-radius: 22px; margin-top: 2px; }
.hero.mini .hero-amt { font-size: 2.1rem; }
.tline { position: relative; display: grid; gap: 4px; margin-top: 6px; padding-left: 16px; }
.tline::before { content: ''; position: absolute; left: 6px; top: 18px; bottom: 18px; border-left: 2px dashed var(--line); }
.tl-row { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 16px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); transition: transform .14s; }
.tl-row:active { transform: scale(.985); }
.tl-dot { position: absolute; left: -15px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: var(--surface); border: 2px solid var(--ink-3); }
.tl-dot.now { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-date { width: 36px; flex: none; text-align: center; line-height: 1.1; }
.tl-date b { display: block; font-size: 1.05rem; }
.tl-date small { font-size: .64rem; color: var(--ink-3); text-transform: uppercase; }
.tl-body { flex: 1; min-width: 0; }
.tl-body .t { display: block; font-weight: 650; font-size: .92rem; }
.tl-body .s { display: block; font-size: .78rem; color: var(--ink-3); }

/* ---------- Σύνοψη: διάταξη «Ταμπλό» ---------- */
.qi { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.qi.out { background: rgb(255 143 143 / .14); color: var(--neg); }
.qi.in { background: rgb(94 230 176 / .14); color: var(--pos); }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.tile { display: block; text-align: left; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 13px 15px; box-shadow: var(--shadow); transition: transform .14s; }
.tile.w2 { grid-column: 1 / -1; }
.tile.flush { padding: 0; overflow: hidden; }
.tile:active { transform: scale(.985); }
.tile .k { font-size: .7rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tile .v { font-size: 1.5rem; font-weight: 740; letter-spacing: -.02em; margin-top: 3px; line-height: 1.15; }
.tile .v.big { font-size: 2.5rem; letter-spacing: -.035em; }
.tile .v small { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.tile .s { font-size: .8rem; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.bad { border-color: rgb(255 143 143 / .3); }
.tile.hot { background: radial-gradient(130% 140% at 0% 0%, #1951fc 0%, #0b2cb1 55%, #03195b 100%); color: #fff; border-color: transparent; overflow: hidden; box-shadow: 0 22px 44px -24px rgb(25 81 252 / .9); }
.tile.hot .k, .tile.hot .s { color: rgb(255 255 255 / .75); }
.tile.hot .v small { color: rgb(255 255 255 / .6); }
.spark { display: block; width: 100%; height: 60px; margin-top: 8px; overflow: visible; }
.sp-area { fill: rgb(255 255 255 / .14); }
.sp-line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-dot { fill: #fff; }
.spl { display: flex; justify-content: space-between; font-size: .66rem; color: rgb(255 255 255 / .7); text-transform: capitalize; margin-top: 4px; }
.spl span { flex: 1; text-align: center; }
.spl span:first-child { text-align: left; }
.spl span:last-child { text-align: right; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.mbar { display: block; height: 6px; border-radius: 99px; background: var(--bar-off); margin-top: 6px; overflow: hidden; }
.mbar b { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: growx .7s cubic-bezier(.2, .9, .3, 1) both; }
.delta.inl { display: inline; }
.stack { display: flex; gap: 3px; height: 12px; margin-top: 10px; }
.stack i { display: block; border-radius: 6px; min-width: 6px; transform-origin: left; animation: growx .7s cubic-bezier(.2, .9, .3, 1) both; }
.legend2 { display: grid; gap: 2px; margin-top: 10px; }
.legend2 button { display: flex; align-items: center; gap: 9px; min-height: 36px; font-size: .88rem; text-align: left; }
.legend2 i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend2 span { flex: 1; color: var(--ink-2); }
.legend2 b { font-weight: 700; }

/* ---------- Σύνοψη: διάταξη «Ροή» ---------- */
.flowhero { text-align: center; padding: 18px 0 6px; }
.fv { font-size: 3.4rem; font-weight: 300; letter-spacing: -.045em; line-height: 1.05; margin-top: 4px; }
.fv small { font-size: 1.5rem; color: var(--ink-3); letter-spacing: 0; }
.fsub { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.fsub b { color: var(--ink); font-weight: 650; }
.fstats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .84rem; color: var(--ink-3); }
.fstats b { color: var(--ink); font-weight: 650; margin-left: 3px; }
.fstats .neg b { color: var(--neg); }
.flist { display: grid; }
.frow { display: block; width: 100%; text-align: left; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.frow.plain { margin-top: 14px; border-bottom: 0; border-top: 1px solid var(--line); }
.fr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.frow .t { font-weight: 620; }
.fr-bar { display: block; height: 3px; border-radius: 99px; background: var(--bar-off); margin-top: 8px; overflow: hidden; }
.fr-bar b { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: growx .7s cubic-bezier(.2, .9, .3, 1) both; }
.feedday { margin-top: 12px; }
.feedday > p { font-size: .74rem; font-weight: 650; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin: 0 2px 2px; }
.feedday .row.split { padding: 0 2px; border-bottom: 1px solid var(--line); }
.fab { position: absolute; right: 20px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 26px); z-index: 6; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 16px 30px -10px rgb(47 109 245 / .9), inset 0 1px 0 rgb(255 255 255 / .35); transition: transform .14s; animation: pop .3s ease-out; }
.fab:active { transform: scale(.92); }
.fab .ic { width: 24px; height: 24px; }
body.typing .fab { display: none; }

/* Πιστωτική: όριο + πληρωμή statement */
.cinfo { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: .78rem; color: var(--ink-3); white-space: normal; }
.cinfo-l b { color: var(--ink-2); font-weight: 600; }
.cinfo.full { margin: 4px 0 12px; font-size: .84rem; }
.cbar { display: block; height: 4px; border-radius: 99px; background: var(--bar-off); overflow: hidden; }
.cbar b { display: block; height: 100%; border-radius: 99px; background: var(--neg); }

/* Οθόνη σύνδεσης (όταν υπάρχει server) */
html.locked #app { visibility: hidden; }
.lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--bg, #050b27); }
.lockbox { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; }
.lockbox h1 { font-size: 1.6rem; margin: 0; }
.lockerr { min-height: 1.2em; color: var(--neg); font-size: .85rem; margin: 0; }

/* Σκρολ: απαλή εξαφάνιση στο πάνω και στο κάτω άκρο αντί για απότομο κόψιμο */
#view:not(.chat) {
  -webkit-mask-image: linear-gradient(to bottom, transparent env(safe-area-inset-top), #000 calc(env(safe-area-inset-top) + 18px), #000 calc(100% - var(--tab-h) - env(safe-area-inset-bottom) - 44px), rgb(0 0 0 / .12) calc(100% - env(safe-area-inset-bottom) - 6px));
  mask-image: linear-gradient(to bottom, transparent env(safe-area-inset-top), #000 calc(env(safe-area-inset-top) + 18px), #000 calc(100% - var(--tab-h) - env(safe-area-inset-bottom) - 44px), rgb(0 0 0 / .12) calc(100% - env(safe-area-inset-bottom) - 6px));
}
body.typing #view:not(.chat) { -webkit-mask-image: none; mask-image: none; }
/* Το «+» κρύβεται όταν κατεβαίνεις και ξαναφαίνεται όταν ανεβαίνεις, για να μη σκεπάζει ποσά */
.fab { transition: transform .22s ease, opacity .22s ease; }
#app.fab-hide .fab { transform: translateY(24px) scale(.8); opacity: 0; pointer-events: none; }
.chip.strong { background: var(--accent); color: #fff; border-color: transparent; font-weight: 600; }

/* ---------- Modal v2: πιο καθαρά, μεγαλύτερα σημεία αφής, ξεκάθαρη ιεραρχία ---------- */
dialog#sheet {
  border-radius: 30px 30px 0 0; border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    radial-gradient(120% 60px at 50% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface) 96%, #000);
  box-shadow: 0 -18px 60px -20px rgb(0 0 0 / .55);
}
dialog#sheet::backdrop { background: rgb(3 8 30 / .55); backdrop-filter: blur(6px) saturate(1.1); }
.grab { width: 44px; height: 5px; background: color-mix(in srgb, var(--ink-3) 45%, transparent); margin-top: 9px; }
.sheet-head { min-height: 58px; padding-top: 2px; background: transparent; backdrop-filter: blur(10px); }
.sheet-head h2 { font-size: 1.28rem; letter-spacing: -.01em; }
.sheet-head .icon-btn { width: 34px; height: 34px; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink-2); }
.sheet-head .icon-btn .ic { width: 17px; height: 17px; }
.sheet-sub { margin: -6px 0 10px; line-height: 1.35; }
#sheet-body { padding: 0 20px 20px; }

/* Κάρτα-ήρωας με το βασικό ποσό */
.hero-card { margin: 4px 0 14px; padding: 16px 18px 14px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); }
.hero-card .eyebrow { margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.hero-card .big { margin: 4px 0 8px; font-size: 2.2rem; }
.hero-card .big.pos { color: var(--pos, #35d49a); }
.hero-card .prog { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.hero-card .prog b { display: block; height: 100%; border-radius: 99px; background: var(--pos, #35d49a); animation: growx .7s cubic-bezier(.2, .9, .3, 1) both; transform-origin: left; }
.hero-card .sub { margin: 8px 0 0; font-size: .82rem; color: var(--ink-2); }

/* Πεδία */
dialog#sheet .fld > span { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
dialog#sheet input[type=text], dialog#sheet input[type=date], dialog#sheet input[type=number], dialog#sheet select, dialog#sheet textarea {
  min-height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, var(--surface-2)); border: 1.5px solid var(--line);
}
dialog#sheet input:focus, dialog#sheet select:focus, dialog#sheet textarea:focus { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); }
.amount-wrap { position: relative; }
.amount-wrap .amount-in { padding-right: 46px; }
.amount-wrap::after { content: '€'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 650; color: var(--ink-3); pointer-events: none; }
dialog#sheet .amount-in { font-size: 1.9rem !important; min-height: 62px !important; }
dialog#sheet .amount-in::placeholder { font-weight: 500; opacity: .45; }
dialog#sheet .chips { gap: 8px; margin-top: 10px !important; }
dialog#sheet .chip { min-height: 34px; padding: 0 14px; font-size: .84rem; }
dialog#sheet .two { gap: 12px; }
dialog#sheet .effect { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); padding: 11px 14px; }

/* Κουμπιά: ένα κύριο, τα δευτερεύοντα σε σειρά και πιο ήσυχα */
dialog#sheet .form-actions { gap: 10px; margin-top: 14px; padding-top: 12px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface) 96%, #000) 22%); box-shadow: none; }
dialog#sheet .btn.primary { min-height: 52px; border-radius: 16px; font-size: 1rem; }
dialog#sheet .btn:not(.primary):not(.danger) { background: transparent; border-color: var(--line); min-height: 44px; color: var(--ink-2); font-weight: 600; }
.form-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-head { background: color-mix(in srgb, var(--surface) 92%, #000); }
.sheet-sub { margin: 0 0 12px; }

/* Διπλωμένες ενότητες */
.section-head h2 { margin: 0; }
.sec-t { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 0; margin: -4px 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; border-radius: 8px; }
.sec-t .chev { width: 16px; height: 16px; transition: transform .25s ease; }
.section.shut .sec-t .chev { transform: rotate(-90deg); }
.sec-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s ease, opacity .2s ease; }
.sec-in { min-height: 0; overflow: hidden; }
.section.shut .sec-body { grid-template-rows: 0fr; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sec-body, .sec-t .chev { transition: none; } }
.amount-wrap { display: block; }
.amount-wrap .amount-in { display: block; }
