/* Επίκυκλος CRM — graphite «blueprint» πλαϊνή στήλη, χώρος εργασίας σε τόνους μπετόν.
   Εταιρικά χρώματα (colors.pdf): μαύρο #000, λευκό, γραφίτης #333337, κρεμ #F1ECE8, χρυσό #B69B75, γκρι #6C6D73.
   Το χρυσό σε λευκό φόντο δεν περνά WCAG AA (2,6:1)· για κείμενο και κουμπιά χρησιμοποιείται σκουρότερος
   τόνος του (#7A6240, 5,8:1 σε λευκό) και το ίδιο το χρυσό μόνο σε σκούρο φόντο ή διακοσμητικά.
   Ώχρα για εργασίες εργοταξίου (ορόσημα, αυτοψίες). */

@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope/manrope-greek-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope/manrope-latin-wght-normal.woff2) format("woff2-variations"); 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-display: swap; font-weight: 100 900; src: url(/fonts/commissioner/commissioner-greek-wght-normal.woff2) format("woff2-variations"); 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-display: swap; font-weight: 100 900; src: url(/fonts/commissioner/commissioner-latin-wght-normal.woff2) format("woff2-variations"); 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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/fonts/jetbrains-mono/jetbrains-mono-greek-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations"); 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; }

:root {
  --bg: #F2F3F1; --surface: #FFFFFF; --surface-2: #F7F8F6; --sunken: #E9EBE7; --line: #E0E3DE; --line-strong: #C6CBC3;
  --ink: #15181C; --ink-2: #454B53; --ink-3: #5F656D;
  --brand-black: #000000; --brand-graphite: #333337; --brand-cream: #F1ECE8; --brand-gold: #B69B75; --brand-grey: #6C6D73;
  --accent: #7A6240; --accent-hover: #64502F; --accent-ink: #6B5535; --accent-soft: #F1ECE8; --accent-line: #DCCDB7; --on-accent: #FFFFFF;
  --ochre: #8F5B0E; --ochre-soft: #FBF0DC; --ochre-fill: #D9952E;
  --ok: #16794C; --ok-soft: #E2F3E9; --ok-fill: #1F9D63;
  --warn: #985A00; --warn-soft: #FCEFD6; --warn-fill: #D98F1A;
  --bad: #B4321F; --bad-soft: #FBE7E3; --bad-fill: #D2452F;
  --info: #1F5FA8; --info-soft: #E3EEFA;
  --chart-base: #D3D8E6;
  --side-bg: #141416; --side-grid: #19191C; --side-ink: #F1ECE8; --side-ink-2: #A3A4AA; --side-hover: #1F1F22; --side-active: #2A2A2E; --side-line: #2A2A2E;
  --av1-bg: #E3E8FD; --av1-fg: #1F3BB8; --av2-bg: #FBEBD3; --av2-fg: #77490A; --av3-bg: #DDF1E6; --av3-fg: #115E3B;
  --av4-bg: #F9E1DC; --av4-fg: #8F2818; --av5-bg: #E8E4F7; --av5-fg: #4A3A9A; --av6-bg: #DCEEF3; --av6-fg: #1A5768;
  --scrim: rgb(15 17 20 / .45);
  --sh-xs: 0 1px 2px rgb(16 20 26 / .05);
  --sh-sm: 0 1px 3px rgb(16 20 26 / .08), 0 1px 2px rgb(16 20 26 / .05);
  --sh-md: 0 4px 6px rgb(16 20 26 / .08), 0 2px 4px rgb(16 20 26 / .05);
  --sh-lg: 0 10px 15px rgb(16 20 26 / .10), 0 4px 6px rgb(16 20 26 / .05);
  --sh-xl: 0 20px 25px rgb(16 20 26 / .12), 0 10px 10px rgb(16 20 26 / .04);
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Commissioner", "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --side-w: 252px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1013; --surface: #16191E; --surface-2: #1B1F25; --sunken: #22272E; --line: #272C34; --line-strong: #39404A;
    --ink: #ECEEF1; --ink-2: #B6BCC5; --ink-3: #9097A1;
    --accent: #C9B28F; --accent-hover: #D8C6A8; --accent-ink: #D3BF9F; --accent-soft: #2A241B; --accent-line: #5A4C37; --on-accent: #17130D;
    --ochre: #E4A84E; --ochre-soft: #2B2213; --ochre-fill: #C98A2B;
    --ok: #55C792; --ok-soft: #11281E; --ok-fill: #3FAE7B;
    --warn: #E8A947; --warn-soft: #2B2111; --warn-fill: #D99A33;
    --bad: #F2806C; --bad-soft: #2F1814; --bad-fill: #E2614B;
    --info: #78AEF2; --info-soft: #14223A;
    --chart-base: #2E3542;
    --side-bg: #0A0C0F; --side-grid: #0F1215; --side-ink: #EDEFF2; --side-ink-2: #959CA6; --side-hover: #15181D; --side-active: #1D2128; --side-line: #1C2027;
    --av1-bg: #1F2950; --av1-fg: #B5C3FF; --av2-bg: #33260F; --av2-fg: #F0C27E; --av3-bg: #123323; --av3-fg: #8FDDB5;
    --av4-bg: #3A1A14; --av4-fg: #F5A99A; --av5-bg: #28214A; --av5-fg: #C7BBF5; --av6-bg: #12313A; --av6-fg: #93D3E3;
    --scrim: rgb(0 0 0 / .6);
    --sh-xs: none; --sh-sm: 0 1px 2px rgb(0 0 0 / .4); --sh-md: 0 4px 10px rgb(0 0 0 / .45); --sh-lg: 0 10px 24px rgb(0 0 0 / .5); --sh-xl: 0 20px 40px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* ── Βάση ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--f-ui); font-size: .875rem; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: 1.875rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: .875rem; line-height: 1.35; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 14px; height: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: .8125rem; }
.xs { font-size: .75rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-accent { color: var(--accent-ink); } .t-ochre { color: var(--ochre); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ── Κέλυφος ─────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto; color: var(--side-ink);
  background-color: var(--side-bg);
  background-image: linear-gradient(var(--side-grid) 1px, transparent 1px), linear-gradient(90deg, var(--side-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex; flex-direction: column; gap: 24px; padding: 20px 12px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; color: var(--side-ink); text-decoration: none; border-radius: var(--r); }
.brand svg { width: 34px; height: 34px; flex: none; }
/* Λογότυπο Επίκυκλος (inline SVG, currentColor) */
svg.logo { display: block; width: auto; height: auto; fill: currentColor; }
.brand svg.logo { width: 150px; height: auto; }
.brand { align-items: flex-end; }
.brand .brand-crm { font-size: .6875rem; font-weight: 800; letter-spacing: .14em; color: var(--brand-gold); line-height: 1; padding-bottom: 2px; }
.login-logo { display: inline-flex; color: var(--ink); }
.login-logo svg.logo { width: 180px; }
.forgot { font-weight: 600; }
.brand b { display: block; font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-size: .75rem; color: var(--side-ink-2); font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--side-ink-2); padding: 12px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--r); color: var(--side-ink-2); text-decoration: none; font-weight: 600; position: relative; transition: background-color .15s ease-out, color .15s ease-out; }
.nav a:hover { background: var(--side-hover); color: var(--side-ink); }
.nav a[aria-current="page"] { background: var(--side-active); color: var(--side-ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-gold); }
.nav .count { margin-left: auto; font-size: .75rem; font-weight: 700; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--side-active); color: var(--side-ink); }
.nav .count.alert { background: var(--bad-fill); color: #fff; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--side-line); }
.me .t { flex: 1; min-width: 0; }
.me b { display: block; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--side-ink-2); font-size: .75rem; display: block; }
.me .icon-btn { color: var(--side-ink-2); }
.me .icon-btn:hover { background: var(--side-hover); color: var(--side-ink); }
.side .side-demo { margin: 0 4px; padding: 10px 12px; border: 1px dashed var(--side-line); border-radius: var(--r); color: var(--side-ink-2); font-size: .75rem; display: flex; flex-direction: column; gap: 6px; }
.side .side-demo b { color: var(--ochre-fill); }
.side .side-demo a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--side-ink); font-weight: 700; text-decoration: none; border-radius: 6px; }
.side .side-demo a svg.i { color: var(--brand-gold); }
.side .side-demo a:hover { text-decoration: underline; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 32px;
}
.topbar .mark { display: none; }
.search { flex: 1; max-width: 480px; position: relative; display: flex; align-items: center; }
.search svg.i { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 64px 0 38px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); transition: border-color .15s ease-out; }
.search input:hover { border-color: var(--ink-3); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.search kbd { position: absolute; right: 10px; }
kbd { font-family: var(--f-mono); font-size: .6875rem; padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.hide-desktop-search { display: none !important; }
.me a.t { text-decoration: none; color: inherit; border-radius: 6px; }
.me a.t:hover b { text-decoration: underline; }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad-fill); color: #fff; font-size: .6875rem; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid var(--bg); }
.content { width: 100%; max-width: 1480px; padding: 28px 32px 72px; }
.content.narrow { max-width: 880px; }
.foot { margin-top: 48px; color: var(--ink-3); font-size: .75rem; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.tabbar { display: none; }

/* ── Κουμπιά & βασικά στοιχεία ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent; font: 600 .875rem/1 var(--f-ui); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out; }
.btn svg.i { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-xs); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunken); color: var(--ink); }
.btn-danger { background: var(--bad-fill); color: #fff; }
.btn-danger:hover { background: var(--bad); }
.btn-quiet-danger { background: transparent; color: var(--bad); border-color: var(--line-strong); }
.btn-quiet-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: .8125rem; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--ink-3) transparent var(--ink-3) transparent; animation: spin .8s linear infinite; }
.btn-primary[aria-busy="true"]::after { border-color: var(--on-accent) transparent var(--on-accent) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-icon { width: 44px; } .btn-sm { min-height: 40px; } .btn-sm.btn-icon { width: 40px; } .icon-btn { width: 44px; height: 44px; } }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; }
.link:hover { text-decoration: underline; }
.link svg.i { width: 16px; height: 16px; }
.link-ink { color: var(--ink); text-decoration: none; font-weight: 700; }
.link-ink:hover { color: var(--accent-ink); text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); min-width: 0; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; flex-wrap: wrap; }
.card-h p { color: var(--ink-3); font-size: .8125rem; margin-top: 2px; }
.card-b { padding: 0 20px 20px; }
.card-b.pt { padding-top: 16px; }
.card-f { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card.flat { box-shadow: none; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.pill svg.i { width: 13px; height: 13px; }
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-bad { background: var(--bad-soft); color: var(--bad); }
.p-info { background: var(--info-soft); color: var(--info); }
.p-accent { background: var(--accent-soft); color: var(--accent-ink); }
.p-ochre { background: var(--ochre-soft); color: var(--ochre); }
.p-line { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-size: .75rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.row-ref { font-family: var(--f-mono); font-size: .6875rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

.av { --av-bg: var(--av1-bg); --av-fg: var(--av1-fg); width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font: 700 .6875rem/1 var(--f-ui); background: var(--av-bg); color: var(--av-fg); letter-spacing: .02em; }
.av.md { width: 36px; height: 36px; font-size: .75rem; }
.av.lg { width: 56px; height: 56px; font-size: 1.125rem; border-radius: 16px; }
.av.sq { border-radius: 8px; }
.h1 { --av-bg: var(--av1-bg); --av-fg: var(--av1-fg); } .h2 { --av-bg: var(--av2-bg); --av-fg: var(--av2-fg); } .h3 { --av-bg: var(--av3-bg); --av-fg: var(--av3-fg); }
.h4 { --av-bg: var(--av4-bg); --av-fg: var(--av4-fg); } .h5 { --av-bg: var(--av5-bg); --av-fg: var(--av5-fg); } .h6 { --av-bg: var(--av6-bg); --av-fg: var(--av6-fg); }

.bar { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; min-width: 48px; position: relative; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); max-width: 100%; }
.bar.ok > i { background: var(--ok-fill); } .bar.near > i, .bar.warn > i { background: var(--warn-fill); } .bar.over > i, .bar.bad > i { background: var(--bad-fill); }
.prog { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prog .bar { flex: 1; }
.prog b { font-size: .8125rem; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .8125rem; cursor: pointer; text-decoration: none; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip .n { font-size: .75rem; opacity: .8; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .chip { min-height: 40px; } }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--sunken); gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .8125rem; cursor: pointer; text-decoration: none; }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.seg svg.i { width: 15px; height: 15px; }

/* ── Επικεφαλίδες σελίδων ─────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .eyebrow { margin-bottom: 6px; }
.page-head .sub { color: var(--ink-2); margin-top: 6px; font-size: .9375rem; max-width: 72ch; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: .8125rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs svg.i { width: 14px; height: 14px; color: var(--ink-3); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-field { flex: 1 1 260px; max-width: 380px; }

/* ── Φόρμες ──────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section + .form-section { padding-top: 20px; border-top: 1px solid var(--line); }
.form-section > h2 { margin-bottom: -4px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label, legend.label { font-weight: 600; font-size: .8125rem; color: var(--ink); padding: 0; }
.field .opt { color: var(--ink-3); font-weight: 500; }
.hint { font-size: .75rem; color: var(--ink-3); }
.err { font-size: .75rem; color: var(--bad); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.err svg.i { width: 14px; height: 14px; margin-top: 1px; }
.input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 500 1rem/1.4 var(--f-ui); transition: border-color .15s ease-out, box-shadow .15s ease-out; }
@media (min-width: 901px) { .input { font-size: .875rem; } }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
textarea.input { min-height: 88px; resize: vertical; }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F656D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg.i { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; width: 16px; height: 16px; }
.input-wrap > .input { padding-left: 38px; }
.input-wrap > .suffix { position: absolute; right: 12px; color: var(--ink-3); font-weight: 600; pointer-events: none; }
.input-wrap.has-suffix > .input { padding-right: 56px; padding-left: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; font-size: .875rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8125rem; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--surface); font-weight: 600; }
.radio-cards input { accent-color: var(--accent); margin: 2px 0 0; width: 18px; height: 18px; flex: none; }
.radio-cards small { display: block; font-weight: 500; color: var(--ink-3); font-size: .75rem; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-cards label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.err-summary { border: 1px solid var(--bad); background: var(--bad-soft); color: var(--bad); border-radius: var(--r); padding: 12px 16px; display: flex; gap: 10px; }
.err-summary ul { margin: 4px 0 0; padding-left: 18px; }
.err-summary a { color: var(--bad); font-weight: 600; }
.notice { border-radius: var(--r); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.notice svg.i { margin-top: 1px; color: var(--ink-3); }
.notice.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.notice.accent svg.i { color: var(--accent-ink); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.notice.warn svg.i { color: var(--warn); }
.notice.bad { background: var(--bad-soft); border-color: transparent; color: var(--ink); }
.notice.bad svg.i { color: var(--bad); }
.notice b { font-weight: 700; }
.impact { font-size: .8125rem; border-radius: var(--r); padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.impact.later { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.impact.earlier { background: var(--ok-soft); border-color: transparent; color: var(--ink); }
.impact.over { background: var(--bad-soft); border-color: transparent; color: var(--ink); }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ink-3); }
.lock svg.i { width: 14px; height: 14px; }

/* ── Πίνακες ──────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { font-size: .75rem; color: var(--ink-3); font-weight: 700; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; position: sticky; top: 0; }
.tbl thead tr:first-child th:first-child { border-top-left-radius: var(--r-lg); }
.tbl thead tr:first-child th:last-child { border-top-right-radius: var(--r-lg); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 700; background: var(--surface-2); }
.tbl tfoot tr:last-child td:first-child { border-bottom-left-radius: var(--r-lg); }
.tbl tfoot tr:last-child td:last-child { border-bottom-right-radius: var(--r-lg); }
.tbl tr.rowlink { cursor: pointer; }
.tbl tr.rowlink:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .num, .tbl .r { font-variant-numeric: tabular-nums; }
.tbl tr.is-over td { background: color-mix(in srgb, var(--bad-soft) 55%, transparent); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who > div { min-width: 0; }
.who .name { font-weight: 700; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.name:hover { color: var(--accent-ink); text-decoration: underline; }
.who small { display: block; color: var(--ink-3); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Λίστες, χρονολόγια, κενές καταστάσεις ───────────────────────────── */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .t { flex: 1; min-width: 0; }
.list .t > b, .list .t > .ttl { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.list .t > a.ttl:hover { color: var(--accent-ink); text-decoration: underline; }
.list .t small { display: block; color: var(--ink-3); font-size: .75rem; margin-top: 2px; }
.list .t p { color: var(--ink-2); font-size: .8125rem; margin-top: 2px; }
.ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--sunken); color: var(--ink-2); }
.ico svg.i { width: 16px; height: 16px; }
.ico.ochre { background: var(--ochre-soft); color: var(--ochre); } .ico.accent { background: var(--accent-soft); color: var(--accent-ink); }
.ico.ok { background: var(--ok-soft); color: var(--ok); } .ico.bad { background: var(--bad-soft); color: var(--bad); }
.ico.warn { background: var(--warn-soft); color: var(--warn); } .ico.info { background: var(--info-soft); color: var(--info); }
.when { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--ink-2); min-width: 64px; padding-top: 2px; white-space: nowrap; }
.when.bad { color: var(--bad); font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 4px 20px 12px; }
.timeline li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.timeline .hd { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline .hd b { font-size: .8125rem; }
.timeline .hd small { color: var(--ink-3); font-size: .75rem; }
.timeline p { color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.empty { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sunken); display: grid; place-items: center; color: var(--ink-3); margin-bottom: 4px; }
.empty .ic svg.i { width: 22px; height: 22px; }
.empty h3 { font-size: 1rem; }
.empty p { color: var(--ink-3); max-width: 44ch; }
.empty.sm { padding: 24px 16px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: .8125rem; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ── Πίνακας ελέγχου ─────────────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
a.kpi:hover { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.kpi .lbl { font-size: .8125rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.kpi .lbl svg.i { width: 16px; height: 16px; color: var(--ink-3); }
.kpi .val { font-family: var(--f-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 1rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.kpi .delta { font-size: .75rem; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.kpi.bad .val { color: var(--bad); } .kpi.warn .val { color: var(--warn); } .kpi.ochre .val { color: var(--ochre); }
.kpi.bad .delta { color: var(--bad); }
.attn > li { align-items: center; }
.attn .sev { width: 4px; align-self: stretch; border-radius: 4px; flex: none; background: var(--line-strong); }
.attn .sev.bad { background: var(--bad-fill); } .attn .sev.warn { background: var(--warn-fill); } .attn .sev.info { background: var(--accent); } .attn .sev.ochre { background: var(--ochre-fill); }
.agenda-day { padding: 8px 20px 4px; font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); border-top: 1px solid var(--line); }
.agenda-day:first-child { border-top: 0; }
.stage-rows { display: flex; flex-direction: column; gap: 10px; }
.stage-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-size: .8125rem; text-decoration: none; color: inherit; border-radius: 6px; }
.stage-row:hover .nm { color: var(--accent-ink); text-decoration: underline; }
.stage-row .nm { font-weight: 600; color: var(--ink-2); }
.stage-row .track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; position: relative; }
.stage-row .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; }
.stage-row .vv { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* ── Έργο: κεφαλίδα, καρτέλες ─────────────────────────────────────────── */
.proj-head { padding: 22px 24px 18px; display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.proj-head .t { flex: 1 1 420px; min-width: 0; }
.proj-head h1 { font-size: 1.625rem; margin-top: 8px; }
.proj-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 10px; color: var(--ink-2); font-size: .8125rem; }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta svg.i { width: 15px; height: 15px; color: var(--ink-3); }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pstats > div { padding: 14px 24px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pstats > div:first-child { border-left: 0; }
.pstats small { color: var(--ink-3); font-size: .75rem; font-weight: 600; }
.pstats b { font-family: var(--f-display); font-size: 1.1875rem; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.pstats .s2 { font-size: .75rem; color: var(--ink-3); }
.pstats .bar { margin: 4px 0 2px; }
.pstats .s2.bad { color: var(--bad); font-weight: 700; } .pstats .s2.ok { color: var(--ok); font-weight: 700; } .pstats .s2.warn { color: var(--warn); font-weight: 700; }
.tabs { display: flex; gap: 4px; margin: 16px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; border-radius: 6px 6px 0 0; }
.tabs a:hover { color: var(--ink); background: var(--sunken); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }
.tabs .n { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); }
.tabs .n.bad { background: var(--bad-soft); color: var(--bad); } .tabs .n.warn { background: var(--warn-soft); color: var(--warn); } .tabs .n.ochre { background: var(--ochre-soft); color: var(--ochre); }

/* ── Διαδικασία ──────────────────────────────────────────────────────── */
.proc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.proc-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.gantt { padding: 4px 20px 18px; overflow-x: auto; }
.gantt-in { --lbl: 252px; position: relative; min-width: 640px; }
.g-head { display: grid; grid-template-columns: var(--lbl) minmax(0, 1fr); font-size: .6875rem; color: var(--ink-3); font-weight: 600; height: 22px; }
.g-months { position: relative; }
.g-months span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.g-months span::after { content: ""; position: absolute; left: 50%; top: 16px; height: 4px; border-left: 1px solid var(--line-strong); }
.g-row { display: grid; grid-template-columns: var(--lbl) minmax(0, 1fr); align-items: center; min-height: 40px; border-top: 1px solid var(--line); }
.g-label { display: flex; align-items: center; gap: 8px; padding-right: 12px; min-width: 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .8125rem; }
.g-label:hover span.n { color: var(--accent-ink); text-decoration: underline; }
.g-label span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-label .short { display: none; }
.g-label .dotst { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.g-label .dotst.done { background: var(--ok-fill); border-color: var(--ok-fill); }
.g-label .dotst.active { background: var(--accent); border-color: var(--accent); }
.g-label .dotst.late { background: var(--bad-fill); border-color: var(--bad-fill); }
.g-track { position: relative; height: 40px; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--mw) - 1px), var(--line) calc(var(--mw) - 1px), var(--line) var(--mw)); }
.g-bar { position: absolute; top: 12px; height: 16px; border-radius: 5px; background: var(--sunken); border: 1px solid var(--line-strong); overflow: hidden; min-width: 4px; }
.g-bar i { display: block; height: 100%; background: var(--accent); }
.g-bar.done { border-color: var(--ok-fill); } .g-bar.done i { background: var(--ok-fill); }
.g-bar.late { border-color: var(--bad-fill); } .g-bar.late i { background: var(--bad-fill); }
.g-bar.parallel { top: 14px; height: 12px; border-style: dashed; }
.g-ms { position: absolute; top: 13px; width: 13px; height: 13px; transform: translateX(-50%) rotate(45deg); background: var(--ochre-fill); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--ochre-fill); z-index: 2; }
.g-ms.planned { background: var(--surface); }
.g-today { position: absolute; top: 22px; bottom: 0; width: 0; border-left: 2px solid var(--ochre-fill); z-index: 3; pointer-events: none; }
.g-today span { position: absolute; top: -18px; left: -1px; transform: translateX(-50%); font-size: .6875rem; font-weight: 700; color: var(--ochre); background: var(--surface); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 8px; border-radius: 3px; display: inline-block; }
.legend i.ms { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 1px; background: var(--ochre-fill); }

.phase { scroll-margin-top: 84px; }
.phase > summary { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 20px; cursor: pointer; border-radius: var(--r-lg); }
.phase > summary::-webkit-details-marker { display: none; }
.phase > summary:hover { background: var(--surface-2); }
.phase[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.phase .ph-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); color: var(--ink-3); background: var(--surface); }
.phase .ph-ico svg.i { width: 14px; height: 14px; }
.phase .ph-ico.done { background: var(--ok-fill); border-color: var(--ok-fill); color: #fff; }
.phase .ph-ico.active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.phase .ph-ico.late { border-color: var(--bad-fill); color: var(--bad); background: var(--bad-soft); }
.phase .ph-t { min-width: 0; }
.phase .ph-t h2 { font-size: 1rem; }
.phase .ph-t p { font-size: .75rem; color: var(--ink-3); margin-top: 2px; }
.phase .chev { transition: transform .2s ease-out; color: var(--ink-3); }
.phase[open] .chev { transform: rotate(180deg); }
.phase .ph-note { margin: 12px 20px 0; }
.steps { list-style: none; margin: 0; padding: 4px 0 8px; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) 96px 176px 168px 176px; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.steps > .step:first-child, .sub-h + .step { border-top: 0; }
.step:target { background: var(--accent-soft); animation: flash 1.8s ease-out 1; }
@keyframes flash { from { box-shadow: inset 4px 0 0 var(--accent); } to { box-shadow: inset 4px 0 0 transparent; } }
.st-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); color: transparent; background: var(--surface); }
.st-ico svg.i { width: 13px; height: 13px; stroke-width: 3; }
.step.s-done .st-ico { background: var(--ok-fill); border-color: var(--ok-fill); color: #fff; }
.step.s-active .st-ico { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.step.s-active .st-ico::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.step.s-overdue .st-ico { border-color: var(--bad-fill); background: var(--bad-soft); color: var(--bad); }
.step.s-overdue .st-ico::after { background: var(--bad-fill); }
.step.s-late .st-ico { border-color: var(--warn-fill); border-style: dashed; }
.step.s-skipped { opacity: .6; }
.step.s-skipped .st-ico { border-style: dashed; }
.st-main { min-width: 0; }
.st-name { font-weight: 700; color: var(--ink); line-height: 1.35; }
.step.s-done .st-name { color: var(--ink-2); }
.st-meta { font-size: .75rem; color: var(--ink-3); margin-top: 2px; display: flex; gap: 4px 10px; flex-wrap: wrap; }
.st-meta .who-mini { display: inline-flex; align-items: center; gap: 6px; }
.st-meta .av { width: 18px; height: 18px; font-size: .5625rem; }
.st-comment { font-size: .8125rem; color: var(--ink-2); margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--line-strong); overflow-wrap: anywhere; }
.st-days { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.st-days s { color: var(--ink-3); font-weight: 500; margin-right: 4px; }
.st-days .chg { display: block; font-size: .6875rem; font-weight: 600; color: var(--ochre); }
.st-dates { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-dates small { display: block; font-size: .75rem; color: var(--ink-3); }
.st-dates small.bad { color: var(--bad); font-weight: 700; } .st-dates small.warn { color: var(--warn); font-weight: 700; } .st-dates small.ok { color: var(--ok); font-weight: 600; }
.st-act { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.st-act form { margin: 0; }
.sub-h { display: flex; align-items: center; gap: 8px; padding: 14px 20px 6px; font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--line); }
.sub-h:first-child { border-top: 0; }
.sub-h svg.i { width: 14px; height: 14px; }
.occ-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .75rem; color: var(--ink-3); margin-top: 4px; }
.occ { margin-top: 8px; }
.occ > summary { cursor: pointer; font-size: .75rem; font-weight: 700; color: var(--accent-ink); list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border-radius: 4px; }
.occ > summary::-webkit-details-marker { display: none; }
.occ-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 6px; }
.occ-item form { margin: 0; }
.occ-item button { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 8px; min-height: 36px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .75rem; color: var(--ink-2); }
.occ-item button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.occ-item button:disabled { cursor: default; }
.occ-item .box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; color: transparent; }
.occ-item .box svg.i { width: 11px; height: 11px; stroke-width: 3; }
.occ-item.done button { color: var(--ink-3); }
.occ-item.done .box { background: var(--ok-fill); border-color: var(--ok-fill); color: #fff; }
.occ-item.over button { border-color: var(--bad-fill); background: var(--bad-soft); color: var(--ink); }
.occ-item.over .box { border-color: var(--bad-fill); }
.occ-item.next button { border-color: var(--accent); }
.occ-item b { font-weight: 700; color: var(--ink); }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-list > li { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ms-list > li:first-child { border-top: 0; }
.ms-top { display: flex; gap: 10px; align-items: flex-start; }
.ms-top .dia { width: 12px; height: 12px; transform: rotate(45deg); border: 2px solid var(--ochre-fill); margin: 5px 4px 0 2px; flex: none; border-radius: 2px; }
.ms-top .dia.ok { background: var(--ochre-fill); }
.ms-top .t { flex: 1; min-width: 0; }
.ms-top b { display: block; font-size: .8125rem; }
.ms-top small { display: block; font-size: .75rem; color: var(--ink-3); }
.ms-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ms-form .input { min-height: 36px; padding: 6px 10px; width: auto; flex: 1 1 140px; }
.mini-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-form select.input { min-height: 32px; padding: 4px 32px 4px 10px; width: auto; font-size: .8125rem; }

/* ── Προϋπολογισμός ──────────────────────────────────────────────────── */
.budget-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.budget-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.budget-invoices { margin-top: 16px; }
/* Προϋπολογισμός (από 1800px) και χρήστες (από 1440px): οι πίνακες χωρούν δίπλα στη φόρμα· πιο στενά η φόρμα πηγαίνει από κάτω. */
@media (min-width: 721px) { .lines-tbl th, .lines-tbl td { padding-left: 12px; padding-right: 12px; } }
.lines-tbl .col-state { min-width: 150px; }
@media (max-width: 1799px) {
  .budget-layout.budget-page { grid-template-columns: minmax(0, 1fr); }
  .budget-page .budget-side { position: static; }
}
/* Όταν η φόρμα είναι κάτω από τις εργασίες, ένα κουμπί οδηγεί σε αυτή. */
.budget-jump { display: none; flex: none; }
#new-invoice, .budget-invoices { scroll-margin-top: 84px; }
@media (max-width: 1799px) { .budget-page .budget-jump { display: inline-flex; } }
@media (min-width: 721px) and (max-width: 1799px) { .budget-page .budget-side { max-width: 720px; } }
@media (max-width: 1439px) {
  .budget-layout.users-page { grid-template-columns: minmax(0, 1fr); }
  .users-page .budget-side { position: static; }
}
@media (min-width: 721px) and (max-width: 1439px) { .users-page .budget-side { max-width: 720px; } }
.money-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.money-sum > div { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.money-sum > div:first-child { border-left: 0; }
.money-sum small { display: block; font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.money-sum b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.money-sum .bad b { color: var(--bad); }
.line-cell { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.line-cell .row { justify-content: space-between; }
.state { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.state svg.i { width: 13px; height: 13px; }
.state.over { color: var(--bad); } .state.near { color: var(--warn); } .state.ok { color: var(--ok); }

/* ── Συνεργεία & αξιολογήσεις ────────────────────────────────────────── */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ct-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ct-top { display: flex; gap: 12px; align-items: flex-start; }
.ct-top .t { flex: 1; min-width: 0; }
.ct-top h3 { font-size: .9375rem; }
.ct-top h3 a { color: var(--ink); text-decoration: none; }
.ct-top h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.ct-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .75rem; color: var(--ink-3); flex-wrap: wrap; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--ochre-fill); white-space: nowrap; }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars svg.off { color: var(--line-strong); }
.stars b { margin-left: 6px; color: var(--ink); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.stars small { margin-left: 4px; color: var(--ink-3); font-size: .75rem; }
.crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: .8125rem; }
.crit span { color: var(--ink-2); }
.rate-form { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.rate-crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.rate-crit legend { font-size: .8125rem; font-weight: 600; float: left; padding: 0; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; padding: 4px; border-radius: 6px; color: var(--line-strong); display: inline-grid; place-items: center; }
.stars-input label svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: var(--ochre-fill); }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
.stars-input:hover input:checked ~ label { color: var(--line-strong); }
.stars-input:hover label:hover, .stars-input:hover label:hover ~ label { color: var(--ochre-fill); }
@media (pointer: coarse) { .stars-input label { padding: 8px; } }

/* ── Υπενθυμίσεις ────────────────────────────────────────────────────── */
.rem-list { list-style: none; margin: 0; padding: 0; }
.rem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border-top: 1px solid var(--line); min-height: 60px; }
.rem:first-child { border-top: 0; }
.rem form { margin: 0; }
.rem .done-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: transparent; transition: border-color .15s ease-out, color .15s ease-out, background-color .15s ease-out; }
.rem .done-btn:hover { border-color: var(--ok-fill); color: var(--ok); }
.rem .done-btn svg.i { width: 14px; height: 14px; stroke-width: 3; }
.rem.is-done .done-btn { background: var(--ok-fill); border-color: var(--ok-fill); color: #fff; }
.rem .t { min-width: 0; }
.rem .t b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.rem.is-done .t b { color: var(--ink-3); text-decoration: line-through; }
.rem .t small { display: flex; gap: 4px 10px; flex-wrap: wrap; color: var(--ink-3); font-size: .75rem; margin-top: 2px; }
.rem .due { font-size: .75rem; font-weight: 700; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rem .due.bad { color: var(--bad); }
.rem .due svg.i { width: 13px; height: 13px; }
.rem .proc-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.rem .proc-ico svg.i { width: 15px; height: 15px; }
.rem .proc-ico.ochre { background: var(--ochre-soft); color: var(--ochre); }
.rem .proc-ico.bad { background: var(--bad-soft); color: var(--bad); }
.group-h { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 8px; }
.group-h:first-child { margin-top: 0; }
.group-h h2 { font-size: .9375rem; }
.group-h .n { font-size: .75rem; color: var(--ink-3); font-weight: 700; }
.quick-add { display: grid; grid-template-columns: minmax(0, 2fr) 150px 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 16px; }
.quick-add .field label { font-size: .75rem; }

/* ── Μενού (details) ─────────────────────────────────────────────────── */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); animation: pop .16s ease-out; }
.menu-panel.left { right: auto; left: 0; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: var(--r); cursor: pointer; font-weight: 600; text-align: left; color: var(--ink); text-decoration: none; font-size: .875rem; }
.menu-panel a:hover, .menu-panel button:hover, .menu-panel a:focus-visible, .menu-panel button:focus-visible { background: var(--sunken); }
.menu-panel svg.i { width: 16px; height: 16px; color: var(--ink-3); }
.menu-panel form { margin: 0; }
.menu-panel .sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-panel .mh { padding: 6px 10px 2px; font-size: .6875rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* ── Ειδοποιήσεις ────────────────────────────────────────────────────── */
.notif { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: flex-start; }
.notif:first-child { border-top: 0; }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.notif .t { flex: 1; min-width: 0; }
.notif .t b { display: block; font-weight: 700; }
.notif .t p { color: var(--ink-2); font-size: .8125rem; margin-top: 2px; overflow-wrap: anywhere; max-width: 90ch; }
.notif .t small { color: var(--ink-3); font-size: .75rem; display: block; margin-top: 4px; }
.notif .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

/* ── Σύνδεση ─────────────────────────────────────────────────────────── */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { color: var(--side-ink); background-color: var(--side-bg); background-image: linear-gradient(var(--side-grid) 1px, transparent 1px), linear-gradient(90deg, var(--side-grid) 1px, transparent 1px); background-size: 24px 24px; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.login-art .brand { padding: 0; }
.login-art h1 { color: var(--side-ink); font-size: 2.25rem; line-height: 1.12; max-width: 16ch; }
.login-art p { color: var(--side-ink-2); max-width: 46ch; margin-top: 12px; font-size: .9375rem; }
.login-art .plan { position: relative; border: 1px solid var(--side-line); border-radius: var(--r-lg); padding: 16px 18px; background: color-mix(in srgb, var(--side-bg) 88%, transparent); max-width: 440px; }
.login-art .plan-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .75rem; color: var(--side-ink-2); padding: 5px 0; }
.login-art .plan-row i { display: block; height: 10px; border-radius: 4px; background: #2B3240; position: relative; }
.login-art .plan-row i b { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--brand-gold); }
.login-art .plan-row i b.ok { background: var(--ok-fill); }
.login-art .plan-row i b.ochre { background: var(--ochre-fill); }
.login-main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.login-box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 24px; }
.login-box h2 { font-size: 1.5rem; }
.demo-accounts { display: flex; flex-direction: column; gap: 6px; }
.demo-accounts button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: left; min-height: 48px; }
.demo-accounts button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.demo-accounts button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.demo-accounts b { display: block; font-size: .8125rem; }
.demo-accounts small { display: block; color: var(--ink-3); font-size: .75rem; }

/* ── Toast & παλέτα αναζήτησης ───────────────────────────────────────── */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--surface); padding: 10px 10px 10px 16px; border-radius: var(--r-lg); box-shadow: var(--sh-lg); font-weight: 600; animation: pop .2s ease-out; max-width: 640px; }
.toast > svg.i { color: var(--surface); opacity: .85; }
.toast.warn > svg.i, .toast.error > svg.i { color: var(--ochre-fill); opacity: 1; }
.toast .msg { flex: 1; min-width: 0; line-height: 1.4; }
.toast form { margin: 0; }
.toast .t-act { background: transparent; border: 1px solid currentColor; color: var(--surface); border-radius: 6px; min-height: 32px; padding: 0 10px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.toast .t-x { background: transparent; border: 0; color: var(--surface); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; opacity: .8; }
.toast .t-x:hover { opacity: 1; background: rgb(255 255 255 / .1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
dialog.palette { padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); width: min(640px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--sh-xl); margin-top: 12vh; }
dialog.palette::backdrop { background: var(--scrim); }
.pal-q { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-q svg.i { color: var(--ink-3); }
.pal-q input { flex: 1; border: 0; outline: 0; background: transparent; height: 56px; font: 500 1rem var(--f-ui); color: var(--ink); min-width: 0; }
.pal-res { max-height: min(440px, 60vh); overflow-y: auto; padding: 8px; }
.pal-grp { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.pal-opt[aria-selected="true"] { background: var(--accent-soft); }
.pal-opt .t { flex: 1; min-width: 0; }
.pal-opt b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-opt small { display: block; color: var(--ink-3); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-hint { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-3); background: var(--surface-2); flex-wrap: wrap; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.pal-empty { padding: 28px; text-align: center; color: var(--ink-3); }

/* ── Αποκριτικότητα ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .step { grid-template-columns: 28px minmax(0, 1fr) 84px 150px 168px; }
  .step .st-status { display: none; }
}
@media (max-width: 1200px) {
  .span-8, .span-7 { grid-column: span 12; } .span-4, .span-5 { grid-column: span 6; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .budget-layout { grid-template-columns: minmax(0, 1fr); }
  .budget-side { position: static; }
  .quick-add { grid-template-columns: 1fr 1fr 1fr; }
  .quick-add .wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { padding: 8px 16px; gap: 6px; min-height: 56px; }
  .topbar .mark { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1rem; margin-right: auto; }
  .topbar .mark svg { width: 30px; height: 30px; }
  .topbar .mark svg.logo { width: 112px; height: auto; }
  .topbar .search { display: none; }
  .topbar .spacer { display: none; }
  .topbar .btn-label { display: none; }
  .topbar .new-btn { width: 44px; padding: 0; }
  .content { padding: 20px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 0 8px env(safe-area-inset-bottom, 0px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; color: var(--ink-3); text-decoration: none; font-size: .6875rem; font-weight: 600; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tabbar svg.i { width: 22px; height: 22px; }
  .tabbar .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--bad-fill); color: #fff; font-size: .625rem; display: grid; place-items: center; }
  h1 { font-size: 1.5rem; }
  .span-4, .span-5, .span-6 { grid-column: span 12; }
  .proc-band { grid-template-columns: minmax(0, 1fr); }
  .hide-desktop-search { display: inline-grid !important; }
  .pstats, .money-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pstats > div:nth-child(3), .money-sum > div:nth-child(3) { border-left: 0; }
  .pstats > div:nth-child(n+3), .money-sum > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .toast-region { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 24px 20px; }
  .login-art .plan, .login-art p { display: none; }
  .login-art h1 { font-size: 1.5rem; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .form-grid { grid-template-columns: 1fr; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tfoot, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .tbl.cards tbody tr:last-child { border-bottom: 0; }
  .tbl.cards td { padding: 0; border: 0; background: none !important; }
  .tbl.cards td.c-main { grid-column: 1 / -1; }
  .tbl.cards td.r { text-align: left; }
  .tbl.cards td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; color: var(--ink-3); font-weight: 600; }
  .tbl.cards tfoot tr { background: var(--surface-2); }
  .step { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 16px; }
  .step .st-days, .step .st-dates { grid-column: 2; }
  .step .st-days { display: inline; font-size: .75rem; }
  .step .st-act { grid-column: 3; grid-row: 1 / span 3; align-self: start; flex-direction: column; }
  .phase > summary { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 12px 16px; }
  .phase > summary .pill { display: none; }
  .proj-head { padding: 18px 16px 14px; }
  .pstats > div, .money-sum > div { padding: 12px 16px; }
  .gantt { padding: 4px 12px 14px; }
  .gantt-in { --lbl: 126px; }
  .g-label .full { display: none; } .g-label .short { display: inline; }
  .rem { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 12px; }
  .rem .rem-menu { grid-column: 3; }
  .rem .due { grid-column: 2; grid-row: 2; }
  .quick-add { grid-template-columns: 1fr 1fr; }
  .stage-row { grid-template-columns: 96px minmax(0, 1fr) 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Ομάδα, φόρτος & αναθέσεις ───────────────────────────────────────── */
.who-mini.none { color: var(--warn); font-weight: 600; }
.who-mini.none svg.i { width: 14px; height: 14px; }
.auto-tag { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .6875rem; font-weight: 700; line-height: 18px; white-space: nowrap; }
.pstats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pstats.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-h h2 { font-size: 1rem; }
.sec-h p { max-width: 72ch; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.member { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.m-top { display: flex; gap: 12px; align-items: center; }
.m-top .t { flex: 1; min-width: 0; }
.m-top h3 { font-size: .9375rem; }
.m-top small { display: block; color: var(--ink-3); font-size: .75rem; }
.m-score { text-align: right; flex: none; }
.m-score b { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.m-score small { color: var(--ink-3); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.m-bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.m-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s ease-out; }
.m-bar.high > i { background: var(--warn-fill); }
.m-bar.low > i { background: var(--ok-fill); }
.m-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips li { font-size: .75rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.m-chips li b { font-variant-numeric: tabular-nums; color: var(--ink); }
.m-chips li.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.m-chips li.bad b { color: var(--bad); }
.m-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.m-steps li { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; }
.m-steps a { color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-steps a:hover { color: var(--accent-ink); text-decoration: underline; }
.m-steps small { color: var(--ink-3); white-space: nowrap; font-size: .75rem; }
.suggest { display: flex; align-items: flex-start; gap: 4px; margin-top: 6px; line-height: 1.35; }
.suggest svg.i { color: var(--accent-ink); width: 13px; height: 13px; flex: none; margin-top: 2px; }
.when-cell span { display: block; font-weight: 600; color: var(--ink); }
.when-cell small { display: block; color: var(--ink-3); font-size: .75rem; }
.seg-form { display: inline-flex; align-items: center; gap: 8px; }
fieldset.seg { border: 0; margin: 0; min-width: 0; }
.seg label { display: inline-flex; align-items: center; position: relative; }
.seg label input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg label span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 6px; color: var(--ink-2); font-weight: 600; font-size: .8125rem; }
.seg label span svg.i { width: 15px; height: 15px; }
.seg label input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.seg label input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.team-tab { display: flex; flex-direction: column; gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-form select { flex: 1; min-width: 220px; width: auto; }
.as-phase { border-top: 1px solid var(--line); }
.as-phase > summary { display: flex; align-items: center; gap: 10px; padding: 12px 20px; cursor: pointer; list-style: none; }
.as-phase > summary::-webkit-details-marker { display: none; }
.as-phase > summary svg.i { transition: transform .2s ease-out; color: var(--ink-3); }
.as-phase[open] > summary svg.i { transform: rotate(180deg); }
.as-phase > summary .xs { margin-left: auto; }
.as-list { list-style: none; margin: 0; padding: 0 20px 12px; }
.as-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.as-row:first-child { border-top: 0; }
.as-row .t b { display: block; font-size: .875rem; }
.as-row .t small { color: var(--ink-3); font-size: .75rem; }
.as-row.is-done .t b { color: var(--ink-3); font-weight: 600; }
.as-form { display: flex; align-items: center; gap: 6px; }
.as-form select { flex: 1; min-width: 0; }
.viewas { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--ochre-soft); border: 1px solid var(--line); flex-wrap: wrap; }
.viewas > svg.i { color: var(--ochre); width: 20px; height: 20px; flex: none; }
.viewas .t { flex: 1; min-width: 200px; }
.viewas .t b { display: block; }
.viewas .t small { color: var(--ink-2); font-size: .8125rem; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 32px; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.input.input-sm { min-height: 34px; padding: 5px 30px 5px 10px; font-size: .8125rem; background-position: right 8px center; }
.user-dept { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.user-dept select { width: auto; min-width: 140px; }
.user-actions { justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.user-actions form { margin: 0; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .as-row { grid-template-columns: 1fr; }
  .pstats.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .tbl.cards td.mode-cell { grid-column: 1 / -1; } .pstats.cols-3 { grid-template-columns: 1fr; } .pstats.cols-3 > div { border-left: 0; border-top: 1px solid var(--line); } .pstats.cols-3 > div:first-child { border-top: 0; } }

/* ── Ξενάγηση: σελίδα έναρξης (/demo) ─────────────────────────────────── */
:root { --demo-bg: #0C0E12; --demo-ink: #EDEFF2; --demo-ink-2: #A7AEB8; --demo-line: #252A32; --demo-card: #13161B; --demo-accent-ink: #A9B8FF; --tour-scrim: rgb(8 10 14 / .74); --tour-ring: #6F87FF; }
body.demo-page { background: var(--demo-bg); color: var(--demo-ink); }
.demo { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 24px 40px;
  background-image: radial-gradient(900px 520px at 85% -10%, rgb(39 71 214 / .28), transparent 70%), radial-gradient(700px 480px at -10% 110%, rgb(217 149 46 / .10), transparent 70%), linear-gradient(#15181D 1px, transparent 1px), linear-gradient(90deg, #15181D 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; width: 100%; margin: 0 auto; }
.demo-brand { display: flex; align-items: center; gap: 12px; color: var(--demo-ink); text-decoration: none; border-radius: var(--r); }
.demo-brand svg { width: 36px; height: 36px; }
.demo-brand b { display: block; font-family: var(--f-display); font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.1; }
.demo-brand small { display: block; font-size: .75rem; color: var(--demo-ink-2); }
.demo-login { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--demo-line); border-radius: var(--r); color: var(--demo-ink); text-decoration: none; font-weight: 600; transition: border-color .15s ease-out, background-color .15s ease-out; }
.demo-login:hover { border-color: #3A414C; background: #15181D; }
.demo-main { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; max-width: 1240px; width: 100%; margin: 0 auto; }
.demo-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #2B3240; border-radius: 999px; color: var(--demo-accent-ink); font-size: .8125rem; font-weight: 700; background: rgb(39 71 214 / .12); }
.demo-hero h1 { color: var(--demo-ink); font-size: clamp(2.125rem, 4.4vw, 3.625rem); line-height: 1.04; letter-spacing: -.025em; margin-top: 20px; max-width: 15ch; }
.demo-lead { color: var(--demo-ink-2); font-size: 1.0625rem; line-height: 1.65; margin-top: 20px; max-width: 54ch; }
.demo-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.demo-start { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: 12px; gap: 10px; box-shadow: 0 12px 32px rgb(39 71 214 / .45), inset 0 1px 0 rgb(255 255 255 / .18); }
.demo-start svg.i { width: 18px; height: 18px; }
.demo-start:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.demo-fine { color: var(--demo-ink-2); font-size: .8125rem; }
.demo-signed { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--demo-ink-2); font-size: .8125rem; }
.demo-facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.demo-facts b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.demo-facts span { display: block; margin-top: 6px; color: var(--demo-ink-2); font-size: .8125rem; }
.demo-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.demo-side h2 { color: var(--demo-ink); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.demo-window { border: 1px solid var(--demo-line); border-radius: 14px; background: color-mix(in srgb, var(--demo-card) 92%, transparent); box-shadow: 0 30px 60px rgb(0 0 0 / .45); overflow: hidden; }
.dw-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--demo-line); color: var(--demo-ink-2); font-size: .75rem; font-family: var(--f-mono); }
.dw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B3038; }
.dw-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-plan { position: relative; padding: 14px 16px 16px; }
.dw-row { display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: center; gap: 0; padding: 5px 0; font-size: .75rem; color: var(--demo-ink-2); }
.dw-row i { position: relative; display: block; height: 10px; border-radius: 4px; background: #1F242C; }
.dw-row i b { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); transform-origin: left; animation: dw-grow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) * 90ms + 150ms); }
.dw-row i b.done { background: #1F9D63; }
.dw-row i b.now { background: #4D6BFF; }
.dw-row i b.par { background: transparent; border: 1.5px dashed #6F87FF; }
.dw-today { position: absolute; top: 8px; bottom: 10px; width: 0; border-left: 2px solid #D9952E; }
@keyframes dw-grow { from { transform: scaleX(0); opacity: .3; } to { transform: scaleX(1); opacity: 1; } }
.demo-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-chapters li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--demo-line); border-radius: 10px; background: rgb(19 22 27 / .7); animation: demo-in .5s ease-out both; animation-delay: calc(var(--d) * 50ms + 250ms); }
.demo-chapters .n { flex: none; width: 20px; color: #6E7682; font-family: var(--f-mono); font-size: .75rem; padding-top: 2px; }
.demo-chapters .ic { flex: none; color: var(--demo-accent-ink); padding-top: 1px; }
.demo-chapters b { display: block; font-size: .875rem; color: var(--demo-ink); }
.demo-chapters small { display: block; color: var(--demo-ink-2); font-size: .75rem; line-height: 1.45; margin-top: 2px; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #7D8590; font-size: .75rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.demo-foot span { display: inline-flex; align-items: center; gap: 6px; }
.demo .skip { background: var(--accent); }
@media (max-width: 1080px) {
  .demo-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .demo-hero h1 { max-width: 18ch; }
}
@media (max-width: 720px) {
  .demo { padding: 16px; gap: 20px; }
  .demo-hero h1 { margin-top: 16px; }
  .demo-lead { font-size: 1rem; }
  .demo-start { width: 100%; }
  .demo-cta { align-items: stretch; }
  .demo-facts { gap: 24px; margin-top: 28px; }
  .demo-facts b { font-size: 1.625rem; }
  .demo-window { display: none; }
  .demo-chapters { grid-template-columns: minmax(0, 1fr); }
}

/* Σύνδεσμος ξενάγησης στη σελίδα σύνδεσης */
.tour-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--ink); text-decoration: none; transition: border-color .15s ease-out; }
.tour-link:hover { border-color: var(--accent); }
.tour-link > svg.i:first-child { color: var(--accent-ink); width: 22px; height: 22px; }
.tour-link > svg.i:last-child { color: var(--ink-3); }
.tour-link span { flex: 1; min-width: 0; }
.tour-link b { display: block; }
.tour-link small { display: block; color: var(--ink-2); font-size: .75rem; }

/* ── Ξενάγηση: σκηνή, προβολέας, κάρτα, κέρσορας ──────────────────────── */
html.tour-boot body::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--tour-scrim); pointer-events: none; }
.tour-shield { position: fixed; inset: 0; z-index: 1000; }
.tour-spot { position: fixed; top: 0; left: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--tour-ring), 0 0 0 7px rgb(111 135 255 / .2), 0 0 0 200vmax var(--tour-scrim);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1), opacity .25s ease-out; }
.tour-spot.sync { transition: opacity .25s ease-out; }
.tour-spot.none { box-shadow: 0 0 0 200vmax var(--tour-scrim); }
.tour-spot.small::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--tour-ring); animation: tour-pulse 1.9s ease-out infinite; }
.tour-shield.out .tour-spot { opacity: 0; }
@keyframes tour-pulse { 0% { opacity: .85; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.05); } }
html.tour-on dialog.palette[open]:not(:modal) { position: fixed; inset: 12vh 0 auto 0; margin: 0 auto; z-index: 1001; }

.tour-card { position: fixed; top: 0; left: 0; z-index: 1002; width: min(360px, calc(100vw - 24px)); transition: transform .34s cubic-bezier(.2,.8,.2,1); }
.tour-card.sync { transition: none; }
.tour-card.wide { width: min(452px, calc(100vw - 24px)); }
.tour-in { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 56px rgb(0 0 0 / .32), 0 6px 16px rgb(0 0 0 / .14); opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .2s ease-in, transform .2s ease-in; }
.tour-card.show .tour-in { opacity: 1; transform: none; transition: opacity .24s ease-out, transform .24s ease-out; }
.tour-prog { height: 3px; background: var(--sunken); }
.tour-prog i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .45s ease-out; }
.tour-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 0 20px; }
.tour-chap { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-count { margin-left: auto; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tour-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; flex: none; }
.tour-x:hover { background: var(--sunken); color: var(--ink); }
.tour-body { padding: 4px 20px 0; }
.tour-body h2 { font-size: 1.1875rem; line-height: 1.28; letter-spacing: -.01em; }
.tour-card.wide .tour-body h2 { font-size: 1.4375rem; }
#tour-b { margin-top: 8px; }
#tour-b p { color: var(--ink-2); font-size: .9375rem; line-height: 1.58; }
#tour-b p + p { margin-top: 8px; }
#tour-b b { color: var(--ink); }
#tour-b kbd { font-size: .75rem; }
#tour-b .tour-fine { color: var(--ink-3); font-size: .8125rem; line-height: 1.5; margin-top: 12px; }
.tour-note { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .875rem; line-height: 1.5; animation: pop .24s ease-out; }
.tour-note svg.i { color: var(--accent-ink); margin-top: 1px; }
.tour-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 16px 16px 20px; }
.tour-keys { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: .75rem; white-space: nowrap; }
.tour-keys kbd:last-of-type { margin-right: 4px; }
.tour-back:disabled { visibility: visible; }
.tour-next { min-width: 120px; }
.tour-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 4px; }
.tour-stats div { padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); text-align: center; }
.tour-stats b { display: block; font-family: var(--f-display); font-size: 1.625rem; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink); }
.tour-stats span { display: block; margin-top: 2px; font-size: .75rem; color: var(--ink-3); }
.tour-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tour-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .8125rem; font-weight: 600; color: var(--ink); animation: tour-chip .3s ease-out both; animation-delay: calc(var(--d) * 70ms + 250ms); }
.tour-chips li svg.i { color: var(--accent-ink); }
@keyframes tour-chip { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tour-hero { margin: 4px 0 12px; color: var(--ink); }
.tour-logo { width: 40px; height: 40px; display: block; }
.tour-done { width: 52px; height: 52px; }
.tour-done svg { width: 52px; height: 52px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tour-done circle { stroke: var(--ok-fill); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: tour-draw .6s ease-out .1s forwards; }
.tour-done path { stroke: var(--ok-fill); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tour-draw .35s ease-out .6s forwards; }
@keyframes tour-draw { to { stroke-dashoffset: 0; } }
.tour-linkbtn { display: inline; padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tour-flash { animation: tour-flash 1.3s ease-out; }
@keyframes tour-flash { 0% { box-shadow: 0 0 0 0 rgb(111 135 255 / .6); } 100% { box-shadow: 0 0 0 12px rgb(111 135 255 / 0); } }
.tour-cursor { position: fixed; top: 0; left: 0; z-index: 1003; width: 0; height: 0; pointer-events: none; opacity: 0; }
.tour-cursor.on { opacity: 1; }
.tour-cursor svg { position: absolute; left: -4px; top: -2px; width: 26px; height: 26px; max-width: none; fill: #fff; stroke: #0B0D10; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .4)); }
.tour-cursor .rip { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--tour-ring); background: rgb(111 135 255 / .3); opacity: 0; }
.tour-cursor.click .rip { animation: tour-rip .5s ease-out; }
.tour-cursor.click svg { animation: tour-press .28s ease-out; }
.tour-cursor.touch svg { display: none; }
.tour-cursor.touch::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .6); border: 2px solid var(--tour-ring); box-shadow: 0 3px 10px rgb(0 0 0 / .35); }
@keyframes tour-rip { 0% { opacity: .95; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tour-press { 50% { transform: scale(.85); } }
.tour-toast > svg.i:first-child { color: #A9B8FF; opacity: 1; }
@media (max-width: 900px) {
  .tour-card, .tour-card.wide { top: auto; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none !important; }
  .tour-in { max-height: min(60vh, 520px); overflow-y: auto; transform: translateY(16px); }
  .tour-body h2, .tour-card.wide .tour-body h2 { font-size: 1.125rem; }
  #tour-b p { font-size: .875rem; }
  .tour-foot { position: sticky; bottom: 0; background: var(--surface); padding-top: 12px; }
  .tour-stats b { font-size: 1.375rem; }
  html.tour-on dialog.palette[open]:not(:modal) { inset-block-start: 72px; }
  html.tour-on .pal-res { max-height: min(240px, 28vh); }
  html.tour-on .pal-hint { display: none; }
}
@media (hover: none) { .tour-keys { display: none; } }
@media (pointer: coarse) { .tour-x { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-card, .tour-in, .tour-prog i { transition: none !important; }
  .tour-spot.small::after { animation: none; }
}

/* ── Διαδικασίες: επιλογές φύλλου, πίνακες βημάτων, διαμερίσματα ─────── */
.proc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proc-meta .tag { gap: 4px; height: 24px; }
.proc-meta svg.i { color: var(--ink-3); }
.tag-proc { text-decoration: none; border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.tag-proc svg.i { color: var(--accent-ink) !important; }
.tag-proc:hover { border-color: var(--accent); }
.tag-alt { gap: 4px; margin-left: 4px; border-color: var(--accent-line); color: var(--accent-ink); }
.tag-warn { margin-left: 4px; border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.proc-line { display: block; margin-top: 4px; }
/* Λίστα έργων: οι τίτλοι αναδιπλώνονται ώστε ο πίνακας να χωρά (12 διαδικασίες, μεγαλύτεροι τίτλοι). */
.proj-tbl .who .name, .proj-tbl .who small { white-space: normal; overflow: visible; }
.proj-tbl td.c-main { min-width: 220px; }
.proj-tbl .line-cell { min-width: 120px; }
.proj-tbl .prog { min-width: 110px; }
@media (min-width: 721px) { .proj-tbl th, .proj-tbl td { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 1366px) { .proj-tbl .col-admin { display: none; } }
@media (min-width: 721px) and (max-width: 1279px) { .proj-tbl th, .proj-tbl td { padding-left: 8px; padding-right: 8px; } }
.proc-line .proc-chip { margin-left: 0; }
.proc-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--sunken); color: var(--ink-2); font-size: .6875rem; font-weight: 700; line-height: 18px; white-space: nowrap; vertical-align: 1px; }
.proc-band.single { grid-template-columns: minmax(0, 1fr); }

/* Βήματα: ομάδες του φύλλου (στήλη D) με εσοχή, εναλλακτικές «Η´», πίνακες. */
.step.step-sub { padding-left: 40px; }
.step.step-sub .st-ico { width: 20px; height: 20px; margin-left: 2px; }
.sub-h.sub-in { padding-left: 40px; border-top: 1px dashed var(--line); text-transform: none; letter-spacing: 0; font-size: .75rem; color: var(--ink-2); }
.sub-h .sub-note { margin-left: 4px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.step.s-alt { opacity: .72; }
.step.s-alt .st-ico { border-style: dashed; color: var(--ink-3); }
.step.s-alt .st-ico svg.i { width: 12px; height: 12px; stroke-width: 2; }
.step.s-alt .st-name { color: var(--ink-2); font-weight: 600; }
.tbl-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.tbl-hint:hover { text-decoration: underline; }
.st-meta .t-accent { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* Πίνακας μέσα σε βήμα (υλικά, καταβολές). */
.tbl-edit { table-layout: fixed; }
.tbl-edit td { padding: 6px 10px; vertical-align: top; }
.tbl-edit th { padding: 8px 10px; }
.tbl-edit .c-n { width: 40px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 700; padding-top: 14px; }
.tbl-edit .input { width: 100%; }
.tbl-edit .err { margin-top: 4px; }
.tbl-form .err-summary { margin-bottom: 12px; }

/* Καρτέλα διαμερισμάτων. */
.money-sum .s2 { display: block; font-size: .75rem; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.money-sum .s2.bad { color: var(--bad); font-weight: 700; }
.money-sum > div.bad b { color: var(--bad); }
.pipe-wrap { padding: 4px 20px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pipe { display: flex; gap: 3px; height: 10px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: var(--sunken); }
.pipe i { display: block; min-width: 6px; }
.pp-available { background: var(--line-strong); }
.pp-interest { background: var(--ochre-fill); }
.pp-negotiation { background: var(--accent); }
.pp-reserved { background: var(--av5-fg); }
.pp-sold { background: var(--ok-fill); }
.pp-delivered { background: var(--ok); }
.pipe-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.pipe-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pipe-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pipe-legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
.units-tbl td.c-main { min-width: 170px; }
.units-tbl .col-pay { min-width: 120px; }
.units-tbl .line-cell .row { flex-wrap: wrap; gap: 4px 8px; }

/* Σελίδα διαμερίσματος. */
.pill.p-violet { background: var(--av5-bg); color: var(--av5-fg); border-color: transparent; }
.unit-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.unit-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.unit-band .list > li { align-items: center; }
.unit-band .list form { margin: 0; }
.start-form { display: flex; gap: 8px 12px; align-items: flex-end; flex-wrap: wrap; }
.start-form .field { flex: 0 1 220px; }
.flow-prev { max-width: 860px; }
.unit-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; flex-wrap: wrap; }
.unit-danger .t { flex: 1 1 320px; min-width: 0; }
.unit-danger h2 { font-size: .9375rem; margin-bottom: 2px; }
.flow-prev { padding-bottom: 12px; }
.flow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 20px; border-top: 1px solid var(--line); }
.sub-h + .flow-row { border-top: 0; }
.flow-row .n { font-weight: 600; min-width: 0; }
.flow-row .d { color: var(--ink-3); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-tbl td form { margin: 0; display: inline-flex; }
.unit-row .st-name a { color: var(--ink); text-decoration: none; }
.unit-row .st-name a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Νέο αίτημα: επιλογή διαδικασίας. */
.tpl-family { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.tpl-family legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; padding: 0; }
.tpl-family legend small { font-weight: 500; color: var(--ink-3); font-size: .75rem; }
.tpl-cards { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.tpl-cards label { font-size: .8125rem; }
.tpl-opts { border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.tpl-desc { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--ink-2); }
.tpl-desc svg.i { color: var(--accent-ink); margin-top: 1px; }
.tpl-desc b { color: var(--ink); }

/* Σελίδες διαδικασιών. */
.read-list { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 10px 20px; }
.read-list li { display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--accent-line); }
.read-list b { color: var(--ink); font-family: var(--f-mono); font-size: .75rem; }
.proc-family { margin-bottom: 24px; }
.proc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.proc-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.proc-card:hover { border-color: var(--accent-line); box-shadow: var(--sh-md); }
.proc-card h3 { font-size: .9375rem; color: var(--ink); }
.proc-card .ico { width: 32px; height: 32px; }
.proc-tbl { table-layout: fixed; }
.proc-tbl td { overflow-wrap: anywhere; }
.proc-tbl .input-sm { width: 100%; }
.input-days { width: 92px; min-height: 34px; padding: 4px 8px; text-align: right; }
.alt-opts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; font-size: .8125rem; }
.alt-opts li { padding-left: 10px; border-left: 2px solid var(--line-strong); }
.obs-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.sticky-actions { position: sticky; bottom: 16px; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 10px 12px; border-radius: var(--r-lg); backdrop-filter: blur(6px); }

/* Στοιχεία έργου: επιλογές της διαδικασίας που έχουν κλειδώσει. */
.lock-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: .8125rem; color: var(--ink-2); }
.lock-note svg.i { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--ink-3); }
fieldset:disabled .radio-cards label, .check:has(input:disabled) { cursor: not-allowed; }
fieldset:disabled .radio-cards label:not(:has(input:checked)) { background: var(--sunken); color: var(--ink-2); }

@media (max-width: 900px) {
  .unit-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .step.step-sub { padding-left: 28px; }
  .sub-h.sub-in { padding-left: 28px; }
  .tbl-edit .c-n { display: none !important; }
  .tbl.cards.tbl-edit tr { grid-template-columns: minmax(0, 1fr); }
  .flow-row { padding: 8px 16px; }
  .pipe-wrap { padding: 4px 16px 14px; }
  .tpl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Χρονοδιάγραμμα βημάτων (Gantt) ─────────────────────────────────── */
.tl-stats { border: 1px solid var(--line); border-radius: var(--r); }
.tl-stats b.bad { color: var(--bad); } .tl-stats b.warn { color: var(--warn); } .tl-stats b.ok { color: var(--ok); }
.tl-stats .s2.minor { color: var(--ink-2); font-weight: 700; }
.tl-roots { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; }
.tl-roots li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.tl-roots a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 0 20px 12px; }
.tl-bar .seg .n { font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legend i.lg-plan { background: transparent; border: 1.5px dashed var(--ink-3); }
.legend i.lg-crit { width: 3px; height: 12px; border-radius: 2px; background: var(--ochre-fill); }
.tl-tip { display: flex; align-items: center; gap: 6px; padding: 0 20px 10px; }
.tgantt { overflow-x: auto; padding: 0 0 12px; border-top: 1px solid var(--line); }
.tgantt-in { --lbl: 280px; position: relative; min-width: 860px; }
.tg-head { display: grid; grid-template-columns: var(--lbl) minmax(0, 1fr); height: 30px; align-items: end; font-size: .6875rem; color: var(--ink-3); font-weight: 600; position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.tg-head .tg-hl { position: sticky; left: 0; background: var(--surface); padding: 0 0 6px 20px; text-transform: uppercase; letter-spacing: .05em; z-index: 6; }
.tg-head .g-months { height: 100%; margin-right: 24px; }
.tg-head .g-months span { top: 6px; }
.tg-body { position: relative; }
.tg-grid { position: absolute; top: 0; bottom: 0; left: var(--lbl); right: 24px; pointer-events: none; z-index: 1; }
.tg-grid > i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.tg-handover { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--ink-3); z-index: 2; transition: left .25s ease-out; }
.tg-handover span { position: absolute; bottom: 4px; left: 4px; font-size: .6875rem; font-weight: 700; color: var(--ink-2); background: var(--surface); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.tg-phase { display: flex; align-items: baseline; gap: 8px; padding: 14px 20px 6px; font-family: var(--f-display); font-weight: 700; font-size: .8125rem; color: var(--ink); position: sticky; left: 0; width: max-content; z-index: 3; }
.tg-phase small { font-family: var(--f-ui); font-weight: 600; font-size: .75rem; color: var(--ink-3); }
.tg-row { display: grid; grid-template-columns: var(--lbl) minmax(0, 1fr); align-items: center; min-height: 34px; border-top: 1px solid var(--line); position: relative; }
.tg-row:hover { background: var(--surface-2); }
.tg-label { position: sticky; left: 0; z-index: 4; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 34px; padding: 4px 12px 4px 20px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .8125rem; font-weight: 600; border-right: 1px solid var(--line); }
.tg-row:hover .tg-label { background: var(--surface-2); }
a.tg-label:hover .n { color: var(--accent-ink); text-decoration: underline; }
.tg-label .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-label .dotst { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.tg-label .dotst.done { background: var(--ok-fill); border-color: var(--ok-fill); }
.tg-label .dotst.active { background: var(--accent); border-color: var(--accent); }
.tg-label .dotst.late { background: var(--bad-fill); border-color: var(--bad-fill); }
.tg-label .dotst.waiting { border-color: var(--warn-fill); background: var(--warn-soft); }
.tg-root { color: var(--warn); display: inline-flex; flex: none; }
.tg-row.crit .tg-label { box-shadow: inset 3px 0 0 var(--ochre-fill); }
.tg-row.rec .tg-label .n { color: var(--ink-2); font-weight: 500; }
.tg-row.sel { background: var(--accent-soft); }
.tg-row.sel .tg-label { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tg-row.pred .tg-label, .tg-row.succ .tg-label { background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); }
.tg-row.pred .tg-label::after, .tg-row.succ .tg-label::after { font-size: .6875rem; font-weight: 700; color: var(--accent-ink); flex: none; }
.tg-row.pred .tg-label::after { content: "προηγείται"; }
.tg-row.succ .tg-label::after { content: "επόμενο"; }
.tg-track { position: relative; height: 34px; margin-right: 24px; z-index: 2; }
.tg-plan { position: absolute; top: 8px; height: 18px; border-radius: 5px; border: 1.5px dashed var(--ink-3); }
.tg-bar { position: absolute; top: 11px; height: 12px; border-radius: 4px; background: color-mix(in srgb, var(--ink-3) 70%, var(--surface)); overflow: hidden; min-width: 4px; transition: left .25s ease-out, width .25s ease-out; }
.tg-bar i { display: block; height: 100%; background: var(--accent); }
.tg-bar.active { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.tg-bar.done { background: var(--ok-fill); }
.tg-bar.late { background: var(--bad-fill); } .tg-bar.late i { background: var(--bad); }
.tg-bar.waiting { background: var(--warn-fill); }
.tg-row.rec .tg-bar { top: 14px; height: 6px; background: color-mix(in srgb, var(--ink-3) 55%, var(--surface)); }
.tg-slip { position: absolute; top: 8px; font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); transition: left .25s ease-out; }
.tg-slip.warn { color: var(--warn); } .tg-slip.bad { color: var(--bad); } .tg-slip.ok { color: var(--ok); }
.tg-row.moved .tg-bar { outline: 2px solid var(--accent); outline-offset: 1px; }
.tg-row.moved .tg-slip::before { content: "→ "; }
.tg-msrow .tg-label { color: var(--ink-3); font-weight: 500; }
.tl-panel { scroll-margin-top: 84px; }
.tl-panel:focus { outline: none; }
.tl-panel-b { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.tl-panel .kv dd.bad { color: var(--bad); } .tl-panel .kv dd.warn { color: var(--warn); } .tl-panel .kv dd.ok { color: var(--ok); }
.tl-why { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r); background: var(--warn-soft); font-size: .8125rem; }
.tl-why li { display: flex; gap: 8px; align-items: flex-start; }
.tl-why svg.i { margin-top: 2px; color: var(--warn); }
.tl-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tl-links h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 6px; }
.tl-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; }
.tl-whatif { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.tl-whatif h3 { font-size: .875rem; }
@media (max-width: 900px) {
  .tl-panel-b { grid-template-columns: minmax(0, 1fr); }
  .tgantt-in { --lbl: 180px; }
  .tg-row.pred .tg-label::after, .tg-row.succ .tg-label::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-bar, .tg-slip, .tg-handover { transition: none; }
}
.tg-bar.off, .tg-bar.off + .tg-slip { display: none; }
.tg-out { position: absolute; top: 9px; display: inline-flex; align-items: center; gap: 2px; font-size: .6875rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tg-out.l { left: 2px; } .tg-out.r { right: 0; }

/* ── Πληρωμές έναντι προόδου ────────────────────────────────────────── */
.hm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.hm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hm-sw { width: 16px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line-strong); }
.hm-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.hm-wrap:focus-visible { outline-offset: -2px; }
.hm-tbl { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.hm-tbl thead th { font-size: .6875rem; font-weight: 700; color: var(--ink-3); text-align: center; vertical-align: bottom; padding: 8px 2px 4px; min-width: 88px; max-width: 110px; line-height: 1.25; }
.hm-tbl thead th span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-tbl .hm-p { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; min-width: 180px; max-width: 220px; padding: 4px 12px 4px 16px; vertical-align: middle; }
.hm-tbl tbody th.hm-p a { font-family: var(--f-mono); font-size: .75rem; font-weight: 600; }
.hm-tbl tbody th.hm-p small { display: block; font-size: .75rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tbl td { padding: 0; }
.hm { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; min-width: 88px; padding: 6px 4px; border-radius: var(--r-sm); text-decoration: none; font-variant-numeric: tabular-nums; border: 1px solid transparent; transition: box-shadow .15s ease-out; }
.hm:hover { box-shadow: 0 0 0 2px var(--ink-3); }
.hm b { display: inline-flex; align-items: center; gap: 3px; font-size: .875rem; font-weight: 700; }
.hm small { font-size: .6875rem; font-weight: 600; opacity: .9; white-space: nowrap; }
.hm-empty { display: block; min-height: 52px; border-radius: var(--r-sm); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--sunken) 6px 7px); }
.hm-none, .hm-sw.hm-none { background: var(--surface-2); color: var(--ink-3); border-color: var(--line); }
.hm-ok, .hm-sw.hm-ok { background: var(--surface-2); color: var(--ink-2); border-color: var(--line-strong); }
.hm-good, .hm-sw.hm-good { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok-fill) 40%, transparent); }
.hm-warn, .hm-sw.hm-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn-fill) 50%, transparent); }
.hm-bad, .hm-sw.hm-bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-fill); }
.hm-severe, .hm-sw.hm-severe { background: var(--bad); color: var(--surface); border-color: var(--bad); }
.hm-unknown, .hm-sw.hm-unknown { background: repeating-linear-gradient(135deg, var(--surface) 0 5px, var(--sunken) 5px 10px); color: var(--ink-2); border-color: var(--line-strong); border-style: dashed; }
.pp { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.pp-row { display: grid; grid-template-columns: 74px minmax(48px, 1fr) 36px; align-items: center; gap: 8px; font-size: .75rem; color: var(--ink-3); }
.pp-row b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.pp .bar.pay > i { background: var(--ink-3); }
.pp-gap { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; }
.pp-gap.bad { color: var(--bad); } .pp-gap.warn { color: var(--warn); } .pp-gap.ok { color: var(--ink-3); font-weight: 600; }
.pp-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pp-form .input { width: 96px; }

/* ── Έγγραφα βημάτων ───────────────────────────────────────────────── */
.doc-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; }
.doc-reqs li { display: flex; gap: 8px; align-items: flex-start; }
.doc-reqs li svg.i { margin-top: 2px; color: var(--ink-3); }
.doc-reqs li.ok svg.i { color: var(--ok); }
.doc-reqs li.miss { color: var(--ink); } .doc-reqs li.miss svg.i { color: var(--warn); }
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.doc-list > li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); }
.doc-list > li:first-child { border-top: 0; }
.doc-list .t { flex: 1; min-width: 0; }
.doc-list .ttl { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-list small { display: block; font-size: .75rem; color: var(--ink-3); }
.doc-ico { width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.doc-up { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface-2); }
.doc-up input[type="file"] { padding: 8px; height: auto; }
.doc-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--ink-2); text-decoration: none; padding: 1px 8px; border-radius: 999px; background: var(--sunken); }
.doc-chip:hover { color: var(--ink); text-decoration: underline; }
.doc-chip.miss { background: var(--warn-soft); color: var(--warn); }

/* ── Προτάσεις συνεργείων ──────────────────────────────────────────── */
.sug-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: .75rem; color: var(--ink); }
.sug-mini svg.i { color: var(--accent-ink); }
.sug-mini > span { flex: 1 1 200px; min-width: 0; }
.avl { font-weight: 700; white-space: nowrap; }
.avl-free { color: var(--ok); } .avl-some { color: var(--ink-2); } .avl-busy { color: var(--warn); }
.sug-list { list-style: none; margin: 0; padding: 0; }
.sug-list > li { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.sug-list .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sug-list .ttl { font-weight: 700; }
.sug-list small { font-size: .75rem; color: var(--ink-3); }
.sug-list .avl { font-size: .75rem; }
.sug-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); font-size: .75rem; font-weight: 700; color: var(--ink-2); flex: none; }
.sug-live { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sug-live .sug-opt { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 8px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: .75rem; }
.pp-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; }
.pp-foot > span { flex: 1 1 0; min-width: 0; }
.pp-edit > summary { list-style: none; cursor: pointer; font-size: .75rem; font-weight: 700; color: var(--accent-ink); padding: 4px 6px; min-height: 24px; border-radius: var(--r-sm); white-space: nowrap; }
.pp-edit > summary::-webkit-details-marker { display: none; }
.pp-edit > summary:hover { background: var(--accent-soft); text-decoration: underline; }
.pp-edit[open] { flex-basis: 100%; }
.pp-edit[open] > summary { background: var(--sunken); }

/* ── Βοηθός AI ─────────────────────────────────────────────────────── */
.ai-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 16px; }
.ai-log { display: flex; flex-direction: column; gap: 12px; }
.ai-log:empty { display: none; }
.ai-msg { border-radius: var(--r-lg); padding: 12px 16px; max-width: 100%; min-width: 0; }
.ai-msg.me { align-self: flex-end; max-width: 80%; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ai-msg.me p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg.bot { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.ai-who { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.ai-body { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; line-height: 1.6; max-width: 72ch; overflow-wrap: anywhere; }
.ai-body ul, .ai-body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ai-body code { font-family: var(--f-mono); font-size: .8125rem; background: var(--sunken); padding: 0 4px; border-radius: 4px; }
.ai-body .tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); max-width: 100%; }
.ai-tbl th, .ai-tbl td { padding: 8px 12px; font-size: .8125rem; }
.ai-src { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-3); }
.ai-wait .ai-dots { font-size: .8125rem; color: var(--ink-3); }
.ai-wait .ai-dots::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: aiDots 1.2s steps(4, end) infinite; }
@keyframes aiDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .ai-wait .ai-dots::after { animation: none; content: "…"; } }
.ai-err { align-items: center; }
.ai-err span { flex: 1; }
.ai-empty h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 8px; }
.ai-ex { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-ex .chip { text-align: left; white-space: normal; min-height: 40px; }
.ai-form { position: sticky; bottom: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh-md); }
.ai-form textarea { resize: vertical; min-height: 64px; max-height: 240px; font-size: 1rem; }
.ai-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ai-actions [data-ai-hint] { margin-right: auto; }
@media (max-width: 720px) { .ai-form { bottom: 76px; } .ai-actions [data-ai-hint] { display: none; } .ai-msg.me { max-width: 92%; } }

/* Βοηθός: ερωτήσεις που περιμένουν τη σύνδεση με το SoftOne */
.ai-ex .chip:disabled { cursor: not-allowed; border-style: dashed; background: transparent; color: var(--ink-3); }
