.teacher-toast-region{position:fixed;right:20px;top:82px;z-index:40;display:grid;gap:10px;width:min(420px,calc(100vw - 32px));pointer-events:none}
.teacher-toast{pointer-events:auto;border:1px solid #286947;background:#123526;color:#b8ffd4;border-radius:10px;padding:13px 15px;box-shadow:0 18px 45px rgba(0,0,0,.32);animation:toast-in .18s ease-out}
.teacher-toast.error{border-color:#713148;background:#351522;color:#ffbdd0}.teacher-toast.warning{border-color:#755d27;background:#2a220f;color:#ffe4a6}
@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.menu-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;margin-left:5px;border-radius:999px;background:#ff6687;color:#170510;font-size:11px;font-weight:900}
.menu-count[hidden]{display:none}
.todo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.todo-card{display:grid;gap:7px;text-decoration:none;padding:15px;border:1px solid var(--line);border-radius:10px;background:#081421;transition:border-color .15s,transform .15s}.todo-card:hover{border-color:var(--blue);transform:translateY(-1px)}
.todo-card strong{font-size:24px}.todo-card.warning strong{color:var(--yellow)}.todo-card.critical{border-color:#713148}.todo-card.critical strong{color:#ff8eaa}.todo-card.clear{opacity:.72}
.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px 14px;margin:18px 0}.filter-grid .field{margin:0}.filter-actions{display:flex;align-items:end;gap:8px;padding-bottom:1px}
.action-summary{display:grid;gap:9px;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:#081421}.action-summary-row{display:grid;grid-template-columns:minmax(120px,.7fr) 1.3fr;gap:12px}.action-summary-row span:first-child{color:var(--muted)}.action-summary .danger-value{color:#ff8eaa;font-weight:800}.field-error{min-height:18px;color:#ff9ab3;font-size:12px}.error-dialog{border-color:#713148}.error-copy{white-space:pre-wrap;line-height:1.7;color:#ffceda}.security-card{border-color:#713148}.btn.is-loading{position:relative;cursor:progress}.btn.is-loading:after{content:"";display:inline-block;width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:teacher-spin .7s linear infinite}
#teacherActionReasonRow[hidden],#teacherActionCodeRow[hidden]{display:none}
@keyframes teacher-spin{to{transform:rotate(360deg)}}
.rule-preview-diff{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px}.rule-preview-diff .action-summary-row{padding:9px 11px;border-bottom:1px solid var(--line)}.rule-preview-diff .action-summary-row:last-child{border-bottom:0}
@media(max-width:950px){.todo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:620px){.teacher-toast-region{right:12px;top:74px;width:calc(100vw - 24px)}.todo-grid,.filter-grid{grid-template-columns:1fr}.action-summary-row{grid-template-columns:1fr;gap:3px}.filter-actions .btn{flex:1}.teacher-sidebar a{white-space:nowrap}.teacher-sidebar{padding:12px}.topline .actions{width:100%}.topline .actions .btn{flex:1}}
.payout-batch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin: 12px 0;
}
.payout-batch-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(95, 113, 104, .18);
  margin-bottom: 16px;
}
.payout-batch-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22a06b, #78d69f);
  transition: width .25s ease;
}
.audit-details {
  max-width: 640px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.risk-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 5px 12px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081421;
  font-size: 12px;
}
.risk-evidence div {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}
.risk-evidence span {
  color: var(--muted);
}
@media(max-width:620px) {
  .risk-evidence { grid-template-columns: 1fr; }
}
.teacher-subnav {
  position: sticky;
  top: 70px;
  z-index: 12;
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(11, 25, 42, .94);
  backdrop-filter: blur(14px);
}
.teacher-subnav a {
  flex: none;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.teacher-subnav a:hover,
.teacher-subnav a.active {
  color: #fff;
  background: #223e61;
}
.teacher-summary-links .stat {
  color: inherit;
  text-decoration: none;
}
.teacher-layout,
.teacher-content,
.teacher-page {
  min-width: 0;
  max-width: 100%;
}
.teacher-summary-links a.stat {
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.teacher-summary-links a.stat:hover {
  border-color: #3c78a9;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #081421;
}
.pagination-buttons,
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.pagination-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.pagination-controls select,
.pagination-controls input {
  width: auto;
  min-width: 62px;
  padding: 7px 8px;
}
.pagination-controls input { width: 68px; }
.teacher-loading .teacher-content {
  cursor: progress;
}
.teacher-loading .teacher-page:not([hidden])::before {
  content: "正在读取当前列表…";
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  padding: 10px 14px 10px 34px;
  border: 1px solid #315d87;
  border-radius: 999px;
  background: #10243a;
  color: #d9edff;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  font-size: 12px;
  font-weight: 800;
}
.teacher-loading .teacher-page:not([hidden])::after {
  content: "";
  position: fixed;
  right: 130px;
  bottom: 33px;
  z-index: 31;
  width: 11px;
  height: 11px;
  border: 2px solid #8fc8f1;
  border-right-color: transparent;
  border-radius: 50%;
  animation: teacher-spin .7s linear infinite;
}
@media (min-width: 901px) {
  .teacher-page .table-wrap table th:first-child,
  .teacher-page .table-wrap table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #0b192a;
  }
  .teacher-page .table-wrap table th:last-child,
  .teacher-page .table-wrap table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #0b192a;
  }
  .teacher-page .table-wrap table th:first-child,
  .teacher-page .table-wrap table th:last-child {
    z-index: 3;
    background: #10243a;
  }
}
@media (max-width: 720px) {
  .teacher-subnav { top: 62px; margin-inline: -2px; }
  .pagination { align-items: stretch; }
  .pagination-buttons,
  .pagination-controls { width: 100%; justify-content: center; }
  .page-number { display: none; }
  .teacher-page .table-wrap { overflow: visible; }
  .teacher-page .table-wrap table,
  .teacher-page .table-wrap tbody,
  .teacher-page .table-wrap tr,
  .teacher-page .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }
  .teacher-page .table-wrap thead { display: none; }
  .teacher-page .table-wrap tbody {
    display: grid;
    gap: 12px;
  }
  .teacher-page .table-wrap tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0b192a;
  }
  .teacher-page .table-wrap td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) 1fr;
    gap: 10px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .teacher-page .table-wrap td:last-child { border-bottom: 0; }
  .teacher-page .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .teacher-page .table-wrap td.empty {
    display: block;
    padding: 22px 14px;
    text-align: center;
  }
  .teacher-page .table-wrap td.empty::before { content: none; }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.teacher-menu-groups,
.teacher-menu-group {
  display: grid;
  gap: 7px;
}
.teacher-menu-groups { gap: 15px; }
.teacher-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(71, 105, 139, .52);
  border-radius: 9px;
  background: rgba(25, 49, 76, .72);
  color: #d9e9fa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.teacher-menu-group summary::-webkit-details-marker { display: none; }
.teacher-group-chevron { color: var(--cyan); transition: transform .16s ease; }
.teacher-menu-group:not([open]) .teacher-group-chevron { transform: rotate(-90deg); }
.teacher-menu-group:not([open]) > .teacher-menu-items { display: none; }
.teacher-menu-items {
  display: grid;
  gap: 3px;
  margin: 5px 0 1px 10px;
  padding-left: 8px;
  border-left: 2px solid rgba(68, 228, 193, .2);
}
.teacher-menu-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.teacher-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 8px 8px;
  border-bottom: 1px solid var(--line);
}
.teacher-sidebar-head strong {
  font-size: 13px;
  letter-spacing: .04em;
}
.teacher-sidebar-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10243a;
  color: var(--text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.teacher-sidebar-footer {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.teacher-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px;
  border: 1px solid #713148;
  border-radius: 9px;
  background: rgba(53, 21, 34, .65);
  color: #ffbdd0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.teacher-logout[hidden] { display: none; }
.teacher-menu-backdrop { display: none; }
.teacher-mobile-quick { display: none; }
@media (min-width: 851px) {
  body.teacher-authenticated main {
    max-width: none;
    margin: 0;
    padding: 28px 26px 80px 216px;
    transition: padding-left .18s ease;
  }
  .teacher-layout {
    display: block;
  }
  .teacher-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 18;
    width: 190px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    max-height: none;
    gap: 10px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 16px 0 42px rgba(0, 0, 0, .2);
    scrollbar-width: thin;
    transition: width .18s ease;
  }
  .teacher-content { width: 100%; }
  .teacher-menu-groups {
    gap: 10px;
    min-height: 0;
    padding-right: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .teacher-menu-group { display: block; }
  .teacher-sidebar .teacher-menu-group a {
    min-height: 36px;
    padding: 8px 9px;
    font-size: 13px;
  }
  body.teacher-authenticated.teacher-sidebar-collapsed main {
    padding-left: 86px;
  }
  .teacher-sidebar-collapsed .teacher-sidebar {
    width: 62px;
    padding: 8px 6px;
  }
  .teacher-sidebar-collapsed .teacher-sidebar-head {
    justify-content: center;
    padding: 0 0 7px;
  }
  .teacher-sidebar-collapsed .teacher-sidebar-head strong,
  .teacher-sidebar-collapsed .teacher-menu-group summary {
    display: none;
  }
  .teacher-sidebar-collapsed .teacher-menu-groups { gap: 5px; }
  .teacher-sidebar-collapsed .teacher-menu-group > .teacher-menu-items {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .teacher-sidebar-collapsed .teacher-sidebar .teacher-menu-group a {
    position: relative;
    justify-content: center;
    min-height: 42px;
    padding: 6px 3px;
    font-size: 0;
  }
  .teacher-sidebar-collapsed .teacher-menu-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .teacher-sidebar-collapsed .teacher-menu-group a::before {
    content: attr(data-short);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
  }
  .teacher-sidebar-collapsed .teacher-menu-group a.active::before {
    color: #fff;
    background: rgba(70, 164, 255, .14);
  }
  .teacher-sidebar-collapsed .teacher-menu-group .menu-count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin: 0;
    font-size: 9px;
  }
  .teacher-sidebar-collapsed .teacher-logout { min-height: 42px; padding: 6px 3px; }
  .teacher-authenticated .teacher-page-feedback,
  .teacher-authenticated .teacher-subnav { top: 12px; }
  .teacher-authenticated .teacher-toast-region { top: 16px; }
}
.teacher-page-feedback {
  position: sticky;
  top: 76px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 20, 33, .94);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(15px);
}
.teacher-page-feedback > div:first-child {
  display: grid;
  grid-template-columns: 11px 1fr;
  align-items: center;
  gap: 2px 9px;
}
.teacher-page-feedback small {
  grid-column: 2;
  color: var(--muted);
}
.teacher-feedback-dot {
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #73879a;
}
.teacher-page-feedback[data-status="loading"] .teacher-feedback-dot {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(70,164,255,.13);
  animation: teacher-pulse 1.1s ease-in-out infinite;
}
.teacher-page-feedback[data-status="ready"] .teacher-feedback-dot { background: var(--green); }
.teacher-page-feedback[data-status="error"] {
  border-color: #713148;
  background: rgba(53, 21, 34, .95);
}
.teacher-page-feedback[data-status="error"] .teacher-feedback-dot { background: var(--red); }
.teacher-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
@keyframes teacher-pulse {
  50% { opacity: .45; transform: scale(.82); }
}
.teacher-page-skeleton {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.teacher-page-skeleton[hidden] { display: none; }
.teacher-page-skeleton i {
  display: block;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(100deg, #10243a 20%, #1c3854 38%, #10243a 56%);
  background-size: 220% 100%;
  animation: teacher-skeleton 1.25s linear infinite;
}
.teacher-page-skeleton i:nth-child(2) { height: 150px; }
@keyframes teacher-skeleton {
  to { background-position-x: -220%; }
}
.teacher-page .table-wrap tbody tr[data-row-enhanced] {
  cursor: pointer;
  transition: background .14s ease, box-shadow .14s ease;
}
.teacher-page .table-wrap tbody tr[data-row-enhanced]:hover,
.teacher-page .table-wrap tbody tr[data-row-enhanced]:focus-visible {
  background: rgba(70,164,255,.07);
  outline: 2px solid rgba(70,164,255,.48);
  outline-offset: -2px;
}
.teacher-detail-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(560px, 100%);
  min-height: 100%;
  border-radius: 0;
  overflow: auto;
  animation: teacher-drawer-in .18s ease-out;
}
@keyframes teacher-drawer-in {
  from { transform: translateX(36px); opacity: .6; }
}
.teacher-detail-body {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.teacher-detail-body > div {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) 1.35fr;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.teacher-detail-body > div:last-child { border-bottom: 0; }
.teacher-detail-body span { color: var(--muted); }
.teacher-detail-body strong { overflow-wrap: anywhere; }
.teacher-column-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.teacher-column-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.teacher-column-options input { width: auto; }
.teacher-draft-status {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.teacher-draft-status button {
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-weight: 800;
  cursor: pointer;
}
.teacher-density-compact .teacher-page table th,
.teacher-density-compact .teacher-page table td { padding: 7px 9px; font-size: 12px; }
.teacher-density-compact .teacher-page .card.section { padding: 16px; }
.teacher-modal-open { overflow: hidden; }
.row-select-column { width: 64px; min-width: 64px; }
.row-select-column input { width: auto; }
.row-select-label { display: inline-flex; align-items: center; gap: 5px; }
.teacher-page tbody tr.selected { background: rgba(68,228,193,.1); }
.teacher-selection-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  transform: translateX(-50%);
  border: 1px solid #356b62;
  border-radius: 13px;
  background: rgba(8, 28, 35, .96);
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  backdrop-filter: blur(14px);
}
.teacher-selection-bar[hidden] { display: none; }
.savings-body :is(a,button,input,select,textarea):focus-visible {
  outline:3px solid rgba(77,205,255,.42);
  outline-offset:3px;
}
@media (prefers-reduced-motion: reduce) {
  .teacher-page-skeleton i,
  .teacher-page-feedback[data-status="loading"] .teacher-feedback-dot,
  .teacher-detail-drawer { animation: none; }
}
@media (max-width: 850px) {
  .teacher-layout { gap: 12px; }
  .teacher-sidebar {
    position: sticky;
    top: 68px;
    z-index: 16;
    display: block;
    overflow: visible;
    padding: 7px;
  }
  .teacher-sidebar-head { display: none; }
  .teacher-mobile-quick {
    display: block;
  }
  .teacher-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }
  .teacher-menu-toggle[aria-expanded="true"] {
    background: #223e61;
    color: #fff;
  }
  .teacher-menu-icon { font-size: 18px; line-height: 1; }
  .teacher-menu-groups {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 136px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 20, 33, .98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .48);
    backdrop-filter: blur(18px);
  }
  .teacher-menu-groups.mobile-open { display: grid; }
  .teacher-menu-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 8, 16, .56);
  }
  .teacher-page-feedback { top: 128px; }
}
@media (max-width: 620px) {
  .savings-body :is(button,.btn,input,select) { min-height:44px; }
  .teacher-menu-group summary,
  .teacher-page .muted { font-size:12px; }
  .teacher-page-feedback {
    align-items: stretch;
    flex-direction: column;
    top: 123px;
  }
  .teacher-feedback-actions { justify-content: stretch; }
  .teacher-feedback-actions .btn { flex: 1; }
  .teacher-column-options { grid-template-columns: 1fr; }
  .teacher-detail-body > div { grid-template-columns: 1fr; gap: 4px; }
  .teacher-selection-bar {
    bottom: 8px;
    width: calc(100vw - 20px);
    justify-content: center;
    flex-wrap: wrap;
  }
  .row-select-column { width: 100% !important; min-width: 0; }
}

.teacher-referral-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
.teacher-referral-settings-card { border-color:rgba(68,228,193,.28); background:linear-gradient(145deg,rgba(16,52,56,.98),rgba(13,29,48,.98)); }
.teacher-referral-estimate { display:grid; grid-template-columns:auto 1fr; gap:5px 14px; align-items:center; padding:16px; border:1px solid rgba(68,228,193,.25); border-radius:13px; background:rgba(68,228,193,.07); }
.teacher-referral-estimate span { color:var(--muted); font-size:12px; }
.teacher-referral-estimate strong { color:var(--cyan); font-size:18px; }
.teacher-referral-estimate small { grid-column:2; color:var(--muted); }
.teacher-referral-person { display:grid; gap:3px; }
.teacher-referral-person small { color:var(--muted); font-size:11px; }
.teacher-referral-amount strong,.teacher-referral-amount small { display:block; }
.teacher-referral-amount strong { color:var(--cyan); }
.teacher-referral-amount small { margin-top:3px; color:var(--muted); font-size:11px; }
@media(max-width:850px) {
  .teacher-referral-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .teacher-referral-summary { grid-template-columns:1fr 1fr; }
  .teacher-referral-estimate { grid-template-columns:1fr; }
  .teacher-referral-estimate small { grid-column:auto; }
}
