:root {
  --bg: #f4f7fd;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #5a6784;
  --line: #e0e7f5;
  --brand: #1d4ed8;
  --brand-dark: #1639a8;
  --accent: #ffc933;
  --navy: #0b1f4d;
  --ok: #187a4a;
  --ok-bg: #e4f6ec;
  --bad: #b3261e;
  --bad-bg: #fdeceb;
  --warn-bg: #fff6df;
  --code-bg: #0b1f4d;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
a { color: var(--brand); }
h1 { font-size: 1.8rem; margin: 0 0 .4em; line-height: 1.25; }
h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.site-header { background: var(--code-bg); color: #fff; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-mark { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; margin-right: 4px; }
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a, .linklike { color: #cfd5e6; text-decoration: none; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active, .linklike:hover { color: #fff; }
.main-nav a.btn { color: #fff; }
form.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.linklike.danger { color: var(--bad); }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .9rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.card h1:first-child, .card h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.hero { padding: 36px 0 24px; }
.hero h1 { font-size: 2.3rem; max-width: 18em; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn-small { padding: 6px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: #e6eeff; }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #8d1d17; }

label { display: block; font-weight: 600; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d1e0; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #9db9ff; border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }
textarea.code, .codebox { font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace; font-size: .92rem; }
textarea.tall { min-height: 320px; }
.form-narrow { max-width: 440px; margin: 0 auto; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 14px 0; }
.checkline input { width: auto; }
.hint { color: var(--muted); font-size: .88rem; margin-top: 4px; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--warn-bg); }

.week-list { list-style: none; margin: 0; padding: 0; }
.week-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.week-item:last-child { border-bottom: 0; }
.week-num { flex: 0 0 54px; height: 54px; border-radius: 12px; background: #e6eeff; color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.week-main { flex: 1; min-width: 0; }
.week-main a { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.week-main a:hover { color: var(--brand); }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; max-width: 260px; }
.progress > span { display: block; height: 100%; background: var(--accent); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e6eeff; color: var(--brand); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: #8a5a00; }
.badge-gray { background: #eceff5; color: var(--muted); }

.content { overflow-wrap: anywhere; }
.content img { max-width: 100%; height: auto; }
.content pre { background: var(--code-bg); color: #e7ecff; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .92rem; }
.content code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #eceff9; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.content pre code { background: none; padding: 0; color: inherit; }
.content table { border-collapse: collapse; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 10px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 14px 0; background: #fff; }
.quiz-q p { margin: 0 0 8px; font-weight: 600; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 10px; border-radius: 8px; font-weight: 400; margin: 2px 0; cursor: pointer; }
.opt input { width: auto; margin-top: 6px; }
.opt.right { background: var(--ok-bg); }
.opt.wrong { background: var(--bad-bg); }

table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; }

.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.subnav a.active, .subnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.stat { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
details.sub { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fafbfe; }
details.sub pre { white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
.pre-answer { background: var(--code-bg); color: #e7ecff; padding: 14px 16px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; font-size: .92rem; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .week-item { align-items: flex-start; }
}

/* ---------- Μπλε / κίτρινο ---------- */
.site-header { border-bottom: 3px solid var(--accent); }
.progress > span { background: #f5b400; }
.btn-yellow { background: var(--accent); color: var(--navy); }
.btn-yellow:hover { background: #ffd65c; color: var(--navy); }
.btn-block { display: block; width: 100%; text-align: center; padding: 12px 18px; }
.flashbar { padding-top: 18px; }

/* ---------- Αρχική / σύνδεση / εγγραφή ---------- */
main.full { padding: 0; }
.landing {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--navy);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: bottom;
  overflow: hidden;
}
.landing-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,22,64,.88) 0%, rgba(8,22,64,.6) 50%, rgba(8,22,64,.2) 100%);
}
.landing-inner {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.landing-inner.has-panel { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 410px); }

.landing-copy { animation: fadeUp .8s ease both; }
.kicker {
  display: inline-block; background: var(--accent); color: var(--navy);
  font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.landing-copy h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.15; margin: .5em 0 .4em; color: #fff; }
.landing-copy h1 .hl { color: var(--accent); }
.landing-copy p { font-size: 1.12rem; color: #d3e0ff; max-width: 34em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0; }
.chips li { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 16px; font-size: .92rem; color: #fff; background: rgba(255,255,255,.08); }

.login-panel {
  background: rgba(255,255,255,.97);
  color: var(--ink);
  border-radius: 20px;
  border-top: 6px solid var(--accent);
  padding: 30px 28px 26px;
  box-shadow: 0 30px 80px rgba(0, 10, 50, .5);
  animation: panelIn .9s cubic-bezier(.2, .75, .2, 1) .3s both;
}
.login-panel h2 { margin: 0 0 4px; font-size: 1.55rem; color: var(--navy); }
.login-panel label:first-of-type { margin-top: 10px; }
.login-panel .panel-foot { margin: 6px 0 0; text-align: center; }

@keyframes panelIn {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-copy, .login-panel { animation: none; }
}
@media (max-width: 880px) {
  .landing-inner.has-panel { grid-template-columns: 1fr; padding-top: 36px; }
  .landing-shade { background: rgba(8,22,64,.72); }
  .login-panel { animation-name: panelInUp; }
  @keyframes panelInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}


.bio-hover {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-bottom: 3px solid #f5c518;
    outline: none;
}

.bio-card {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 0;
    z-index: 100;
    width: 340px;
    max-width: 85vw;
    padding: 20px;
    background: #fff;
    color: #1b2a4a;
    border-bottom: 5px solid #f5c518;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,25,70,.35);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.97);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

    .bio-card::before {
        content: "";
        position: absolute;
        bottom: -12px;
        left: 28px;
        border: 8px solid transparent;
        border-top-color: #f5c518;
    }

.bio-hover:hover .bio-card,
.bio-hover:focus .bio-card,
.bio-hover:focus-within .bio-card {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.bio-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e8f2;
}

    .bio-head strong {
        display: block;
        font-size: 17px;
        color: #0d2a6b;
    }

    .bio-head small {
        display: block;
        color: #5a6b8c;
        font-size: 13px;
    }

.bio-avatar {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d2a6b;
    color: #f5c518;
    font-weight: 700;
    font-size: 16px;
}

.bio-list span {
    display: block;
    padding: 4px 0;
}

.bio-list b {
    color: #0d2a6b;
}
.qa {
    margin-top: 32px;
}

.qa-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

    .qa-top h2 {
        margin: 0;
    }

.qa-shuffle {
    background: #f5c518;
    color: #0d2a6b;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s;
}

    .qa-shuffle:hover {
        transform: translateY(-2px);
    }

.qa-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: qa;
    transition: opacity .25s;
}

    .qa-list.shuffling {
        opacity: 0;
    }

.qa-item {
    counter-increment: qa;
    background: #fff;
    border-left: 5px solid #0d2a6b;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(13,42,107,.08);
}

.qa-q {
    font-weight: 700;
    color: #0d2a6b;
    margin-bottom: 10px;
}

    .qa-q::before {
        content: counter(qa) ". ";
        color: #c99a00;
    }

.qa-a {
    white-space: normal;
    line-height: 1.6;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f4f7fc;
    filter: blur(7px);
    opacity: .45;
    user-select: none;
    pointer-events: none;
    transition: filter .45s ease, opacity .45s ease;
}

.qa-item.open .qa-a {
    filter: none;
    opacity: 1;
    user-select: auto;
    pointer-events: auto;
}

.qa-item.open {
    border-left-color: #f5c518;
}

.qa-toggle {
    margin-top: 12px;
    background: #0d2a6b;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}

    .qa-toggle:hover {
        background: #163c91;
    }

/* ===================== Μενού με υποκατηγορίες ===================== */
.nav-dd { position: relative; }
.nav-dd > summary {
  list-style: none; cursor: pointer; color: #cfd5e6; font-size: .95rem;
  display: flex; align-items: center; gap: 4px; user-select: none;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: "▾"; font-size: .75em; transition: transform .2s; }
.nav-dd[open] > summary::after { transform: rotate(180deg); }
.nav-dd > summary:hover, .nav-dd[open] > summary, .nav-dd.active > summary { color: #fff; }
.dd-menu {
  position: absolute; top: calc(100% + 12px); left: -12px; z-index: 500;
  min-width: 210px; background: #fff; border-radius: 12px; padding: 8px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 18px 40px rgba(0, 20, 70, .3);
  animation: ddIn .18s ease both;
}
.main-nav .dd-menu a { display: block; color: var(--ink); padding: 9px 12px; border-radius: 8px; font-size: .95rem; }
.main-nav .dd-menu a:hover { background: #eef3ff; color: var(--brand); }
.dd-empty { display: block; padding: 9px 12px; color: var(--muted); font-size: .9rem; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .dd-menu { position: fixed; left: 16px; right: 16px; top: auto; margin-top: 12px; }
}

/* ===================== Σειρά μαθημάτων (dashboard) ===================== */
.lesson-strip { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; }
.strip-arrow {
  flex: 0 0 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--accent); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.strip-arrow:hover { background: var(--brand); }
.strip-track {
  flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px 2px 10px; scrollbar-width: thin;
}
.strip-chip {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 14px; text-decoration: none;
  background: #fff; border: 2px solid #c9d6f5; color: var(--ink); max-width: 230px;
  transition: transform .15s, box-shadow .15s;
}
.strip-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,42,107,.15); }
.chip-num {
  flex: 0 0 34px; height: 34px; border-radius: 10px; background: #e6eeff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.chip-title { font-weight: 700; font-size: .9rem; line-height: 1.2; min-width: 0; }
.chip-title small { display: block; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.strip-chip.done { background: var(--ok-bg); border-color: #8fd3ad; }
.strip-chip.done .chip-num { background: var(--ok); color: #fff; }
.strip-legend { display: flex; align-items: center; gap: 6px; margin: 0 0 8px 48px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-left: 8px; }
.dot-done { background: var(--ok); }
.dot-new { background: #fff; border: 2px solid #c9d6f5; }

.lesson-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row.is-done { opacity: .55; transition: opacity .2s; }
.lesson-row.is-done:hover { opacity: 1; }
.lesson-row.is-done .week-num { background: var(--ok-bg); color: var(--ok); }
.lesson-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin-top: 4px; }

/* ===================== Σελίδα μαθήματος: χρονόμετρο ===================== */
.lesson-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 16px 0 8px;
  border-bottom: 4px solid var(--accent); box-shadow: 0 10px 24px rgba(11,31,77,.18);
}
.timer { display: flex; align-items: center; gap: 12px; }
.timer-icon { font-size: 1.6rem; }
.timer-label { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #aebbe0; }
.timer-value { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.timer-state { color: #aebbe0; }
.lesson-bar.paused .timer-value { color: #8b97b8; }
.lesson-bar.paused .timer-state { color: #ffd65c; }
.lesson-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-done { background: #fff; color: var(--navy); }
.btn-done:hover { background: #e6eeff; }
.btn-done.is-done { background: var(--ok); color: #fff; }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #0f5c37; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
@media (max-width: 600px) {
  .lesson-bar { position: static; }
  .lesson-actions, .lesson-actions .btn, .lesson-actions form { width: 100%; }
  .lesson-actions .btn { text-align: center; }
}

/* ===================== Κριτήριο αξιολόγησης ===================== */
.tf-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tf-row:last-child { border-bottom: 0; }
.tf-text { flex: 1 1 320px; }
.tf-n { font-weight: 700; color: var(--brand); }
.tf-pick { display: flex; gap: 8px; }
.tf-pick label { margin: 0; font-weight: 600; cursor: pointer; }
.tf-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tf-pick span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 2px solid #c9d6f5; background: #fff; transition: all .15s; }
.tf-pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.tf-pick input:focus-visible + span { outline: 2px solid #9db9ff; outline-offset: 2px; }
.tf-pick.admin { margin: 10px 0; }

.res-ok  { --res: var(--ok);  --res-bg: var(--ok-bg); }
.res-bad { --res: var(--bad); --res-bg: var(--bad-bg); }
.res-wait { --res: #b07800; --res-bg: var(--warn-bg); }
.tf-row.res { border-left: 5px solid var(--res); background: var(--res-bg); padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; border-bottom: 0; }
.crit-item.res { border-left: 6px solid var(--res); }
.res-note { margin: 6px 0 0; color: var(--res); font-weight: 600; flex-basis: 100%; }
.res-tag { float: right; font-size: .85rem; background: var(--res); color: #fff; padding: 3px 12px; border-radius: 999px; }
.score-board { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin: 10px 0; }
.score-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 12px 20px; min-width: 150px; }
.score-num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.score-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
table.data tr.current td { background: #f3f7ff; }

/* ===================== Admin βοηθητικά ===================== */
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm-row.editing { background: #fffbea; }
.adm-text { flex: 1 1 260px; min-width: 0; }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.cat-rename { display: flex; gap: 10px; align-items: center; flex: 1 1 240px; }
.cat-rename input { padding: 6px 10px; }
.pill-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.pill-tabs a { padding: 8px 18px; border-radius: 999px; background: #e6eeff; color: var(--brand); text-decoration: none; font-weight: 700; }
.pill-tabs a.active { background: var(--navy); color: var(--accent); }
[hidden] { display: none !important; }

/* ===================== Διαγωνίσματα / Χρήσιμα ===================== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,42,107,.12); border-color: #b9c9f0; }
.doc-icon { flex: 0 0 48px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.doc-icon.pdf { background: var(--bad); color: #fff; }
.doc-icon.link { background: #e6eeff; font-size: 1.4rem; }
.doc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-go { color: var(--brand); font-weight: 600; }

/* ===================== Κινητό ===================== */
body { overflow-x: clip; }
@media (max-width: 600px) {
  .lesson-row { flex-wrap: wrap; }
  .lesson-row > .badge, .lesson-row > .btn { margin-left: 70px; }
  .lesson-meta { gap: 4px 14px; }
  .bio-card { position: fixed; left: 16px; right: 16px; bottom: 80px; top: auto; width: auto; max-width: none; }
  .bio-card::before { display: none; }
  .strip-legend { margin-left: 0; }
  .score-actions { margin-left: 0; }
}

/* ===================== Ερωτήσεις επανάληψης: άνοιγμα/κλείσιμο ===================== */
.qa-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-count { display: inline-block; min-width: 28px; padding: 1px 9px; margin-left: 6px; border-radius: 999px; background: #e6eeff; color: var(--brand); font-size: .85rem; vertical-align: middle; text-align: center; }
.qa-reveal { background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.qa-reveal:hover { background: var(--brand); }
.qa-caret { display: inline-block; transition: transform .35s ease; color: var(--accent); }
.qa.shown .qa-caret { transform: rotate(180deg); }

.qa-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease; }
.qa-panel-inner { overflow: hidden; min-height: 0; }
.qa.shown .qa-panel { grid-template-rows: 1fr; }
.qa-panel .qa-list { opacity: 0; transform: translateY(-16px); transition: opacity .45s ease, transform .45s ease; padding-top: 4px; }
.qa.shown .qa-panel .qa-list { opacity: 1; transform: none; }
.qa.shown .qa-item { animation: qaDrop .5s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes qaDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qa-panel, .qa-panel .qa-list { transition: none; }
  .qa.shown .qa-item { animation: none; }
}

/* Απάντηση: κρυμμένη, ανοίγει προς τα κάτω με fade-in (αντί για θόλωμα) */
.qa-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.qa-a-inner { overflow: hidden; min-height: 0; }
.qa-item.open .qa-a-wrap { grid-template-rows: 1fr; }
.qa-a-wrap .qa-a {
  filter: none; user-select: auto; pointer-events: auto;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .4s ease .05s, transform .4s ease .05s;
}
.qa-item.open .qa-a-wrap .qa-a { opacity: 1; transform: none; }
.qa-item:not(.open) .qa-a-wrap .qa-a { visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s .45s; }
@media (prefers-reduced-motion: reduce) {
  .qa-a-wrap, .qa-a-wrap .qa-a { transition: none; }
}

/* ===== Admin: νέοι μαθητές & καρτέλες μαθητών ===== */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.pending-card { border-left: 5px solid #f5b400; background: #fffbea; }
.pending-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pending-head h2 { margin: 0; font-size: 1.15rem; }
.pending-list { list-style: none; margin: 12px 0 0; padding: 0; }
.pending-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #f1e3b0; }
.pending-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pending-who .small { word-break: break-all; }
.pending-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.student-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.student-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11,31,77,.10); border-color: var(--brand); }
.student-card.is-pending { background: #fffbea; }
.student-card .progress { max-width: none; margin: 10px 0 8px; }
.student-top { display: flex; align-items: center; gap: 10px; }
.student-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.student-name .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.student-stats b { display: block; color: var(--brand); }
.student-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.timebar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.timebar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* ===== Μαθητές: εργαλειοθήκη, κάρτες, καρφίτσωμα, λίστα ===== */
.st-head h1 { display: flex; align-items: baseline; gap: 10px; }
.st-count { font-size: 1.1rem; font-weight: 600; }
.st-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 20px; }
.st-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: #f4f7fd; border-radius: 10px; padding: 0 12px; color: var(--muted); }
.st-search input[type=text] { border: 0; background: transparent; padding: 10px 0; margin: 0; outline: none; flex: 1; min-width: 0; }
.st-search input[type=text]:focus { outline: none; }
.st-clear { text-decoration: none; color: var(--muted); font-weight: 700; }
.st-sort { display: flex; align-items: center; gap: 6px; }
.st-sort label { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.st-sort select { width: auto; margin: 0; padding: 8px 10px; }
.st-dir { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 800; color: var(--brand); }
.st-dir:hover { background: #eef3ff; }
.st-views { display: flex; background: #f4f7fd; border-radius: 10px; padding: 3px; }
.st-views a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.st-views a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(11,31,77,.12); }
.st-label { font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.student-grid { margin-bottom: 26px; }
.student-card { position: relative; display: flex; flex-direction: column; gap: 2px; }
.student-card .stretched { color: inherit; text-decoration: none; }
.student-card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.student-card:hover .stretched strong { color: var(--brand); }
.student-top { padding-right: 34px; }
.st-pend { align-self: flex-start; margin-top: 8px; }
.student-card.is-pinned { background: linear-gradient(160deg, #0b1f4d 0%, #1d4ed8 100%); border-color: #0b1f4d; color: #fff; }
.student-card.is-pinned .muted { color: #c7d5ff; }
.student-card.is-pinned .student-stats b { color: #ffc933; }
.student-card.is-pinned .avatar { background: #ffc933; color: #0b1f4d; }
.student-card.is-pinned .progress { background: rgba(255,255,255,.22); }
.student-card.is-pinned:hover .stretched strong { color: #ffc933; }
.pin-form { margin: 0; display: inline; }
.pin-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #a8b3cc; cursor: pointer; transition: color .15s, background .15s, transform .15s; }
.pin-btn:hover { background: #eef3ff; color: var(--brand); transform: rotate(-15deg); }
.pin-btn.on { color: #f5b400; }
.student-card > .pin-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.student-card.is-pinned .pin-btn.on { color: #ffc933; }
.student-card.is-pinned .pin-btn:hover { background: rgba(255,255,255,.15); }
.st-list .progress { max-width: 140px; }
.st-list tr.is-pinned td { background: #fff8db; }
.st-who { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: .9rem; }
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover, .th-sort.on { color: var(--brand); }
@media (max-width: 560px) {
  .st-sort { flex: 1 1 100%; min-width: 0; }
  .st-sort select { flex: 1; min-width: 0; }
  .st-views { flex: 1 1 100%; }
  .st-views a { flex: 1; justify-content: center; }
}

/* ===== Αρχική διαχειριστή (πίνακας ελέγχου) ===== */
.ah-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #0b1f4d 0%, #1d4ed8 100%); color: #fff; border-radius: 18px; padding: 26px 28px; margin: 6px 0 22px; position: relative; overflow: hidden; }
.ah-hero::after { content: "</>"; position: absolute; right: 22px; top: -18px; font: 700 6rem/1 ui-monospace, Menlo, Consolas, monospace; color: rgba(255,201,51,.13); pointer-events: none; }
.ah-hero h1 { color: #fff; margin: .3em 0 .1em; font-size: 1.9rem; }
.ah-hero p { margin: 0; color: #c7d5ff; }
.ah-kicker { display: inline-block; background: #ffc933; color: #0b1f4d; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.ah-quick { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.ah-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }
.ah-ghost:hover { background: rgba(255,255,255,.22); }
.ah-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.ah-tile { position: relative; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ah-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11,31,77,.12); border-color: var(--brand); }
.ah-tile strong { font-size: 1.08rem; color: #0b1f4d; margin-top: 6px; }
.ah-tile:hover strong { color: var(--brand); }
.ah-desc { font-size: .88rem; color: var(--muted); }
.ah-ic { width: 48px; height: 48px; border-radius: 12px; background: #eef3ff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.ah-tile:hover .ah-ic { background: #ffc933; }
.ah-tile.has-alert { border-color: #f5b400; }
.ah-alert { position: absolute; top: 14px; right: 14px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: #c62828; color: #fff; font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .ah-hero { padding: 22px 18px; } .ah-hero h1 { font-size: 1.5rem; } .ah-quick, .ah-quick .btn { width: 100%; text-align: center; } }
@media (max-width: 560px) {
  .ah-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ah-tile { padding: 14px 12px; }
  .ah-tile strong { font-size: .95rem; }
  .ah-desc { font-size: .78rem; }
  .ah-ic { width: 40px; height: 40px; font-size: 1.25rem; }
  .ah-alert { top: 10px; right: 10px; }
}

/* Μετρητές στη λίστα μαθημάτων */
.count-link { display: inline-block; min-width: 34px; text-align: center; padding: 2px 10px; border-radius: 999px; background: #e6eeff; color: var(--brand); font-weight: 700; text-decoration: none; }
.count-link:hover { background: var(--brand); color: #fff; }
.count-link.zero { background: #eceff5; color: var(--muted); }

/* ===== Φύλλα εργασίας ===== */
.ws-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ws-row:last-child { border-bottom: 0; }
.ws-row .week-main { flex: 1; min-width: 0; }
.ws-row .week-main > a { font-weight: 700; text-decoration: none; }
.ws-row .lesson-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 4px; color: var(--muted); }
.ws-row.is-done { opacity: .6; transition: opacity .2s; }
.ws-row.is-done:hover { opacity: 1; }
.ws-cal { flex-shrink: 0; width: 54px; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid #c9d6f5; background: #fff; box-shadow: 0 2px 6px rgba(11,31,77,.06); }
.ws-cal b { display: block; font-size: 1.35rem; line-height: 1.5; color: #0b1f4d; }
.ws-cal span { display: block; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 2px 0; }
.ws-row.is-done .ws-cal span { background: var(--ok); }
.ws-section-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 2em; }
.ws-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 8px; }
.ws-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #0b1f4d 0%, #1d4ed8 100%); color: #fff; border-radius: 18px; padding: 24px 26px; margin: 6px 0 20px; }
.ws-hero.is-done { background: linear-gradient(135deg, #0f5c37 0%, #187a4a 100%); }
.ws-hero h1 { color: #fff; margin: .3em 0 .3em; }
.ws-hero a { color: #ffc933; }
.ws-kicker { display: inline-block; background: #ffc933; color: #0b1f4d; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.ws-dates { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #d6e1ff; font-size: .95rem; }
.ws-dates b { color: #fff; }
.ws-hero-side { display: flex; align-items: center; gap: 10px; color: #d6e1ff; }
.ws-item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ws-item-head h2 { margin: 0; font-size: 1.15rem; }
.ws-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #0b1f4d; color: #ffc933; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ws-sol { margin-top: 14px; border: 1px solid #c9e8d6; border-radius: 12px; background: #f4fbf6; }
.ws-sol > summary { cursor: pointer; list-style: none; padding: 10px 14px; font-weight: 700; color: var(--ok); }
.ws-sol > summary::-webkit-details-marker { display: none; }
.ws-sol > summary::after { content: " ▾"; }
.ws-sol[open] > summary::after { content: " ▴"; }
.ws-sol-body { padding: 0 14px 14px; animation: wsIn .35s ease; }
@keyframes wsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ws-video { position: relative; aspect-ratio: 16 / 9; margin-top: 12px; border-radius: 12px; overflow: hidden; background: #000; }
.ws-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ws-locked { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #f4f6fb; color: var(--muted); font-size: .95rem; }
.ws-done-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-left: 5px solid #ffc933; }
.ws-done-box.is-done { border-left-color: var(--ok); background: #f4fbf6; }
.ws-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-item-admin .ws-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-item-admin .ws-actions { margin-left: auto; }
.ws-item-admin .ws-actions button[disabled] { opacity: .3; cursor: default; }
.ws-preview { max-height: 160px; overflow: hidden; position: relative; font-size: .95rem; }
.ws-preview.long::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fff); }
.ws-who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ws-who li { padding: 8px 12px; border-radius: 10px; background: #f4f6fb; display: flex; flex-direction: column; }
.ws-who li.ok { background: var(--ok-bg); }
.ws-who li.seen { background: #fff8db; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 14px; }
label.check input { width: auto; margin: 0; }
@media (max-width: 560px) {
  .ws-row { flex-wrap: wrap; }
  .ws-row > .btn, .ws-row > .badge { margin-left: 70px; }
  .ws-item-admin .ws-actions { margin-left: 0; }
}
.ws-progress { flex: 0 0 170px; text-align: right; }
.ws-progress .progress { margin-left: auto; max-width: 170px; }
@media (max-width: 560px) { .ws-progress { flex-basis: calc(100% - 70px); text-align: left; margin-left: 70px; } .ws-progress .progress { margin-left: 0; } }

.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Κύλιση φύλλων εργασίας στο dashboard */
.strip-heading { font-size: 1rem; margin: 22px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ws-strip .strip-chip { max-width: 260px; }
.chip-cal { flex: 0 0 40px; border-radius: 9px; overflow: hidden; text-align: center; background: var(--brand); color: #fff; font-size: .6rem; font-weight: 800; letter-spacing: .05em; padding-bottom: 2px; }
.chip-cal b { display: block; background: #fff; color: #0b1f4d; font-size: 1.05rem; line-height: 1.5; border: 1px solid #c9d6f5; border-bottom: 0; border-radius: 9px 9px 0 0; }
.chip-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.ws-strip .chip-title small { max-width: 190px; }
.strip-chip.done .chip-cal { background: var(--ok); }
.strip-chip.soon { border-color: #f5b400; background: #fffbea; }
.strip-chip.soon .chip-cal { background: #e0a800; }
.strip-chip.soon small { color: #8a5a00; font-weight: 700; }
.strip-chip.late { border-color: #e9a29d; background: #fdeceb; }
.strip-chip.late .chip-cal { background: var(--bad); }
.strip-chip.late small { color: var(--bad); font-weight: 700; }
.dot-soon { background: #fffbea; border: 2px solid #f5b400; }
.dot-late { background: #fdeceb; border: 2px solid #e9a29d; }
.strip-legend { flex-wrap: wrap; row-gap: 4px; }
.strip-legend .lg { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 560px) { .strip-legend { margin-left: 4px; } .strip-heading { margin-top: 16px; } }
.ws-strip-empty { margin-left: 48px; }
.ws-empty-chip { max-width: none !important; border-style: dashed; background: #fafbfe; cursor: default; }
.ws-empty-chip:hover { transform: none; box-shadow: none; }
.ws-empty-chip .chip-cal { background: #b5bfd6; }
.ws-empty-chip .chip-name { max-width: none; white-space: normal; }
@media (max-width: 560px) { .ws-strip-empty { margin-left: 0; } }
.ws-empty-chip .chip-title small { max-width: none; white-space: normal; }

/* Ταξινόμηση αρχείων (Διαγωνίσματα / Χρήσιμα) */
.docs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.docs-head h1 { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.docs-sort { background: #fff; border: 1px solid var(--line); flex-wrap: wrap; }
.doc-date { display: block; }
@media (max-width: 560px) { .docs-sort { width: 100%; } .docs-sort a { flex: 1 1 45%; justify-content: center; } }

/* Προβολή λίστας αρχείων */
.docs-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.docs-view { background: #fff; border: 1px solid var(--line); }
.doc-list { padding: 6px 0; }
.doc-line { display: flex; align-items: center; gap: 14px; padding: 10px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); transition: background .15s; }
.doc-line:last-child { border-bottom: 0; }
.doc-line:hover { background: #f4f7fd; }
.doc-line:hover strong { color: var(--brand); }
.doc-line .doc-icon { flex: 0 0 40px; width: 40px; height: 40px; font-size: .75rem; }
.doc-line .doc-icon.link { font-size: 1.1rem; }
.doc-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-line-date { flex: 0 0 auto; white-space: nowrap; }
.doc-line .doc-go { flex: 0 0 auto; white-space: nowrap; font-weight: 700; }
@media (max-width: 560px) {
  .docs-tools, .docs-view { width: 100%; }
  .docs-view a { flex: 1; justify-content: center; }
  .doc-line { flex-wrap: wrap; padding: 10px 12px; row-gap: 4px; }
  .doc-line-main { flex: 1 1 calc(100% - 60px); }
  .doc-line-date { margin-left: 54px; }
  .doc-line .doc-go { margin-left: auto; }
}

/* PDF στα φύλλα εργασίας */
.ws-pdf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 5px solid var(--bad); }
.ws-pdf-sol { border-left-color: var(--ok); background: #f4fbf6; }
.ws-pdf-sol.locked { border-left-color: #b5bfd6; background: #f4f6fb; }
.ws-pdf-main { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.ws-pdf-main .small { overflow-wrap: anywhere; }
.ws-pdf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-icon.sol { background: var(--ok-bg); font-size: 1.5rem; }
.doc-icon.lock { background: #e6e9f2; font-size: 1.3rem; }
.ws-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ws-file { border: 1.5px dashed #c9d6f5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ws-file.has { border-style: solid; background: #fafbfe; }
.ws-file input[type=file] { font-size: .9rem; }
.ws-file-link { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ws-file-link .doc-icon { flex: 0 0 36px; height: 40px; font-size: .7rem; }
@media (max-width: 560px) { .ws-pdf-actions, .ws-pdf-actions .btn { width: 100%; text-align: center; } }

/* Διακόπτης λύσεων φύλλου εργασίας */
.sol-card { padding: 14px 18px; border-left: 5px solid #b5bfd6; }
.sol-card.is-open { border-left-color: var(--ok); background: #f4fbf6; }
.sol-switch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.sol-switch.compact { display: inline-flex; gap: 6px; }
.sol-state { width: 44px; height: 44px; border-radius: 12px; background: #e6e9f2; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.sol-state.on { background: var(--ok-bg); }
.sol-text { flex: 1 1 200px; display: flex; flex-direction: column; }
.sol-switch.compact { flex-direction: column; align-items: flex-start; }
.sol-switch.compact .linklike { color: var(--brand); font-weight: 700; font-size: .85rem; text-decoration: underline; opacity: 1; }

/* Ένδειξη προβολής διαχειριστή στο φύλλο εργασίας */
.admin-preview { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; background: #fff8db; border: 1px solid #f1d98a; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.admin-preview-links { white-space: nowrap; font-weight: 600; }
@media (max-width: 560px) { .admin-preview-links { white-space: normal; } }

/* ===== Βιντεομαθήματα ===== */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 8px 0 20px; }
.vid-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 12px; transition: transform .15s, box-shadow .15s; }
.vid-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,42,107,.13); }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #0b1f4d, #1d4ed8); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(11,31,77,.78); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 3px; transition: background .15s, transform .15s; }
.vid-card:hover .vid-play { background: var(--brand); transform: scale(1.08); }
.vid-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.vid-seen { position: absolute; left: 6px; top: 6px; background: var(--ok); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.vid-card.is-seen .vid-thumb img { opacity: .6; }
.vid-title { font-weight: 700; line-height: 1.3; padding: 0 4px; }
.vid-sub { padding: 0 4px; }
.vid-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vid-progress { max-width: none; margin: 10px 0 4px; }
.vid-group-h { display: flex; align-items: baseline; gap: 10px; }
.vid-group-h a { font-weight: 400; }

.vid-page { display: grid; gap: 20px; align-items: start; }
.vid-page.has-list { grid-template-columns: minmax(0, 1fr) 290px; }
@media (max-width: 860px) { .vid-page.has-list { grid-template-columns: 1fr; } }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(11,31,77,.18); }
.vid-frame iframe, .vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-broken { color: #fff; display: flex; align-items: center; justify-content: center; height: 100%; }
.vid-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 16px 0 10px; }
.vid-head h1 { margin: 8px 0 2px; font-size: 1.5rem; }
.vid-seen-form { display: flex; gap: 8px; flex-wrap: wrap; }
.vid-seen-form .btn-done { border: 2px solid var(--ok); color: var(--ok); }
.vid-seen-form .btn-done.is-done { color: #fff; }
.vid-desc { margin-top: 6px; }
.vid-nav { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.vid-nav .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-list h2 { margin: 0 0 8px; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.vid-list ol { list-style: none; margin: 0; padding: 0; }
.vid-list li a { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.vid-list li a:hover { background: var(--bg); }
.vid-list li.current a { background: #e6eeff; font-weight: 700; }
.vl-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d6f5; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--brand); }
.vid-list li.seen .vl-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.vl-title { flex: 1; line-height: 1.3; font-size: .92rem; }
.vid-list small { color: var(--muted); }

.vid-strip .chip-play { font-size: .85rem; }
.vid-strip .strip-chip { max-width: 260px; }
.strip-more { font-weight: 400; margin-left: 8px; text-transform: none; letter-spacing: 0; }

/* διαχείριση */
.vid-bulk { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.vid-bulk summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.vid-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vid-admin-head h2 { margin: 0; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vid-admin-bulkbtns { display: flex; gap: 6px; }
.vid-admin-bulkbtns form, .vid-order form, .vid-admin-list .actions-cell form { display: inline; }
.vid-admin-list { list-style: none; margin: 10px 0 0; padding: 0; }
.vid-admin-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vid-order { display: flex; flex-direction: column; line-height: 1; }
.vid-order button { font-size: .8rem; padding: 2px 4px; }
.vid-order button[disabled] { opacity: .25; cursor: default; }
.vid-mini { position: relative; flex: 0 0 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #0b1f4d, #1d4ed8); display: block; }
.vid-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-mini span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vid-admin-main { flex: 1 1 200px; min-width: 0; }
.vid-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
@media (max-width: 860px) { .vid-edit { grid-template-columns: 1fr; } }
.vid-preview { padding: 10px; }
.vid-preview .vid-frame { box-shadow: none; }
.vid-people { list-style: none; margin: 0; padding: 0; }
.vid-people li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.vimp { padding: 6px 16px; }
.vimp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vimp-row:first-child { border-top: 0; }
.vimp-row .check { margin: 0; }
.vimp-row input[type=text] { flex: 2 1 220px; margin: 0; }
.vimp-row select { flex: 1 1 200px; margin: 0; }
.vimp-row.dup { opacity: .5; }

/* ===== Μενού διαχείρισης (ομάδες με εικονίδια) ===== */
.anav { display: flex; align-items: stretch; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 8px 8px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(11,31,77,.05); }
.anav-group { display: flex; flex-direction: column; align-items: center; padding: 0 2px; flex: 0 0 auto; }
.anav-group + .anav-group { border-left: 1px solid var(--line); }
.anav-label { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa6c0; padding: 0 0 2px; }
.anav-items { display: flex; gap: 0; }
.anav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 48px; padding: 6px 4px 5px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .7rem; white-space: nowrap; transition: background .15s, color .15s; }
.anav a:hover { background: #eef3ff; color: var(--brand); }
.anav a.active { background: var(--navy); color: #fff; }
.anav-ico { font-size: 1.3rem; line-height: 1.1; }
.anav-home { justify-content: flex-end; }
.anav-badge { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .66rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.anav a.active .anav-badge { background: var(--accent); color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
@media (max-width: 980px) {
  .anav { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .anav-label { display: none; }
  .anav a { min-width: 58px; padding: 6px 4px 5px; }
}

/* ===== Διαγωνίσματα ===== */
.dd-menu .dd-main { font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.test-new summary { list-style: none; cursor: pointer; }
.test-new summary::-webkit-details-marker { display: none; }
.test-new summary h2 { margin: 0; color: var(--brand); font-size: 1.1rem; }
.test-new[open] summary { margin-bottom: 10px; }
.tests-table td form { display: inline; }
.tg { border: 1px solid var(--line); background: #f4f6fb; color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tg.on { background: var(--ok-bg); border-color: #8fd3ad; color: var(--ok); }
.tg:hover { border-color: var(--brand); }
.tswitches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.tswitch { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tswitch.on { border-color: #8fd3ad; background: var(--ok-bg); }
.tswitch strong { display: block; }
.tswitch .small { color: var(--muted); }
.test-stats .card { margin: 0; }
.test-stats .stat small { font-size: .9rem; }
.test-stats .stat.up { color: var(--ok); }
.test-stats .stat.down { color: var(--bad); }
.test-stats .card.me { background: var(--navy); color: #fff; }
.test-stats .card.me .stat { color: var(--accent); }
.test-stats .card.me .muted { color: #cfdcff; }
.grade-sheet .score-in { width: 80px; margin: 0; text-align: center; font-weight: 700; }
.grade-sheet input[type=text] { margin: 0; }
.grade-sheet tr.is-absent td { background: #f7f8fb; }
.grade-sheet tr.is-absent .score-in { background: #eef0f5; }
.grade-save { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; }
.test-file { padding: 10px 0; border-top: 1px solid var(--line); }
.test-file:first-of-type { border-top: 0; }
.test-file-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.test-file-form input[type=file] { margin: 0; max-width: 240px; }

.rank-n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 50%; background: #e6eeff; color: var(--brand); font-weight: 800; font-size: .85rem; }
.rank-n.top1 { background: #ffd54a; color: #6b4e00; }
.rank-n.top2 { background: #dfe4ee; color: #3d4a63; }
.rank-n.top3 { background: #f2c19b; color: #6b3a12; }
.rank-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; flex: 1; min-width: 60px; }
.rank-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4f8bff); border-radius: 999px; }
.rank-bar.big { height: 14px; margin-top: 8px; max-width: 420px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; }
.rank-list li + li { margin-top: 2px; }
.rank-list li.mine { background: #fff6d6; outline: 2px solid var(--accent); }
.rl-name { flex: 0 0 150px; }
.rank-list .rl-name:last-child, .test-two .rl-name { flex: 1; }
.rl-val { font-weight: 800; min-width: 52px; text-align: right; }
.mask-name { color: #c4cbdb; letter-spacing: 1px; font-size: .7rem; filter: blur(.6px); user-select: none; }
@media (max-width: 560px) { .rl-name { flex: 0 0 100px; } }

.tr-hero { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, #0b1f4d, #1d4ed8); color: #fff; border-radius: var(--radius); padding: 20px 24px; margin: 6px 0 20px; flex-wrap: wrap; }
.tr-hero h2 { margin: 0 0 4px; font-size: 1.1rem; }
.tr-hero p { margin: 0; color: #cfdcff; }
.tr-hero .muted { color: #a9bbe6; }
.tr-big { color: #fff; font-size: 1.5rem; }
.tr-hero .rank-bar { background: rgba(255,255,255,.2); }
.tr-hero .rank-bar span { background: var(--accent); }
.tr-hero-main { flex: 1; min-width: 220px; }
.tr-medal { width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.tr-medal b { font-size: 2.4rem; }
.tr-medal span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.tr-medal.top1 { background: #ffd54a; } .tr-medal.top2 { background: #e6eaf2; } .tr-medal.top3 { background: #f2c19b; }
.tr-score { font-size: 1.1rem; }

.test-hero { align-items: center; }
.test-score-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.2) 0); }
.test-score-ring > div { width: 94px; height: 94px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.test-score-ring b { font-size: 1.9rem; }
.test-score-ring span { font-size: .8rem; color: var(--muted); }
.test-wait { display: flex; gap: 14px; align-items: center; }
.test-wait > span { font-size: 1.8rem; }
.test-comment { background: #fff6d6; border-color: #f5d77a; }
.test-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.test-two .card { margin: 0; }
.test-two h2 { margin-top: 0; font-size: 1.1rem; }
@media (max-width: 760px) { .test-two { grid-template-columns: 1fr; } }
.hist { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hist-bar { width: 100%; max-width: 56px; min-height: 3px; background: #c9d6f5; border-radius: 8px 8px 3px 3px; }
.hist-col.mine .hist-bar { background: var(--accent); }
.hist-n { font-weight: 800; font-size: .85rem; }
.hist-k { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.test-video { margin-top: 12px; }
.mask-name { white-space: nowrap; overflow: hidden; display: inline-block; max-width: 100%; vertical-align: middle; }
.rl-name { min-width: 0; white-space: nowrap; overflow: hidden; }
.test-stats .stat small { vertical-align: super; font-size: .8rem; margin-left: 1px; }
@media (max-width: 600px) { .grid.cols4.test-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .test-stats .card { padding: 14px; } }

/* ===== Λογαριασμοί μαθητών ===== */
.acc-year { display: flex; align-items: center; gap: 8px; }
.acc-year select { margin: 0; width: auto; }
.acc-flow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 14px 0; color: var(--muted); }
.acc-flow b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-size: .72rem; margin-right: 4px; }
.acc-stats .card { margin: 0; }
.acc-stats .card.acc-alert { border: 2px solid #f5b400; background: #fffbea; }
.acc-stats form { margin-top: 8px; }
.acc-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.acc-group h2 { margin: 0; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.acc-table td form { display: inline; }
.acc-pin { font-size: 1rem; font-weight: 800; letter-spacing: .15em; background: #fff6d6; padding: 1px 6px; border-radius: 5px; }
.acc-who { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.acc-wait { display: flex; gap: 14px; align-items: flex-start; background: #fff6d6; border-radius: 12px; padding: 14px; margin: 12px 0; }
.acc-wait-ico { font-size: 2rem; line-height: 1; }
.acc-wait p { margin: 0; }

/* ===== Τμήματα στα διαγωνίσματα ===== */
.tm-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tm-pick legend { font-weight: 700; font-size: .9rem; padding: 0 4px; }
.tm-chip { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 5px 12px; border: 2px solid #c9d6f5; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .88rem; background: #fff; }
.tm-chip input { margin: 0; width: auto; }
.tm-chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.tm-chip.tm-all:has(input:checked) { background: var(--ok); border-color: var(--ok); }
.tm-tag { text-transform: none; font-variant: normal; display: inline-block; background: #e6eeff; color: var(--brand); font-weight: 700; font-size: .75rem; padding: 1px 8px; border-radius: 999px; }
.grade-sheet tr.gs-tm td { background: var(--navy); color: #fff; font-weight: 800; letter-spacing: .03em; padding-top: 6px; padding-bottom: 6px; }
.grade-sheet tr.gs-tm td .muted { color: #b9c6e8; font-weight: 400; margin-left: 6px; }
.gs-inact { font-size: .7rem; font-weight: 700; color: #8a5a00; background: #fff6d6; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.gs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 1.4em; }
.gs-head h2 { margin: 0; }
.gs-sort a { font-size: .82rem; }
.gs-barrow { display: flex; align-items: center; gap: 8px; margin-top: 5px; max-width: 280px; }
.gs-bar { position: relative; flex: 1; height: 7px; background: #eef1f7; border-radius: 999px; }
.gs-bar span { display: block; height: 100%; border-radius: 999px; transition: width .25s, background .25s; }
.gs-avg { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--navy); opacity: .55; border-radius: 2px; }
.gs-pct { min-width: 34px; font-weight: 800; font-size: .74rem; }

/* ===== Βαθμολόγηση: πτυσσόμενη, κλείδωμα, αυτόματη αποθήκευση ===== */
.gs-box { margin-top: 1.4em; }
.gs-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 2px 10px rgba(11,31,77,.05); }
.gs-summary::-webkit-details-marker { display: none; }
.gs-summary:hover { border-color: #c9d6f5; }
.gs-sum-title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-right: 4px; }
.gs-chip { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1f7; color: var(--muted); }
.gs-chip.lock { background: #fff6d6; color: #8a5a00; }
.gs-chip.open { background: var(--ok-bg); color: var(--ok); }
.gs-caret { margin-left: auto; font-size: 1.1rem; color: var(--muted); transition: transform .2s; }
.gs-box[open] .gs-caret { transform: rotate(180deg); }
.gs-box[open] .gs-summary { border-radius: var(--radius) var(--radius) 0 0; }
.gs-box .gs-head { margin: 12px 0 10px; }
.gs-lockform { margin: 0; }
.grade-sheet.locked .score-in, .grade-sheet.locked .comment-in { background: #f6f7fb; color: var(--ink); border-color: #e3e7f0; cursor: default; }
.grade-sheet.locked .score-in:focus, .grade-sheet.locked .comment-in:focus { box-shadow: none; outline: none; }
.grade-sheet td { position: relative; }
.gs-saved { display: inline-block; width: 18px; margin-left: 4px; font-weight: 800; font-size: .85rem; text-align: center; }
.gs-saved.ok { color: var(--ok); }
.gs-saved.busy { color: var(--muted); }
.gs-saved.err { color: #fff; background: var(--bad); border-radius: 50%; height: 18px; line-height: 18px; cursor: help; }

/* ===== Μαθητές: τμήματα, ολοκληρώσεις, βαθμοί διαγωνισμάτων ===== */
.st-tmhead { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.st-tmhead span { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.st-tmhead small { color: var(--muted); }
.st-list tr.st-tmrow td { background: var(--navy); color: #fff; font-weight: 800; padding-top: 7px; padding-bottom: 7px; }
.st-list tr.st-tmrow small { color: #b9c6e8; font-weight: 400; margin-left: 6px; }
.st-done { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); margin: 0 0 6px; }
.st-done span { white-space: nowrap; }
.st-tests { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 8px; position: relative; z-index: 2; }
.st-g { --c: #c9d1e0; display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; font-size: .82rem; padding: 1px 7px 0; border-radius: 6px; background: #f6f8fc; border-bottom: 3px solid var(--c); line-height: 1.5; }
.st-g i { font-style: normal; font-weight: 700; font-size: .66rem; color: var(--muted); }
.st-g.none { color: #9aa6c0; font-weight: 700; }
.st-tcol { text-align: center; white-space: nowrap; }
.st-tcol a { text-decoration: none; }
.st-legend { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 14px; }
.st-legend summary { cursor: pointer; }
.st-legend ul { margin: 8px 0 4px 18px; padding: 0; }
/* Κάρτες μαθητών ίδιες σε ύψος: το όνομα πιάνει πάντα 2 γραμμές */
.student-name strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; height: 2.6em; }
.student-top { align-items: flex-start; }
.st-pend-empty { visibility: hidden; }
.student-card .st-tests { min-height: 26px; }
/* Επεξεργασία στοιχείων μαθητή */
.st-edit summary { list-style: none; cursor: pointer; }
.st-edit summary::-webkit-details-marker { display: none; }
.st-edit summary h2 { margin: 0; font-size: 1.05rem; color: var(--brand); }
.st-edit[open] summary { margin-bottom: 8px; }
.st-edit-actions { margin: 12px 0 0; }
.st-edit-pin { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }

/* ===== Ανάλυση διαγωνίσματος ===== */
.an-box { margin-top: 18px; }
.an-card { border-radius: 0 0 var(--radius) var(--radius); border-top: 0; margin-top: 0; }
.an-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.an-print-title { display: none; }
.an-card h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--navy); }
.an-chart { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.an-chart svg { display: block; max-width: none; }
.an-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.an-legend .sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.an-legend .ln { width: 22px; border-top: 2px dashed var(--navy); display: inline-block; margin-left: 8px; }
.an-legend .ln.red { border-top-color: #b3261e; }
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .an-grid { grid-template-columns: 1fr; } }
table.data.an-table th { text-align: left; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9rem; }
table.data.an-tm thead th { font-size: .78rem; color: var(--muted); }
.an-hbar { display: flex; align-items: center; gap: 8px; }
.an-hbar span { display: block; height: 10px; background: linear-gradient(90deg, var(--brand), #4f8bff); border-radius: 999px; min-width: 2px; }
.an-tm .gs-bar { max-width: 220px; }

@media print {
  body.print-analysis .site-header, body.print-analysis .site-footer, body.print-analysis .anav,
  body.print-analysis main > *:not(#analysis) { display: none !important; }
  body.print-analysis #analysis { display: block !important; margin: 0; }
  body.print-analysis #analysis > summary { display: none !important; }
  body.print-analysis .an-card { border: 0; box-shadow: none; padding: 0; }
  body.print-analysis .an-tools { display: none !important; }
  body.print-analysis .an-print-title { display: block; border-bottom: 2px solid #000; margin-bottom: 8px; }
  body.print-analysis .an-print-title h2 { margin: 0; }
  body.print-analysis .an-chart { overflow: visible; border: 0; padding: 0; }
  body.print-analysis .an-chart svg { width: 100% !important; height: auto !important; }
  body.print-analysis main.wrap { max-width: none; padding: 0; }
  body.print-analysis .an-grid, body.print-analysis .an-tm { break-inside: avoid; }
  body.print-analysis { background: #fff; }
}

/* ===================== Σταθερά μενού (sticky) ===================== */
:root { --hdr-h: 64px; }
.site-header { position: sticky; top: 0; z-index: 60; transition: box-shadow .2s, background .2s; }
body.is-scrolled .site-header { box-shadow: 0 6px 22px rgba(5, 14, 40, .35); background: rgba(11, 31, 77, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .bar { transition: padding .2s; }
body.is-scrolled .site-header .bar { padding-top: 9px; padding-bottom: 9px; }
.anav { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 50; transition: padding .2s, box-shadow .2s; }
body.is-scrolled .anav { box-shadow: 0 10px 26px rgba(11, 31, 77, .14); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.is-scrolled .anav-label { display: none; }
body.is-scrolled .anav { padding-top: 5px; padding-bottom: 5px; }
body.is-scrolled .anav a { padding-top: 4px; padding-bottom: 3px; }
body.is-scrolled .anav-ico { font-size: 1.1rem; }
[id] { scroll-margin-top: calc(var(--hdr-h) + 90px); }
@media (max-width: 700px) {
  /* στο κινητό το μενού της διαχείρισης κυλάει μαζί με τη σελίδα για να μένει χώρος */
  .anav { position: static; }
  body.is-scrolled .site-header .main-nav { gap: 4px 14px; }
}

/* ===================== Σελίδα «Χρήσιμα» ===================== */
.uf-hero { background: linear-gradient(135deg, #0b1f4d 0%, #1d4ed8 70%, #4f8bff 100%); color: #fff; border-radius: 18px; padding: 28px 30px 22px; margin-bottom: 26px; position: relative; overflow: hidden; }
.uf-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,51,.35), transparent 70%); }
.uf-hero h1 { margin: 10px 0 6px; font-size: 1.9rem; }
.uf-hero p { margin: 0; color: #d6e1ff; max-width: 640px; }
.uf-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.uf-jump a { color: #fff; text-decoration: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: background .15s; }
.uf-jump a:hover { background: rgba(255,255,255,.26); }
.uf-sec { margin-bottom: 26px; }
.uf-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.uf-sec-ico { width: 38px; height: 38px; border-radius: 11px; background: #fff6d6; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.uf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.uf-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.uf-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,31,77,.12); border-color: #9db8ff; }
.uf-ico { flex: 0 0 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, #e6eeff, #f4f7ff); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; }
.uf-ico.pdf { background: #b3261e; color: #fff; font-size: .8rem; font-weight: 800; }
.uf-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uf-body strong { font-size: 1.02rem; line-height: 1.3; }
.uf-desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.uf-host { font-size: .78rem; font-weight: 700; color: var(--brand); margin-top: 2px; }
.uf-card:hover .uf-host { text-decoration: underline; }
.dd-ico { display: inline-block; width: 24px; }
.uf-hero .ws-kicker { background: #fff; }

/* ===== Χρήστες: ομάδες ===== */
.us-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.us-pill { font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.us-pill.wait { background: #fff1c2; color: #8a5a00; }
.us-pill.temp { background: #eef1f7; color: var(--muted); }
.us-pill.ok { background: var(--ok-bg); color: var(--ok); }
.us-sec { margin-top: 22px; }
.us-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.us-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.us-head p { margin: 2px 0 0; }
.us-wait .card { border: 2px solid #f5b400; background: #fffdf3; }
.us-wait .card table.data tbody tr { background: transparent; }
.us-wait .us-empty { border-style: dashed; border-color: #e6d9a8; background: #fff; }
.us-temp .card { background: #fafbfe; }
.us-temp details > summary { cursor: pointer; color: var(--brand); font-weight: 700; padding: 2px 0 8px; }
.us-ok .card { border-left: 4px solid var(--ok); }
.actions-cell form { display: inline; }
.us-sec table.data td:first-child { white-space: nowrap; }
.us-sec .actions-cell { white-space: normal; min-width: 210px; line-height: 1.9; }
.us-sec .actions-cell .linklike { color: var(--brand); font-size: .85rem; white-space: nowrap; }
.us-sec .actions-cell .linklike.danger { color: var(--bad); }
.us-sec .actions-cell .btn-ok { margin-bottom: 4px; }

/* ===================== Ημερολόγιο ===================== */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-card { padding: 16px; }
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-nav h2 { margin: 0; flex: 1; text-align: center; font-size: 1.2rem; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-dow span.we { color: #b3261e; opacity: .7; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 5px; background: #fff; display: flex; flex-direction: column; gap: 2px; overflow: hidden; text-decoration: none; color: var(--ink); min-width: 0; }
a.cal-day:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(29,78,216,.12); }
.cal-day.out { background: transparent; border-style: dashed; border-color: #eef1f7; }
.cal-day.we { background: #fafbfe; }
.cal-day.hol { background: #eefaf3; }
.cal-day.today { border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgba(255,201,51,.25); }
.cal-n { font-size: .8rem; font-weight: 800; color: var(--muted); }
.cal-day.today .cal-n { background: var(--navy); color: #fff; border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.cal-ev { display: block; font-size: .7rem; font-weight: 700; line-height: 1.3; padding: 2px 5px; border-radius: 5px; background: color-mix(in srgb, var(--k) 13%, white); color: color-mix(in srgb, var(--k) 85%, black); border-left: 3px solid var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.cal-ev:hover { filter: brightness(.95); }
.cal-more { font-size: .66rem; color: var(--muted); }
.cal-compact .cal-day { min-height: 38px; padding: 3px; align-items: center; border-radius: 8px; }
.cal-compact .cal-n { font-size: .78rem; }
.cal-dots { display: flex; gap: 2px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
@media (max-width: 600px) {
  .cal-day { min-height: 54px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--k); border-radius: 3px; }
}
.ev-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--muted); }
.ev-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ev-list, .ev-admin { list-style: none; margin: 0; padding: 0; }
.ev-list li, .ev-admin li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.ev-list li:first-child, .ev-admin li:first-child { border-top: 0; }
.ev-cal { flex: 0 0 44px; text-align: center; border-radius: 10px; overflow: hidden; background: var(--k); color: #fff; font-size: .6rem; font-weight: 800; letter-spacing: .05em; padding-bottom: 2px; }
.ev-cal b { display: block; background: #fff; color: var(--navy); font-size: 1.1rem; line-height: 1.5; border: 1px solid #dde3ef; border-bottom: 0; border-radius: 10px 10px 0 0; }
.ev-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ev-main a { text-decoration: none; color: inherit; }
.ev-main a:hover strong { color: var(--brand); }
.ev-meta { font-size: .8rem; color: var(--muted); }
.ev-desc { font-size: .82rem; color: var(--ink); }
.ev-when { font-size: .74rem; font-weight: 800; color: var(--muted); white-space: nowrap; background: #eef1f7; border-radius: 999px; padding: 2px 9px; }
.ev-when.soon { background: #fff1c2; color: #8a5a00; }
.ev-admin .actions-cell { white-space: nowrap; font-size: .88rem; }
.ev-admin .actions-cell form { display: inline; }
.cal-form h2 { margin-top: 0; font-size: 1.1rem; }
.kind-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.kind-chip { display: inline-flex !important; align-items: center; gap: 5px; margin: 0 !important; padding: 5px 11px; border: 2px solid color-mix(in srgb, var(--k) 35%, white); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .84rem; background: #fff; }
.kind-chip input { margin: 0; width: auto; }
.kind-chip:has(input:checked) { background: var(--k); border-color: var(--k); color: #fff; }
.cal-form-actions { display: flex; gap: 8px; margin: 12px 0 0; }

/* ===================== Αρχική μαθητή ===================== */
.sh-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #0b1f4d 0%, #1d4ed8 100%); color: #fff; border-radius: 18px; padding: 24px 26px; margin: 6px 0 22px; position: relative; overflow: hidden; }
.sh-hero::after { content: "</>"; position: absolute; right: 22px; bottom: -26px; font: 700 6rem/1 ui-monospace, Menlo, Consolas, monospace; color: rgba(255,201,51,.12); pointer-events: none; }
.sh-hello h1 { color: #fff; margin: .3em 0 .15em; font-size: 1.9rem; }
.sh-hello p { margin: 0; color: #c7d5ff; }
.sh-continue { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; min-width: 260px; max-width: 360px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 14px 16px; color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
a.sh-continue:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.sh-cont-k { font-size: .78rem; font-weight: 800; color: var(--accent); }
.sh-continue strong { font-size: 1.05rem; line-height: 1.3; }
.sh-cont-bar { height: 7px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.sh-cont-bar span { display: block; height: 100%; background: var(--accent); }
.sh-cont-sub { font-size: .78rem; color: #c7d5ff; }
.sh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .sh-layout { grid-template-columns: 1fr; } }
.sh-tiles { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sh-test { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; margin-top: 18px; transition: transform .15s, box-shadow .15s; }
.sh-test:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,31,77,.1); }
.sh-test > div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sh-test strong { font-size: 1.1rem; color: var(--navy); }
.sh-ring { width: 86px; height: 86px; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #e6ebf5 0); }
.sh-ring > div { width: 68px; height: 68px; }
.sh-ring b { font-size: 1.4rem; }
.sh-arrow { font-size: 1.4rem; color: var(--muted); }
.sh-todo { margin-top: 18px; }
.sh-todo h2 { margin: 0 0 4px; font-size: 1.1rem; }
.sh-side .card { padding: 14px 16px; }
.sh-cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.sh-cal-head h2, .sh-side-h { margin: 0; font-size: 1.05rem; }
.sh-side-h { margin-bottom: 4px; }
@media (max-width: 560px) { .sh-hello h1 { font-size: 1.5rem; } .sh-continue { max-width: none; width: 100%; } }
.cal-ev { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
@media (max-width: 600px) { .cal-ev { display: block; } }
@media (max-width: 560px) {
  .ah-tiles.sh-tiles { grid-template-columns: 1fr 1fr; }
  .sh-test { flex-wrap: wrap; gap: 12px; }
  .sh-test .sh-arrow { display: none; }
}

/* ===================== Δημόσιες σελίδες (SEO) ===================== */
.pub { padding-top: 34px; padding-bottom: 40px; }
.pub-sec { margin-bottom: 34px; }
.pub-sec h2 { font-size: 1.5rem; margin: 0 0 8px; color: var(--navy); }
.pub-lead { font-size: 1.05rem; color: var(--muted); max-width: 760px; margin: 0 0 18px; }
.pub-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pub-feats > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.pub-feats span { font-size: 1.6rem; }
.pub-feats h3 { margin: 6px 0 4px; font-size: 1.05rem; color: var(--navy); }
.pub-feats p { margin: 0; color: var(--muted); font-size: .92rem; }
.pub-lessons { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pub-lessons li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pub-lessons small { display: block; color: var(--muted); font-size: .84rem; }
.pub-num, .yl-num { flex: 0 0 34px; height: 34px; border-radius: 10px; background: #e6eeff; color: var(--brand); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pub-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.pub-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.pub-faq p { margin: 8px 0 0; color: var(--muted); }
.yl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.yl-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.yl-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,31,77,.12); }
.yl-card h2 { margin: 0 0 4px; font-size: 1.08rem; color: var(--navy); }
.yl-card p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.yl-meta { font-size: .8rem; font-weight: 700; color: var(--brand); }
.pub-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ===== Logo «Sì» ===== */
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.brand-logo { display: block; width: 42px; height: 42px; flex: 0 0 auto; transition: transform .25s ease; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-wm { display: flex; flex-direction: column; }
.brand-wm b { font-size: 1.22rem; font-weight: 800; letter-spacing: -.2px; }
.brand-wm b i { font-style: normal; color: var(--accent); }
.brand-wm small { font-size: .66rem; font-weight: 600; letter-spacing: .09em; opacity: .7; margin-top: 4px; }
body.is-scrolled .brand-logo { width: 34px; height: 34px; }
body.is-scrolled .brand-wm small { display: none; }
@media (max-width: 520px) {
  .brand-logo { width: 36px; height: 36px; }
  .brand-wm b { font-size: 1.05rem; }
  .brand-wm small { display: none; }
}
.landing-logo { display: block; width: 72px; height: 72px; margin-bottom: 14px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
@media (max-width: 700px) { .landing-logo { width: 56px; height: 56px; } }

/* ===== Κινητό: γραμμές λίστας σε όλο το πλάτος, κουμπιά από κάτω ===== */
@media (max-width: 600px) {
  main { padding-left: 14px; padding-right: 14px; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  .card { padding: 16px 14px; }
  .week-item, .lesson-row, .ws-row { flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; }
  .week-item > .week-main, .lesson-row > .week-main, .ws-row > .week-main { flex: 1 1 calc(100% - 70px); min-width: 0; }
  .week-item > .btn, .lesson-row > .btn, .ws-row > .btn,
  .week-item > .badge, .lesson-row > .badge, .ws-row > .badge,
  .week-item > .actions, .lesson-row > .actions { flex: 1 1 100%; margin-left: 0 !important; text-align: center; padding-top: 10px; padding-bottom: 10px; }
  .week-num { flex-basis: 46px; height: 46px; }
  .week-main a { overflow-wrap: anywhere; }
}
/* Διαγωνίσματα μαθητή: στο κινητό κάθε διαγώνισμα γίνεται κάρτα */
@media (max-width: 600px) {
  .my-tests, .my-tests tbody { display: block; width: 100%; }
  .my-tests thead { display: none; }
  .my-tests tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .my-tests tr:last-child { border-bottom: 0; }
  .my-tests td { display: block; padding: 0; border: 0; }
  .my-tests td.tt-date { grid-column: 1 / -1; order: -2; }
  .my-tests td.tt-title { grid-column: 1 / -1; order: -1; font-size: 1.05rem; }
  .my-tests td.tt-locked, .my-tests td.tt-open { grid-column: 1 / -1; }
  .my-tests td[data-l] { background: #f4f7fd; border-radius: 10px; padding: 8px 10px; }
  .my-tests td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
  .my-tests td.tt-open .btn { display: block; text-align: center; padding: 10px; }
  .card.table-wrap:has(.my-tests) { overflow: visible; }
}

/* Κινητό: πίνακες με πολλές στήλες σύρονται οριζόντια αντί να στριμώχνονται */
@media (max-width: 600px) {
  .table-wrap, .card:has(> table.data), .card:has(> form > table.data), div:has(> table.data) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data:not(.my-tests) { min-width: 560px; }
  table.data:not(.my-tests) th { white-space: nowrap; }
  table.data:not(.my-tests) td { min-width: 64px; }
  table.data:not(.my-tests) td a { overflow-wrap: normal; }
  table.data:not(.my-tests) td:has(> a strong), table.data:not(.my-tests) td:has(> strong > a) { min-width: 150px; }
  .swipe-hint { display: block; font-size: .78rem; color: var(--muted); margin: -4px 0 8px; }
}
.swipe-hint { display: none; }

/* ===== Ημερολόγιο μαθητή: «τι έχει η μέρα» ===== */
.cal-side { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.cal-day.sel { border: 2px solid var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.18); background: #f2f6ff; }
.cal-day.past:not(.today):not(.sel) .cal-n { opacity: .55; }
.cal-tip { margin: 8px 0 0; }
.day-panel { border-top: 4px solid var(--brand); }
.day-panel.flash { animation: dayflash .5s ease; }
@keyframes dayflash { from { box-shadow: 0 0 0 4px rgba(29,78,216,.25); } to { box-shadow: none; } }
.day-panel-head h2 { margin: 2px 0 10px; font-size: 1.2rem; }
.day-panel-rel { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .03em; color: var(--brand); background: #e6eeff; border-radius: 999px; padding: 2px 10px; }
.day-panel-rel.past { color: var(--muted); background: #eef1f7; }
.day-panel-empty { margin: 4px 0; }
.day-panel .ev-desc { display: block; margin-top: 6px; padding: 8px 10px; background: #f7f9fe; border-left: 3px solid var(--k, var(--brand)); border-radius: 0 8px 8px 0; font-size: .9rem; line-height: 1.45; }

/* ===== Τάξεις (Α΄/Β΄/Γ΄ Λυκείου) ===== */
.taxi-chip {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 4px 11px; border-radius: 999px; font-size: .86rem; font-weight: 700;
  background: rgba(255, 201, 51, .16); color: var(--accent) !important; border: 1px solid rgba(255, 201, 51, .45);
}
a.taxi-chip:hover { background: rgba(255, 201, 51, .28); text-decoration: none; }
.taxi-dd > summary { padding-top: 0; padding-bottom: 0; }
.taxi-dd > summary::after { color: var(--accent); }
.taxi-dd .dd-menu { right: 0; left: auto; min-width: 200px; }
.main-nav .taxi-dd .dd-menu a.on { background: #eef3ff; color: var(--brand); font-weight: 700; }
.taxi-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.taxi-opt { position: relative; cursor: pointer; margin: 0; }
.taxi-opt input { position: absolute; opacity: 0; pointer-events: none; }
.taxi-opt span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, transform .15s;
}
.taxi-opt span b { font-size: 1.6rem; line-height: 1.1; color: var(--navy); }
.taxi-opt span small { color: var(--muted); font-size: .82rem; }
.taxi-opt:hover span { border-color: #9db6f5; transform: translateY(-1px); }
.taxi-opt input:checked + span { border-color: var(--brand); background: #eef3ff; box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.taxi-opt input:checked + span b { color: var(--brand); }
.taxi-opt input:focus-visible + span { outline: 3px solid rgba(29, 78, 216, .4); outline-offset: 2px; }
.taxi-card { max-width: 560px; }
@media (max-width: 520px) { .taxi-chip { font-size: .8rem; padding: 3px 9px; } }

/* ===== Ονόματα στις κατατάξεις: ο καθηγητής τα βλέπει, με κουμπί απόκρυψης ===== */
.pn-mask { display: none; }
html.names-off .pn-real { display: none; }
html.names-off .pn-mask { display: inline-block; }
html.names-off .pn-svg { visibility: hidden; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.rank-head h2 { margin-bottom: 8px; }
.names-tg { white-space: nowrap; }
.gs-head .names-tg { margin-left: auto; }

/* ===== Διαχείριση στο κινητό: ίδια λογική με τις σελίδες των μαθητών ===== */
@media (max-width: 600px) {
  /* πίνακες → κάρτες: κάθε γραμμή γίνεται μπλοκ με «ετικέτα: τιμή» */
  table.data.tcards { min-width: 0 !important; display: block; width: 100%; }
  table.data.tcards thead { display: none; }
  table.data.tcards tbody { display: block; }
  table.data.tcards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.data.tcards tbody tr:last-child { border-bottom: 0; }
  table.data.tcards td { display: block; border: 0; padding: 0; min-width: 0 !important; width: auto !important; white-space: normal !important; text-align: left; overflow-wrap: anywhere; }
  table.data.tcards td[data-l] { background: #f4f7fd; border-radius: 10px; padding: 7px 10px; }
  table.data.tcards td[data-l]::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 2px; overflow-wrap: anywhere; }
  table.data.tcards td.tc-head, table.data.tcards td:not([data-l]), table.data.tcards td:has(.comment-in) { grid-column: 1 / -1; }
  table.data.tcards td.tc-head { order: -1; font-size: 1.04rem; font-weight: 600; background: none; padding: 0 0 2px; }
  table.data.tcards td.tc-head::before { content: none; }
  table.data.tcards td a { overflow-wrap: anywhere; }
  table.data.tcards td:not([data-l]):not(.tc-head):has(> form, > .btn, > a) { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
  .table-wrap:has(> table.tcards), .card:has(> table.tcards), .card:has(> form > table.tcards), div:has(> table.tcards) { overflow-x: visible; }
  .swipe-hint:has(+ .table-wrap > table.tcards), .swipe-hint:has(+ .card > table.tcards) { display: none; }
  /* βαθμολόγιο: κάθε μαθητής μια κάρτα */
  .grade-sheet table.tcards tr.gs-tm { display: block; margin: 10px -14px 0; padding: 0; border: 0; }
  .grade-sheet table.tcards tr.gs-tm td { padding: 8px 14px; }
  .grade-sheet table.tcards tr:not(.gs-tm) { grid-template-columns: 1.25fr .8fr 1fr 1fr; gap: 6px; padding: 10px 0; }
  .grade-sheet table.tcards td[data-l] { padding: 6px 8px; }
  .grade-sheet table.tcards td[data-l]::before { font-size: .64rem; letter-spacing: 0; }
  .grade-sheet table.tcards td .score-in { width: 100%; max-width: 90px; padding: 6px 4px; }
  .grade-sheet table.tcards td .absent-in { width: 22px; height: 22px; margin: 4px 0 0; }
  .grade-sheet table.tcards td:has(.comment-in) { background: none; padding: 0; order: 5; }
  .grade-sheet table.tcards td:has(.comment-in)::before { content: none; }
  .grade-sheet table.tcards td .comment-in { width: 100%; padding: 8px 10px; }
  .grade-sheet table.tcards td.tc-head .gs-barrow { max-width: 260px; margin-top: 4px; }
  .grade-sheet table.tcards td.small { font-size: .95rem; }
  .grade-sheet table.tcards tr.is-absent td { background: transparent; }
  .grade-sheet table.tcards tr.is-absent { background: #f7f8fb; }

  /* μετρητές: δύο στη σειρά, όπως στην αρχική του μαθητή */
  .adm-page .grid.cols4:has(> .card > .stat) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-page .grid.cols4:has(> .card > .stat) > .card { padding: 14px; margin: 0; }
  .adm-page .grid.cols4 .stat { font-size: 1.7rem; }
  .adm-page .grid.cols4:has(> .card > .stat) > .card p { margin: 6px 0 0; font-size: .88rem; }

  /* κουμπιά/φόρμες σε μια γραμμή που χωράει */
  .adm-page .ws-admin-head { flex-wrap: wrap; gap: 8px; }
  .adm-page h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
  .rank-head { align-items: flex-start; }
}

/* Γράφημα σύγκρισης διαγωνισμάτων (admin/tests.php) */
.pn-svg-mask { display: none; }
html.names-off .pn-svg-mask { display: inline; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cmp-key { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.cmp-key[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
@media print { .cmp-key { border: 0; } }

/* Ο λογαριασμός μου (διαχειριστής) */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.acct-grid .card h2 { margin-top: 0; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } }
.me-link { font-weight: 600; white-space: nowrap; }

/* Ανακοινώσεις: popup στους μαθητές */
html.ann-open { overflow: hidden; }
.ann-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 18, 40, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: annFade .2s ease-out; }
.ann-ov[hidden] { display: none; }
.ann-box { position: relative; background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 22px 22px 16px; border-top: 6px solid var(--brand); animation: annPop .25s ease-out; }
.ann-top { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 0 28px 12px 0; }
.ann-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.ann-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ann-item:first-of-type { border-top: 0; padding-top: 0; }
.ann-ico { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
.ann-txt { min-width: 0; }
.ann-txt h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.ann-txt p { margin: 0 0 10px; }
.ann-kind { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ann-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@keyframes annFade { from { opacity: 0; } }
@keyframes annPop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
@media (max-width: 600px) { .ann-ov { align-items: flex-end; padding: 0; } .ann-box { border-radius: 16px 16px 0 0; max-height: 88vh; } .ann-foot .btn { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { .ann-ov, .ann-box { animation: none; } }
.ann-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; }
.ann-strip-h { font-weight: 800; color: #8a5a00; margin-right: 4px; }
.ann-strip a, .ann-strip > span:not(.ann-strip-h) { background: #fff; border: 1px solid #f0d58a; border-radius: 999px; padding: 4px 12px; font-weight: 600; text-decoration: none; }
.ann-new { background: #d93025; color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.ann-who div { padding: 1px 0; }
.head-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Μενού διαχείρισης: χωράει και με τα νέα κουμπιά (Popup, Εγώ) */
.anav { justify-content: safe center; }
@media (min-width: 601px) and (max-width: 1400px) { .anav a { padding: 6px 2px 5px; min-width: 40px; font-size: .68rem; } .anav-group { padding: 0 1px; } }

/* ===================== Μενού διαχείρισης με καρφιτσωμένες καρτέλες ===================== */
.anav.anav-pins { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 4px; padding: 6px 8px; }
.anav-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-width: 0; }
.anav-tabs a.is-off { display: none; }
.anav-tabs a.anav-temp { opacity: .85; border: 1.5px dashed #9aa6c0; }
.anav-tabs a.anav-temp.active { border-color: var(--accent); }
.anav-x { display: none; position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 800; line-height: 20px; padding: 0; cursor: pointer; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.anav.editing .anav-tabs a:not(.anav-temp) .anav-x { display: block; }
.anav.editing .anav-tabs a:not(.anav-temp) { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: 1.5px dashed #b9c6e4; outline-offset: -2px; animation: anavWiggle .9s ease-in-out infinite alternate; }
.anav.editing .anav-tabs a .anav-badge { display: none; }
.anav.editing .anav-tabs a.dragging { cursor: grabbing; animation: none; background: #ffe9a8; color: var(--navy); box-shadow: 0 8px 20px rgba(11,31,77,.25); z-index: 3; }
@keyframes anavWiggle { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .anav.editing .anav-tabs a { animation: none; } }
.anav-more { position: relative; display: flex; border-left: 1px solid var(--line); padding-left: 4px; }
.anav-more-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 48px; padding: 6px 6px 5px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: .7rem; cursor: pointer; white-space: nowrap; }
.anav-more-btn:hover, .anav-more-btn[aria-expanded="true"] { background: #eef3ff; color: var(--brand); }
.anav-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: 300px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(11,31,77,.22); padding: 8px; }
.anav-menu-h { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9aa6c0; padding: 4px 8px 6px; }
.anav-mi { display: flex; align-items: center; gap: 4px; border-radius: 9px; }
.anav-mi.is-off { display: none; }
.anav-mi:hover { background: #f3f6fc; }
.anav-mi a { flex: 1; position: relative; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.anav-mi a .anav-badge { position: static; margin-left: 6px; box-shadow: none; }
.anav-pin { border: 0; background: none; font-size: 1.05rem; padding: 6px 9px; border-radius: 8px; cursor: pointer; opacity: .55; }
.anav-pin:hover, .anav.editing .anav-pin { opacity: 1; background: #fff3cd; }
.anav-mi-empty { padding: 4px 10px 8px; }
.anav-menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 8px 4px; }
.anav-editbar { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 10px; padding: 7px 10px; font-size: .85rem; font-weight: 600; color: #6b4a00; }
.anav-editbar[hidden] { display: none; }
@media (max-width: 600px) {
  .anav.anav-pins { flex-wrap: nowrap; justify-content: flex-start; }
  .anav-tabs { flex-wrap: nowrap; overflow-x: auto; flex: 1 1 auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-top: 6px; }
  .anav.editing .anav-tabs { flex-wrap: wrap; overflow: visible; }
  .anav.editing.anav-pins { flex-wrap: wrap; }
  .anav-menu { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none; border-radius: 16px 16px 0 0; max-height: 75vh; overflow: auto; }
}
/* Λογαριασμοί: υπο-καρτέλες (Χρήστες / Νέοι λογαριασμοί / Ο λογαριασμός μου) */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; border-bottom: 2px solid var(--line); }
.subtabs a { padding: 8px 14px; border-radius: 10px 10px 0 0; text-decoration: none; font-weight: 700; color: var(--muted); margin-bottom: -2px; border-bottom: 2px solid transparent; }
.subtabs a:hover { color: var(--brand); background: #f3f6fc; }
.subtabs a.on { color: var(--navy); border-bottom-color: var(--brand); background: #fff; }
.anav .anav-mi a { display: flex; flex-direction: row; align-items: center; gap: 6px; min-width: 0; white-space: normal; text-align: left; border-radius: 9px; font-size: .92rem; }
.anav .anav-mi a:hover { background: none; }
.anav-menu-foot .linklike { color: var(--muted); }
.anav-tabs { justify-content: safe center; }
@media (max-width: 600px) { .anav-tabs { justify-content: flex-start; } }
/* Ομάδες στο μενού με καρφίτσες (ο διαχειριστής διαλέγει σε ποια ομάδα πάει κάθε καρτέλα) */
.anav-pins .anav-tabs { gap: 0; align-items: stretch; }
.anav-pins .anav-group { padding: 0 3px; }
.anav-pins .anav-items { flex-wrap: wrap; justify-content: center; }
.anav-pins .anav-group.is-empty { display: none; }
.anav-drop, .anav-label-ed { display: none; }
.anav-pins .anav-home .anav-label { visibility: hidden; }
.anav.editing .anav-group.is-empty { display: flex; }
.anav.editing .anav-home .anav-label { visibility: visible; }
.anav.editing .anav-label-ed { display: inline; }
.anav.editing .anav-items { min-height: 52px; min-width: 64px; border-radius: 10px; background: #f6f8fd; padding: 3px; gap: 3px; }
.anav.editing .anav-group.is-empty .anav-drop { display: flex; align-items: center; justify-content: center; padding: 0 10px; font-size: .72rem; font-weight: 700; color: #9aa6c0; border: 1.5px dashed #c5cfe6; border-radius: 9px; white-space: nowrap; }
.anav.editing .anav-label { color: var(--brand); }
@media (max-width: 600px) {
  .anav-pins .anav-items { flex-wrap: nowrap; }
  .anav.editing .anav-tabs { flex-direction: column; align-items: stretch; }
  .anav.editing .anav-group { flex-direction: row; align-items: center; gap: 6px; padding: 4px 0; border-left: 0 !important; border-top: 1px solid var(--line); }
  .anav.editing .anav-group:first-child { border-top: 0; }
  .anav.editing .anav-label { display: block; width: 78px; flex: 0 0 78px; font-size: .56rem; letter-spacing: .04em; overflow-wrap: anywhere; }
  .anav.editing .anav-items { flex: 1; flex-wrap: wrap; justify-content: flex-start; }
}

/* ===================== Κινητό: μενού με ☰ και «πού είμαι» κάτω από το λογότυπο ===================== */
.nav-toggle { display: none; }
.brand-page { display: none; }
@media (max-width: 760px) {
  .site-header .bar { flex-wrap: nowrap; position: relative; }
  .brand { min-width: 0; }
  .brand-wm { min-width: 0; }
  .brand-wm .brand-tag { display: none; }
  .brand-wm .brand-page { display: block; margin-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 150px); }
  body.is-scrolled .brand-wm .brand-page { display: block; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 42px; padding: 0 11px; margin-left: auto; flex: 0 0 auto; border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; }
  .nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .22s, opacity .18s; }
  .nav-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .nav-open .nav-toggle { background: rgba(255, 201, 51, .16); border-color: var(--accent); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .site-header .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    background: var(--code-bg); border-bottom: 3px solid var(--accent); box-shadow: 0 18px 30px rgba(5, 14, 40, .35);
    padding: 6px 18px 16px; max-height: calc(100vh - var(--hdr-h)); max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto; }
  .site-header.nav-open .main-nav { display: flex; animation: navDown .2s ease-out; }
  body.is-scrolled .site-header .main-nav { gap: 0; }
  .main-nav > a, .main-nav > .nav-dd > summary, .main-nav > form .linklike { display: flex; align-items: center; padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; text-align: left; }
  .main-nav > a.active { color: var(--accent); font-weight: 700; }
  .main-nav > a.active::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); margin-right: 10px; }
  .main-nav > .nav-dd > summary { justify-content: space-between; }
  .main-nav > .nav-dd.active > summary { color: var(--accent); font-weight: 700; }
  .main-nav .dd-menu { position: static; margin: 4px 0 8px; min-width: 0; box-shadow: none; animation: none; }
  .main-nav > a.btn { justify-content: center; margin-top: 12px; border-bottom: 0; }
  .main-nav > a.taxi-chip { width: auto; align-self: flex-start; margin: 12px 0 2px; padding: 6px 12px; border-bottom: 0; }
  .main-nav > .taxi-dd > summary .taxi-chip { padding: 4px 10px; }
  .main-nav > form { margin: 0; }
  .main-nav > form .linklike { border-bottom: 0; color: #ffb4a8; }
  html.nav-locked, html.nav-locked body { overflow: hidden; }
  @keyframes navDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  /* Διαχείριση: το μενού της μένει σταθερό πάνω, κάτω από την κεφαλίδα */
  .adm-page .anav { position: sticky; top: var(--hdr-h); z-index: 50; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0; box-shadow: 0 6px 16px rgba(11, 31, 77, .10); background: rgba(255, 255, 255, .97); }
  .adm-page .anav.editing { position: static; }
  .adm-page .anav .anav-label { display: none; }
  .adm-page .anav.editing .anav-label { display: block; }
}
@media (prefers-reduced-motion: reduce) { .site-header.nav-open .main-nav { animation: none; } .nav-toggle span { transition: none; } }

/* ===================== «Τα μαθήματά μου»: καρτέλες Μαθήματα / Φύλλα / Βίντεο ===================== */
.dash-tabs { display: flex; gap: 6px; margin: 6px 0 22px; padding: 5px; background: #e9eef8; border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.dash-tab:hover { color: var(--navy); background: rgba(255,255,255,.55); }
.dash-tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(11,31,77,.12); }
.dash-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.dt-tab-ico { font-size: 1.15rem; line-height: 1; }
.dash-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dash-count.hot { background: var(--bad); }
.dash-panel[hidden] { display: none; }
.dash-panel > .lesson-strip { margin-bottom: 6px; }
.dash-h { display: flex; align-items: baseline; gap: 10px; font-size: 1.15rem; margin: 22px 0 10px; }
.dash-h-done { margin-top: 30px; color: var(--muted); font-size: 1rem; }
/* Ολοκληρωμένα: μικρά πλακίδια, κάτω από τα «για διάβασμα», που πατιούνται για επανάληψη */
.done-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.done-tile { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; transition: background .15s, border-color .15s, transform .15s; }
.done-tile:hover { background: #fff; border-color: #b9c6e4; transform: translateY(-1px); text-decoration: none; }
.dt-ico { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e2f5ea; color: #157a3e; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
.dt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dt-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-t small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-go { color: #9aa6c0; font-size: .95rem; opacity: 0; transition: opacity .15s; }
.done-tile:hover .dt-go { opacity: 1; color: var(--brand); }
@media (max-width: 600px) {
  .dash-tab { flex: 1 0 auto; padding: 10px 11px; font-size: .9rem; gap: 6px; }
  .dash-tab .dt-tab-lbl { font-size: .86rem; }
  .done-grid { grid-template-columns: 1fr; }
  .dt-go { opacity: .7; }
}
.dt-tab-short { display: none; }
@media (max-width: 600px) { .dash-tab .dt-tab-lbl { display: none; } .dash-tab .dt-tab-short { display: inline; } .dash-tab { flex: 1 1 0; padding: 10px 6px; } }
@media (max-width: 600px) { .dash-tabs { gap: 3px; padding: 4px; } .dash-tab { gap: 5px; font-size: .9rem; } }
@media (max-width: 430px) { .dash-tab .dt-tab-ico { display: none; } .dash-count { min-width: 20px; height: 20px; font-size: .7rem; padding: 0 6px; } }
@media (max-width: 380px) { .dash-tab { padding: 9px 2px; font-size: .84rem; gap: 4px; } }

/* ===================== Μαθητής (διαχείριση): λίστα με τικ — πράσινο ό,τι ολοκλήρωσε, κενό ό,τι όχι ===================== */
.chk-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
.chk-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.chk-stat-n { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.chk-stat-l { font-size: .8rem; color: var(--muted); }
.chk-mini { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 5px; }
.chk-mini > span { display: block; height: 100%; background: #3fae6a; border-radius: 999px; }
.chk-list { list-style: none; margin: 0 0 8px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chk { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid #eef1f6; }
.chk:first-child { border-top: 0; }
.chk-box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c9d1e1; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; color: #fff; }
.chk.is-done { background: #f3fbf6; }
.chk.is-done .chk-box { background: #3fae6a; border-color: #3fae6a; }
.chk.is-late .chk-box { border-color: #e7a3a0; }
.chk.is-late small { color: var(--bad); }
.chk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chk-t { font-weight: 600; color: var(--ink); }
a.chk-t { text-decoration: none; }
a.chk-t:hover { text-decoration: underline; color: var(--brand); }
.chk.is-done .chk-t { color: #1d5e37; }
.chk-main small { font-size: .78rem; color: var(--muted); }
.chk-time { flex: 0 0 auto; min-width: 90px; text-align: right; font-size: .85rem; line-height: 1.3; }
.chk-time .timebar { display: block; width: 120px; margin: 0 0 3px auto; height: 6px; }
.chk-time .timebar > span { display: block; }
.chk.is-done .chk-time .timebar > span { background: #3fae6a; }
.month-h { font-size: 1rem; margin: 18px 0 8px; color: var(--navy); }
.month-h-sm { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a94ab; margin: 14px 0 6px; }
@media (max-width: 700px) { .chk-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .chk { padding: 9px 11px; gap: 10px; align-items: flex-start; }
  .chk-box { margin-top: 2px; }
  .chk-time { min-width: 70px; }
  .chk-time .timebar { width: 70px; }
}
