/* پنل معلم؛ روی rocket.css سوار است */
.small { font-size: .85rem; }
a.btn { display: inline-block; text-decoration: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.missions .topbar { margin-bottom: 8px; }
.missions .topbar h1 { margin: 0; }
.missions .msg { margin-bottom: 12px; }
.missions h2 { font-size: 1.2rem; }
.mission .go { color: var(--brand); font-weight: 800; }
.mission-list .mission { grid-template-columns: 64px 1fr auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-grid { display: grid; gap: 12px; }
.form-grid + .form-grid { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
textarea.text-input { resize: vertical; line-height: 1.8; }
.kind .choice { cursor: pointer; text-align: right; display: block; padding: 12px; }
.kind .choice .s { color: var(--ink-soft); font-size: .8rem; font-weight: 400; }
.kind .choice input { accent-color: var(--brand); }
.kind .choice:has(input:checked) { border-color: var(--brand); background: #eaf2ff; box-shadow: 0 0 0 3px #bcd5ff; }
.kid-rows { display: grid; gap: 8px; }
.kid-row { display: grid; grid-template-columns: 1fr 9.5em; gap: 8px; }
select.text-input { appearance: auto; }
.btn.danger { background: var(--bad); box-shadow: 0 3px 0 #a82a2a; }
.btn.warn { background: var(--warn); color: #3a2300; box-shadow: 0 3px 0 #b86f00; }
.more summary { cursor: pointer; font-weight: 800; }
.more[open] summary { margin-bottom: 12px; }

/* فهرست دانش‌آموزان */
.st-list { display: grid; gap: 4px; }
.st-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-row .av { width: 44px; height: 44px; border-radius: 50%; background: #eaf2ff; color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.st-row .s, .dev-list .s { color: var(--ink-soft); font-size: .85rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; background: #eaf2ff; color: var(--brand-dark); border-radius: 99px; padding: 0 8px; }
.tag.warn { background: #fff1db; color: #8a5300; }
@media (max-width: 560px) {
  .st-row { grid-template-columns: 44px 1fr; }
  .st-row > .btn { grid-column: 1 / -1; }
}

/* پنجرهٔ دانش‌آموز */
body.modal-open { overflow: hidden; }
.modal-back { position: fixed; inset: 0; background: rgba(8, 10, 30, .6); z-index: 10; }
.modal { position: fixed; z-index: 11; inset: 5vh 50% auto auto; transform: translateX(50%); width: min(520px, calc(100vw - 24px));
  max-height: 90vh; overflow: auto; display: grid; gap: 14px; }
.modal h3 { font-size: 1rem; }
.dev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dev-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f7f9ff; border-radius: 12px; padding: 8px 12px; }

/* کارت ورود (پنجره و چاپ) */
.login-card { border: 3px dashed var(--line); border-radius: 18px; padding: 14px; text-align: center; background: #fff; color: var(--ink); display: grid; gap: 4px; justify-items: center; }
.lc-head { font-weight: 800; color: var(--brand-dark); font-size: .9rem; }
.lc-name { font-weight: 800; font-size: 1.5rem; }
.lc-class { color: var(--ink-soft); font-size: .9rem; }
.lc-qr { width: 180px; height: 180px; margin: 4px 0; }
.lc-qr svg { width: 100%; height: 100%; display: block; }
.lc-code { font-weight: 800; font-size: 1.35rem; letter-spacing: .15em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.lc-help { font-size: .78rem; color: var(--ink-soft); max-width: 300px; line-height: 1.6; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(20, 25, 60, .92); color: #fff; padding: 8px 20px;
  border-radius: 99px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
#toast.show { opacity: 1; }

/* چاپ کارت‌ها */
.print-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
body.printing { background: #eef1fb; }
@media print {
  body, body.printing { background: #fff; }
  #app { max-width: none; padding: 0; }
  .no-print, #toast, #modal { display: none !important; }
  .print-sheet { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .login-card { break-inside: avoid; border-color: #999; }
}

/* گزارش‌ها */
.st-reports { display: grid; gap: 10px; margin-top: 12px; }
.st-report { display: grid; gap: 6px; }
.st-report .w-head { display: flex; align-items: center; gap: 8px; }
.st-report .w-head b { font-size: 1.1rem; }
.st-report .w-head .btn { margin-inline-start: auto; }
.st-report .s, .modal.report .s { font-size: .88rem; }
.subj-avg { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.subj-avg .meter { grid-column: 1 / -1; }
.subj-avg:last-child { border-bottom: 0; }
.modal.report { max-width: 640px; width: min(640px, calc(100vw - 24px)); }
