/* future-me-will-study — λιτό, ουδέτερο, λειτουργικό. */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --subtle: #f5f5f3;
  --hover: #f1f1ef;
  --ink: #18181b;
  --ink-2: #55555d;
  --ink-3: #8b8b93;
  --line: #e8e8e5;
  --line-strong: #d6d6d2;
  --primary: #18181b;
  --on-primary: #ffffff;
  --focus: rgba(24, 24, 27, .14);
  --done: #2e7d4f;
  --prog: #b26b00;
  --danger: #b42318;
  --danger-bg: #fdf3f2;
  --radius: 10px;
  --radius-sm: 7px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #151517;
    --subtle: #1b1b1e;
    --hover: #202024;
    --ink: #ececee;
    --ink-2: #a3a3ab;
    --ink-3: #6f6f78;
    --line: #232327;
    --line-strong: #313137;
    --primary: #ececee;
    --on-primary: #0e0e10;
    --focus: rgba(236, 236, 238, .18);
    --done: #5cb884;
    --prog: #e0a243;
    --danger: #f0786b;
    --danger-bg: #241514;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: 1.375rem; line-height: 1.3; }
h2 { font-size: 1rem; }
h3 { font-size: .95rem; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--subtle); padding: .1em .35em; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: .85rem; }
.tnum { font-variant-numeric: tabular-nums; }
.inline { display: inline; }
.center { text-align: center; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; }
::selection { background: var(--focus); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 680px; margin: 0 auto; height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; }
.topnav { display: none; gap: 2px; margin-right: auto; }
.topnav a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9rem; transition: background .15s var(--ease), color .15s; }
.topnav a:hover { background: var(--hover); color: var(--ink); }
.topnav a.on { color: var(--ink); font-weight: 550; }
.top-actions { margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s var(--ease), color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

/* ---------- bottom tab bar (κινητό) ---------- */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.tabbar-in { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 680px; margin: 0 auto; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px;
  font-size: .7rem; color: var(--ink-3); transition: color .15s; }
.tabbar a .i { width: 21px; height: 21px; }
.tabbar a.on { color: var(--ink); font-weight: 550; }
.badge-n { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: .64rem; font-weight: 600; line-height: 16px; text-align: center; }
.topnav .badge-n { position: static; display: inline-block; margin-left: 4px; vertical-align: 1px; }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .top-in, .tabbar-in { max-width: 760px; }
  .wrap { max-width: 760px; }
}

/* ---------- page header & sub navigation ---------- */
.page-head { padding: 28px 0 18px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--ink-3); margin-bottom: 6px; transition: color .15s; }
.crumb:hover { color: var(--ink); }
.crumb .i { width: 15px; height: 15px; transform: rotate(180deg); }
.page-head .sub { margin-top: 4px; color: var(--ink-2); font-size: .92rem; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.subnav { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 8px 0 10px; font-size: .9rem; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 550; }

.section { margin: 0 0 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.section-head h2 { font-size: .95rem; }
.section-head .meta { font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.section-title { font-size: .95rem; font-weight: 600; margin: 28px 0 10px; }

/* ---------- panels & lists ---------- */
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: 18px; margin: 0 0 14px; }
.list > * + * { border-top: 1px solid var(--line); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty h2 { margin-bottom: 4px; color: var(--ink); }
.empty .btn { margin-top: 16px; }
.narrow { max-width: 380px; margin: 10vh auto 0; }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 440px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 8px; }
.row.end { align-items: flex-end; }
.wrap-gap { flex-wrap: wrap; gap: 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink); }
.hint { font-size: .82rem; font-weight: 400; color: var(--ink-3); line-height: 1.45; }
input, select, textarea {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 11px; width: 100%; min-height: 38px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
input[type=color] { padding: 3px; width: 100%; cursor: pointer; }
input[type=file] { font-size: .85rem; padding: 7px; background: var(--subtle); border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 6px; padding: 4px 10px; margin-right: 10px; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--primary); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: .85rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; font-size: .9rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* switch */
label.toggle { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; font-size: .92rem; font-weight: 400; }
label.toggle input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 10px; background: var(--line-strong);
  position: relative; cursor: pointer; border: 0; padding: 0; flex: none; transition: background .2s var(--ease); }
label.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
label.toggle input:checked { background: var(--primary); }
label.toggle input:checked::after { transform: translateX(14px); background: var(--on-primary); }
label.toggle input:focus-visible { box-shadow: 0 0 0 3px var(--focus); }

/* settings rows */
.fields { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; min-height: 52px; }
.field + .field { border-top: 1px solid var(--line); }
.field > .fl { display: flex; flex-direction: column; gap: 1px; font-size: .92rem; font-weight: 400; min-width: 0; }
.field > .fl .hint { font-size: .8rem; }
.field input:not([type=checkbox]), .field select { width: auto; min-width: 0; max-width: 58%; }
.field input[type=time] { width: 124px; }
.field input[type=number] { width: 90px; text-align: right; }
.field.stacked { flex-direction: column; align-items: stretch; gap: 8px; }
.field.stacked input, .field.stacked select { max-width: none; width: 100%; }
.field label.toggle { width: 100%; }
.times { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.times input[type=time] { width: 118px; }

/* day chips */
.daychips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; }
.daychips label { display: block; }
.daychips input { position: absolute; opacity: 0; pointer-events: none; }
.daychips span { display: block; text-align: center; padding: 7px 0; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  font-size: .82rem; font-weight: 400; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.daychips span:hover { border-color: var(--ink-3); }
.daychips input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.daychips input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s, color .15s, opacity .15s, transform .1s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.btn .i { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { opacity: .88; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn.small { height: 30px; padding: 0 10px; font-size: .83rem; }
.btn.block { width: 100%; height: 40px; }
.btn:disabled { opacity: .55; cursor: progress; }
.linkish { color: var(--ink-2); font-size: .88rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- flash ---------- */
.flash { margin: 18px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--done);
  border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; animation: fade .25s var(--ease); }
.flash.error { border-left-color: var(--danger); background: var(--danger-bg); }
@keyframes fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ---------- status ---------- */
.state { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.done { color: var(--done); }
.state.progress { color: var(--prog); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; }

/* progress line */
.bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--c, var(--ink)); border-radius: 2px; transition: width .6s var(--ease); }

/* ---------- course block (Σήμερα / Μαθήματα) ---------- */
.course-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.course-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; }
a.course-name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.course-meta { font-size: .84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.course-block .bar { margin-bottom: 12px; }
.alert-line { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-size: .88rem; transition: opacity .15s; }
.alert-line:hover { opacity: .85; }
.alert-line .i { width: 16px; height: 16px; }

/* ---------- task item (Σήμερα / Πίσω) ---------- */
.item { padding: 16px; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-title { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.item.done .item-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.item-meta { margin-top: 2px; font-size: .84rem; color: var(--ink-3); }
.item-meta a:hover { color: var(--ink); }
.item-desc { margin-top: 8px; color: var(--ink-2); font-size: .92rem; }
.item-notes { margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--ink-2); font-size: .88rem; white-space: pre-line; }

.files { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.files li + li { border-top: 1px solid var(--line); }
.files a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: .88rem; transition: background .15s; }
.files a:hover { background: var(--hover); }
.files a .i { color: var(--ink-3); width: 16px; height: 16px; }
.files a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files a em { font-style: normal; font-size: .75rem; color: var(--ink-3); }

.item-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.seg { display: inline-grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { font: inherit; font-size: .84rem; padding: 0 12px; height: 32px; border: 0; background: var(--surface); color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button:hover { background: var(--hover); color: var(--ink); }
.seg button.on { background: var(--primary); color: var(--on-primary); }
@media (max-width: 380px) { .seg button { padding: 0 9px; font-size: .8rem; } }

.more-line { margin-top: 12px; }
.more-line > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; color: var(--ink-3);
  border-radius: 6px; padding: 2px 6px 2px 2px; margin-left: -2px; transition: color .15s, background .15s; }
.more-line > summary::-webkit-details-marker { display: none; }
.more-line > summary:hover { color: var(--ink); background: var(--hover); }
.more-line > summary .i { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.more-line[open] > summary { color: var(--ink); }
.more-line[open] > summary .i { transform: rotate(90deg); }
.item-extra { margin-top: 10px; display: flex; flex-direction: column; gap: 14px;
  animation: fade .2s var(--ease); }
.item-extra form { display: flex; flex-direction: column; gap: 8px; }
.item-extra form.row { flex-direction: row; align-items: flex-end; }
.item-extra form.row label { flex: 1; }
.item-extra .btn { align-self: flex-start; }
.item-extra form.row .btn { align-self: auto; }

/* ---------- plan ---------- */
.overview { padding: 4px 16px; }
.ov-row { display: grid; grid-template-columns: 1fr 34% auto; align-items: center; gap: 14px; padding: 11px 0; font-size: .9rem; }
.ov-row + .ov-row { border-top: 1px solid var(--line); }
.ov-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ov-row .n { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

.week { margin: 0 0 22px; }
.week > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0 10px; }
.week > summary::-webkit-details-marker { display: none; }
.week > summary h2 { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.week > summary h2 .i { width: 15px; height: 15px; color: var(--ink-3); transition: transform .2s var(--ease); }
.week[open] > summary h2 .i { transform: rotate(90deg); }
.week > summary .meta { font-size: .84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.week-summary { font-size: .85rem; color: var(--ink-3); margin: -4px 0 10px; }

.trow > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 11px 16px; transition: background .15s; }
.trow > summary::-webkit-details-marker { display: none; }
.trow > summary:hover { background: var(--hover); }
.trow:first-child > summary { border-radius: var(--radius) var(--radius) 0 0; }
.trow:last-child:not([open]) > summary { border-radius: 0 0 var(--radius) var(--radius); }
.trow:only-child:not([open]) > summary { border-radius: var(--radius); }
.tdate { text-align: center; line-height: 1.15; color: var(--ink-3); }
.tdate b { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tdate small { font-size: .72rem; }
.trow.is-today > summary { box-shadow: inset 2px 0 0 var(--ink); }
.today-tag { font-size: .7rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.tmain { min-width: 0; }
.ttitle { font-size: .92rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsub { font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow.done .ttitle { color: var(--ink-3); text-decoration: line-through; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.tick .i { width: 11px; height: 11px; stroke-width: 2.6; }
.tick.done { background: var(--done); border-color: var(--done); color: #fff; }
.tick.progress { border-color: var(--prog); background: linear-gradient(90deg, var(--prog) 50%, transparent 50%); }
.trow-body { padding: 0 16px 16px 70px; animation: fade .2s var(--ease); }
@media (max-width: 480px) { .trow-body { padding-left: 16px; } }
.trow-body .item-desc { margin-top: 0; }

/* ---------- courses list ---------- */
.course-row { display: block; padding: 16px; transition: background .15s; }
.course-row:hover { background: var(--hover); }
.course-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.course-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.course-row:only-child { border-radius: var(--radius); }
.course-row .course-head { margin-bottom: 10px; }
.inactive { opacity: .6; }

/* ---------- files ---------- */
.filerow { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; }
.filerow .i { color: var(--ink-3); width: 18px; height: 18px; }
.fname { min-width: 0; }
.fname a { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.fname small { display: block; font-size: .78rem; color: var(--ink-3); }
.fmenu > summary { list-style: none; }
.fmenu > summary::-webkit-details-marker { display: none; }
.fmenu-body { padding: 0 16px 14px 46px; display: flex; flex-wrap: wrap; gap: 8px; animation: fade .2s var(--ease); }
.fmenu-body form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fmenu-body select, .fmenu-body input { width: auto; flex: 1 1 150px; min-height: 30px; padding: 4px 9px; font-size: .85rem; }
.grp { padding: 12px 16px 6px; font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; padding: 4px 16px 12px; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: var(--subtle); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .15s; }
.gallery a:hover img { opacity: .85; }
.filepick { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filepick-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; }
.filepick-row + .filepick-row { border-top: 1px solid var(--line); }
.filepick-row .check span { font-size: .86rem; }

/* ---------- disclosure panels ---------- */
details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .95rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .i { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
details.card[open] > summary .i { transform: rotate(90deg); }
details.card[open] > summary { margin-bottom: 16px; }
.danger-zone > summary { color: var(--danger); }

/* ---------- log ---------- */
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 11px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.log li + li { border-top: 1px solid var(--line); }
.log .lx { min-width: 0; }
.log .lt { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .lm { font-size: .78rem; color: var(--ink-3); }
.log .ls { font-size: .78rem; white-space: nowrap; color: var(--ink-3); }
.log .ls.sent { color: var(--done); }
.log .ls.failed { color: var(--danger); }

.savebar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); padding: 12px 0; background: var(--bg); z-index: 5;
  border-top: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 768px) { .savebar { bottom: 0; } }
.login-mark { width: 36px; height: 36px; display: block; margin: 0 auto 18px; }
.i.dots { stroke-width: 3.2; }
.narrow .card { margin-top: 20px; }
.fl { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .92rem; font-weight: 400; }
.fl .hint { font-size: .8rem; }
label.toggle > span { min-width: 0; }
.field { min-width: 0; }
html, body { overflow-x: hidden; }

/* ---------- χρονόμετρο ---------- */
.item-actions { flex-wrap: wrap; }
.timer .i { width: 15px; height: 15px; }
.timer.on { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.timer.on:hover { background: var(--danger-bg); opacity: .9; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none;
  animation: pulse 1.6s ease-in-out infinite; margin-left: 6px; vertical-align: 1px; }
.timer .live, .runbar .live { margin-left: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.runbar { position: sticky; top: 52px; z-index: 25; background: var(--surface); border-bottom: 1px solid var(--line); }
.runbar-in { max-width: 680px; margin: 0 auto; padding: 7px 16px; display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.runbar-task { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runbar-task:hover { text-decoration: underline; text-underline-offset: 3px; }
.runbar-time { color: var(--ink-2); }
@media (min-width: 768px) { .runbar-in { max-width: 760px; } }
.hard-tag { color: var(--prog); }
.icon-btn.small-icon { width: 28px; height: 28px; }
.icon-btn.small-icon .i { width: 15px; height: 15px; }

/* ---------- στατιστικά χρόνου ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 24px; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: .78rem; color: var(--ink-3); }
.stat-value { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.chart-panel { padding: 16px 12px 10px; }
.chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 168px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.col-val { font-size: .66rem; color: var(--ink-3); height: 14px; }
.col-track { flex: 1; width: 100%; max-width: 22px; display: flex; align-items: flex-end; }
.col-bar { display: block; width: 100%; height: 0; min-height: 0; background: var(--ink-3); border-radius: 3px 3px 1px 1px;
  transition: height .6s var(--ease); }
.col.is-today .col-bar { background: var(--ink); }
.col-day { font-size: .72rem; color: var(--ink-2); }
.col-wd { font-size: .62rem; color: var(--ink-3); }
.col.is-today .col-day { color: var(--ink); font-weight: 600; }
.chart-hint { margin-top: 8px; text-align: right; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; transition: background .15s; }
.rowlink:hover { background: var(--hover); }
.rl-main { display: flex; flex-direction: column; min-width: 0; }
.rl-title { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-sub { font-size: .78rem; color: var(--ink-3); }
.rl-val { font-size: .88rem; color: var(--ink-2); white-space: nowrap; }

/* ---------- εβδομαδιαίος στόχος ---------- */
.goal { margin-bottom: 12px; }
.goal-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 6px; font-size: .84rem; color: var(--ink-2); }
.goal-text strong { font-weight: 600; color: var(--ink); }
.goal-rest { color: var(--ink-3); }
.course-block .goal .bar { margin-bottom: 0; }
.goal-panel { padding: 14px 16px 2px; margin-bottom: 14px; }
.goal-empty { margin-bottom: 14px; }
.card .row form { margin: 0; }

/* ---------- δημιουργός πλάνου & ισορροπία ---------- */
.plan-note { margin-top: 8px; }
.log .lt.wraps { white-space: normal; }
.hours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hours label { align-items: center; }
.hours input { text-align: center; padding-left: 2px; padding-right: 2px; }
@media (max-width: 440px) { .hours { grid-template-columns: repeat(4, 1fr); } }
.warn-line { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-size: .88rem; }
a.btn .i { flex: none; }

.suggest-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .88rem; }
.suggest-line:hover { background: var(--hover); }
label.move { flex-direction: row; align-items: center; gap: 12px; padding: 11px 16px; font-weight: 400; cursor: pointer; }
label.move input { flex: none; }
h2.course-name { font-size: .95rem; }
.undo-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.warn-line ul { margin: 6px 0 0; padding-left: 18px; }
.savebar.static { position: static; margin-top: 12px; }

/* ---------- δυσκολίες ---------- */
.review-notes { margin-top: 10px; font-size: .95rem; line-height: 1.6; white-space: pre-line; }
.review-item.reviewed .item-title, .review-item.reviewed .review-notes { color: var(--ink-3); }

@media print {
  .top, .tabbar, .runbar, .subnav, .crumb, .no-print, .flash, .btn { display: none !important; }
  body { background: #fff; color: #000; padding: 0; font-size: 12pt; }
  .panel, .card { border: 0; }
  .item { padding: 10px 0; break-inside: avoid; }
  .list > * + * { border-top: 1px solid #ccc; }
}
