body {
  background: #f7f7fb;
}

.pdf-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 18px;
}

.pdf-hero-card {
  display: block;
  border: 1px solid #e6e8f0;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.09), rgba(255, 255, 255, 0) 30%),
    linear-gradient(115deg, rgba(244, 232, 255, 0.58), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  box-shadow: 0 18px 42px rgba(41, 44, 61, 0.07);
  overflow: hidden;
  padding: 42px 48px;
  position: relative;
  text-align: center;
}

.pdf-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 90, 79, 0.08), transparent 28%),
    radial-gradient(circle at 88% 88%, rgba(168, 85, 247, 0.1), transparent 32%);
  pointer-events: none;
}

.pdf-hero-copy,
.pdf-hero-visual {
  position: relative;
  z-index: 1;
}

.pdf-hero-copy h1 {
  max-width: 840px;
  margin: 0 auto;
  color: #2c2f3d;
  font-size: 56px;
  line-height: 1.02;
}

.pdf-hero-copy p:not(.eyebrow) {
  max-width: 850px;
  margin-inline: auto;
  color: #555b6d;
  font-size: 17px;
  line-height: 1.6;
}

.hero-subtitle {
  margin-top: 20px;
}

.hero-feature-panel {
  max-width: 980px;
  margin: 28px auto 0;
  border: 1px solid #e2e7f0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 34px rgba(41, 44, 61, 0.06);
  padding: 18px;
  text-align: left;
}

.hero-feature-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 0 2px 14px;
  border-bottom: 1px solid #edf1f7;
}

.hero-feature-intro span {
  border-radius: 999px;
  background: #fff0ed;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-feature-intro strong {
  color: #252938;
  font-size: 18px;
  line-height: 1.25;
}

.hero-feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hero-feature-list li {
  position: relative;
  min-height: 128px;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 253, 0.95));
  padding: 15px 14px 14px;
}

.hero-feature-list li::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a4f, #f59e0b);
}

.hero-feature-list li:nth-child(2)::before {
  background: linear-gradient(90deg, #0074c8, #14b8a6);
}

.hero-feature-list li:nth-child(3)::before {
  background: linear-gradient(90deg, #f59e0b, #22c55e);
}

.hero-feature-list li:nth-child(4)::before {
  background: linear-gradient(90deg, #22c55e, #0074c8);
}

.hero-feature-list strong {
  display: block;
  color: #252938;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.hero-feature-list span {
  display: block;
  margin-top: 7px;
  color: #596174;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.hero-support-copy {
  max-width: 900px;
  margin-top: 20px;
  color: #687082;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
}

.pdf-hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.paper-card {
  min-height: 215px;
  border: 1px solid #e1e4ed;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(41, 44, 61, 0.1);
  padding: 22px;
}

.paper-card span {
  display: inline-flex;
  border-radius: 999px;
  background: #ffefec;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 950;
  padding: 6px 10px;
}

.paper-card strong {
  display: block;
  margin-top: 20px;
  color: #2c2f3d;
  font-size: 22px;
  line-height: 1.15;
}

.paper-card i {
  display: block;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #e7eaf2;
}

.paper-card i:nth-of-type(2) {
  width: 80%;
}

.paper-card i:nth-of-type(3) {
  width: 62%;
}

.paper-dark {
  background: linear-gradient(145deg, #2c2f3d 0%, #242733 100%);
  color: #ffffff;
}

.paper-dark span {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.paper-dark strong {
  color: #ffffff;
}

.paper-dark i {
  background: rgba(255, 255, 255, 0.22);
}

.flow-dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff5a4f;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(255, 90, 79, 0.25);
}

.extractor-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 34px;
}

.upload-panel,
.results-panel,
.pdf-seo-card,
.pdf-faq-section {
  border: 1px solid #dfe3ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(41, 44, 61, 0.06);
}

.upload-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
}

.drop-zone {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  border: 2px dashed #d8deea;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.08), rgba(255, 255, 255, 0) 34%),
    #fbfcff;
  padding: 34px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.drop-zone.is-dragging {
  border-color: #ff5a4f;
  box-shadow: 0 16px 32px rgba(255, 90, 79, 0.12);
  transform: translateY(-1px);
}

.drop-zone input {
  display: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(255, 90, 79, 0.24);
}

.drop-zone h2 {
  margin: 0;
  color: #2c2f3d;
  font-size: 28px;
}

.drop-zone p {
  max-width: 650px;
  margin: 0;
  color: #62687a;
  line-height: 1.55;
}

.drop-zone small,
.status-line {
  color: #656b7d;
  font-weight: 750;
}

#file-status {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: min(100%, 760px);
  min-width: 0;
  line-height: 1.4;
}

.file-status-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.file-status-size {
  color: #7a8192;
  font-size: 0.92em;
  white-space: nowrap;
}

.primary-action,
.secondary-action,
.export-toolbar button,
.reference-row button,
.match-card button,
.detail-actions button,
.download-mini {
  border: 1px solid #dce1ec;
  border-radius: 999px;
  background: #ffffff;
  color: #2c2f3d;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
}

.panel-actions {
  align-items: center;
  flex-wrap: wrap;
}

.primary-action {
  border-color: #1f222f;
  background: #ff5a4f;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 90, 79, 0.18);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.manual-fallback {
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  padding: 14px 16px;
}

.manual-fallback summary {
  color: #2c2f3d;
  cursor: pointer;
  font-weight: 950;
}

.manual-fallback label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #2c2f3d;
  font-size: 13px;
  font-weight: 900;
}

.manual-fallback textarea,
.output-grid textarea,
.reference-detail textarea,
.reference-detail input,
.reference-detail select {
  width: 100%;
  min-height: 140px;
  border: 1px solid #d9deea;
  border-radius: 12px;
  background: #f8f9fc;
  color: #2c2f3d;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 8px 0 0;
  padding: 18px 4px 6px;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8ead8, #dce4ef);
}

.pipeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #697184;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.pipeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #d9e0eb;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(41, 44, 61, 0.08);
  color: #7b8496;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pipeline-label {
  max-width: 108px;
}

.pipeline-step.is-active {
  color: #d9352b;
}

.pipeline-step.is-active .pipeline-marker {
  border-color: #ff958c;
  background: #ff5a4f;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(255, 90, 79, 0.22);
}

.pipeline-step.is-done {
  color: #067a46;
}

.pipeline-step.is-done .pipeline-marker {
  border-color: #9fe4c0;
  background: #16a34a;
  color: #ffffff;
  font-size: 0;
}

.pipeline-step.is-done .pipeline-marker::before {
  content: "✓";
  display: block;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-0.5px);
}

.pipeline-step.is-error {
  color: #b42318;
}

.pipeline-step.is-error .pipeline-marker {
  border-color: #ffaaa3;
  background: #fff1f0;
  color: #b42318;
  box-shadow: 0 10px 20px rgba(180, 35, 24, 0.13);
}

.results-panel {
  display: grid;
  gap: 14px;
  isolation: isolate;
  margin-top: 28px;
  padding: 22px;
}

.panel-heading,
.reference-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.reference-list-header h3,
.quality-block h3,
.report-grid h3,
.reference-detail h3 {
  margin: 0;
  color: #2c2f3d;
}

.panel-heading h2 {
  max-width: 380px;
  font-size: 26px;
  line-height: 1.08;
}

.panel-actions,
.export-toolbar,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: end;
  gap: 12px;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  background: #fbfcff;
  padding: 10px;
}

.review-command-bar .panel-actions {
  align-items: center;
}

.review-command-bar .secondary-action {
  min-height: 38px;
  padding: 8px 13px;
}

.metadata-action {
  border-color: #bdddf8;
  background: #eff8ff;
  color: #175f99;
}

.matching-action {
  border-color: #b9ebd0;
  background: #f0fdf4;
  color: #08764a;
}

.report-copy-action {
  border-color: #ddcdf8;
  background: #f7f2ff;
  color: #6941a5;
}

.metadata-action:hover,
.metadata-action:focus-visible {
  border-color: #7bb8e8;
  background: #e2f2ff;
}

.matching-action:hover,
.matching-action:focus-visible {
  border-color: #78d7a4;
  background: #e5faee;
}

.report-copy-action:hover,
.report-copy-action:focus-visible {
  border-color: #b99ae8;
  background: #efe5ff;
}

.review-menu-wrap {
  display: grid;
  gap: 4px;
  position: relative;
  min-width: 230px;
}

.review-menu-label {
  color: #667085;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-menu {
  position: relative;
  z-index: 8;
}

.review-menu[open] {
  z-index: 12;
}

.review-menu summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #ffffff;
  color: #2c2f3d;
  cursor: pointer;
  list-style: none;
  padding: 7px 11px 7px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.review-menu summary:hover,
.review-menu summary:focus-visible,
.review-menu[open] summary {
  border-color: #9fb2d2;
  background: #fbfdff;
  box-shadow: 0 0 0 3px rgba(68, 108, 174, 0.1);
  outline: none;
}

.review-menu-summary-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.review-menu-summary-copy strong,
.review-menu-summary-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-menu-summary-copy strong {
  color: #252a3a;
  font-size: 12px;
  line-height: 1.2;
}

.review-menu-summary-copy small {
  color: #778095;
  font-size: 10px;
  font-weight: 700;
}

.review-menu-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #475467;
  border-bottom: 2px solid #475467;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.review-menu[open] .review-menu-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.review-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 40px));
  max-height: min(520px, 70vh);
  overflow-y: auto;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(35, 45, 72, 0.16);
  padding: 6px;
}

.review-menu-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2c2f3d;
  cursor: pointer;
  font: inherit;
  padding: 8px 9px;
  text-align: left;
}

.review-menu-list button:hover,
.review-menu-list button:focus-visible,
.review-menu-list button.is-active {
  background: #f4f7fb;
  outline: none;
}

.review-menu-list button.is-active {
  box-shadow: inset 3px 0 0 #3478c9;
}

.review-menu-list button > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-menu-list button strong {
  color: #293042;
  font-size: 12px;
  line-height: 1.25;
}

.review-menu-list button small {
  color: #717b8f;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.review-menu-icon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4488d2;
  box-shadow: 0 0 0 4px #edf5ff;
}

.review-menu-icon[data-tone="ready"] {
  background: #16a36a;
  box-shadow: 0 0 0 4px #e8f8ef;
}

.review-menu-icon[data-tone="review"] {
  background: #d28a16;
  box-shadow: 0 0 0 4px #fff6dc;
}

.review-menu-icon[data-tone="unresolved"] {
  background: #e5483d;
  box-shadow: 0 0 0 4px #fff0ee;
}

.review-menu-icon[data-tone="identifier"] {
  background: #7c5ac7;
  box-shadow: 0 0 0 4px #f2edff;
}

.review-menu-icon[data-tone="conflict"] {
  background: #d45d48;
  box-shadow: 0 0 0 4px #fff0eb;
}

.review-menu-icon[data-tone="duplicate"] {
  background: #687386;
  box-shadow: 0 0 0 4px #eef1f5;
}

.review-menu-count,
.review-option-count {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  min-height: 25px;
  border-radius: 999px;
  background: #edf4fc;
  color: #245e9c;
  font-size: 10px;
  font-weight: 950;
}

.review-menu summary:has(.review-menu-count) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

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

.score-card {
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
}

.score-card strong {
  display: block;
  color: #2c2f3d;
  font-size: 21px;
  line-height: 1;
}

.score-card span {
  color: #656b7d;
  font-size: 11px;
  font-weight: 850;
}

.score-card:nth-child(1) {
  border-color: #cfe0ff;
  background: #f7fbff;
}

.score-card:nth-child(2) {
  border-color: #d6dff1;
  background: #f8fafc;
}

.score-card:nth-child(3) {
  border-color: #d8cfff;
  background: #fbf9ff;
}

.score-card:nth-child(4) {
  border-color: #b9ebd0;
  background: #f0fdf4;
}

.score-card:nth-child(5) {
  border-color: #f6d48a;
  background: #fffbeb;
}

.score-card:nth-child(6) {
  border-color: #ffbbb5;
  background: #fff5f4;
}

.score-card:nth-child(4) strong { color: #067a46; }
.score-card:nth-child(5) strong { color: #92400e; }
.score-card:nth-child(6) strong { color: #b42318; }

.quality-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dcefe5;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 252, 245, 0.95), rgba(255, 255, 255, 0.9));
  padding: 15px;
}

.quality-block p {
  margin: 6px 0 0;
  color: #536070;
  font-size: 13px;
  line-height: 1.45;
}

.quality-gauge {
  display: grid;
  place-items: center;
  min-width: 100px;
  min-height: 74px;
  border: 2px solid #c5edd8;
  border-radius: 14px;
  background: #f0fdf4;
  color: #067a46;
  font-weight: 950;
  padding: 12px;
  text-align: center;
}

.quality-gauge span {
  font-size: 15px;
  line-height: 1.15;
}

.quality-gauge small {
  color: #637083;
  font-size: 11px;
  font-weight: 900;
  margin-top: 4px;
  text-transform: uppercase;
}

.quality-gauge span[data-status="review"] {
  color: #92400e;
}

.quality-gauge:has(span[data-status="review"]) {
  border-color: #f6d48a;
  background: #fffbeb;
}

.quality-gauge span[data-status="unresolved"] {
  color: #b42318;
}

.quality-gauge:has(span[data-status="unresolved"]) {
  border-color: #ffbbb5;
  background: #fff5f4;
}

.report-details,
.export-preview {
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  padding: 12px 14px;
}

.report-details summary,
.export-preview summary {
  align-items: center;
  cursor: pointer;
  color: #2c2f3d;
  font-weight: 950;
}

.report-details {
  background: #ffffff;
  padding: 0;
  overflow: hidden;
}

.report-details summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  list-style: none;
}

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

.report-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.report-summary-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}

.report-details[open] .report-summary-title::before {
  transform: rotate(45deg) translateY(-2px);
}

.report-summary-hint {
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.report-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.report-summary-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #dde4ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.report-summary-metrics strong {
  color: #2c2f3d;
  font-size: 12px;
}

.report-summary-metrics span[data-tone="good"] {
  border-color: #bfe9d2;
  background: #f0fdf4;
  color: #047857;
}

.report-summary-metrics span[data-tone="warn"] {
  border-color: #f6d48a;
  background: #fffbeb;
  color: #92400e;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
  grid-template-areas:
    "identifiers official"
    "warnings official"
    "integrity official"
    "sources sources";
  gap: 12px;
  align-items: start;
  border-top: 1px solid #edf1f7;
  padding: 14px;
}

.report-card {
  border: 1px solid #e5e8f0;
  border-radius: 14px;
  background: #fbfcff;
  padding: 12px;
}

.report-card h3 {
  font-size: 15px;
}

.report-card-identifiers {
  grid-area: identifiers;
}

.report-card-warnings {
  grid-area: warnings;
}

.report-card-official {
  grid-area: official;
}

.report-card-identifiers,
.report-card-integrity {
  background: linear-gradient(135deg, #fbfcff, #ffffff);
}

.report-card-sources {
  grid-area: sources;
}

.report-card-integrity {
  grid-area: integrity;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-list span,
.status-pill {
  border: 1px solid #d9efe5;
  border-radius: 999px;
  background: #effcf5;
  color: #08764a;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.official-reference-report {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
}

.official-status {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #f8fafc;
  color: #4d5668;
  padding: 10px 12px;
  min-width: 0;
}

.official-status[data-tone="good"] {
  border-color: #bfe9d2;
  background: #f0fdf4;
  color: #047857;
}

.official-status[data-tone="warn"] {
  border-color: #f6d48a;
  background: #fffbeb;
  color: #92400e;
}

.official-status strong,
.official-status span,
.official-source-list strong,
.official-source-list span,
.official-ledger strong,
.official-ledger span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.official-status strong {
  color: #252938;
  font-size: 14px;
}

.official-status span {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.official-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.official-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #dde4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.official-metrics strong {
  color: #2c2f3d;
  font-size: 12px;
}

.official-metrics span[data-tone="good"] {
  border-color: #bfe9d2;
  background: #f0fdf4;
  color: #047857;
}

.official-metrics span[data-tone="warn"] {
  border-color: #f6d48a;
  background: #fffbeb;
  color: #92400e;
}

.official-id-tags {
  margin-top: 0;
}

.official-source-list,
.official-ledger ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.official-source-list li,
.official-ledger li {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  background: #f4f6fa;
  color: #5a6071;
  font-size: 12px;
  padding: 8px 10px;
  min-width: 0;
}

.official-ledger h4 {
  margin: 2px 0 7px;
  color: #252938;
  font-size: 13px;
}

.status-pill[data-status="review"],
.tag-list span.is-warning {
  border-color: #f7dfae;
  background: #fff8e8;
  color: #9a6517;
}

.status-pill[data-status="unresolved"],
.tag-list span.is-danger {
  border-color: #ffd0ca;
  background: #fff0ed;
  color: #d3322b;
}

.warning-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.warning-list li {
  border-left: 3px solid #d8dee9;
  border-radius: 9px;
  background: #f7f8fb;
  color: #5a6071;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10px;
}

.source-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(84px, 0.7fr) minmax(80px, 0.62fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-radius: 10px;
  background: #f4f6fa;
  color: #5a6071;
  font-size: 12px;
  padding: 8px 10px;
}

.source-row[data-status="used"] {
  background: #effcf5;
  color: #08764a;
}

.source-row[data-status="checked"] {
  background: #f7f9fd;
  color: #4d5668;
}

.source-row[data-status="failed"] {
  background: #fff8e8;
  color: #8b5e16;
}

.export-toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #ead7d4;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.10), rgba(255, 255, 255, 0) 32%),
    linear-gradient(120deg, rgba(255, 245, 242, 0.9), rgba(255, 255, 255, 0) 74%),
    #ffffff;
  border-radius: 14px;
  margin: 8px 0 0;
  padding: 14px;
}

.export-toolbar-copy {
  min-width: 0;
}

.export-toolbar-copy h3 {
  margin: 0;
  color: #242937;
  font-size: 16px;
  line-height: 1.2;
}

.export-toolbar-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 5px 0 0;
  color: #5d6678;
  font-size: 12px;
  line-height: 1.45;
}

#export-status[data-tone="success"] {
  color: #047857;
}

#export-status[data-tone="warning"] {
  color: #92400e;
}

#export-status[data-tone="error"] {
  color: #b42318;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  isolation: isolate;
  min-width: max-content;
}

.export-menu {
  position: relative;
}

.export-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #d8deea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(41, 44, 61, 0.06);
  color: #242937;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  list-style: none;
  padding: 0 16px;
  user-select: none;
}

.export-menu:first-child summary {
  border-color: #ffb0aa;
  background: #ff5a4f;
  color: #ffffff;
}

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

.export-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.export-menu[open] summary {
  box-shadow: 0 14px 28px rgba(41, 44, 61, 0.12);
}

.export-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  display: grid;
  gap: 7px;
  width: 270px;
  max-width: min(270px, 82vw);
  max-height: min(520px, calc(100vh - 180px));
  overflow-y: auto;
  margin-top: 0;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgba(36, 41, 55, 0.16);
  padding: 8px;
}

.export-toolbar[data-clean-export="blocked"] .export-menu-list::before {
  content: "Clean export is blocked. Use the audit report to see what cannot be verified.";
  display: block;
  border-radius: 10px;
  background: #fff7ed;
  color: #92400e;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  padding: 9px 10px;
}

.export-menu:first-child .export-menu-list {
  left: auto;
  right: 0;
}

.export-menu-list button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2c2f3d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
  text-align: left;
}

.export-menu-list button[data-blocked="true"] {
  background: #f8fafc;
  color: #8c95a6;
  cursor: pointer;
}

.export-menu-list button[data-blocked="true"]::after {
  content: "Clean export blocked";
  display: block;
  margin-top: 2px;
  color: #b45309;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.export-menu-list button[data-copy="audit"],
.export-menu-list button[data-download="audit"] {
  background: #fff3f1;
  color: #b42318;
}

.export-menu-list button:hover,
.export-menu-list button:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.export-menu-list button[data-blocked="true"]:hover,
.export-menu-list button[data-blocked="true"]:focus-visible {
  background: #fff7ed;
  color: #92400e;
}

.reference-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.reference-list-wrap,
.reference-detail {
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.reference-list-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.reference-filter-wrap {
  justify-self: end;
  width: min(250px, 100%);
}

.copy-confirmation {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: min(360px, calc(100vw - 32px));
  border: 1px solid #c9b3ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f6f0ff);
  box-shadow: 0 20px 48px rgba(62, 40, 102, 0.22);
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-confirmation[hidden] {
  display: none;
}

.copy-confirmation.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.copy-confirmation-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6f42c1;
  box-shadow: 0 0 0 6px #ece3fb;
}

.copy-confirmation-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 9px;
  height: 15px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
}

.copy-confirmation-copy {
  display: grid;
  gap: 2px;
}

.copy-confirmation-copy strong {
  color: #302144;
  font-size: 14px;
}

.copy-confirmation-copy small {
  color: #6f6480;
  font-size: 11px;
  font-weight: 700;
}

.copy-confirmation-signal {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 24px;
}

.copy-confirmation-signal i {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8e63d2, #5f36a5);
}

.copy-confirmation-signal i:nth-child(1) {
  height: 9px;
}

.copy-confirmation-signal i:nth-child(2) {
  height: 16px;
}

.copy-confirmation-signal i:nth-child(3) {
  height: 23px;
}

.reference-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.reference-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #fbfcff;
  padding: 12px;
}

.reference-row.is-selected {
  border-color: #ff9d96;
  box-shadow: 0 10px 20px rgba(255, 90, 79, 0.08);
}

.reference-row input[type="checkbox"] {
  margin-top: 4px;
}

.reference-row strong {
  display: block;
  color: #2c2f3d;
  line-height: 1.35;
}

.paper-order {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf7ff;
  color: #1168a8;
  font-size: 11px;
  font-weight: 950;
  margin-right: 6px;
  padding: 3px 7px;
  vertical-align: 1px;
}

.reference-row p {
  margin: 6px 0 0;
  color: #62687a;
  font-size: 13px;
  line-height: 1.45;
}

.reference-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reference-row-meta > span {
  border-radius: 999px;
  background: #eef1f7;
  color: #596173;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.reference-detail {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.status-explanation {
  display: grid;
  gap: 12px;
  border: 1px solid #e5e8f0;
  border-radius: 14px;
  background: #fbfcff;
  padding: 12px;
}

.status-explanation[data-status="ready"] {
  border-color: #b9ebd0;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.status-explanation[data-status="review"] {
  border-color: #f6d48a;
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.status-explanation[data-status="unresolved"] {
  border-color: #ffbbb5;
  background: linear-gradient(135deg, #fff5f4, #ffffff);
}

.status-explanation-header {
  display: grid;
  gap: 6px;
}

.status-explanation-header span {
  width: fit-content;
  border-radius: 999px;
  background: #eef1f7;
  color: #384154;
  font-size: 11px;
  font-weight: 950;
  padding: 6px 9px;
}

.status-explanation[data-status="ready"] .status-explanation-header span {
  background: #dcfce7;
  color: #166534;
}

.status-explanation[data-status="review"] .status-explanation-header span {
  background: #fef3c7;
  color: #92400e;
}

.status-explanation[data-status="unresolved"] .status-explanation-header span {
  background: #fee2e2;
  color: #b42318;
}

.status-explanation-header p {
  margin: 0;
  color: #4f5668;
  font-size: 13px;
  line-height: 1.45;
}

.status-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-check-grid li {
  display: grid;
  gap: 4px;
  border: 1px solid #e7eaf1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
}

.status-check-grid li[data-state="good"] {
  border-color: #ccebd9;
  background: #f2fcf6;
}

.status-check-grid li[data-state="warn"] {
  border-color: #f8d99b;
  background: #fffaf0;
}

.status-check-grid li[data-state="bad"] {
  border-color: #ffc8c3;
  background: #fff7f6;
}

.status-check-grid span {
  color: #697184;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-check-grid strong {
  color: #2c2f3d;
  font-size: 12px;
  line-height: 1.35;
}

.status-reason-block {
  display: grid;
  gap: 7px;
  border-top: 1px solid #e5e8f0;
  padding-top: 10px;
}

.status-reason-block > strong {
  color: #2c2f3d;
  font-size: 12px;
  font-weight: 950;
}

.status-reason-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.status-reason-block li {
  color: #555d70;
  font-size: 12px;
  line-height: 1.45;
}

.reference-detail label {
  display: grid;
  gap: 7px;
  color: #2c2f3d;
  font-size: 12px;
  font-weight: 900;
}

.reference-detail textarea {
  min-height: 110px;
}

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

.reference-detail input,
.reference-detail select {
  min-height: 0;
}

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

.match-card {
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  background: #fbfcff;
  padding: 10px;
}

.match-card strong {
  display: block;
  color: #2c2f3d;
  font-size: 13px;
  line-height: 1.35;
}

.match-card span {
  display: block;
  margin-top: 5px;
  color: #62687a;
  font-size: 12px;
  line-height: 1.45;
}

.match-card small {
  display: block;
  margin-top: 6px;
  color: #3f6f5b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}

.reference-intelligence {
  display: grid;
  gap: 10px;
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 252, 245, 0.75), rgba(255, 255, 255, 0.88));
  padding: 12px;
}

.reference-intelligence > strong {
  color: #2c2f3d;
  font-size: 13px;
}

.reference-intelligence details {
  border-top: 1px solid #e5e8f0;
  padding-top: 8px;
}

.reference-intelligence summary {
  cursor: pointer;
  color: #2c2f3d;
  font-size: 12px;
  font-weight: 950;
}

.reference-intelligence ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.reference-intelligence li {
  color: #5d6476;
  font-size: 12px;
  line-height: 1.45;
}

.mini-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-pill-grid span {
  border: 1px solid #cbead9;
  border-radius: 999px;
  background: #f3fcf7;
  color: #08764a;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}

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

.output-grid label {
  display: grid;
  gap: 8px;
  color: #2c2f3d;
  font-size: 12px;
  font-weight: 900;
}

.output-grid textarea {
  min-height: 190px;
  resize: vertical;
}

.pdf-seo-section,
.pdf-faq-section {
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 0 24px;
}

.pdf-seo-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  background:
    radial-gradient(circle at 92% 12%, rgba(25, 185, 119, 0.14), transparent 30%),
    radial-gradient(circle at 4% 12%, rgba(255, 90, 79, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 90, 79, 0.06), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.seo-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 32px;
  align-items: center;
}

.seo-copy {
  position: relative;
  z-index: 1;
}

.pdf-seo-card h2,
.pdf-faq-section h2 {
  max-width: 760px;
  margin: 0;
  color: #2c2f3d;
  font-size: 38px;
  line-height: 1.08;
}

.pdf-seo-card p {
  max-width: 920px;
  color: #62687a;
  font-size: 17px;
  line-height: 1.7;
}

.seo-visual-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 260px;
  border: 1px solid #e3e7ef;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.12), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 88% 82%, rgba(25, 185, 119, 0.18), transparent 32%),
    #fbfcff;
  box-shadow: 0 18px 42px rgba(44, 47, 61, 0.08);
}

.seo-mini-paper,
.seo-export-card {
  min-height: 178px;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(44, 47, 61, 0.1);
}

.seo-mini-paper {
  border: 1px solid #e3e7ef;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-2deg);
}

.seo-export-card {
  background: #2c2f3d;
  color: #ffffff;
  transform: rotate(2deg);
}

.seo-mini-paper span,
.seo-export-card span {
  display: inline-block;
  border-radius: 999px;
  color: #ef3f38;
  background: rgba(255, 90, 79, 0.12);
  font-size: 12px;
  font-weight: 950;
  padding: 5px 10px;
}

.seo-export-card span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.seo-mini-paper strong,
.seo-export-card strong {
  display: block;
  margin-top: 18px;
  color: inherit;
  font-size: 22px;
  line-height: 1.12;
}

.seo-mini-paper i,
.seo-export-card i {
  display: block;
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e4e8f0;
}

.seo-export-card i {
  background: rgba(255, 255, 255, 0.24);
}

.seo-mini-paper i:nth-of-type(2),
.seo-export-card i:nth-of-type(2) {
  width: 74%;
}

.seo-mini-paper i:nth-of-type(3) {
  width: 52%;
}

.seo-flow-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(255, 90, 79, 0.24);
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.seo-feature-grid article {
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: rgba(251, 252, 255, 0.88);
  padding: 18px;
}

.seo-feature-grid .seo-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.seo-feature-grid strong {
  display: block;
  color: #2c2f3d;
  font-size: 18px;
}

.seo-feature-grid span {
  display: block;
  margin-top: 8px;
  color: #62687a;
  line-height: 1.55;
}

.seo-workflow-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e3e7ef;
  border-radius: 18px;
  background: #e3e7ef;
}

.seo-workflow-band div {
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.seo-workflow-band strong {
  display: block;
  color: #2c2f3d;
  font-size: 16px;
  font-weight: 950;
}

.seo-workflow-band span {
  display: block;
  margin-top: 6px;
  color: #62687a;
  line-height: 1.55;
}

.citation-query-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.citation-query-strip span {
  border: 1px solid #dfe2eb;
  border-radius: 999px;
  background: rgba(248, 249, 252, 0.82);
  color: #343746;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.seo-deep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.seo-deep-grid article {
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: #ffffff;
  padding: 20px;
}

.seo-deep-grid h3 {
  margin: 0;
  color: #2c2f3d;
  font-size: 18px;
  line-height: 1.25;
}

.seo-deep-grid p {
  margin: 10px 0 0;
  color: #62687a;
  font-size: 14px;
  line-height: 1.65;
}

.seo-link-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.seo-link-band a {
  border: 1px solid #dfe2eb;
  border-radius: 14px;
  background: #fbfcff;
  color: #2c2f3d;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
  padding: 15px;
}

.pdf-faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 92, 82, 0.13), rgba(255, 255, 255, 0.84) 34%, rgba(189, 168, 255, 0.18)),
    #ffffff;
}

.pdf-faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 92, 82, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.10), transparent 34%);
  opacity: 0.72;
}

.pdf-faq-section > * {
  position: relative;
}

.faq-intro-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  border: 1px solid rgba(224, 228, 238, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(42, 49, 70, 0.08);
  padding: 24px;
}

.faq-intro-panel p:not(.eyebrow) {
  color: #5c6377;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.faq-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-keyword-cloud span {
  border: 1px solid rgba(255, 92, 82, 0.20);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4f2, #f4f0ff);
  color: #9f2d28;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 9px 11px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid #e0e5ef;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.97)),
    #fbfcff;
  box-shadow: 0 10px 28px rgba(36, 41, 55, 0.06);
  padding: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.faq-list details:hover {
  border-color: #cbd5e8;
  box-shadow: 0 14px 34px rgba(36, 41, 55, 0.09);
  transform: translateY(-1px);
}

.faq-list details[open] {
  border-color: rgba(255, 92, 82, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 246, 244, 0.96), rgba(255, 255, 255, 0.98) 52%, rgba(246, 242, 255, 0.98)),
    #ffffff;
}

.faq-list details:nth-child(3n + 2)[open] {
  border-color: rgba(20, 184, 166, 0.36);
}

.faq-list details:nth-child(3n + 3)[open] {
  border-color: rgba(245, 158, 11, 0.36);
}

.faq-list summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #2c2f3d;
  font-weight: 950;
  list-style: none;
  padding: 17px 18px;
}

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

.faq-list summary::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5c52, #8b5cf6);
  box-shadow: 0 0 0 6px rgba(255, 92, 82, 0.10);
}

.faq-list details:nth-child(3n + 2) summary::before {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.10);
}

.faq-list details:nth-child(3n + 3) summary::before {
  background: linear-gradient(135deg, #f59e0b, #ff5c52);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.11);
}

.faq-list p {
  color: #62687a;
  line-height: 1.6;
  margin: 0;
  padding: 0 18px 18px 40px;
}

.faq-list strong {
  color: #2c2f3d;
}

@media (max-width: 920px) {
  .pdf-hero-card,
  .reference-workbench,
  .output-grid,
  .pdf-faq-section {
    grid-template-columns: 1fr;
  }

  .pdf-hero-copy h1 {
    font-size: 44px;
  }

  .hero-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scorecard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-command-bar {
    grid-template-columns: 1fr;
  }

  .review-menu-wrap {
    max-width: 360px;
  }

  .report-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identifiers"
      "official"
      "warnings"
      "integrity"
      "sources";
  }

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

  .report-summary-metrics {
    justify-content: flex-start;
  }

  .source-report {
    grid-template-columns: 1fr;
  }

  .export-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .export-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .pipeline,
  .seo-intro-grid,
  .seo-workflow-band,
  .seo-deep-grid,
  .seo-link-band {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .pipeline::before {
    display: none;
  }

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

  .seo-visual-panel {
    max-width: 560px;
    margin-inline: auto;
  }

  .reference-detail {
    position: static;
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 620px) {
  .pdf-hero,
  .extractor-shell,
  .pdf-seo-section,
  .pdf-faq-section {
    padding-inline: 14px;
  }

  .pdf-hero-card,
  .upload-panel,
  .results-panel,
  .pdf-seo-card,
  .pdf-faq-section {
    border-radius: 18px;
    padding: 22px;
  }

  .pdf-hero-copy h1,
  .pdf-seo-card h2,
  .pdf-faq-section h2 {
    font-size: 34px;
  }

  .hero-feature-panel {
    padding: 14px;
  }

  .hero-feature-intro,
  .hero-feature-list {
    grid-template-columns: 1fr;
  }

  .hero-feature-intro span {
    justify-self: start;
    white-space: normal;
  }

  .hero-feature-list li {
    min-height: 0;
  }

  .seo-feature-grid,
  .pdf-hero-visual,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .seo-visual-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .seo-mini-paper,
  .seo-export-card {
    transform: none;
  }

  .seo-flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .flow-dot {
    justify-self: center;
  }

  .paper-card {
    min-height: 160px;
  }

  .quality-block,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .review-command-bar .secondary-action,
  .review-menu-wrap {
    width: 100%;
  }

  .reference-filter-wrap {
    justify-self: stretch;
    width: 100%;
  }

  .review-menu-list {
    right: auto;
    left: 0;
  }

  .copy-confirmation {
    right: 16px;
    bottom: 16px;
  }

  .source-row {
    grid-template-columns: 1fr;
  }
}
