:root {
  --ink: #12272c;
  --muted: #64767a;
  --line: #dbe4e2;
  --soft: #f2f6f4;
  --paper: #ffffff;
  --accent: #087f72;
  --accent-dark: #05655b;
  --accent-light: #dff2ed;
  --navy: #173f49;
  --warn: #a7611b;
  --danger: #b53a3a;
  --shadow: 0 18px 55px rgba(22, 61, 68, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  height: 82px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18, 39, 44, .09);
  background: rgba(251, 252, 251, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 238px;
  height: auto;
  display: block;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 12px;
}

.brand-mark svg { width: 30px; height: 30px; fill: var(--paper); stroke: currentColor; stroke-width: 2.3; }
.brand-mark path { fill: none; }
.brand strong { display: block; letter-spacing: .055em; font-size: 30px; line-height: 1; }
.brand small { display: none; color: var(--muted); font-size: 11px; margin-top: 2px; }

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { text-decoration: none; font-size: 20px; font-weight: 850; color: #40575c; }
.header-nav a:hover, .header-nav a.active { color: var(--accent); }
.header-nav a.active { position: relative; }
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: var(--paper);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a8b3b1; }
.service-pill.online .status-dot { background: #24a579; box-shadow: 0 0 0 4px rgba(36,165,121,.12); }
.service-pill.offline .status-dot { background: var(--danger); }

main { overflow: hidden; }

.page-main {
  min-height: calc(100vh - 176px);
  padding: 42px 0 24px;
}

.hero {
  max-width: 1320px;
  min-height: 500px;
  margin: 0 auto;
  padding: 70px clamp(24px, 5vw, 74px) 42px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 36px;
  scroll-margin-top: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5.4vw, 74px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.04em;
}

.hero-lead {
  max-width: 630px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.primary-link, .secondary-link {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.primary-link { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.primary-link:hover { background: var(--accent-dark); }
.secondary-link { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.secondary-link:hover { border-color: #9bc9c0; color: var(--accent-dark); }

.method-strip { display: flex; align-items: center; gap: 11px; color: var(--navy); font-size: 14px; font-weight: 750; }
.method-strip span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.method-strip i { width: 25px; height: 1px; background: #a7b7b4; }
.method-strip b { color: var(--accent); font-size: 17px; }

.hero-visual {
  min-height: 350px;
  display: grid;
  place-items: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid #dce7e4;
  position: absolute;
  box-shadow: 0 0 0 60px rgba(222, 238, 234, .25), 0 0 0 120px rgba(222, 238, 234, .12);
}
.hero-visual svg { width: min(100%, 520px); position: relative; z-index: 1; overflow: visible; }
.network-lines path { fill: none; stroke: #9ebcb6; stroke-width: 2; stroke-dasharray: 5 7; }
.network-nodes circle { fill: #fff; stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 8px 10px rgba(24,83,82,.12)); }
.network-nodes circle:nth-child(4), .network-nodes circle:nth-child(6) { fill: var(--accent-light); }
.node-labels { font-size: 17px; font-weight: 850; fill: var(--navy); text-anchor: middle; }

.workspace, .job-panel, .job-lookup-panel, .results-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
}

.platform-summary, .service-overview, .contact-section {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto 34px;
}

.platform-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.platform-summary article {
  min-height: 360px;
  padding: 42px 42px 42px 52px;
  display: grid;
  grid-template-columns: minmax(410px, 34%) minmax(720px, 1fr);
  align-items: center;
  gap: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(22, 61, 68, .06);
}

.platform-summary h3 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.platform-summary p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.85;
}

.platform-summary img {
  width: 100%;
  max-width: 720px;
  height: 318px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  padding: 0;
  transform: none;
  border-radius: 10px;
  background: #fff;
}

.platform-summary article:nth-child(1) img,
.platform-summary article:nth-child(3) img {
  max-width: 560px;
  height: 318px;
}

.platform-summary article:nth-child(2) img,
.platform-summary article:nth-child(4) img {
  max-width: 720px;
  height: 284px;
}

.platform-summary article:nth-child(2) img {
  object-position: center;
}

.platform-summary article:nth-child(4) img {
  max-width: 720px;
  height: 292px;
  object-position: center;
}

.service-overview {
  padding: 34px 0 6px;
  scroll-margin-top: 90px;
}

.service-overview .section-heading {
  justify-content: center;
  text-align: center;
}

.algorithm-divider {
  width: min(1420px, calc(100% - 48px));
  margin: 40px auto 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--accent);
}

.algorithm-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8d5ce, transparent);
}

.algorithm-divider b {
  padding: 10px 18px;
  border: 1px solid #c8dfda;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-card {
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
  background: #fff;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #9bc9c0;
  box-shadow: var(--shadow);
}

.service-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.service-card strong {
  display: block;
  margin: 22px 0 10px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.service-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.target-card { background: linear-gradient(135deg, #fff 0%, #f1faf7 100%); }
.admet-card { background: linear-gradient(135deg, #fff 0%, #f7f5fc 100%); }

.workspace {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.prediction-page { margin-top: 22px; }
.admet-entry { background: linear-gradient(135deg, #fff 0%, #f8fbfa 100%); box-shadow: none; }
.compact-module-picker { margin-top: -6px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading h2, .job-summary h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; }
.section-heading > p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 16px; }

#prediction-form { position: relative; }
.module-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
}
.module-tab {
  min-height: 78px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #fafcfb;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.module-tab:hover { border-color: #9bc9c0; transform: translateY(-1px); }
.module-tab.active { color: var(--ink); border-color: var(--accent); background: var(--accent-light); }
.module-tab > span { color: var(--accent); font-family: Georgia, serif; font-size: 18px; }
.module-tab strong, .module-tab small { display: block; }
.module-tab strong { margin-bottom: 5px; font-size: 15px; }
.module-tab small { color: var(--muted); font-size: 13px; }
.form-main label, .option-field > label, .option-field legend {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 750;
}
.textarea-wrap { position: relative; }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  padding: 17px 74px 17px 18px;
  border: 1px solid #cbd8d5;
  border-radius: 12px;
  outline: none;
  color: #17353b;
  background: #fcfdfc;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  transition: border .2s, box-shadow .2s;
}
textarea:focus, select:focus, .search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,114,.10); }
.text-action {
  position: absolute; top: 12px; right: 12px;
  border: 0; padding: 7px 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700;
}
.text-action:hover, .example-link:hover { color: var(--accent); }
.field-help { display: flex; justify-content: space-between; gap: 20px; margin: 9px 3px 0; color: #7a8b8e; font-size: 14px; }
.example-link { border: 0; padding: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 14px; font-weight: 750; }
.text-button { border: 0; padding: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.text-button:hover { color: var(--accent-dark); }

.form-options {
  display: grid;
  grid-template-columns: 180px minmax(310px, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-top: 26px;
}
.option-field { border: 0; padding: 0; margin: 0; min-width: 0; }
select {
  width: 100%; height: 46px; padding: 0 38px 0 13px;
  border: 1px solid #cbd8d5; border-radius: 9px; color: var(--ink); outline: none; background: #fff;
}
.segmented { display: inline-grid; grid-template-columns: 1fr 1.25fr; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 9px 17px; border-radius: 7px; text-align: center; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 700; }
.segmented input:checked + label { color: var(--accent-dark); background: #fff; box-shadow: 0 2px 8px rgba(20,60,65,.09); }

.primary-button, .secondary-button, .download-button {
  height: 48px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; font-size: 15px; cursor: pointer; text-decoration: none;
}
.primary-button { padding: 0 21px; border: 1px solid var(--accent); color: #fff; background: var(--accent); }
.primary-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.primary-button svg, .download-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.form-error { min-height: 18px; margin: 12px 0 -8px; color: var(--danger); font-size: 14px; }
.admet-submit-row {
  margin-top: 25px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admet-submit-row p { max-width: 710px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.admet-guide {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 8px 0 22px;
}

.admet-guide article {
  min-height: 82px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.admet-guide svg {
  width: 23px;
  height: 23px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admet-guide strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.admet-guide p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.admet-guide span { margin-top: 0; color: var(--muted); font-size: 16px; font-weight: 600; }
.jump-admet { width: fit-content; }

.job-panel {
  padding: 32px 38px;
  border: 1px solid #bcded6;
  border-radius: var(--radius);
  background: #f5faf8;
}
.job-summary { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.job-summary h2 { font-size: 27px; }
.job-summary > div > p:last-child { color: var(--muted); font-size: 16px; }
.job-meta { text-align: right; }
.job-meta span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.job-meta code { font-size: 13px; }
.progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 14px; padding: 0; list-style: none; }
.progress-steps li { display: flex; align-items: center; gap: 11px; opacity: .38; transition: opacity .2s; }
.progress-steps li.active, .progress-steps li.done { opacity: 1; }
.progress-steps li > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #9cbab4; border-radius: 50%; font-size: 12px; font-weight: 800; }
.progress-steps li.active > span, .progress-steps li.done > span { color: #fff; border-color: var(--accent); background: var(--accent); }
.progress-steps strong, .progress-steps small { display: block; }
.progress-steps strong { font-size: 15px; }
.progress-steps small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: #dce9e6; }
.progress-track span { display: block; width: 7%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .45s ease; }

.job-lookup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
  gap: 20px;
}

.job-lookup-card,
.recent-jobs-card,
.lookup-note {
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 61, 68, .05);
}

.result-history-panel {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.lookup-note {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f7fbfa 0%, #fff 100%);
}

.lookup-note p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.lookup-note strong {
  color: var(--ink);
}

.job-lookup-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, .95fr);
  gap: 24px;
  align-items: center;
}

.job-lookup-card h2,
.recent-jobs-card h2 {
  margin: 0;
  font-size: 24px;
}

.job-lookup-card p:not(.eyebrow):not(.form-error) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.retrieve-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.retrieve-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.retrieve-form input {
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd8d5;
  border-radius: 9px;
  color: var(--ink);
  outline: none;
  font: inherit;
}

.retrieve-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,114,.10); }

.recent-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.recent-jobs-list {
  display: grid;
  gap: 9px;
}

.recent-jobs-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.recent-job {
  width: 100%;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dfe9e6;
  border-radius: 10px;
  background: #f8fbfa;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.recent-job:hover { border-color: #b6d7cf; background: #f1f8f6; }
.recent-job strong,
.recent-job span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-job strong { font-size: 13px; }
.recent-job span { color: var(--muted); font-size: 12px; }
.recent-job small {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e8f4f0;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.results-section { padding-top: 34px; scroll-margin-top: 90px; }
.results-heading { align-items: center; }
.result-actions { display: flex; gap: 10px; }
.secondary-button { padding: 0 16px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.download-button { padding: 0 16px; color: #fff; background: var(--navy); }
.result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.result-metrics article { min-width: 0; padding: 18px 20px; background: #fff; }
.result-metrics span, .result-metrics strong { display: block; }
.result-metrics span { margin-bottom: 7px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.result-metrics strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.result-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, .35fr);
  gap: 14px;
  margin-bottom: 18px;
}
.molecule-card {
  min-width: 0;
  min-height: 260px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(240px, 1.15fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, #fff 0%, #f5faf8 100%);
}
.molecule-figure {
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.molecule-figure img { width: 100%; height: 100%; object-fit: contain; }
.molecule-card span, .compact-metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.molecule-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
}
.compact-metrics { display: grid; gap: 14px; }
.compact-metrics article {
  min-height: 123px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.compact-metrics strong { color: var(--navy); font-family: Georgia, serif; font-size: 27px; font-weight: 500; }

.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.table-toolbar { min-height: 67px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.table-toolbar p { margin: 0; color: var(--muted); font-size: 14px; }
.search-box { width: min(360px, 100%); height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfb; }
.search-box svg { width: 16px; height: 16px; fill: none; stroke: #81918f; stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1450px; }
th { padding: 13px 14px; color: #65777a; background: #f6f8f7; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; cursor: pointer; user-select: none; }
th:hover { color: var(--accent); }
td { padding: 14px; border-top: 1px solid #edf1f0; font-size: 14px; vertical-align: middle; }
tbody tr:hover { background: #f8fbfa; }
.rank-cell { color: var(--muted); font-weight: 800; }
.gene-cell { color: var(--accent-dark); font-weight: 850; }
.protein-cell { max-width: 280px; font-weight: 650; }
.uniprot-cell { font-family: "Cascadia Code", Consolas, monospace; }
.chembl-cell { min-width: 165px; max-width: 250px; line-height: 1.8; }
.classification-cell { min-width: 180px; max-width: 250px; color: #40575c; font-weight: 650; }
.external-link {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.external-link:hover { color: var(--accent); text-decoration: underline; }
.external-link span { margin-left: 3px; font-size: 10px; }
.link-separator { color: #aab7b5; }
.score-cell { font-variant-numeric: tabular-nums; }
.score-main { font-weight: 850; color: var(--navy); }
.support-badge { display: inline-block; min-width: 72px; padding: 6px 9px; border-radius: 99px; text-align: center; color: var(--accent-dark); background: var(--accent-light); font-size: 12px; font-weight: 800; }
.support-badge.moderate { color: #8a591b; background: #f6ead8; }
.support-badge.low, .support-badge.unavailable { color: #6c7778; background: #edf0ef; }
.confidence-badge { display: inline-block; min-width: 82px; padding: 6px 9px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 850; }
.confidence-badge.very-high { color: #075f50; background: #d9f1ea; }
.confidence-badge.high { color: #14695e; background: #e5f3ef; }
.confidence-badge.moderate { color: #8a591b; background: #f6ead8; }
.confidence-badge.low, .confidence-badge.unavailable { color: #6c7778; background: #edf0ef; }
.empty-table { padding: 40px; text-align: center; color: var(--muted); font-size: 15px; }
.result-note { margin: 12px 3px 0; color: #7b898b; font-size: 13px; }
.category-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.category-chip {
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #38545a;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.category-chip:hover { color: var(--accent-dark); border-color: #9bc9c0; background: var(--accent-light); }
.category-chip strong { min-width: 21px; padding: 2px 6px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-light); text-align: center; }
.admet-toolbar { justify-content: flex-start; }
.admet-toolbar select { width: 190px; height: 40px; margin-right: auto; font-size: 14px; }
.admet-table { min-width: 720px; }
.endpoint-cell { max-width: 270px; font-weight: 700; }
.category-label {
  min-width: 145px;
  padding: 6px 9px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  font-weight: 800;
  white-space: nowrap;
}
.category-label b {
  width: 26px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}
.category-label.absorption { color: #1d5c8f; background: #e6f1fa; }
.category-label.absorption b { background: #2e80bd; }
.category-label.distribution { color: #6b4f93; background: #efeafb; }
.category-label.distribution b { background: #8062aa; }
.category-label.metabolism { color: #08705e; background: #dff4ed; }
.category-label.metabolism b { background: #15947c; }
.category-label.excretion { color: #8a5b18; background: #f8eddc; }
.category-label.excretion b { background: #bd7a1f; }
.category-label.toxicity { color: #9a3d46; background: #fae8ea; }
.category-label.toxicity b { background: #c4515d; }
.category-label.general-properties { color: #465a68; background: #e9eef1; }
.category-label.general-properties b { background: #637988; }
.prediction-call { display: inline-block; min-width: 68px; padding: 6px 8px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 800; }
.prediction-call.positive { color: #076b55; background: #dff3eb; }
.prediction-call.negative { color: #795326; background: #f5eadc; }
.prediction-value { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.regression-value { color: var(--navy); font-variant-numeric: tabular-nums; }
.confidence-value { color: var(--navy); font-weight: 750; font-variant-numeric: tabular-nums; }
.unit-cell { color: #52686d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admet-confidence { display: inline-block; min-width: 72px; padding: 6px 9px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 850; }
.admet-confidence.high { color: #075f50; background: #d9f1ea; }
.admet-confidence.moderate { color: #8a591b; background: #f6ead8; }
.admet-confidence.low { color: #8a3e46; background: #f8e5e7; }

.about-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 92px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.contact-section {
  margin-top: 58px;
  margin-bottom: 76px;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(440px, 1fr);
  gap: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

body[data-module="contact"] .page-main {
  min-height: calc(100vh - 194px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(8, 127, 114, .08), transparent 34%),
    linear-gradient(180deg, #fbfcfb 0%, #f4faf8 100%);
}

body[data-module="contact"] .contact-section {
  width: min(1080px, calc(100% - 48px));
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 65px rgba(22, 61, 68, .08);
}

body[data-module="contact"] .contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 127, 114, .08), transparent 22%, transparent 78%, rgba(8, 127, 114, .08)),
    radial-gradient(circle at 50% 0%, rgba(8, 127, 114, .10), transparent 42%);
}

body[data-module="contact"] .contact-section > * {
  position: relative;
  z-index: 1;
}

body[data-module="contact"] .contact-section p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

body[data-module="contact"] .contact-card {
  text-align: center;
}

.contact-section h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
}

.contact-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-card {
  padding: 28px;
  border-radius: 17px;
  background: rgba(244, 250, 248, .78);
  border: 1px solid #cfe1dc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.contact-card strong, .contact-card span { display: block; }
.contact-card strong { color: var(--navy); font-size: 15px; }
.contact-card span { margin-top: 8px; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.contact-card p { margin-top: 16px; font-size: 12px; }
.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-card dl > div {
  min-height: 134px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(8, 127, 114, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .74);
}
.contact-card dl > div:nth-child(3) {
  grid-column: 1 / -1;
}
.contact-card dt {
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.contact-card dd {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}
.contact-card a { color: var(--accent-dark); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.page-contact { min-height: 360px; padding: 54px 38px; }
.about-grid article { border-top: 1px solid #bfcfcb; padding-top: 20px; }
.about-grid h3 { margin: 23px 0 11px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.about-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

footer {
  min-height: 150px;
  padding: 38px clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: #dce9e6;
  background:
    radial-gradient(circle at 50% 0%, rgba(8, 127, 114, .22), transparent 42%),
    linear-gradient(135deg, #0c2b32, #123c43 56%, #0c2f35);
}
footer strong, footer span { display: block; }
footer strong {
  padding: 5px 18px;
  border: 1px solid rgba(223, 242, 237, .22);
  border-radius: 999px;
  color: #effaf7;
  font-size: 21px;
  letter-spacing: .14em;
}
footer span { max-width: 1120px; margin-top: 8px; line-height: 1.55; }
footer span, footer p { color: #bed3cf; font-size: 21px; }
.footer-meta {
  margin-top: 0;
  color: #d8e8e4;
  font-size: 18px;
  font-weight: 700;
}

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 380px; padding: 13px 17px; border-radius: 9px; color: #fff; background: #193b42; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #8d3434; }
.is-hidden { display: none !important; }

@media (max-width: 900px) {
  .header-nav > a { display: none; }
  .brand img { width: 210px; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-visual { display: none; }
  .platform-summary, .service-cards { grid-template-columns: 1fr; }
  .platform-summary article {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px;
    gap: 24px;
  }
  .platform-summary img {
    width: 100%;
    max-width: 100%;
    height: 210px;
    transform: none;
    justify-self: center;
  }
  .platform-summary article:nth-child(1) img,
  .platform-summary article:nth-child(2) img,
  .platform-summary article:nth-child(3) img,
  .platform-summary article:nth-child(4) img {
    width: 100%;
    max-width: 100%;
    height: 230px;
    transform: none;
    object-position: center;
  }
  .contact-card dl {
    grid-template-columns: 1fr;
  }
  .contact-card dl > div:nth-child(3) {
    grid-column: auto;
  }
  .form-options { grid-template-columns: 1fr 1.5fr; }
  .admet-submit-row { align-items: stretch; flex-direction: column; }
  .primary-button { grid-column: 1 / -1; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .result-overview { grid-template-columns: 1fr; }
  .compact-metrics { grid-template-columns: 1fr 1fr; }
  .compact-metrics article { min-height: 100px; }
  .about-grid { gap: 24px; }
  .admet-guide { grid-template-columns: repeat(3, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 17px; }
  .brand img { width: 172px; }
  .brand small { display: none; }
  .service-pill { padding: 7px 9px; }
  #service-label { display: none; }
  .hero { min-height: auto; padding: 48px 22px 40px; }
  h1 { font-size: 43px; }
  .hero-lead { font-size: 17px; }
  .method-strip { flex-wrap: wrap; }
  .method-strip i { display: none; }
  .workspace, .job-panel, .job-lookup-panel, .results-section, .about-grid, .platform-summary, .service-overview, .contact-section { width: calc(100% - 28px); }
  .workspace, .job-panel { padding: 25px 20px; }
  .section-heading, .job-summary, .results-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .form-options { grid-template-columns: 1fr; gap: 20px; }
  .module-picker { grid-template-columns: 1fr; }
  .primary-button { grid-column: auto; width: 100%; }
  .segmented { width: 100%; }
  .job-meta { margin-top: 20px; text-align: left; }
  .job-lookup-panel, .job-lookup-card { grid-template-columns: 1fr; }
  .job-lookup-card, .recent-jobs-card { padding: 22px 18px; }
  .retrieve-form > div { grid-template-columns: 1fr; }
  .progress-steps { gap: 5px; }
  .progress-steps li { display: block; }
  .progress-steps li > span { margin-bottom: 7px; }
  .progress-steps small { display: none; }
  .result-actions { margin-top: 20px; }
  .result-metrics { grid-template-columns: 1fr; }
  .molecule-card { grid-template-columns: 1fr; padding: 18px; }
  .molecule-figure { height: 190px; }
  .compact-metrics { grid-template-columns: 1fr 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .about-grid { grid-template-columns: 1fr; margin: 60px auto; }
  .admet-guide { grid-template-columns: 1fr 1fr; }
  .service-card strong { font-size: 24px; }
  footer { align-items: center; flex-direction: column; }
}
