/* Timeline · εμφανιση */
:root {
  /* Παλετα enallaktiko.gr */
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f1f3f2;
  --ink: #404752;
  --ink-2: #6f7a86;
  --ink-3: #8a919c;
  --line: #e3e7e5;
  --brand: #3f9a5d;        /* πρασινο για κειμενα/εικονιδια */
  --brand-2: #70c489;      /* το πρασινο του site */
  --brand-deep: #2f6d45;
  --brand-soft: #eaf7ef;
  --brand-ink: #ffffff;
  --btn: #70c489;
  --btn-hover: #5fb57a;
  --sun: #e9a23b;
  --sun-soft: #fdf3e1;
  --coral: #d14545;
  --coral-soft: #fbe7e7;
  --sky: #4b86a8;
  --sky-soft: #e3f0f2;
  --plum: #8a5a83;
  --plum-soft: #f3eaf2;
  --shadow: 0 4px 24px rgba(64, 71, 82, .07);
  --r: 14px;
  --r-s: 10px;
  --tab-h: 68px;
  --font: ui-monospace, 'SF Mono', SFMono-Regular, 'Roboto Mono', Menlo, Consolas, monospace;
  --font-head: 'Verveine', 'Segoe Print', cursive;
  --head: #70c489;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15191c; --surface: #1d2226; --surface-2: #252b30; --ink: #e8ecef; --ink-2: #b0b8c0; --ink-3: #7f8891;
  --line: #2e353b; --brand: #70c489; --brand-2: #8fd3a4; --brand-deep: #3f9a5d; --brand-soft: #1f3528; --brand-ink: #0f1f15;
  --btn: #70c489; --btn-hover: #8fd3a4;
  --sun: #f0b862; --sun-soft: #3a2f1c; --coral: #ef8a72; --coral-soft: #3d241e; --sky: #82b6d3; --sky-soft: #1b2f3b;
  --plum: #c79bc0; --plum-soft: #33232f; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px);
}
#app { max-width: 560px; margin: 0 auto; padding: 0 16px; padding-top: env(safe-area-inset-top); }
a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
.ic { display: inline-flex; flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.grow { flex: 1; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.row.between { justify-content: space-between; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- κουμπια ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: var(--r-s); border: 0; cursor: pointer;
  background: var(--btn); color: #fff; font-weight: 700; font-size: 15px;
  transition: transform .12s, filter .12s, background .2s; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:not(.ghost):not(.soft):not(.danger):not(.sun):hover { background: var(--btn-hover); } }
.btn:disabled { opacity: .5; cursor: default; }
.btn.big { min-height: 54px; font-size: 16px; width: 100%; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px #d5dad8; }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--coral); color: #fff; }
.btn.sun { background: var(--sun); color: #2b1d05; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none;
}
.icon-btn:active { background: var(--surface-2); }
.link-btn { background: none; border: 0; color: var(--brand); font-weight: 600; padding: 6px 0; cursor: pointer; font-size: 14px; }
.link-btn:disabled { color: var(--ink-3); cursor: default; }

/* ---------- φορμες ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.field-hint { font-size: 13px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-s);
  padding: 13px 14px; font-size: 16px; outline: none; transition: border-color .15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
.code-input { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px;
  font-size: 14px; cursor: pointer; font-weight: 550; -webkit-tap-highlight-color: transparent;
}
.chip.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.scale { display: flex; gap: 8px; }
.scale-dot {
  flex: 1; height: 46px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; cursor: pointer;
}
.scale-dot.on { background: var(--btn); color: #fff; border-color: var(--btn); }
.scale-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- κεφαλιδες ---------- */
.hero { padding: 22px 4px 18px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--brand); font-size: 15px; }
.hero-date { font-size: 13px; color: var(--ink-2); }
.hero-hi { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px;
  padding: calc(env(safe-area-inset-top) + 8px) 0 8px; margin: 0 -16px 8px; padding-left: 8px; padding-right: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.topbar-title { font-size: 19px; font-weight: 700; flex: 1; padding-left: 8px; }
.section-title { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 22px 4px 10px; }

/* ---------- καρτες ---------- */
.card {
  background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative;
}
.card.link { cursor: pointer; }
.card.link:active { transform: scale(.995); }
.card-label {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-2); margin-bottom: 10px;
}
.card-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card .lead { color: var(--ink-2); font-size: 15px; }
.tone-brand { background: var(--brand); color: #fff; border-color: transparent; }
.tone-brand .card-label, .tone-brand .lead { color: rgba(255,255,255,.85); }
.tone-sun { background: var(--sun-soft); border-color: transparent; }
.tone-sky { background: var(--sky-soft); border-color: transparent; }
.tone-coral { background: var(--coral-soft); border-color: transparent; }
.tone-plum { background: var(--plum-soft); border-color: transparent; }
.tone-soft { background: var(--brand-soft); border-color: transparent; }

.quote { margin: 8px 4px 0; padding: 18px 4px; border-top: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; font-style: italic; color: var(--ink); font-weight: 400; }
.quote figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .ic { color: var(--ink-3); }

.menu { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: var(--surface-2); }
.menu-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.menu-txt { flex: 1; display: flex; flex-direction: column; }
.menu-txt small { color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.menu-item > .ic:last-child { color: var(--ink-3); }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.sun { background: var(--sun-soft); color: #9a6411; }
.tag.coral { background: var(--coral-soft); color: var(--coral); }
.tag.sky { background: var(--sky-soft); color: var(--sky); }
.tag.plum { background: var(--plum-soft); color: var(--plum); }

.foot { text-align: center; font-size: 12px; color: var(--ink-3); margin: 28px 0 8px; }
.prose { font-size: 16.5px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose strong { font-weight: 700; }
.prose em { color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 650; -webkit-tap-highlight-color: transparent;
}
.tab.on { color: var(--brand); }
.tab-ic { display: flex; }
.tab-sos .tab-ic {
  width: 52px; height: 52px; margin-top: -22px; border-radius: 999px; background: var(--coral); color: #fff;
  align-items: center; justify-content: center; box-shadow: 0 6px 18px color-mix(in srgb, var(--coral) 45%, transparent);
  border: 4px solid var(--bg);
}
.tab-sos { color: var(--coral); }
.tab-sos.on { color: var(--coral); }

/* ---------- toast & sheet ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 550;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet-back { position: fixed; inset: 0; background: rgba(10, 15, 13, .4); z-index: 50; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.sheet-back.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; transform: translateY(30px); transition: transform .22s;
}
.sheet-back.show .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 14px; }
.sheet-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.sheet-body { display: flex; flex-direction: column; gap: 14px; }

/* ---------- login / onboarding ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 6px; gap: 10px; }
.login-logo { color: var(--brand); margin-bottom: 8px; }
.login-title { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.login-sub { color: var(--ink-2); font-size: 17px; margin-bottom: 18px; }
.login-msg { color: var(--coral); font-size: 14px; min-height: 20px; font-weight: 550; }
.login-help { font-size: 14px; color: var(--ink-2); }
.onb { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 6px; }
.onb-ic { width: 84px; height: 84px; border-radius: 26px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.onb h1 { font-size: 28px; font-weight: 750; }
.onb p { color: var(--ink-2); font-size: 17px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 9px; background: var(--line); transition: .2s; }
.onb-dots span.on { width: 24px; background: var(--brand); }

/* ---------- κοινα στοιχεια ενοτητων ---------- */
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dot { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-2); }
.dot.full { background: var(--btn); }
.dot.min { background: color-mix(in srgb, var(--btn) 45%, var(--surface-2)); }
.dot.miss { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.dot.today { outline: 2px solid var(--sun); outline-offset: 1px; }
.dot.future { opacity: .35; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border-radius: var(--r-s); padding: 12px; }
.stat b { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--ink-2); line-height: 1.3; display: block; }
.tone-brand .stat { background: rgba(255,255,255,.12); }
.tone-brand .stat span { color: inherit; opacity: .8; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-weight: 650; font-size: 15px; line-height: 1.3; min-height: 110px;
}
.choice .ic { color: var(--brand); }
.choice small { font-weight: 450; color: var(--ink-2); font-size: 13px; }
.choice.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }

.check3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.check3 button {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 12px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 650; font-size: 13.5px; line-height: 1.2;
}
.check3 button small { font-weight: 450; color: var(--ink-2); font-size: 11.5px; }
.check3 button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.check3 button.on.miss { border-color: var(--ink-3); background: var(--surface-2); color: var(--ink); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-s); background: var(--sun-soft); font-size: 14.5px; }
.banner .ic { color: #b77b16; margin-top: 1px; }

@media (min-width: 600px) {
  .hero-hi { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .tabbar, .topbar .icon-btn, .no-print, .toast { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; }
}

input[type=datetime-local] { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 13px 14px; font-size: 16px; outline: none; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }

/* ---------- SOS: το κυμα ---------- */
.breath {
  width: 190px; height: 190px; margin: 6px auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sky) 55%, #fff), var(--sky));
  transform: scale(.62); transition: transform 4s ease-in-out; box-shadow: 0 0 0 18px color-mix(in srgb, var(--sky) 14%, transparent);
}
.breath.in { transform: scale(1); }
.breath.in.out { transform: scale(.62); transition-duration: 6s; }
.breath-txt { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.breath-clock { font-size: 32px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.breath-prompt { color: var(--ink-2); min-height: 48px; max-width: 340px; margin: 0 auto; }

/* ---------- Διαδρομη ---------- */
.path { position: relative; display: flex; flex-direction: column; gap: 10px; }
.path::before { content: ''; position: absolute; left: 33px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.path-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.path-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 750; background: var(--surface-2); color: var(--ink-3); position: relative; z-index: 1; }
.path-item.done .path-dot { background: var(--brand); color: var(--brand-ink); }
.path-item.open { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.path-item.open .path-dot { background: var(--sun); color: #2b1d05; }
.path-item.locked, .path-item.wait { opacity: .7; }
.path-txt { flex: 1; display: flex; flex-direction: column; }
.path-txt small { color: var(--ink-2); font-size: 13px; }
.quiz-opt { text-align: left; padding: 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; line-height: 1.4; }
.quiz-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.quiz-opt.right { border-color: var(--brand); background: var(--brand-soft); font-weight: 650; }

/* ---------- Γραμμα ---------- */
.envelope { position: relative; height: 150px; border-radius: 14px; background: var(--sun-soft); border: 1px solid color-mix(in srgb, var(--sun) 35%, transparent); overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 80px; background: color-mix(in srgb, var(--sun) 28%, var(--sun-soft)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env-seal { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.envelope.ready .env-seal { background: var(--brand); }
.env-txt { position: relative; display: flex; flex-direction: column; }
.env-txt small { color: var(--ink-2); }
.letter-paper { font-size: 17px; line-height: 1.75; background: var(--surface); padding: 24px; }
.letter-paper p + p { margin-top: 14px; }

/* ---------- Νικες ---------- */
.jar { display: inline-flex; flex: none; }

/* ---------- Χρησιμα ---------- */
.fold { padding: 0; overflow: hidden; }
.fold summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary > .ic:last-child { color: var(--ink-3); transition: transform .2s; }
.fold[open] summary > .ic:last-child { transform: rotate(90deg); }
.fold-body { padding: 4px 16px 18px; }
.blog-card { display: block; text-decoration: none; color: var(--ink); border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--surface-2); }
.blog-card b { display: block; padding: 12px 14px; }
.summary p + p { margin-top: 6px; }

.tone-brand input, .tone-brand textarea, .tone-brand select { color: var(--ink); }

/* λογοτυπο Εναλλακτικου */
.logo { display: block; height: 34px; width: auto; }
.login .logo { height: 54px; margin-bottom: 6px; }
:root[data-theme="dark"] .logo { filter: brightness(0) invert(.92); }
.brand-sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.tone-brand .btn { background: #fff; color: var(--brand-deep); }
.hero .logo { height: 40px; }
:root[data-theme="dark"] .tone-brand { background: var(--brand-deep); }

/* ---------- τυπογραφια enallaktiko.gr: σωμα SF Mono, τιτλοι Verveine ---------- */
.hero-hi, .login-title, .topbar-title, .onb h1, .page-path h2, .sheet-title, .card-title, .empty + h2 {
  font-family: var(--font-head); font-weight: 400; letter-spacing: 0;
}
.hero-hi { font-size: 40px; color: var(--head); line-height: 1.1; }
.login-title { font-size: 52px; color: var(--head); }
.topbar-title { font-size: 28px; color: var(--head); }
.onb h1 { font-size: 34px; color: var(--head); }
.page-path h2 { font-size: 38px !important; color: var(--head); }
.card-title { font-size: 25px; line-height: 1.15; }
.tone-brand .card-title { color: #fff; }
.sheet-title { font-size: 26px; }
.btn, .chip, .tab, .card-label, .field-label, .section-title, .tag { font-family: var(--font); }
.quote blockquote { font-style: normal; }
