:root {
  --bg: #f6f8fb;
  --bg-soft: #eef3f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-strong: #f8fbff;
  --ink: #102033;
  --muted: #718198;
  --muted-2: #9aa8ba;
  --hint: #8fa0b4;
  --line: #dce6f1;
  --line-strong: #c8d7e7;
  --primary: #155e75;
  --primary-2: #0f766e;
  --primary-3: #0891b2;
  --accent: #22c55e;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow-sm: 0 8px 24px rgba(16, 32, 51, 0.08);
  --shadow-md: 0 18px 55px rgba(16, 32, 51, 0.13);
  --radius-lg: 20px;
  --radius-md: 20px;
  --radius-sm: 20px;
  --max-width: 1180px;
  --focus: 0 0 0 4px rgba(8, 145, 178, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 197, 94, 0.12), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(8, 145, 178, 0.14), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 45%, #f3f7fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.12) 56%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.76);
  border-bottom: 1px solid rgba(220, 230, 241, 0.85);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(16, 32, 51, 0.08));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(220, 230, 241, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 18px rgba(16, 32, 51, 0.05);
}

.nav-links a {
  color: #38506b;
  font-weight: 650;
  font-size: 0.86rem;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: #083344;
  background: #e9f7f7;
  outline: none;
}

.page {
  position: relative;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 50px;
}

.intro-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: center;
  padding: 40px 42px;
  border: 1px solid rgba(200, 215, 231, 0.8);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240, 248, 252, 0.88)),
    radial-gradient(circle at 82% 18%, rgba(34,197,94,0.14), transparent 34%);
  box-shadow: var(--shadow-md);
}

.intro-band::after {
  content: "";
  position: absolute;
  inset: auto -110px -150px auto;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  border: 56px solid rgba(8, 145, 178, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
}

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

h1 {
  margin-bottom: 9px;
  max-width: 760px;
  color: #0b1f32;
  font-size: clamp(1.36rem, 2.15vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--hint);
  font-size: 0.95rem;
  line-height: 1.48;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #1f3d55;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(200, 215, 231, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-3);
}

.hero-logo-panel {
  position: relative;
  z-index: 1;
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-logo-panel::before,
.hero-logo-panel::after {
  content: none;
}

.hero-logo-full {
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(16, 32, 51, 0.11));
}

.hero-mark .mark-soft-ring {
  fill: rgba(8, 145, 178, 0.08);
}

.hero-mark .mark-ring {
  fill: rgba(58, 143, 212, 0.10);
  stroke: #3a8fd4;
  stroke-width: 2.1;
}

.hero-mark .mark-line-muted {
  fill: none;
  stroke: #1a4d8c;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.28;
}

.hero-mark .mark-line-main {
  fill: none;
  stroke: #3a8fd4;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.hero-mark .mark-line-fine {
  fill: none;
  stroke: #3a8fd4;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.hero-mark .mark-dot {
  fill: #3a8fd4;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
}

.workflow-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.workflow-index {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ecfeff;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.18);
}

.workflow-card strong {
  display: block;
  margin-bottom: 4px;
  color: #18324a;
  font-size: 0.96rem;
}

.workflow-card span {
  color: var(--hint);
  font-size: 0.9rem;
  line-height: 1.55;
}

.workflow-card .workflow-index {
  color: #ffffff;
}

.analysis-form {
  display: grid;
  gap: 20px;
}

.form-section,
.upload-progress,
.form-actions {
  border: 1px solid rgba(220, 230, 241, 0.96);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-section {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
}

.wide-section {
  grid-template-columns: 1fr;
}

.section-content {
  min-width: 0;
}

.section-heading h2 {
  margin-bottom: 8px;
  color: #13283d;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--hint);
  font-size: 0.95rem;
  line-height: 1.6;
}

.file-drop {
  position: relative;
  min-height: 232px;
  padding: 22px;
  border: 1.5px dashed #b8ccdf;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(239, 248, 250, 0.9)),
    radial-gradient(circle at 12% 12%, rgba(34, 197, 94, 0.1), transparent 30%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--primary-3);
  background:
    linear-gradient(180deg, rgba(247, 253, 255, 0.98), rgba(236, 253, 245, 0.88)),
    radial-gradient(circle at 12% 12%, rgba(34, 197, 94, 0.16), transparent 34%);
  box-shadow: 0 16px 45px rgba(8, 145, 178, 0.12);
  transform: translateY(-1px);
}

.file-drop > span {
  display: block;
  margin-bottom: 8px;
  color: #102033;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.file-drop p {
  margin: 0 0 18px;
  max-width: 560px;
  color: var(--hint);
  font-size: 0.95rem;
  line-height: 1.62;
}

.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.file-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.file-select-button,
.file-clear-button,
.form-actions button,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.file-select-button,
.form-actions button {
  color: #ecfeff;
  background: linear-gradient(135deg, #155e75, #0891b2);
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.22);
}

.file-select-button:hover,
.form-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.26);
}

.file-clear-button,
.secondary-action {
  color: #21445c;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
}

.file-clear-button:hover,
.secondary-action:hover {
  color: #083344;
  border-color: #9fc2d8;
  background: #f1fbfd;
  transform: translateY(-1px);
}

button:disabled,
.file-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.file-selection-status {
  color: #31516a;
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 230, 241, 0.9);
}

.file-selection-status.selection-warning {
  color: var(--danger);
  background: #fff1f2;
  border-color: #fecdd3;
}

.file-drop small {
  display: block;
  color: var(--muted-2);
  line-height: 1.45;
}

.selected-file-list {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.selected-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  color: #223a51;
  font-size: 0.9rem;
  line-height: 1.35;
  border: 1px solid rgba(220, 230, 241, 0.88);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
}

.selected-file-list li::before {
  content: "GB";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 25px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  background: #e6f7f9;
}

.file-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.field-grid {
  display: grid;
  gap: 18px;
}

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

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

.four-col {
  grid-template-columns: 1.4fr 0.82fr 0.82fr 0.9fr;
  align-items: end;
}

.field,
.check-field {
  display: grid;
  gap: 9px;
}

.field span,
.check-field span {
  color: #30485f;
  font-size: 0.88rem;
  font-weight: 780;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: #13283d;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.field input:hover,
.field select:hover {
  border-color: #9fc2d8;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary-3);
  box-shadow: var(--focus);
  background: #ffffff;
}

.field input::placeholder {
  color: var(--muted-2);
}

.check-field {
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-2);
}

.primer-design-panel {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.primer-design-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
}

.primer-design-toggle span {
  line-height: 1.35;
}

.primer-settings {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.primer-settings legend {
  margin: 0 0 10px;
  padding: 0;
  color: #30485f;
  font-size: 0.88rem;
  font-weight: 800;
}

.primer-settings:disabled {
  opacity: 0.58;
}

.primer-settings:disabled input {
  cursor: not-allowed;
}

.parameter-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: var(--hint);
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: nowrap;
  border: 1px solid rgba(220, 230, 241, 0.88);
  border-radius: var(--radius-sm);
  background: #f8fbff;
}

.upload-progress {
  padding: 24px 28px;
}

.upload-progress-header,
.upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.upload-progress-header strong {
  color: #18324a;
  font-size: 1rem;
}

.upload-progress-header span,
.upload-progress-meta span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  margin: 16px 0 12px;
  border-radius: 999px;
  background: #e5edf5;
  box-shadow: inset 0 1px 2px rgba(16,32,51,0.08);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary-3));
  transition: width 180ms ease;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.form-actions button {
  min-width: 190px;
  min-height: 52px;
  font-size: 1rem;
}

.secondary-action {
  min-height: 52px;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 4px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--primary);
  font-weight: 750;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .intro-band {
    grid-template-columns: 1fr;
    padding: 32px 28px;
  }

  .hero-logo-panel {
    min-height: 150px;
  }

  .parameter-note {
    white-space: normal;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .form-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 680px) {
  .header-inner,
  .page,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .brand-logo {
    height: 42px;
  }

  .nav-links a {
    padding: 11px 12px;
    font-size: 0.82rem;
  }

  .page {
    padding-top: 22px;
  }

  .intro-band {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
  }

  .hero-logo-panel {
    display: none;
  }

  .form-section,
  .upload-progress,
  .form-actions {
    border-radius: var(--radius-lg);
  }

  .form-section {
    padding: 22px;
  }

  .file-drop {
    padding: 20px;
  }

  .two-col,
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions button,
  .secondary-action {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Compact vertical rhythm refinement */
.page {
  padding: 28px 0 42px;
}

.intro-band {
  padding-top: 36px;
  padding-bottom: 36px;
}

.eyebrow {
  margin-bottom: 8px;
}

h1 {
  margin-bottom: 7px;
}

.lead {
  margin-bottom: 14px;
  line-height: 1.42;
}

.hero-meta {
  gap: 8px;
}

.hero-meta li {
  padding: 7px 11px;
}

.workflow-strip {
  gap: 12px;
  margin: 16px 0 16px;
}

.workflow-card {
  gap: 12px;
  padding: 15px 16px;
}

.workflow-index {
  width: 31px;
  height: 31px;
  border-radius: var(--radius-sm);
}

.workflow-card strong {
  margin-bottom: 2px;
}

.workflow-card span {
  line-height: 1.42;
}

.analysis-form {
  gap: 14px;
}

.form-section {
  gap: 22px;
  padding: 24px 26px;
}

.section-heading h2 {
  margin-bottom: 5px;
}

.section-heading p {
  line-height: 1.45;
}

.file-drop {
  min-height: 210px;
  padding: 19px 20px;
}

.file-drop > span {
  margin-bottom: 5px;
}

.file-drop p {
  margin-bottom: 13px;
  line-height: 1.45;
}

.file-picker-row {
  gap: 10px;
  margin-bottom: 9px;
}

.file-select-button,
.file-clear-button,
.form-actions button,
.secondary-action {
  min-height: 43px;
  padding-left: 17px;
  padding-right: 17px;
}

.file-selection-status {
  padding: 7px 11px;
}

.selected-file-list {
  gap: 6px;
  margin-top: 12px;
}

.selected-file-list li {
  padding: 9px 12px;
}

.field-grid {
  gap: 14px;
}

.field,
.check-field {
  gap: 7px;
}

.field input,
.field select {
  height: 46px;
}

.check-field {
  min-height: 46px;
  padding: 11px 13px;
}

.parameter-note {
  margin-top: 11px;
  padding: 10px 13px;
  line-height: 1.34;
}

.upload-progress {
  padding: 20px 24px;
}

.progress-track {
  margin: 12px 0 9px;
}

.form-actions {
  padding: 19px 22px;
}

.form-actions button,
.secondary-action {
  min-height: 48px;
}

.site-footer {
  padding-bottom: 28px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .intro-band {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .workflow-strip {
    gap: 12px;
  }

  .form-section {
    gap: 16px;
    padding: 23px 24px;
  }
}

@media (max-width: 680px) {
  .page {
    padding-top: 18px;
  }

  .intro-band {
    padding: 24px 22px;
  }

  .form-section {
    padding: 19px;
  }

  .file-drop {
    padding: 18px;
  }

  .form-actions {
    padding: 18px;
  }
}

.alert {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.88);
}

.alert-error {
  color: var(--danger);
  border-color: #fecdd3;
  background: #fff1f2;
}

.alert-info {
  color: #155e75;
  border-color: #bae6fd;
  background: #ecfeff;
}

.result-page,
.narrow-page {
  display: grid;
  gap: 16px;
}

.narrow-page {
  max-width: 820px;
}

.example-page,
.help-page {
  max-width: 1120px;
}

.status-header,
.lookup-form {
  border: 1px solid rgba(220, 230, 241, 0.96);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.status-header {
  padding: 24px 26px;
}

.status-header h1 {
  margin-bottom: 5px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.queued {
  color: var(--warning);
  border-color: #fed7aa;
  background: #fff7ed;
}

.status-badge.running {
  color: var(--primary);
  border-color: #bae6fd;
  background: #ecfeff;
}

.status-badge.succeeded {
  color: var(--primary-2);
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.status-badge.failed,
.status-badge.expired {
  color: var(--danger);
  border-color: #fecdd3;
  background: #fff1f2;
}

.job-id {
  margin-bottom: 0;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-grid div,
figure,
.download-list a:not(.button-link) {
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.summary-grid div {
  padding: 15px 16px;
}

.summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.summary-grid strong {
  display: block;
  color: #18324a;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.runtime-panel {
  display: grid;
  gap: 14px;
}

.runtime-primary {
  padding: 16px 18px;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}

.runtime-primary span,
.runtime-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.runtime-primary strong {
  color: #083344;
  font-size: 1.45rem;
  line-height: 1.2;
}

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

.runtime-grid div {
  padding: 12px 13px;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.runtime-grid strong {
  display: block;
  color: #18324a;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.parameter-list,
.detail-list {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.parameter-list dt,
.parameter-list dd,
.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(220, 230, 241, 0.86);
}

.parameter-list dt,
.detail-list dt {
  color: #30485f;
  font-weight: 800;
  background: #f8fbff;
}

.parameter-list dd,
.detail-list dd {
  color: #18324a;
  overflow-wrap: anywhere;
}

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

.parameter-item {
  display: grid;
  grid-template-columns: minmax(140px, max-content) minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.parameter-item dt,
.parameter-item dd {
  margin: 0;
  padding: 10px 12px;
}

.parameter-item dt {
  color: #30485f;
  font-weight: 800;
  background: #f8fbff;
}

.parameter-item dd {
  min-width: 0;
  color: #18324a;
  overflow-wrap: anywhere;
}

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

.result-figures-section .figure-grid {
  grid-template-columns: 1fr;
  justify-items: start;
}

.result-figures-section figure {
  width: 100%;
}

figure {
  margin: 0;
  padding: 12px;
}

figure img {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.hotspot-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.9rem;
}

.hotspot-table th,
.hotspot-table td {
  padding: 8px;
  border: 1px solid #dce6f1;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.hotspot-table th {
  color: #30485f;
  background: #eef5fb;
}

.hotspot-table tfoot td {
  padding: 11px 12px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
  background: #f9fafb;
}

.hotspot-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.candidate-marker-section .hotspot-table {
  min-width: 880px;
}

.button-link.table-action,
.table-action {
  min-height: 26px;
  padding: 2px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: none;
  white-space: nowrap;
}

.button-link.table-action:hover,
.table-action:hover {
  transform: none;
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.18);
}

.diagnostic-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: #4b5563;
  background: #f9fafb;
  font-size: 0.88rem;
  font-weight: 700;
}

.insufficient-replicates {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

.download-list a:not(.button-link) {
  padding: 10px 13px;
  color: #21445c;
  font-weight: 750;
}

.download-list a:not(.button-link):hover {
  color: #083344;
  border-color: #9fc2d8;
  background: #f1fbfd;
}

.example-hero .lead {
  max-width: 860px;
}

.example-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.example-meta-grid div,
.example-note,
.help-callout,
.help-figure-panel {
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.example-meta-grid dt,
.example-meta-grid dd {
  margin: 0;
}

.example-meta-grid div {
  padding: 12px 13px;
}

.example-meta-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.example-meta-grid dd {
  color: #18324a;
  font-size: 0.92rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.file-token {
  display: inline;
  color: #14384f;
  font-family: inherit;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.example-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.example-note {
  padding: 16px;
}

.example-note strong {
  display: block;
  margin-bottom: 8px;
  color: #18324a;
}

.example-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.example-plot-grid > div:last-child {
  grid-column: 1 / -1;
}

.example-section h3,
.help-page h3 {
  margin: 0 0 10px;
  color: #18324a;
  font-size: 0.98rem;
  line-height: 1.25;
}

.help-visual-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}

.help-callout {
  padding: 16px;
}

.help-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #18324a;
}

.help-callout p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.help-callout p + p {
  margin-top: 10px;
}

.help-figure-panel {
  margin: 0;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.help-workflow {
  margin: 0;
}

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

.faq-list article {
  padding: 16px;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-toc a {
  padding: 8px 10px;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: var(--radius-sm);
  color: #21445c;
  font-size: 0.88rem;
  font-weight: 800;
  background: #ffffff;
}

.help-toc a:hover {
  border-color: #9fc2d8;
  color: #083344;
}

.button-link,
.lookup-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ecfeff;
  font-weight: 800;
  background: linear-gradient(135deg, #155e75, #0891b2);
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.22);
}

.button-link:hover,
.lookup-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.26);
}

.lookup-form {
  display: grid;
  gap: 14px;
  padding: 24px 26px;
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.form-section > h2 {
  margin: 0;
  color: #13283d;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

@media (max-width: 980px) {
  .summary-grid,
  .example-meta-grid,
  .example-two-col,
  .example-plot-grid,
  .help-visual-grid,
  .figure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .summary-grid,
  .example-meta-grid,
  .example-two-col,
  .example-plot-grid,
  .help-visual-grid,
  .figure-grid,
  .runtime-grid,
  .parameter-list,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .status-header,
  .lookup-form {
    border-radius: var(--radius-lg);
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .parameter-grid,
  .parameter-item {
    grid-template-columns: 1fr;
  }
}
