/* ===== Θέματα ===== */
:root, [data-theme="turquoise"] {
  --accent: #0d9488; --accent-2: #14b8a6; --accent-soft: #ccfbf1;
  --hero-1: #14b8a6; --hero-2: #0f766e; --hero-3: #0e7490;
}
[data-theme="ocean"]    { --accent: #2563eb; --accent-2: #3b82f6; --accent-soft: #dbeafe; --hero-1: #3b82f6; --hero-2: #1d4ed8; --hero-3: #4338ca; }
[data-theme="emerald"]  { --accent: #059669; --accent-2: #10b981; --accent-soft: #d1fae5; --hero-1: #10b981; --hero-2: #047857; --hero-3: #065f46; }
[data-theme="purple"]   { --accent: #7c3aed; --accent-2: #8b5cf6; --accent-soft: #ede9fe; --hero-1: #8b5cf6; --hero-2: #6d28d9; --hero-3: #9333ea; }
[data-theme="graphite"] { --accent: #374151; --accent-2: #4b5563; --accent-soft: #e5e7eb; --hero-1: #4b5563; --hero-2: #1f2937; --hero-3: #111827; }

:root {
  --bg: #f3f6f7;
  --card: #ffffff;
  --card-2: #eef2f4;
  --text: #0f1b1f;
  --muted: #64737a;
  --line: #e1e7ea;
  --accent-ink: #ffffff;
  --pos: #0f9d58;
  --neg: #d6334a;
  --warn: #b86e00;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 18px;
  --tabbar-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1214; --card: #151d20; --card-2: #1f292d; --text: #ecf2f4; --muted: #92a1a7; --line: #27333a;
    --pos: #34d07f; --neg: #ff6b7d; --warn: #f0a540; --shadow: none;
  }
  :root, [data-theme="turquoise"] { --accent: #2dd4bf; --accent-soft: #134e4a; --accent-ink: #042f2e; }
  [data-theme="ocean"]    { --accent: #60a5fa; --accent-soft: #1e3a8a; --accent-ink: #0b1b3a; }
  [data-theme="emerald"]  { --accent: #34d399; --accent-soft: #064e3b; --accent-ink: #022c22; }
  [data-theme="purple"]   { --accent: #a78bfa; --accent-soft: #3b2470; --accent-ink: #1e1238; }
  [data-theme="graphite"] { --accent: #d1d5db; --accent-soft: #374151; --accent-ink: #111827; --hero-1: #374151; --hero-2: #1f2937; --hero-3: #0b0f14; }
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
b, .num { font-variant-numeric: tabular-nums; }

#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.topbar h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; font-weight: 750; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { font-size: 28px; line-height: 1; padding: 0 6px 0 0; color: var(--accent); border: 0; background: none; cursor: pointer; }
.month { display: flex; align-items: center; background: var(--card); border-radius: 999px; padding: 2px; box-shadow: var(--shadow); }
.month span { font-size: 13px; font-weight: 600; min-width: 104px; text-align: center; text-transform: capitalize; }
.icon-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 999px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:active { background: var(--card-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.round { background: var(--card); box-shadow: var(--shadow); }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.card h2 .right { text-transform: none; letter-spacing: 0; font-weight: 600; }
.card h2 a { text-transform: none; letter-spacing: 0; font-weight: 600; }

.hero {
  background: linear-gradient(140deg, var(--hero-1) 0%, var(--hero-2) 60%, var(--hero-3) 100%);
  color: #fff; border-radius: 22px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--hero-2) 35%, transparent);
  cursor: pointer;
}
.hero .label { opacity: .9; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.hero .big { font-size: 38px; font-weight: 780; letter-spacing: -.02em; margin: 2px 0 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .big small { font-size: 16px; font-weight: 600; opacity: .85; }
.hero .sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; opacity: .92; }
.hero .warnline { margin-top: 10px; background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 10px; font-size: 13px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-acc { flex: 0 0 auto; background: var(--card); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 12px; min-width: 124px; cursor: pointer; }
.chip-acc .n { font-size: 12px; color: var(--muted); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.chip-acc .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip-acc .p { font-size: 11px; color: var(--warn); }
.chip-acc.err { outline: 1px solid var(--warn); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .d { font-size: 11px; color: var(--muted); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .muted { color: var(--muted); } .warn-t { color: var(--warn); }

.donut-wrap { display: flex; gap: 16px; align-items: center; }
.donut { flex: 0 0 132px; position: relative; }
.donut svg { display: block; }
.donut .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut .center b { font-size: 16px; }
.donut .center small { color: var(--muted); font-size: 11px; }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.legend button { all: unset; display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.legend .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.legend .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .am { font-variant-numeric: tabular-nums; color: var(--muted); }

.bars svg { width: 100%; height: auto; display: block; }
.bars text { fill: var(--muted); font-size: 10px; }
.bars .lg { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bars .lg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.prog { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin-top: 6px; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.prog.over i { background: var(--neg); }
.prog.near i { background: var(--warn); }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.row:last-child { border-bottom: 0; }
.row .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; background: var(--card-2); }
.row .mid { flex: 1; min-width: 0; }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row .amt small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.row .go { color: var(--muted); font-size: 18px; }
.row.static { cursor: default; }
.day { font-size: 12px; font-weight: 650; color: var(--muted); margin: 14px 2px 4px; text-transform: capitalize; display: flex; justify-content: space-between; }

.search { display: flex; gap: 8px; margin-bottom: 10px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 12px;
  outline: none; appearance: none; -webkit-appearance: none; font-size: 16px; min-width: 0;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.input:focus { border-color: var(--accent); }
.input.big { font-size: 30px; font-weight: 700; text-align: center; padding: 10px; font-variant-numeric: tabular-nums; }
.input.unsure { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--card)); }
textarea.input { min-height: 64px; resize: vertical; }
.filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 6px; padding: 0 16px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.btn { border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 650; cursor: pointer; background: var(--card-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--neg); }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns .btn { flex: 1; }

.note { font-size: 13px; color: var(--muted); }
.note.warn { color: var(--warn); }
.callout { border-radius: 12px; padding: 10px 12px; font-size: 13px; background: var(--card-2); margin: 8px 0; }
.callout.warn { background: color-mix(in srgb, var(--warn) 13%, var(--card)); color: var(--text); }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-weight: 600; vertical-align: 1px; }
.badge.err { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.badge.ok { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.badge.wait { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge.acc { background: var(--accent-soft); color: var(--accent); }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .e { font-size: 40px; margin-bottom: 6px; }
.empty h3 { color: var(--text); margin: 4px 0 6px; }

.form { display: grid; gap: 10px; }
.form label { font-size: 12px; color: var(--muted); font-weight: 600; display: grid; gap: 4px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; background: var(--card-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 4px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--card); box-shadow: var(--shadow); color: var(--accent); }
.seg.wide { margin-bottom: 12px; }

/* ===== Bottom sheet: πάνω στο viewport, δικό του scroll, σεβασμός safe-area/πληκτρολογίου ===== */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); animation: fade .18s ease; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: 22px 22px 0 0;
  max-height: calc(var(--vvh, 100dvh) * .92 - env(safe-area-inset-top));
  display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.8,.2,1);
  transform: translateY(calc(-1 * var(--kb, 0px)));
}
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 4px; flex: 0 0 auto; }
#sheetBody { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 16px calc(18px + env(safe-area-inset-bottom)); flex: 1 1 auto; }
.sheet h3 { margin: 0 0 4px; font-size: 19px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0; }
.cat-grid button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 10px; text-align: left; font-size: 13px; cursor: pointer; min-width: 0; }
.cat-grid button span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-grid button.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); flex: 0 0 auto; }
.bank-list { max-height: 46vh; overflow-y: auto; margin-top: 8px; }
.bank-list .row img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.explain { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; margin: 10px 0; }
.explain .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.thumb { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: var(--card-2); }
.items .it { display: grid; grid-template-columns: 1fr 96px 30px; gap: 6px; margin-bottom: 6px; }
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rgrid .rc { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.rgrid .rc img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--card-2); }
.rgrid .rc div { padding: 6px 8px; font-size: 12px; }
.rgrid .rc b { display: block; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.swatches button { min-width: 0; text-align: center; border: 2px solid transparent; border-radius: 16px; padding: 6px; background: var(--card); cursor: pointer; display: grid; gap: 6px; justify-items: center; font-size: 11px; box-shadow: var(--shadow); }
.swatches button i { width: 40px; height: 40px; border-radius: 12px; display: block; }
.swatches button.on { border-color: var(--accent); }

/* ===== Bottom navigation ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; align-items: stretch;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; max-width: 120px; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }
.tabbar .fab { flex: 0 0 auto; width: 72px; display: flex; align-items: center; justify-content: center; }
.tabbar .fab button { width: 52px; height: 52px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.actions button { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 16px 10px; cursor: pointer; display: grid; justify-items: center; gap: 6px; font-weight: 650; }
.actions button span { font-size: 26px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); z-index: 60; background: #1d2a2e; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: up .2s ease; }

.login { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.login .logo { width: 72px; height: 72px; border-radius: 20px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; vertical-align: -3px; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 14px; }

@keyframes up { from { transform: translateY(24px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr 1fr; } .stat:last-child { grid-column: span 2; }
  .donut-wrap { flex-direction: column; align-items: stretch; } .donut { align-self: center; }
  .hero .big { font-size: 32px; } .topbar h1 { font-size: 22px; } .topbar.has-month h1 { display: none; }
  .topbar.has-month .month { flex: 1; justify-content: space-between; } .month span { min-width: 88px; font-size: 12px; }
  .rgrid { grid-template-columns: repeat(2, 1fr); } .tabbar a { font-size: 9.5px; } .tabbar .fab { width: 60px; }
}

/* =====================================================================
   ΔΙΑΤΑΞΕΙΣ  (html[data-layout] = classic | cards | timeline)
   ===================================================================== */
.topnav, .fab-float, .tabbar a.tab-more { display: none; }

/* ---------- Κάρτες ---------- */
[data-layout="cards"] .tabbar .fab { display: none; }
[data-layout="cards"] .tabbar a.tab-more { display: flex; }
[data-layout="cards"] #moreBtn { display: none; }
[data-layout="cards"] .fab-float {
  display: grid; place-items: center; position: fixed; z-index: 11; right: max(16px, calc(50% - 264px));
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 20px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-size: 30px; cursor: pointer; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent);
}
[data-layout="cards"] .fab-float em { display: none; }
[data-layout="cards"][data-route="home"] .fab-float { display: none; }
[data-layout="cards"][data-route="home"] .topbar { display: none; }
[data-layout="cards"][data-route="home"] #app { padding-top: 0; }
[data-layout="cards"] .card { border-radius: 22px; }
[data-layout="cards"] .hero { border-radius: 26px; }

.c-top { margin: 0 -16px; padding: calc(18px + env(safe-area-inset-top)) 18px 66px; border-radius: 0 0 34px 34px; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, var(--hero-1) 0%, var(--hero-2) 45%, var(--hero-3) 100%); }
@media (prefers-color-scheme: dark) { .c-top { background: radial-gradient(120% 90% at 85% 0%, var(--hero-2) 0%, var(--hero-3) 55%, #071416 100%); } }
.c-hello { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.c-hello small { opacity: .85; font-size: 13px; text-transform: capitalize; } .c-hello b { font-size: 21px; display: block; }
.c-hello a { color: #fff; background: rgba(255,255,255,.18); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.c-hello a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.c-gauge { display: flex; align-items: center; gap: 16px; margin-top: 20px; cursor: pointer; }
.c-ring { position: relative; width: 128px; height: 128px; flex: 0 0 auto; }
.c-ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.c-ring .c b { font-size: 24px; letter-spacing: -.02em; display: block; line-height: 1.05; font-variant-numeric: tabular-nums; } .c-ring .c small { font-size: 11px; opacity: .85; }
.c-gt { min-width: 0; } .c-gt .k { font-size: 13px; opacity: .85; } .c-gt .v { font-size: 21px; font-weight: 760; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.c-gt .r2 { margin-top: 6px; font-size: 12.5px; opacity: .9; line-height: 1.5; font-variant-numeric: tabular-nums; }
.c-pill { display: inline-block; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; margin-top: 8px; }
.c-warn { margin-top: 14px; background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.c-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: -44px 0 0; position: relative; z-index: 2; }
.c-actions button { border: 0; background: var(--card); color: var(--text); border-radius: 18px; padding: 12px 2px 10px; font-size: 11.5px; font-weight: 650; cursor: pointer; box-shadow: 0 6px 20px rgba(15,40,45,.10); }
.c-actions i { font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 13px; background: var(--accent-soft); font-size: 19px; }
.c-h { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 2px 10px; display: flex; justify-content: space-between; font-weight: 650; }
.c-h a { text-transform: none; letter-spacing: 0; }
.c-cards { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.c-cards::-webkit-scrollbar { display: none; }
.wcard { flex: 0 0 76%; max-width: 280px; min-height: 132px; border-radius: 20px; padding: 14px 16px; color: #fff; position: relative; overflow: hidden; scroll-snap-align: start; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.wcard .n { font-size: 13px; opacity: .92; font-weight: 600; padding-right: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard .v { font-size: 25px; font-weight: 760; margin-top: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.wcard .s { font-size: 11.5px; opacity: .88; margin-top: 2px; }
.wcard .chip { position: absolute; right: 14px; top: 12px; font-size: 20px; }
.wcard::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.12); }
.wcard.k-bank { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.wcard.k-cash { background: linear-gradient(135deg, #065f46, #10b981); }
.wcard.k-revolut { background: linear-gradient(135deg, #111827, #4b5563); }
.wcard.k-savings { background: linear-gradient(135deg, #9d174d, #ec4899); }
.wcard.k-investment { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.wcard.k-debt { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.wcard.k-wealth { background: linear-gradient(135deg, var(--hero-3), var(--hero-1)); }
.c-stack { display: grid; gap: 10px; }
.c-stack .wcard { flex: none; max-width: none; min-height: 112px; }
.c-stack .wcard .v { margin-top: 14px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.week .d { background: var(--card); border-radius: 14px; padding: 8px 0 7px; text-align: center; font-size: 11px; color: var(--muted); box-shadow: var(--shadow); cursor: pointer; border: 0; }
.week .d b { display: block; font-size: 16px; color: var(--text); margin: 1px 0 3px; }
.week .d.today { background: var(--accent); color: var(--accent-ink); } .week .d.today b { color: var(--accent-ink); }
.week .d.sel { outline: 2px solid var(--accent); }
.week .d i { display: block; height: 6px; } .week .d i span { display: inline-block; width: 6px; height: 6px; border-radius: 9px; margin: 0 1px; }
.bline { padding: 8px 0; } .bline .h { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; }
.bline .h span:last-child { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bline .prog { height: 9px; }

/* ---------- Χρονολόγιο ---------- */
[data-layout="timeline"] .tabbar { display: none; }
[data-layout="timeline"] #app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
[data-layout="timeline"] .topbar { flex-wrap: wrap; row-gap: 8px; border-bottom: 1px solid var(--line); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
[data-layout="timeline"] .topbar h1 { font-size: 22px; }
[data-layout="timeline"] .topnav { display: flex; width: 100%; gap: 4px; background: var(--card-2); border-radius: 12px; padding: 3px; }
[data-layout="timeline"] .topnav a { flex: 1; text-align: center; padding: 7px 2px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--muted); }
[data-layout="timeline"] .topnav a.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
[data-layout="timeline"][data-route^="more"] .topnav { display: none; }
[data-layout="timeline"] #moreBtn svg { display: none; }
[data-layout="timeline"] #moreBtn::before { content: "⚙︎"; font-size: 20px; }
[data-layout="timeline"] .fab-float {
  display: flex; align-items: center; gap: 8px; position: fixed; z-index: 11; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 999px; padding: 13px 22px 13px 18px;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
[data-layout="timeline"] .fab-float span { font-size: 22px; line-height: 1; }
[data-layout="timeline"] .fab-float em { font-style: normal; }
[data-layout="timeline"] .card { box-shadow: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
[data-layout="timeline"] .hero { border-radius: 14px; box-shadow: none; }
[data-layout="timeline"] .row { padding: 7px 0; gap: 10px; }
[data-layout="timeline"] .row .ic { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
[data-layout="timeline"] .stat { box-shadow: none; border: 1px solid var(--line); border-radius: 12px; }
[data-layout="timeline"] .chip-acc { box-shadow: none; border: 1px solid var(--line); }
[data-layout="timeline"] .day { margin-top: 10px; }
.t-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.t-sum > div { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px; min-width: 0; cursor: pointer; }
.t-sum .k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.t-sum .v { font-size: 17px; font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sum .s { font-size: 11px; color: var(--muted); }
.t-sum > div:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.t-sum > div:first-child .k, .t-sum > div:first-child .s { color: inherit; opacity: .85; }
.t-chart svg { width: 100%; height: auto; display: block; }
.t-chart text { fill: var(--muted); font-size: 10px; }
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl .tday { position: relative; font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 2px; text-transform: capitalize; display: flex; justify-content: space-between; }
.tl .tday::before { content: ""; position: absolute; left: -17px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.tl .tday.fut::before { border-color: var(--accent); }
.tl .tday.pay::before { background: var(--pos); border-color: var(--pos); }
.tl .tday.now::before { background: var(--accent); border-color: var(--accent); }
.tl .row.fut .t { color: var(--text); } .tl .row.fut { border-bottom-style: dashed; }
.tl .sep { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 0 -18px; }
.lay-pick { display: grid; gap: 10px; }
.lay-pick button { display: flex; gap: 12px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px; cursor: pointer; }
.lay-pick button.on { border-color: var(--accent); background: var(--accent-soft); }
.lay-pick .pv { flex: 0 0 58px; height: 92px; border-radius: 10px; background: var(--card-2); position: relative; overflow: hidden; border: 1px solid var(--line); }
.lay-pick .pv i { position: absolute; display: block; border-radius: 3px; background: var(--muted); opacity: .35; }
.lay-pick .pv i.a { background: var(--accent); opacity: .9; }
.lay-pick b { display: block; } .lay-pick small { color: var(--muted); font-size: 12.5px; }
[data-layout="cards"] #app { padding-bottom: calc(var(--tabbar-h) + 100px + env(safe-area-inset-bottom)); }
[data-layout="cards"] .row .ic { border-radius: 14px; }
