/* 教师工作台 PC — 版式：侧栏 + 主区偏移标题；色系：纸感底 + 青绿主色 + 陶土强调 */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Literata:ital,opsz,wght@0,7..72,500;0,7..72,700;1,7..72,400&display=swap");

:root {
  --ink: #0c1a18;
  --ink-soft: #3d4f4c;
  --muted: #5f726e;
  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --surface: #fffcf7;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-muted: #ccfbf1;
  --teal-deep: #134e4a;
  --accent: #c45c3e;
  --accent-soft: #fde8e0;
  --border: #c5ddd8;
  --danger: #b91c1c;
  --warn-bg: #fff7ed;
  --shadow: 0 12px 40px rgba(12, 26, 24, 0.08);
  --radius: 14px;
  --sidebar-w: 256px;
  --font-ui: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Literata", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* —— 登录视图 —— */
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 38vw) 1fr;
}
@media (max-width: 900px) {
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 160px;
    padding: 32px 24px !important;
  }
}
.login-brand {
  background: linear-gradient(160deg, var(--teal-deep) 0%, #0a3d39 48%, #062c29 100%);
  color: #ecfdf5;
  padding: 48px 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 55%;
  top: -18%;
  right: -30%;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.login-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 12px;
  position: relative;
}
.login-brand h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 14ch;
  position: relative;
}
.login-lead {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 34ch;
  opacity: 0.88;
  position: relative;
}
.login-brand-links {
  margin-top: 28px;
  font-size: 0.82rem;
  position: relative;
}
.login-brand-links a {
  color: #99f6e4;
  font-weight: 600;
  text-decoration: none;
}
.login-brand-links a:hover {
  text-decoration: underline;
}
.login-brand-register-btn {
  display: none;
  margin-top: 18px;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #0f766e;
  background: #ecfdf5;
  border: 2px solid rgba(153, 246, 228, 0.95);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}
.login-brand-register-btn:hover {
  background: #fff;
}
.login-register-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.login-register-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.login-register-divider::before,
.login-register-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-register-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.btn--register {
  background: #fff;
  color: var(--teal-deep);
  border: 2px solid var(--teal);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.14);
}
.btn--register:hover {
  background: #f0fdfa;
}
@media (max-width: 900px) {
  .login-brand-register-btn {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
  }
  .login-brand-links {
    display: none;
  }
  .login-brand {
    justify-content: center;
    align-items: flex-start;
    min-height: auto !important;
    padding: 28px 20px 24px !important;
  }
  .login-brand h1 {
    max-width: none;
    font-size: 1.55rem;
  }
  .login-lead {
    font-size: 0.86rem;
    max-width: none;
  }
  .login-register-panel {
    margin-top: 16px;
    padding-top: 16px;
  }
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 11px,
    rgba(13, 148, 136, 0.03) 11px,
    rgba(13, 148, 136, 0.03) 12px
  );
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
}
.login-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal-deep);
  margin: 0 0 8px;
}
.login-hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.login-tabs button {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.login-tabs button.is-on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.form-row {
  margin-bottom: 14px;
}
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
}
.form-row textarea {
  resize: vertical;
  min-height: 88px;
}

/* 督导提醒输入框：单独放大，便于输入较长反馈 */
#supervisionMsg {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  font-size: 0.94rem;
  line-height: 1.6;
}
.row-flex {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.row-flex .grow {
  flex: 1;
  min-width: 160px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--teal-hover);
}
.btn--ghost {
  background: var(--paper-2);
  color: var(--teal-deep);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--paper);
}
.btn--danger {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #f5c4b4;
}
.btn--block {
  width: 100%;
}
.err-text {
  color: var(--danger);
  font-size: 0.84rem;
  margin-top: 10px;
}
.login-foot {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* —— 应用壳 —— */
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
@media (max-width: 960px) {
  .sidebar-toggle {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }
  .app-main {
    margin-left: 0 !important;
  }
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--teal-deep);
  color: #ecfdf5;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-logo {
  padding: 28px 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo .t1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sidebar-logo .t2 {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.sidebar-logo a {
  color: #99f6e4;
  font-size: 0.75rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}
.sidebar-logo a:hover {
  text-decoration: underline;
}
.nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 24px;
}
.nav-group-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  padding: 16px 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  margin-bottom: 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(236, 253, 245, 0.88);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-item.is-active {
  background: rgba(45, 212, 191, 0.2);
  color: #fff;
  font-weight: 600;
}
.nav-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-badge:empty,
.nav-badge.hidden {
  display: none;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 16px 32px;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.topbar-actions .who {
  font-weight: 600;
  color: var(--ink-soft);
}
.topbar-actions a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.topbar-actions a:hover {
  text-decoration: underline;
}

.content-wrap {
  padding: 26px 28px 56px 32px;
  max-width: 1180px;
}

.client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: linear-gradient(105deg, #ecfdf5 0%, var(--surface) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}
.client-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-hover);
  margin-bottom: 4px;
}
.client-bar-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.client-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.panel {
  display: none;
  animation: panelIn 0.25s ease;
}
.panel.is-visible {
  display: block;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-head {
  margin-bottom: 20px;
  padding-left: 8px;
  border-left: 3px solid var(--teal);
}
.panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: var(--teal-deep);
}
.panel-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.55;
}

.card-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(12, 26, 24, 0.04);
}
.card-block h3 {
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--teal-deep);
}
.card-block + .card-block {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--paper-2);
}
.data-table th {
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.data-table tbody tr:hover {
  background: rgba(13, 148, 136, 0.04);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.tag--pending {
  background: var(--warn-bg);
  color: #c2410c;
}
.tag--ok {
  background: #ecfdf5;
  color: var(--teal-hover);
}
.tag--muted {
  background: var(--paper-2);
  color: var(--muted);
}
.tag--bad {
  background: #fef2f2;
  color: var(--danger);
}

.slot-editor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.slot-editor-row select,
.slot-editor-row input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.86rem;
}

.inbox-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.inbox-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--paper-2);
  cursor: pointer;
  transition: background 0.12s;
}
.inbox-item:last-child {
  border-bottom: none;
}
.inbox-item:hover {
  background: var(--paper);
}
.inbox-item.is-unread {
  background: rgba(196, 92, 62, 0.06);
  border-left: 3px solid var(--accent);
  padding-left: 15px;
}
.inbox-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.inbox-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.inbox-body {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.5;
}
.inbox-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

.json-pre {
  background: var(--paper);
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.45;
  max-height: 420px;
  border: 1px solid var(--border);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.booking-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 12px;
}
.booking-summary-banner {
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.18), rgba(20, 184, 166, 0.12));
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.booking-summary-banner strong {
  font-weight: 800;
}

.booking-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.booking-filters button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.booking-filters button.is-on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.cert-thumb {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-thumb .rm-cert {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  padding: 4px 8px;
  background: rgba(12, 26, 24, 0.78);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.cert-thumb .rm-cert:hover {
  background: var(--danger);
}

/* Toast */
.toast-host {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  max-width: 360px;
}
.toast--in {
  opacity: 1;
  transform: none;
}
.toast--ok {
  background: var(--teal-deep);
  color: #ecfdf5;
}
.toast--err {
  background: #7f1d1d;
  color: #fff;
}
.toast--info {
  background: var(--ink);
  color: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 24, 0.45);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--surface);
  border-radius: calc(var(--radius) + 2px);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.modal-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-deep);
}
.modal-box textarea {
  width: 100%;
  min-height: 100px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.88rem;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.rate-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.rate-box .note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 12px;
  line-height: 1.5;
}

/* NDBI 教师端完整报告（服务端渲染 HTML） */
.ndbi-report-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-height: min(78vh, 920px);
  overflow: auto;
  box-shadow: 0 4px 24px rgba(12, 26, 24, 0.06);
}
.ndbi-teacher-report {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ndbi-tr-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ndbi-tr-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal-deep);
}
.ndbi-tr-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.ndbi-tr-sec {
  margin-bottom: 22px;
}
.ndbi-tr-lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
}
.ndbi-tr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ndbi-tr-kpi {
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.ndbi-tr-kpi-lab {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ndbi-tr-kpi-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-deep);
}
.ndbi-tr-line,
.ndbi-tr-note {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.ndbi-tr-h4 {
  margin: 18px 0 10px;
  font-size: 1rem;
  color: var(--teal-deep);
  font-weight: 700;
}
.ndbi-tr-h5 {
  margin: 14px 0 8px;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
}
.ndbi-tr-quote {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  background: var(--teal-muted);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.ndbi-tr-insight {
  margin: 0 0 12px;
}
.ndbi-tr-sub {
  margin: 10px 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.ndbi-tr-tags {
  margin: 0 0 12px;
  padding-left: 1.1em;
}
.ndbi-tr-tags--good li {
  color: var(--teal-deep);
}
.ndbi-tr-tags--risk li {
  color: var(--accent);
}
.ndbi-tr-ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.ndbi-tr-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.ndbi-tr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.ndbi-tr-table th,
.ndbi-tr-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ndbi-tr-table thead th {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink);
}
.ndbi-tr-table--compact th,
.ndbi-tr-table--compact td {
  padding: 6px 8px;
}
.ndbi-tr-td-wrap {
  max-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
}
.ndbi-tr-footnote {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}
.ndbi-tr-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 家长养育逐项解读（与小程序专业报告一致） */
.ndbi-tr-parent-pi-wrap {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.ndbi-tr-pi-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.ndbi-tr-pi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ndbi-tr-pi-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.ndbi-tr-pi-sub {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}
.ndbi-tr-pi-band {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.ndbi-tr-pi-band--low {
  background: #fef2f2;
  color: #b91c1c;
}
.ndbi-tr-pi-band--low_mid {
  background: #fff7ed;
  color: #c2410c;
}
.ndbi-tr-pi-band--mid_high {
  background: #eff6ff;
  color: #1d4ed8;
}
.ndbi-tr-pi-band--high {
  background: #ecfdf5;
  color: #047857;
}
.ndbi-tr-pi-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.ndbi-tr-pi-plan-h {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
}
.ndbi-tr-pi-ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ndbi-tr-pi-ol li {
  margin: 6px 0;
}
.ndbi-tr-pi-footnote {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}
