:root {
  --navy: #0a1926;
  --paper: #f5f3ed;
  --surface: #fffefb;
  --ink: #172b36;
  --muted: #637078;
  --line: #d9dfdb;
  --gold: #d7b36c;
  --teal: #166457;
  --sans: "DM Sans", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}
/* Keep research controls from restyling the shared music player. */
:where(.topbar, .desk-layout, #evidence-dialog) button,
:where(.topbar, .desk-layout, #evidence-dialog) input,
:where(.topbar, .desk-layout, #evidence-dialog) select,
:where(.topbar, .desk-layout, #evidence-dialog) textarea {
  font: inherit;
}
:where(.topbar, .desk-layout, #evidence-dialog) button,
:where(.topbar, .desk-layout, #evidence-dialog) a,
:where(.topbar, .desk-layout, #evidence-dialog) input,
:where(.topbar, .desk-layout, #evidence-dialog) select,
:where(.topbar, .desk-layout, #evidence-dialog) textarea {
  touch-action: manipulation;
}
:where(.topbar, .desk-layout, #evidence-dialog) button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 9px 14px;
  color: var(--ink);
  font-weight: 600;
}
:where(.topbar, .desk-layout, #evidence-dialog) button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:where(.topbar, .desk-layout, #evidence-dialog) button:hover {
  border-color: var(--teal);
  background: #eef3ed;
}
:where(.topbar, .desk-layout, #evidence-dialog) button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  padding: 13px 21px;
}
:where(.topbar, .desk-layout, #evidence-dialog) button.primary:hover {
  background: #204658;
}
:where(.topbar, .desk-layout, #evidence-dialog) button.outline {
  background: transparent;
}
:where(.topbar, .desk-layout, #evidence-dialog) a {
  color: var(--teal);
  text-underline-offset: 3px;
}
:where(.topbar, .desk-layout, #evidence-dialog) input,
:where(.topbar, .desk-layout, #evidence-dialog) textarea,
:where(.topbar, .desk-layout, #evidence-dialog) select {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd3ce;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  margin-top: 7px;
}
:where(.topbar, .desk-layout, #evidence-dialog) textarea {
  resize: vertical;
}
:where(.topbar, .desk-layout, #evidence-dialog) label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
:where(.topbar, .desk-layout, #evidence-dialog) label small,
.field-note,
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field-note {
  font-size: 13px;
}
.optional {
  margin-left: 4px;
}
:where(.topbar, .desk-layout, #evidence-dialog) h1,
:where(.topbar, .desk-layout, #evidence-dialog) h2,
:where(.topbar, .desk-layout, #evidence-dialog) h3,
:where(.topbar, .desk-layout, #evidence-dialog) p {
  margin-top: 0;
}
:where(.topbar, .desk-layout, #evidence-dialog) h1,
:where(.topbar, .desk-layout, #evidence-dialog) h2,
:where(.topbar, .desk-layout, #evidence-dialog) h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
:where(.topbar, .desk-layout, #evidence-dialog) h1 {
  font-size: clamp(35px, 4vw, 54px);
  margin-bottom: 16px;
}
:where(.topbar, .desk-layout, #evidence-dialog) h2 {
  font-size: 25px;
}
:where(.topbar, .desk-layout, #evidence-dialog) h3 {
  font-size: 19px;
}
:where(.topbar, .desk-layout, #evidence-dialog) p {
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.eyebrow,
.small-label {
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.11em;
}
.eyebrow {
  color: var(--teal);
  margin-bottom: 15px;
}
.topbar {
  height: 76px;
  background: var(--navy);
  color: #dae4e8;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 30px;
  border-bottom: 1px solid #31414d;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--gold);
  line-height: 1.1;
  min-width: 180px;
}
.brand b {
  font: 700 23px var(--display);
  letter-spacing: 0.12em;
}
.brand span {
  color: #a8b5ba;
  font: 9px var(--mono);
  letter-spacing: 0.05em;
}
.topbar-label {
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  color: #859aa5;
}
.topbar nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.topbar nav a {
  font-size: 12px;
  color: #e5eceb;
  text-decoration: none;
}
.desk-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  color: #cdd9dd;
  padding: 34px 20px;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
}
.desk-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 17px var(--display);
  color: #fff;
  margin-bottom: 37px;
}
.mark-grid {
  font-size: 28px;
  color: var(--gold);
}
.desk-mark div > span {
  display: block;
  margin-top: 5px;
  color: #81969f;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
}
.project-label {
  color: #81949d;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.project-title {
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-size: 13px;
}
.save-status {
  color: #8ca79c;
  font-size: 10px;
  margin: 8px 0 28px;
}
.desk-nav {
  display: grid;
  gap: 5px;
}
.desk-nav button {
  border: 0;
  border-radius: 5px;
  text-align: left;
  background: transparent;
  color: #aebdc3;
  font: 500 12px var(--sans);
  padding: 13px 9px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.desk-nav button span {
  font: 10px var(--mono);
  color: #768d98;
}
.desk-nav button b {
  margin-left: auto;
  font: 10px var(--mono);
}
.desk-nav button[aria-current="page"] {
  background: #213644;
  color: #fff;
  border-left: 2px solid var(--gold);
  padding-left: 7px;
}
.desk-nav button[aria-current="page"] span {
  color: var(--gold);
}
.desk-nav button:hover {
  background: #1c3240;
}
.sidebar-bottom {
  margin-top: 65px;
  padding: 22px 9px 0;
  border-top: 1px solid #2e424e;
}
.sidebar-bottom p {
  color: #8ea4ad;
  font: 13px/1.7 var(--display);
}
.sidebar-bottom button {
  display: block;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #aabcc3;
  font-size: 11px;
  font-weight: 400;
}
.sidebar-bottom button:hover {
  color: #fff;
}
#main {
  padding: 25px 5% 0;
  min-width: 0;
}
.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b9d7b;
  margin-right: 9px;
}
.hero {
  position: relative;
  padding: 42px 0 27px;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(44px, 4.5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
.hero h1 span {
  color: var(--teal);
}
.hero p {
  color: var(--muted);
  font-size: 14px;
  max-width: 650px;
}
.hero-stamp {
  position: absolute;
  right: 1%;
  top: 51px;
  transform: rotate(-9deg);
  width: 160px;
  height: 160px;
  border: 1px solid #d0d8cf;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #c6cec4;
  pointer-events: none;
}
.hero-stamp span {
  font: 700 73px/1 var(--display);
  letter-spacing: -0.08em;
}
.hero-stamp small {
  font: 6px var(--mono);
  margin-top: 14px;
  letter-spacing: 0.08em;
}
.search-card,
.form-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  background: var(--surface);
  border-radius: 8px;
  padding: 24px 27px;
  box-shadow: 0 9px 25px #132d3410;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.card-heading h2 {
  font-size: 20px;
  margin: 0;
}
.card-heading .small-label {
  font-size: 8px;
  color: var(--muted);
}
.search-primary {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.search-primary label {
  flex: 1;
}
.search-primary input {
  font-size: 16px;
  height: 52px;
}
.search-primary .primary {
  height: 52px;
  white-space: nowrap;
}
.search-primary .primary span {
  margin-left: 16px;
}
.search-options {
  display: grid;
  grid-template-columns: 1.5fr 1.35fr 0.7fr 0.7fr;
  gap: 15px;
  margin: 19px 0;
}
.search-options input,
.search-options select {
  font-size: 12px;
}
.filters {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.filters summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
.filters summary span {
  float: right;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.source-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.source-option {
  padding: 8px;
  background: #f5f7f3;
  border-radius: 5px;
  font-size: 11px;
}
.source-option label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
}
.source-option input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 3px 0;
  flex: none;
  accent-color: var(--teal);
}
.source-option small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.source-option details {
  margin-left: 23px;
  font-size: 10px;
  color: var(--muted);
}
.source-option summary {
  font-size: 10px;
  font-weight: 400;
}
.search-foot {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.search-foot span {
  font-size: 10px;
  color: var(--muted);
  margin-right: 3px;
}
.search-foot button {
  border-radius: 20px;
  font-size: 10px;
  padding: 4px 9px;
  font-weight: 400;
  background: #f3f5ef;
}
.privacy-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 22px;
}
.start-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
}
.start-cards article {
  border-top: 1px solid #c9d3cb;
  padding-top: 17px;
}
.start-cards span {
  color: var(--teal);
  font: 9px var(--mono);
}
.start-cards h3 {
  font-size: 17px;
  margin: 14px 0 10px;
  letter-spacing: -0.025em;
}
.start-cards p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.desk-footer {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 20px 0 130px;
  color: var(--muted);
  font-size: 9px;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #b6cabc;
  background: #ecf4e9;
  margin: 20px 0;
  color: #244b3b;
  font-size: 13px;
}
.notice.error {
  border-color: #d6ada1;
  background: #fbede6;
  color: #8d3726;
}
.notice button {
  font-size: 11px;
  margin-left: 12px;
}
.page-heading {
  padding: 40px 0 15px;
}
.page-heading p {
  max-width: 800px;
  color: var(--muted);
  font-size: 14px;
}
.form-card {
  margin-bottom: 25px;
  border-top-width: 1px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-card > .primary {
  margin-top: 20px;
}
.action-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.search-progress {
  font: 12px var(--mono);
  color: var(--teal);
  margin-bottom: 14px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 30px 0 20px;
}
.results-heading h2 {
  margin-bottom: 10px;
}
.results-heading p {
  font-size: 11px;
  margin: 0;
}
.source-statuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.source-status {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  background: #fdfdf8;
  font-size: 11px;
}
.source-status strong {
  display: block;
}
.source-status .badge {
  margin: 6px 0;
}
.source-status p {
  font-size: 11px;
  margin: 6px 0;
  color: var(--muted);
}
.source-status button,
.source-status a {
  font-size: 10px;
  margin: 7px 5px 0 0;
  padding: 4px 8px;
}
.source-status a {
  display: inline-block;
}
.badge {
  display: inline-block;
  border-radius: 3px;
  padding: 2px 6px;
  font: 9px/1.6 var(--mono);
  letter-spacing: 0.015em;
  background: #e9edeb;
  color: #45605c;
}
.badge.success {
  background: #e2efdf;
  color: #2e653b;
}
.badge.unavailable,
.badge.cancelled {
  background: #f8e6de;
  color: #8a3d26;
}
.badge.not_connected,
.badge.skipped {
  background: #f3ebd5;
  color: #776224;
}
.badge.loading {
  background: #dfedf2;
  color: #2d6276;
}
.results-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
.results-toolbar label {
  flex: 1;
  max-width: 350px;
}
.results-toolbar > span {
  font: 10px var(--mono);
  color: var(--muted);
  margin-left: auto;
  margin-bottom: 12px;
}
.result-list {
  display: grid;
  gap: 12px;
}
.result-card,
.evidence-card,
.supplier-card,
.engagement-card {
  padding: 23px 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.result-card h3,
.evidence-card h3 {
  font-size: 19px;
  margin: 7px 0 5px;
}
.company {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
}
.result-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
  white-space: pre-line;
}
.result-top button {
  flex: none;
  font-size: 11px;
  white-space: nowrap;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  margin: 15px 0;
}
.facts > div {
  font-size: 12px;
}
.facts dt {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 1px 0 0;
}
.result-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}
.result-bottom a {
  font-size: 11px;
  font-weight: 600;
}
.result-card details,
.evidence-card details {
  font-size: 11px;
  color: var(--muted);
}
.result-card summary,
.evidence-card summary {
  cursor: pointer;
}
.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.pagination button {
  font-size: 11px;
}
.empty-state {
  padding: 48px 25px;
  text-align: center;
  border: 1px dashed #bbc9be;
  border-radius: 7px;
  background: #f9faf4;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  font-size: 23px;
}
.empty-state p {
  font-size: 13px;
  max-width: 600px;
  margin: 12px auto;
}
.evidence-card,
.supplier-card,
.engagement-card {
  margin-bottom: 18px;
}
.evidence-card textarea {
  font-size: 13px;
}
.evidence-card .form-grid {
  margin-top: 17px;
}
.danger-link {
  border: 0;
  background: none;
  color: #8d4b3a;
  font-size: 11px;
  padding: 0;
}
.supplier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.supplier-heading h3 {
  margin-bottom: 6px;
}
.supplier-heading small {
  font: 10px var(--mono);
  color: var(--muted);
}
.supplier-heading a {
  font-size: 11px;
}
.supplier-card .form-grid {
  margin-top: 18px;
}
.prompt-guide {
  border: 1px solid var(--line);
  background: #ebf0e8;
  padding: 17px 20px;
  margin: 0 0 24px;
  border-radius: 5px;
  font-size: 13px;
}
.prompt-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.prompt-guide li {
  margin: 9px 0;
}
.engagement-card p {
  font-size: 13px;
  white-space: pre-line;
}
.engagement-meta {
  font: 10px var(--mono);
  color: var(--teal);
  margin-bottom: 8px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.library-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.library-card h3 {
  font-size: 20px;
  margin: 15px 0 12px;
}
.library-card p {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.library-card a {
  font-size: 12px;
  font-weight: 600;
}
.library-card .small-label {
  font-size: 9px;
  color: var(--teal);
}
.library-card .access {
  font: 9px var(--mono);
  color: #79663e;
  margin-bottom: 12px;
}
.library-tip {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 25px;
}
.library-tip button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  text-decoration: underline;
}
.readiness {
  border-left: 3px solid var(--gold);
  background: #eeecdf;
  padding: 15px 20px;
  font-size: 12px;
  margin-bottom: 25px;
}
.readiness strong {
  display: block;
  margin-bottom: 5px;
}
.readiness ul {
  margin: 8px 0;
  padding-left: 18px;
}
#evidence-dialog {
  max-width: 650px;
  width: calc(100% - 36px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
}
#evidence-dialog::backdrop {
  background: #061723aa;
}
#evidence-dialog label {
  margin-bottom: 16px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading button {
  border: 0;
  font-size: 24px;
  padding: 0 8px;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: #fff;
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
:where(.topbar, .desk-layout, #evidence-dialog) button:focus-visible,
:where(.topbar, .desk-layout, #evidence-dialog) a:focus-visible,
:where(.topbar, .desk-layout, #evidence-dialog) input:focus-visible,
:where(.topbar, .desk-layout, #evidence-dialog) select:focus-visible,
:where(.topbar, .desk-layout, #evidence-dialog) textarea:focus-visible,
:where(.topbar, .desk-layout, #evidence-dialog) summary:focus-visible {
  outline: 3px solid #b58532;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#report-preview {
  background: white;
  padding: 40px;
  border: 1px solid var(--line);
  margin-top: 25px;
}
#report-preview h2 {
  font-size: 22px;
  margin: 30px 0 15px;
}
#report-preview p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#report-preview h1 {
  font-size: 30px;
}
.print-button {
  margin: 0 0 20px;
}
@media (min-width: 1500px) {
  main {
    padding-left: 7%;
    padding-right: 7%;
  }
  .hero-stamp {
    right: 5%;
  }
  .hero {
    padding-top: 55px;
  }
  .hero h1 {
    font-size: 72px;
  }
  .sidebar {
    padding-top: 45px;
  }
}
@media (max-width: 1150px) {
  .desk-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 14px;
  }
  .hero-stamp {
    display: none;
  }
  .search-options {
    grid-template-columns: 1fr 1fr;
  }
  .source-choices,
  .source-statuses {
    grid-template-columns: 1fr 1fr;
  }
  .card-heading .small-label {
    display: none;
  }
  .topbar-label {
    display: none;
  }
  .start-cards {
    gap: 15px;
  }
  .start-cards h3 {
    font-size: 16px;
  }
  main {
    padding: 22px 4% 0;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .brand {
    min-width: 0;
  }
  .topbar nav {
    gap: 14px;
  }
  .topbar nav a {
    font-size: 10px;
  }
  .desk-layout {
    display: block;
  }
  .sidebar {
    min-height: 0;
    padding: 15px 17px;
    display: block;
  }
  .desk-mark,
  .project-label,
  .project-title,
  .save-status {
    display: none;
  }
  .desk-nav {
    display: flex;
    overflow: auto;
    gap: 7px;
    padding-bottom: 3px;
  }
  .desk-nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 8px 10px;
    flex: none;
  }
  .desk-nav button span {
    display: none;
  }
  .desk-nav button[aria-current="page"] {
    padding-left: 10px;
    border: 0;
    border-bottom: 2px solid var(--gold);
  }
  .sidebar-bottom {
    margin: 8px 0 0;
    padding: 8px 0 0;
    display: flex;
    gap: 18px;
  }
  .sidebar-bottom p {
    display: none;
  }
  .sidebar-bottom button {
    font-size: 10px;
  }
  main {
    padding: 20px 20px 0;
  }
  .workspace-top {
    font-size: 8px;
    gap: 10px;
  }
  .hero {
    padding-top: 30px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero p {
    font-size: 13px;
  }
  .desktop-break {
    display: none;
  }
  .search-card,
  .form-card {
    padding: 20px 18px;
  }
  .search-primary {
    flex-wrap: wrap;
  }
  .search-primary label {
    flex-basis: 100%;
  }
  .search-primary .primary {
    flex: 1;
  }
  .search-options {
    gap: 12px;
  }
  .search-foot {
    gap: 7px;
  }
  .search-foot span {
    flex-basis: 100%;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .source-choices {
    grid-template-columns: 1fr;
  }
  .start-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .start-cards article {
    padding: 17px 0 0;
  }
  .start-cards p {
    margin-bottom: 6px;
  }
  .results-heading {
    display: block;
  }
  .results-heading button {
    margin-top: 14px;
  }
  .results-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .results-toolbar label {
    min-width: 140px;
  }
  .source-statuses {
    grid-template-columns: 1fr 1fr;
  }
  .source-status {
    padding: 10px;
  }
  .result-card,
  .evidence-card,
  .supplier-card,
  .engagement-card {
    padding: 18px;
  }
  .result-card .result-top {
    display: block;
  }
  .result-card .result-top button {
    margin-top: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    padding-top: 28px;
  }
  .desk-footer {
    display: block;
    padding-bottom: 110px;
  }
  .desk-footer span {
    display: block;
    margin-bottom: 6px;
  }
  .action-bar button {
    font-size: 12px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .supplier-heading {
    display: block;
  }
  .supplier-heading a {
    display: inline-block;
    margin-top: 10px;
  }
  #report-preview {
    padding: 20px;
  }
}
@media print {
  body {
    background: white;
    font-size: 11pt;
  }
  .topbar,
  .sidebar,
  .workspace-top,
  .desk-footer,
  .page-heading,
  .action-bar,
  .form-card,
  .readiness,
  .field-note,
  .notice,
  #cfm-float,
  #cfm-home,
  .print-button {
    display: none !important;
  }
  .desk-layout {
    display: block;
  }
  main {
    padding: 0;
  }
  section[data-panel] {
    display: none !important;
  }
  section[data-panel="report"] {
    display: block !important;
  }
  #report-preview {
    display: block !important;
    padding: 0;
    border: 0;
  }
  #report-preview h1 {
    font-size: 22pt;
  }
  #report-preview h2 {
    break-after: avoid;
    font-size: 14pt;
  }
  #report-preview p {
    font-size: 10pt;
    line-height: 1.45;
  }
  a {
    color: #000;
  }
}

.desk-nav {
  scrollbar-width: thin;
  scrollbar-color: #476171 #102832;
}

/* Product comparison stays inside the workspace. */
.product-editor {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.product-editor > summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
}
.product-editor .form-card {
  border: 0;
  margin: 0;
}
#product-unit-price {
  display: block;
  margin-top: 7px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 5px;
  background: #eef3ed;
  color: var(--teal);
  font-size: 14px;
}
.comparison-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.product-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 12px;
}
.product-table caption {
  text-align: left;
  padding: 15px;
  font-weight: 600;
  background: #e9efe8;
}
.product-table th,
.product-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.product-table thead th {
  background: var(--navy);
  color: white;
  font: 11px var(--mono);
  letter-spacing: 0.04em;
}
.product-table th[scope="row"] {
  min-width: 220px;
  max-width: 260px;
  font-weight: 400;
}
.product-table th[scope="row"] a {
  display: block;
  margin: 8px 0;
  font-weight: 600;
}
.product-table td {
  min-width: 145px;
  max-width: 270px;
}
.product-table p {
  margin: 8px 0;
  white-space: pre-wrap;
}
.product-table small {
  color: var(--muted);
}
.product-table details p {
  min-width: 200px;
}
.product-table td:last-child {
  min-width: 90px;
}
.product-table td button {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.product-table tbody tr:nth-child(even) {
  background: #f6f7f2;
}

.product-table td small {
  display: block;
  margin-top: 8px;
}
