:root {
  --bg: #F2EAD3;
  --paper: #FAF6EB;
  --ink: #14141F;
  --ink-soft: #4A4A5E;
  --ink-faded: #8A8A9A;
  --red: #C8302C;
  --red-deep: #9E1B17;
  --orange: #E07A2B;
  --green: #2A6F4D;
  --gold: #D4A437;
  --line: #14141F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20,20,31,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Faint grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.35;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ========== HEADER ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 12px;
  position: relative;
  transform: rotate(-4deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark svg { width: 28px; height: 28px; color: var(--paper); }

.brand-text h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-text p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
}

.header-meta {
  text-align: right;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.saved-indicator {
  display: inline-block;
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: rgba(42, 111, 77, 0.1);
  border-radius: 99px;
  transition: all 0.3s;
}

.saved-indicator::before {
  content: "● ";
  font-size: 10px;
}

.saved-indicator.flash {
  animation: savedFlash 0.6s ease-out;
}

@keyframes savedFlash {
  0% { background: var(--green); color: var(--paper); transform: scale(1.05); }
  100% { background: rgba(42, 111, 77, 0.1); color: var(--green); transform: scale(1); }
}

.header-meta strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
  font-weight: 600;
}

/* ========== HERO ========== */
.hero {
  margin-bottom: 48px;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  margin-bottom: 18px;
}

.hero h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 850px;
}

.hero h2 em {
  font-style: italic;
  color: var(--red);
  position: relative;
  display: inline-block;
}

.hero h2 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 4px;
  height: 8px;
  background: var(--gold);
  z-index: -1;
  transform: skewX(-8deg);
  opacity: 0.7;
}

.hero p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
}

/* ========== PROGRESS ========== */
.progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--line);
  overflow-x: auto;
}

.step-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 100px;
  cursor: pointer;
  user-select: none;
}

.step-dot:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--ink);
  opacity: 0.2;
}

.step-dot.done:not(:last-child)::after,
.step-dot.active:not(:last-child)::after {
  background: var(--red);
  opacity: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.step-dot.active .step-circle {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: scale(1.15);
  box-shadow: 0 0 0 0 rgba(200, 48, 44, 0.6);
  animation: pulse-active 2s infinite;
}

.step-dot.done .step-circle {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@keyframes pulse-active {
  0% { box-shadow: 0 0 0 0 rgba(200, 48, 44, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(200, 48, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 48, 44, 0); }
}

.step-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.step-dot.active .step-label,
.step-dot.done .step-label {
  color: var(--ink);
}

/* ========== STEPS ========== */
.steps-wrap {
  position: relative;
  min-height: 400px;
}

.step {
  display: none;
  animation: stepIn 0.5s ease-out;
}

.step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
  -webkit-text-stroke: 0;
}

.step-title-block { flex: 1; }

.step-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.step-subtitle {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 640px;
}

/* Card */
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--line);
  padding: 28px;
  margin-top: 28px;
}

.card.tilt-l { transform: rotate(-0.4deg); }
.card.tilt-r { transform: rotate(0.4deg); }

.card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* Inputs */
.field {
  display: block;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 4px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--red);
  transform: translate(-2px, -2px);
}

.field-textarea {
  resize: vertical;
  min-height: 180px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.65;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
}

/* Prompt box */
.prompt-box {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 360px;
  overflow-y: auto;
  position: relative;
  border: 2px solid var(--line);
}

.prompt-box::-webkit-scrollbar { width: 8px; }
.prompt-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.prompt-box::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* Buttons */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  box-shadow: 3px 3px 0 var(--line);
  text-decoration: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red-deep);
  box-shadow: 3px 3px 0 var(--red-deep);
}

.btn-primary:hover { box-shadow: 5px 5px 0 var(--red-deep); }
.btn-primary:active { box-shadow: 1px 1px 0 var(--red-deep); }

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(20,20,31,0.05);
  transform: none;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 3px 3px 0 var(--line) !important;
}

.btn svg { width: 16px; height: 16px; }

/* Copy button special pulse */
.btn-copy {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  position: relative;
}

.btn-copy:hover { box-shadow: 5px 5px 0 var(--ink); }

.btn-copy::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 4px;
  background: var(--gold);
  z-index: -1;
  animation: pulseRing 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

.btn-copy.copied {
  background: var(--green);
  color: var(--paper);
}

.btn-copy.copied::before { display: none; }

/* Guide arrow shown after copy */
.guide-arrow {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--green);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  animation: slideInLeft 0.4s ease-out;
}

.guide-arrow.show { display: flex; }

.guide-arrow .arrow-icon {
  animation: bounceRight 1.2s ease-in-out infinite;
  font-size: 22px;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.guide-arrow span { font-weight: 600; font-size: 14px; }

.guide-arrow .llm-pills {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.llm-pill {
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

/* Tutorial overlay */
.instructions {
  background: var(--paper);
  border: 2px dashed var(--ink);
  padding: 20px 24px;
  border-radius: 4px;
  margin-top: 24px;
  position: relative;
}

.instructions h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions ol {
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.instructions ol li { margin-bottom: 6px; }

.instructions ol li strong { color: var(--ink); }

/* Hand-drawn arrow doodle */
.doodle-arrow {
  position: absolute;
  pointer-events: none;
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

/* ========== STEP 5: VISUALIZATION ========== */
.viz-container { display: none; margin-top: 32px; }
.viz-container.show { display: block; }

.summary-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 36px;
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--red);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 14;
}

.score-circle .ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-max {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.summary-info h3 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 700;
}

.summary-info .student-tag {
  display: inline-block;
  font-size: 12px;
  background: var(--gold);
  color: var(--ink);
  padding: 4px 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  border-radius: 2px;
}

.summary-info p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.55;
  font-style: italic;
}

/* Question cards */
.questions-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.questions-section h3::before {
  content: "";
  width: 28px;
  height: 4px;
  background: var(--red);
}

.q-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--line);
  animation: stepIn 0.5s ease-out backwards;
}

.q-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.q-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--red);
}

.q-title { flex: 1; }

.q-title h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.q-title .q-answer {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

.q-score {
  text-align: right;
  flex-shrink: 0;
}

.q-score-num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}

.q-score-max {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.q-bar {
  height: 8px;
  background: rgba(20,20,31,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.q-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 99px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.q-bar-fill.high { background: linear-gradient(90deg, var(--green), #5BB67E); }
.q-bar-fill.mid { background: linear-gradient(90deg, var(--gold), var(--orange)); }
.q-bar-fill.low { background: linear-gradient(90deg, var(--red), var(--red-deep)); }

.q-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.crit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.crit-chip strong {
  font-weight: 700;
  color: var(--red);
}

.q-feedback {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 12px 14px;
  background: var(--bg);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
}

.q-feedback::before {
  content: "✎ ";
  color: var(--red);
  font-weight: 700;
}

/* Strengths / improvements */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.insight-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 4px 4px 0 var(--line);
}

.insight-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-card.strengths h4 { color: var(--green); }
.insight-card.improvements h4 { color: var(--red); }

.insight-card ul { padding-left: 22px; }
.insight-card li {
  font-size: 14.5px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Error box */
.error-box {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #FFE5E5;
  border: 2px solid var(--red);
  border-radius: 4px;
  color: var(--red-deep);
  font-size: 14px;
}

.error-box.show { display: block; }

/* Footer */
footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 720px) {
  .step-header { flex-direction: column; gap: 0; }
  .step-number { font-size: 64px; }
  .step-title { font-size: 28px; }
  .summary-card { grid-template-columns: 1fr; text-align: center; }
  .insights-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .step-label { display: none; }
}

/* Print-only blocks (hidden on screen, revealed in @media print) */
.print-only { display: none; }

/* ========== PRINT STYLES ========== */
@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
  }

  html, body {
    background: white !important;
    color: black !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body::before { display: none !important; }

  .container {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  /* Hide all non-report UI */
  header,
  .hero,
  .progress,
  .step-header,
  .btn-row,
  .guide-arrow,
  .instructions,
  .error-box,
  #jsonInputCard,
  footer,
  .step:not(.active) {
    display: none !important;
  }

  /* Reveal print-only blocks */
  .print-only { display: block !important; }

  /* Strip animations, shadows, and tilt */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .step.active { display: block !important; }
  .steps-wrap { min-height: 0; }

  /* Print header */
  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid black;
    padding-bottom: 8px;
    margin-bottom: 18px;
  }
  .print-header .ph-brand {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .print-header .ph-date {
    font-size: 12px;
    color: #333;
    font-weight: 500;
  }

  /* Summary card → clean B/W */
  .viz-container {
    display: block !important;
    margin-top: 0;
  }
  .summary-card {
    background: white !important;
    color: black !important;
    border: 1.5px solid black;
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 18px;
    grid-template-columns: auto 1fr;
    gap: 24px;
    page-break-inside: avoid;
    text-align: left;
  }
  .score-circle { width: 130px; height: 130px; }
  .score-circle .ring-bg { stroke: #ddd; }
  .score-circle .ring-fill { stroke: black !important; }
  .score-num { font-size: 42px; color: black !important; }
  .score-max { color: #555 !important; opacity: 1; }
  .summary-info h3 {
    font-size: 22px;
    color: black !important;
    margin-bottom: 6px;
  }
  .summary-info p {
    color: black !important;
    opacity: 1;
    font-style: normal;
    font-size: 13px;
  }
  .summary-info .student-tag {
    background: white !important;
    color: black !important;
    border: 1px solid black;
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Questions */
  .questions-section h3 {
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
    page-break-after: avoid;
  }
  .questions-section h3::before { background: black; }

  .q-card {
    background: white !important;
    border: 1px solid black;
    margin-bottom: 10px;
    padding: 14px 16px;
    page-break-inside: avoid;
  }
  .q-num { color: black !important; font-size: 24px; }
  .q-title h4 { font-size: 14px; }
  .q-title .q-answer {
    font-size: 11px;
    color: #444 !important;
    font-style: normal;
  }
  .q-score-num { font-size: 18px; }
  .q-score-max { color: #555 !important; }
  .q-bar { background: #eee; height: 5px; margin-bottom: 10px; }
  .q-bar-fill,
  .q-bar-fill.high,
  .q-bar-fill.mid,
  .q-bar-fill.low { background: black !important; }
  .crit-chip {
    background: white !important;
    border: 1px solid #555;
    font-size: 10px;
    padding: 3px 7px;
  }
  .crit-chip strong { color: black !important; }
  .q-feedback {
    background: white !important;
    border-left: 2px solid black;
    color: black !important;
    font-size: 11.5px;
    padding: 8px 10px;
  }
  .q-feedback::before { color: black !important; }

  /* Strengths / improvements */
  .insights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
    page-break-inside: avoid;
  }
  .insight-card {
    background: white !important;
    border: 1px solid black;
    padding: 14px 16px;
  }
  .insight-card h4 {
    font-size: 14px;
    color: black !important;
    margin-bottom: 8px;
  }
  .insight-card li { font-size: 12px; margin-bottom: 4px; }

  /* Signature block */
  .print-signature {
    display: flex !important;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    page-break-inside: avoid;
  }
  .sig-block {
    flex: 1;
    text-align: center;
    font-size: 12px;
  }
  .sig-block .sig-label {
    font-style: italic;
    color: #333;
    margin-bottom: 48px;
  }
  .sig-block .sig-line {
    border-top: 1px solid black;
    width: 75%;
    margin: 0 auto;
  }
  .sig-block .sig-hint {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
  }
}
