.student-main { min-height: calc(100svh - 82px); background: #f5f7fc; padding: clamp(1.5rem, 5vw, 3.5rem) 0 3rem; }
.student-wrap { max-width: 1120px; }
.student-heading { margin-bottom: 1.3rem; }
.student-heading h1 { margin-block: .3rem; font-size: clamp(2rem, 5.5vw, 3.25rem); }
.student-heading > p:last-child, .student-card > div > p { color: var(--muted); }
.student-class { color: #5340a3; font-weight: 700; }
.student-card { padding: clamp(1rem, 4vw, 1.75rem); }
.student-card .feedback-form { max-width: 32rem; padding: .25rem 0 0; }
.student-card .feedback-form .muted { margin-block: .25rem .65rem; }
.student-account, .student-attempt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.student-account { margin-bottom: .65rem; }
.student-account bdi { color: var(--navy); font-weight: 700; }
.student-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; margin-top: .75rem; }
.student-chapter-group { display: grid; gap: .8rem; min-width: 0; }
.student-subject { border-top: 3px solid #4967c7; min-width: 0; }
.student-subject[data-subject="math"] { border-top-color: #7857c8; }
.student-history-title { margin-block: 1rem .4rem; }
.student-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.student-stats > div { padding: clamp(.5rem, 2vw, .85rem); background: #f0f3ff; border-radius: 10px; }
.student-stats dt { color: var(--muted); font-size: .92rem; }
.student-stats dd { margin: .2rem 0 0; color: var(--navy); font-size: clamp(1.15rem, 4vw, 1.65rem); font-weight: 700; }
.student-history { margin-top: 1.25rem; scroll-margin-top: 6rem; }
.student-history h2 { margin-bottom: .55rem; }
.student-history > .muted { margin-bottom: .6rem; }
.student-attempt { padding: .8rem 1rem; margin-bottom: .55rem; }
.student-attempt time { color: var(--muted); font-size: .9rem; }
.student-attempt a { display: inline-flex; align-items: center; min-height: 44px; }
.model-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .55rem; }
.model-rules { padding-inline-start: 1.4rem; margin-block: .5rem 1rem; }
.model-rules li + li { margin-top: .3rem; }
.model-controls { position: sticky; top: 0; z-index: 1; padding-block: .7rem; }
.model-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem .75rem; margin-bottom: .45rem; }
.model-progress .quiz-timer { margin: 0; font-variant-numeric: tabular-nums; }
.model-pages { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .3rem; }
.model-pages button { min-height: 44px; border: 1px solid #afbbd5; border-radius: 8px; background: #fff; color: var(--navy); font: inherit; cursor: pointer; }
.model-pages button[data-answered="true"] { background: #e6efff; font-weight: 700; }
.model-pages button[aria-current="step"] { border: 2px solid #315ef5; }
.model-question, .model-submit, #modelReviewItems { margin-top: .8rem; }
.model-question h2 { scroll-margin-top: 11rem; }
.model-save { min-height: 1.6em; margin-top: .4rem; }
#modelOptions .option[aria-pressed="true"] { background: #e6efff; border-color: #315ef5; }
.model-score { color: var(--navy); font-size: 2.1rem; font-weight: 700; }
.model-report { margin-block: 1rem; }
.model-report h3 { margin-block: 1rem .4rem; }
.model-report-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 0; }
.model-report-list li { padding: .65rem .8rem; background: #f0f3ff; border-radius: 10px; }
.model-report-list p { color: var(--muted); }
.model-report-list a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 700px) {
  .student-subjects, .model-report-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 630px) {
  .model-pages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* শিক্ষার্থী ড্যাশবোর্ড */
.dash { --right: 0deg; --c-right: #1f9d6b; --c-wrong: #e5484d; --c-skip: #b8c2d3; margin-bottom: 2rem; }
.dash h2, .dash h3 { margin: 0; }
.dash-top, .dash-range-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.dash-top { margin-bottom: .9rem; }
.dash-xp { margin: 0; padding: .35rem .9rem; border-radius: 999px; background: #fff1e8; color: #c2410c; font-weight: 700; }
.dash-xp span { color: #f59e0b; }
.dash-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.dash-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: .9rem .5rem; }
.dash-tiles a { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .5rem .25rem; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; text-align: center; border-radius: 10px; }
.dash-tiles a:last-child { border-right: 0; }
.dash-tiles a:hover, .dash-tiles a:focus-visible { background: #f0f5ff; }
.dash-tile-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #e8f5ee; color: var(--c-right); font-size: 1.15rem; }
.dash-tiles a:nth-child(2) .dash-tile-icon { background: #e7f0fe; color: #2f6fe0; }
.dash-tiles a:nth-child(3) .dash-tile-icon { background: #f0eafe; color: #7c4ddb; }
.dash-tiles a:nth-child(4) .dash-tile-icon { background: #fef3dc; color: #c27c0e; }
.dash-tiles a:nth-child(5) .dash-tile-icon { background: #e6f6f7; color: #128b93; }
.dash-tiles a:nth-child(6) .dash-tile-icon { background: #fde8e8; color: #d13a3f; font-weight: 800; }
.dash-streak { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .9rem; padding: 1rem 1.2rem; background: linear-gradient(135deg, #fff7ed, #fff1e3); border: 1px solid #fbd9b8; }
.dash-flame { width: 3rem; height: 3.9rem; background: radial-gradient(circle at 50% 75%, #ffd166 0 22%, transparent 23%), linear-gradient(180deg, #ff9a3c, #f05a28); clip-path: path("M24 0C30 14 46 22 46 40A22 22 0 0 1 2 40C2 30 8 24 12 18C14 26 18 28 20 28C18 18 20 8 24 0Z"); filter: grayscale(.85) opacity(.55); }
.dash-streak[data-active="true"] .dash-flame { filter: none; animation: dash-flicker 2.4s ease-in-out infinite; }
@keyframes dash-flicker { 50% { transform: scale(1.05) rotate(-2deg); } }
.dash-streak-label { margin: 0; font-weight: 700; color: var(--ink); }
.dash-streak-value { margin: 0; color: var(--muted); }
.dash-streak-value strong { color: #ea580c; font-size: 2rem; line-height: 1.1; }
.dash-streak-note { grid-column: 1 / -1; margin: .3rem 0 0; color: #7c4a1e; font-size: .95rem; }
.dash-range-head { margin: 1.6rem 0 .8rem; }
.dash-range { display: inline-flex; gap: .3rem; padding: .25rem; background: #e9edf5; border-radius: 10px; }
.dash-range button { min-height: 38px; padding: 0 .85rem; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.dash-range button[aria-pressed="true"] { background: var(--c-right); color: #fff; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; }
.dash-mini { display: grid; gap: 1rem; }
.dash-card { padding: 1rem 1.15rem; }
.dash-card-label { margin: 0 0 .4rem; color: var(--muted); font-weight: 700; font-size: .95rem; }
.dash-card-value { margin: .4rem 0 0; color: var(--navy); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
.dash-accuracy { display: flex; flex-direction: column; align-items: center; }
.dash-accuracy .dash-card-label { align-self: flex-start; }
.dash-ring { display: grid; place-items: center; width: 9.5rem; aspect-ratio: 1; margin: .5rem 0 .9rem; border-radius: 50%;
  background: conic-gradient(var(--c-right) 0 var(--right), var(--c-wrong) var(--right) var(--wrong), var(--c-skip) var(--wrong) 360deg); }
.dash-ring[data-empty="true"] { background: #e6eaf1; }
.dash-ring > span { display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff; text-align: center; line-height: 1.2; }
.dash-ring strong { color: var(--c-right); font-size: 1.6rem; }
.dash-ring small { color: var(--muted); }
.dash-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; margin-right: .3rem; border-radius: 50%; vertical-align: middle; }
.dot-right { background: var(--c-right); } .dot-wrong { background: var(--c-wrong); } .dot-skip { background: var(--c-skip); }
.dash-chart-plot { position: relative; height: 11rem; margin-top: .5rem; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #eef1f6 calc(25% - 1px) 25%); }
.dash-chart-plot svg { width: 100%; height: 100%; display: block; }
.dash-chart-max { position: absolute; top: -.2rem; left: .35rem; color: var(--muted); font-size: .75rem; }
.bar-right { fill: var(--c-right); } .bar-wrong { fill: var(--c-wrong); } .bar-skip { fill: var(--c-skip); } .bar-empty { fill: #d5dbe5; }
.dash-chart-x { position: relative; height: 1.4rem; margin-top: .25rem; }
.dash-chart-x span { position: absolute; transform: translateX(-50%); color: var(--muted); font-size: .72rem; white-space: nowrap; }
.dash-chart-legend { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.dash-chart-legend .dot { margin-left: .5rem; }
.dash-mistakes { margin-top: 1rem; padding: 1.1rem 1.2rem; border-left: 5px solid var(--c-wrong); }
.dash-mistakes-head p { margin: .3rem 0 .8rem; }
.dash-badge { display: inline-grid; place-items: center; min-width: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: #fde8e8; color: #c62f34; font-size: .85rem; font-weight: 700; vertical-align: middle; }
.dash-mistake-group + .dash-mistake-group { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.dash-mistake-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; margin-bottom: .5rem; }
.dash-mistake-title p { margin: 0; }
.dash-retry { min-height: 40px; }
@media (max-width: 900px) {
  .dash-row { grid-template-columns: minmax(0, 1fr); }
  .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-chart-card { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .dash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .6rem; }
  .dash-tiles a:nth-child(3) { border-right: 0; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-mini { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dash-streak[data-active="true"] .dash-flame { animation: none; } }
.dash-mistake-title { cursor: pointer; list-style: none; }
.dash-mistake-title::-webkit-details-marker { display: none; }
.dash-mistake-title p::before { content: "▸"; display: inline-block; margin-right: .4rem; color: var(--muted); transition: transform .2s; }
.dash-mistake-group[open] .dash-mistake-title p::before { transform: rotate(90deg); }

/* অধ্যায়ভিত্তিক দক্ষতা */
.dash-weak { margin-top: 1rem; padding: 1.1rem 1.2rem; }
.dash-weak > p { margin: .3rem 0 .8rem; }
.dash-weak-list { display: grid; gap: .55rem; }
.dash-weak-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 3.2rem auto; align-items: center; gap: .4rem .9rem; padding: .55rem .7rem; border-radius: 10px; background: #f7f9fd; }
.dash-weak-name { display: grid; min-width: 0; }
.dash-weak-name small { color: var(--muted); }
.dash-weak-bar { height: .55rem; border-radius: 999px; background: #e3e8f2; overflow: hidden; }
.dash-weak-bar span { display: block; height: 100%; border-radius: inherit; background: #1f9d6b; }
.dash-weak-row[data-level="mid"] .dash-weak-bar span { background: #f59e0b; }
.dash-weak-row[data-level="low"] .dash-weak-bar span { background: #e5484d; }
.dash-weak-row b { text-align: right; color: var(--navy); }
.dash-weak-links { display: flex; gap: .7rem; }
.dash-weak-links a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
@media (max-width: 600px) {
  .dash-weak-row { grid-template-columns: minmax(0, 1fr) 3rem; }
  .dash-weak-bar { grid-column: 1 / -1; grid-row: 2; }
  .dash-weak-links { grid-column: 1 / -1; }
}

/* ভুলের খাতা থেকে অনুশীলন */
.dash-mistakes-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem 1rem; }
.dash-practice { margin: .4rem 0 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fff8ee; border: 1px solid #fbd9b8; }
.dash-practice-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.dash-practice-top p { margin: 0; }
.dash-practice-meta { margin: .5rem 0 .2rem; color: var(--muted); font-size: .9rem; }
.dash-practice h4 { margin: 0 0 .7rem; font-size: 1.1rem; color: var(--ink); }
.dash-practice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.dash-practice-option { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .5rem .8rem; border: 2px solid #d5dcea; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dash-practice-option span { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #eef2fb; font-weight: 700; }
.dash-practice-option:hover:not(:disabled) { border-color: #2848a8; }
.dash-practice-option:disabled { cursor: default; }
.dash-practice-option[data-state="right"] { border-color: #1f9d6b; background: #e6f6ee; }
.dash-practice-option[data-state="wrong"] { border-color: #e5484d; background: #fdecec; }
.dash-practice-feedback p { margin: .6rem 0 0; }
.dash-practice-verdict { font-weight: 700; color: #c62f34; }
.dash-practice-verdict[data-right="true"] { color: #0f7a4d; }
@media (max-width: 600px) { .dash-practice-options { grid-template-columns: minmax(0, 1fr); } }

/* অভিভাবকের সঙ্গে শেয়ার (শিক্ষার্থী ড্যাশবোর্ড) */
.parent-share { margin-top: 1rem; padding: 1.1rem 1.2rem; border-left: 5px solid #2848a8; display: grid; gap: .6rem; }
.parent-share h3 { margin: 0 0 .3rem; }
.parent-share p { margin: .2rem 0; }
.parent-share-state { font-weight: 600; color: var(--muted); }
.parent-share-state[data-active="true"] { color: #0f7a4d; }
.parent-share-box { display: grid; gap: .5rem; padding: .8rem; border-radius: 12px; background: #eef3ff; }
.parent-share-box input { width: 100%; min-height: 44px; padding: 0 .7rem; border: 1px solid #b9c6e6; border-radius: 8px; font: inherit; font-size: .9rem; background: #fff; }

/* অভিভাবকের পাতা */
.parent-hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; padding: 1.1rem 1.3rem; border-left: 5px solid #f59e0b; }
.parent-hello strong { font-size: 1.5rem; color: var(--navy); }
.parent-hello p { margin: .1rem 0; }
.parent-summary { flex: 1 1 320px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.parent-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.parent-chart-card { margin-top: 1rem; }
.parent-days { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: .5rem; }
.parent-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.parent-day-bar { width: 72%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: #d5dbe5; }
.parent-day-bar[data-active="true"] { background: linear-gradient(180deg, #34c38f, #1f9d6b); }
.parent-day small { margin-top: .25rem; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.parent-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.parent-block { padding: 1.1rem 1.2rem; }
.parent-block h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.parent-row { grid-template-columns: minmax(0, 1.4fr) minmax(70px, 1fr) 3.2rem; }
.parent-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.parent-recent li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: #f7f9fd; }
.parent-recent li div { display: grid; }
.parent-recent small { color: var(--muted); }
.parent-recent b { color: var(--navy); white-space: nowrap; }
.parent-tips { margin-top: 1rem; border-left: 5px solid #1f9d6b; }
.parent-tips ul { margin: 0 0 .6rem; padding-inline-start: 1.2rem; display: grid; gap: .4rem; }
@media (max-width: 800px) {
  .parent-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parent-two { grid-template-columns: minmax(0, 1fr); }
}
.parent-main { --c-right: #1f9d6b; --c-wrong: #e5484d; --c-skip: #b8c2d3; }

/* রিকভারি কোড ও অ্যাকাউন্ট সেটিংস */
.recovery-box { margin-bottom: 1rem; padding: 1.2rem 1.3rem; border: 2px dashed #f59e0b; background: #fffaf0; }
.recovery-box h2 { margin-top: 0; }
.recovery-code { margin: .6rem 0; padding: .7rem 1rem; border-radius: 10px; background: #fff; border: 1px solid #f6c56b; font: 700 clamp(1.4rem, 5vw, 2rem)/1.2 ui-monospace, "Consolas", monospace; letter-spacing: .12em; text-align: center; color: var(--navy); user-select: all; }
.account-reset { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.account-reset h3 { margin: 0 0 .3rem; }
.account-settings { margin-top: 1rem; padding: .3rem 1.2rem; }
.account-settings summary { display: flex; align-items: center; gap: .7rem; min-height: 48px; cursor: pointer; font-weight: 700; color: var(--navy); }
.account-flag { padding: .1rem .6rem; border-radius: 999px; background: #fdecec; color: #b42318; font-size: .85rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; padding-bottom: 1rem; }
.account-grid h3 { margin: .2rem 0 .4rem; }
.account-settings .status-box { margin-bottom: 1rem; }
@media (max-width: 700px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }

/* অ্যাডমিন */
.admin-main .student-wrap { max-width: 1120px; }
.admin-login { max-width: 30rem; padding: 1.3rem; }
.admin-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.admin-totals > div { display: grid; gap: .1rem; padding: .9rem; text-align: center; }
.admin-totals strong { font-size: 1.7rem; color: var(--navy); }
.admin-totals span { color: var(--muted); font-size: .9rem; }
.admin-reset-result { margin-bottom: 1rem; padding: 1.1rem 1.3rem; border: 2px dashed #2848a8; background: #f3f6ff; }
.admin-reset-result h2 { margin-top: 0; }
.admin-list { padding: 1.1rem 1.2rem; }
.admin-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .8rem; }
.admin-list-head h2 { margin: 0; }
.admin-table { overflow-x: auto; }
.admin-table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table thead th { color: var(--muted); font-size: .9rem; }
.admin-table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.admin-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.admin-tags span { padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; background: #e6f6ee; color: #0f5e3c; }
.admin-tags span[data-ok="false"] { background: #fdecec; color: #9b2227; }
.admin-tags span[data-ok="warn"] { background: #fff4e0; color: #8a4b05; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.admin-actions .btn { min-height: 38px; }
.admin-delete { color: #b42318; }
@media (max-width: 800px) { .admin-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* শিক্ষক হাব */
.teacher-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.teacher-auth .student-card { padding: 1.2rem 1.3rem; }
.teacher-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: 1rem 1.2rem; margin-bottom: 1rem; border-left: 5px solid #2848a8; }
.teacher-top > div { flex: 1; }
.teacher-top strong { font-size: 1.4rem; color: var(--navy); }
.teacher-top p { margin: .1rem 0; }
.teacher-badge { padding: .25rem .8rem; border-radius: 999px; font-weight: 700; background: #fff4e0; color: #8a4b05; }
.teacher-badge[data-status="approved"] { background: #e6f6ee; color: #0f5e3c; }
.teacher-badge[data-status="suspended"] { background: #fdecec; color: #9b2227; }
.teacher-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .8rem; }
.teacher-tabs button { min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.teacher-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.teacher-pane { padding: 1.2rem 1.3rem; }
.teacher-pane h2 { margin-top: 0; }
.teacher-pane textarea { width: 100%; }
.teacher-options { margin: .8rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
.teacher-options legend { padding: 0 .3rem; font-weight: 700; color: var(--navy); }
.teacher-options > label:has(.tq-opt) { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; }
.teacher-options .tq-opt { flex: 1; min-height: 42px; }
.teacher-mine { display: grid; gap: .7rem; }
.teacher-item { padding: .8rem 1rem; border: 1px solid var(--line); border-left: 5px solid #f59e0b; border-radius: 12px; background: #fafbfe; }
.teacher-item[data-status="approved"] { border-left-color: #1f9d6b; }
.teacher-item[data-status="rejected"] { border-left-color: #e5484d; }
.teacher-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; color: var(--muted); font-size: .88rem; }
.teacher-item p { margin: .35rem 0; }
.teacher-opts { margin: .3rem 0; padding-inline-start: 0; list-style: none; display: grid; gap: .15rem; }
.teacher-opts .is-answer { color: #0f7a4d; font-weight: 700; }
.teacher-opts .is-answer::after { content: " ✓"; }
.teacher-note { padding: .4rem .6rem; border-radius: 8px; background: #fdecec; color: #9b2227; }
@media (max-width: 760px) { .teacher-auth { grid-template-columns: minmax(0, 1fr); } }
.admin-traffic h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.admin-traffic-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: .6rem; border-radius: 12px; background: #f4f7fb; margin-bottom: 1rem; }
.admin-traffic-chart span { flex: 1; min-width: 4px; height: max(3px, var(--h)); background: #2b6cb0; border-radius: 4px 4px 0 0; }
.admin-traffic-chart span:hover { background: #f0a020; }
.admin-traffic-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.admin-traffic-pages ol { margin: 0; padding-left: 1.4rem; }
.admin-traffic-pages li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border-bottom: 1px solid #eef2f6; }
