:root {
  --purple: #8E44AD;
  --deep-purple: #6C3483;
  --pink: #E91E63;
  --indigo: #3F51B5;
  --green: #27AE60;
  --ink: #1C2833;
  --muted: #34495E;
  --shell: rgba(236, 240, 241, 0.94);
  --panel: rgba(250, 251, 252, 0.95);
  --border: rgba(52, 73, 94, 0.18);
  --shadow: 0 18px 46px rgba(28, 40, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: #edf0f4 url("https://dcciportal.co.uk/wp-content/uploads/2026/02/Picture1.png") center top / cover no-repeat;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--deep-purple);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(142, 68, 173, 0.45);
  outline-offset: 3px;
}

.dcci-page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

.dcci-app-header {
  text-align: center;
  margin: 0 auto 22px;
  padding: 8px 12px 0;
}

.dcci-app-logo {
  width: min(280px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--deep-purple);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.dcci-app-shell {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.dcci-app-shell::before,
.completion-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--purple), var(--pink), var(--indigo), var(--green));
}

.progress-bar {
  height: 9px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(108, 52, 131, 0.14);
}

.progress-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--indigo), var(--green));
  transition: width 220ms ease;
}

.step-status {
  margin-bottom: 18px;
  color: var(--deep-purple);
  font-weight: 700;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.getting-started-row {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(240px, 30fr);
  gap: 20px;
  align-items: stretch;
}

.how-to-card,
.source-card,
.choice-block,
.match-card,
.scenario-card,
.hero-frame,
.completion-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.how-to-card,
.source-card,
.scenario-card,
.completion-card {
  padding: 22px;
}

.how-to-card ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.how-to-card li + li {
  margin-top: 8px;
}

.helper-note {
  padding: 12px 14px;
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  background: rgba(142, 68, 173, 0.1);
  color: var(--muted);
}

.hero-frame {
  min-height: 300px;
  margin: 0;
  overflow: hidden;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.source-card {
  margin-top: 18px;
}

h2 {
  color: var(--deep-purple);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  color: var(--deep-purple);
  font-size: 1.12rem;
}

.source-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.source-card li + li {
  margin-top: 8px;
}

.source-link {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-weight: 700;
}

.resource-links-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.instruction {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.03rem;
}

.choice-block {
  margin: 22px 0 0;
  padding: 18px;
}

.choice-block.compact {
  margin-top: 18px;
}

legend {
  padding: 0 4px;
  color: var(--deep-purple);
  font-weight: 700;
}

label {
  color: var(--ink);
}

.choice-block label {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--purple);
}

.matching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.match-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

select,
textarea {
  width: 100%;
  border: 1px solid rgba(52, 73, 94, 0.25);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

select {
  min-height: 46px;
  padding: 9px 12px;
}

textarea {
  display: block;
  min-height: 120px;
  margin: 8px 0 18px;
  padding: 14px;
  resize: vertical;
}

.scenario-card {
  margin: 18px 0 8px;
}

.text-response {
  display: block;
  margin-top: 18px;
  color: var(--deep-purple);
  font-weight: 700;
}

.activity-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

button {
  min-width: 118px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--deep-purple));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(108, 52, 131, 0.24);
}

button:hover {
  filter: brightness(1.04);
}

button.secondary {
  border: 1px solid rgba(108, 52, 131, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-purple);
  box-shadow: none;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.completion-card {
  position: relative;
  margin-top: 22px;
}

.completion-card dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.completion-card dt {
  color: var(--deep-purple);
  font-weight: 700;
}

.completion-card dd {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .dcci-page {
    width: min(100% - 18px, 1120px);
    padding-top: 18px;
  }

  .dcci-app-shell {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .getting-started-row,
  .matching-grid {
    grid-template-columns: 1fr;
  }

  .activity-nav {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}

/* Targeted repair: keep the hero image smaller, fully visible, centred, and rounded. */
.hero-frame {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.hero-frame img {
  width: 50%;
  max-width: 220px;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: 16px;
}

.resource-links-card {
  margin-top: 20px;
  padding: 22px;
}

.resource-links-card .source-link {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.score-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 10px 0 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(142, 68, 173, 0.12);
  color: var(--deep-purple);
  font-weight: 800;
}

.feedback-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feedback-section {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(108, 52, 131, 0.16);
}

.feedback-section h4 {
  margin: 0 0 10px;
  color: var(--deep-purple);
}

.feedback-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(108, 52, 131, 0.14);
}

.feedback-row:first-of-type {
  border-top: 0;
}

.feedback-row strong {
  color: var(--ink);
}

.feedback-row span {
  color: var(--muted);
}

.feedback-status {
  font-weight: 800;
  color: var(--deep-purple);
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.certificate-panel {
  margin-top: 22px;
}

.certificate-inner,
.print-summary {
  border: 1px solid rgba(108, 52, 131, 0.22);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

.certificate-kicker {
  margin: 0 0 8px;
  color: var(--purple);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.certificate-inner dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.certificate-inner dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.certificate-inner dt {
  color: var(--deep-purple);
  font-weight: 800;
}

.certificate-inner dd {
  margin: 0;
}

.print-summary {
  max-width: 760px;
  margin: 24px auto;
}

.print-logo {
  display: block;
  width: 115px;
  height: auto;
  margin: 0 0 18px;
}

.print-summary dl {
  display: grid;
  gap: 8px;
}

.print-summary dt {
  color: var(--deep-purple);
  font-weight: 800;
}

.print-summary dd {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(108, 52, 131, 0.14);
}

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

  body.print-summary-mode .dcci-app-header,
  body.print-summary-mode .dcci-app-shell,
  body.print-certificate-mode .dcci-app-header,
  body.print-certificate-mode .dcci-app-shell,
  body.print-certificate-mode .print-summary {
    display: none !important;
  }

  body.print-summary-mode .print-summary,
  body.print-certificate-mode #certificatePanel {
    display: block !important;
  }

  body.print-summary-mode,
  body.print-certificate-mode {
    background: #fff !important;
  }

  .print-summary,
  .certificate-inner {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .print-logo {
    width: 95px;
  }

  .completion-actions,
  #printCertificateButton {
    display: none !important;
  }
}

/* Final targeted layout repair: keep the hero inside its card and render resource links as separate pill buttons. */
.step-panel.active .getting-started-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.step-panel.active .hero-frame {
  min-height: 0 !important;
  height: auto !important;
  max-width: 190px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

.step-panel.active .hero-frame img {
  display: block !important;
  width: 100% !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 180px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  border-radius: 16px !important;
}

.resource-links-card .resource-pill-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.resource-links-card a.resource-pill {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(108, 52, 131, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--deep-purple) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(45, 21, 64, 0.08) !important;
}

.resource-links-card a.resource-pill:hover,
.resource-links-card a.resource-pill:focus-visible {
  background: rgba(248, 238, 253, 0.96) !important;
  outline: 3px solid rgba(142, 68, 173, 0.28) !important;
  outline-offset: 2px !important;
}

@media (max-width: 560px) {
  .step-panel.active .getting-started-row {
    grid-template-columns: 1fr !important;
  }

  .step-panel.active .hero-frame {
    max-width: 220px !important;
    justify-self: center !important;
  }
}

/* SAGE final repair 2026-06-06: hero, pills, certificate template, and print modes. */
.dcci-app-shell::before,
.completion-card::before {
  width: 4px !important;
  border-radius: 22px 0 0 22px !important;
}

.step-panel.active .getting-started-row,
.getting-started-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.hero-frame,
.step-panel.active .hero-frame {
  justify-self: stretch !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 260px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.5) !important;
  box-sizing: border-box !important;
}

.hero-frame img,
.step-panel.active .hero-frame img {
  display: block !important;
  width: 100% !important;
  max-width: 315px !important;
  height: auto !important;
  max-height: 255px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.resource-links-card {
  margin-top: 22px !important;
  padding: 22px !important;
}

.resource-pill-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.resource-pill-button,
.resource-links-card .resource-pill-button,
.resource-links-card a.resource-pill-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(108, 52, 131, 0.3) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--deep-purple) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(45, 21, 64, 0.1) !important;
}

.resource-pill-button:hover,
.resource-pill-button:focus-visible {
  background: rgba(248, 238, 253, 0.98) !important;
}

.feedback-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feedback-section {
  padding: 16px;
  border: 1px solid rgba(108, 52, 131, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
}

.feedback-section h4 {
  margin: 0 0 12px;
  color: var(--deep-purple);
}

.feedback-row {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid rgba(108, 52, 131, 0.12);
}

.feedback-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.print-summary {
  max-width: 760px;
  margin: 24px auto;
  padding: 26px;
  border: 1px solid rgba(108, 52, 131, 0.18);
  border-radius: 18px;
  background: #fff;
}

.print-logo {
  width: 96px !important;
  max-width: 96px !important;
  height: auto !important;
  margin: 0 0 14px 0 !important;
}

.print-certificate {
  max-width: 900px;
  margin: 24px auto;
}

.cert-template {
  border: 1px solid rgba(52, 73, 94, 0.24);
  border-radius: 18px;
  background: #fafafa;
  padding: 32px;
  box-shadow: 0 14px 34px rgba(28, 40, 51, 0.12);
}

.cert-template-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.cert-template-logo {
  width: 120px;
  max-width: 38%;
  height: auto;
}

.cert-template-badge {
  width: 96px;
  max-width: 28%;
  height: auto;
}

.cert-rainbow {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b3fa0 0%, #e91e63 25%, #1e3a8a 50%, #059669 100%);
}

.cert-template-body {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: center;
}

.cert-template .certificate-kicker {
  margin: 0 0 10px;
  color: #6b3fa0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-number,
.cert-small,
.cert-org,
.cert-copy {
  color: #4b5563;
}

.cert-number {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.cert-template h3 {
  margin: 12px 0 6px;
  color: #6b3fa0;
  font-size: 2rem;
  font-weight: 600;
}

.cert-activity {
  color: #6b3fa0;
  font-size: 1.2rem;
  font-weight: 700;
}

.cert-stats {
  display: grid !important;
  gap: 10px !important;
  max-width: 520px;
  margin: 22px auto !important;
  text-align: left;
}

.cert-stats div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.cert-stats dt {
  color: #6b3fa0;
  font-weight: 800;
}

.cert-stats dd {
  margin: 0;
  color: #4b5563;
}

.cert-rainbow-short {
  width: 180px;
  margin: 28px auto 12px;
}

.cert-signature {
  display: grid;
  gap: 5px;
  color: #4b5563;
  font-size: 0.8rem;
}

.cert-signature strong {
  color: #6b3fa0;
  font-size: 1rem;
}

.cert-copy {
  margin: 28px 0 0;
  text-align: right;
  font-size: 0.72rem;
}

.cert-template #printCertificateButton {
  display: block;
  margin: 22px auto 0;
}

@media (max-width: 760px) {
  .step-panel.active .getting-started-row,
  .getting-started-row {
    grid-template-columns: 1fr !important;
  }

  .hero-frame,
  .step-panel.active .hero-frame {
    min-height: 240px !important;
  }

  .hero-frame img,
  .step-panel.active .hero-frame img {
    max-width: min(100%, 360px) !important;
    max-height: 280px !important;
  }

  .resource-pill-button,
  .resource-links-card .resource-pill-button,
  .resource-links-card a.resource-pill-button {
    width: 100% !important;
    text-align: center !important;
  }
}

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

  body.print-summary-mode .dcci-app-header,
  body.print-summary-mode .dcci-app-shell,
  body.print-summary-mode .print-certificate,
  body.print-certificate-mode .dcci-app-header,
  body.print-certificate-mode .dcci-app-shell,
  body.print-certificate-mode .print-summary {
    display: none !important;
  }

  body.print-summary-mode .print-summary,
  body.print-certificate-mode .print-certificate {
    display: block !important;
  }

  body.print-summary-mode,
  body.print-certificate-mode {
    background: #fff !important;
  }

  body.print-summary-mode .print-logo {
    width: 82px !important;
    max-width: 82px !important;
  }

  body.print-certificate-mode .cert-template {
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    padding: 24px !important;
  }

  body.print-certificate-mode .print-certificate {
    max-width: none !important;
    margin: 0 !important;
  }

  body.print-certificate-mode #printCertificateButton,
  body.print-summary-mode .completion-actions {
    display: none !important;
  }
}

/* Final visual override after browser check. */
.hero-frame,
.step-panel.active .hero-frame {
  align-self: center !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1.25 / 1 !important;
  max-height: 300px !important;
}

.hero-frame img,
.step-panel.active .hero-frame img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 16px !important;
}

/* Final functional patch: formatted selectable feedback and robust print/certificate template controls. */
.feedback-panel,
#printSummaryFeedback {
  display: grid !important;
  gap: 18px !important;
  margin-top: 20px !important;
}

.feedback-heading-card {
  padding: 18px 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.10), rgba(5, 150, 105, 0.08)) !important;
  border: 1px solid rgba(107, 63, 160, 0.18) !important;
}

.feedback-heading-card h4 {
  margin: 0 0 6px !important;
  color: #4b1f7a !important;
  font-size: 1rem !important;
}

.feedback-heading-card p {
  margin: 0 !important;
  color: #374151 !important;
  font-size: 0.92rem !important;
}

.feedback-section,
#printSummaryFeedback .feedback-section {
  padding: 18px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(107, 63, 160, 0.16) !important;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08) !important;
}

.feedback-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #6b3fa0, #e91e63, #1e3a8a, #059669) 1 !important;
}

.feedback-section-header h4 {
  margin: 0 !important;
  color: #4b1f7a !important;
  font-size: 1rem !important;
}

.feedback-section-score {
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  color: #fff !important;
  background: #6b3fa0 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
}

.feedback-card {
  display: grid !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}

.feedback-card.is-correct {
  background: rgba(5, 150, 105, 0.08) !important;
  border-color: rgba(5, 150, 105, 0.28) !important;
}

.feedback-card.needs-review {
  background: rgba(233, 30, 99, 0.07) !important;
  border-color: rgba(233, 30, 99, 0.25) !important;
}

.feedback-card-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.feedback-card-title strong {
  color: #111827 !important;
  font-size: 0.94rem !important;
}

.feedback-status {
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  color: #fff !important;
  background: #6b3fa0 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
}

.feedback-card.is-correct .feedback-status {
  background: #059669 !important;
}

.feedback-card.needs-review .feedback-status {
  background: #e91e63 !important;
}

.feedback-answer {
  margin: 0 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

.feedback-answer span {
  display: inline-block !important;
  min-width: 116px !important;
  color: #4b1f7a !important;
  font-weight: 800 !important;
}

.print-summary {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 28px !important;
  background: #fff !important;
  border-radius: 20px !important;
}

.print-logo {
  display: block !important;
  width: 96px !important;
  max-width: 96px !important;
  height: auto !important;
  margin: 0 0 18px !important;
}

.print-summary h2 {
  color: #4b1f7a !important;
  margin: 0 0 10px !important;
}

@media print {
  body.print-summary-mode .print-summary,
  body.print-certificate-mode .print-certificate {
    display: block !important;
    visibility: visible !important;
  }

  body.print-summary-mode .print-logo {
    width: 84px !important;
    max-width: 84px !important;
  }

  body.print-summary-mode .feedback-panel,
  body.print-summary-mode #printSummaryFeedback {
    gap: 10px !important;
  }

  body.print-summary-mode .feedback-heading-card,
  body.print-summary-mode .feedback-section,
  body.print-summary-mode .feedback-card {
    break-inside: avoid !important;
    box-shadow: none !important;
  }
}
