:root {
  --pgs-navy: #10243b;
  --pgs-blue: #4398e8;
  --pgs-button: #84aecb;
  --pgs-border: #dde4ec;
  --pgs-panel: #fafafa;
  --pgs-muted: #8e939b;
  --pgs-text: #343434;
}

.pgs-home {
  min-height: calc(100vh - 82px);
  padding: 76px 24px 90px;
  display: grid;
  place-items: start center;
  background: #fff;
}

.pgs-home-inner {
  width: min(1220px, 92vw);
  text-align: center;
}

.pgs-home h1 {
  margin: 0 0 26px;
  color: #333;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 400;
}

.pgs-home p {
  max-width: 1080px;
  margin: 0 auto 44px;
  color: #363636;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.75;
}

.pgs-home-primary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.pgs-home-primary button,
.pgs-quick-manual {
  min-width: 235px;
  padding: 14px 24px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: #83abc8;
  box-shadow: none;
  font: inherit;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}

.pgs-home-primary button:hover,
.pgs-quick-manual:hover { background: #6698bb; }

.pgs-home-modules {
  margin: 48px auto 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pgs-home-modules button {
  min-height: 126px;
  padding: 22px 18px;
  display: grid;
  align-content: center;
  gap: 9px;
  color: #39495a;
  border: 1px solid #dbe2e8;
  border-radius: 2px;
  background: #fafafa;
  cursor: pointer;
}

.pgs-home-modules button:hover { border-color: #8eb3ce; background: #f3f8fb; }
.pgs-home-modules b { font-size: 20px; font-weight: 500; }
.pgs-home-modules span { color: #7a8189; font-size: 13px; line-height: 1.45; }
.pgs-quick-manual { display: inline-block; min-width: 180px; }

.workflow-page-head { display: none; }
body:not(.workflow-open) .workspace { display: none; }
body.workflow-open .pgs-home { display: none; }
body.workflow-open .workspace { display: block; }
body.workflow-open .workspace > .section-title { display: none; }

body.workflow-open .workbench {
  border: 0;
  background: #fff;
}

body.workflow-open .workflow-page-head {
  padding: 24px 0 4px;
  display: block;
  text-align: center;
}

.workflow-page-head h1 {
  margin: 0;
  color: #333;
  font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 400;
  line-height: 1.2;
}

.workflow-page-head > p {
  max-width: 860px;
  margin: 13px auto 30px;
  color: #777;
  font-size: 14px;
  line-height: 1.55;
}

.workflow-stepper {
  width: min(760px, 78%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: start;
}

.workflow-stepper button {
  padding: 0;
  display: grid;
  grid-template-columns: 40px auto;
  align-items: center;
  gap: 10px;
  color: #bec3c9;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.workflow-stepper button:last-child { text-align: right; }
.workflow-stepper button:last-child span { justify-items: end; }
.workflow-stepper i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #aeb5bc;
  border: 2px solid #c8cdd2;
  border-radius: 50%;
  background: #fff;
  font-style: normal;
  font-size: 18px;
}
.workflow-stepper button span { display: grid; gap: 2px; font-size: 17px; font-weight: 600; }
.workflow-stepper button small { color: #aeb4ba; font-size: 11px; font-weight: 400; }
.workflow-stepper button.is-active { color: #343434; }
.workflow-stepper button.is-active i { color: #333; border-color: #333; }
.workflow-stepper button.is-active small { color: #6f747a; }
.workflow-step-line { height: 2px; margin-top: 18px; background: #c9ced3; }

.demo-results-link {
  margin: 0 auto 26px;
  padding: 0;
  color: #368ee1;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.workflow-email {
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  text-align: left;
}
.workflow-email > span { color: #555; font-size: 15px; }
.workflow-email small { color: #999; font-size: 10px; }
.workflow-email input { width: 100%; min-height: 48px; }

body.workflow-open .sidebar { display: none; }
body.workflow-open .stage-panel { padding: 0 0 34px; }
body.workflow-open .stage-panel[data-panel="methods"] > .panel-head { display: none; }
body.workflow-open .workflow-context { display: none; }
body.workflow-open:not(.workflow-step-2) .topic-matrix { display: none; }
body.workflow-open.workflow-step-2 .topic-matrix { display: block; }

body.workflow-open .summary-upload-card {
  margin: 0;
  border-color: #dfe3e7;
  box-shadow: 0 1px 8px rgba(20, 39, 58, 0.05);
}

body.workflow-open .summary-upload-head {
  min-height: 74px;
  padding: 20px 24px;
  align-items: center;
  background: #f7f7f7;
}
body.workflow-open .summary-upload-head h4 { font-size: 21px; font-weight: 400; }
body.workflow-open .summary-upload-head p { max-width: 900px; }

body.workflow-open .summary-file-row {
  padding: 28px 24px 18px;
  grid-template-columns: minmax(145px, 0.75fr) minmax(190px, 0.9fr) minmax(280px, 1.45fr) minmax(150px, 0.72fr) auto;
  align-items: end;
  gap: 14px;
}

body.workflow-open .summary-file-row label {
  min-width: 0;
  color: #3f4144;
  font-size: 15px;
}
body.workflow-open .summary-file-row input,
body.workflow-open .summary-file-row select { width: 100%; min-width: 0; min-height: 46px; }
body.workflow-open .summary-file-picker > span { display: flex; justify-content: space-between; gap: 10px; }
body.workflow-open .summary-file-picker a { color: #368ee1; font-size: 12px; font-weight: 400; }
body.workflow-open #summary-upload-button { min-height: 46px; padding-inline: 22px; }
body.workflow-open .demo-load-button { min-height: 46px; padding-inline: 18px; color: var(--omni-teal); border: 1px solid rgba(23, 107, 87, 0.3); background: #eef7f3; }
body.workflow-open .demo-load-button:hover { background: #e2f1eb; }

.prs-cohort-upload-actions {
  margin: 0 24px 18px;
  padding: 15px 16px;
  display: grid;
  gap: 12px;
  border: 1px solid #cfe5e3;
  border-radius: 13px;
  background: #f1faf8;
}
.prs-cohort-upload-actions[hidden] { display: none !important; }
.prs-cohort-upload-actions > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.prs-cohort-upload-actions strong { color: #175a55; }
.prs-cohort-upload-actions span,
.prs-cohort-upload-actions p,
.prs-cohort-upload-actions small { color: #627a78; font-size: 12px; }
.prs-cohort-upload-actions button {
  padding: 8px 12px;
  color: #087f76;
  border: 1px solid #9ed9d2;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-weight: 650;
}
.prs-cohort-upload-actions button:hover { background: #e4f6f3; }
.prs-cohort-upload-actions details {
  padding-top: 10px;
  border-top: 1px solid #d7e9e7;
}
.prs-cohort-upload-actions summary {
  width: max-content;
  color: #345f5b;
  cursor: pointer;
  font-weight: 700;
}
.prs-cohort-upload-actions details p { margin: 8px 0; }
.prs-cohort-upload-actions details button { margin: 0 6px 4px 0; }

.pgs-upload-note {
  margin: 4px 24px 18px;
  color: #df3434;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

body.workflow-open .column-mapping > summary {
  padding: 18px 24px;
  color: #df3434;
  background: #fff;
  font-size: 15px;
}

body.workflow-open .column-mapping-grid {
  padding: 22px 7.5%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 8%;
}
body.workflow-open .column-mapping-grid label {
  grid-template-columns: minmax(155px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  color: #555;
  font-size: 14px;
}
body.workflow-open .column-mapping-grid em { color: #df3434; font-style: normal; }
body.workflow-open .column-mapping-grid input,
body.workflow-open .column-mapping-grid select { min-height: 43px; }

.workflow-input-actions {
  padding: 26px 0 6px;
  display: flex;
  justify-content: center;
}
.pgs-next-button {
  min-width: 135px;
  padding: 13px 28px;
  color: #fff;
  border: 0;
  border-radius: 3px;
  background: #84aecb;
  font-size: 16px;
  cursor: pointer;
}
.pgs-next-button:hover { background: #6899bb; }

body.workflow-open .workflow-review-title { display: flex; align-items: center; gap: 18px; }
.workflow-review-title button {
  padding: 8px 12px;
  color: #4e7896;
  border: 1px solid #cad9e3;
  background: #f5f9fb;
  cursor: pointer;
}
body.workflow-open #workflow-topic-slot { margin-bottom: 20px; }
body.workflow-open #workflow-topic-slot .topic-card { border-color: #dfe3e7; }
body.workflow-open .runner-settings,
body.workflow-open .server-submit,
body.workflow-open .job-monitor { border-color: #dfe3e7; }

@media (max-width: 1120px) {
  .pgs-home-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workflow-open .summary-file-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workflow-open #summary-upload-button { width: max-content; }
}

@media (max-width: 720px) {
  .pgs-home { padding: 48px 16px 64px; }
  .pgs-home-modules { grid-template-columns: 1fr; }
  .workflow-stepper { width: 94%; }
  .workflow-stepper button { grid-template-columns: 32px auto; gap: 6px; }
  .workflow-stepper i { width: 31px; height: 31px; }
  .workflow-step-line { margin-top: 15px; }
  .workflow-email { grid-template-columns: 1fr; gap: 7px; }
  body.workflow-open .summary-file-row,
  body.workflow-open .column-mapping-grid { grid-template-columns: 1fr; }
  body.workflow-open .column-mapping-grid label { grid-template-columns: 1fr; }
}

.ai-assistant-toggle {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 120;
  min-height: 52px;
  padding: 8px 18px 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: #17324e;
  box-shadow: 0 14px 34px rgba(16, 36, 59, 0.24);
  font: inherit;
  cursor: pointer;
}

.ai-assistant-toggle span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #15314c;
  background: #62d7c5;
  font-size: 12px;
  font-weight: 800;
}

.ai-assistant-toggle:hover { background: #214665; }
body.ai-assistant-open .ai-assistant-toggle { opacity: 0; pointer-events: none; }

.ai-assistant-panel {
  width: min(420px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 130;
  overflow: hidden;
  border: 1px solid #cad8e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 36, 59, 0.28);
}

.ai-assistant-panel[hidden] { display: none; }

.ai-assistant-head {
  min-height: 76px;
  padding: 14px 16px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #17324e, #24566c);
}

.ai-assistant-head span { color: #8be3d5; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.ai-assistant-head h2 { margin: 3px 0 0; font-size: 21px; font-weight: 600; }
.ai-assistant-head button {
  width: 36px;
  height: 36px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.ai-assistant-controls {
  padding: 12px 16px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #e4ebf0;
  background: #f6f9fb;
}
.ai-assistant-controls label { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; font-size: 12px; }
.ai-assistant-controls select { min-height: 34px; border: 1px solid #ccd9e2; border-radius: 6px; background: #fff; }
.ai-assistant-controls .ai-remote-control { grid-template-columns: auto 1fr; color: #526270; }
.ai-assistant-controls p { margin: 0; color: #72808c; font-size: 11px; }

.ai-assistant-messages {
  min-height: 210px;
  max-height: 330px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  background: #fff;
}

.ai-message {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 12px 12px 12px 3px;
  color: #354657;
  background: #eef5f6;
  line-height: 1.5;
}
.ai-message.user { margin-left: auto; border-radius: 12px 12px 3px 12px; color: #fff; background: #285c77; }
.ai-message b { display: block; margin-bottom: 3px; font-size: 11px; }
.ai-message p { margin: 0; white-space: pre-wrap; font-size: 13px; }
.ai-message small { display: block; margin-top: 7px; color: #7a8995; font-size: 9px; word-break: break-word; }
.ai-message.user small { color: #dceaf0; }
.ai-message-sources { margin-top: 9px; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; border-top: 1px solid rgba(74, 107, 119, 0.14); }
.ai-message-sources > span:first-child { width: 100%; color: #607481; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ai-message-sources a,
.ai-message-sources > span:not(:first-child) { padding: 3px 6px; color: #376879; border: 1px solid #c8dfe2; border-radius: 10px; background: #f7fbfb; font-size: 9px; line-height: 1.25; text-decoration: none; }
.ai-message-sources a:hover { border-color: #78bdb5; background: #eef9f7; }
.ai-message.is-loading { animation: ai-pulse 1.2s ease-in-out infinite alternate; }
@keyframes ai-pulse { to { opacity: 0.58; } }

.ai-quick-prompts { padding: 0 16px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-quick-prompts button,
.ai-quick-prompts a {
  padding: 6px 9px;
  color: #356176;
  border: 1px solid #cfe0e5;
  border-radius: 14px;
  background: #f5faf9;
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
}

.ai-assistant-form {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid #e4ebf0;
}
.ai-assistant-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.ai-assistant-form textarea { width: 100%; min-height: 68px; padding: 10px; resize: vertical; border: 1px solid #cbd8e1; border-radius: 8px; font: inherit; font-size: 13px; }
.ai-assistant-form button { min-width: 70px; padding: 0 14px; color: #fff; border: 0; border-radius: 8px; background: #1f786d; cursor: pointer; }
.ai-assistant-form button:disabled { opacity: 0.55; cursor: wait; }
.ai-privacy-note { margin: 0; padding: 0 16px 14px; color: #7b858e; font-size: 9px; line-height: 1.45; }

@media (max-width: 600px) {
  .ai-assistant-toggle { right: 14px; bottom: 14px; }
  .ai-assistant-panel { width: calc(100vw - 20px); max-height: calc(100vh - 20px); right: 10px; bottom: 10px; }
  .ai-assistant-messages { max-height: 38vh; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--pgs-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

body::before { display: none; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 81px;
  padding: 0 28px 0 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  background: #f8f5f5;
  border-bottom: 1px solid var(--pgs-navy);
  box-shadow: none;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #364058;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #27b6ed;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.brand-mark .helix-a { stroke: #243b60; }
.brand-mark .helix-b { stroke: #29b8ee; }
.brand-mark .helix-rungs { stroke: #60738c; stroke-width: 1.4; }

.brand-divider {
  width: 1px;
  height: 48px;
  display: block;
  background: #8a8e96;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy b { color: #364058; font-size: 26px; font-weight: 500; letter-spacing: 0.16em; }
.brand-copy small { margin-top: 7px; color: #9b9da3; font-size: 11px; letter-spacing: 0.55em; }

.topbar nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.35vw, 24px);
  overflow: visible;
  flex-wrap: wrap;
  color: var(--pgs-navy);
  font-size: 15px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.topbar nav a,
.nav-module summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pgs-navy);
  font-weight: 400;
  text-decoration: none;
}

.topbar nav a:hover,
.nav-module summary:hover,
.nav-module[open] > summary { color: var(--pgs-blue); }
.topbar nav span { font-size: 17px; font-weight: 700; }

.nav-module { position: relative; }
.nav-module summary { cursor: pointer; list-style: none; }
.nav-module summary::-webkit-details-marker { display: none; }
.nav-module summary::after { content: "▾"; margin-left: 2px; color: #7b8794; font-size: 9px; }
.nav-module[open] summary::after { content: "▴"; }

.nav-submenu {
  min-width: 205px;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  z-index: 80;
  transform: translateX(-50%);
  border: 1px solid #d4dde6;
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 36, 59, 0.14);
}

.nav-submenu::before {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: -6px;
  left: calc(50% - 5px);
  transform: rotate(45deg);
  border-top: 1px solid #d4dde6;
  border-left: 1px solid #d4dde6;
  background: #fff;
}

.topbar .nav-submenu a {
  min-height: 36px;
  padding: 8px 14px;
  display: flex;
  color: #3e4b5c;
  font-size: 13px;
}
.topbar .nav-submenu a:hover { color: #fff; background: var(--pgs-blue); }

.hero,
.module-ribbon,
.feature-strip,
.generator-section,
.results,
.methods,
.quickstart { display: none !important; }

main { padding-bottom: 28px; scroll-margin-top: 94px; }

.workspace,
.job-search-section,
.resources-section {
  width: min(1560px, 85%);
  max-width: none;
  margin: 0 auto;
  scroll-margin-top: 94px;
}

.workspace {
  padding: 24px 0 34px;
  background: #fff;
}

.section-title {
  max-width: none;
  margin: 0 0 18px;
}

.section-title .eyebrow {
  display: none;
}

.section-title h2 {
  margin: 0 0 6px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.section-title p:not(.eyebrow) {
  max-width: 900px;
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.workbench {
  display: block;
  overflow: visible;
  border: 1px solid var(--pgs-border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.sidebar {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--pgs-border);
  background: #f7f7f7;
}

.stage {
  min-height: 66px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  color: #666;
  border: 0;
  border-right: 1px solid var(--pgs-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.stage:last-child { border-right: 0; }
.stage b { color: #555; font-size: 15px; }
.stage span { color: #8a8f97; font-size: 12px; }
.stage:hover { background: #f1f6fa; }
.stage.is-active { color: #fff; border-color: var(--pgs-blue); background: var(--pgs-blue); box-shadow: none; }
.stage.is-active b, .stage.is-active span { color: #fff; }

.stage-panel { padding: 24px 20px 28px; }

.panel-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-head h3 {
  margin: 0;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.text-button {
  padding: 9px 14px;
  color: #fff;
  border: 0;
  border-radius: 3px;
  background: var(--pgs-button);
  font-weight: 400;
}

.upload-grid,
.analysis-form { gap: 12px 18px; }

.upload-box,
.server-upload,
.runner-settings,
.server-submit,
.job-monitor,
.topic-card,
.engine-group,
.option-grid {
  border: 1px solid var(--pgs-border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.engine-tag {
  margin-left: 5px;
  padding: 2px 5px;
  border: 1px solid #cfd9e2;
  border-radius: 9px;
  color: #68798a;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.engine-tag.builtin { border-color: #9cc9b0; color: #367a51; background: #f1faf5; }

.job-summary {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #d9e5dc;
  border-left: 5px solid #4d9a6a;
  background: #f6fbf8;
}
.job-summary h4 { margin: 0 0 12px; color: #304b3a; }
.job-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.job-summary-grid div { padding: 9px 10px; display: grid; gap: 3px; border: 1px solid #dde9e1; background: #fff; }
.job-summary-grid span { color: #718078; font-size: 10px; text-transform: uppercase; }
.job-summary-grid b { color: #304b3a; font-size: 14px; }
.job-summary p { margin: 12px 0 0; color: #66746c; font-size: 12px; line-height: 1.45; }

.result-visuals {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #d9e5e2;
  border-radius: 14px;
  background: #f8fbfa;
}
.result-visuals[hidden] { display: none; }
.result-visuals-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.result-visuals-head span { color: #278779; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.result-visuals-head h4 { margin: 2px 0 0; color: #263e38; font-size: 18px; }
.result-visuals-head > b { padding: 5px 9px; border-radius: 999px; background: #e5f4f0; color: #29786d; font-size: 11px; }
.result-visuals-help { margin: -4px 0 14px; color: #62736e; font-size: 12px; line-height: 1.55; }
.result-interactive-report { margin-bottom: 14px; overflow: hidden; border: 1px solid #bcd9d1; border-radius: 12px; background: #fff; }
.result-interactive-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-bottom: 1px solid #d8e7e3; background: #edf8f5; }
.result-interactive-head > div { display: grid; gap: 2px; }
.result-interactive-head span { color: #278779; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.result-interactive-head strong { color: #294941; font-size: 14px; }
.result-interactive-head a { color: #176b57; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.result-interactive-report > p { margin: 0; padding: 10px 15px; border-bottom: 1px solid #e2ebe8; color: #667872; font-size: 11px; line-height: 1.5; }
.result-interactive-report iframe { display: block; width: 100%; height: min(780px, 76vh); min-height: 620px; border: 0; background: #f5f8f7; }
.result-report-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 13px; }
.result-report-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 12px 14px;
  border: 1px solid #cfe0dc;
  border-radius: 10px;
  background: #fff;
  color: #294941;
  text-decoration: none;
}
.result-report-link span { grid-column: 1 / -1; color: #73857f; font-size: 10px; text-transform: uppercase; }
.result-report-link strong { overflow-wrap: anywhere; }
.result-report-link em { color: #2b8879; font-size: 11px; font-style: normal; white-space: nowrap; }
.result-accuracy-link { border-color: #a9d5ca; background: #f3fbf8; }
.weight-diagnostics-panel { margin: 15px 0; padding: 16px; border: 1px solid #bfd9d2; border-radius: 12px; background: #fff; }
.weight-diagnostics-loading { padding: 20px; color: #64766f; text-align: center; }
.weight-diagnostics-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.weight-diagnostics-head span { color: #278779; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.weight-diagnostics-head h5 { margin: 3px 0 0; color: #294941; font-size: 16px; }
.weight-diagnostics-head a { color: #217765; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.weight-diagnostics-actions { display: flex; align-items: center; gap: 8px; }
.weight-diagnostics-actions button { padding: 6px 9px; border: 1px solid #94c8bb; border-radius: 7px; background: #edf8f5; color: #176b57; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.weight-diagnostics-panel > p { margin: 9px 0 13px; color: #687a74; font-size: 11px; line-height: 1.5; }
.weight-view-controls { display: inline-flex; gap: 3px; margin-bottom: 10px; padding: 3px; border: 1px solid #d5e4e0; border-radius: 9px; background: #f3f7f6; }
.weight-view-controls button { padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: #647670; cursor: pointer; font: inherit; font-size: 10px; font-weight: 750; }
.weight-view-controls button.active { background: #fff; color: #176b57; box-shadow: 0 1px 4px rgba(32, 75, 64, .14); }
.weight-chart-wrap { overflow: hidden; border: 1px solid #e0e9e6; border-radius: 10px; background: #fbfdfc; }
.weight-histogram, .weight-scatter { display: block; width: 100%; height: auto; color: #71827d; font: 10px Inter, sans-serif; }
.weight-chart-grid { stroke: #e7eeec; stroke-width: 1; }
.weight-chart-zero { stroke: #8d9d98; stroke-width: 1; stroke-dasharray: 4 4; }
.weight-chart-axis { stroke: #70817b; stroke-width: 1; }
.weight-chart-label { fill: #526761; font-size: 11px; font-weight: 700; }
.weight-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px 10px; border-top: 1px solid #e6eeeb; color: #5f716b; font-size: 10px; }
.weight-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.weight-chart-legend i { width: 13px; height: 3px; border-radius: 2px; background: var(--weight-series); }
.weight-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 9px; margin-top: 10px; }
.weight-summary-card { padding: 11px 12px; border: 1px solid #dce8e4; border-radius: 9px; background: #fbfdfc; }
.weight-summary-card > span { display: block; color: #72847e; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.weight-summary-card > strong { display: block; margin: 3px 0 8px; color: #294941; font-size: 14px; }
.weight-summary-card dl, .weight-comparison-head dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin: 0; }
.weight-summary-card dl div, .weight-comparison-head dl div { display: grid; gap: 1px; }
.weight-summary-card dt, .weight-comparison-head dt { color: #84918d; font-size: 8px; text-transform: uppercase; }
.weight-summary-card dd, .weight-comparison-head dd { margin: 0; color: #435a53; font-size: 11px; font-weight: 700; }
.weight-comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 11px; margin-top: 14px; }
.weight-comparison-card { overflow: hidden; border: 1px solid #d7e5e1; border-radius: 10px; background: #fbfdfc; }
.weight-comparison-head { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(190px, 1fr); gap: 12px; padding: 11px 13px; border-bottom: 1px solid #e1ebe8; background: #f2f8f6; }
.weight-comparison-head span { color: #278779; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.weight-comparison-head strong { display: block; margin-top: 2px; color: #344f47; font-size: 12px; }
.weight-scatter circle { fill: #217765; opacity: .48; }
.weight-scatter-diagonal { stroke: #d47a35; stroke-width: 1.2; stroke-dasharray: 5 4; }
.weight-comparison-card > p { margin: 0; padding: 8px 12px 11px; border-top: 1px solid #e5ecea; color: #71817c; font-size: 9px; line-height: 1.45; }
.weight-findings { margin-top: 13px; border-top: 1px solid #e1ebe8; padding-top: 10px; }
.weight-findings summary { color: #526a63; cursor: pointer; font-size: 11px; font-weight: 750; }
.weight-findings ol { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.weight-finding { display: grid; gap: 2px; padding: 8px 10px; border-left: 3px solid #6c9e91; background: #f5faf8; }
.weight-finding.warning { border-left-color: #d47a35; background: #fff9f1; }
.weight-finding.error { border-left-color: #b44c67; background: #fff5f7; }
.weight-finding b { color: #3e554e; font-size: 10px; }
.weight-finding span, .weight-finding small { color: #6c7c77; font-size: 9px; line-height: 1.4; }
.weight-finding small { color: #4e6b62; }
.weight-diagnostics-empty { margin: 0; padding: 20px; color: #788781; text-align: center; }
.weight-diagnostics-error { display: grid; gap: 4px; padding: 14px; border-left: 3px solid #b44c67; background: #fff5f7; color: #71515a; font-size: 11px; }
.result-document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.result-document-actions a { color: #2b8879; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.result-figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.result-figure-card { margin: 0; overflow: hidden; border: 1px solid #d8e3e0; border-radius: 12px; background: #fff; }
.result-figure-card:only-child { grid-column: 1 / -1; }
.result-figure-card > a { display: block; padding: 8px; background: #f4f7f6; }
.result-figure-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 7px; background: #fff; }
.result-figure-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #344b45; font-size: 12px; }
.result-figure-card figcaption > div { display: grid; gap: 2px; }
.result-figure-card figcaption span { color: #71827d; font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.result-figure-card figcaption a { color: #2b8879; text-decoration: none; white-space: nowrap; }
.search-result-visuals { width: min(1165px, 100%); }

.job-files,
.job-search-files { display: block; }
.primary-result-files { display: flex; flex-wrap: wrap; gap: 8px; }
.primary-result-files > a,
.advanced-result-files a {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #d4e3df;
  border-radius: 9px;
  background: #fff;
  color: #2b7568;
  font-size: 12px;
  text-decoration: none;
}
.advanced-result-files { margin-top: 10px; }
.advanced-result-files summary { cursor: pointer; color: #6e7e79; font-size: 11px; font-weight: 750; }
.advanced-result-files > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; margin-top: 9px; }
.advanced-result-files a span { overflow-wrap: anywhere; }
.advanced-result-files a small { color: #899691; font-size: 9px; text-transform: uppercase; }

@media (max-width: 760px) {
  .result-figure-grid { grid-template-columns: 1fr; }
  .result-visuals { padding: 12px; }
  .result-visuals-head { align-items: flex-start; }
  .result-interactive-head { align-items: flex-start; }
  .result-interactive-report iframe { height: 660px; min-height: 660px; }
  .weight-diagnostics-head, .weight-comparison-head { align-items: flex-start; grid-template-columns: 1fr; }
  .weight-diagnostics-head { flex-direction: column; }
  .weight-comparison-grid { grid-template-columns: 1fr; }
}

.upload-box,
.upload-box:first-child { padding: 13px; border-color: var(--pgs-border); background: #fff; }
.server-upload { margin-top: 16px; padding: 18px; background: #fafafa; }
.server-upload h4, .runner-settings h4, .server-submit h4 { margin: 0 0 5px; color: #333; font-size: 16px; }
.server-upload p, .runner-settings p, .server-submit p { color: #777; }

.execution-advanced {
  min-width: 245px;
  padding: 9px 11px;
  border: 1px solid #d7e2df;
  border-radius: 9px;
  background: #f8faf9;
}
.execution-advanced summary { cursor: pointer; color: #536b64; font-size: 12px; font-weight: 650; }
.execution-advanced[open] summary { margin-bottom: 9px; }
.execution-advanced label { align-items: flex-start; color: #65766f; font-size: 11px; line-height: 1.4; }

.diagnostic-panel {
  overflow: hidden;
  border: 1px solid var(--pgs-border);
  background: #fff;
}
.diagnostic-empty,
.diagnostic-loading,
.diagnostic-error,
.diagnostic-success {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: #666;
}
.diagnostic-empty b,
.diagnostic-loading b,
.diagnostic-error b,
.diagnostic-success b { color: #333; }
.diagnostic-empty span,
.diagnostic-error span,
.diagnostic-success span { font-size: 13px; line-height: 1.45; }
.diagnostic-loading { grid-template-columns: auto 1fr; align-items: center; }
.diagnostic-loading span {
  width: 17px;
  height: 17px;
  border: 2px solid #d9d9d9;
  border-top-color: var(--pgs-button);
  border-radius: 50%;
  animation: diagnostic-spin 0.8s linear infinite;
}
@keyframes diagnostic-spin { to { transform: rotate(360deg); } }

.diagnostic-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-left: 5px solid #38985d;
  background: #f5fbf7;
}
.diagnostic-overview.status-review { border-left-color: #c58a1b; background: #fffaf0; }
.diagnostic-overview.status-blocked { border-left-color: #bc3f3f; background: #fff6f6; }
.diagnostic-overview h4 { margin: 2px 0 3px; font-size: 18px; }
.diagnostic-overview p { line-height: 1.45; }
.diagnostic-kicker {
  color: #4d765e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-review .diagnostic-kicker { color: #8b651c; }
.status-blocked .diagnostic-kicker { color: #963b3b; }
.diagnostic-score {
  display: flex;
  align-items: baseline;
  min-width: 82px;
  color: #35784f;
}
.status-review .diagnostic-score { color: #9a6b12; }
.status-blocked .diagnostic-score { color: #a53b3b; }
.diagnostic-score strong { font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.diagnostic-score span { font-size: 13px; }

.diagnostic-score-breakdown { border-top: 1px solid var(--pgs-border); background: #fbfcfd; }
.diagnostic-score-breakdown-head { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.diagnostic-score-breakdown-head > div { display: grid; gap: 3px; }
.diagnostic-score-breakdown-head b { color: #344c5c; font-size: 13px; }
.diagnostic-score-breakdown-head span { color: #788790; font-size: 10px; }
.diagnostic-score-breakdown-head code { padding: 6px 8px; color: #315f72; border: 1px solid #ccdae2; border-radius: 5px; background: #fff; font-size: 11px; }
.diagnostic-score-rows { display: grid; border-top: 1px solid #e5eaed; }
.diagnostic-score-rows span { padding: 8px 16px; display: flex; justify-content: space-between; gap: 16px; color: #667782; border-bottom: 1px solid #edf0f2; font-size: 11px; }
.diagnostic-score-rows span:last-child { border-bottom: 0; }
.diagnostic-score-rows b { color: #405867; font-weight: 600; }
.diagnostic-score-rows em { color: #9a5d3c; font-style: normal; font-weight: 700; }
.diagnostic-score-rows .is-total { background: #f0f7f5; }
.diagnostic-score-rows .is-total b, .diagnostic-score-rows .is-total em { color: #26705e; font-weight: 800; }

.diagnostic-meta,
.diagnostic-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--pgs-border);
}
.diagnostic-meta span,
.diagnostic-counts span {
  padding: 4px 8px;
  border: 1px solid #e2dfdf;
  background: #fafafa;
  color: #666;
  font-size: 12px;
}
.diagnostic-counts b { color: #333; }
.diagnostic-issues { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--pgs-border); }
.diagnostic-issue { padding: 13px 14px; border: 1px solid #e4e0e0; border-left: 4px solid #8a8a8a; background: #fff; }
.diagnostic-issue.severity-blocker { border-left-color: #bc3f3f; }
.diagnostic-issue.severity-high { border-left-color: #d56842; }
.diagnostic-issue.severity-medium { border-left-color: #d2a339; }
.diagnostic-issue.severity-low { border-left-color: #5682a3; }
.diagnostic-issue.severity-info { border-left-color: #7893a4; background: #f8fbfc; }
.diagnostic-issue-head { display: flex; gap: 9px; align-items: center; margin-bottom: 8px; }
.diagnostic-issue-head span {
  min-width: 58px;
  padding: 3px 6px;
  border: 1px solid #ddd;
  color: #666;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.diagnostic-issue-head b { flex: 1 1 auto; }
.diagnostic-issue-head em { flex: 0 0 auto; color: #9a5d3c; font-size: 10px; font-style: normal; font-weight: 800; }
.diagnostic-issue.severity-info .diagnostic-issue-head em { color: #597384; }
.diagnostic-issue p { display: grid; grid-template-columns: 122px 1fr; gap: 8px; margin: 5px 0; font-size: 12px; line-height: 1.45; }
.diagnostic-issue p strong { color: #555; }
.diagnostic-coverage { padding: 14px 16px; display: grid; gap: 10px; border-top: 1px solid var(--pgs-border); background: #f6fafc; }
.diagnostic-coverage > div { display: grid; gap: 3px; }
.diagnostic-coverage > div b { color: #405c6d; font-size: 13px; }
.diagnostic-coverage > div span { color: #71838f; font-size: 10px; }
.diagnostic-disclaimer { padding: 0 16px 14px; color: #888 !important; font-size: 11px !important; }

@media (max-width: 680px) {
  .diagnostic-score-breakdown-head { align-items: flex-start; flex-direction: column; }
  .diagnostic-issue-head { align-items: flex-start; flex-wrap: wrap; }
  .diagnostic-issue-head em { width: 100%; }
  .diagnostic-issue p { grid-template-columns: 1fr; gap: 2px; }
}

label { color: #555; font-size: 13px; font-weight: 600; }

input,
select {
  min-height: 40px;
  padding: 8px 12px;
  color: #666;
  border: 1px solid #d5dce5;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

input:focus,
select:focus {
  outline: 0;
  border-color: #8cb9d8;
  box-shadow: 0 0 0 2px rgba(132, 174, 203, 0.16);
}

.button,
.pgs-button {
  min-height: 40px;
  padding: 9px 20px;
  color: #fff;
  border: 0;
  border-radius: 3px;
  background: var(--pgs-button);
  box-shadow: none;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.button.primary,
.button.secondary,
.button.copy { color: #fff; border: 0; background: var(--pgs-button); box-shadow: none; }
.button:hover, .pgs-button:hover { background: #6f9fbe; transform: none; }
.button:disabled, .pgs-button:disabled { opacity: 0.6; cursor: wait; }

.topic-switcher,
.compact-switcher,
.switcher {
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--pgs-border);
  border-radius: 3px;
  background: #f7f7f7;
}

.topic-tab,
.gs-subtopic-tab,
.preview-mode {
  min-height: 38px;
  padding: 8px 13px;
  color: #555;
  border: 0;
  border-right: 1px solid var(--pgs-border);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}

.topic-tab:last-child,
.gs-subtopic-tab:last-child,
.preview-mode:last-child { border-right: 0; }
.topic-tab.is-active,
.gs-subtopic-tab.is-active,
.preview-mode.is-active { color: #fff; border-color: var(--pgs-blue); background: var(--pgs-blue); }

.topic-matrix { display: block; }
.workflow-context {
  margin: -2px 0 14px;
  padding: 11px 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-left: 4px solid var(--pgs-blue);
  background: #f2f7fb;
}
.workflow-context b { color: #2f6288; font-size: 14px; }
.workflow-context span { color: #69747f; font-size: 13px; }

.summary-upload-card {
  margin-bottom: 16px;
  padding: 0;
  border: 1px solid var(--pgs-border);
  background: #fff;
}

.summary-upload-head {
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--pgs-border);
  background: #fafafa;
}
.summary-upload-head h4 { margin: 0 0 4px; color: #333; font-size: 17px; }
.summary-upload-head p { margin: 0; color: #737980; font-size: 13px; line-height: 1.45; }
.summary-upload-head code { color: #4a7796; background: #eef5f9; }
.upload-required { flex: 0 0 auto; padding: 5px 8px; color: #3e7ca4; border: 1px solid #cfe0ea; border-radius: 3px; background: #eef7fc; font-size: 11px; }

.summary-file-row {
  padding: 14px 15px 10px;
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(300px, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.summary-file-row label { display: grid; gap: 6px; }
.summary-file-picker input { padding: 5px 8px; }
.summary-upload-status { margin: 0; padding: 0 15px 12px; color: #777; font-size: 12px; }
.summary-upload-status.is-success { color: #34805d; }
.summary-upload-status.is-error { color: #b64f4f; }
.summary-upload-diagnostic { margin: 0 15px 14px; }
.method-readiness-panel {
  margin: 0 15px 14px;
  overflow: hidden;
  border: 1px solid #dce7ed;
  border-radius: 10px;
  background: #f8fbfc;
}
.method-readiness-grid { display: grid; gap: 1px; background: #dfe8ed; }
.method-readiness-item {
  padding: 11px 13px;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) 130px minmax(220px, 1.4fr);
  align-items: center;
  gap: 12px;
  background: #fff;
  font-size: 12px;
}
.method-readiness-item b { color: #314c5e; }
.method-readiness-item span { color: #667985; }
.method-readiness-item em { font-style: normal; font-weight: 700; text-transform: capitalize; }
.method-readiness-item.is-ready em { color: #2d805d; }
.method-readiness-item.needs-input em,
.method-readiness-item.needs-resource em { color: #a56b28; }
.method-readiness-item.needs-software em { color: #8c5b8f; }
.summary-first-note {
  margin: 10px 0 14px;
  padding: 11px 13px;
  color: #526b77;
  border-left: 3px solid #4f8fa7;
  background: #f1f7f9;
  font-size: 12px;
  line-height: 1.55;
}

.prs-validation-advanced {
  grid-column: 1 / -1;
  border: 1px solid #d8e6ea;
  border-radius: 12px;
  background: #f5fafb;
  padding: 0 16px;
}
.prs-validation-advanced[hidden] { display: none !important; }
.prs-validation-advanced > summary {
  cursor: pointer;
  color: #345e59;
  font-weight: 700;
  padding: 14px 0;
}
.prs-validation-advanced > p {
  color: #667b78;
  font-size: 13px;
  margin: 0 0 14px;
}
.prs-validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  padding-bottom: 16px;
}
.prs-validation-grid label {
  display: grid;
  gap: 7px;
  color: #526a66;
  font-weight: 700;
}

@media (max-width: 760px) {
  .prs-validation-grid { grid-template-columns: 1fr; }
}

.column-mapping { border-top: 1px solid var(--pgs-border); }
.column-mapping > summary { padding: 11px 15px; color: #4d5b68; cursor: pointer; font-size: 13px; font-weight: 600; background: #fbfbfb; }
.column-mapping-grid {
  padding: 14px 15px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--pgs-border);
}
.column-mapping-grid label { display: grid; gap: 5px; }
.column-mapping-grid input,
.column-mapping-grid select { width: 100%; min-width: 0; }

.uploaded-summary-list { border-top: 1px solid var(--pgs-border); }
.uploaded-summary-list:empty { display: none; }
.uploaded-summary-item {
  min-height: 42px;
  padding: 8px 15px;
  display: grid;
  grid-template-columns: 150px minmax(180px, 0.55fr) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pgs-border);
  font-size: 12px;
}
.uploaded-summary-item:last-child { border-bottom: 0; }
.uploaded-summary-item b { color: #477b9c; text-transform: capitalize; }
.uploaded-summary-item span { color: #555; overflow-wrap: anywhere; }
.uploaded-summary-item code { color: #777; font-size: 11px; overflow-wrap: anywhere; }

.topic-card { padding: 16px; }
.topic-card[hidden] { display: none; }
.topic-card h4 { margin: 0 0 5px; color: #333; font-size: 18px; }
.topic-card > p, .topic-card-head p { color: #777; font-size: 13px; }
.topic-card-head { gap: 20px; }

.engine-group,
.option-grid { margin-top: 14px; padding: 17px 14px 14px; }
.engine-group legend,
.option-grid legend { padding: 0 7px; color: #444; font-size: 14px; font-weight: 600; }
.engine-group > p { color: #777; font-size: 13px; }
.engine-group label:has(input[type="checkbox"]),
.option-grid label { min-height: 34px; align-items: center; }
.engine-group label[hidden] { display: none !important; }
input[type="checkbox"] { min-height: 0; accent-color: var(--pgs-blue); }

.automatic-figure-plan {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #d9e8e4;
  border-left: 4px solid var(--omni-teal, #159a8c);
  border-radius: 10px;
  background: #f5fbf9;
}
.automatic-figure-plan strong { margin-right: 4px; color: #24483f; font-size: 13px; }
.automatic-figure-plan span {
  padding: 5px 9px;
  border: 1px solid #cee3dc;
  border-radius: 999px;
  background: #fff;
  color: #547069;
  font-size: 11px;
}

.runner-settings,
.server-submit,
.job-monitor { padding: 16px; }
.runner-summary > div { border-color: var(--pgs-border); border-radius: 0; background: #fafafa; }
.runner-chips span { color: #3d7ba4; border: 1px solid #cfe0eb; border-radius: 3px; background: #eef7fc; }

.reproducibility-panel {
  margin: 16px 0;
  border: 1px solid #d9e4e1;
  border-radius: 12px;
  background: #f8faf9;
}
.reproducibility-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}
.reproducibility-panel > summary::-webkit-details-marker { display: none; }
.reproducibility-panel > summary span { display: grid; gap: 3px; }
.reproducibility-panel > summary b { color: #344b45; font-size: 14px; }
.reproducibility-panel > summary small { color: #74837e; font-size: 11px; }
.reproducibility-panel > summary em { color: #2d887a; font-size: 11px; font-style: normal; }
.reproducibility-panel[open] > summary { border-bottom: 1px solid #d9e4e1; }
.reproducibility-panel[open] > summary em::after { content: "ed"; }
.reproducibility-content { display: grid; gap: 13px; padding: 16px; }
.reproducibility-content .compact-switcher { justify-self: start; display: inline-flex; }
.reproducibility-content #generated-output { width: 100%; max-height: 520px; }
.reproducibility-content .button-row { flex-wrap: wrap; margin: 0; }
.reproducibility-content > p { margin: 0; color: #74837e; font-size: 11px; }

#generated-output,
#job-log,
.runner-example,
.job-search-output {
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: #66686c;
  box-shadow: none;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.job-search-section {
  padding: 24px 0 38px;
  border-top: 1px solid var(--pgs-border);
}

.job-search-row > label {
  margin-bottom: 6px;
  display: block;
  color: #333;
  font-size: 18px;
}

.job-search-row > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  max-width: 1270px;
}

.job-search-row input { width: 100%; }

.running-status {
  margin: 20px 0 24px;
  display: grid;
  grid-template-columns: auto minmax(200px, 780px) minmax(220px, auto);
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.running-status strong { font-size: 18px; }
.progress-track { height: 20px; overflow: hidden; border-radius: 9px; background: #e7edf2; }
.progress-track i { height: 100%; display: block; background: var(--pgs-blue); transition: width 220ms ease; }
.running-status span { color: #555; }

.utility-heading {
  margin: 15px 0 4px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.job-information {
  max-width: 1555px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--pgs-border);
  border-left: 1px solid var(--pgs-border);
}

.job-information > div {
  min-height: 51px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: 1px solid var(--pgs-border);
  border-bottom: 1px solid var(--pgs-border);
}

.job-information b,
.job-information span { padding: 14px 11px; }
.job-information b { color: var(--pgs-muted); background: #fafafa; font-size: 16px; }
.job-information span { color: #666; }

.job-search-output {
  width: min(1165px, 100%);
  min-height: 225px;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
}

.job-search-files {
  width: min(1165px, 100%);
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.job-search-files a { color: #4b8db8; text-decoration: none; }

.resources-section {
  margin-top: 10px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--pgs-border);
  border-radius: 0;
  background: #fff;
}
.resources-section .section-title { margin-bottom: 14px; }
.resources-section .section-title h2 { font-size: 21px; }
.resources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--pgs-border); border-left: 1px solid var(--pgs-border); }
.resource-item { min-height: 84px; padding: 14px; border: 0; border-right: 1px solid var(--pgs-border); border-bottom: 1px solid var(--pgs-border); border-radius: 0; background: #fff; box-shadow: none; }
.resources-grid a.resource-item { color: inherit; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.resources-grid a.resource-item:hover { background: #f2f8f5; transform: translateY(-1px); }
.resources-grid a.resource-item:focus-visible { outline: 3px solid rgba(23, 107, 87, 0.24); outline-offset: -3px; }
.resource-item b { color: #fff; background: var(--pgs-button); }
.resource-item span { color: #666; line-height: 1.45; }

footer {
  width: min(1560px, 85%);
  margin: 0 auto;
  padding: 20px 0;
  color: #888;
  border-top: 1px solid var(--pgs-border);
  background: #fff;
  font-size: 13px;
}
footer span:first-child { color: #444; font-weight: 600; }

@media (max-width: 1250px) {
  .topbar { padding-right: 16px; gap: 20px; }
  .topbar nav { justify-content: flex-start; }
  .brand-copy b { font-size: 22px; }
  .brand-copy small { letter-spacing: 0.4em; }
  .sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage:nth-child(3) { border-right: 0; }
  .stage:nth-child(-n+3) { border-bottom: 1px solid var(--pgs-border); }
}

@media (max-width: 760px) {
  main { scroll-margin-top: 118px; }
  .topbar {
    position: sticky;
    min-height: auto;
    padding: 7px 12px 9px;
    display: block;
  }
  .brand-mark { width: 45px; height: 49px; }
  .brand-mark svg { width: 45px; height: 45px; }
  .brand-divider { height: 38px; }
  .brand-copy b { font-size: 20px; }
  .brand-copy small { font-size: 9px; }
  .topbar nav {
    margin-top: 5px;
    padding: 8px 0 2px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 4px;
    border-top: 1px solid #e2dddd;
    font-size: 11px;
    text-align: center;
  }
  .topbar nav > a,
  .nav-module summary { justify-content: center; }
  .topbar nav span { font-size: 12px; }
  .nav-submenu {
    min-width: 190px;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
    text-align: left;
  }
  .nav-module:nth-of-type(n+3) .nav-submenu { left: auto; right: 0; }
  .workflow-context { align-items: flex-start; flex-direction: column; gap: 4px; }
  .summary-upload-head { flex-direction: column; }
  .summary-file-row { grid-template-columns: 1fr; }
  .summary-file-row .pgs-button { width: 100%; }
  .column-mapping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uploaded-summary-item { grid-template-columns: 1fr; gap: 3px; }
  .method-readiness-item { grid-template-columns: 1fr; gap: 4px; }
  .workspace, .job-search-section, .resources-section, footer { width: calc(100% - 24px); }
  .workspace { padding-top: 18px; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(3) { border-right: 1px solid var(--pgs-border); }
  .stage:nth-child(2n) { border-right: 0; }
  .stage:nth-child(-n+4) { border-bottom: 1px solid var(--pgs-border); }
  .stage-panel { padding: 18px 12px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .topic-card-head { display: block; }
  .compact-switcher { margin-top: 12px; }
  .job-search-row > div { grid-template-columns: 1fr; }
  .job-search-row .pgs-button { width: 100%; }
  .running-status { grid-template-columns: 1fr; }
  .job-information { grid-template-columns: 1fr; }
  .job-information > div { grid-template-columns: 0.9fr 1.1fr; }
  .diagnostic-overview { grid-template-columns: 1fr; }
  .diagnostic-issue p { grid-template-columns: 1fr; gap: 2px; }
  .resources-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* OmniGenet visual identity — the workflow logic stays familiar, while the
   navigation, composition, color system, and interaction surfaces are original. */
:root {
  --omni-ink: #0b2033;
  --omni-navy: #0a253b;
  --omni-navy-2: #103a50;
  --omni-teal: #12a897;
  --omni-teal-dark: #087f76;
  --omni-blue: #4b82f3;
  --omni-mint: #dff8f3;
  --omni-sky: #eaf2ff;
  --omni-bg: #f3f7fa;
  --omni-card: #ffffff;
  --omni-line: #d9e5eb;
  --omni-muted: #667b89;
  --pgs-navy: var(--omni-navy);
  --pgs-blue: var(--omni-teal);
  --pgs-button: var(--omni-teal);
  --pgs-border: var(--omni-line);
  --pgs-panel: #f8fbfc;
  --pgs-muted: var(--omni-muted);
  --pgs-text: var(--omni-ink);
}

body {
  color: var(--omni-ink);
  background: var(--omni-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  min-height: 76px;
  padding: 0 clamp(18px, 3vw, 48px);
  gap: 36px;
  color: #fff;
  border: 0;
  background: linear-gradient(105deg, #071b2c 0%, #0b2d43 58%, #0d3c4d 100%);
  box-shadow: 0 8px 26px rgba(4, 25, 40, 0.18);
}

.brand { color: #fff; }
.brand-divider { height: 40px; background: rgba(255,255,255,0.25); }
.brand-copy b { color: #fff; font-size: 23px; font-weight: 650; }
.brand-copy small { color: #9fd7d2; }
.brand-mark { width: 48px; height: 58px; }
.brand-mark svg { width: 48px; height: 48px; }
.brand-mark .helix-a { stroke: #f1ffff; }
.brand-mark .helix-b { stroke: #2ed1bf; }
.brand-mark .helix-rungs { stroke: #80b9c2; }

.topbar nav { gap: 7px; color: #d9edf1; font-size: 13px; }
.topbar nav > a,
.nav-module > summary {
  min-height: 36px;
  padding: 8px 10px;
  color: #d9edf1;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}
.topbar nav > a:hover,
.nav-module > summary:hover,
.nav-module[open] > summary {
  color: #fff;
  background: rgba(65, 205, 187, 0.16);
}
.nav-module summary::after { color: #7fc8c0; }
.nav-submenu {
  top: calc(100% + 10px);
  overflow: hidden;
  border: 1px solid #d9e5eb;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(4, 25, 40, 0.2);
}
.nav-submenu::before { display: none; }
.topbar .nav-submenu a { color: #294355; }
.topbar .nav-submenu a:hover { color: #fff; background: var(--omni-teal); }

.pgs-home {
  min-height: calc(100vh - 76px);
  padding: clamp(64px, 8vw, 112px) 24px 90px;
  place-items: start center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(42, 208, 187, 0.2), transparent 24%),
    radial-gradient(circle at 12% 78%, rgba(75, 130, 243, 0.2), transparent 28%),
    linear-gradient(135deg, #071b2c 0%, #0a2e43 52%, #0b3a46 100%);
}
.pgs-home::before,
.pgs-home::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(137, 226, 215, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.pgs-home::before { width: 520px; height: 520px; top: -310px; right: -110px; }
.pgs-home::after { width: 360px; height: 360px; bottom: -260px; left: 12%; }
.pgs-home-inner {
  width: min(1280px, 92vw);
  position: relative;
  z-index: 1;
  text-align: left;
}
.omni-home-kicker,
.workflow-module-badge {
  width: max-content;
  padding: 7px 11px;
  display: inline-flex;
  color: #8ce5d9;
  border: 1px solid rgba(98, 220, 204, 0.34);
  border-radius: 999px;
  background: rgba(20, 167, 151, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pgs-home h1 {
  max-width: 820px;
  margin: 22px 0 22px;
  color: #fff;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.pgs-home p {
  max-width: 850px;
  margin: 0 0 38px;
  color: #c5dae1;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.65;
}
.pgs-home-primary { justify-content: flex-start; gap: 12px; }
.pgs-home-primary button,
.pgs-quick-manual {
  min-width: 0;
  padding: 13px 19px;
  border: 1px solid rgba(127, 225, 213, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #13ae9c, #0c8e87);
  box-shadow: 0 10px 22px rgba(5, 97, 91, 0.24);
  font-size: 14px;
  font-weight: 650;
}
.pgs-home-primary button:hover,
.pgs-quick-manual:hover { background: linear-gradient(135deg, #22c1ad, #109a92); }
.omni-home-meta {
  margin: 30px 0 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  color: #a9c1cb;
  font-size: 12px;
}
.omni-home-meta span { display: inline-flex; align-items: baseline; gap: 7px; }
.omni-home-meta b { color: #fff; font-size: 19px; }
.pgs-home-modules {
  margin: 0 0 26px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.pgs-home-modules button {
  min-height: 142px;
  padding: 24px;
  align-content: end;
  justify-items: start;
  color: #fff;
  border: 1px solid rgba(187, 225, 232, 0.17);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(9px);
  text-align: left;
}
.pgs-home-modules button:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 222, 205, 0.55);
  background: rgba(26, 174, 157, 0.13);
}
.pgs-home-modules b { font-size: 22px; }
.pgs-home-modules span { color: #afc7d0; }
.pgs-quick-manual {
  color: #9de4dc;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.workflow-open main {
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(rgba(13, 58, 80, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 58, 80, 0.035) 1px, transparent 1px),
    var(--omni-bg);
  background-size: 32px 32px;
}
body.workflow-open .workspace {
  width: min(1420px, calc(100% - 48px));
  padding: 42px 0 70px;
}
body.workflow-open .workbench {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  background: transparent;
}
body.workflow-open .workflow-page-head {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 28px;
  position: sticky;
  top: 98px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(20, 77, 98, 0.6);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(29, 190, 171, 0.24), transparent 38%),
    linear-gradient(160deg, #0a263b, #0d3b4c);
  box-shadow: 0 20px 44px rgba(10, 37, 59, 0.17);
  text-align: left;
}
.workflow-module-badge { margin-bottom: 18px; }
.workflow-page-head h1 {
  color: #fff;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 650;
  letter-spacing: -0.035em;
}
.workflow-page-head > p {
  margin: 13px 0 26px;
  color: #b9d0d9;
  font-size: 13px;
}
.workflow-stepper {
  width: 100%;
  margin: 0 0 24px;
  grid-template-columns: 1fr;
  gap: 0;
}
.workflow-stepper button,
.workflow-stepper button:last-child {
  grid-template-columns: 38px minmax(0, 1fr);
  justify-items: start;
  color: #87a7b4;
  text-align: left;
}
.workflow-stepper button:last-child span { justify-items: start; }
.workflow-stepper i {
  width: 34px;
  height: 34px;
  color: #8da9b5;
  border-color: #4d7180;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}
.workflow-stepper button span { font-size: 14px; }
.workflow-stepper button small { color: #7694a0; font-size: 10px; }
.workflow-stepper button.is-active { color: #fff; }
.workflow-stepper button.is-active i {
  color: #062d31;
  border-color: #66ddcf;
  background: #66ddcf;
}
.workflow-stepper button.is-active small { color: #a8c8ce; }
.workflow-step-line {
  width: 2px;
  height: 30px;
  margin: 5px 0 5px 16px;
  background: #416777;
}
.demo-results-link {
  margin: 0 0 22px;
  color: #6de1d3;
  font-size: 13px;
  font-weight: 650;
}
.workflow-email {
  margin: 0;
  grid-template-columns: 1fr;
  gap: 7px;
}
.workflow-email > span { color: #b8ced6; font-size: 12px; }
.workflow-email input {
  min-height: 42px;
  color: #eaf7f8;
  border-color: rgba(151, 204, 211, 0.24);
  border-radius: 11px;
  background: rgba(255,255,255,0.07);
}
.workflow-email input::placeholder { color: #87a3ae; }

body.workflow-open .stage-panel:not([hidden]) {
  grid-column: 2;
  grid-row: 1;
  padding: 28px;
  border: 1px solid #dfebef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(27, 64, 82, 0.09);
}
body.workflow-open .summary-upload-card {
  overflow: hidden;
  border: 1px solid #deeaee;
  border-radius: 18px;
  background: #f9fbfc;
  box-shadow: none;
}
body.workflow-open .summary-upload-head {
  min-height: 0;
  padding: 22px 24px 18px;
  border: 0;
  background: transparent;
}
body.workflow-open .summary-upload-head h4 {
  color: #102c40;
  font-size: 22px;
  font-weight: 650;
}
body.workflow-open .summary-upload-head p { color: #718592; }
.upload-required {
  color: #087f76;
  border-color: #bde9e2;
  border-radius: 999px;
  background: #e9faf7;
}

.gs-engine-picker {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: #526b67;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gs-engine-picker select {
  min-height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid #bdd6d1;
  border-radius: 10px;
  background: #fff;
  color: #123b35;
  font-size: 15px;
  font-weight: 750;
  text-transform: none;
}

.engine-availability {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border-left: 4px solid #2f7f70;
  border-radius: 8px;
  background: #edf7f4;
  color: #365d56;
}

.engine-availability.is-warning {
  border-left-color: #d47a35;
  background: #fff7ed;
  color: #79502d;
}

.gs-phenotype-explorer {
  margin: 14px 18px 18px;
  padding: 18px;
  border: 1px solid #cfe1dc;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbfefd, #f0f8f5);
}

.gs-phenotype-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.gs-phenotype-head span {
  color: #397568;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gs-phenotype-head h4 { margin: 4px 0 0; color: #163d36; font-size: 20px; }
.gs-phenotype-head label { display: grid; gap: 5px; min-width: 180px; color: #526b67; font-size: 12px; font-weight: 750; }
.gs-phenotype-head select { min-height: 42px; border: 1px solid #c6dcd6; border-radius: 9px; background: #fff; padding: 0 12px; }

.gs-phenotype-plot-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  color: #365d56;
  font-weight: 700;
}

.gs-phenotype-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 8px;
}

.gs-phenotype-metrics article {
  padding: 11px 12px;
  border: 1px solid #d8e7e2;
  border-radius: 10px;
  background: #fff;
}

.gs-phenotype-metrics span { display: block; color: #6a7e78; font-size: 11px; text-transform: uppercase; }
.gs-phenotype-metrics strong { display: block; margin-top: 3px; color: #163d36; font-size: 17px; }

.gs-phenotype-histogram {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  background: #fff;
}

.gs-phenotype-histogram rect { fill: #3279a8; opacity: .82; }
.gs-phenotype-histogram rect:hover { fill: #d47a35; opacity: 1; }
.gs-phenotype-histogram line { stroke: #9bb3ad; stroke-width: 1; }
.gs-phenotype-histogram text { fill: #536a64; font-size: 12px; font-weight: 650; }

@media (max-width: 900px) {
  .gs-phenotype-metrics { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
}

@media (max-width: 620px) {
  .gs-phenotype-head { align-items: stretch; flex-direction: column; }
  .gs-engine-picker { min-width: 100%; }
  .gs-phenotype-metrics { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}
body.workflow-open .summary-file-row {
  padding: 10px 24px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 16px 18px;
}
body.workflow-open .summary-file-row label { color: #294355; font-size: 12px; font-weight: 650; }
body.workflow-open .summary-file-row input,
body.workflow-open .summary-file-row select {
  min-height: 46px;
  border-color: #cfdee5;
  border-radius: 11px;
  background: #fff;
}
body.workflow-open #summary-upload-button {
  width: max-content;
  min-height: 45px;
  grid-column: 2;
  justify-self: end;
  padding: 11px 20px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--omni-teal), var(--omni-teal-dark));
  box-shadow: 0 8px 18px rgba(11, 141, 130, 0.2);
  font-weight: 650;
}
body.workflow-open .demo-load-button {
  width: max-content;
  min-height: 45px;
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 650;
}
body.workflow-open #summary-upload-button { grid-row: 3; }
.pgs-upload-note {
  margin: 0 24px 18px;
  padding: 12px 14px;
  color: #28736d;
  border-left: 3px solid var(--omni-teal);
  border-radius: 0 10px 10px 0;
  background: #edf9f7;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.summary-upload-status { color: #6e818d; }
body.workflow-open .summary-upload-diagnostic {
  overflow: hidden;
  border-color: #dbe8ec;
  border-radius: 12px;
}
body.workflow-open .column-mapping { border-color: #dce8ec; }
body.workflow-open .column-mapping > summary {
  padding: 17px 24px;
  color: #214257;
  background: #f3f8fa;
  font-size: 13px;
}
body.workflow-open .column-mapping-grid {
  padding: 20px 24px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
}
body.workflow-open .column-mapping-grid label {
  min-height: 72px;
  padding: 10px 12px;
  grid-template-columns: minmax(115px, 0.5fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e1eaee;
  border-radius: 12px;
  background: #fbfcfd;
}
body.workflow-open .column-mapping-grid input,
body.workflow-open .column-mapping-grid select {
  min-height: 40px;
  border-color: #d5e1e6;
  border-radius: 9px;
  background: #fff;
}
body.workflow-open .column-mapping-grid em { color: #e16262; }
.workflow-input-actions { padding: 22px 0 0; justify-content: flex-end; }
.pgs-next-button,
.button.primary,
.pgs-button {
  border-radius: 11px;
  background: linear-gradient(135deg, var(--omni-teal), var(--omni-teal-dark));
  box-shadow: 0 8px 18px rgba(11, 141, 130, 0.18);
  font-weight: 650;
}
.pgs-next-button { min-width: 190px; }
.pgs-next-button:hover,
.button.primary:hover,
.pgs-button:hover { background: linear-gradient(135deg, #19b9a6, #078179); }

body.workflow-open .panel-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4ecef;
}
.workflow-review-title button {
  color: #087f76;
  border-color: #bfe1dd;
  border-radius: 9px;
  background: #edf9f7;
}
.topic-switcher,
.compact-switcher,
.switcher {
  overflow: hidden;
  border-color: #d6e3e8;
  border-radius: 10px;
  background: #f3f7f9;
}
.topic-tab.is-active,
.gs-subtopic-tab.is-active,
.preview-mode.is-active { background: var(--omni-navy-2); }
.topic-card,
.engine-group,
.runner-settings,
.server-submit,
.job-monitor {
  border-color: #dce8ec;
  border-radius: 14px;
}
.topic-card { padding: 20px; }
.engine-group { background: #fbfcfd; }
.job-summary { border-left-color: var(--omni-teal); }

.job-search-section,
.resources-section {
  width: min(1320px, calc(100% - 48px));
  border-color: #dce7ec;
  background: transparent;
}
.resources-grid { overflow: hidden; border-radius: 16px; }
.resource-item { background: #fff; }
.resource-item b { background: var(--omni-teal); }
footer {
  width: 100%;
  padding: 24px max(24px, 7.5vw);
  color: #9eb3bd;
  border: 0;
  background: var(--omni-navy);
}
footer span:first-child { color: #fff; }

@media (max-width: 1050px) {
  body.workflow-open .workbench { grid-template-columns: 1fr; }
  body.workflow-open .workflow-page-head {
    grid-column: 1;
    position: static;
  }
  body.workflow-open .stage-panel:not([hidden]) {
    grid-column: 1;
    grid-row: 2;
  }
  .workflow-stepper { grid-template-columns: auto minmax(40px, 1fr) auto; align-items: start; }
  .workflow-stepper button,
  .workflow-stepper button:last-child { grid-template-columns: 34px auto; }
  .workflow-step-line { width: auto; height: 2px; margin: 16px 8px 0; }
  .workflow-email { max-width: 620px; }
}

@media (max-width: 760px) {
  .topbar { background: #081f31; }
  .topbar nav { border-color: rgba(255,255,255,0.12); }
  .topbar nav > a,
  .nav-module > summary { padding: 5px 3px; color: #d3e8ed; }
  .pgs-home { padding-inline: 18px; }
  .pgs-home-modules { grid-template-columns: 1fr; }
  body.workflow-open .workspace { width: calc(100% - 20px); padding-top: 18px; }
  body.workflow-open .workflow-page-head,
  body.workflow-open .stage-panel:not([hidden]) { padding: 20px; border-radius: 18px; }
  .workflow-stepper { grid-template-columns: 1fr; }
  .workflow-step-line { width: 2px; height: 22px; margin: 4px 0 4px 16px; }
  body.workflow-open .summary-file-row,
  body.workflow-open .column-mapping-grid { grid-template-columns: 1fr; }
  body.workflow-open #summary-upload-button { grid-column: 1; justify-self: stretch; width: 100%; }
  body.workflow-open .demo-load-button { grid-column: 1; grid-row: auto; justify-self: stretch; width: 100%; }
  body.workflow-open .column-mapping-grid label { grid-template-columns: 1fr; }
}

/* Refined wordmark and navigation typography */
.topbar {
  min-height: 84px;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr);
  padding-inline: clamp(24px, 3.1vw, 58px);
  gap: clamp(28px, 4vw, 72px);
}

.brand {
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 56px;
  position: relative;
}

.brand-mark::after {
  content: "";
  width: 38px;
  height: 38px;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(82, 218, 202, 0.22);
  border-radius: 12px;
  background: rgba(29, 177, 161, 0.07);
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
  stroke-width: 2.3;
}

.brand-wordmark {
  color: #f5fcfd;
  font-family: "Avenir Next", "SF Pro Display", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(25px, 1.65vw, 30px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.topbar nav {
  justify-content: flex-end;
  gap: clamp(5px, 0.75vw, 13px);
  color: #d9edf1;
  font-family: "Avenir Next", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 540;
  letter-spacing: -0.006em;
}

.topbar nav > a,
.nav-module > summary {
  min-height: 42px;
  padding: 10px clamp(8px, 0.65vw, 13px);
  gap: 0;
  border-radius: 11px;
  font: inherit;
}

.topbar nav > a > span,
.nav-module > summary > span {
  display: none;
}

.nav-module summary::after {
  margin-left: 7px;
  color: #70cfc4;
  font-size: 10px;
}

.topbar nav > a:hover,
.nav-module > summary:hover,
.nav-module[open] > summary {
  color: #fff;
  background: rgba(58, 199, 184, 0.13);
}

.topbar .nav-submenu a {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 520;
}

@media (max-width: 1380px) {
  .topbar {
    grid-template-columns: minmax(185px, auto) minmax(0, 1fr);
    padding-inline: 24px;
    gap: 22px;
  }
  .brand-wordmark { font-size: 25px; }
  .topbar nav { gap: 2px; font-size: 14.5px; }
  .topbar nav > a,
  .nav-module > summary { padding-inline: 8px; }
}

@media (max-width: 980px) {
  .topbar {
    padding: 10px 18px 12px;
    display: block;
  }
  .brand { min-height: 52px; }
  .brand-mark { height: 48px; }
  .brand-wordmark { font-size: 26px; }
  .topbar nav {
    margin-top: 7px;
    padding-top: 9px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 13px;
  }
  .topbar nav > a,
  .nav-module > summary { justify-content: center; min-height: 36px; padding: 7px 5px; }
}

@media (max-width: 560px) {
  .topbar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-wordmark { font-size: 24px; }
}

.diagnostic-capability-block {
  padding: 14px 16px;
  border-top: 1px solid #e1eaee;
  background: #fbfcfd;
}
.diagnostic-capability-block > b {
  margin-bottom: 9px;
  display: block;
  color: #294355;
  font-size: 12px;
}
.diagnostic-field-map,
.diagnostic-workflows {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.diagnostic-field-map span,
.diagnostic-workflows span {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #607783;
  border: 1px solid #d7e4e9;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
}
.diagnostic-field-map strong,
.diagnostic-workflows strong { color: #244153; font-weight: 700; }
.diagnostic-workflows .is-ready {
  color: #087f76;
  border-color: #bce7e1;
  background: #ecfaf7;
}
.diagnostic-workflows .needs-input {
  color: #9a6541;
  border-color: #ecd8c8;
  background: #fff8f2;
}

/* Home hero — value proposition first, with an editable cross-species visual. */
.pgs-home {
  min-height: calc(100vh - 84px);
  padding: clamp(54px, 6vw, 88px) 24px 76px;
  place-items: start center;
  color: #112f3f;
  background:
    radial-gradient(circle at 90% 14%, rgba(62, 189, 167, 0.14), transparent 27%),
    radial-gradient(circle at 7% 45%, rgba(69, 113, 185, 0.1), transparent 25%),
    linear-gradient(135deg, #f8fbf8 0%, #f2f8f6 48%, #eef6f7 100%);
}

.pgs-home::before {
  width: 620px;
  height: 620px;
  top: -385px;
  right: -170px;
  border-color: rgba(21, 151, 134, 0.13);
}

.pgs-home::after {
  width: 420px;
  height: 420px;
  bottom: -315px;
  left: 4%;
  border-color: rgba(45, 89, 159, 0.1);
}

.pgs-home-inner {
  width: min(1420px, 94vw);
}

.omni-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: center;
}

.omni-home-layout > * {
  min-width: 0;
}

.omni-home-copy {
  padding: 28px 0 36px;
}

.omni-home-kicker {
  width: fit-content;
  max-width: 100%;
  color: #087f76;
  border-color: rgba(8, 127, 118, 0.24);
  background: rgba(25, 174, 153, 0.08);
  line-height: 1.4;
  white-space: normal;
}

.pgs-home h1 {
  max-width: 720px;
  margin: 24px 0 24px;
  color: #102f41;
  font-size: clamp(52px, 5.6vw, 84px);
  font-weight: 690;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.pgs-home p {
  max-width: 720px;
  margin: 0 0 32px;
  color: #496675;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.omni-home-actions {
  align-items: center;
}

.pgs-home-primary button {
  min-height: 52px;
  padding: 14px 22px;
  border-color: #0a8e83;
  border-radius: 13px;
  background: linear-gradient(135deg, #15aa96, #087f78);
  box-shadow: 0 13px 28px rgba(8, 127, 118, 0.2);
  font-size: 15px;
}

.pgs-home-primary button span {
  margin-left: 9px;
  transition: transform 0.18s ease;
}

.pgs-home-primary button:hover {
  background: linear-gradient(135deg, #1db9a3, #098d84);
  transform: translateY(-2px);
}

.pgs-home-primary button:hover span {
  transform: translateX(3px);
}

.omni-home-secondary {
  min-height: 52px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #173f52;
  border: 1px solid #c8dbdc;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.omni-home-secondary:hover {
  color: #087f76;
  border-color: #89c7be;
  background: #fff;
  transform: translateY(-2px);
}

.omni-home-meta {
  margin: 32px 0 0;
  gap: 10px 26px;
  color: #67808c;
  font-size: 12px;
}

.omni-home-meta span {
  position: relative;
}

.omni-home-meta span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 22px;
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  background: #cadbde;
}

.omni-home-meta b {
  color: #173f52;
  font-size: 20px;
}

.omni-home-visual {
  min-width: 0;
  margin: 0;
  position: relative;
}

.omni-home-visual::before {
  content: "";
  width: 72%;
  height: 64%;
  position: absolute;
  top: 17%;
  right: 5%;
  border-radius: 50%;
  background: rgba(44, 187, 164, 0.15);
  filter: blur(56px);
}

.omni-home-visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(145, 190, 187, 0.52);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 80px rgba(17, 65, 78, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.omni-home-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.28), transparent 42%);
}

.omni-home-visual img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.035);
}

.omni-home-visual figcaption {
  width: max-content;
  max-width: calc(100% - 40px);
  margin: -23px auto 0;
  padding: 12px 17px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: #456372;
  border: 1px solid #d6e4e5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(20, 61, 74, 0.12);
  font-size: 11px;
  font-weight: 650;
}

.omni-home-visual figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.omni-home-visual figcaption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18aa95;
  box-shadow: 0 0 0 4px rgba(24, 170, 149, 0.11);
}

.omni-home-catalog {
  margin-top: clamp(68px, 7vw, 96px);
  padding-top: 38px;
  scroll-margin-top: 110px;
  border-top: 1px solid #cfe0e1;
}

.omni-home-catalog-head {
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 36px;
  align-items: end;
}

.omni-section-label {
  color: #0b887e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.omni-home-catalog h2 {
  margin: 8px 0 0;
  color: #153748;
  font-size: clamp(32px, 3.2vw, 48px);
  letter-spacing: -0.04em;
}

.omni-home-catalog-head > p {
  margin: 0;
  color: #647e8a;
  font-size: 14px;
  line-height: 1.6;
}

.pgs-home-modules {
  margin: 0 0 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pgs-home-modules button {
  min-height: 164px;
  padding: 24px;
  position: relative;
  align-content: end;
  color: #173c4e;
  border: 1px solid #d6e3e4;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(22, 61, 75, 0.055);
  backdrop-filter: blur(9px);
  text-align: left;
}

.pgs-home-modules button::before {
  content: "";
  width: 38px;
  height: 4px;
  position: absolute;
  top: 24px;
  left: 24px;
  border-radius: 99px;
  background: linear-gradient(90deg, #18ab96, #4f77bd);
}

.pgs-home-modules button:hover {
  transform: translateY(-4px);
  color: #102f41;
  border-color: #91c9c1;
  background: #fff;
  box-shadow: 0 18px 38px rgba(22, 75, 84, 0.12);
}

.pgs-home-modules b {
  max-width: calc(100% - 50px);
  color: inherit;
  font-size: 20px;
}

.pgs-home-modules span {
  color: #69808b;
  font-size: 12px;
}

.pgs-home-modules i {
  position: absolute;
  top: 19px;
  right: 22px;
  color: #9ab2b9;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pgs-quick-manual {
  padding: 8px 0;
  color: #087f76;
  font-size: 13px;
}

.pgs-quick-manual:hover {
  color: #065e5a;
  background: transparent;
}

@media (max-width: 1100px) {
  .omni-home-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .omni-home-copy {
    max-width: 820px;
    padding-bottom: 16px;
  }

  .pgs-home h1,
  .pgs-home p {
    max-width: 820px;
  }

  .omni-home-visual {
    width: min(780px, 100%);
    margin: 0 auto;
  }

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

@media (max-width: 720px) {
  .pgs-home {
    padding: 40px 16px 58px;
  }

  .pgs-home-inner {
    width: 100%;
    max-width: 100%;
  }

  .omni-home-kicker {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .omni-home-copy {
    padding-top: 12px;
  }

  .pgs-home h1 {
    margin-top: 20px;
    font-size: clamp(43px, 13vw, 62px);
    line-height: 1;
  }

  .pgs-home p {
    font-size: 16px;
  }

  .omni-home-actions,
  .omni-home-actions button,
  .omni-home-secondary {
    width: 100%;
  }

  .omni-home-meta {
    gap: 13px 22px;
  }

  .omni-home-meta span:not(:last-child)::after {
    display: none;
  }

  .omni-home-visual-frame {
    border-radius: 24px;
  }

  .omni-home-visual figcaption {
    width: calc(100% - 24px);
    max-width: none;
    border-radius: 18px;
  }

  .omni-home-catalog {
    margin-top: 58px;
  }

  .omni-home-catalog-head {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pgs-home-modules {
    grid-template-columns: 1fr;
  }

  .pgs-home-modules button {
    min-height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pgs-home-primary button,
  .omni-home-secondary,
  .pgs-home-modules button {
    transition: none;
  }
}

.gwas-interactive-note {
  margin: 14px 0;
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  color: #315765;
  border: 1px solid #bfe3dc;
  border-radius: 14px;
  background: linear-gradient(135deg, #effaf7, #f5f9ff);
}

.gwas-interactive-note strong {
  color: #087f76;
  font-size: 13px;
}

.gwas-interactive-note span {
  font-size: 12px;
  line-height: 1.55;
}

.gwas-interactive-note small {
  color: #69808b;
  font-size: 10px;
  line-height: 1.45;
}
