/* Στυλ εμφάνισης «Δάσος» (σκούρο και ανοιχτό θέμα): ζεστό φόντο, κάρτα «ελεύθερα προς δαπάνη» με διαβάθμιση, στρογγυλές κάρτες, πλωτή μπάρα.
   Φορτώνεται μετά το styles.css και ενεργοποιείται από το html[data-skin]. Το «Κλασικό» δεν έχει data-skin. */

:root { --cav-l: 72%; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --cav-l: 38%; } }
:root[data-theme="light"] { --cav-l: 38%; }
:root[data-theme="dark"] { --cav-l: 72%; }

.cav { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: hsl(var(--h) 72% var(--cav-l)); background: color-mix(in srgb, hsl(var(--h) 80% 50%) 16%, var(--surface)); }
.cav .ic { width: 21px; height: 21px; }
.row .cav { margin-right: 2px; }

.rv-greet { margin: 0 0 2px; color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.rv-insight { display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .8rem; font-weight: 600; max-width: 100%; }
.rv-insight b { color: var(--ink); }
.rv-insight .ic { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* γράφημα πορείας υπολοίπου, που «ζωγραφίζεται» */
.spark { display: block; width: 100%; height: auto; margin: 14px auto 0; max-width: 340px; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: skinDraw 1.1s cubic-bezier(.3, .7, .3, 1) .15s forwards; }
.spark-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); opacity: 0; animation: skinFade .6s ease-out .85s forwards; }
.spark-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: skinPop .45s cubic-bezier(.3, 1.6, .5, 1) 1.05s forwards; }
@keyframes skinDraw { to { stroke-dashoffset: 0; } }
@keyframes skinFade { to { opacity: 1; } }
@keyframes skinPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* Κινήσεις: η είσοδος καρτέλας υπάρχει ήδη (#view.view-in). Εδώ μόνο το «πάτημα» με ελατήριο. */
.rv-act, .row, .tile, .btn, .chip, .icon-btn { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background-color .15s ease; }
.rv-act:active, .tile:active, .chip:active { transform: scale(.94); }
.btn:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .spark-line, .spark-area, .spark-dot { animation: none !important; opacity: 1; stroke-dashoffset: 0; transform: none; }
  .rv-act, .row, .tile, .btn, .chip, .icon-btn { transition: none; }
}

/* ===== Αρχική «Νέο» ===== */
html[data-skin] .card, html[data-skin] .rv-card { border: 0; box-shadow: var(--shadow); border-radius: 26px; }
html[data-skin] .top h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
html[data-skin] .btn.primary, html[data-skin] dialog#sheet .btn.primary { background: var(--dark); color: var(--on-dark); border-radius: 999px; min-height: 50px; }
html[data-skin] .btn { border-radius: 999px; }
html[data-skin] .seg { border-radius: 999px; background: var(--surface-2); border: 0; padding: 3px; }
html[data-skin] .seg button, html[data-skin] .seg span { border-radius: 999px; }
html[data-skin] .seg button[aria-pressed="true"], html[data-skin] .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .16); }
html[data-skin] #view { padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); }

@keyframes auBar { from { transform: scaleY(.15); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.au-tip { margin-top: 14px; padding: 16px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.au-tip .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--accent-soft); color: var(--ink); }
.au-tip .tag .ic { width: 14px; height: 14px; color: var(--accent); }
.au-tip p { margin: 12px 2px 14px; font-size: 1rem; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.au-tip .btns { display: flex; gap: 8px; }
.au-tip .btn { flex: 1; min-height: 46px; font-size: .9rem; }
.au-tip .btn.ghost { background: var(--surface-2); color: var(--ink); }

/* Πλωτή κάτω μπάρα σε σχήμα κάψουλας */
html[data-skin] .tabbar { left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 66px; padding: 0 8px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 18px 36px -16px rgb(10 14 30 / .45), 0 0 0 .5px var(--line); }
html[data-skin] .tab-ind { display: block; top: 8px; bottom: 8px; left: 8px; width: calc((100% - 16px) / 5); border-radius: 999px; background: var(--dark); }
html[data-skin] .tabbar a { color: var(--ink-3); font-size: 0; gap: 0; }
html[data-skin] .tabbar a .ic { width: 24px; height: 24px; }
html[data-skin] .tabbar a[aria-current="page"] { color: var(--on-dark); }
html[data-skin] .tabbar a[aria-current="page"] .ic { transform: scale(1.05); }
html[data-skin] .tabbar a.tab-main:not([aria-current="page"]) .ic { color: inherit; background: none; width: 24px; height: 24px; padding: 0; margin: 0; box-shadow: none; border-radius: 0; }
html[data-skin] .tabbar a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Κάρτα υπολοίπου με κάψουλα εσόδων/εξόδων ---- */

/* ---- Κουμπιά ενεργειών ---- */

/* ---- Οριζόντιες κάρτες προόδου ---- */
.au-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px calc(var(--gap) * -1) 0; padding: 2px var(--gap) 4px; scrollbar-width: none; }
.au-cards::-webkit-scrollbar { display: none; }
.au-card { flex: 0 0 168px; scroll-snap-align: start; min-height: 176px; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.au-card .t { font-weight: 700; font-size: .95rem; }
.au-card .d { color: var(--ink-3); font-size: .78rem; line-height: 1.35; flex: 1; }
.au-card .go { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; font-size: .85rem; }
.au-card .go .ic { width: 18px; height: 18px; }
.au-card.ring { align-items: center; text-align: center; }
.au-card.ring .t { align-self: flex-start; }
.au-card .n { font-weight: 700; font-size: .88rem; }
.au-card .m { color: var(--ink-3); font-size: .74rem; margin-top: -4px; }
.au-card.add { flex-basis: 120px; align-items: center; justify-content: center; background: transparent; box-shadow: none; border: 1.5px dashed var(--ink-3); color: var(--ink-2); font-weight: 650; font-size: .85rem; text-align: center; }
.au-card .plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.au-ring { width: 84px; height: 84px; }
.au-ring .trk { fill: none; stroke: var(--bar-off); stroke-width: 7; }
.au-ring .arc { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dashoffset: var(--off); animation: auArc 1s cubic-bezier(.3, .7, .3, 1) .15s both; }
.au-ring text { fill: var(--ink); font-size: 15px; font-weight: 750; }
@keyframes auArc { from { stroke-dashoffset: var(--full); } to { stroke-dashoffset: var(--off); } }

/* ---- Λίστες ---- */

.au-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; min-height: 60px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; border-radius: 16px; transition: background-color .15s ease, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.au-row:active { background: var(--surface-2); transform: scale(.985); }
.au-row .grow { flex: 1; min-width: 0; display: grid; }
.au-row b { font-weight: 650; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-row small { color: var(--ink-3); font-size: .78rem; }
.au-row .num { font-weight: 700; font-size: .96rem; white-space: nowrap; }
.au-row .neg { color: var(--neg); }
.au-row .pos { color: var(--pos); }
.au-row > .ic:last-child { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.au-row .aic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.au-row .aic .ic { width: 21px; height: 21px; }

html[data-skin] .au-tip, html[data-skin] .au-card { box-shadow: var(--shadow), 0 0 0 .5px var(--line); }

/* ===== Δάσος και Μονό: παλέτες =====
   Παλέτα «Δάσος» (σύστημα στρωμάτων, όπως στο Apple): ουδέτερα με ελαφριά πράσινη απόχρωση και ΕΝΑΣ τόνος.
   Στρώματα:  bg (φόντο) < surface (κάρτα) < surface-2 (γέμισμα μέσα στην κάρτα: πεδία, πλακίδια, καρτέλες).
   Φωτεινό:   bg #ecf0ea · surface #f8faf7 · surface-2 #e4ebe2 · ink #16201a / #445149 / #5a6860 · τόνος #4f7d0e (λευκό κείμενο, 4.9:1)
   Σκούρο:    bg #141516 · surface #1f2123 · surface-2 #2b2e30 · ink #eceeec / #bfc4c0 / #8f9692 · τόνος lime #b8e553 (σκούρο κείμενο, 12.5:1)
   Σταθερό «chrome» και στα δύο θέματα: ανθρακί #1f2224 με lime #b8e553 (κάτω μπάρα, πάνω πάνελ αρχικής).
   Σημασιολογικά: θετικό #17703f / #7de3a6 · αρνητικό #b8352c / #ff9087. Όλα τα ζεύγη κειμένου ≥ 4.5:1. */
html[data-skin="forest"] { --bg: #141516; --bg-glow: transparent; --surface: #1f2123; --surface-2: #2b2e30; --line: rgb(255 255 255 / .09); --ink: #eceeec; --ink-2: #bfc4c0; --ink-3: #8f9692; --accent: var(--lime, #b8e553); --accent-2: var(--lime, #8fc23a); --accent-soft: rgb(184 229 83 / .15); --pos: #7de3a6; --neg: #ff9087; --bar-off: rgb(255 255 255 / .12); --sheet-bg: #1f2123; --shadow: none; --dark: #2f3234; --on-dark: #f0f1f0; --hero: linear-gradient(160deg, #1c3b2c, #2c5a3f); --r: 28px; --r-sm: 18px; --font: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
html[data-skin="forest"][data-theme="light"] { --bg: #ecf0ea; --surface: #f8faf7; --surface-2: #e4ebe2; --line: rgb(30 60 40 / .11); --ink: #16201a; --ink-2: #445149; --ink-3: #5a6860; --accent: #4f7d0e; --accent-2: #3e6409; --accent-soft: rgb(79 125 14 / .12); --pos: #17703f; --neg: #b8352c; --bar-off: rgb(20 34 26 / .13); --sheet-bg: #f8faf7; --shadow: 0 1px 2px rgb(30 60 40 / .05), 0 16px 30px -22px rgb(30 60 40 / .28); --dark: #1f3a2d; --on-dark: #e8f0ea; --hero: linear-gradient(160deg, #1c3b2c, #2c5a3f); }
@media (prefers-color-scheme: light) { html[data-skin="forest"]:not([data-theme="dark"]) { --bg: #ecf0ea; --surface: #f8faf7; --surface-2: #e4ebe2; --line: rgb(30 60 40 / .11); --ink: #16201a; --ink-2: #445149; --ink-3: #5a6860; --accent: #4f7d0e; --accent-2: #3e6409; --accent-soft: rgb(79 125 14 / .12); --pos: #17703f; --neg: #b8352c; --bar-off: rgb(20 34 26 / .13); --sheet-bg: #f8faf7; --shadow: 0 1px 2px rgb(30 60 40 / .05), 0 16px 30px -22px rgb(30 60 40 / .28); --dark: #1f3a2d; --on-dark: #e8f0ea; --hero: linear-gradient(160deg, #1c3b2c, #2c5a3f); } }
html[data-skin="forest"][data-theme="dark"] { --bg: #141516; --bg-glow: transparent; --surface: #1f2123; --surface-2: #2b2e30; --line: rgb(255 255 255 / .09); --ink: #eceeec; --ink-2: #bfc4c0; --ink-3: #8f9692; --accent: var(--lime, #b8e553); --accent-2: var(--lime, #8fc23a); --accent-soft: rgb(184 229 83 / .15); --pos: #7de3a6; --neg: #ff9087; --bar-off: rgb(255 255 255 / .12); --sheet-bg: #1f2123; --shadow: none; --dark: #2f3234; --on-dark: #f0f1f0; --hero: linear-gradient(160deg, #1c3b2c, #2c5a3f); }

/* ===== Δάσος ===== */
html[data-skin="forest"] .tabbar { background: color-mix(in srgb, #1d1f21 92%, transparent); }
html[data-skin="forest"] .tab-ind { background: var(--lime, #b8e553); }
html[data-skin="forest"] .tabbar a { color: #a3a8a5; }
html[data-skin="forest"] .tabbar a[aria-current="page"] { color: var(--on-lime, #12281e); }
html[data-skin="forest"] .btn.primary, html[data-skin="forest"] dialog#sheet .btn.primary { background: var(--accent); color: var(--on-lime, #12281e); }

.fo-top { margin: 4px calc(var(--gap) * -1) 0; padding: 14px var(--gap) 18px; border-radius: 0 0 34px 34px; color: #e8f0ea; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lime, #b8e553) 24%, #161819) 0%, transparent 52%), linear-gradient(180deg, #161819 0%, #1f2325 100%); }
.fo-bar { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.fo-bar b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.fo-top .icon-btn { background: rgb(255 255 255 / .1); color: #e8f0ea; width: 40px; height: 40px; border-radius: 50%; }
.fo-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 12px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.fo-seg button { min-height: 38px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: #b0b5b2; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.fo-seg button[aria-pressed="true"] { background: var(--lime, #b8e553); color: #11261b; }
.fo-seg button:active { transform: scale(.95); }
.fo-lbl { margin: 18px 0 0; text-align: center; color: #b0b5b2; font-size: .86rem; font-weight: 600; }
.fo-d.up { color: #ffb4a8; } .fo-d.dn { color: var(--lime, #b8e553); }
.fo-big { margin: 4px 0 0; text-align: center; font-size: 2.7rem; font-weight: 780; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fo-chart { position: relative; height: 150px; margin-top: 14px; touch-action: pan-y; cursor: crosshair; }
.fo-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: left center; animation: foGrow .9s cubic-bezier(.3, .7, .3, 1) both; }
.fo-svg path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fo-svg .cur { stroke: var(--lime2, #c7f25f); }
.fo-svg .prev { stroke: #2fae7d; opacity: .9; }
@keyframes foGrow { from { transform: scaleX(.02); opacity: 0; } to { transform: none; opacity: 1; } }
.fo-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgb(255 255 255 / .28); transform: translateX(-.5px); pointer-events: none; }
.fo-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--lime, #b8e553); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 6px rgb(184 229 83 / .18); }
.fo-bubble { position: absolute; transform: translate(var(--shift, -50%), -170%); padding: 5px 10px; border-radius: 12px; background: var(--lime, #b8e553); color: #11261b; white-space: nowrap; pointer-events: none; display: grid; text-align: center; line-height: 1.15; }
.fo-bubble b { font-size: .86rem; font-weight: 800; } .fo-bubble small { font-size: .66rem; font-weight: 650; opacity: .8; }
.fo-axis { display: flex; justify-content: space-between; margin-top: 8px; color: #8fa99a; font-size: .7rem; font-weight: 600; }
.fo-legend { display: flex; justify-content: center; gap: 18px; margin-top: 10px; color: #b0b5b2; font-size: .74rem; font-weight: 600; }
.fo-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.fo-legend .c { background: var(--lime2, #c7f25f); } .fo-legend .p { background: #2fae7d; }
.fo-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 0; }
.fo-act { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); font: inherit; font-size: .72rem; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: var(--shadow), 0 0 0 .5px var(--line); }
.fo-act .ic { width: 22px; height: 22px; color: var(--accent); }
.fo-act:active { transform: scale(.95); }

.fo-day { margin: 8px 4px 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fo-day:first-of-type { border-top: 0; }
@media (prefers-reduced-motion: reduce) { .fo-svg { animation: none; } }

/* ===== Μονό ===== */

/* ===== Δάσος ως Σύνοψη ===== */
.fo-hello { display: grid; line-height: 1.15; }
.fo-hello small { color: #b0b5b2; font-size: .8rem; font-weight: 600; }
.fo-hello b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.fo-fc { margin: 6px 0 0; text-align: center; color: #b0b5b2; font-size: .82rem; }
.fo-fc b { color: #e8f0ea; font-weight: 700; }
.fo-svg .fc { stroke: #2fae7d; stroke-dasharray: 5 6; opacity: .95; }
.fo-svg .cur { stroke: var(--lime2, #c7f25f); }
.fo-today { position: absolute; top: 8px; bottom: 0; width: 0; border-left: 1px dashed rgb(255 255 255 / .22); pointer-events: none; }
.fo-axis { position: relative; }
.fo-axis .t { position: absolute; transform: translateX(-50%); color: var(--lime2, #c7f25f); }

/* ===== Τμήματα που σέρνονται και μαζεύονται ===== */
.fo-glass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 22px; background: rgb(255 255 255 / .08); }
.fo-glass span { display: grid; gap: 2px; min-width: 0; }
.fo-glass small { color: #b0b5b2; font-size: .7rem; font-weight: 600; }
.fo-glass b { color: #e8f0ea; font-size: .98rem; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fo-glass .neg b { color: #ffb4a8; }
html[data-skin="forest"] .fo-top { padding-bottom: 16px; }
.hb { display: grid; }
.hb-sec { position: relative; margin-top: 14px; padding: 6px 12px 4px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); transition: box-shadow .2s ease; }
.hb-sec.dragging { z-index: 5; transition: none; box-shadow: 0 24px 40px -18px rgb(0 0 0 / .5), 0 0 0 1.5px var(--accent); opacity: .97; }
body.hb-dragging { user-select: none; -webkit-user-select: none; }
.hb-head { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.hb-grip { width: 34px; height: 40px; flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: grab; touch-action: none; border-radius: 12px; margin-left: -6px; }
.hb-grip .ic { width: 20px; height: 20px; }
.hb-grip:active { cursor: grabbing; color: var(--accent); background: var(--accent-soft); }
.hb-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hb-title h2 { font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.hb-count { padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .74rem; font-weight: 700; }
.hb-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); margin-left: auto; }
.hb-sec.closed .hb-chev { transform: rotate(-90deg); }
.hb-head > .link { flex: none; padding: 0 4px; }
.hb-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s cubic-bezier(.3, .8, .3, 1); }
.hb-in { overflow: hidden; min-height: 0; padding-bottom: 6px; transition: opacity .2s ease; }
.hb-sec.closed .hb-body { grid-template-rows: 0fr; }
.hb-sec.closed .hb-in { opacity: 0; padding-bottom: 0; }
.hb-sec .au-cards { margin: 0; padding: 2px 0 8px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; scroll-padding-inline: 0; }
.hb-sec .au-cards.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hb-sec .au-card { scroll-snap-align: start; }
.hb-sec .au-card:last-child { margin-right: 2px; }
.hb-sec .au-card { box-shadow: none; background: var(--surface-2); }
.hb-sec .au-card.add { background: transparent; }

.hb-sec .fo-seg { background: var(--surface-2); }
.hb-sec .fo-seg button { color: var(--ink-2); }
.hb-sec .fo-seg button[aria-pressed="true"] { background: var(--accent); color: #11261b; }

.hb-sec .fo-chart { margin-top: 12px; }
.hb-sec .fo-axis, .hb-sec .fo-legend { color: var(--ink-3); }
.hb-sec .fo-d.up { color: var(--neg); } .hb-sec .fo-d.dn { color: var(--pos); }
.hb-sec .fo-svg .cur { stroke: var(--accent); } .hb-sec .fo-svg .fc { stroke: var(--pos); }
.hb-sec .fo-axis .t { color: var(--accent); }
.hb-sec .fo-legend .c { background: var(--accent); } .hb-sec .fo-legend .p { background: var(--pos); }
.hb-sec .fo-vline { background: var(--line); }
.hb-tip { margin: 2px 4px 12px; font-size: .98rem; font-weight: 650; line-height: 1.35; }
.hb-sec .au-tip { margin: 0; padding: 0; box-shadow: none; background: none; }
@media (prefers-reduced-motion: reduce) { .hb-body, .hb-in, .hb-chev, .hb-sec { transition: none; } }

/* Επιλογέας διαστήματος και στατιστικά γραφήματος */
.hb-sec .fo-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); }
.hb-sec .fo-seg button { min-height: 36px; padding: 0 4px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-3); font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.hb-sec .fo-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 750; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 .5px var(--line); }
.hb-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.hb-stats > div { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.hb-stats small { color: var(--ink-3); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hb-stats b { font-size: 1.12rem; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-stats em { color: var(--ink-3); font-size: .7rem; font-style: normal; line-height: 1.25; }
.hb-stats .pos { color: var(--pos); } .hb-stats .neg { color: var(--neg); }

/* Απαλά χρώματα για στατιστικά, γράφημα και κάρτες */
.hb-stats > div { background: var(--surface-2); }
.hb-stats > div:has(.neg) { background: color-mix(in srgb, var(--neg) 9%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--neg) 18%, transparent); }
.hb-stats > div:has(.pos) { background: color-mix(in srgb, var(--pos) 10%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--pos) 20%, transparent); }
.hb-stats .neg { color: color-mix(in srgb, var(--neg) 82%, var(--ink)); }
.hb-stats .pos { color: color-mix(in srgb, var(--pos) 85%, var(--ink)); }
.hb-stats small, .hb-stats em { color: color-mix(in srgb, var(--ink-3) 85%, var(--ink)); }
.hb-sec .fo-svg .cur { stroke: color-mix(in srgb, var(--accent) 55%, var(--ink)); stroke-width: 2.6; }
.hb-sec .fo-svg .fc { stroke: #d99a3d; stroke-width: 2.2; }
.hb-sec .fo-legend .c { background: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.hb-sec .fo-legend .p { background: #d99a3d; }
.hb-sec .fo-axis .t { color: color-mix(in srgb, var(--accent) 60%, var(--ink)); }
.hb-sec .au-card:not(.add) { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 16%, transparent); }
.hb-sec .au-card.add { border-color: color-mix(in srgb, var(--accent) 40%, var(--ink-3)); }

/* ===== Σελίδες και παράθυρα στο ίδιο στυλ με την αρχική (όλα τα νέα στυλ) ===== */
html[data-skin] { --on-accent: #fff; --soft: color-mix(in srgb, var(--accent) 7%, var(--surface)); --soft-line: color-mix(in srgb, var(--accent) 15%, transparent); }
html[data-skin="forest"][data-theme="dark"] { --on-accent: #12281e; }
@media (prefers-color-scheme: dark) { html[data-skin="forest"]:not([data-theme="light"]) { --on-accent: #12281e; } }

/* Τίτλος σελίδας */
html[data-skin] .top { min-height: 54px; margin-bottom: 6px; }
html[data-skin] .top h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
html[data-skin] .top .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); color: var(--ink); }

/* Επιλογείς (καρτέλες) */
html[data-skin] .seg { gap: 2px; padding: 3px; margin-top: 6px; border: 0; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); }
html[data-skin] .seg span, html[data-skin] .seg button { min-height: 38px; border-radius: 13px; font-size: .84rem; font-weight: 600; color: var(--ink-3); }
html[data-skin] .seg input:checked + span, html[data-skin] .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 750; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 .5px var(--line); }

/* Κάρτες και λίστες */
html[data-skin] .card, html[data-skin] .fold, html[data-skin] .tile, html[data-skin] .stat, html[data-skin] .calendar { border: 0; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); }
html[data-skin] .fold { margin-top: 12px; }
html[data-skin] .fold > summary { min-height: 52px; padding: 0 16px; }
html[data-skin] .fold > summary .ttl { font-weight: 750; letter-spacing: -.01em; }
html[data-skin] .fold-body { border-top: .5px solid var(--line); }
html[data-skin] .list > * + * { border-top: .5px solid var(--line); }
html[data-skin] .row { padding: 10px 16px; min-height: 58px; }
html[data-skin] .row.split { padding: 0 16px; }
html[data-skin] .row .t, html[data-skin] .row-main .t { font-weight: 650; letter-spacing: -.01em; }
html[data-skin] .row .s, html[data-skin] .row-main .s { margin-top: 1px; color: var(--ink-3); }
html[data-skin] .row .grow > b, html[data-skin] .row .grow > small { display: block; }
html[data-skin] .row .grow > small { margin-top: 1px; font-size: .8rem; color: var(--ink-3); white-space: normal; }
html[data-skin] .empty { padding: 32px 22px; }
html[data-skin] .empty b { font-size: 1.05rem; font-weight: 750; }
html[data-skin] .card .list, html[data-skin] .card.list { border-radius: inherit; }

/* Επικεφαλίδες ενοτήτων */
html[data-skin] .section-head { margin: 4px 4px 8px; align-items: center; }
html[data-skin] .section-head h2, html[data-skin] .ngh h3 { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
html[data-skin] .ngh { margin: 14px 6px 8px; align-items: center; }
html[data-skin] .ngh span { font-size: .8rem; }
html[data-skin] .ngh b.neg { color: color-mix(in srgb, var(--neg) 82%, var(--ink)); } html[data-skin] .ngh b.pos { color: color-mix(in srgb, var(--pos) 85%, var(--ink)); }

/* Περίληψη 30 ημερών, ειδοποίηση, στατιστικά */
html[data-skin] .nextsum { margin: 12px 0 0; padding: 12px 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
html[data-skin] .nextsum .lbl { color: var(--ink-3); }
html[data-skin] .nextsum b.neg { color: color-mix(in srgb, var(--neg) 82%, var(--ink)); } html[data-skin] .nextsum b.pos { color: color-mix(in srgb, var(--pos) 85%, var(--ink)); }
html[data-skin] .page-alert { margin: 12px 0 0; padding: 12px 16px; border-radius: 20px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--warn) 30%, transparent); }
html[data-skin] .stats2 { gap: 10px; margin-top: 12px; }
html[data-skin] .stats2 .stat { padding: 14px 16px; border-radius: 22px; }
html[data-skin] .stats2 .stat:has(.pos) { background: color-mix(in srgb, var(--pos) 10%, var(--surface)); }
html[data-skin] .stats2 .stat:has(.neg) { background: color-mix(in srgb, var(--neg) 9%, var(--surface)); }
html[data-skin] .stats2 .stat .lbl { margin: 0 0 4px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html[data-skin] .stat .amt { font-weight: 780; letter-spacing: -.02em; }
html[data-skin] .stat .pos { color: color-mix(in srgb, var(--pos) 85%, var(--ink)); } html[data-skin] .stat .neg { color: color-mix(in srgb, var(--neg) 82%, var(--ink)); }
html[data-skin] .num.neg, html[data-skin] .row .neg { color: color-mix(in srgb, var(--neg) 85%, var(--ink)); }

/* Ημερολόγιο */
html[data-skin] .calendar { padding: 14px 10px 10px; gap: 2px; }
html[data-skin] .cal-wd { padding-bottom: 8px; font-weight: 600; letter-spacing: .04em; }
html[data-skin] .cal-day { min-height: 48px; border-radius: 16px; font-weight: 600; }
html[data-skin] .cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
html[data-skin] .cal-day.today .n { color: var(--ink); font-weight: 800; }
html[data-skin] .cal-day[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); box-shadow: 0 10px 18px -12px rgb(0 0 0 / .6); }
html[data-skin] .cal-day[aria-pressed="true"].today .n { color: var(--on-dark); }
html[data-skin] .cal-day[aria-pressed="true"] .cd { background: var(--on-dark); box-shadow: none; }
html[data-skin] .cal-day[aria-pressed="true"] .cd.hollow { background: transparent; box-shadow: inset 0 0 0 1.5px var(--on-dark); }
html[data-skin] .cd { width: 6px; height: 6px; }
html[data-skin] .cd.out { background: color-mix(in srgb, var(--neg) 80%, var(--ink-3)); }
html[data-skin] .cd.in { background: color-mix(in srgb, var(--pos) 85%, var(--ink-3)); }
html[data-skin] .callegend { margin: 12px 6px 0; gap: 14px; }
html[data-skin] .calsum { margin-top: 4px; }
html[data-skin] .calhead { margin: 10px 2px 2px; }
html[data-skin] .calhead .icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }

/* Χρονολόγιο και λίστες στο παράθυρο λεπτομερειών */
html[data-skin] .tl-row { border: 0; border-radius: 18px; background: var(--surface-2); }
html[data-skin] .tl-dot.now { background: var(--accent); }

/* ===== Παράθυρα (modals) ===== */
html[data-skin] dialog#sheet { background: var(--sheet-bg, var(--surface)); border: 0; border-radius: 32px 32px 0 0; box-shadow: 0 -24px 60px -24px rgb(0 0 0 / .55), 0 0 0 .5px var(--line); }
html[data-skin] dialog#sheet::backdrop { background: color-mix(in srgb, #06140d 62%, transparent); backdrop-filter: blur(8px) saturate(1.05); }
html[data-skin] .grab { width: 40px; height: 5px; margin-top: 10px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
html[data-skin] .sheet-head { min-height: 62px; background: transparent; backdrop-filter: none; }
html[data-skin] .sheet-head h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
html[data-skin] .sheet-head .icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
html[data-skin] .sheet-sub { color: var(--ink-3); }
html[data-skin] dialog#sheet .fld > span { margin-bottom: 7px; font-size: .72rem; font-weight: 650; letter-spacing: .05em; color: var(--ink-3); }
html[data-skin] dialog#sheet input[type=text], html[data-skin] dialog#sheet input[type=date], html[data-skin] dialog#sheet input[type=number], html[data-skin] dialog#sheet input[type=password], html[data-skin] dialog#sheet select, html[data-skin] dialog#sheet textarea { min-height: 50px; border: 0; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); }
html[data-skin] dialog#sheet input:focus, html[data-skin] dialog#sheet select:focus, html[data-skin] dialog#sheet textarea:focus { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--accent); outline: 0; }
html[data-skin] dialog#sheet .amount-in { font-weight: 800; letter-spacing: -.03em; }
html[data-skin] dialog#sheet .chip { min-height: 36px; padding: 0 15px; border: 0; background: var(--surface-2); color: var(--ink-2); font-weight: 600; box-shadow: inset 0 0 0 .5px var(--line); }
html[data-skin] dialog#sheet .chip[aria-pressed="true"], html[data-skin] dialog#sheet .chip.on, html[data-skin] dialog#sheet .chip.strong { background: var(--accent); color: var(--on-accent); box-shadow: none; }
html[data-skin] dialog#sheet .effect { border: 0; border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 .5px var(--soft-line); }
html[data-skin] .hero-card { padding: 18px 20px 16px; border: 0; border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface-2)), var(--surface-2)); box-shadow: inset 0 0 0 .5px var(--soft-line); }
html[data-skin] .hero-card .big { font-weight: 800; letter-spacing: -.04em; }
html[data-skin] .hero-card .big.pos { color: color-mix(in srgb, var(--pos) 85%, var(--ink)); }
html[data-skin] .hero-card .prog b { background: var(--accent); }
html[data-skin] dialog#sheet .tile { border-radius: 20px; background: var(--surface-2); box-shadow: none; }
html[data-skin] dialog#sheet .card, html[data-skin] dialog#sheet .fold { background: var(--surface-2); box-shadow: none; border-radius: 22px; }
html[data-skin] dialog#sheet .form-actions { background: linear-gradient(to top, var(--sheet-bg, var(--surface)) 78%, transparent); padding-top: 14px; }
html[data-skin] dialog#sheet .btn { min-height: 50px; border-radius: 16px; font-weight: 700; }
html[data-skin] dialog#sheet .btn:not(.primary):not(.danger) { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--line); }
html[data-skin] .btn.primary { background: var(--dark); color: var(--on-dark); }
html[data-skin="forest"] .btn.primary, html[data-skin="forest"] dialog#sheet .btn.primary { background: var(--accent); color: var(--on-accent); }

/* Επαναλαμβανόμενες πληρωμές που βρέθηκαν */
html[data-skin] .recfound { padding: 16px 16px 6px; }
html[data-skin] .recfound .section-head { margin: 0 0 4px; }
html[data-skin] .recfound .hint { margin: 0 0 6px !important; }
html[data-skin] .recfound .row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 10px; padding: 12px 0; }
html[data-skin] .recfound .row .grow { grid-column: 1; grid-row: 1; }
html[data-skin] .recfound .row .num { grid-column: 2 / 4; grid-row: 1; justify-self: end; font-weight: 750; }
html[data-skin] .recfound .row .btn { grid-column: 1 / 3; grid-row: 2; justify-self: start; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 .5px var(--soft-line); font-size: .82rem; }
html[data-skin] .recfound .row .iconbtn { grid-column: 3; grid-row: 2; justify-self: end; }

/* Επιλογές στο παράθυρο «Προσθήκη» και μικρά εικονίδια ενεργειών */
html[data-skin] .choices { gap: 8px; margin-top: 4px; }
html[data-skin] .choice { gap: 14px; padding: 13px 16px 13px 14px; border: 0; border-radius: 22px; background: var(--surface-2); box-shadow: none; }
html[data-skin] .choice:active { background: var(--soft); }
html[data-skin] .choice b { font-weight: 700; letter-spacing: -.01em; }
html[data-skin] .choice .qi, html[data-skin] .tile .qi { width: 42px; height: 42px; border-radius: 14px; background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 .5px var(--soft-line); }
html[data-skin="forest"][data-theme="light"] .choice .qi, html[data-skin="forest"][data-theme="light"] .tile .qi { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
html[data-skin] .choice > .ic { color: var(--ink-3); }

/* Επαναλαμβανόμενες πληρωμές που βρέθηκαν */
html[data-skin] .recfound { padding: 16px 16px 6px; }
html[data-skin] .recfound .section-head { margin: 0 0 4px; }
html[data-skin] .recfound .hint { margin: 0 0 6px !important; }
html[data-skin] .recfound .row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 10px; padding: 12px 0; }
html[data-skin] .recfound .row .grow { grid-column: 1; grid-row: 1; }
html[data-skin] .recfound .row .num { grid-column: 2 / 4; grid-row: 1; justify-self: end; font-weight: 750; }
html[data-skin] .recfound .row .btn { grid-column: 1 / 3; grid-row: 2; justify-self: start; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 .5px var(--soft-line); font-size: .82rem; }
html[data-skin] .recfound .row .iconbtn { grid-column: 3; grid-row: 2; justify-self: end; }

/* Επιλογές στο παράθυρο «Προσθήκη» και μικρά εικονίδια ενεργειών */
html[data-skin] .choices { gap: 8px; margin-top: 4px; }
html[data-skin] .choice { gap: 14px; padding: 13px 16px 13px 14px; border: 0; border-radius: 22px; background: var(--surface-2); box-shadow: none; }
html[data-skin] .choice:active { background: var(--soft); }
html[data-skin] .choice b { font-weight: 700; letter-spacing: -.01em; }
html[data-skin] .choice .qi, html[data-skin] .tile .qi { width: 42px; height: 42px; border-radius: 14px; background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 .5px var(--soft-line); }
html[data-skin="forest"][data-theme="light"] .choice .qi, html[data-skin="forest"][data-theme="light"] .tile .qi { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
html[data-skin] .choice > .ic { color: var(--ink-3); }

/* Μεγάλα πεδία (εισαγωγή ποσού, φόρμες, κάρτες μέσα σε τμήματα): ανοιχτό πρασινωπό γκρι, ευδιάκριτο πάνω στο φύλλο */
html[data-skin="forest"][data-theme="light"] dialog#sheet input[type=text], html[data-skin="forest"][data-theme="light"] dialog#sheet input[type=date], html[data-skin="forest"][data-theme="light"] dialog#sheet input[type=number], html[data-skin="forest"][data-theme="light"] dialog#sheet select, html[data-skin="forest"][data-theme="light"] dialog#sheet textarea { background: #e1eae0; box-shadow: inset 0 0 0 1px rgb(50 90 60 / .13); }
html[data-skin="forest"][data-theme="light"] dialog#sheet input:focus, html[data-skin="forest"][data-theme="light"] dialog#sheet select:focus, html[data-skin="forest"][data-theme="light"] dialog#sheet textarea:focus { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--accent); }
html[data-skin="forest"][data-theme="light"] .hb-sec .au-card:not(.add) { background: #e1eae0; box-shadow: inset 0 0 0 .5px rgb(50 90 60 / .13); }
html[data-skin="forest"][data-theme="light"] .seg, html[data-skin="forest"][data-theme="light"] .hb-sec .fo-seg { background: #dde7dc; }

@media (prefers-color-scheme: light) {
html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet input[type=text], html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet input[type=date], html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet input[type=number], html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet select, html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet textarea { background: #e1eae0; box-shadow: inset 0 0 0 1px rgb(50 90 60 / .13); }
html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet input:focus, html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet select:focus, html[data-skin="forest"]:not([data-theme="dark"]) dialog#sheet textarea:focus { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--accent); }
html[data-skin="forest"]:not([data-theme="dark"]) .hb-sec .au-card:not(.add) { background: #e1eae0; box-shadow: inset 0 0 0 .5px rgb(50 90 60 / .13); }
html[data-skin="forest"]:not([data-theme="dark"]) .seg, html[data-skin="forest"]:not([data-theme="dark"]) .hb-sec .fo-seg { background: #dde7dc; }
}

/* Παράθυρο πληρωμής: καθαρή κάρτα ποσού, κύριο κουμπί, τρεις μικρές ενέργειες δίπλα-δίπλα */
html[data-skin] .icon-btn:focus:not(:focus-visible), html[data-skin] dialog#sheet button:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
html[data-skin] .hero-card { position: relative; margin: 2px 0 16px; padding: 20px 22px 18px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); overflow: hidden; }
html[data-skin] .hero-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .9; }
html[data-skin] .hero-card .eyebrow { display: inline-block; margin-bottom: 2px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); font-size: .68rem; letter-spacing: .06em; }
html[data-skin] .hero-card .big { margin: 10px 0 10px; font-size: 2.6rem; line-height: 1; }
html[data-skin] .hero-card .sub { margin: 4px 0 0; color: var(--ink-2); font-size: .84rem; }
html[data-skin] .hero-card .sub b { color: var(--ink); }
html[data-skin] .hero-card .link { color: var(--accent); font-weight: 700; }
html[data-skin] dialog#sheet #f > .fld:first-child { margin-top: 0; }
html[data-skin] dialog#sheet .form-actions { margin-top: 14px; padding: 0 0 4px; background: none; position: static; }
html[data-skin] .acts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
html[data-skin] .acts3 .tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 14px 6px 12px; min-height: 92px; border-radius: 20px; background: var(--surface-2); text-align: center; font-size: .76rem; font-weight: 650; line-height: 1.2; color: var(--ink); box-shadow: inset 0 0 0 .5px var(--line); }
html[data-skin] .acts3 .tile .qi { width: 40px; height: 40px; margin: 0; border-radius: 50%; }
html[data-skin] .acts3 .tile:active { background: var(--soft); }
html[data-skin] .acts3 { border: 0; background: none; border-radius: 0; overflow: visible; }
html[data-skin] .acts3 .tile + .tile { border-top: 0; }

html[data-skin] dialog#sheet:focus { outline: 0; }

/* Επιλογή χρωμάτων στις Ρυθμίσεις */
.pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.pal-b { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: .72rem; font-weight: 600; box-shadow: inset 0 0 0 .5px var(--line); cursor: pointer; }
.pal-b[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); background: var(--soft, var(--surface-2)); }
.pal-sw { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 0 0 .5px var(--line); }
.pal-sw i { display: block; }
.colpick { margin-top: 12px; }
.colpick input[type=color], #colAcc, #colTint { width: 100%; height: 52px; padding: 4px; border: 0; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 12px; }
input[type=color]::-moz-color-swatch { border: 0; border-radius: 12px; }
#colMix { width: 100%; accent-color: var(--accent); height: 34px; }

/* ===== Απαιτήσεις ===== */
.ow-hero { margin: 8px 0 0; padding: 20px 18px 16px; border-radius: 30px; color: #ecefed; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lime, #b8e553) 24%, #161819) 0%, transparent 52%), linear-gradient(180deg, #161819 0%, #1f2325 100%); }
.ow-lbl { color: #b0b5b2; font-size: .86rem; font-weight: 600; }
.ow-big { margin-top: 4px; font-size: 2.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ow-big small { font-size: .5em; font-weight: 700; opacity: .65; letter-spacing: -.01em; }
.ow-prog { height: 8px; margin-top: 16px; border-radius: 99px; background: rgb(255 255 255 / .13); overflow: hidden; }
.ow-prog i { display: block; height: 100%; border-radius: 99px; background: var(--lime, #b8e553); transform-origin: left; animation: growx .8s cubic-bezier(.2, .9, .3, 1) both; }
.ow-sub { margin-top: 8px; color: #b0b5b2; font-size: .8rem; }
.ow-sub b { color: #ecefed; font-weight: 700; }
.ow-hero .fo-glass { margin-top: 14px; }
.ow-head { display: flex; align-items: center; gap: 8px; margin: 20px 4px 8px; }
.ow-head h2 { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.ow-count { padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .74rem; font-weight: 700; }
.ow-list { display: grid; gap: 10px; }
.ow-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); text-align: left; color: var(--ink); transition: transform .14s ease; }
.ow-card:active { transform: scale(.985); }
.ow-av { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; font-size: 1.1rem; font-weight: 800; color: hsl(var(--h) 60% var(--cav-l, 38%)); background: color-mix(in srgb, hsl(var(--h) 70% 50%) 16%, var(--surface)); }
.ow-mid { display: grid; gap: 3px; min-width: 0; }
.ow-mid .t { font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-mid .s { color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.ow-chip { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .7rem; font-weight: 650; white-space: nowrap; }
.ow-chip.ok { background: color-mix(in srgb, var(--pos) 13%, var(--surface)); color: var(--pos); }
.ow-chip.late { background: color-mix(in srgb, var(--neg) 13%, var(--surface)); color: var(--neg); }
.ow-amt { display: grid; justify-items: end; gap: 1px; }
.ow-amt b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; color: var(--pos); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-amt b.muted { color: var(--ink-3); }
.ow-amt small { color: var(--ink-3); font-size: .72rem; white-space: nowrap; }
.ow-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ow-bar i { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--accent); transform-origin: left; animation: growx .7s cubic-bezier(.2, .9, .3, 1) both; }
.ow-card.fin { opacity: .85; box-shadow: 0 0 0 .5px var(--line); }
.ow-empty { display: grid; justify-items: center; gap: 8px; margin-top: 16px; padding: 34px 22px 28px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); text-align: center; }
.ow-eic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.ow-eic .ic { width: 26px; height: 26px; }
.ow-empty b { font-size: 1.1rem; font-weight: 750; }
.ow-empty p { max-width: 28ch; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.ow-empty .btn { margin-top: 8px; }

/* ===== Βοηθός (chat) ===== */
html[data-skin] .msgs { gap: 10px; padding: 8px var(--gap) 16px; }
html[data-skin] .msg.user { max-width: 82%; padding: 11px 16px; border-radius: 22px 22px 6px 22px; background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: none; }
html[data-skin] .msg.bot { max-width: 94%; padding: 13px 16px; border: 0; border-radius: 22px 22px 22px 6px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); line-height: 1.45; }
html[data-skin] .msg.bot > p { color: var(--ink); }
html[data-skin] .msg.bot .qrow { padding: 7px 0; font-size: .92rem; }
html[data-skin] .msg.bot .qrow + .qrow { border-top: .5px solid var(--line); }
html[data-skin] .msg.bot .qrow:first-of-type { margin-top: 6px; }
html[data-skin] .msg.bot .qrow span { color: var(--ink-2); }
html[data-skin] .msg.bot .qrow b { font-weight: 750; letter-spacing: -.01em; }
html[data-skin] .cardtx { margin-top: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); }
html[data-skin] .cardtx .r1 .amt { font-weight: 800; letter-spacing: -.02em; }
html[data-skin] .cardtx .meta { color: var(--ink-3); }
html[data-skin] .cardtx .meta select { background-color: var(--surface); border: 0; box-shadow: inset 0 0 0 .5px var(--line); }
html[data-skin] .msg .chip, html[data-skin] .follow .chip { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--soft, var(--surface-2)); color: var(--accent); font-weight: 650; font-size: .82rem; box-shadow: inset 0 0 0 .5px var(--soft-line, var(--line)); }
html[data-skin="forest"][data-theme="dark"] .msg .chip, html[data-skin="forest"][data-theme="dark"] .follow .chip { color: var(--ink); background: var(--surface-2); box-shadow: none; }
html[data-skin] .helpcard .helph { margin: 14px 0 6px; font-size: .7rem; letter-spacing: .06em; color: var(--ink-3); }
html[data-skin] .composer { gap: 6px; margin: 0 var(--gap) 10px; padding: 5px 5px 5px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); }
html[data-skin] .composer input { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1rem; }
html[data-skin] .composer input:focus { outline: 0; box-shadow: none; }
html[data-skin] .composer:focus-within { box-shadow: var(--shadow), 0 0 0 1.5px var(--accent); }
html[data-skin] .send { width: 44px; height: 44px; background: var(--accent); color: var(--on-accent); box-shadow: none; }
html[data-skin] .starter { display: grid; justify-items: center; gap: 6px; padding: 28px 4px 8px; text-align: center; }
html[data-skin] .st-ic { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow), 0 0 0 .5px var(--line); margin-bottom: 6px; }
html[data-skin] .st-ic .ic { width: 28px; height: 28px; }
html[data-skin] .starter h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
html[data-skin] .starter > p { max-width: 30ch; margin: 0 0 12px; color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
html[data-skin] .st-list { display: grid; gap: 8px; width: 100%; text-align: left; }
html[data-skin] .st-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: transform .14s ease, background-color .15s ease; }
html[data-skin] .st-row:active { transform: scale(.985); background: var(--soft, var(--surface-2)); }
html[data-skin] .st-row .ic { width: 18px; height: 18px; color: var(--ink-3); flex: none; }

/* Μεταφορά ανάμεσα σε δικούς σου λογαριασμούς: ένα ποσό, χωρίς πρόσημο και χωρίς χρώμα έσοδου/εξόδου */
.amt.xfer, .row .xfer { color: var(--ink-2); font-weight: 700; }

/* Η αρχική του «Δάσους»: το header φτάνει ως την πάνω άκρη (και κάτω από τη γραμμή κατάστασης), χωρίς λωρίδα φόντου και χωρίς ξεθώριασμα */
html[data-skin] #view:has(> .fo-top) { padding-top: 0; -webkit-mask-image: none; mask-image: none; }
html[data-skin] #view > .fo-top { margin-top: 0; padding-top: calc(env(safe-area-inset-top) + 12px); }

/* ===== Αγορές: σημειώσεις, συλλογή φωτογραφιών, προβολή ===== */
.note-card { display: block; position: relative; padding: 12px 14px 10px; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); cursor: text; }
.note-card:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--soft, var(--surface-2)); }
.note-card textarea { display: block; width: 100%; min-height: 72px; max-height: 220px; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--ink); font: inherit; font-size: .95rem; line-height: 1.45; resize: none; outline: 0; }
.note-card textarea::placeholder { color: var(--ink-3); }
.note-st { display: block; min-height: 1.1em; margin-top: 4px; text-align: right; color: var(--accent); font-size: .72rem; font-weight: 650; }
.bnote-pv { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; margin-top: 3px; color: var(--ink-2) !important; font-style: italic; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal-it, .gal-add, .gal-doc { position: relative; aspect-ratio: 1; border: 0; border-radius: 20px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--line); }
.gal-it { padding: 0; cursor: pointer; transition: transform .14s ease; }
.gal-it:active { transform: scale(.96); }
.gal-it img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-add { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--accent); font-size: .76rem; font-weight: 700; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.gal-add .ic { width: 22px; height: 22px; }
.gal-add:active { background: var(--soft, var(--surface-2)); }
.gal-doc { aspect-ratio: auto; grid-column: 1 / -1; display: flex; align-items: center; border-radius: 18px; }
.gal-pdf { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.gal-pdf .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.gal-x .ic { width: 18px; height: 18px; }
dialog.lbx { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; }
dialog.lbx:not([open]) { display: none; }
dialog.lbx::backdrop { background: #0b0d0c; }
.lbx { display: grid; grid-template-rows: auto 1fr auto; background: #0b0d0c; color: #ecefed; animation: lbxIn .22s ease both; }
@keyframes lbxIn { from { opacity: 0; } to { opacity: 1; } }
.lbx-bar { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) 14px 8px; }
.lbx-n { color: #b0b5b2; font-size: .85rem; font-weight: 650; }
.lbx-b { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #ecefed; cursor: pointer; }
.lbx-b .ic { width: 19px; height: 19px; }
.lbx-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lbx-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lbx-load { position: absolute; color: #b0b5b2; font-size: .9rem; }
.lbx-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #ecefed; cursor: pointer; }
.lbx-nav.prev { left: 10px; } .lbx-nav.next { right: 10px; }
.lbx-nav .ic { width: 20px; height: 20px; }
.lbx-cap { padding: 10px 18px calc(env(safe-area-inset-bottom) + 16px); text-align: center; color: #b0b5b2; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .lbx { animation: none; } }

/* ===== Καρτέλα συναλλαγής (ολόσελιδη) ===== */
dialog#sheet.full { margin: 0; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
dialog#sheet.full .grab { display: none; }
dialog#sheet.full #sheet-body { padding-top: 0; }
dialog#sheet.full .sheet-head { padding-top: env(safe-area-inset-top); }
dialog#sheet.flush #sheet-body { padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
.td-hero { padding: calc(env(safe-area-inset-top) + 12px) var(--gap) 18px; border-radius: 0 0 34px 34px; text-align: center; color: #ecefed; background: radial-gradient(120% 90% at 50% 0%, hsl(var(--h) 55% 28%) 0%, transparent 72%), linear-gradient(180deg, #161819 0%, #1d2022 100%); }
.td-bar { display: flex; align-items: center; }
.td-b { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #ecefed; cursor: pointer; }
.td-b .ic { width: 20px; height: 20px; }
.td-mw { position: relative; }
.td-menu { position: absolute; right: 0; top: 52px; z-index: 6; min-width: 260px; padding: 6px; border-radius: 24px; text-align: left; background: var(--surface); color: var(--ink); box-shadow: 0 22px 44px -14px rgb(0 0 0 / .55), 0 0 0 .5px var(--line); animation: tdPop .16s ease both; transform-origin: top right; }
@keyframes tdPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.td-menu[hidden] { display: none; }
.td-menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 18px; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.td-menu button:active { background: var(--surface-2); }
.td-menu button .ic { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.td-menu button.danger, .td-menu button.danger .ic { color: var(--neg); }
.td-av { width: 88px; height: 88px; margin: 6px auto 0; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 52% 42%); color: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .06); }
.td-av .ic { width: 40px; height: 40px; }
.td-title { margin: 14px 0 0; font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; color: #ecefed; text-transform: none; }
.td-amt { margin-top: 6px; font-size: 3.1rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.td-amt small { font-size: .52em; font-weight: 700; opacity: .72; letter-spacing: -.01em; }
.td-amt.in { color: var(--lime, #b8e553); }
.td-date { margin-top: 4px; color: #b0b5b2; font-size: .9rem; }
.td-chips { display: flex; gap: 8px; margin: 20px calc(var(--gap) * -1) 0; padding: 0 var(--gap); overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.td-chips::-webkit-scrollbar { display: none; }
.td-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .12); color: #ecefed; font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; transition: transform .14s ease, background-color .15s ease; }
.td-chip:active { transform: scale(.95); background: rgb(255 255 255 / .2); }
.td-chip .ic { width: 18px; height: 18px; }
.td-body { display: grid; gap: 10px; padding: 14px var(--gap) 0; }
.td-card { display: block; width: 100%; padding: 4px 16px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); color: var(--ink); text-align: left; font: inherit; }
.td-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
button.td-row { cursor: pointer; }
.td-row + .td-row, .td-sw + .td-row { border-top: .5px solid var(--line); }
.td-row > span:first-child { color: var(--ink-2); }
.td-row b { font-weight: 650; text-align: right; }
.td-link { color: var(--accent); }
.td-val { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; min-width: 0; }
.td-val .ic { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.td-ci { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 52% 42%); color: #fff; }
.td-ci .ic { width: 15px; height: 15px; color: #fff; }
.td-note { cursor: pointer; padding-top: 12px; padding-bottom: 14px; }

.td-note p { margin-top: 4px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

.td-sw { padding: 8px 0; }
.td-files { padding-bottom: 14px; }
.td-files .section-head { margin: 12px 0 10px; }

.td-cnt { display: block; margin-top: 6px; text-align: right; color: var(--ink-3); font-size: .75rem; }
.cg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 8px; padding: 10px 0 14px; }
.cg-it { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.cg-c { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 52% 42%); color: #fff; transition: transform .14s ease, box-shadow .15s ease; }
.cg-c .ic { width: 28px; height: 28px; }
.cg-it:active .cg-c { transform: scale(.92); }
.cg-it[aria-checked="true"] .cg-c { box-shadow: 0 0 0 3px var(--sheet-bg, var(--surface)), 0 0 0 5.5px var(--accent); }
@media (prefers-reduced-motion: reduce) { .td-menu { animation: none; } }

.td-bar .grow { flex: 1; }

/* Καρτέλα συναλλαγής: εσωτερικό */

.td-row > b, .td-row > .td-val { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.td-note { display: grid; gap: 8px; padding: 14px 16px; cursor: pointer; }
.td-note p { margin: 0; font-size: 1rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

.td-files { padding: 14px 16px 16px; }
.td-files .section-head { display: none; }

@media (min-width: 600px) {
  dialog#sheet.full { width: min(460px, 100vw); height: min(100dvh, 900px); max-height: min(100dvh, 900px); margin: auto; border-radius: 30px; overflow-y: auto; }
  dialog#sheet.full::backdrop { background: rgb(6 20 13 / .62); }
  .td-hero { border-radius: 0 0 34px 34px; }
}

/* ===== Ολόσελιδες σελίδες (ιστορικό, κατηγορία, σημείωση, απόδειξη): σαν εφαρμογή πληρωμών ===== */
dialog#sheet.full { background: var(--bg); }
dialog#sheet.full:not(.flush) #sheet-body { padding: 0 var(--gap) calc(24px + env(safe-area-inset-bottom)); }
dialog#sheet.full:not(.flush) .sheet-head { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "back . close" "title title title"; align-items: center; row-gap: 8px; min-height: 0; padding: calc(env(safe-area-inset-top) + 12px) 0 6px; background: transparent; }
dialog#sheet.full:not(.flush) .sheet-head > [data-act="sheetback"] { grid-area: back; width: 44px; height: 44px; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); color: var(--ink); }
dialog#sheet.full:not(.flush) .sheet-head > [data-act="close"] { grid-area: close; width: 44px; height: 44px; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); color: var(--ink); }
dialog#sheet.full:not(.flush) .sheet-head > h2 { grid-area: title; margin: 10px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-transform: none; overflow-wrap: anywhere; }
dialog#sheet.full:not(.flush) .sheet-sub { margin: 2px 0 14px; color: var(--ink-2); font-size: 1rem; }
dialog#sheet.full .card, dialog#sheet.full .fold { background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); border-radius: 26px; }
dialog#sheet.full .list > * + * { border-top: .5px solid var(--line); }
dialog#sheet.full .row { min-height: 66px; padding: 10px 16px; }
dialog#sheet.full .row .t { font-weight: 650; }
dialog#sheet.full .row .s { margin-top: 2px; }
dialog#sheet.full .row .cav { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: hsl(var(--h) 55% var(--cav-l, 40%)); }
dialog#sheet.full .row .num.neg, dialog#sheet.full .row .amt.neg { color: var(--ink); }
dialog#sheet.full .daygroup h3 { margin: 22px 4px 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.pg-h { margin: 22px 4px 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
dialog#sheet.full .card:has(> .cg) { padding: 8px 8px 4px; }
dialog#sheet.full .fld { margin-top: 8px; }
dialog#sheet.full .form-actions { position: static; background: none; padding-top: 18px; }
dialog#sheet.full .btn.primary { min-height: 54px; border-radius: 999px; }
dialog#sheet.full .choice { background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
dialog#sheet.full .choice .qi { background: var(--surface-2); color: var(--ink); box-shadow: none; border-radius: 50%; }
/* καρτέλα συναλλαγής: καθαρές γραμμές ετικέτα — τιμή */
.td-card { padding: 2px 18px; }
.td-row { min-height: 58px; }
.td-notev { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.td-sw { padding: 4px 0; min-height: 58px; }
.td-files { padding: 14px 16px 16px; }
.td-card[hidden], .td-files[hidden] { display: none; }
html[data-skin] dialog#sheet.full .card, html[data-skin] dialog#sheet.full .fold { background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); border-radius: 26px; }
html[data-skin] dialog#sheet.full .row { background: transparent; border-radius: 0; box-shadow: none; }
html[data-skin] dialog#sheet.full .choice { background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
html[data-skin] dialog#sheet.full input[type=text], html[data-skin] dialog#sheet.full textarea { background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
html[data-skin] dialog#sheet.full textarea { min-height: 140px; padding: 14px 16px; border-radius: 22px; font-size: 1rem; line-height: 1.45; }
/* σκούρο: πιο βαθύ φόντο σελίδας, ώστε οι κάρτες να ξεχωρίζουν */
html[data-skin="forest"][data-theme="dark"] dialog#sheet.full { background: #0d0e0f; }
html[data-skin="forest"][data-theme="dark"] .td-card { background: #1d1f21; }
@media (prefers-color-scheme: dark) {
  html[data-skin="forest"]:not([data-theme="light"]) dialog#sheet.full { background: #0d0e0f; }
  html[data-skin="forest"]:not([data-theme="light"]) .td-card { background: #1d1f21; }
}

.td-chips, .td-chip { -webkit-user-select: none; user-select: none; }
.td-chips { cursor: grab; touch-action: pan-x; overscroll-behavior-x: contain; }
.td-chips.drag { cursor: grabbing; }
.td-chips.drag .td-chip { pointer-events: none; }

/* Σώμα και header των αυτόματων καρτελών (οθόνες με κάρτα ποσού) */
.td-auto .td-hero { padding-bottom: 20px; }
.td-auto .td-title { margin-top: 10px; font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; text-transform: none; }
.td-auto .td-date { margin-top: 2px; }
.td-auto .td-eye { display: inline-block; margin: 14px 0 0; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); color: #cfd3d1; font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.td-auto .td-amt { margin-top: 8px; font-size: 2.9rem; }
.td-auto .td-amt.neg { color: #ff9d94; } .td-auto .td-amt.pos { color: var(--lime, #b8e553); }
.td-extra { color: #b0b5b2; }
.td-extra:empty { display: none; }
.td-extra .sub, .td-extra p { margin: 8px 0 0; color: #b0b5b2; font-size: .86rem; line-height: 1.45; }
.td-extra b { color: #ecefed; }
.td-extra .prog { height: 8px; margin: 14px 6px 0; border-radius: 99px; background: rgb(255 255 255 / .14); overflow: hidden; }
.td-extra .prog b { display: block; height: 100%; border-radius: 99px; background: var(--lime, #b8e553) !important; }
.td-extra .link, .td-extra a { color: var(--lime, #b8e553); font-weight: 700; }
.td-extra .muted { color: #b0b5b2; }
.td-extra .neg { color: #ff9d94; } .td-extra .pos { color: var(--lime, #b8e553); }
.td-body > .form-actions, .td-body form > .form-actions { position: static; background: none; }
.td-body > .section-head { margin: 10px 4px 0; }
.td-body .tline, .td-body .acts3 { margin-top: 0; }
.td-body > .btn, .td-body > .form-actions .btn { width: 100%; }
/* όλες οι οθόνες ολόσελιδες: οι ενέργειες φόρμας μένουν κολλημένες κάτω */
dialog#sheet.full:not(.flush) .form-actions { position: sticky; bottom: 0; z-index: 3; padding: 14px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 72%, transparent); }
html[data-skin] .td-auto .td-amt.neg { color: #ff9d94; }
html[data-skin] .td-auto .td-amt.pos { color: var(--lime, #b8e553); }
html[data-skin] .td-extra .neg { color: #ff9d94; }
.td-body > details.more, .td-body > .more { margin: 0; padding: 2px 18px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); }
.td-body > details.more > summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-weight: 650; cursor: pointer; list-style: none; }
.td-body > details.more > summary::-webkit-details-marker { display: none; }
.td-body > details.more[open] > summary { border-bottom: .5px solid var(--line); margin-bottom: 8px; }
.td-body > details.more form { padding-bottom: 14px; }
/* ολόσελιδες οθόνες: πλακίδια, χρονολόγιο και στατιστικά ως λευκές κάρτες (όχι πράσινο-γκρι γέμισμα) */
html[data-skin] dialog#sheet.full .tile, html[data-skin] dialog#sheet.full .tl-row, html[data-skin] dialog#sheet.full .stat, html[data-skin] dialog#sheet.full .bundlebox { background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--line); border: 0; }
html[data-skin] dialog#sheet.full .acts3 .tile .qi { background: var(--surface-2); color: var(--ink); box-shadow: none; }
html[data-skin] dialog#sheet.full .acts3:has(> .tile:nth-child(4)) { grid-template-columns: repeat(4, 1fr); gap: 6px; }
html[data-skin] dialog#sheet.full .acts3:has(> .tile:nth-child(4)) .tile { padding: 12px 2px 10px; font-size: .68rem; min-height: 86px; }
html[data-skin] dialog#sheet.full .acts3:has(> .tile:nth-child(4)) .tile .qi { width: 34px; height: 34px; }
html[data-skin] dialog#sheet.full .statscroll { margin-top: 0; }
html[data-skin] dialog#sheet.full .tl-dot.now { background: var(--accent); }
html[data-skin] dialog#sheet.full input[type=date], html[data-skin] dialog#sheet.full input[type=number], html[data-skin] dialog#sheet.full input[type=password], html[data-skin] dialog#sheet.full input[type=time], html[data-skin] dialog#sheet.full select { background-color: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
html[data-skin="forest"][data-theme="light"] dialog#sheet.full input:focus, html[data-skin="forest"][data-theme="light"] dialog#sheet.full select:focus, html[data-skin="forest"][data-theme="light"] dialog#sheet.full textarea:focus { background-color: var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }
html[data-skin] dialog#sheet.full .effect { background: var(--surface); border: 0; box-shadow: 0 0 0 .5px var(--line); color: var(--ink-2); }
html[data-skin] dialog#sheet.full .chip { background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
html[data-skin] dialog#sheet.full details.more { padding: 0 2px; }

/* Κουμπιά: ίδια, αρκετά κενά ανάμεσά τους (κάθετα και οριζόντια) σε όλες τις οθόνες */
html[data-skin] dialog#sheet .form-actions { display: grid; gap: 12px; margin-top: 18px; }
html[data-skin] dialog#sheet .form-actions > * { margin: 0 !important; }
html[data-skin] dialog#sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
html[data-skin] dialog#sheet .btn { min-height: 52px; border-radius: 16px; }
html[data-skin] dialog#sheet .btn + .btn:not(.sm), html[data-skin] dialog#sheet form > .btn { margin-top: 12px; }
html[data-skin] dialog#sheet.full .form-actions .btn { border-radius: 999px; }
html[data-skin] dialog#sheet .acts3 { gap: 10px; margin-top: 14px; }
html[data-skin] dialog#sheet .acts3:has(> .tile:nth-child(4)) { gap: 8px; }
html[data-skin] dialog#sheet .td-body { gap: 14px; }
html[data-skin] dialog#sheet .td-body > .form-actions, html[data-skin] dialog#sheet .td-body form > .form-actions { margin-top: 20px; }
html[data-skin] dialog#sheet .chips { gap: 10px; }
html[data-skin] .fo-acts { gap: 10px; }
html[data-skin] dialog#sheet .row2 > .btn, html[data-skin] dialog#sheet .form-actions .btn, html[data-skin] dialog#sheet .acts3 .btn { margin: 0 !important; }
html[data-skin] dialog#sheet .row2 > .btn { width: 100%; }

/* Κάθετος ρυθμός στις ολόσελιδες οθόνες: ίδια κενά ανάμεσα σε πεδία, επιλογές (chips), ποσά και φωτογραφίες */
html[data-skin] dialog#sheet.full .fld { margin: 16px 0 0; }
html[data-skin] dialog#sheet.full .fld:first-child, html[data-skin] dialog#sheet.full form > .fld:first-of-type { margin-top: 4px !important; }
html[data-skin] dialog#sheet.full .fld > span { margin-bottom: 8px; }
html[data-skin] dialog#sheet.full .two { gap: 12px; margin-top: 16px; }
html[data-skin] dialog#sheet.full .two > .fld { margin-top: 0; }
html[data-skin] dialog#sheet.full .amount-wrap + .chips, html[data-skin] dialog#sheet.full .fld + .chips, html[data-skin] dialog#sheet.full .chips { margin-top: 12px !important; gap: 10px; }
html[data-skin] dialog#sheet.full .effect { margin: 16px 0 0; padding: 14px 16px; line-height: 1.45; }
html[data-skin] dialog#sheet.full .form-actions { margin-top: 20px; }
html[data-skin] dialog#sheet.full details.more { margin-top: 16px; }
html[data-skin] dialog#sheet.full .td-body > form { display: grid; gap: 0; }
.gal { gap: 10px; }
.td-files { padding: 16px; }
.td-files .gal + .hint { margin: 12px 2px 0; }
html[data-skin] dialog#sheet.full .section-head { margin: 22px 4px 10px; }
html[data-skin] dialog#sheet.full .td-body > .section-head { margin: 8px 4px 0; }
html[data-skin] dialog#sheet.full .hint { margin: 12px 4px 0; }
html[data-skin] dialog#sheet.full select, html[data-skin] dialog#sheet.full input[type=date], html[data-skin] dialog#sheet.full input[type=text]:not(.amount-in), html[data-skin] dialog#sheet.full input[type=number] { height: 52px; min-height: 52px; box-sizing: border-box; }

/* Ολόσελιδες σελίδες: η κεφαλίδα με τον μεγάλο τίτλο κυλά μαζί με το περιεχόμενο (όχι διάφανη πάνω του) */
dialog#sheet.full:not(.flush) .sheet-head { position: static; }

/* Καρτέλα κίνησης: η τιμή δεξιά κόβει μόνο το κείμενο, ποτέ το εικονίδιο ή το βελάκι */
.td-row > .td-val { max-width: 72%; overflow: visible; text-overflow: clip; }
.td-val .td-vt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-ci { flex: none; }
.td-ex { margin: 8px auto 0; padding: 4px 12px; width: fit-content; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; font-size: .8rem; font-weight: 650; }
.td-ex[hidden] { display: none; }

/* Διακόπτες (checkbox): το κοινό στυλ πεδίων στο focus δεν πρέπει να τους βάφει λευκούς */
html[data-skin] dialog#sheet .check input[type=checkbox]:not(#x):focus,
html[data-skin] dialog#sheet .check input[type=checkbox]:not(#x):focus-visible { background: var(--bar-off, #c9cdd8); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); outline: 0; }
html[data-skin] dialog#sheet .check input[type=checkbox]:not(#x):checked,
html[data-skin] dialog#sheet .check input[type=checkbox]:not(#x):checked:focus { background: var(--accent); background-image: none; box-shadow: none; }
html[data-skin] dialog#sheet .check input[type=checkbox]:not(#x):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Κινήσεις εκτός αναλύσεων: γκρι, για να ξεχωρίζουν */
.row.is-ex, .au-row.is-ex { opacity: .55; }
.row.is-ex .t, .au-row.is-ex b, .row.is-ex .num, .au-row.is-ex .num { color: var(--ink-3) !important; }
.row.is-ex .num, .au-row.is-ex .num { text-decoration: line-through; text-decoration-thickness: 1px; }
.row.is-ex .s { color: var(--ink-3); font-style: italic; }

/* Ολόσελιδες σελίδες: τα κουμπιά-chip με έμφαση κρατούν το χρώμα έμφασης (δεν χάνονται πάνω στις λευκές κάρτες) */
html[data-skin] dialog#sheet.full .chip.strong, html[data-skin] dialog#sheet.full .chip.on, html[data-skin] dialog#sheet.full .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
/* Γραμμές πληρωμής: ο τίτλος γράφεται σε δύο γραμμές αντί να κόβεται δίπλα στο κουμπί */
html[data-skin] dialog#sheet.full .row.split .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
html[data-skin] dialog#sheet.full .row.split .s { white-space: normal; }

/* Διπλά πεδία: ίδια αφετηρία, ώστε ετικέτες και πεδία να ευθυγραμμίζονται */
html[data-skin] dialog#sheet.full .two { align-items: start; }
html[data-skin] dialog#sheet.full .two > .fld, html[data-skin] dialog#sheet.full .two > .fld:first-child { margin-top: 0 !important; }

/* Βοηθός: το πεδίο γραφής κάθεται λίγο πάνω από τη μπάρα (πριν έμενε ~90px κενό: το padding της σελίδας και του chat-wrap προστίθονταν) */
html[data-skin] #view.chat { padding-bottom: 0; }
html[data-skin] .chat-wrap { padding-bottom: calc(var(--tab-h) + 30px + env(safe-area-inset-bottom)); }
html[data-skin] body.typing .chat-wrap { padding-bottom: 10px; }

/* Βοηθός: η κάρτα κίνησης μέσα στο μήνυμα δεν έχει δικό της φόντο (πριν: κουτί μέσα σε κουτί) */
html[data-skin] .msg.bot .cardtx { margin-top: 10px; padding: 0; background: transparent; border-radius: 0; }
html[data-skin] .msg.bot > p ~ .cardtx .r1 { padding-top: 10px; border-top: .5px solid var(--line); }
html[data-skin] .msg.bot .cardtx .meta { margin-top: 4px; }
html[data-skin] .msgs { scrollbar-width: none; }
html[data-skin] .msgs::-webkit-scrollbar { display: none; }

/* Βοηθός: η προτεινόμενη ενέργεια σε κάρτα έχει χρώμα έμφασης */
html[data-skin] .msg .chip.strong { background: var(--accent); color: var(--on-accent); box-shadow: none; }
html[data-skin="forest"][data-theme="dark"] .msg .chip.strong { background: var(--accent); color: var(--on-accent); }
