.portal-shell { padding-bottom: 35px; }
.dashboard { margin: 10px auto 65px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.dashboard-top h1, .admin-title { margin: 5px 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -.05em; }
.dashboard-top p { margin: 0; color: var(--muted); font-size: 12px; }
.dashboard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress-card, .member-card { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.progress-card { margin-bottom: 20px; padding: 17px 19px; border-top: 3px solid var(--red); }
.progress-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 650; }
.progress-line span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; margin-top: 12px; overflow: hidden; background: var(--line); }
.progress-fill { height: 100%; background: var(--green); transition: width .25s ease; }
.progress-caption { margin-top: 8px; color: var(--muted); font-size: 10px; }
.team-totals { margin: -6px 0 20px; }
.team-totals > div { padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.team-totals span { display: block; color: var(--muted); font-size: 10px; }
.team-totals strong { display: block; margin-top: 5px; font-size: 19px; font-variant-numeric: tabular-nums; }
.team-totals small { color: var(--muted); font-size: 10px; font-weight: 500; }
.member-card { margin-bottom: 13px; border-top: 2px solid var(--red); }
.team-essay-card, .team-essay-card .essay-table-wrap, .team-essay-card .team-essay-table, .team-essay-card .team-essay-table tbody, .team-essay-card .team-essay-table tr, .team-essay-card .team-essay-table td { background-color: var(--surface); color: var(--ink); }
.member-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.member-heading h2 { margin: 0; font-size: 14px; font-weight: 680; }
.member-total { color: var(--muted); font-size: 10px; }
.essay-table-wrap { overflow-x: auto; }
.essay-table { width: 100%; border-collapse: collapse; min-width: 630px; }
.team-essay-table { min-width: 860px; }
.team-essay-table th:first-child, .team-essay-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.team-essay-table thead th:first-child { background: var(--surface-raised); }
.team-essay-table th, .team-essay-table td { vertical-align: middle; }
.team-essay-table tbody th { min-width: 74px; font-size: 11px; font-weight: 650; text-align: left; white-space: nowrap; }
.grid-score-cell { min-width: 105px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.grid-score-cell .points-output { font-size: 10px; }
.team-essay-table .status-pill { max-width: 155px; white-space: normal; }
.team-essay-table .row-save { white-space: nowrap; }
.essay-table th { height: 34px; padding: 0 13px; background: var(--surface-raised); color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.essay-table td { height: 46px; padding: 5px 13px; border-top: 1px solid var(--line); font-size: 11px; }
.essay-number { font-weight: 650; }
.essay-table select { min-width: 82px; height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-raised); color: var(--ink); }
.team-essay-card .team-essay-table select { color-scheme: dark; background-color: var(--surface-raised); color: var(--ink); }
.points-output { color: var(--muted); font-variant-numeric: tabular-nums; }
.status-pill { display: inline-flex; padding: 4px 7px; border-radius: 3px; background: var(--surface-raised); color: var(--muted); font-size: 9px; font-weight: 650; white-space: nowrap; }
.status-pill.locked { background: var(--soft-green); color: var(--green); }
.row-save { white-space: nowrap; }
.locked-row { background: var(--surface-raised); }
.dashboard-notice { margin: 0 0 13px; padding: 10px 12px; border-radius: 4px; background: var(--soft-green); color: var(--blue); font-size: 11px; }
.dashboard-notice.error { background: var(--soft-red); color: var(--ink); border-left: 3px solid var(--red); }
.dashboard-notice.success { background: var(--soft-green); color: var(--green); }
@media (max-width: 720px) {
  .dashboard-top { display: block; }
  .dashboard-actions { margin-top: 14px; }
  .dashboard-top h1 { font-size: 27px; }
  .progress-card { padding: 14px; }
  .team-totals { gap: 8px; }
  .team-totals > div { padding: 12px; }
  .team-totals strong { font-size: 17px; }
}
