:root {
  --ias-blue: #0657d7;
  --ias-blue-2: #0b7cff;
  --ias-cyan: #61d4ff;
  --ias-indigo: #113f8c;
  --ias-dark: #030712;
  --ias-navy: #071a33;
  --ias-slate: #1f2937;
  --ias-muted: #64748b;
  --ias-line: #e5edf6;
  --ias-bg: #f4f8ff;
  --ias-panel: rgba(255,255,255,.82);
  --ias-red: #ba0000;
  --radius-xl: 26px;
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, .08);
  --shadow-blue: 0 18px 42px rgba(6, 87, 215, .20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f3f7ff 0%, #f8fbff 100%);
  color: var(--ias-slate);
  font-size: 16px;
  line-height: 1.7;
}
body::selection { background: rgba(6, 87, 215, .18); }
a { color: inherit; text-decoration: none; transition: all .25s ease; }
button, input, select { font: inherit; }
.container-fluid { width: 100%; }
.shell-wide { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, .84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.nav-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}
.navbar-brand img { height: 38px; width: auto; border-radius: 8px; background: white; }
.nav-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; flex: 1; }
.nav-menu a {
  color: rgba(255,255,255,.9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 3px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-bottom-color: var(--ias-cyan);
  transform: translateY(-1px);
}
.nav-portal {
  color: white;
  background: linear-gradient(135deg, var(--ias-blue), var(--ias-blue-2));
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(6, 87, 215, .28);
}
.nav-toggle { display: none; background: transparent; color: white; border: 0; font-size: 22px; }

.page { display: none; }
.page.active { display: block; }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #020617 0%, #071a33 28%, #053c9c 58%, #0b7cff 100%);
  padding: 135px 28px 88px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 28%, rgba(97,212,255,.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.12), transparent 24%),
    radial-gradient(circle at 58% 82%, rgba(6,87,215,.28), transparent 32%);
  animation: heroFloat 14s ease-in-out infinite;
  pointer-events: none;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 92%);
  pointer-events: none;
}
.hero-section > * { position: relative; z-index: 1; }
@keyframes heroFloat { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(1.5%, -1%, 0) rotate(1deg); } }
.hero-title { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 68px; font-weight: 950; letter-spacing: 2px; text-shadow: 0 8px 30px rgba(0,0,0,.22); }
.hero-title img { height: 116px; width: auto; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 18px 42px rgba(0,0,0,.20); }
.hero-version { display: inline-block; background: linear-gradient(135deg, #67e8f9, #8fc7ff); color: #04111f; padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 900; box-shadow: 0 8px 24px rgba(97,212,255,.32); }
.hero-subtitle { font-size: 26px; font-weight: 600; opacity: .97; margin-top: 16px; }
.hero-desc { max-width: 1020px; margin: 30px auto 0; font-size: 18px; line-height: 1.95; opacity: .92; }
.hero-badges { margin-top: 32px; }
.badge-item { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.10); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); padding: 8px 20px; border-radius: 30px; margin: 6px 8px; font-size: 13px; font-weight: 700; }
.badge-item:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.hero-buttons { margin-top: 40px; }
.btn-hero { padding: 16px 38px; font-size: 17px; font-weight: 800; border-radius: 999px; border: none; margin: 8px 12px; display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden; }
.btn-hero::before { content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-hero:hover::before { left: 130%; }
.btn-hero-primary { background: linear-gradient(135deg, #67e8f9, #8fc7ff); color: #04111f; box-shadow: 0 12px 32px rgba(97,212,255,.32); }
.btn-hero-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(97,212,255,.42); }
.btn-hero-outline { background: rgba(255,255,255,.06); color: white; border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(8px); }
.btn-hero-outline:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }

/* Stats */
.stats-wrap { max-width: 1380px; margin: -60px auto 0; padding: 0 24px; position: relative; z-index: 10; }
.stats-bar { background: rgba(255,255,255,0.78); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.78); border-radius: 24px; box-shadow: 0 14px 36px rgba(6,87,215,.08); padding: 18px 10px; }
.stats-row { display: grid; gap: 8px; }
.stats-row-4 { grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 12px 8px; position: relative; border-radius: 16px; transition: all .22s ease; }
.stat-item:hover { background: rgba(6,87,215,.06); transform: translateY(-2px); }
.stat-item:not(:last-child)::after { content: ""; position: absolute; top: 20%; right: 0; width: 1px; height: 60%; background: linear-gradient(to bottom, transparent, rgba(6,87,215,.12), transparent); }
.stat-number { font-size: 48px; line-height: 1; font-weight: 950; color: var(--ias-blue); letter-spacing: -0.8px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; line-height: 1.4; font-weight: 800; color: #5f6b7a; max-width: 210px; margin: 0 auto; }

.section-title { text-align: center; padding: 70px 0 16px; }
.section-title.compact { padding-top: 40px; }
.section-title h2 { font-size: 40px; font-weight: 900; color: #071a33; margin: 0 0 10px; }
.section-title p { color: #6b7280; font-size: 17px; max-width: 880px; margin: 10px auto 0; line-height: 1.85; }

/* Cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card, .download-card, .pipeline-step, .panel-section, .shared-upload-panel, .result-panel, .install-card, .doc-section {
  opacity: 0;
  transform: translateY(24px);
}
.show-card { opacity: 1 !important; transform: translateY(0) !important; transition: all .72s cubic-bezier(.2,.8,.2,1); }
.feature-card { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-radius: 22px; padding: 36px 28px; text-align: center; box-shadow: 0 10px 28px rgba(15,23,42,.06); border: 1px solid rgba(255,255,255,.76); min-height: 310px; }
.feature-card:hover { transform: translateY(-10px) rotateX(2deg); box-shadow: 0 22px 48px rgba(6,87,215,.15); border-color: rgba(6,87,215,.35); }
.feature-icon { width: 78px; height: 78px; border-radius: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; color: white; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.icon-blue { background: linear-gradient(135deg, #0657d7, #0b7cff); }
.icon-cyan { background: linear-gradient(135deg, #0b7cff, #61d4ff); }
.icon-indigo { background: linear-gradient(135deg, #113f8c, #051c46); }
.icon-black { background: linear-gradient(135deg, #030712, #334155); }
.icon-red { background: linear-gradient(135deg, #ba0000, #ef4444); }
.icon-slate { background: linear-gradient(135deg, #475569, #0f172a); }
.feature-card h4 { font-weight: 900; font-size: 21px; color: #071a33; margin: 0 0 12px; }
.feature-card p { font-size: 15px; color: #5b6472; line-height: 1.9; }
.pipeline-wrap { margin-top: 24px; }
.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pipeline-step { background: white; border-radius: 16px; padding: 28px 20px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,.05); border-left: 4px solid var(--ias-blue); transition: all .3s; }
.pipeline-step:hover { transform: translateX(6px); box-shadow: 0 6px 25px rgba(6,87,215,.12); }
.pipeline-num { display: inline-block; width: 38px; height: 38px; line-height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--ias-blue), var(--ias-blue-2)); color: white; font-weight: 900; margin-bottom: 10px; }

/* Run Workbench */
.run-workbench { max-width: 1560px; margin: 0 auto; padding: 32px 18px 44px; }
.run-page-header { margin-bottom: 18px; }
.run-page-header h2 { font-size: 34px; font-weight: 950; color: #071a33; margin: 0 0 8px; }
.run-page-header p { font-size: 16px; color: #6b7280; margin: 0; line-height: 1.8; }
.nav-pills { display: flex; gap: 16px; margin: 24px 0 30px; padding: 12px; background: linear-gradient(135deg, rgba(235,245,255,.94), rgba(241,247,255,.94)); border: 1px solid rgba(6,87,215,.16); border-radius: 26px; box-shadow: 0 18px 42px rgba(15,23,42,.08); list-style: none; }
.nav-pills > li { flex: 1 1 0; text-align: center; }
.nav-pills > li > a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 68px; border-radius: 20px; color: #071a33; font-size: 20px; font-weight: 950; padding: 18px 28px; background: rgba(255,255,255,.84); border: 1px solid rgba(6,87,215,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 22px rgba(15,23,42,.04); }
.nav-pills > li > a:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 14px 30px rgba(6,87,215,.12); }
.nav-pills > li.active > a { background: linear-gradient(135deg, #030712, #0647b7 42%, #0b7cff); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); transform: translateY(-2px); }
.cloud-workflow { position: relative; width: 100%; padding: 28px 26px 18px; margin: 18px 0 28px; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,252,255,.98)); border: 1px solid #e8eef6; border-radius: 24px; box-shadow: 0 14px 34px rgba(15,23,42,.05); overflow-x: auto; }
.cloud-progress-bar-bg { position: absolute; left: 78px; right: 78px; top: 47px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #e9eef6 0%, #eef3f9 100%); overflow: hidden; z-index: 0; }
.cloud-progress-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #030712 0%, #0657d7 55%, #61d4ff 100%); box-shadow: 0 4px 14px rgba(6,87,215,.35); transition: width .35s ease; }
.cloud-steps-row { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-width: 1180px; }
.cloud-step-item { flex: 1 1 0; min-width: 180px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #8a94a6; transition: all .25s ease; }
.cloud-step-dot { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, #f3f6f9, #e9eef3); border: 2px solid #dbe4ea; color: #6b7280; font-size: 16px; font-weight: 950; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.03); }
.cloud-step-text-wrap { margin-top: 14px; }
.cloud-step-title { font-size: 16px; font-weight: 950; line-height: 1.35; color: inherit; white-space: nowrap; }
.cloud-step-subtitle { margin-top: 5px; font-size: 12px; font-weight: 700; color: #98a2b3; white-space: nowrap; }
.cloud-step-item.done { color: var(--ias-blue); }
.cloud-step-item.done .cloud-step-dot { background: linear-gradient(135deg, #eef6ff, #dbeafe); border-color: #93c5fd; color: var(--ias-blue); box-shadow: 0 8px 18px rgba(6,87,215,.16); }
.cloud-step-item.active { color: #071a33; }
.cloud-step-item.active .cloud-step-dot { background: linear-gradient(135deg, #030712 0%, #0657d7 60%, #61d4ff 100%); border-color: #0b7cff; color: #fff; transform: scale(1.08); box-shadow: 0 12px 26px rgba(6,87,215,.32); }
.run-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(410px, .65fr); gap: 22px; align-items: start; }
.control-panel, .result-panel, .shared-upload-panel { background: rgba(255,255,255,0.84); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.76); border-radius: 24px; box-shadow: var(--shadow-soft); }
.control-panel { padding: 18px; }
.shared-upload-panel { padding: 18px 18px 4px; margin: 0 0 20px; }
.result-panel { padding: 20px 22px; min-height: 760px; position: sticky; top: 90px; }
.run-tab-panel { display: none; }
.run-tab-panel.active { display: block; }
.panel-section { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.98)); border: 1px solid #edf2f7; border-radius: 20px; padding: 18px; margin-bottom: 20px; box-shadow: 0 7px 18px rgba(15,23,42,.035); }
.panel-title { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.panel-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, #edf6ff, #dbeafe); color: var(--ias-blue); font-weight: 950; }
.panel-title h3 { margin: 0; color: #071a33; font-size: 19px; font-weight: 950; }
.panel-title p { margin: 3px 0 0; color: var(--ias-muted); font-size: 13px; }
.analysis-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.analysis-card { cursor: pointer; border: 1px solid #e1eaf5; border-radius: 18px; background: #fff; padding: 18px 12px; min-height: 134px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; transition: all .22s ease; }
.analysis-card input { position: absolute; opacity: 0; pointer-events: none; }
.analysis-card i { font-size: 24px; color: var(--ias-blue); }
.analysis-card b { color: #071a33; font-weight: 950; }
.analysis-card span { font-size: 12px; color: #667085; }
.analysis-card:hover, .analysis-card.selected { border-color: #93c5fd; box-shadow: 0 12px 28px rgba(6,87,215,.10); transform: translateY(-2px); background: linear-gradient(180deg, #fff, #f5f9ff); }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.upload-grid.always-upload { grid-template-columns: 1fr; }
.upload-box { border: 1.5px dashed #bcd0e7; border-radius: 18px; background: rgba(245,249,255,.88); min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; color: #334155; transition: all .22s ease; text-align: center; }
.upload-box.wide { grid-column: 1 / -1; }
.upload-box:hover { border-color: var(--ias-blue); background: #fff; box-shadow: 0 12px 26px rgba(6,87,215,.08); }
.upload-box i { color: var(--ias-blue); font-size: 26px; }
.upload-box input { width: 100%; max-width: 260px; font-size: 13px; }
.form-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
label { font-weight: 800; color: #344054; font-size: 13px; }
input, select { width: 100%; min-height: 44px; margin-top: 7px; border: 1px solid #dfe7ee; border-radius: 12px; padding: 9px 12px; background: #fff; color: #1f2937; outline: none; box-shadow: none; }
input:focus, select:focus { border-color: var(--ias-blue); box-shadow: 0 0 0 4px rgba(6,87,215,.12); }
.check-row { display: flex; flex-wrap: wrap; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #f7faff; border: 1px solid #e7eef8; }
.check input { min-height: auto; width: auto; margin: 0; }
.run-submit-bar { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding: 10px 0 2px; }
.btn-main, .btn-ghost, .secondary-btn, .primary-link { border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; cursor: pointer; }
.btn-main { background: linear-gradient(135deg, #030712, #0657d7 48%, #0b7cff); color: #fff; padding: 14px 28px; box-shadow: var(--shadow-blue); }
.btn-main:hover { transform: translateY(-2px); }
.btn-ghost, .secondary-btn { background: #f3f7ff; color: #0b376d; padding: 12px 20px; border: 1px solid #d8e6f7; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-top h3 { margin: 0; color: #071a33; font-size: 21px; font-weight: 950; }
.result-top p { margin: 4px 0 0; color: var(--ias-muted); font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 8px 14px; border-radius: 999px; font-weight: 950; font-size: 13px; border: 1px solid #dfe7ee; background: #f8fafc; color: #64748b; text-transform: uppercase; }
.status-pill.running, .status-pill.queued { background: #eff6ff; color: #0657d7; border-color: #bfdbfe; }
.status-pill.success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-pill.failed, .status-pill.cancelled { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.result-meta { display: flex; flex-direction: column; gap: 3px; color: #667085; font-size: 12px; margin: 18px 0; }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.primary-link { background: linear-gradient(135deg, var(--ias-blue), var(--ias-blue-2)); color: white; padding: 12px 18px; box-shadow: 0 10px 22px rgba(6,87,215,.18); }
.primary-link.disabled { pointer-events: none; opacity: .45; }
.log-box { min-height: 560px; max-height: 620px; overflow: auto; padding: 16px; margin: 0; background: #101827; color: #dbeafe; border-radius: 16px; font-family: "Fira Code", monospace; font-size: 12px; line-height: 1.65; white-space: pre-wrap; border: 1px solid #1e293b; }

/* Download / Docs */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.download-card { background: #fff; border-radius: 18px; padding: 36px 28px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 2px solid #f0f4f9; transition: all .35s; }
.download-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(6,87,215,.12); border-color: #93c5fd; }
.os-icon { font-size: 48px; margin-bottom: 16px; color: var(--ias-blue); }
.download-card h4 { font-weight: 900; color: #071a33; margin: 0 0 6px; }
.version-tag { display: inline-block; background: #eaf4ff; color: var(--ias-blue); padding: 3px 12px; border-radius: 12px; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.btn-download { display: inline-flex; align-items: center; gap: 8px; padding: 12px 30px; border-radius: 30px; font-weight: 800; font-size: 14px; margin-top: 8px; }
.btn-download-primary { background: linear-gradient(135deg, #030712, #0657d7); color: white; box-shadow: 0 4px 15px rgba(6,87,215,.25); }
.install-card { margin: 28px 0; background: #fff; border: 1px solid #e8eef6; border-radius: 18px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.install-card h3 { margin: 0 0 12px; color: #071a33; }
.code-block { background: #101827; border-radius: 14px; padding: 20px 24px; color: #e0e7ff; font-family: "Fira Code", monospace; font-size: 13px; line-height: 1.8; overflow-x: auto; margin: 14px 0; }
.code-block .prompt { color: var(--ias-cyan); }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 42px; }
.docs-sidebar { position: sticky; top: 96px; align-self: start; background: rgba(255,255,255,.86); border: 1px solid #e8eef6; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-soft); }
.docs-sidebar a { display: block; padding: 10px 12px; border-radius: 12px; font-weight: 800; color: #334155; }
.docs-sidebar a:hover { background: #eff6ff; color: var(--ias-blue); }
.doc-section { background: #fff; border: 1px solid #e8eef6; border-radius: 20px; padding: 26px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(15,23,42,.04); }
.doc-section h2 { color: #071a33; margin-top: 0; }
.site-footer { background: linear-gradient(135deg, #030712, #071a33); color: rgba(255,255,255,.70); padding: 42px 20px 22px; margin-top: 60px; text-align: center; }
.site-footer a { color: #61d4ff; }
.footer-links { margin-bottom: 16px; }
.footer-links a { margin: 0 14px; font-size: 14px; font-weight: 700; }

@media (max-width: 1280px) {
  .run-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .stats-row-4, .download-grid, .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid.three { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; padding: 10px 18px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 14px; }
  .nav-portal { display: none; }
  .hero-title { font-size: 46px; flex-direction: column; }
  .hero-title img { height: 92px; }
  .hero-subtitle { font-size: 20px; }
  .stats-row-4, .feature-grid, .download-grid, .pipeline-grid, .analysis-cards, .upload-grid, .form-grid.two, .form-grid.four { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .nav-pills { flex-direction: column; }
}

/* v0.3 refinements */
.navbar-brand { min-width: auto; padding-right: 6px; }
.navbar-brand img { height: 46px; border-radius: 10px; }
.hero-title { gap: 18px; }
.hero-title img { height: 142px; border-radius: 18px; }
.hero-version { align-self: flex-end; margin-bottom: 18px; }
.download-grid { grid-template-columns: repeat(4, 1fr); }
.result-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.result-mini-card { background: linear-gradient(180deg, #ffffff, #f6f9ff); border: 1px solid #e1eaf5; border-radius: 16px; padding: 12px 12px; min-height: 72px; }
.result-mini-card span { display: block; color: #667085; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.result-mini-card b { display: block; color: #071a33; font-size: 16px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-tabs { display: flex; gap: 8px; margin: 16px 0 12px; padding: 8px; background: #f3f7ff; border: 1px solid #dbe8f7; border-radius: 16px; }
.result-tab { flex: 1; min-height: 42px; border: 0; border-radius: 12px; background: transparent; color: #344054; font-weight: 900; cursor: pointer; transition: all .2s ease; }
.result-tab:hover { background: rgba(255,255,255,.8); }
.result-tab.active { background: linear-gradient(135deg, #030712, #0657d7); color: #fff; box-shadow: 0 8px 18px rgba(6,87,215,.18); }
.result-tab-panel { display: none; }
.result-tab-panel.active { display: block; }
.file-catalog { max-height: 560px; overflow: auto; padding-right: 4px; }
.file-catalog.empty { min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; color: #667085; background: #f8fbff; border: 1px dashed #bfd4ee; border-radius: 16px; padding: 24px; line-height: 1.8; }
.file-group { margin-bottom: 14px; border: 1px solid #e6edf7; border-radius: 16px; overflow: hidden; background: #fff; }
.file-group-title { display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: linear-gradient(180deg, #f7faff, #eff6ff); color: #0b376d; font-weight: 950; border-bottom: 1px solid #e6edf7; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 13px; border-bottom: 1px solid #f0f4f8; }
.file-row:last-child { border-bottom: 0; }
.file-name { font-family: "Fira Code", monospace; font-size: 12px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: #667085; font-size: 12px; font-weight: 700; }
.file-download { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: #eef6ff; color: #0657d7; font-weight: 900; font-size: 12px; }
.file-download:hover { background: #dbeafe; color: #033f9f; }
.result-guide { display: grid; gap: 10px; }
.result-guide div { padding: 13px 14px; border-radius: 15px; background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid #e6edf7; }
.result-guide b { display: block; color: #071a33; font-size: 14px; margin-bottom: 4px; }
.result-guide span { display: block; color: #667085; font-size: 13px; line-height: 1.7; }
@media (max-width: 1280px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .hero-title img { height: 118px; } .hero-version { align-self: center; margin-bottom: 0; } .result-overview-grid, .download-grid { grid-template-columns: 1fr; } .file-row { grid-template-columns: 1fr; align-items: start; } }

/* ===============================
   v0.4 smart workflow refinements
================================ */
.smart-workbench .cloud-steps-row { min-width: 1100px; }
.smart-panel .wizard-section { scroll-margin-top: 90px; }
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
  padding: 20px 18px;
  border: 1px solid #e4edf5;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  cursor: pointer;
  transition: all .24s ease;
}
.goal-card input { position: absolute; opacity: 0; pointer-events: none; }
.goal-card i { font-size: 26px; color: var(--primary); }
.goal-card b { color: #102033; font-size: 17px; font-weight: 900; }
.goal-card span { color: #667085; font-size: 13px; line-height: 1.5; }
.goal-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21,89,161,.10); border-color: rgba(31,132,198,.38); }
.goal-card.selected {
  background: linear-gradient(180deg, rgba(239,248,255,.96), rgba(255,255,255,.94));
  border-color: rgba(31,132,198,.72);
  box-shadow: 0 16px 36px rgba(31,132,198,.15);
}
.goal-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}
.gcrnet-source-switch,
.mode-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(239,246,255,.72);
  border: 1px solid #e2edf8;
  border-radius: 16px;
}
.gcrnet-source-switch .mini-label {
  font-weight: 900;
  color: #102033;
  margin-right: 6px;
}
.gcrnet-source-switch label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #344054;
  cursor: pointer;
}
.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #dbe7f3;
  background: #fff;
  color: #344054;
  font-weight: 900;
  cursor: pointer;
  transition: all .22s ease;
}
.mode-chip input { accent-color: var(--primary); }
.mode-chip.selected {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15,71,122,.22);
}
.inspect-hint,
.option-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239,246,255,.78);
  border: 1px solid #dceaf8;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
}
.phenotype-controls select[multiple] {
  min-height: 132px;
  padding: 10px;
}
.task-row small,
.form-grid small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}
.advanced-details {
  margin-top: 16px;
  border: 1px solid #e4edf5;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
  overflow: hidden;
}
.advanced-details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 950;
  color: #102033;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-bottom: 1px solid #edf2f7;
}
.advanced-details summary::-webkit-details-marker { display: none; }
.advanced-details summary i { color: var(--primary); margin-right: 8px; }
.advanced-details > .form-grid,
.advanced-details > .check-row,
.advanced-details > .option-note { margin: 16px 18px; }
.advanced-details .form-grid { padding: 0 18px 18px; }
.advanced-details .option-note + .form-grid { padding-top: 0; }
.run-submit-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.file-row .file-download { white-space: nowrap; }
.status-pill.idle { background: #f2f4f7; color: #344054; }
.status-pill.queued { background: #eff8ff; color: #175cd3; }
.status-pill.running { background: #ecfdf3; color: #027a48; }
.status-pill.success { background: #ecfdf3; color: #027a48; }
.status-pill.failed { background: #fef3f2; color: #b42318; }
.status-pill.cancelled { background: #fff7ed; color: #c2410c; }

@media (max-width: 1200px) {
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .goal-grid { grid-template-columns: 1fr; }
  .mode-switch, .gcrnet-source-switch { align-items: stretch; flex-direction: column; }
  .mode-chip { justify-content: center; }
}

/* v0.5: cloud-native manual model parameter panel */
.compact-switch {
  margin: 14px 18px 8px 18px;
}
.manual-param-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px 18px;
}
.manual-param-fields label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 900;
  color: #344054;
  font-size: 14px;
}
.manual-param-fields input,
.manual-param-fields select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #dfe7ee;
  padding: 9px 11px;
  background: #fff;
  color: #1f2937;
  box-shadow: none;
  outline: none;
}
.manual-param-fields input:focus,
.manual-param-fields select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,132,198,.13);
}
.manual-param-fields small {
  color: #667085;
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 1200px) {
  .manual-param-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .manual-param-fields { grid-template-columns: 1fr; }
}

/* v0.6: sticky workflow and click-to-toggle covariate chips */
.cloud-workflow {
  position: sticky;
  top: 74px;
  z-index: 60;
}
.workflow-hint {
  margin-top: 16px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(235, 246, 255, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #17406f;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.workflow-hint i {
  color: #2563eb;
  margin-right: 8px;
}
.covar-picker-field {
  min-width: 0;
}
.column-chip-select {
  min-height: 132px;
  max-height: 230px;
  overflow-y: auto;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #dfe7ee;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.column-chip-select.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a94a6;
  font-size: 14px;
  font-weight: 700;
  min-height: 86px;
}
.column-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: auto !important;
  min-height: 34px;
  margin: 0 !important;
  padding: 7px 11px !important;
  border-radius: 999px;
  border: 1px solid #d8e4f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all .18s ease;
  font-size: 13px !important;
  line-height: 1.25;
  user-select: none;
}
.column-chip:hover {
  transform: translateY(-1px);
  border-color: #91c5ff;
  box-shadow: 0 6px 14px rgba(37,99,235,.08);
}
.column-chip input {
  margin: 0 !important;
  accent-color: #2563eb;
}
.column-chip span {
  font-weight: 800;
}
.column-chip em {
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.column-chip.selected {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border-color: #60a5fa;
  color: #0f3c75;
  box-shadow: 0 8px 18px rgba(37,99,235,.10);
}
.mini-clear-btn {
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: #edf2f7;
  color: #475569;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  transition: all .18s ease;
}
.mini-clear-btn:hover {
  background: #dbeafe;
  color: #1d4ed8;
}
@media (max-width: 992px) {
  .cloud-workflow {
    position: relative;
    top: auto;
  }
}
.field-label {
  font-weight: 800;
  color: #344054;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   IASML duck mascot assistant v2
   Multi-state PNG + CSS motion + workflow/scene reactions.
═══════════════════════════════════════════════════════════════ */
.ias-duck {
  position: fixed;
  left: calc(100vw - 168px);
  top: calc(100vh - 188px);
  width: 126px;
  height: 126px;
  z-index: 1880;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition:
    left 1.45s cubic-bezier(.2,.8,.2,1),
    top 1.45s cubic-bezier(.2,.8,.2,1),
    width .22s ease,
    height .22s ease,
    opacity .22s ease,
    transform .22s ease,
    filter .22s ease;
}

.ias-duck img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(6, 87, 215, .24));
  will-change: transform;
}

.ias-duck:hover {
  transform: translateY(-4px) scale(1.04);
}

.ias-duck.dragging {
  cursor: grabbing;
  transition: none;
}

.ias-duck.minimized {
  width: 72px;
  height: 72px;
  opacity: .78;
}

.ias-duck.minimized:hover {
  opacity: 1;
}

.ias-duck.state-idle img { animation: duckIdle 2.8s ease-in-out infinite; }
.ias-duck.state-walk img { animation: duckWalk .55s ease-in-out infinite; }
.ias-duck.state-running img { animation: duckRun .42s ease-in-out infinite; }
.ias-duck.state-happy img { animation: duckHappy .7s ease-in-out 2; }
.ias-duck.state-think img { animation: duckThink 1.45s ease-in-out infinite; }
.ias-duck.state-worried img { animation: duckWorried .78s ease-in-out infinite; }
.ias-duck.state-cry img { animation: duckCry .35s ease-in-out infinite; }
.ias-duck.state-swim img { animation: duckSwim 2.1s ease-in-out infinite; }
.ias-duck.state-sleepy img {
  animation: duckSleepy 3.4s ease-in-out infinite;
  filter: grayscale(.16) drop-shadow(0 12px 18px rgba(15, 23, 42, .18));
  opacity: .74;
}
.ias-duck.dragging img { animation: duckHold .45s ease-in-out infinite; }

.duck-bubble {
  position: absolute;
  right: 92px;
  bottom: 84px;
  width: 286px;
  max-width: min(286px, calc(100vw - 40px));
  padding: 12px 15px;
  border-radius: 18px 18px 6px 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(96,165,250,.36);
  box-shadow: 0 16px 36px rgba(15,23,42,.16);
  color: #102033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: all .22s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.duck-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.94);
  border-right: 1px solid rgba(96,165,250,.28);
  border-bottom: 1px solid rgba(96,165,250,.28);
  transform: rotate(-45deg);
}

.ias-duck.show-bubble .duck-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.duck-water-ripple,
.duck-water-ripple::before,
.duck-water-ripple::after {
  display: none;
  position: absolute;
  content: "";
  left: 50%;
  bottom: 9px;
  width: 102px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(80, 170, 255, .58);
  transform: translateX(-50%);
  pointer-events: none;
}

.ias-duck.state-swim .duck-water-ripple,
.ias-duck.state-swim .duck-water-ripple::before,
.ias-duck.state-swim .duck-water-ripple::after {
  display: block;
}

.ias-duck.state-swim .duck-water-ripple { animation: ripplePulse 1.8s ease-out infinite; }
.ias-duck.state-swim .duck-water-ripple::before { animation: ripplePulse 1.8s .42s ease-out infinite; }
.ias-duck.state-swim .duck-water-ripple::after { animation: ripplePulse 1.8s .84s ease-out infinite; }

.duck-tears,
.duck-sweat,
.duck-sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.duck-tears {
  top: 28px;
  right: 31px;
  width: 9px;
  height: 16px;
  border-radius: 50% 50% 60% 60%;
  background: linear-gradient(180deg, #8bdcff, #1687ff);
  box-shadow: 16px 14px 0 rgba(22,135,255,.72);
}

.ias-duck.state-cry .duck-tears {
  opacity: 1;
  animation: duckTears .75s ease-in-out infinite;
}

.duck-sweat {
  top: 6px;
  right: 18px;
  width: 12px;
  height: 18px;
  border-radius: 60% 60% 60% 10%;
  background: linear-gradient(180deg, #8bdcff, #1187ff);
  transform: rotate(30deg);
}

.ias-duck.state-worried .duck-sweat {
  opacity: 1;
  animation: duckSweat .8s ease-in-out infinite;
}

.duck-sparkle {
  top: 2px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow:
    18px 9px 0 #93c5fd,
    -11px 18px 0 #38bdf8;
}

.ias-duck.state-happy .duck-sparkle {
  opacity: .95;
  animation: duckSparkle .7s ease-in-out 2;
}

.duck-egg {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 36px;
  height: 44px;
  border-radius: 50% 50% 48% 48%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff, #dbeafe);
  border: 1px solid rgba(96,165,250,.38);
  box-shadow: 0 10px 20px rgba(15,23,42,.16);
  animation: duckEggPop 2.8s ease forwards;
}

.ias-duck.egg-mode .duck-egg { display: block; }

@keyframes duckIdle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-1.5deg); }
}

@keyframes duckWalk {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  50% { transform: translateX(4px) rotate(3deg); }
}

@keyframes duckRun {
  0%, 100% { transform: translateX(0) rotate(-3deg) scale(1.02); }
  50% { transform: translateX(5px) rotate(4deg) scale(1.04); }
}

@keyframes duckHappy {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-12px) scale(1.07) rotate(-4deg); }
  70% { transform: translateY(-4px) scale(1.03) rotate(4deg); }
}

@keyframes duckThink {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-3deg) translateY(-2px); }
  75% { transform: rotate(3deg) translateY(-2px); }
}

@keyframes duckWorried {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-2deg) translateX(-1px); }
  65% { transform: rotate(2deg) translateX(1px); }
}

@keyframes duckCry {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-2px) rotate(-1deg); }
  75% { transform: translateX(2px) rotate(1deg); }
}

@keyframes duckSwim {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
}

@keyframes duckHold {
  0%, 100% { transform: rotate(-3deg) scale(1.04); }
  50% { transform: rotate(3deg) scale(1.04); }
}

@keyframes duckSleepy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(3px) rotate(.5deg); }
}

@keyframes ripplePulse {
  0% { opacity: .75; transform: translateX(-50%) scale(.72); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.42); }
}

@keyframes duckTears {
  0% { transform: translateY(0) scale(.7); opacity: .15; }
  30% { opacity: .95; }
  100% { transform: translateY(24px) scale(1); opacity: 0; }
}

@keyframes duckSweat {
  0%, 100% { transform: rotate(30deg) translateY(0); opacity: .45; }
  50% { transform: rotate(30deg) translateY(7px); opacity: .95; }
}

@keyframes duckSparkle {
  0%, 100% { transform: scale(.75) rotate(0deg); opacity: 0; }
  45% { transform: scale(1.2) rotate(25deg); opacity: 1; }
}

@keyframes duckEggPop {
  0% { transform: translateX(-50%) translateY(10px) scale(.35); opacity: 0; }
  25% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(8px) scale(.75); opacity: 0; }
}

@media (max-width: 760px) {
  .ias-duck {
    width: 88px;
    height: 88px;
    left: calc(100vw - 110px);
    top: calc(100vh - 130px);
  }

  .duck-bubble {
    right: 20px;
    bottom: 92px;
    width: 230px;
    border-radius: 16px;
  }

  .duck-bubble::after { display: none; }

  .duck-water-ripple,
  .duck-water-ripple::before,
  .duck-water-ripple::after {
    width: 76px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ias-duck,
  .ias-duck img,
  .duck-bubble,
  .duck-water-ripple,
  .duck-water-ripple::before,
  .duck-water-ripple::after,
  .duck-tears,
  .duck-sweat,
  .duck-sparkle {
    animation: none !important;
    transition: none !important;
  }
}


/* ===== v0.9: compact IASBLUP-style application scenarios and method preview ===== */
.scenario-wrap,
.method-preview-wrap {
  margin-top: 22px;
}

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

.scenario-card {
  position: relative;
  min-height: 168px;
  padding: 22px 20px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,250,255,.98));
  border: 1px solid rgba(212,225,241,.88);
  box-shadow: 0 10px 26px rgba(15,23,42,.055);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.scenario-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -36px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,87,215,.10), transparent 70%);
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(6,87,215,.10);
  border-color: rgba(96,165,250,.54);
}

.scenario-card i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #021d49, #0657d7 58%, #0b9cff);
  box-shadow: 0 10px 24px rgba(6,87,215,.18);
  margin-bottom: 14px;
}

.scenario-card h4 {
  margin: 0 0 8px;
  color: #071a33;
  font-size: 18px;
  font-weight: 950;
}

.scenario-card p {
  margin: 0;
  color: #516070;
  font-size: 13px;
  line-height: 1.75;
}

.method-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(214,226,241,.86);
  box-shadow: 0 14px 34px rgba(15,23,42,.045);
}

.method-matrix article {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #e8eef6;
  transition: all .22s ease;
}

.method-matrix article:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.52);
  box-shadow: 0 12px 26px rgba(6,87,215,.075);
}

.method-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #08285a;
  margin-bottom: 8px;
}

.method-head i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0657d7;
  background: #eaf3ff;
}

.method-head b {
  font-size: 15px;
  font-weight: 950;
}

.method-matrix p {
  margin: 0;
  color: #596879;
  font-size: 12.5px;
  line-height: 1.75;
}

/* ===== v0.9: refined radio pills ===== */
.gcrnet-source-switch label {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d9e6f3;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.gcrnet-source-switch input[type="radio"],
.mode-chip input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50%;
  border: 2px solid #9db1c8;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
  flex: 0 0 14px;
  transition: all .18s ease;
}

.gcrnet-source-switch input[type="radio"]:checked,
.mode-chip input[type="radio"]:checked {
  border-color: #0657d7;
  background: #0657d7;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px rgba(6,87,215,.12);
}

.mode-chip.selected input[type="radio"] {
  border-color: rgba(255,255,255,.94);
  background: #fff;
  box-shadow: inset 0 0 0 3px #0657d7;
}

.gcrnet-source-switch label:has(input[type="radio"]:checked) {
  color: #053c93;
  border-color: rgba(96,165,250,.68);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow: 0 8px 18px rgba(6,87,215,.10);
}

/* ===== v0.9: polished upload controls ===== */
.upload-box {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  cursor: pointer;
}

.upload-box .upload-title {
  font-size: 14px;
  font-weight: 950;
  color: #22324a;
}

.upload-box .file-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #031a43, #0657d7 58%, #0b8fff);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(6,87,215,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.upload-box:hover .file-cta {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(6,87,215,.24);
}

.upload-box .file-name-display {
  max-width: 90%;
  min-height: 18px;
  color: #6b7a8b;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  cursor: pointer;
}

.upload-box.has-file {
  border-style: solid;
  border-color: rgba(37,99,235,.48);
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: 0 12px 28px rgba(6,87,215,.10);
}

.upload-box.has-file i {
  color: #0a7cff;
}

.upload-box.has-file .file-cta {
  background: linear-gradient(135deg, #0b7cff, #10b7ff);
}

.upload-box.has-file .file-name-display {
  color: #06439d;
}

.phenotype-upload {
  min-height: 138px;
  background:
    radial-gradient(circle at 12% 18%, rgba(6,87,215,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(240,247,255,.96));
}

.advanced-details input[type="file"] {
  padding-top: 10px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

@media (max-width: 1100px) {
  .scenario-grid,
  .method-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .scenario-grid,
  .method-matrix {
    grid-template-columns: 1fr;
  }
}
