:root {
  --bg-0: #eef4ef;
  --bg-1: #f8f4ea;
  --card: #fff;
  --ink: #22313a;
  --muted: #65757d;
  --accent: #5f8f7b;
  --accent-2: #3f6c5d;
  --line: #d8e2d8;
  --ok: #2f7a63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(146, 190, 166, 0.26) 0%, rgba(146, 190, 166, 0) 42%),
    radial-gradient(circle at 82% 10%, rgba(236, 206, 166, 0.24) 0%, rgba(236, 206, 166, 0) 36%),
    radial-gradient(circle at 50% 80%, rgba(202, 224, 210, 0.2) 0%, rgba(202, 224, 210, 0) 42%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
}

.page {
  width: min(1000px, 92vw);
  margin: 36px auto 64px;
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.tag {
  margin: 0;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(95, 143, 123, 0.12);
  color: #466f60;
  font-size: 0.85rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
}

.brand-subtitle {
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(54, 84, 72, 0.08);
  padding: 24px;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto 8px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: 0 18px 36px rgba(54, 84, 72, 0.08);
}

.auth-kicker {
  margin: 0 0 10px;
  color: #466f60;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
}

.auth-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
}

.auth-status {
  margin: 0;
  min-height: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-status[data-tone="success"] {
  color: #2f7a63;
}

.auth-status[data-tone="error"] {
  color: #b84f3a;
}

.auth-session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.intro-panel h3 {
  margin: 0 0 12px;
}

.intro-panel {
  margin-top: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(251, 253, 251, 0.98) 0%, rgba(255, 250, 244, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6e9d9;
  color: #8f3f1f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.student-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.type-card {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  color: var(--muted);
  line-height: 1.5;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.type-card input {
  margin-top: 4px;
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--accent);
}

.type-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.type-card:hover {
  transform: translateY(-1px);
  border-color: #a7c0b3;
  box-shadow: 0 12px 24px rgba(76, 112, 97, 0.08);
}

.type-card:has(input:checked) {
  border-color: #89ad9b;
  box-shadow: 0 14px 28px rgba(76, 112, 97, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #eef7f1 100%);
}

.single-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.single-field input,
.single-field textarea {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.single-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.single-field input:focus,
.single-field textarea:focus {
  outline: 2px solid rgba(143, 63, 31, 0.12);
  border-color: #d6b496;
}

.score-panel {
  margin-bottom: 14px;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mode-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.mode-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.mode-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.mode-item input {
  accent-color: var(--accent);
}

.subject-inputs {
  margin: 8px 0 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.subject-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.subject-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.subject-inputs input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  min-height: 42px;
}

.hidden {
  display: none;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(63, 108, 93, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: #466f60;
  border: 1px solid var(--line);
}

.progress-wrap {
  margin-bottom: 18px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  background: #edf4ef;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

#progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #78a58f, #4d7f6d);
  transition: width 0.2s ease;
}

.save-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.phase-hint {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(95, 143, 123, 0.16);
  background: rgba(95, 143, 123, 0.08);
  color: #466f60;
  font-size: 0.88rem;
  line-height: 1.55;
}

.pager-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
}

.question {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
}

.question h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(56px, 1fr));
  gap: 8px;
}

.scale label {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 2px;
  font-size: 0.86rem;
  color: var(--muted);
}

.scale input {
  display: block;
  margin: 0 auto 4px;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.option-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.option-item input {
  margin-top: 3px;
  inline-size: 18px;
  block-size: 18px;
  flex: 0 0 auto;
}

.option-tag {
  font-weight: 700;
  color: #466f60;
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.actions .btn {
  min-height: 42px;
}

.result-tools {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  display: grid;
  gap: 12px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions {
  margin-bottom: 14px;
}

.note-editor {
  display: grid;
  gap: 10px;
}

.note-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.note-editor-head h3 {
  margin: 0;
}

.note-editor textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  min-height: 120px;
}

.note-meta,
.admin-report-note-flag {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-status-new {
  background: #edf4ef;
  color: #4d7f6d;
}

.admin-status-pending {
  background: #fff3d6;
  color: #9a5b00;
}

.admin-status-contacted {
  background: #e8f7ef;
  color: #166534;
}

.admin-status-high_intent {
  background: #fde8e2;
  color: #b3411f;
}

.admin-content {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list-wrap,
.admin-detail {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  padding: 16px;
}

.admin-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-list-head h2,
.admin-detail-header h2 {
  margin: 0;
}

.admin-report-list {
  display: grid;
  gap: 10px;
}

.admin-report-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  color: var(--ink);
}

.admin-report-item.active {
  border-color: #89ad9b;
  box-shadow: 0 12px 24px rgba(76, 112, 97, 0.08);
  background: #f6fbf8;
}

.admin-report-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-report-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.empty-state {
  padding: 20px 8px;
  color: var(--muted);
}

.empty-state.compact {
  padding: 8px 0;
}

.radar-wrap {
  margin: 10px 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#profile-radar {
  width: 360px;
  height: 360px;
  max-width: 100%;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.radar-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.result-kicker {
  margin: 0 0 6px;
  color: #8f3f1f;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-summary {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.5;
}

.student-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.student-summary-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.student-summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.student-summary-card strong {
  display: block;
  color: #7c3b1b;
  line-height: 1.5;
  font-size: 0.94rem;
}

.confidence {
  margin: 6px 0 10px;
  color: #7c3b1b;
  font-weight: 700;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.confidence-badge strong {
  font-size: 1rem;
}

.confidence-high {
  background: #e8f7ef;
  color: #166534;
}

.confidence-medium {
  background: #fff3d6;
  color: #9a5b00;
}

.confidence-low {
  background: #fde8e2;
  color: #b3411f;
}

.confidence-note {
  margin: 0 0 12px;
  color: var(--muted);
}

.result-meta {
  margin-top: 0;
  color: var(--muted);
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-chips span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f8f4;
  border: 1px solid var(--line);
  color: #466f60;
  font-size: 0.88rem;
}

.advisor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.advisor-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff8ef;
  border: 1px solid #ead8c4;
  color: #7c4a26;
  font-size: 0.88rem;
  font-weight: 700;
}

.report-cover {
  padding: 22px 22px 18px;
  border-radius: 24px;
  border: 1px solid #d9e6dc;
  background: linear-gradient(135deg, rgba(113, 154, 136, 0.08) 0%, rgba(255, 250, 243, 0.95) 36%, rgba(244, 248, 245, 0.9) 100%);
}

.report-cover-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.report-cover-side {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d9e6dc;
  background: rgba(255, 255, 255, 0.8);
}

.report-cover-side p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.report-cover-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef7f1;
  border: 1px solid #d4e4d9;
  color: #315949;
  font-size: 0.84rem;
  font-weight: 700;
}

.advisor-tags-admin {
  margin-bottom: 0;
}

.advisor-tags-list {
  margin: 8px 0 2px;
}

.advisor-tags-list span {
  padding: 4px 9px;
  font-size: 0.8rem;
  background: #f6f1e8;
  color: #6f4a2f;
}

.school-major-box {
  margin-top: 18px;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.upload-btn {
  cursor: pointer;
}

.upload-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-section {
  margin-top: 18px;
}

.report-section-heading {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.report-section-heading h3 {
  margin: 0 0 6px;
}

.report-section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.report-section-index {
  margin: 2px 0 0;
  color: #4d7f6d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-overview-section {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #d8e5dc;
  background: linear-gradient(180deg, #fbfdfb 0%, #fffdfa 100%);
}

.report-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-overview-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.report-overview-card-primary {
  background: linear-gradient(180deg, #f4faf6 0%, #fffdf8 100%);
}

.report-overview-label {
  display: block;
  margin-bottom: 8px;
  color: #4d7f6d;
  font-size: 0.82rem;
  font-weight: 700;
}

.report-overview-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.report-overview-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.career-analysis-section {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #d7e4da;
  background: linear-gradient(180deg, #f7fbf8 0%, #fffdf9 100%);
}

.career-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.career-analysis-kicker {
  margin: 0 0 6px;
  color: #4d7f6d;
  font-size: 0.82rem;
  font-weight: 700;
}

.career-analysis-header h3 {
  margin: 0;
  color: var(--ink);
}

.career-analysis-holland {
  margin: 0;
  color: #4d7f6d;
  font-weight: 700;
  white-space: nowrap;
}

.career-analysis-summary {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.7;
}

.career-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.career-analysis-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.career-analysis-card h4 {
  margin: 0 0 10px;
}

.career-analysis-card p,
.career-analysis-card li {
  color: var(--muted);
  line-height: 1.7;
}

.career-analysis-card ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.career-analysis-note {
  margin: 0;
}

.career-axis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.career-axis-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f2f8f4;
}

.career-axis-label {
  margin: 0 0 6px;
  color: #4d7f6d;
  font-size: 0.85rem;
}

.career-axis-item strong {
  display: block;
  margin-bottom: 6px;
  color: #244b3d;
}

.career-axis-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.career-analysis-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.development-insights-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d8e5dc;
  background: linear-gradient(180deg, #f7fbf8 0%, #fffdfa 100%);
}

.development-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.development-insights-header h3 {
  margin: 0;
}

.development-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.development-insight-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.development-insight-card h4 {
  margin: 0 0 8px;
}

.development-insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.report-notes-section {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #d8e5dc;
  background: linear-gradient(180deg, #fcfdfb 0%, #fffdfa 100%);
}

.report-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-note-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.report-note-card-primary {
  background: linear-gradient(180deg, #f4faf6 0%, #fffdfa 100%);
}

.report-note-card-caution {
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
}

.report-note-kicker {
  margin: 0 0 8px;
  color: #4d7f6d;
  font-size: 0.82rem;
  font-weight: 700;
}

.report-note-card h4 {
  margin: 0 0 10px;
  color: var(--ink);
}

.report-note-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.rank-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
}

.rank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rank-label {
  margin: 0 0 4px;
  color: #4d7f6d;
  font-size: 0.82rem;
  font-weight: 700;
}

.rank-card h3 {
  margin: 0;
}

.rank-card .score {
  color: var(--ok);
  font-weight: 700;
  white-space: nowrap;
}

.rank-summary {
  margin: 10px 0 12px;
  color: var(--ink);
  line-height: 1.5;
}

.rank-meta-grid {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.evidence,
.risk {
  margin: 8px 0;
  color: var(--muted);
}

.rank-details {
  margin-top: 8px;
}

.rank-details summary {
  cursor: pointer;
  color: #466f60;
  font-weight: 700;
}

.advice {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.advice h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.advisor-conclusion {
  border-top: 0;
  padding-top: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d8e5dc;
  background: linear-gradient(180deg, #f7fbf8 0%, #fff 100%);
}

.action-plan-list {
  display: grid;
  gap: 8px;
}

.action-plan-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2f8f4;
  border: 1px solid var(--line);
}

.restricted-section {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d7e4da;
  background: linear-gradient(180deg, #f6fbf7 0%, #fffdf9 100%);
}

.restricted-section h3,
.restricted-section h4 {
  margin: 0 0 8px;
}

.restricted-note {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.restricted-source {
  margin: 0 0 12px;
  color: #4d7f6d;
  font-size: 0.92rem;
}

.fit-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.fit-high {
  background: #e8f7ef;
  color: #166534;
}

.fit-medium {
  background: #fff3d6;
  color: #9a5b00;
}

.fit-low {
  background: #fde8e2;
  color: #b3411f;
}

.mapping-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #466f60;
  text-decoration: none;
  border-bottom: 1px solid #b7cfc0;
}

.footer-links a:hover {
  opacity: 0.85;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
    color: #111827;
    font-size: 11pt;
  }

  .hero,
  #quiz-form,
  .footer-links,
  #intro,
  .result-tools {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .result-header {
    margin-bottom: 8mm;
  }

  #result {
    display: block !important;
  }

  .career-analysis-section,
  .development-insights-section,
  .report-overview-section,
  .report-notes-section,
  .rank-card,
  .advice,
  .restricted-section,
  .student-summary-card,
  .radar-wrap {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .summary-chips span,
  .report-overview-card,
  .report-note-card,
  .career-axis-item,
  .career-analysis-card,
  .development-insight-card,
  .rank-card,
  .student-summary-card {
    background: #fff !important;
    box-shadow: none !important;
  }

  .result-summary,
  .rank-summary,
  .career-analysis-summary,
  .career-analysis-card p,
  .career-analysis-card li,
  .development-insight-card p,
  .advice p {
    line-height: 1.55;
  }

  .development-insights-grid,
  .career-analysis-grid,
  .report-overview-grid,
  .report-notes-grid,
  .rank-grid {
    gap: 10px;
  }

  .report-cover {
    padding: 0;
    border: 0;
    background: #fff;
  }

  .report-cover-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .report-cover-side {
    padding: 12px 14px;
  }

  .report-section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .report-section-index {
    font-size: 0.72rem;
  }

  .rank-details {
    display: block;
  }

  .rank-details summary {
    list-style: none;
  }

  .rank-details summary::-webkit-details-marker {
    display: none;
  }
}

@media (max-width: 820px) {
  .page {
    width: min(100%, calc(100vw - 20px));
    margin: 20px auto 84px;
  }

  .card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }

  .report-cover-main,
  .report-section-heading,
  .report-overview-grid,
  .report-notes-grid {
    grid-template-columns: 1fr;
  }

  .career-analysis-header {
    display: grid;
  }

  .career-analysis-grid,
  .career-axis-list,
  .development-insights-grid {
    grid-template-columns: 1fr;
  }

  .student-type-grid {
    grid-template-columns: 1fr;
  }

  .auth-actions .btn {
    width: 100%;
  }

  .auth-session-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .student-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content {
    grid-template-columns: 1fr;
  }

  .option-list {
    grid-template-columns: 1fr;
  }

  .pager-meta {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .radar-legend {
    grid-template-columns: 1fr;
  }

  .subject-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #quiz-form {
    padding-bottom: 104px;
  }

  .actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: rgba(255, 250, 240, 0.98);
    border-top: 1px solid var(--line);
    justify-content: space-between;
    z-index: 30;
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 24px rgba(143, 63, 31, 0.08);
  }

  .actions .btn {
    flex: 1;
    min-height: 48px;
    font-size: 1rem;
  }

  .actions .btn.hidden {
    display: none;
  }

  .result-tools {
    justify-content: stretch;
  }

  .result-tools .btn {
    width: 100%;
    min-height: 48px;
  }

  .confidence-badge {
    width: 100%;
    justify-content: space-between;
  }

  .rank-card-top {
    flex-direction: column;
  }

  #profile-radar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 540px) {
  .subject-inputs {
    grid-template-columns: 1fr;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .intro-panel {
    padding: 14px;
  }

  .student-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .subtitle,
  .result-meta,
  .advice {
    font-size: 0.94rem;
  }

  .career-analysis-section {
    padding: 14px;
  }

  .report-overview-section,
  .report-notes-section,
  .report-cover-side {
    padding: 14px;
  }
}
