:root {
  --bg: #f3f4f8; --surface: #fff; --line: #e3e5ee; --ink: #1b1f33; --muted: #666c84;
  --nav: #141829; --nav-ink: #c9cde0; --brand: #d3202b;
  --ok: #1c8a58; --ok-soft: #e5f5ec; --warn: #a86a0c; --warn-soft: #fff3dc; --err: #c4262e; --err-soft: #fde8e9;
  --info: #2456b8; --info-soft: #e8effc;
  color-scheme: light;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Noto Sans", system-ui, "Segoe UI", sans-serif; font-size: 14px; }
.app { display: grid; grid-template-columns: 216px 1fr; min-height: 100%; }
.nav-side { background: var(--nav); color: var(--nav-ink); padding: 20px 12px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; align-self: start; }
.brand { color: #fff; font-weight: 700; font-size: 21px; letter-spacing: -.02em; padding: 0 10px 2px; text-decoration: none; }
.brand b { color: #ff4b55; }
.manual-link { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; color: var(--brand); text-decoration: none; font-weight: 700; line-height: 1.2; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.manual-link:hover { background: #ffecee; color: var(--brand); }
.manual-link small { display: block; font-weight: 500; font-size: 11px; color: #6b7190; }
.manual-ic { font-size: 22px; }
.brand-logo { display: block; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 14px; line-height: 0; }
.brand-logo img { width: 100%; height: auto; display: block; }
.auth-logo { margin-bottom: 8px; width: 240px; max-width: 70%; height: auto; mix-blend-mode: multiply; } /* the JPEG has a white background: multiply makes it blend into the page */
.brand-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 0 10px 18px; color: #8b91ab; }
.nav-side a.item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; color: var(--nav-ink); text-decoration: none; font-weight: 500; }
.nav-side a.item.on { background: var(--brand); color: #fff; }
.nav-side a.item { justify-content: space-between; }
.item-count { font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.14); }
.nav-side a.item.on .item-count { background: rgba(255,255,255,.28); }
.nav-side .fill { flex: 1; }
.nav-side .who { font-size: 12px; color: #8b91ab; padding: 8px 10px; }
.nav-side .who form button { background: none; border: 0; color: #c9cde0; padding: 0; text-decoration: underline; font-size: 12px; }
.main { min-width: 0; padding: 0 24px 24px; }
.topbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 18px 0 14px; }
.topbar h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.cardx { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cardx h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.step { background: var(--ink); color: #fff; border-radius: 6px; font-size: 11px; padding: 1px 7px; }
.pillx { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.pillx.ok { background: var(--ok-soft); color: var(--ok); } .pillx.warn { background: var(--warn-soft); color: var(--warn); }
.pillx.err { background: var(--err-soft); color: var(--err); } .pillx.info { background: var(--info-soft); color: var(--info); }
.pillx.mut { background: #eceef5; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 400; } .kv dd { margin: 0; }
.lock { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: var(--muted); background: #eceef5; border-radius: 6px; padding: 2px 8px; font-weight: 400; }
.banner { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.banner.warn { background: var(--warn-soft); color: #6b430a; } .banner.info { background: var(--info-soft); color: #1b3f8c; } .banner.err { background: var(--err-soft); color: #7d1a1f; }
.row1 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-bottom: 16px; }
.unit-card { display: block; text-decoration: none; color: inherit; }
.unit-card:hover { border-color: var(--brand); }
.htabs .nav-link { color: var(--muted); font-weight: 600; }
.htabs .nav-link.active { color: var(--brand); border-color: var(--line) var(--line) #fff; }
.code { font-family: "Noto Sans Mono", ui-monospace, monospace; font-size: 12px; background: #eceef5; border-radius: 6px; padding: 2px 8px; }
.auth-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .nav-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-side .fill, .brand-sub { display: none; }
  .manual-link { margin-top: 0; padding: 6px 10px; } .manual-link small { display: none; }
  .brand-logo { width: 64px; margin: 0 8px 0 0; padding: 3px; border-radius: 8px; }
  .row1 { grid-template-columns: 1fr; }
  .main { padding: 0 16px 24px; }
}

/* ── Home cards ─────────────────────────────────────────────────────────────── */
.pillx.dark { background: var(--ink); color: #fff; }
.unit2 { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,24,41,.05); height: 100%; }
.unit2-head { padding: 18px 20px 14px; background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%); border-bottom: 1px solid var(--line); border-left: 5px solid var(--brand); }
.unit2-name { font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.unit2-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); font-size: 13px; }
.unit2-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
@media (max-width: 720px) { .unit2-body { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff; transition: border-color .12s, box-shadow .12s; }
.tile:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(20,24,41,.08); color: inherit; }
.tile-current { background: #f4fbf7; border-color: #cfe9da; }
.tile-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.tag-current { background: var(--ok); color: #fff; } .tag-next { background: var(--info); color: #fff; }
.tile-issue { font-weight: 600; } .tile-period { color: var(--muted); font-size: 12px; }
.tile-prog { display: flex; align-items: center; gap: 12px; }
.tile-num { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; min-width: 44px; }
.tile-current .tile-num { color: var(--ok); }
.tile-bar { height: 6px; }
.tile-titles { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tile-empty { font-size: 13px; color: var(--muted); background: #f3f4f8; border-radius: 8px; padding: 10px 12px; }
.tile-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tile-open { color: var(--brand); font-weight: 600; font-size: 13px; }

/* ── Place page ─────────────────────────────────────────────────────────────── */
.crumb { padding: 16px 0 6px; font-size: 13px; } .crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { color: var(--brand); }
.hero { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
  border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 14px; padding: 18px 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,24,41,.05); }
.hero-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hero-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); font-size: 13px; }
.hero-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.issue-seg { display: inline-flex; background: #eceef5; border-radius: 12px; padding: 4px; gap: 4px; }
.issue-seg-item { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); line-height: 1.25; min-width: 120px; }
.issue-seg-item:hover { color: var(--ink); }
.issue-seg-item.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,24,41,.15); }
.issue-seg-kind { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.issue-seg-item.on .issue-seg-kind { color: var(--brand); }
.issue-seg-name { font-weight: 600; font-size: 14px; }
.info-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .info-row { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(20,24,41,.05); margin-bottom: 0; }
.info-row + .panel { margin-top: 0; }
.panel-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.panel-title { font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.panel-sub { color: var(--muted); margin-top: 4px; }
.callout { margin-top: 14px; border-radius: 10px; padding: 12px 14px; border: 1px solid transparent; }
.callout-ok { background: var(--ok-soft); border-color: #bfe3cf; } .callout-warn { background: var(--warn-soft); border-color: #f0d9a4; } .callout-err { background: var(--err-soft); border-color: #f2b8bb; }
.callout-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.callout-main { font-size: 20px; font-weight: 700; margin-top: 2px; }
.callout-ok .callout-main, .callout-ok .callout-rem { color: #125a3a; } .callout-warn .callout-main, .callout-warn .callout-rem { color: #6b430a; } .callout-err .callout-main, .callout-err .callout-rem { color: #7d1a1f; }
.callout-rem { font-size: 13px; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stat { background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat-num { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; } .stat-of { font-size: 16px; color: var(--muted); font-weight: 600; }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; } .text-ok { color: var(--ok); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.info-wide { grid-column: 1 / -1; }
.info-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-val { font-size: 15px; font-weight: 500; margin-top: 2px; word-break: break-word; }
.info-item { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
@media (max-width: 560px) { .info-grid, .stats { grid-template-columns: 1fr; } }

/* ── Compact top panels (override) ─────────────────────────────────────────── */
.info-row { gap: 12px; margin-bottom: 12px; }
.panel-sm { padding: 12px 16px; border-radius: 12px; }
.panel-sm .panel-eyebrow { margin-bottom: 8px; font-size: 11px; }
.panel-title-sm { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.callout-inline { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; border-radius: 8px; padding: 6px 10px; font-size: 13px; border: 1px solid transparent; }
.callout-inline.callout-ok { background: var(--ok-soft); border-color: #bfe3cf; color: #125a3a; }
.callout-inline.callout-warn { background: var(--warn-soft); border-color: #f0d9a4; color: #6b430a; }
.callout-inline.callout-err { background: var(--err-soft); border-color: #f2b8bb; color: #7d1a1f; }
.callout-inline-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.callout-inline-rem { font-weight: 600; }
.stats-inline { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.stats-inline strong { color: var(--ink); font-size: 15px; }
.stats-inline .tile-bar { min-width: 80px; }
.info-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 13px; }
.info-compact .info-lbl { margin-right: 4px; }
.info-c-wide { grid-column: 1 / -1; }
.hero { padding: 12px 18px; margin-bottom: 12px; }
.hero-name { font-size: 22px; }
.crumb { padding: 10px 0 4px; }
@media (max-width: 560px) { .info-compact { grid-template-columns: 1fr; } }

/* Τεύχος card: full width, one compact row (title · deadline · stats) */
.info-row { grid-template-columns: 1fr; }
.info-row .panel-sm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.info-row .panel-sm > .panel-eyebrow { margin: 0; }
.info-row .panel-sm .callout-inline { margin-top: 0; }
.info-row .panel-sm .stats-inline { margin: 0; margin-left: auto; min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.banner { padding: 6px 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.35; }

/* Dashboard notifications */
.notices { display: grid; gap: 6px; margin-bottom: 16px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; color: inherit; font-size: 13.5px; }
.notice:hover { filter: brightness(.97); }
.notice-ic { font-size: 16px; flex: none; }
.notice-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.notice-d { opacity: .8; font-size: 12.5px; }
.notice-go { flex: none; font-size: 12px; font-weight: 600; opacity: .75; }
.notice-err { background: var(--err-soft); border-color: #f2b8bb; color: #7d1a1f; }
.notice-warn { background: var(--warn-soft); border-color: #f0d9a4; color: #6b430a; }
.notice-ok { background: var(--ok-soft); border-color: #bfe3cf; color: #125a3a; }
.notice-info { background: var(--info-soft); border-color: #c5d6f5; color: #1b3f8c; }
.issue-seg-code { font-size: 11px; opacity: .7; }
