/* ✅ Δοκιμασίες αξιολόγησης (js/assess.js, 3.21) */
.as-wrap { position: absolute; inset: 0; overflow: auto; padding: 14px; display: flex; justify-content: center; align-items: flex-start; }
.as-card { width: 100%; max-width: 900px; background: #fff; color: #263238; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.14); padding: 18px 22px; }
.as-card.as-small { max-width: 520px; margin-top: 4vh; }
.as-card section { margin-bottom: 14px; }
.as-card h3 { margin: 0 0 7px; font-size: 18px; color: #37474f; }
.as-h { margin: 0 0 8px; font-size: 25px; color: #263238; }
.as-meta { color: #546e7a; font-size: 15px; margin-bottom: 12px; }
.as-note { color: #607d8b; font-size: 14px; margin: 6px 0 0; }
.as-err { color: #c62828; font-weight: 700; min-height: 20px; margin-top: 6px; }

.as-secs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.as-sec { font: inherit; font-size: 15px; font-weight: 700; color: #37474f; padding: 8px 6px; background: #f5f7f8; border: 2px solid #cfd8dc; border-radius: 12px; cursor: pointer; }
.as-sec span { display: block; font-size: 26px; line-height: 1.2; }
.as-sec:hover { border-color: var(--c); }
.as-sec.on { background: var(--c); border-color: var(--c); color: #fff; }

.as-all { display: flex; gap: 6px; margin-bottom: 8px; }
.as-mini { font: inherit; font-size: 14px; font-weight: 600; color: #37474f; padding: 5px 12px; background: #eceff1; border: 1px solid #b0bec5; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.as-mini:hover { background: #dfe5e8; }
.as-group { margin-bottom: 7px; }
.as-group > b { display: block; font-size: 14px; color: #546e7a; margin-bottom: 3px; }
.as-topics, .as-ids { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.as-topic { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; padding: 3px 9px 3px 5px; background: #f5f7f8; border-radius: 8px; cursor: pointer; }
.as-topic input { width: 17px; height: 17px; margin: 0; }

.as-num { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; color: #546e7a; }
.as-num input { width: 70px; font: inherit; font-size: 18px; font-weight: 700; text-align: center; padding: 4px; border: 1px solid #b0bec5; border-radius: 8px; color: #263238; }
.as-step { font-size: 19px; padding: 3px 13px; }
.as-diff { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 15px; }
.as-diff label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.as-line { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 7px; flex-wrap: wrap; }
.as-line input { flex: 1; min-width: 200px; font: inherit; padding: 6px 9px; border: 1px solid #b0bec5; border-radius: 8px; }
.as-field { display: block; font-weight: 700; margin-bottom: 10px; }
.as-field input { display: block; width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; font-size: 18px; padding: 8px 10px; margin-top: 3px; border: 1px solid #90a4ae; border-radius: 8px; }
.as-go { display: block; margin: 8px auto 0; }
.as-go:disabled { opacity: .5; cursor: not-allowed; }

.as-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 14px; }
.as-actions .big-btn { margin: 0; }
.as-link { background: #f5f7f8; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.as-linkrow { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.as-linkrow input { flex: 1; min-width: 180px; font-size: 13px; padding: 5px 8px; border: 1px solid #b0bec5; border-radius: 8px; color: #455a64; background: #fff; }

.as-preview { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.as-preview li { counter-increment: m; display: flex; gap: 8px; align-items: baseline; padding: 6px 2px; border-bottom: 1px solid #eceff1; font-size: 16px; }
.as-preview li > span:first-child::before { content: counter(m) ". "; font-weight: 700; color: #78909c; }
.as-preview li > span { flex: 1; }
.as-preview em { flex: 0 0 auto; font-style: normal; font-size: 14px; color: #607d8b; white-space: nowrap; }

/* Το τεστ: το αληθινό εργαλείο αριστερά, οι αποστολές δεξιά */
.as-exam-wrap { position: absolute; inset: 0; display: flex; gap: 8px; padding: 6px; }
.as-host { position: relative; flex: 1 1 auto; min-width: 0; }
.as-side { flex: 0 0 280px; display: flex; flex-direction: column; min-height: 0; background: #fff; color: #263238; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.12); padding: 9px; }
.as-side-h { padding-bottom: 7px; border-bottom: 1px solid #eceff1; font-size: 15px; }
.as-side-h b, .as-side-h small { display: block; }
.as-side-h small { color: #607d8b; font-size: 13px; }
.as-list { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 6px 0; padding: 0; list-style: none; }
.as-list li { display: flex; gap: 7px; padding: 6px 3px; border-bottom: 1px solid #f0f3f4; font-size: 15px; line-height: 1.3; }
.as-no { flex: 0 0 24px; height: 24px; line-height: 24px; text-align: center; background: #eceff1; border-radius: 50%; font-size: 13px; font-weight: 700; }
.as-click { cursor: pointer; border-radius: 8px; }
.as-click:hover { background: #f5f7f8; }
.as-click.now { background: #e3f2fd; }
.as-click.done .as-no { background: #43a047; color: #fff; }
.as-side .as-finish { flex: 0 0 auto; margin: 0; width: 100%; font-size: 18px; padding: 9px 10px; white-space: nowrap; animation: none; }
.as-side .as-finish::before, .as-side .as-finish::after { display: none; }

/* ΧΩΡΙΣ βοήθειες όσο τρέχει το τεστ */
/* (3.69) δοκιμασία του δασκάλου: πάνω αριστερά μόνο το 🏠 */
html.as-tmode #btn-group { display: none !important; }
html.as-exam #foot,html.as-exam #coach, html.as-exam .coach-pop, html.as-exam .code-helpbar, html.as-exam #btn-say { display: none !important; }
.as-host #sh-saved, .as-host .tf-tasks, .as-host .tf-exbar, .as-host [data-cmd="save"], .as-host [data-cmd="savetxt"], .as-host [data-cmd="print"] { display: none !important; }
.as-host .tf-wrap { grid-template-columns: minmax(0, 1fr); }

/* Το σκορ */
.as-result { text-align: center; }
.as-score { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 2px; }
.as-emo { font-size: 44px; }
.as-big { font-size: 74px; font-weight: 800; line-height: 1; color: #c2185b; }
.as-of { font-size: 26px; font-weight: 700; color: #607d8b; }
.as-msg { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.as-res { text-align: left; }
.as-res li > span:first-child::before { content: none; }
.as-res .as-mark { flex: 0 0 22px; font-weight: 800; }
.as-res .ok .as-mark { color: #2e7d32; }
.as-res .no .as-mark { color: #c62828; }

@media (max-width: 760px) {
  .as-wrap { padding: 8px; }
  .as-card { padding: 12px; }
  .as-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-exam-wrap { flex-direction: column; }
  .as-side { flex: 0 0 38%; }
}

/* Πόντοι ανά αποστολή και έλεγχος ορίου */
.as-scale { margin: 0 0 6px; }
.as-scale .as-mini { margin-left: auto; }
.as-ptslist li { align-items: center; }
.as-pts { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #607d8b; }
.as-pts input { width: 66px; font: inherit; font-size: 16px; font-weight: 700; text-align: center; padding: 3px; border: 1px solid #b0bec5; border-radius: 8px; color: #263238; }
.as-pts input.bad { border-color: #c62828; background: #ffebee; }
.as-total { position: sticky; bottom: -18px; margin: 8px -22px -18px; padding: 9px 22px; font-weight: 700; border-radius: 0 0 16px 16px; background: #e8f5e9; color: #1b5e20; }
.as-total.warn { background: #fff8e1; color: #8a6100; }
.as-total.err { background: #ffebee; color: #b71c1c; }
.as-off { opacity: .45; pointer-events: none; }
.as-actions .big-btn:disabled, .as-mini:disabled { opacity: .45; cursor: not-allowed; }

/* Οθόνες του εκπαιδευτικού: ίδια κάρτα, πιο ήρεμη και οργανωμένη */
.as-pro { padding-bottom: 0; }
.as-head { border-bottom: 1px solid #eceff1; padding-bottom: 8px; margin-bottom: 14px; }
.as-head .as-meta { margin: 2px 0 0; }
.as-step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.as-step h3 { margin: 0; }
.as-step .as-note { margin: 0; }
.as-stepno { flex: 0 0 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #37474f; color: #fff; font-weight: 700; font-size: 14px; }
.as-all { align-items: center; color: #546e7a; font-size: 14px; }
.as-all span { margin-right: auto; }
.as-group { border: 1px solid #eceff1; border-radius: 10px; padding: 4px 10px 8px; margin: 0 0 7px; }
.as-group legend { font-size: 14px; font-weight: 700; color: #546e7a; padding: 0 4px; }
.as-link-btn { font: inherit; font-size: 12px; font-weight: 400; color: #1565c0; background: none; border: 0; cursor: pointer; margin-left: 8px; padding: 0; text-decoration: underline; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.as-cell { background: #f5f7f8; border-radius: 10px; padding: 8px 12px; }
.as-cell > b { display: block; font-size: 14px; color: #455a64; margin-bottom: 6px; }
.as-cell .as-diff { margin-top: 0; min-height: 34px; }
.as-step-btn { font-size: 19px; padding: 3px 13px; }
.as-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 8px; }
.as-form-grid .as-line { display: block; margin: 0; font-size: 14px; font-weight: 600; color: #455a64; }
.as-form-grid .as-wide { grid-column: 1 / -1; }
.as-form-grid input, .as-form-grid textarea { display: block; box-sizing: border-box; width: 100%; font: inherit; font-weight: 400; color: #263238; margin-top: 2px; padding: 6px 9px; border: 1px solid #b0bec5; border-radius: 8px; resize: vertical; }
.as-ids { align-items: center; font-size: 14px; }
.as-pro .as-note { font-size: 13px; }
.as-btn { font: inherit; font-size: 15px; font-weight: 600; color: #37474f; padding: 7px 14px; background: #fff; border: 1px solid #90a4ae; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block; }
.as-btn:hover { background: #eceff1; }
.as-btn.primary { background: #1565c0; border-color: #1565c0; color: #fff; }
.as-btn.primary:hover { background: #0d47a1; }
.as-btn:disabled { opacity: .45; cursor: not-allowed; }
.as-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.as-sep { flex: 1 1 auto; }
.as-foot { position: sticky; bottom: -14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px -22px 0; padding: 10px 22px; background: #fff; border-top: 1px solid #cfd8dc; border-radius: 0 0 16px 16px; font-size: 14px; font-weight: 600; color: #455a64; }
.as-foot .as-btn { flex: 0 0 auto; }
.as-foot .as-total { position: static; margin: -10px -22px; padding: 10px 22px; flex: 1 1 auto; border-radius: 0 0 16px 16px; }
.as-tablehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.as-tablehead h3 { margin: 0; }
.as-tablehead .as-scale { margin: 0; }
.as-tablehead .as-scale .as-btn { margin-left: 8px; font-size: 14px; padding: 4px 10px; }
.as-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.as-table th { text-align: left; font-size: 13px; color: #546e7a; background: #f5f7f8; padding: 6px 8px; border-bottom: 1px solid #cfd8dc; }
.as-table td { padding: 5px 8px; border-bottom: 1px solid #eceff1; vertical-align: middle; }
.as-table th:first-child, .as-table td:first-child { width: 44px; text-align: center; color: #78909c; white-space: nowrap; }
.as-table th:last-child, .as-table td:last-child { width: 78px; text-align: center; }
.as-table .as-tag { font-size: 13px; color: #607d8b; white-space: nowrap; }
input.as-pts { width: 62px; font: inherit; font-size: 15px; font-weight: 700; text-align: center; padding: 3px; border: 1px solid #b0bec5; border-radius: 6px; color: #263238; }
input.as-pts.bad { border-color: #c62828; background: #ffebee; }
.as-details { margin-top: 10px; font-size: 14px; }
.as-details summary { cursor: pointer; font-weight: 700; color: #455a64; }
.as-material { margin-top: 6px; max-height: 320px; overflow: auto; }
.as-material h2 { font-size: 15px; margin: 4px 0; }
.as-material .doc { border: 1px solid #cfd8dc; border-radius: 8px; padding: 8px 12px; } .as-material .doc .t { font-weight: 700; font-size: 16px; } .as-material .doc p { margin: 0 0 3px; font-size: 14px; min-height: 1em; }
.as-material table.g { border-collapse: collapse; font-size: 13px; } .as-material table.g td, .as-material table.g th { border: 1px solid #cfd8dc; padding: 2px 6px; min-width: 28px; } .as-material table.g th.h { background: #f5f7f8; font-weight: 400; color: #607d8b; }
.as-material .sl { display: inline-block; vertical-align: top; width: 190px; min-height: 110px; border: 1px solid #cfd8dc; border-radius: 6px; padding: 6px; margin: 0 6px 6px 0; font-size: 12px; } .as-material .sl b { display: block; }
.as-material .mz { display: inline-block; vertical-align: top; margin: 0 12px 10px 0; } .as-material .mz .cap { font-weight: 700; } .as-material .prog { display: none; }
.as-pupil-note { background: #f5f7f8; border-radius: 8px; padding: 8px 10px; font-size: 15px; margin-bottom: 10px; }
@media (max-width: 760px) { .as-form-grid { grid-template-columns: 1fr; } .as-foot { flex-wrap: wrap; margin: 10px -12px 0; padding: 8px 12px; } .as-table .as-tag { display: none; } .as-table th:nth-child(3) { display: none; } }

/* ⏱ Χρόνος τεστ (3.36) */
.as-sel { font: inherit; font-size: 15px; padding: 5px 8px; border: 1px solid #b0bec5; border-radius: 8px; background: #fff; color: #263238; min-width: 170px; }
.as-timer { margin: 6px 0 2px; padding: 6px 10px; border-radius: 10px; background: #e3f2fd; color: #0d47a1; font-size: 15px; text-align: center; }
.as-timer b { font-size: 24px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.as-timer.warn { background: #fff8e1; color: #8a6100; }
.as-timer.hurry { background: #ffebee; color: #b71c1c; animation: asHurry 1s steps(2, start) infinite; }
@keyframes asHurry { to { opacity: .55; } }
.as-timemsg { margin: 2px 0 4px; text-align: center; font-size: 14px; font-weight: 700; color: #8a6100; }
.as-pupil-time { background: #e3f2fd; }
.as-timeup, .as-used { margin: -4px 0 10px; font-size: 15px; font-weight: 700; }
.as-timeup { color: #b71c1c; }
.as-used { color: #455a64; }
/* 📝 (3.67, Β5) δοκιμασία του δασκάλου: «Ποιος απαντά;» · «Γεια σου, …!» · «✅ Ο δάσκαλος το πήρε» */
.as-whos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 14px 0 4px; }
.as-whob { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; padding: 16px 18px; border: 3px solid #e0e0e0; border-radius: 18px; background: #fff; font: inherit; font-size: 17px; cursor: pointer; color: #263238; }
.as-whob svg { border-radius: 50%; background: #ede7f6; }
.as-whob:hover, .as-whob:focus-visible { border-color: #c2185b; transform: translateY(-2px); }
.as-hello { font-size: 20px; margin-bottom: 6px; color: #37474f; }
.as-sent { margin: -4px 0 10px; font-size: 15px; font-weight: 700; color: #546e7a; }
.as-sent.ok { color: #2e7d32; }
.as-sent.err { color: #b71c1c; }
