:root {
  color-scheme: light;
  --ink: #122e28;
  --muted: #68766f;
  --line: #d8e0da;
  --canvas: #f4f6f3;
  --surface: #ffffff;
  --brand: #0b4b3c;
  --brand-2: #176c54;
  --brand-soft: #e8f2ec;
  --amber: #a65e0a;
  --amber-soft: #fff3d8;
  --danger: #a23935;
  --danger-soft: #fbe7e5;
  --shadow: 0 14px 36px rgba(19, 46, 40, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px;
  display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(160deg, #0a3a30 0%, #092d27 72%, #071f1c 100%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand-mark { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; background: #fff; border: 2px solid rgba(255,255,255,.7); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.brand-sub { color: rgba(255,255,255,.64); font-size: 13px; margin-top: 1px; }
.nav-group { margin-top: 24px; display: grid; gap: 8px; }
.nav-label { padding: 0 12px 4px; font-size: 12px; color: rgba(255,255,255,.48); letter-spacing: .12em; }
.nav-button {
  width: 100%; border: 0; border-radius: 13px; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.78); background: transparent; text-align: left; font-weight: 650;
}
.nav-button:hover { background: rgba(255,255,255,.08); color: white; }
.nav-button.active { background: #fff; color: var(--brand); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.nav-icon { width: 22px; text-align: center; font-size: 18px; }
.sidebar-bottom { margin-top: auto; }
.identity-card { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); border-radius: 15px; padding: 13px; }
.identity-name { font-weight: 750; }
.identity-role { font-size: 13px; color: rgba(255,255,255,.6); }

.workspace { min-width: 0; }
.topbar {
  min-height: 76px; padding: 14px 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 14px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.topbar-start { display: flex; align-items: center; gap: 12px; }
.prototype-badge { color: #7a4d0f; background: #fff3d4; border: 1px solid #f0d39b; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.role-select { min-height: 42px; border: 1px solid #c8d3cc; border-radius: 12px; background: #fff; color: var(--ink); padding: 0 36px 0 12px; }
.mobile-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }

.page { padding: 34px; max-width: 1540px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-title { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.18; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); }
.page-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

.status-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #103e33; color: #fff;
  border-radius: var(--radius); padding: 18px 22px; gap: 12px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.status-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status-button { border: 0; padding: 6px; border-radius: 12px; background: transparent; color: inherit; text-align: left; }
.status-button:hover { background: rgba(255,255,255,.08); }
.status-button strong, .status-button small { display: block; }
.status-button small { color: rgba(255,255,255,.68); font-size: 14px; margin-top: 2px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #58c993; box-shadow: 0 0 0 5px rgba(88,201,147,.12); flex: 0 0 auto; }
.status-dot.warn { background: #ffc45e; box-shadow: 0 0 0 5px rgba(255,196,94,.13); }
.status-name { font-weight: 700; }
.status-text { color: rgba(255,255,255,.68); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.metric-card {
  min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 5px 16px rgba(14, 49, 40, .035); text-align: left; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
button.metric-card:hover { transform: translateY(-2px); border-color: #9bb8aa; box-shadow: var(--shadow); }
.metric-number { font-size: 34px; line-height: 1; font-weight: 830; letter-spacing: -.04em; color: var(--brand); }
.metric-label { margin-top: 11px; font-weight: 750; }
.metric-hint { margin-top: 5px; color: var(--muted); font-size: 13px; }

.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; margin-top: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 16px rgba(14,49,40,.035); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px 14px; }
.panel-title { margin: 0; font-size: 20px; }
.panel-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.panel-body { padding: 4px 22px 22px; }
.text-button { border: 0; padding: 6px 0; background: transparent; color: var(--brand-2); font-weight: 700; }
.text-button:hover { text-decoration: underline; }

.chart { height: 232px; display: flex; align-items: flex-end; gap: 12px; padding: 18px 8px 4px; border-bottom: 1px solid var(--line); }
.bar-wrap { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; border: 0; background: transparent; color: inherit; }
.bar { width: min(42px, 70%); min-height: 10px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #2f8b6d, #0b4b3c); transition: opacity .2s ease; }
.bar-wrap:hover .bar { opacity: .78; }
.bar-value { font-size: 13px; color: var(--brand); font-weight: 750; }
.bar-label { font-size: 12px; color: var(--muted); }

.attention-list { display: grid; gap: 11px; }
.attention-item { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.attention-item:hover { border-color: #9bb8aa; background: #fbfdfb; }
.attention-name { font-weight: 720; }
.attention-count { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-weight: 800; }

.teacher-panel { margin-top: 18px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 15px 18px; text-align: left; border-top: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; font-weight: 700; background: #fafcfa; }
td { font-size: 15px; }
.person-cell { display: flex; align-items: center; gap: 10px; font-weight: 720; }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }

.btn { min-height: 42px; border-radius: 11px; padding: 9px 15px; border: 1px solid transparent; font-weight: 720; }
.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { background: #0a3d32; }
.btn-secondary { color: var(--brand); background: #fff; border-color: #b8c9bf; }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: #eef3ef; }
.btn-danger { color: var(--danger); background: #fff; border-color: #e0b1ad; }

.subtle-nav { margin-bottom: 10px; }
.back-button { border: 0; color: var(--brand); background: transparent; padding: 7px 0; margin-bottom: 16px; font-weight: 720; }
.back-button:hover { text-decoration: underline; }
.eyebrow { color: var(--amber); font-size: 13px; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
.card-pad { padding: 25px; }
.card-pad h2, .card-pad h3 { margin: 8px 0; }
.card-pad p { color: var(--muted); }
.warning-text { color: var(--amber); }
.spacer { flex: 1; }

.toolbar { padding: 16px; display: grid; grid-template-columns: minmax(260px, 1fr) 240px auto; gap: 14px; align-items: end; }
.search-field, .select-field, .stack-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.search-field input, .select-field select, .stack-field select, .stack-field textarea, .form-grid input, .form-grid select, .learner-homework textarea {
  width: 100%; border: 1px solid #bccbc2; border-radius: 11px; padding: 11px 13px; color: var(--ink); background: #fff; outline: none;
}
.search-field input:focus, .select-field select:focus, .stack-field textarea:focus, .form-grid input:focus, .form-grid select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(23,108,84,.12); }
.toolbar-count { color: var(--muted); padding: 9px 6px; white-space: nowrap; }
.context-banner { margin: 14px 0; padding: 13px 16px; background: var(--brand-soft); border: 1px solid #c7dbcf; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.context-banner strong, .context-banner span { display: block; }
.context-banner span { color: var(--muted); font-size: 14px; }

.student-list { display: grid; gap: 12px; margin-top: 15px; }
.student-list.embedded { padding: 0 18px 18px; }
.student-row { padding: 18px; display: grid; grid-template-columns: minmax(250px,1.1fr) minmax(390px,1.55fr) 150px auto; gap: 18px; align-items: center; }
.student-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.student-main h3, .detail-hero h1 { margin: 0; }
.student-code { color: var(--brand); font-size: 13px; font-weight: 700; margin-top: 2px; }
.student-tags { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.student-tags span + span::before { content: "·"; margin-right: 9px; }
.avatar.large { width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto; }
.avatar.xlarge { width: 58px; height: 58px; border-radius: 18px; font-size: 22px; }
.student-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.student-facts small, .student-facts strong { display: block; }
.student-facts small { color: var(--muted); font-size: 12px; }
.student-facts strong { font-size: 14px; margin-top: 3px; }
.student-state { display: grid; gap: 7px; justify-items: start; }
.live-dot { color: var(--brand); font-size: 13px; font-weight: 750; }
.live-dot::before { content: ""; width: 8px; height: 8px; background: #30b777; display: inline-block; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 4px rgba(48,183,119,.13); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.detail-hero { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.detail-hero p { margin: 5px 0 0; color: var(--muted); }
.detail-status { text-align: right; color: var(--muted); display: grid; justify-items: end; gap: 8px; }
.tabs { margin: 18px 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tab { flex: 0 0 auto; border: 1px solid #bfcec5; border-radius: 11px; padding: 10px 15px; color: var(--brand); background: #fff; font-weight: 720; }
.tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.overview-card { padding: 22px; border: 1px solid var(--line); text-align: left; display: grid; gap: 8px; }
.overview-card:hover { border-color: #9bb8aa; box-shadow: var(--shadow); transform: translateY(-1px); }
.overview-card .card-kicker { color: var(--amber); font-size: 13px; font-weight: 800; }
.overview-card strong { font-size: 20px; }
.overview-card small { color: var(--muted); }
.overview-card > span:last-child { color: var(--brand); font-weight: 750; margin-top: 5px; }
.fact-list { display: grid; gap: 10px; margin: 20px 0; }
.fact-list > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.fact-list span { color: var(--muted); }
.code-box { border: 1px dashed #99b8a8; border-radius: 13px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fbf9; }
.code-box span { font-weight: 800; color: var(--brand); letter-spacing: .05em; word-break: break-all; }

.report-list { padding: 0 22px 20px; }
.report-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid var(--line); }
.report-row strong, .report-row span { display: block; }
.report-row span { color: var(--muted); font-size: 14px; margin-top: 3px; }
.timeline { padding: 0 24px 22px; }
.timeline-item { position: relative; padding: 14px 0 14px 25px; border-top: 1px solid var(--line); }
.timeline-dot { position: absolute; top: 21px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline-item p { color: var(--muted); margin: 4px 0 8px; }
.timeline-item blockquote { margin: 10px 0; padding: 11px 13px; border-left: 3px solid #8eb2a0; background: #f3f7f4; }
.guide-card { align-self: start; background: linear-gradient(145deg,#fff,#f4f8f5); }
.empty.compact { padding: 28px 10px; }

.work-summary { display: grid; grid-template-columns: repeat(4,1fr); background: var(--brand); color: #fff; border-radius: var(--radius); padding: 18px; gap: 12px; }
.work-summary > div { padding: 8px 16px; border-right: 1px solid rgba(255,255,255,.17); }
.work-summary > div:last-child { border-right: 0; }
.work-summary span, .work-summary small { display: block; }
.work-summary span { font-size: 29px; font-weight: 830; }
.work-summary small { color: rgba(255,255,255,.7); }
.task-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.5fr); gap: 18px; }
.task-list { padding: 0 20px 20px; }
.task-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; }
.task-row p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.task-index { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }

.stepper { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 20px 0; }
.step { position: relative; display: flex; align-items: center; gap: 10px; color: #9ba49f; padding: 8px; }
.step::after { content:""; position:absolute; right:-8px; left:48px; top:50%; height:2px; background:#d8ded9; z-index:-1; }
.step:last-child::after { display:none; }
.step span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e2e7e3; font-weight: 800; }
.step.active { color: var(--brand); }
.step.active span { color: #fff; background: var(--brand); }
.step.active::after { background: #8eb2a0; }
.upload-layout, .completion-grid { position: relative; padding-bottom: 86px; }
.completion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.completion-grid .full-action { grid-column: 1 / -1; }
.full-action { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.full-action strong, .full-action span { display: block; }
.full-action span { color: var(--muted); font-size: 14px; }
.file-box { margin-top: 24px; min-height: 84px; border: 1.5px dashed #a9bdb2; border-radius: 15px; background: #fafcfa; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; color: var(--muted); }
.file-box.ready { border-style: solid; background: var(--brand-soft); color: var(--brand); }
.confirm-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.45fr); gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 22px 0; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.inline-warning { padding: 13px 15px; border-radius: 12px; background: var(--amber-soft); color: #7f4d0d; margin: 16px 0; }
.actions-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.plain-list { padding-left: 20px; color: var(--muted); }
.plain-list li { margin: 8px 0; }
.progress-panel { padding: 30px; }
.progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.progress-head h2 { margin: 7px 0; }
.progress-head p { color: var(--muted); }
.progress-head > strong { font-size: 38px; color: var(--brand); }
.progress-track { height: 14px; background: #e5ebe7; border-radius: 999px; overflow: hidden; margin: 26px 0; }
.progress-track span { height: 100%; display: block; background: linear-gradient(90deg,#0b4b3c,#43a17f); border-radius: inherit; transition: width .45s ease; }
.progress-events { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; color: #9aa59f; }
.progress-events span { padding: 13px; border-radius: 12px; background: #f5f7f5; text-align: center; }
.progress-events .done { background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.success-card { padding: 28px; display: flex; align-items: flex-start; gap: 18px; }
.success-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }
.success-card h2 { margin: 5px 0; }
.success-card p { color: var(--muted); }

.role-note { margin-bottom: 16px; padding: 14px 17px; display: flex; gap: 12px; background: var(--brand-soft); border-radius: 14px; }
.role-note span { color: var(--muted); }
.capability-list { display: flex; flex-wrap: wrap; gap: 6px; }
.protected-card { margin-top: 16px; padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.protected-card > div { display: flex; align-items: center; gap: 12px; }
.protected-card p { margin: 3px 0 0; color: var(--muted); }
.small-metrics { grid-template-columns: repeat(4,1fr); margin-top: 18px; }

.report-summary { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 18px; padding: 19px; }
.report-summary > div { padding: 4px 18px; border-right: 1px solid var(--line); }
.report-summary > div:last-child { border-right:0; }
.report-summary span, .report-summary strong { display:block; }
.report-summary span { color: var(--muted); font-size: 13px; }
.report-summary strong { margin-top:4px; }
.report-document { padding: 0 26px 26px; }
.report-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 0; }
.report-heading > div { display:flex; align-items:center; gap:11px; }
.report-heading strong, .report-heading small { display:block; }
.report-heading small { color:var(--muted); }
.question-block { padding:22px 0; border-top:1px solid var(--line); }
.question-block h3 { margin:7px 0 16px; }
.question-number { color:var(--brand); font-weight:800; }
.answer-box, .feedback-box { padding:15px 17px; border-radius:13px; margin-top:10px; }
.answer-box { background:#f3f5f3; }
.feedback-box { background:var(--brand-soft); }
.answer-box small, .feedback-box small { font-weight:800; color:var(--muted); }
.answer-box p, .feedback-box p { margin:5px 0 0; }

.phone-preview { width:min(430px,100%); margin:0 auto; border:10px solid #1c2724; border-radius:34px; background:#f6f8f6; box-shadow:var(--shadow); overflow:hidden; }
.phone-top { padding:17px; display:flex; align-items:center; gap:10px; background:#0d3d32; color:#fff; }
.phone-top img { width:40px; height:40px; border-radius:50%; }
.phone-top strong, .phone-top small { display:block; }
.phone-top small { color:rgba(255,255,255,.65); }
.phone-body { padding:20px; }
.learner-homework { padding:18px; background:#fff; border:1px solid var(--line); border-radius:16px; }
.learner-homework textarea { min-height:100px; resize:vertical; margin:10px 0; }

.help-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.help-number { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--brand); color:#fff; font-weight:850; }
.checklist { margin-top:18px; padding:24px; display:grid; gap:13px; }
.checklist h2 { margin:0 0 5px; }
.checklist label { display:flex; align-items:flex-start; gap:10px; }
.checklist input { width:20px; height:20px; accent-color:var(--brand); }

.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:18px; background:rgba(7,25,21,.52); backdrop-filter:blur(4px); }
.modal { width:min(520px,100%); max-height:90vh; overflow:auto; border-radius:20px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.26); padding:24px; }
.modal.wide { width:min(670px,100%); }
.modal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.modal-head h2 { margin:4px 0; }
.modal > p { color:var(--muted); }
.icon-button { width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; border-radius:11px; font-size:24px; color:var(--muted); }
.modal-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; margin-top:20px; }
.check-list { display:grid; gap:11px; margin:18px 0; }
.check-list label { padding:12px; border:1px solid var(--line); border-radius:12px; }
.check-list input { width:18px; height:18px; margin-right:8px; accent-color:var(--brand); }
.learner-visible { display:inline-block; margin:10px 0 16px; padding:7px 10px; border-radius:9px; background:var(--brand-soft); color:var(--brand); font-weight:750; font-size:13px; }

.empty { text-align: center; padding: 54px 24px; color: var(--muted); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; gap: 10px; }
.toast { width: min(390px, calc(100vw - 36px)); padding: 14px 16px; border-radius: 13px; background: #102f29; color: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.2); animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .student-row { grid-template-columns: 1fr 1fr; }
  .student-state { justify-self:start; }
  .row-actions { justify-content:flex-end; }
}

@media (max-width: 960px) {
  .prototype-badge { display:none; }
  .status-strip { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 50; width: min(82vw, 290px); transform: translateX(-103%); transition: transform .22s ease; }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .topbar { padding: 10px 14px; min-height: 66px; }
  .mobile-menu { display: grid; place-items: center; }
  .crumb { display: none; }
  .prototype-badge { display: none; }
  .role-select { max-width: 235px; }
  .page { padding: 22px 14px 36px; }
  .page-head { display: block; }
  .page-meta { margin-top: 12px; }
  .status-strip { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { padding: 17px; }
  .metric-number { font-size: 29px; }
  .chart { gap: 4px; }
  .bar-label { font-size: 11px; }
  .toolbar { grid-template-columns:1fr; }
  .student-row { grid-template-columns:1fr; }
  .student-facts { grid-template-columns:1fr 1fr; }
  .row-actions { justify-content:flex-start; flex-wrap:wrap; }
  .detail-hero { align-items:flex-start; }
  .detail-status { text-align:left; justify-items:start; }
  .two-column, .overview-grid, .confirm-layout, .task-layout, .completion-grid { grid-template-columns:1fr; }
  .work-summary { grid-template-columns:1fr 1fr; }
  .work-summary > div { border-right:0; }
  .stepper { grid-template-columns:1fr 1fr; }
  .step::after { display:none; }
  .progress-events { grid-template-columns:1fr 1fr; }
  .full-action { position:static; margin-top:15px; align-items:flex-start; flex-direction:column; }
  .upload-layout, .completion-grid { padding-bottom:0; }
  .form-grid { grid-template-columns:1fr; }
  .small-metrics { grid-template-columns:1fr 1fr; }
  .report-summary, .help-grid { grid-template-columns:1fr; }
  .report-summary > div { border-right:0; border-bottom:1px solid var(--line); padding:10px 4px; }
  .task-row { grid-template-columns:38px minmax(0,1fr); }
  .task-row .pill, .task-row .btn { grid-column:2; justify-self:start; }
  .role-note { display:grid; }
  table.mobile-cards { min-width:0; display:block; }
  table.mobile-cards thead { display:none; }
  table.mobile-cards tbody { display:grid; gap:12px; padding:12px; }
  table.mobile-cards tr { display:block; border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
  table.mobile-cards td { display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; padding:8px 4px; }
  table.mobile-cards td[data-label]::before { content:attr(data-label); color:var(--muted); font-size:13px; font-weight:700; }
  table.mobile-cards td:first-child { padding-bottom:12px; border-bottom:1px solid var(--line); }
  table.mobile-cards td:last-child { justify-content:flex-end; padding-top:12px; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .page-title { font-size: 29px; }
}
