/* Πρόγραμμα εργασιών · «Λιτό μπλε»: λευκό και ανοιχτό γκρι-μπλε, μπλε του λογοτύπου, Commissioner (όπως το site).
   Κάθε κατάσταση έχει σχήμα + χρώμα + λέξη: ○ Νέα · ◐ Σε εξέλιξη · ◇ Αναμονή · ✓ Έγινε · ▲ καθυστέρηση. */

@font-face {
  font-family: "Commissioner"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/commissioner-greek.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/commissioner-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/commissioner-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Διάταξη: σταθερή μπάρα πάνω, περιεχόμενο έως 1600px, πάνελ λεπτομερειών δεξιά (PC) ή πλήρης οθόνη (κινητό). */
:root {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --sunken: #e8edf4;
  --ink: #14233a;
  --ink-2: #384860;
  --muted: #5f6e86;
  --line: #dce3ed;
  --line-2: #c6d0de;
  --accent: #1572c0;
  --accent-hover: #0f5fa3;
  --accent-soft: #e3effa;
  --on-accent: #ffffff;
  --st-new: #6c4ed8;          /* Νέα: μωβ */
  --st-new-soft: #ece7fd;
  --st-doing: #1572c0;        /* Σε εξέλιξη: μπλε λογοτύπου */
  --st-doing-soft: #dcebfa;
  --st-wait: #e98a00;         /* Αναμονή: πορτοκαλί */
  --st-wait-ink: #9c5600;     /* ίδιο, σκουρότερο για κείμενο */
  --st-wait-soft: #ffeccc;
  --st-done: #1b8f50;         /* Έγινε: πράσινο */
  --st-done-soft: #d9f2e3;
  --on-st: #ffffff;
  --ok-soft: #d9f2e3;
  --late: #d92d20;            /* Καθυστέρηση: κόκκινο */
  --late-soft: #fde3e0;
  --toast-bg: #14233a;
  --toast-fg: #ffffff;
  --toast-link: #8cc6ff;
  --scrim: rgba(12, 22, 38, .42);
  --shadow: 0 1px 2px rgba(20, 35, 58, .06), 0 1px 6px rgba(20, 35, 58, .04);
  --shadow-lg: 0 12px 40px rgba(20, 35, 58, .2);
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 10px;
  --detail-w: 520px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d131c; --surface: #151d29; --surface-2: #1a2431; --sunken: #101721; --ink: #e4eaf3; --ink-2: #c1ccdb;
    --muted: #93a1b6; --line: #253041; --line-2: #33415a; --accent: #4b9fe6; --accent-hover: #6db2ee; --accent-soft: #14304b;
    --on-accent: #08131f; --st-new: #a08cf7; --st-new-soft: #251e45; --st-doing: #4ea3ec; --st-doing-soft: #10304f;
    --st-wait: #f5a524; --st-wait-ink: #f5b24a; --st-wait-soft: #3b2a0a; --st-done: #45c47f; --st-done-soft: #0f3220; --on-st: #0d131c;
    --ok-soft: #0f3220; --late: #ff6a5c; --late-soft: #401714; --toast-bg: #e4eaf3; --toast-fg: #0d131c;
    --toast-link: #0f5fa3; --scrim: rgba(0, 0, 0, .55); --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 14px 44px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d131c; --surface: #151d29; --surface-2: #1a2431; --sunken: #101721; --ink: #e4eaf3; --ink-2: #c1ccdb;
  --muted: #93a1b6; --line: #253041; --line-2: #33415a; --accent: #4b9fe6; --accent-hover: #6db2ee; --accent-soft: #14304b;
  --on-accent: #08131f; --st-new: #a08cf7; --st-new-soft: #251e45; --st-doing: #4ea3ec; --st-doing-soft: #10304f;
  --st-wait: #f5a524; --st-wait-ink: #f5b24a; --st-wait-soft: #3b2a0a; --st-done: #45c47f; --st-done-soft: #0f3220; --on-st: #0d131c;
  --ok-soft: #0f3220; --late: #ff6a5c; --late-soft: #401714; --toast-bg: #e4eaf3; --toast-fg: #0d131c;
  --toast-link: #0f5fa3; --scrim: rgba(0, 0, 0, .55); --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 14px 44px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ================= Βάση ================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0; }
.center { text-align: center; }
.mobile-only { display: none; }
.boot-msg { padding: 40px 20px; text-align: center; color: var(--muted); }

.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i .f { fill: currentColor; stroke: none; }
.st { width: 18px; height: 18px; flex-shrink: 0; }
.st .o { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.st .f { fill: currentColor; }
.st .k { fill: none; stroke: var(--surface); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st--new { color: var(--st-new); }
.st--doing { color: var(--st-doing); }
.st--waiting { color: var(--st-wait); }
.st--done { color: var(--st-done); }
.st--inbox { color: var(--accent); }
.st--rejected { color: var(--muted); }
.urg { color: var(--late); font-weight: 800; letter-spacing: -.03em; }
.req-mark { color: var(--accent); font-weight: 800; }
.is-late { color: var(--late); font-weight: 650; }
.wait { color: var(--st-wait-ink); }

/* ---------- Κουμπιά, πεδία ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn .i { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--sunken); }
.btn--danger { color: var(--late); }
.btn--sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn--big { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--sunken); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn--sm { width: 30px; height: 30px; }
.icon-btn--sm .i { width: 16px; height: 16px; }
.icon-btn.is-armed { background: var(--late-soft); color: var(--late); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-align: left; }
.link:hover { text-decoration: underline; }
.link .i { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; min-width: 0; }
.field > span, .field > legend { font-size: 14px; font-weight: 600; color: var(--ink-2); }
fieldset.field { border: 0; padding: 0; }
.field input, .field select, .field textarea, .inline input {
  width: 100%; min-height: 42px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px;
  background: var(--surface); color: var(--ink); font-size: 15px;
}
.field textarea { padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.inline { display: flex; gap: 6px; align-items: center; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; margin: 8px 0; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.form-error { color: var(--late); background: var(--late-soft); padding: 10px 12px; border-radius: 9px; font-size: 14px; margin: 10px 0; }
.form-error--big { font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; align-items: end; }
.form-grid > .btn { justify-self: start; margin: 10px 0; }
.full { grid-column: 1 / -1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; position: relative;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .i { width: 16px; height: 16px; }
.chip--av { padding-left: 4px; }
.chip--av .av { width: 26px; height: 26px; }
.chip--urg.is-on { background: var(--late-soft); border-color: var(--late); color: var(--late); }
.chip--urg.is-on .urg { color: var(--late); }
.chip--date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sel { display: inline-flex; align-items: center; gap: 6px; }
.sel__lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.sel select, .prop__v select, .prop__v input {
  height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink);
  padding: 0 8px; font-size: 14px; max-width: 100%;
}
.sel--btn select { height: 32px; font-size: 13px; font-weight: 600; }
.count-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px;
  border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700;
}
.pill--admin { background: var(--st-new-soft) !important; color: var(--st-new) !important; }
.inrow__for { color: var(--accent); font-weight: 700; }
.pill--mgr { background: var(--st-done-soft) !important; color: var(--st-done) !important; }
.dept-pick { max-width: 360px; margin: 0 0 14px; }
.dept-pick select { font-weight: 650; }
.pill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

.av {
  --c: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 750; letter-spacing: .02em;
}
.av--none { background: var(--sunken); color: var(--muted); }
.av--lg { width: 38px; height: 38px; font-size: 14px; }
.av--req { background: var(--accent-soft); color: var(--accent); }
.av--req .i { width: 15px; height: 15px; }

/* ================= Μπάρα κορυφής ================= */
.demo-bar { background: var(--st-wait-soft); color: var(--ink); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 20px; max-width: 1600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; font-weight: 750; font-size: 17px; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.top__title { display: none; }
.tabs { display: flex; gap: 2px; margin-left: 14px; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-weight: 600; }
.tab:hover { background: var(--sunken); }
.tab[aria-current] { background: var(--accent-soft); color: var(--accent); }
.search { position: relative; display: flex; align-items: center; margin-left: auto; width: min(320px, 28vw); }
.search > .i { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 34px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); color: var(--ink); font-size: 14px;
}
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.search__kbd { position: absolute; right: 9px; font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.search input:focus ~ .search__kbd { display: none; }
.search-toggle { display: none; }
.top__inbox {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-weight: 600;
}
.top__inbox:hover, .top__inbox[aria-current] { border-color: var(--accent); color: var(--accent); }
.top__inbox .count, .bottom-nav .count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 750;
}
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--late); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.av-btn { border: 0; background: none; padding: 4px; border-radius: 50%; }
.av-btn .av { width: 32px; height: 32px; font-size: 12px; }
.offline { font-size: 12px; font-weight: 700; color: var(--late); background: var(--late-soft); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }

/* ---------- Αναδυόμενα (ειδοποιήσεις, μενού) ---------- */
.pop {
  position: absolute; right: 16px; top: calc(100% + 6px); width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40;
}
.pop__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.pop__head h2 { font-size: 16px; margin: 0; }
/* ---------- Συναγερμός επειγόντων ---------- */
.alarm { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(170, 20, 10, .55); animation: alarm-bg 1.2s ease-in-out infinite; }
@keyframes alarm-bg { 0%, 100% { background: rgba(170, 20, 10, .58); } 50% { background: rgba(170, 20, 10, .3); } }
.alarm__in { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 4px solid var(--late); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lg); }
.alarm__h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--late); font-size: 26px; font-weight: 800; letter-spacing: .05em; }
.alarm__h .i { width: 30px; height: 30px; }
.alarm__item { padding: 12px 0; border-top: 1px solid var(--line); }
.alarm__title { font-size: 18px; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
.alarm__meta { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.alarm__ok, .alarm__ok:hover { width: 100%; background: var(--late); border-color: var(--late); color: #fff; }
.alarm__note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .alarm { animation: none; } }
.pop__push { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 12px 8px; padding: 10px 12px; border-radius: 10px; background: var(--st-done-soft); color: var(--st-done); font-size: 13px; font-weight: 600; }
.pop__push .i { width: 16px; height: 16px; }
.pop__push span { flex: 1 1 160px; }
.pop__note { margin: 0 12px 8px; padding: 10px 12px; border-radius: 10px; background: var(--st-wait-soft); font-size: 13px; }
.nudge { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--accent); font-size: 14.5px; }
.nudge > .i { color: var(--accent); width: 20px; height: 20px; }
.nudge > span:first-of-type { flex: 1 1 240px; }
.nudge__acts { display: inline-flex; align-items: center; gap: 12px; }
.pop__perm { display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); margin: 0 12px 8px; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; text-align: left; }
.nlist { list-style: none; margin: 0; padding: 0 6px 8px; }
.nlist__empty { padding: 16px 12px; }
.nitem { display: flex; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14px; color: var(--ink); }
.nitem:hover { background: var(--surface-2); }
.nitem.is-unread { background: var(--accent-soft); }
.nitem__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nitem__text .muted { font-size: 12px; }
.pop__me { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.pop__me .av { width: 40px; height: 40px; font-size: 14px; }
.pop__me div { display: flex; flex-direction: column; min-width: 0; }
.pop__me .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.pop__nav { display: flex; flex-direction: column; padding: 6px; border-bottom: 1px solid var(--line); }
.pop__nav button, .pop__nav a, .pop__logout {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px;
  background: none; color: var(--ink); font-weight: 600; text-decoration: none; text-align: left; width: 100%;
}
.pop__nav button:hover, .pop__nav a:hover, .pop__logout:hover { background: var(--surface-2); }
.pop__theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pop__theme > span { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.seg { display: inline-flex; background: var(--sunken); border-radius: 9px; padding: 3px; }
.seg__b { border: 0; background: none; padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg__b.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pop__logout { margin: 6px; width: calc(100% - 12px); color: var(--late); }

/* ================= Περιεχόμενο ================= */
.main { max-width: 1600px; margin: 0 auto; padding: 20px 20px 80px; transition: padding-right .2s ease; }
.page-head { margin: 4px 0 16px; }
.page-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -.01em; margin: 0; }
.page-head p { margin: 4px 0 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; }
.clear { font-size: 14px; }
.banner {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; margin: 0 0 16px;
  border: 1px solid transparent; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 15px; text-align: left;
}
.banner:hover { border-color: var(--accent); }
.banner__go { margin-left: auto; font-weight: 800; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty__big { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.empty .btn { margin-top: 10px; }
.empty--small { padding: 18px 8px; }
.empty--small p { margin: 0; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; }
.block__h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin: 2px 0 10px; }
.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--st-wait-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.notice p { margin: 2px 0; }
.notice--warn { background: var(--late-soft); display: block; }

/* ---------- Σήμερα ---------- */
.tsec { margin: 0 0 22px; }
.tsec__h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tsec__h .count-pill { background: var(--sunken); }
.tsec--late .tsec__h { color: var(--late); }
.tsec--late .tsec__h .i { width: 16px; height: 16px; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row--st-new { box-shadow: inset 5px 0 0 var(--st-new); }
.row--st-doing { box-shadow: inset 5px 0 0 var(--st-doing); }
.row--st-waiting { box-shadow: inset 5px 0 0 var(--st-wait); }
.row__main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 16px; min-height: 58px; border: 0; background: none; text-align: left; }
.row__main:hover { background: var(--surface-2); }
.row__main .st { margin-top: 2px; }
.row__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row__title { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.row__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.row__meta .i { width: 14px; height: 14px; }
.tick { width: 58px; flex-shrink: 0; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.tick .i { width: 24px; height: 24px; }
.tick:hover { background: var(--ok-soft); color: var(--st-done); }
.done-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--st-done); font-weight: 600; margin: 24px 0; }

/* ---------- Πίνακας ---------- */
.inbox-strip { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px 6px; margin: 0 0 16px; }
.inbox-strip__h, .block__h { color: var(--ink); }
.inbox-strip__h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 4px; color: var(--accent); }
.inbox-strip__h .count-pill { background: var(--accent-soft); color: var(--accent); }
.inbox-strip > .link { margin: 6px 0 8px; }
.inrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.inbox-strip__h + .inrow, .block__h + .inrow { border-top: 0; }
.inrow__main { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; }
.inrow__title { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.inrow__main:hover .inrow__title { color: var(--accent); }
.inrow__meta { font-size: 13px; color: var(--muted); }
.inrow--stop .inrow__meta b { color: var(--late); }
.inrow__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.col {
  --st: var(--line-2); --st-soft: var(--sunken); --st-ink: var(--ink);
  background: var(--st-soft); border-radius: 12px; padding: 10px; min-height: 180px;
  border: 2px solid transparent; border-top: 5px solid var(--st);
}
.col--new { --st: var(--st-new); --st-soft: var(--st-new-soft); --st-ink: var(--st-new); }
.col--doing { --st: var(--st-doing); --st-soft: var(--st-doing-soft); --st-ink: var(--st-doing); }
.col--waiting { --st: var(--st-wait); --st-soft: var(--st-wait-soft); --st-ink: var(--st-wait-ink); }
.col--done { --st: var(--st-done); --st-soft: var(--st-done-soft); --st-ink: var(--st-done); }
.col.is-over { border-color: var(--accent); border-style: dashed; background: var(--accent-soft); }
.col__head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px 4px; }
.col__head h2 { font-size: 13.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin: 0; color: var(--st-ink); }
.col__head .st { width: 20px; height: 20px; }
.col__head .count-pill { background: var(--st); color: var(--on-st); }
.col__head .icon-btn { color: var(--st-ink); }
.col__head .icon-btn { margin-left: auto; }
.col__list { display: flex; flex-direction: column; gap: 8px; }
.col__empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 6px; margin: 0; }
.col__more { margin: 10px 4px 2px; font-size: 13px; }

.card {
  --stripe: var(--line-2);
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--stripe); border-radius: 10px;
  padding: 10px 12px 9px; box-shadow: var(--shadow); cursor: pointer; overflow-wrap: anywhere;
}
.card--st-new { --stripe: var(--st-new); }
.card--st-doing { --stripe: var(--st-doing); }
.card--st-waiting { --stripe: var(--st-wait); }
.card--st-done { --stripe: var(--st-done); }
.card:hover { border-color: var(--line-2); border-left-color: var(--stripe); }
.card--done { opacity: .8; }
/* Επείγουσες: κόκκινο πλαίσιο που αναβοσβήνει (χωρίς κίνηση αν η συσκευή ζητά «λιγότερη κίνηση») */
.card--urgent { outline: 3px solid var(--late); outline-offset: 1px; animation: urgent-blink 1.2s ease-in-out infinite; }
.row--urgent { outline: 3px solid var(--late); outline-offset: -3px; animation: urgent-blink 1.2s ease-in-out infinite; }
@keyframes urgent-blink { 0%, 100% { outline-color: var(--late); } 50% { outline-color: transparent; } }
.card.is-dragging { opacity: .4; }
.card__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; margin: 0 0 5px; }
.card__due, .card__wait, .card__from { font-size: 13px; margin: 2px 0; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card__due .i { width: 14px; height: 14px; color: var(--st-done); }
.card__due.is-late { color: var(--late); }
.card__wait { color: var(--st-wait-ink); font-weight: 600; }
.card__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 24px; }
.card__foot .av { width: 24px; height: 24px; font-size: 10px; }
.counts { display: inline-flex; gap: 9px; margin-left: auto; color: var(--muted); font-size: 12.5px; flex-shrink: 0; white-space: nowrap; }
.counts span { display: inline-flex; align-items: center; gap: 3px; }
.counts .i { width: 14px; height: 14px; }
.cat { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.cat__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card__foot .av { flex-shrink: 0; }
.cat .i { width: 14px; height: 14px; }

.mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mtile {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 650; font-size: 15px; color: var(--ink); text-align: left;
}
.mtile b { margin-left: auto; font-size: 19px; }
.mtile--new { --st: var(--st-new); --st-soft: var(--st-new-soft); }
.mtile--doing { --st: var(--st-doing); --st-soft: var(--st-doing-soft); }
.mtile--waiting { --st: var(--st-wait); --st-soft: var(--st-wait-soft); }
.mtile--done { --st: var(--st-done); --st-soft: var(--st-done-soft); }
.mtile { background: var(--st-soft); border-color: transparent; border-left: 6px solid var(--st); }
.mtile b { color: var(--st); }
.mtile.is-on { background: var(--st); color: var(--on-st); }
.mtile.is-on b, .mtile.is-on .st { color: var(--on-st); }
.mtile.is-on .st .k { stroke: var(--st); }
.mlist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ---------- Λίστα ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tlist { width: 100%; border-collapse: collapse; }
.tlist th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tlist td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tlist tbody tr:first-child td { border-top: 0; }
.tlist tr[data-act] { cursor: pointer; }
.tlist tr[data-act]:hover td { background: var(--surface-2); }
.tlist .tr--st-new td:first-child { box-shadow: inset 5px 0 0 var(--st-new); }
.tlist .tr--st-doing td:first-child { box-shadow: inset 5px 0 0 var(--st-doing); }
.tlist .tr--st-waiting td:first-child { box-shadow: inset 5px 0 0 var(--st-wait); }
.tlist .tr--st-done td:first-child { box-shadow: inset 5px 0 0 var(--st-done); }
.tlist .tr--st-inbox td:first-child { box-shadow: inset 5px 0 0 var(--accent); }
.c-st { width: 40px; }
.c-st .st { margin-top: 2px; }
.c-who { width: 56px; }
.c-due { width: 200px; white-space: nowrap; font-size: 14px; }
.c-due .i { width: 14px; height: 14px; color: var(--st-done); vertical-align: -2px; margin-right: 4px; }
.c-no { width: 60px; color: var(--muted); font-weight: 700; }
.c-title .t { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.c-title .sub { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.c-title .sub .i { width: 14px; height: 14px; }
.schip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.schip .st { width: 16px; height: 16px; }

/* ---------- Αιτήματα, Ομάδα, Επαναλαμβανόμενες, Κάδος ---------- */
.share__url { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__url code, .share code { background: var(--sunken); padding: 5px 9px; border-radius: 7px; font-size: 13px; overflow-wrap: anywhere; }
.share p { font-size: 14px; }
.mrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.block__h + .mrow, .block > .mrow:first-child { border-top: 0; }
.mrow--off { opacity: .55; }
.mrow__text { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.mrow__text .muted { font-size: 13px; overflow-wrap: anywhere; }
.mrow__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rule { display: flex; flex-wrap: wrap; gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.rule--off { opacity: .6; }
.rule__text { flex: 1 1 320px; min-width: 0; }
.rule__text h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 4px; }
.rule__text h3 .i { color: var(--accent); }
.rule__text p { margin: 2px 0; font-size: 14px; }
.rule__acts { display: flex; gap: 6px; flex-wrap: wrap; align-self: center; }

/* ================= Πάνελ λεπτομερειών ================= */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 45; }
.detail {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--detail-w), 100%); z-index: 50;
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top, 0px);
}
.detail__bar { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.detail__crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.detail__crumb .i { width: 15px; height: 15px; color: var(--accent); }
.detail__tools { margin-left: auto; display: flex; gap: 2px; }
.detail__loading { padding: 30px 20px; color: var(--muted); }
.detail__body { flex: 1; overflow-y: auto; padding: 16px 20px calc(40px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.detail__title {
  display: block; width: calc(100% + 16px); margin: 0 -8px 10px; padding: 6px 8px; resize: none; overflow: hidden;
  font-size: 21px; font-weight: 700; line-height: 1.28; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink);
}
.detail__title:hover { border-color: var(--line); }
.detail__title:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.reqbox { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.reqbox p { margin: 3px 0; overflow-wrap: anywhere; }
.reqbox--stop { background: var(--late-soft); }
.reqbox__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sel-text { user-select: all; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 14px; }
.sbtn {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 4px 6px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13.5px; text-align: center;
}
.sbtn:hover { border-color: var(--ink-2); }
.sbtn--new { --st: var(--st-new); }
.sbtn--doing { --st: var(--st-doing); }
.sbtn--waiting { --st: var(--st-wait); }
.sbtn--done { --st: var(--st-done); }
.sbtn:hover { border-color: var(--st); }
.sbtn.is-on { background: var(--st); border-color: var(--st); color: var(--on-st); font-weight: 750; }
.sbtn.is-on .st { color: var(--on-st); }
.sbtn.is-on .st .k { stroke: var(--st); }
.field--wait { margin-top: -4px; }
.props { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; margin: 0 0 6px; }
.prop { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; min-height: 46px; padding: 4px 0; }
.prop__k { font-size: 13px; font-weight: 600; color: var(--muted); }
.prop__v { display: flex; align-items: center; gap: 6px; min-width: 0; }
.prop__v--wrap { flex-wrap: wrap; padding: 4px 0; }
.prop__v .chip { min-height: 32px; padding: 0 10px; font-size: 13px; }
.prop__v input[type="date"] { width: 150px; }
.prop__v input[type="time"] { width: 110px; }
.prop__v input:disabled { opacity: .45; }
.prop__v .i { width: 16px; height: 16px; color: var(--accent); }
.prop__hint { width: 100%; font-size: 12.5px; color: var(--muted); }
.prop__hint.is-late { color: var(--late); }
.yesno { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.yesno__b { min-width: 70px; height: 36px; padding: 0 14px; border: 0; background: var(--surface); color: var(--ink-2); font-weight: 750; font-size: 13.5px; letter-spacing: .03em; }
.yesno__b + .yesno__b { border-left: 1px solid var(--line-2); }
.yesno__b:hover { background: var(--surface-2); }
.yesno__b.is-on { background: var(--ink-2); color: var(--surface); }
.yesno__b--yes.is-on { background: var(--late); color: #fff; }
.dsec { margin: 20px 0; }
.dsec h3 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.notes {
  display: block; width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface-2); color: var(--ink); line-height: 1.5; resize: vertical; overflow: hidden;
}
.notes:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.progress { height: 6px; background: var(--sunken); border-radius: 99px; overflow: hidden; margin: 0 0 6px; }
.progress span { display: block; height: 100%; background: var(--st-done); border-radius: 99px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 6px; min-height: 44px; border-bottom: 1px dashed var(--line); }
.steps label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; min-width: 0; overflow-wrap: anywhere; }
.steps input { width: 20px; height: 20px; accent-color: var(--st-done); flex-shrink: 0; margin: 0; }
.steps .is-done span { text-decoration: line-through; color: var(--muted); }
.addstep input { width: 100%; height: 42px; margin-top: 8px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: 9px; background: transparent; color: var(--ink); }
.addstep input:focus { outline: none; border-style: solid; border-color: var(--accent); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.thumb { margin: 0; min-width: 0; }
.thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sunken); }
.thumb figcaption { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.thumb figcaption span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; min-width: 0; }
.fchip > a:not(.icon-btn) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fchip .muted { font-size: 12px; white-space: nowrap; }
.upl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.upl .hint { margin: 0; }
.cmts { list-style: none; margin: 0 0 8px; padding: 0; }
.cmt { display: flex; gap: 10px; margin: 0 0 12px; }
.cmt__body { min-width: 0; flex: 1; }
.cmt--public .cmt__body { border-left: 3px solid var(--accent); padding-left: 9px; }
.cmt__head { margin: 0; font-size: 13px; }
.cmt__text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cform textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); resize: vertical; }
.cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cform__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.cform__foot .check { margin: 0; font-size: 13px; }
.dsec--hist summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--muted); }
.hist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.hist li { margin: 5px 0; }
.meta { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }

/* ================= Παράθυρα (γρήγορη προσθήκη κ.λπ.) ================= */
.modal-back { position: fixed; inset: 0; background: var(--scrim); z-index: 60; }
.modal {
  position: fixed; left: 50%; top: 10vh; transform: translateX(-50%); width: min(600px, calc(100% - 32px)); max-height: 82vh; overflow-y: auto;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 61; padding: 16px 20px 18px;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.modal__head h2 { font-size: 18px; margin: 0; }
.modal > p { margin: 4px 0 10px; }
.modal__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
/* Νέα εργασία: κεφαλίδα με γραμμή, σώμα με αέρα, κουμπί κάτω σε δική του μπάρα */
.modal.add { width: min(680px, calc(100% - 32px)); padding: 0; }
.add .modal__head { padding: 16px 24px 14px; margin: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.add .modal__head h2 { font-size: 20px; font-weight: 750; }
.add__body { padding: 18px 24px 8px; }
.add .modal__foot { margin: 0; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.add__titlef { margin: 0 0 14px; }
.add .field > span { font-size: 14px; }
.add__title { font-size: 17px !important; font-weight: 600; }
.add__title::placeholder { color: var(--muted); opacity: .55; font-weight: 400; }
.add__row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; margin: 10px 0; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.add__lbl { font-size: 14px; font-weight: 650; color: var(--ink-2); padding-top: 8px; }
.add__row .chips { gap: 8px; }
.add__notes { margin: 0 0 18px; }
.add__notes textarea { min-height: 80px; }
.req-star { color: var(--late); font-weight: 800; }
.add__from { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 4px 12px; background: var(--surface-2); border-radius: 10px; }
.add__more { margin: 14px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.add__more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0; }
.add__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* ================= Μήνυμα κάτω ================= */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); padding: 11px 16px;
  background: var(--toast-bg); color: var(--toast-fg); border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px;
}
.toast--error { background: var(--late); color: #fff; }
.toast > span { max-width: 560px; line-height: 1.4; }
.toast__undo { border: 0; background: none; color: var(--toast-link); font-weight: 750; padding: 4px 2px; }
.toast--error .toast__undo { color: #fff; text-decoration: underline; }

/* ================= Κινητό ================= */
.bottom-nav, .fab { display: none; }

@media (min-width: 1280px) {
  body.has-detail .main { padding-right: calc(var(--detail-w) + 20px); }
  body.has-detail .board { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
  .scrim { display: none !important; }
}
@media (max-width: 1180px) {
  .board { grid-template-columns: repeat(4, minmax(232px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .search { width: min(240px, 24vw); }
  .tab .i { display: none; }
}
@media (max-width: 960px) {
  .top__inbox span { display: none; }
  .search__kbd { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .mobile-only { display: block; }
  .desk-only { display: none !important; }
  .top__in { flex-wrap: wrap; gap: 4px; padding: 0 8px 0 12px; min-height: 56px; }
  .brand__name, .tabs, .top__add, .top__inbox { display: none; }
  .brand img { width: 30px; height: 30px; }
  .top__title { display: block; flex: 1; font-size: 19px; font-weight: 750; margin: 0 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search { display: none; }
  .search-toggle { display: inline-flex; }
  .top.search-open .search { display: flex; order: 10; flex-basis: 100%; width: 100%; margin: 0 4px 10px 0; }
  .top.search-open .search input { height: 44px; font-size: 16px; }
  .main { padding: 14px 12px calc(150px + env(safe-area-inset-bottom, 0px)); }
  .page-head { margin-bottom: 12px; }
  .page-head h1 { display: none; }
  .page-head p { margin: 0; font-size: 14px; }
  .filters { gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chips { flex-wrap: nowrap; }
  .filters .sel { flex-shrink: 0; }
  .chip { min-height: 38px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 650; }
  .bottom-nav button .i { width: 23px; height: 23px; }
  .bottom-nav button[aria-current] { color: var(--accent); }
  .bottom-nav .count { position: absolute; top: 6px; left: calc(50% + 6px); height: 18px; min-width: 18px; font-size: 11px; }
  .fab {
    display: inline-flex; align-items: center; justify-content: center; position: fixed; right: 16px; z-index: 31;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; border: 0; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-lg);
  }
  .fab .i { width: 28px; height: 28px; stroke-width: 2.4; }
  body.has-detail .fab, body.has-detail .bottom-nav { display: none; }
  .detail { width: 100%; border-left: 0; }
  .detail__body { padding: 14px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .sgrid { grid-template-columns: 1fr 1fr; }
  .sbtn { min-height: 54px; font-size: 15px; }
  .yesno__b { height: 44px; min-width: 84px; font-size: 15px; }
  .prop { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  .row__main { padding: 12px 12px 12px 14px; }
  .tlist thead { display: none; }
  .tlist td { padding: 10px 8px; }
  .c-st { width: 30px; }
  .c-who { display: none; }
  .c-due { width: auto; font-size: 13px; white-space: normal; text-align: right; }
  .inrow__acts .btn, .inrow__acts select { min-height: 40px; }
  .modal {
    top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .add__from, .add__grid { grid-template-columns: 1fr; }
  .add__row { grid-template-columns: 1fr; gap: 6px; margin: 10px 0; }
  .add__lbl { padding-top: 0; }
  .modal.add { width: 100%; }
  .add .modal__head { padding: 14px 16px 12px; }
  .add__body { padding: 14px 16px 6px; }
  .add .modal__foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  body.has-detail .toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .pop { right: 8px; }
}

/* ================= Σύνδεση ================= */
.login { max-width: 440px; margin: 0 auto; padding: 48px 16px 32px; }
.login__brand { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.login__brand h1 { font-size: 28px; margin: 0; letter-spacing: -.01em; }
.login__brand p { margin: 0; color: var(--muted); font-size: 14px; }
.login__card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 0 0 14px; }
.login__card h2 { font-size: 18px; margin: 0 0 8px; }
.login__card .btn--block { margin-top: 10px; height: 46px; font-size: 16px; }
.login__dev h2 small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.dev-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dev-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-weight: 600; text-align: left; color: var(--ink); }
.dev-btn:hover { border-color: var(--accent); }
.login__foot { text-align: center; font-size: 14px; }

/* ================= Δημόσιες σελίδες (φόρμα αιτήματος, παρακολούθηση) ================= */
.pub { max-width: 760px; margin: 0 auto; padding: 28px 16px 60px; }
.pub__head { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
.pub__head h1 { font-size: 25px; font-weight: 750; margin: 0; letter-spacing: -.01em; }
.pub__eyebrow { margin: 0; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pub__lead { color: var(--ink-2); font-size: 16px; margin: 10px 0 18px; }
.pub__device { background: var(--accent-soft); border-radius: 9px; padding: 8px 12px; margin: 0 0 6px; font-size: 14px; }
.pub__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.req__step { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
.req__step > legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin: 0 0 10px; padding: 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 750; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.tile__in { display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 96px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.tile__in .i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.tile__in b { font-size: 15px; line-height: 1.25; }
.tile__in small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tile:hover .tile__in { border-color: var(--line-2); }
.tile input:checked + .tile__in { border-color: var(--accent); background: var(--accent-soft); }
.tile input:focus-visible + .tile__in { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Τμήματα: πιο χαμηλά πλακίδια, εικονίδιο αριστερά */
.tiles--dept { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tiles--dept .tile__in { display: grid; grid-template-columns: 26px 1fr; align-items: center; column-gap: 10px; row-gap: 0; min-height: 60px; }
.tiles--dept .tile__in .i { grid-row: span 2; margin: 0; }
.tiles--dept .tile__in small { grid-column: 2; }
.tile.is-off { cursor: not-allowed; opacity: .55; }
.tile.is-off .tile__in { border-style: dashed; background: transparent; }
.tile.is-off:hover .tile__in { border-color: var(--line); }
.req__for { margin: -10px 0 22px; max-width: 440px; }
.req__for .field { margin-bottom: 4px; }
.req__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.req__row > [hidden] + *, .req__row > :only-child { grid-column: 1 / -1; }
.sev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sev__o, .due { position: relative; cursor: pointer; }
.sev__o input, .due > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sev__o span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 10px; text-align: center; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 650; font-size: 14.5px; }
.sev__o--stop input:checked + span { border-color: var(--late); background: var(--late-soft); color: var(--late); }
.sev__o--hard input:checked + span { border-color: var(--st-wait); background: var(--st-wait-soft); color: var(--st-wait-ink); }
.sev__o--later input:checked + span { border-color: var(--st-new); background: var(--sunken); }
.sev__o input:focus-visible + span, .due > input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dues { display: flex; flex-wrap: wrap; gap: 8px; }
.due > span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14.5px; }
.due > input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.due--other { display: inline-flex; align-items: center; gap: 6px; }
.due--other input[type="date"] { min-height: 42px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 8px; background: var(--surface); color: var(--ink); }
.req input[type="file"] { padding: 9px 10px; min-height: 46px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.okbox { background: var(--ok-soft); border: 1px solid var(--st-done); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.okbox__big { font-size: 21px; font-weight: 750; color: var(--st-done); margin: 0 0 4px; }
.okbox p { margin: 2px 0; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.track__title { font-size: 19px; margin: 0 0 4px; overflow-wrap: anywhere; }
.track__h { font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.track__msgs { list-style: none; padding: 0; margin: 0; }
.track__msgs li { border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; margin: 0 0 10px; }
.track__msgs p { margin: 2px 0; }
.steps-track { list-style: none; padding: 0; margin: 18px 0 4px; }
.steps-track li { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; padding: 0 0 18px; }
.steps-track li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.steps-track .dot { grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.steps-track b { grid-column: 2; }
.steps-track small { grid-column: 2; color: var(--muted); font-size: 13px; }
.steps-track .is-done .dot { background: var(--st-done); border-color: var(--st-done); }
.steps-track .is-done:not(:last-child)::after { background: var(--st-done); }
.steps-track .is-now b { color: var(--st-done); }
@media (max-width: 560px) {
  .req__row { grid-template-columns: 1fr; }
  .sev { grid-template-columns: 1fr; }
  .pub__head h1 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card--urgent, .row--urgent { animation: none; }
}
