:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --paper: #f5f5f7;
  --surface: #ffffff;
  --soft: #f2f2f7;
  --accent: #ff6a00;
  --accent-strong: #b42318;
  --accent-soft: #fff1e8;
  --fire-red: #ff3b30;
  --green: #34c759;
  --gold: #ff9f0a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display-font: "Songti SC", "STSong", "Noto Serif CJK SC", "PingFang SC", serif;
  font-family: var(--text-font);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 120px;
}

.teacher-shell { min-height: 100vh; }
.assessment-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: 16px;
  padding-bottom: 92px;
  overflow: hidden;
}
.topbar, .progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(180%);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--fire-red), var(--accent), var(--gold));
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  width: clamp(70px, 8vw, 92px);
  height: clamp(70px, 8vw, 92px);
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-lockup h1 {
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: var(--display-font);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 700;
}
h2 {
  font-family: var(--display-font);
  font-size: 23px;
  margin-bottom: 14px;
  font-weight: 700;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.lead-card, .flow-card, .assessment-card, .report-section {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}

.lead-card {
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lead-card:hover {
  transform: translateY(-2px);
  border-color: #f1b08a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}
.lead-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.lead-main h2 { font-family: var(--display-font); font-size: 36px; margin-bottom: 8px; font-weight: 700; }
.lead-main p { color: var(--muted); font-size: 18px; }

.status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
}
.info-list.compact { grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
.info-list div { padding: 14px; background: rgba(242, 242, 247, .9); border-radius: 8px; border: 1px solid rgba(210, 210, 215, .72); }
.info-list dt { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.info-list dd { margin: 0; font-size: 18px; font-weight: 700; }

.primary-button, .secondary-button, .ghost-button, .ghost-link, .tool-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.primary-button { background: var(--accent); color: white; box-shadow: 0 10px 22px rgba(255, 106, 0, .24); }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .ghost-link:hover, .tool-button:hover { transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { background: rgba(255, 255, 255, .9); border-color: var(--line); color: var(--ink); box-shadow: 0 8px 18px rgba(0, 0, 0, .05); }
.ghost-button, .ghost-link { background: rgba(255, 255, 255, .48); border-color: var(--line); color: var(--accent-strong); }
.wide { width: 100%; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }

.flow-card { padding: 24px; margin-bottom: 18px; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.plan-list span, .chip-row span, .rubric-grid span {
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 8px;
}
.plan-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 800;
}
.plan-list small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.assessment-timebox,
.science-note {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
}
.assessment-timebox strong,
.science-note strong {
  color: var(--accent-strong);
  font-size: 18px;
}
.assessment-timebox span,
.science-note span {
  color: var(--muted);
  line-height: 1.55;
}
.science-note {
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto;
  align-items: center;
  margin: 18px 0;
}
.science-note em {
  font-style: normal;
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.progress-header { position: sticky; top: 0; z-index: 5; padding: 10px 0; margin-bottom: 12px; background: rgba(245, 245, 247, .86); backdrop-filter: blur(20px) saturate(180%); }
.progress-track { flex: 1; height: 12px; background: #e5e5ea; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); }

.assessment-card { padding: clamp(22px, 4vw, 40px); }
.assessment-shell .assessment-card {
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}
.assessment-board {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.assessment-top {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .055);
  backdrop-filter: blur(18px) saturate(160%);
}
.assessment-top h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.2vw, 42px);
}
.assessment-top .purpose {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}
.assessment-guide-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 12px;
}
.assessment-pane {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
}
.assessment-pane h1 {
  font-size: clamp(30px, 3vw, 44px);
}
.assessment-pane h2 {
  margin-bottom: 8px;
  font-size: 20px;
}
.assessment-scoring {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 241, 232, .62));
  border-color: #ffd2b8;
}
.assessment-scoring h2 {
  display: grid;
  place-items: center;
  min-height: 112px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  color: var(--accent-strong);
  text-align: center;
  line-height: 1.25;
}
.purpose { font-size: 22px; color: var(--muted); line-height: 1.6; }
.assessment-top .science-note {
  grid-template-columns: 1fr;
  align-content: center;
  margin: 0;
  padding: 12px;
  background: rgba(255, 241, 232, .62);
  border-color: #ffd2b8;
}
.assessment-top .science-note span {
  line-height: 1.42;
}
.assessment-top .science-note strong {
  font-size: 16px;
}
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0; }
.steps { padding-left: 24px; line-height: 1.8; font-size: 18px; }
.assessment-pane .steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.5; font-size: 16px; }
blockquote { margin: 0; padding: 18px; border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 8px; font-size: 20px; line-height: 1.7; }
.assessment-pane blockquote { padding: 12px; font-size: 16px; line-height: 1.5; }
.chip-row, .rubric-grid, .tool-panel { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.assessment-pane .chip-row,
.assessment-pane .tool-panel { margin: 10px 0 0; gap: 8px; }
.assessment-pane .chip-row span { padding: 9px 10px; }
.rubric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tool-panel.vertical { display: grid; }
.quiz-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tool-button { background: #fff; border-color: var(--line); color: var(--accent-strong); }
.mini-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 14px;
}
.mini-button.active { background: var(--green); color: white; }

.score-row { display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); gap: 10px; }
.score-button {
  min-height: 72px;
  border: 2px solid var(--line);
  background: white;
  border-radius: 8px;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
}
.score-button.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 12px 24px rgba(255, 106, 0, .22); }

.score-rubric-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}
.assessment-scoring .score-rubric-list {
  min-height: 0;
  overflow: visible;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.score-rubric-button {
  min-height: 88px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
}
.assessment-scoring .score-rubric-button {
  min-height: 112px;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
}
.score-rubric-button strong {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 950;
  white-space: nowrap;
}
.assessment-scoring .score-rubric-button strong {
  min-height: 38px;
  font-size: 19px;
}
.score-rubric-button span {
  line-height: 1.55;
  font-size: 17px;
  font-weight: 800;
}
.assessment-scoring .score-rubric-button span {
  display: grid;
  place-items: center;
  min-height: 42px;
  line-height: 1.25;
  font-size: 13px;
}
.score-rubric-button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(255, 106, 0, .16);
}
.score-rubric-button.active strong {
  background: var(--accent);
  color: white;
}
.score-rubric-button.active span {
  color: var(--accent-strong);
}

.field-label { display: grid; gap: 10px; font-weight: 800; margin: 22px 0; }
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  color: var(--ink);
  line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}
.hint { color: var(--muted); }

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(248, 248, 250, .84);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(180%);
}
.sticky-actions.split { justify-content: space-between; }
.sticky-actions .primary-button, .sticky-actions .secondary-button { min-width: 180px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.compact-metrics {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.metric-grid article {
  padding: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display-font);
  font-size: 36px;
  font-weight: 700;
}
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}
.filter-tabs a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.advisor-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-menu {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}
.admin-menu-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.admin-menu a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 42px 14px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
}
.admin-menu a span {
  font-weight: 900;
}
.admin-menu a small {
  color: var(--muted);
  line-height: 1.35;
}
.admin-menu a em {
  position: absolute;
  top: 14px;
  right: 12px;
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.admin-menu a.active {
  background: var(--accent-soft);
  border-color: #ffd2b8;
  color: var(--accent-strong);
}
.admin-menu a.active em {
  background: var(--accent);
  color: white;
}
.advisor-content {
  min-width: 0;
}
.advisor-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}
.advisor-toolbar h2 {
  margin-bottom: 6px;
}
.advisor-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}
.advisor-search-form input {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
}
.advisor-list {
  display: grid;
  gap: 16px;
}
.advisor-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}
.advisor-card-main {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.advisor-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.advisor-card-head h2 {
  margin: 0 0 6px;
  font-family: var(--display-font);
  font-size: 32px;
}
.advisor-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.advisor-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.advisor-summary div {
  min-width: 0;
  padding: 12px;
  background: rgba(242, 242, 247, .92);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
}
.advisor-summary span,
.advisor-summary small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.advisor-summary strong {
  display: block;
  overflow: hidden;
  margin: 5px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.advisor-card-actions {
  justify-content: flex-start;
}
.advisor-details {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
}
.advisor-details summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--accent-strong);
  font-weight: 900;
  cursor: pointer;
}
.advisor-details-body {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}
.record-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.lead-editor {
  margin-bottom: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(210, 210, 215, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}
.record-header {
  display: grid;
  gap: 6px;
}
.lead-editor .record-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.lead-editor h2 {
  margin: 0 0 6px;
}
.lead-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lead-edit-form label,
.goal-fieldset {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.lead-edit-form input,
.lead-edit-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}
.goal-fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.goal-fieldset legend {
  padding: 0 8px;
  color: var(--muted);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.checkbox-pill {
  min-height: 46px;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 0 12px;
  background: rgba(242, 242, 247, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
}
.checkbox-pill input {
  width: auto;
  min-height: 0;
  transform: scale(1.2);
}
.lead-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.record-header h3 {
  margin: 0;
  font-size: 22px;
}
.record-header p {
  margin: 0;
  color: var(--muted);
}
.lead-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lead-title-row h2 {
  margin: 0;
  font-size: 32px;
}
.record-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.record-field {
  display: grid;
  gap: 7px;
}
.record-field.wide {
  grid-column: 1 / -1;
}
.record-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.record-field input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f5f5f7;
  color: var(--ink);
  font-weight: 800;
}
.follow-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
  padding: 16px;
  background: rgba(242, 242, 247, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.follow-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.follow-form input,
.follow-form select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}
.follow-form .wide-field,
.follow-form button {
  grid-column: 1 / -1;
}
.follow-history {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.follow-history h3 {
  margin: 0 0 8px;
}
.follow-history p {
  margin: 8px 0 0;
  color: var(--muted);
}
.empty-panel {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dimension-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.dimension-card span { color: var(--muted); }
.dimension-card strong { display: block; font-family: var(--display-font); font-size: 42px; margin: 8px 0; font-weight: 700; }
.dimension-card p { margin-bottom: 0; color: var(--accent-strong); font-weight: 700; }
.result-list { display: grid; gap: 10px; }
.result-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.warning { margin-bottom: 18px; padding: 14px; background: #fff4e5; color: #9a5b00; border-radius: 8px; font-weight: 800; }
.share-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.share-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.share-header h3 {
  margin: 0 0 6px;
  font-size: 24px;
}
.share-header p {
  margin: 0;
  color: var(--muted);
}
.share-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}
.share-main-button {
  min-width: 190px;
  min-height: 60px;
}
.share-link-box {
  min-width: 0;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.share-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.share-link {
  margin: 0;
  word-break: break-all;
  line-height: 1.5;
  font-weight: 800;
}
.share-actions {
  grid-column: 1 / -1;
}
.qr-box {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qr-box img {
  width: 150px;
  height: 150px;
  border: 8px solid white;
  border-radius: 8px;
}
.qr-box .hint {
  max-width: 150px;
  margin: 0;
  text-align: center;
  font-size: 13px;
}

.report-shell { max-width: 820px; margin: 0 auto; padding: 0 16px 48px; }
.report-hero {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 48px 0 34px;
}
.report-logo {
  width: clamp(120px, 32vw, 190px);
  height: clamp(120px, 32vw, 190px);
  object-fit: contain;
  margin-bottom: 16px;
  mix-blend-mode: multiply;
}
.report-hero h1 {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 56px;
}
.report-hero p:last-child { font-size: 20px; color: var(--muted); }
.report-section { padding: 22px; margin-bottom: 14px; line-height: 1.8; }
.report-note {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(210, 210, 215, .72);
}
.report-note strong {
  color: var(--accent-strong);
}
.report-note p {
  margin: 6px 0 0;
  color: var(--muted);
}
.report-section ul { padding-left: 22px; }
.radar-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 14px 0 4px;
  overflow: hidden;
}
.radar-chart {
  width: min(100%, 380px);
  height: auto;
}
.radar-ring {
  fill: none;
  stroke: #e5e5ea;
  stroke-width: 1;
}
.radar-axis {
  stroke: #d2d2d7;
  stroke-width: 1;
}
.radar-area {
  fill: rgba(255, 106, 0, .18);
  stroke: none;
}
.radar-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}
.radar-dot {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 2;
}
.radar-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.radar-caption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.ability-list { display: grid; gap: 14px; }
.ability-row { display: grid; gap: 8px; }
.ability-row div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.ability-row span { color: var(--muted); }
.bar { height: 12px; background: #e5e5ea; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.recommend-title { font-family: var(--display-font); font-size: 26px; font-weight: 700; color: var(--accent-strong); }
.instrument-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.instrument-list article {
  padding: 16px;
  background: var(--soft);
  border-radius: 8px;
}
.instrument-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.instrument-list strong {
  display: block;
  margin: 6px 0;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-strong);
}
.instrument-list em {
  display: inline-flex;
  margin-bottom: 8px;
  font-style: normal;
  font-weight: 900;
  color: var(--green);
}
.instrument-list p { margin-bottom: 0; }
.stage-list { display: grid; gap: 12px; }
.stage-list div { padding: 14px; background: var(--soft); border-radius: 8px; }
.stage-list p { margin-bottom: 0; }
.empty-state { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 16px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: rgba(29, 29, 31, .9);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 20;
}

.site-compliance {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.site-compliance a {
  color: var(--muted);
  text-decoration: none;
}
.site-compliance a:hover {
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 16px; }
  .assessment-shell { height: auto; min-height: 100vh; overflow: visible; }
  .assessment-board { grid-template-columns: 1fr; height: auto; }
  .assessment-top,
  .assessment-guide-grid { grid-template-columns: 1fr; }
  .assessment-pane { overflow: visible; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .brand-lockup { gap: 12px; }
  .brand-logo { width: 64px; height: 64px; }
  .two-column { grid-template-columns: 1fr; }
  .science-note { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: repeat(3, 1fr); }
  .score-rubric-list { grid-template-columns: 1fr; }
  .assessment-scoring {
    grid-template-columns: 1fr;
  }
  .assessment-scoring h2 {
    min-height: auto;
    justify-items: start;
    padding: 10px 12px;
  }
  .assessment-scoring .score-rubric-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-rubric-button { grid-template-columns: 64px minmax(0, 1fr); }
  .assessment-scoring .score-rubric-button { min-height: 108px; }
  .score-rubric-button strong { font-size: 20px; }
  .share-panel { grid-template-columns: 1fr; }
  .share-header { align-items: stretch; flex-direction: column; }
  .share-main-button { width: 100%; }
  .qr-box { grid-row: auto; }
  .report-hero h1 { font-size: 32px; }
  .advisor-layout,
  .advisor-toolbar,
  .advisor-summary,
  .compact-metrics { grid-template-columns: 1fr; }
  .admin-menu { position: static; }
  .advisor-search-form { grid-template-columns: 1fr; }
  .advisor-card-head { flex-direction: column; }
  .lead-editor .record-header,
  .lead-edit-form { grid-template-columns: 1fr; }
  .record-form-grid { grid-template-columns: 1fr; }
  .follow-form { grid-template-columns: 1fr; }
  .sticky-actions { display: grid; grid-template-columns: 1fr; }
  .sticky-actions.split { justify-content: stretch; }
  .sticky-actions .primary-button, .sticky-actions .secondary-button { width: 100%; min-width: 0; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .assessment-top { grid-template-columns: 1fr; }
  .assessment-guide-grid { grid-template-columns: 1fr; }
  .assessment-scoring {
    grid-template-columns: 1fr;
  }
  .assessment-scoring h2 {
    min-height: auto;
    justify-items: start;
    padding: 10px 12px;
  }
  .assessment-scoring .score-rubric-button { padding: 8px 6px; }
  .assessment-scoring .score-rubric-button strong { font-size: 17px; }
  .assessment-scoring .score-rubric-button span { font-size: 11px; }
}

@media (max-height: 760px) and (min-width: 981px) {
  .assessment-shell { padding-top: 10px; padding-bottom: 82px; }
  .assessment-shell .assessment-card { padding: 14px; }
  .assessment-board { gap: 10px; }
  .assessment-top { padding: 14px 16px; gap: 14px; }
  .assessment-pane { padding: 12px; }
  .assessment-top h1 { font-size: 32px; }
  .assessment-top .purpose,
  .assessment-pane blockquote,
  .assessment-pane .steps { font-size: 15px; }
  .assessment-scoring .score-rubric-button { min-height: 86px; }
  .assessment-scoring .score-rubric-button strong { min-height: 32px; font-size: 17px; }
  .assessment-scoring .score-rubric-button span { min-height: 32px; font-size: 12px; }
}

@media (max-width: 360px) {
  .report-hero h1 { font-size: 29px; }
}
