:root {
  --ink: #18212a;
  --muted: #71808a;
  --line: #e5e9ec;
  --paper: #ffffff;
  --canvas: #f4f6f6;
  --soft: #eef2f1;
  --teal: #0b7773;
  --teal-deep: #075b5a;
  --coral: #dd725c;
  --amber: #c89536;
  --green: #3d966e;
  --shadow: 0 14px 38px rgba(24, 33, 42, .06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
.agent-settings-grid.has-provider { grid-template-columns: minmax(125px, .65fr) minmax(0, 1.4fr) minmax(150px, .8fr); }
@media (max-width: 650px) { .agent-settings-grid.has-provider { grid-template-columns: 1fr; } }

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f2f6f5; }.auth-panel { width: min(100%, 440px); padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }.auth-brand > div:last-child { display: grid; gap: 2px; }.auth-brand strong { font-size: 17px; }.auth-brand small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }.auth-panel h1 { margin: 8px 0; font-size: 24px; }.auth-copy { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }.auth-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border-bottom: 1px solid var(--line); }.auth-switch button { min-height: 38px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; }.auth-switch button.active { color: var(--teal-deep); border-bottom-color: var(--coral); font-weight: 700; }.auth-form { display: grid; gap: 9px; }.auth-form label { margin-top: 5px; color: #506066; font-size: 11px; font-weight: 650; }.auth-form input { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #dce2e4; border-radius: 5px; color: var(--ink); background: #fcfdfd; font-size: 12px; }.auth-form input:focus { outline: 2px solid rgba(11,119,115,.14); border-color: var(--teal); }.auth-form .primary-button { width: 100%; margin-top: 10px; }.auth-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }.auth-email-row .secondary-button { width: auto; min-width: 112px; margin: 0; padding: 0 10px; font-size: 10px; }.auth-message { min-height: 20px; margin-top: 12px; }.account-email { max-width: 210px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.agent-key-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 7px; }.agent-key-actions .secondary-button { width: auto; margin: 0; padding: 7px 10px; color: var(--teal-deep); font-size: 10px; }
/* Authentication screen: responsive card layout aligned with the companion app. */
.auth-screen { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; padding: 28px 18px; background: radial-gradient(ellipse at 12% 14%, rgba(11,119,115,.09), transparent 36%), radial-gradient(ellipse at 88% 86%, rgba(221,114,92,.10), transparent 34%), #f2f6f5; }
.auth-decoration { position: absolute; z-index: -1; width: 260px; aspect-ratio: 1; border: 1px solid rgba(11,119,115,.10); border-radius: 50%; pointer-events: none; }
.auth-decoration::before, .auth-decoration::after { position: absolute; content: ""; border: 1px solid rgba(221,114,92,.12); border-radius: inherit; inset: 20px; }
.auth-decoration::after { inset: 42px; }
.auth-decoration-one { top: -135px; left: -78px; }.auth-decoration-two { right: -150px; bottom: -164px; width: 350px; }
.auth-panel { position: relative; width: min(100%, 476px); padding: clamp(24px, 5vw, 40px); border: 1px solid rgba(214,224,222,.92); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 24px 72px rgba(26,49,50,.11), 0 2px 8px rgba(26,49,50,.04); }
.auth-brand { gap: 12px; margin: 0 0 32px; }.auth-brand strong { font-size: 19px; letter-spacing: -.02em; }.auth-brand small { font-size: 9px; letter-spacing: .15em; }
.auth-panel h1 { margin: 9px 0 8px; font-size: clamp(25px, 5vw, 30px); letter-spacing: -.035em; }.auth-copy { margin: 0 0 23px; font-size: 13px; }
.auth-switch { gap: 4px; margin: 0 0 23px; padding: 4px; border: 0; border-radius: 9px; background: #f0f4f3; }
.auth-switch button { min-height: 38px; border: 0; border-radius: 7px; font-size: 12px; transition: color .18s, background .18s, box-shadow .18s; }
.auth-switch button.active { color: var(--teal-deep); border: 0; background: #fff; box-shadow: 0 1px 4px rgba(24,33,42,.10); }
.auth-form { gap: 9px; }.auth-form label { margin-top: 7px; color: #46575d; font-size: 12px; }
.auth-form > input, .auth-password-field input { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #d9e1e2; border-radius: 7px; color: var(--ink); background: #fbfcfc; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.auth-form > input:focus, .auth-password-field input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,119,115,.11); }
.auth-password-field { position: relative; width: 100%; }.auth-password-field input { padding-right: 50px; }
.auth-password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 34px; height: 34px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; color: #74848a; background: transparent; }
.auth-password-toggle:hover { color: var(--teal-deep); background: #eef4f3; }.auth-password-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.auth-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.auth-password-toggle .eye-closed { display: none; }.auth-password-toggle.is-visible .eye-open { display: none; }.auth-password-toggle.is-visible .eye-closed { display: block; }
.auth-form .primary-button { min-height: 46px; margin-top: 13px; border-radius: 7px; font-size: 13px; }.auth-register-actions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; margin-top: 12px; }.auth-register-actions .primary-button, .auth-register-actions .secondary-button { min-width: 0; min-height: 44px; margin: 0; border-radius: 7px; font-size: 12px; }
.auth-register-actions .secondary-button { padding: 0 9px; border: 1px solid #d7e2e1; color: var(--teal-deep); background: #f8fbfa; }.auth-register-actions .secondary-button:hover { background: #edf5f3; }.auth-register-actions button:disabled { opacity: .58; cursor: wait; }
.auth-field-help { margin: 0 1px 5px; color: #849399; font-size: 11px; line-height: 1.5; }.auth-security-note { display: flex; gap: 9px; margin-top: 23px; padding: 12px; border: 1px solid #e4eeeb; border-radius: 8px; color: #607579; background: #f7faf9; font-size: 11px; line-height: 1.55; }.auth-security-note > span:first-child { color: var(--teal); font-size: 16px; line-height: 1; }
.auth-developer-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; padding: 6px 0; border: 0; color: #74848a; background: transparent; font-size: 11px; cursor: pointer; }.auth-developer-button:hover { color: var(--teal-deep); }.auth-developer-button span { color: var(--coral); font-size: 14px; }
.auth-message { min-height: 18px; margin: 14px 0 0; font-size: 12px; }.auth-message.success { color: #277a58; }.auth-message.error { color: #ba5848; }.auth-message.info { color: var(--teal-deep); }
.auth-panel #auth-password-change .auth-copy { margin-bottom: 22px; }
@media (max-width: 480px) { .auth-screen { padding: 18px 14px; }.auth-panel { padding: 24px 20px; border-radius: 14px; }.auth-brand { margin-bottom: 27px; }.auth-register-actions { grid-template-columns: 1fr; }.auth-register-actions .secondary-button { grid-row: 2; } }
.docking-files-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }.docking-files-heading h4 { margin-bottom: 4px; }.docking-files-heading .field-help { margin: 0; }.docking-package-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--teal); border-radius: 5px; color: #fff; background: var(--teal); font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }.docking-package-button:hover { color: #fff; background: var(--teal-deep); }.history-detail-actions .docking-package-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: #17252a; color: #eef7f5; padding: 28px 18px 22px; display: flex; flex-direction: column; min-height: 100vh; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 11px 42px; }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: end; gap: 3px; padding: 2px; }
.brand-mark span { width: 6px; border-radius: 5px 5px 1px 1px; background: var(--coral); display: block; }
.brand-mark span:nth-child(1) { height: 13px; opacity: .7; }.brand-mark span:nth-child(2) { height: 22px; }.brand-mark span:nth-child(3) { height: 17px; background: #55aaa1; }
.brand-name { font-weight: 750; letter-spacing: .02em; font-size: 19px; }.brand-subtitle { font-size: 8px; letter-spacing: .16em; color: #89a5a4; margin-top: 3px; }
.primary-nav { display: grid; gap: 5px; }.nav-item { background: transparent; border: 0; color: #aac0bf; text-align: left; padding: 13px 12px; border-radius: 7px; display: flex; align-items: center; gap: 11px; font-size: 13px; transition: .18s ease; }.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }.nav-item.active { background: #254143; color: #fff; box-shadow: inset 3px 0 0 var(--coral); }.nav-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }.nav-item.active .nav-dot { background: var(--coral); border-color: var(--coral); }
.sidebar-footer { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }.service-pill { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #d1e2df; }.service-version { margin-left: auto; color: #78908f; font-size: 10px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61,150,110,.15); }.sidebar-note { color: #728b8b; font-size: 10px; line-height: 1.6; margin-top: 19px; }
.main-content { min-width: 0; padding: 0 clamp(20px, 4vw, 62px); }.topbar { height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.eyebrow, .section-kicker { margin: 0; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .16em; }.topbar h1 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.02em; }.topbar-actions { display: flex; align-items: center; gap: 11px; }.mode-label { font-size: 11px; color: var(--muted); }.mode-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #dce6e4; background: #f9fbfa; color: var(--teal-deep); border-radius: 20px; font-size: 11px; }
.hero-band { padding: 42px 0 38px; display: flex; justify-content: space-between; gap: 30px; }.hero-band h2 { margin: 11px 0 14px; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.14; letter-spacing: -.04em; font-weight: 680; }.hero-band h2 em { color: var(--coral); font-style: normal; }.hero-copy { max-width: 590px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }.hero-stats { display: flex; align-items: flex-end; gap: clamp(20px, 3.2vw, 47px); padding-bottom: 4px; }.hero-stats div { display: grid; gap: 6px; }.hero-stats strong { color: var(--teal-deep); font-size: 28px; font-weight: 600; letter-spacing: -.04em; }.hero-stats span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }.panel { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; padding: 25px; }.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }.panel-heading h3 { margin: 7px 0 0; font-size: 18px; letter-spacing: -.02em; }.panel-index { color: #b3c1c2; font-size: 11px; letter-spacing: .13em; }.field-label { display: block; margin: 0 0 8px; color: #56656c; font-size: 11px; font-weight: 650; }.input-wrap { display: flex; align-items: center; border: 1px solid #dce2e4; border-radius: 6px; background: #fcfdfd; transition: border .18s, box-shadow .18s; }.input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,119,115,.1); }.input-icon { width: 38px; text-align: center; color: var(--coral); font-size: 20px; }.input-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 12px 12px 12px 0; font-size: 13px; }.input-wrap textarea { min-width: 0; width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); padding: 12px 12px 12px 0; font-size: 13px; line-height: 1.5; }.field-help { color: #9aa7aa; font-size: 10px; line-height: 1.55; margin: 8px 1px 19px; }.create-panel select { width: 100%; padding: 11px 12px; border: 1px solid #dce2e4; border-radius: 6px; color: var(--ink); background: #fcfdfd; margin-bottom: 21px; font-size: 12px; outline: none; }.primary-button, .secondary-button { border-radius: 5px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; font-size: 12px; font-weight: 650; transition: transform .18s, background .18s, opacity .18s; }.primary-button { width: 100%; color: #fff; background: var(--teal); box-shadow: 0 7px 16px rgba(11,119,115,.18); }.primary-button:hover { background: var(--teal-deep); transform: translateY(-1px); }.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }.button-icon { font-size: 18px; line-height: 0; }.form-message { min-height: 17px; margin-top: 10px; font-size: 11px; color: var(--coral); }
.state-badge { padding: 6px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .03em; }.state-badge.idle { color: #768489; background: #f0f3f4; }.state-badge.running { color: #8e6421; background: #fff3da; }.state-badge.succeeded { color: #317b5b; background: #e7f5ee; }.state-badge.degraded { color: #9a6d22; background: #fff3d9; }.state-badge.failed, .state-badge.cancelled { color: #ac4c3a; background: #ffebe7; }.secondary-button { width: 100%; background: #f3f5f5; color: #859295; margin-top: 8px; }.secondary-button:disabled { opacity: .5; cursor: not-allowed; }.secondary-button:not(:disabled):hover { background: #ffeae5; color: #b04d3c; }
.agent-panel { margin: 0 0 28px; padding: 18px 20px; }.agent-heading { margin-bottom: 7px; }.agent-heading h2 { margin: 6px 0 0; font-size: 18px; }.agent-intro { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.6; }.agent-messages { display: grid; gap: 8px; max-height: 250px; overflow-y: auto; padding: 10px; background: #f8faf9; border: 1px solid var(--line); border-radius: 5px; }.agent-message { max-width: 85%; padding: 9px 11px; border-radius: 5px; color: #526268; font-size: 11px; line-height: 1.6; }.agent-message.assistant { justify-self: start; background: #eef7f5; border: 1px solid #d5e8e4; }.agent-message.user { justify-self: end; color: #fff; background: var(--teal); }.agent-message-role { margin-bottom: 3px; color: #819093; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.agent-message.user .agent-message-role { color: #cfe8e4; }.agent-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 10px; }.agent-form textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid #dce2e4; border-radius: 5px; padding: 10px 11px; color: var(--ink); background: #fcfdfd; font-size: 12px; line-height: 1.5; }.agent-form textarea:focus { outline: 2px solid rgba(11,119,115,.14); border-color: var(--teal); }.agent-form .primary-button { width: auto; min-width: 96px; align-self: stretch; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ml-guidance { margin-bottom: 18px; }.ml-guidance .panel-heading { margin-bottom: 11px; }.ml-guidance-lead { max-width: 720px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }.ml-agent-card { padding: 17px; border: 1px solid #cfe4e1; border-radius: 6px; background: #f7fbfa; }.ml-agent-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }.ml-agent-card-heading h4 { margin: 6px 0 0; color: var(--ink); font-size: 15px; }.ml-research-fields { margin-top: 0; }.ml-research-fields .field-help { margin-bottom: 0; }.ml-disease-field input, .ml-advanced-input input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dce2e4; border-radius: 5px; color: var(--ink); background: #fff; font-size: 12px; }.ml-disease-field input:focus, .ml-advanced-input input:focus { outline: 2px solid rgba(11,119,115,.14); border-color: var(--teal); }.ml-advanced-input { margin-top: 13px; }.ml-advanced-input summary { width: fit-content; cursor: pointer; color: var(--teal-deep); font-size: 11px; font-weight: 650; }.ml-advanced-input[open] summary { margin-bottom: 10px; }.ml-agent-action-row { display: flex; align-items: center; gap: 12px; margin-top: 15px; }.ml-agent-action-row .primary-button { width: auto; min-width: 185px; padding: 0 15px; }.ml-agent-action-row .text-button { padding-left: 0; }.ml-agent-card .form-message { margin: 9px 0 0; }.ml-agent-card .form-message.success { color: #277a58; }.ml-agent-card .form-message.info { color: var(--teal-deep); }.ml-agent-card .form-message.error { color: #ba5848; }.ml-guide-result { margin-top: 11px; padding: 13px 14px; border: 1px solid #dce9e6; border-radius: 5px; color: #526268; background: #fff; font-size: 11px; line-height: 1.75; }.ml-guide-result.empty { color: #819093; background: #fbfdfd; }.ml-guide-content { overflow-wrap: anywhere; }.ml-guide-empty { display: grid; gap: 5px; }.ml-guide-empty strong { color: var(--teal-deep); font-size: 11px; }.ml-guide-empty span { color: var(--muted); }.ml-guide-links { display: flex; align-items: center; gap: 13px; margin-top: 10px; }.ml-guide-links .external-tool-button { flex: 1 1 auto; margin-top: 0; padding: 10px 12px; }.ml-guide-links .text-button { padding-right: 0; white-space: nowrap; }.ml-next-step { display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding: 13px 14px; border: 1px solid #e5eceb; border-radius: 5px; background: #fcfdfd; }.ml-next-step-number { flex: 0 0 auto; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .08em; }.ml-next-step strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; }.ml-next-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.agent-settings { margin: 0 0 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfc; }.agent-settings-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 13px; }.agent-settings-heading h3 { margin: 0 0 4px; font-size: 13px; }.agent-settings-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.agent-settings-heading a { flex: 0 0 auto; color: var(--teal-deep); font-size: 11px; text-decoration: none; }.agent-settings-heading a:hover { text-decoration: underline; }.agent-settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px, .6fr); gap: 14px; align-items: end; }.agent-settings-grid .field-label { margin-bottom: 6px; }.agent-key-row { display: flex; min-width: 0; align-items: center; gap: 3px; padding: 0 5px 0 10px; border: 1px solid #dce2e4; border-radius: 5px; background: #fff; }.agent-key-row:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,119,115,.1); }.agent-key-row input { width: 100%; min-width: 0; height: 38px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.agent-key-row input::placeholder { color: #a2adaf; }.text-button { flex: 0 0 auto; border: 0; padding: 6px 7px; color: var(--teal-deep); background: transparent; font-size: 10px; }.text-button:hover { color: var(--coral); }.agent-settings-grid select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dce2e4; border-radius: 5px; color: var(--ink); background: #fff; font-size: 11px; }.agent-key-guide { margin-top: 12px; color: #68777c; font-size: 10px; line-height: 1.6; }.agent-key-guide summary { width: fit-content; cursor: pointer; color: var(--teal-deep); font-weight: 650; }.agent-key-guide ol { margin: 8px 0 4px; padding-left: 18px; }.agent-key-guide p { margin: 5px 0 0; color: #89979a; }
.agent-local-settings { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 13px; padding: 10px 11px; border: 1px solid #c8dfd9; border-radius: 4px; background: #f1f8f5; color: #264f48; }.agent-local-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #19836a; }.agent-local-settings strong { display: block; font-size: 11px; }.agent-local-settings p { margin: 3px 0 0; color: #617873; font-size: 10px; line-height: 1.5; }
.agent-settings-disclosure { margin: 0 0 14px; border: 1px solid #d9e6e2; border-radius: 6px; background: #f8fbfa; }
.agent-settings-disclosure > summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; color: #315b55; cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; }
.agent-settings-disclosure > summary::-webkit-details-marker { display: none; }
.agent-settings-disclosure > summary::after { content: "+"; display: grid; width: 18px; height: 18px; place-items: center; margin-left: auto; border: 1px solid #bfd5cf; border-radius: 50%; color: var(--teal); font-size: 14px; font-weight: 400; line-height: 1; }
.agent-settings-disclosure[open] > summary { border-bottom: 1px solid #d9e6e2; background: #f1f8f5; }
.agent-settings-disclosure[open] > summary::after { content: "−"; }
.agent-settings-disclosure > summary:hover { color: var(--teal-deep); background: #f1f8f5; }
.agent-settings-summary-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 5px; color: var(--teal); background: #e2f1ec; font-size: 13px; }
.agent-settings-disclosure > summary small { color: #7d908e; font-size: 10px; font-weight: 500; }
.agent-settings-disclosure[open] .agent-settings { margin: 0; border: 0; border-radius: 0 0 5px 5px; }
.agent-thinking-setting { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; padding: 10px 11px; border: 1px solid #dce9e4; border-radius: 5px; background: #fff; cursor: pointer; }
.agent-thinking-setting input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--teal); }
.agent-thinking-setting span { display: grid; gap: 2px; }
.agent-thinking-setting strong { color: #315b55; font-size: 11px; }
.agent-thinking-setting small { color: #7d908e; font-size: 10px; line-height: 1.45; }
.agent-activity { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; color: #357167; font-size: 11px; }
.agent-activity-mark { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1px solid #b9d8d0; border-radius: 50%; background: #edf8f4; }
.agent-activity-mark i { width: 6px; height: 6px; border-radius: 50%; background: #31937b; animation: agent-pulse 1.15s ease-in-out infinite; }
.agent-activity-dots { display: inline-flex; align-items: center; gap: 3px; }
.agent-activity-dots i { width: 4px; height: 4px; border-radius: 50%; background: #31937b; animation: agent-dot-bounce 1s ease-in-out infinite; }
.agent-activity-dots i:nth-child(2) { animation-delay: .14s; }
.agent-activity-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes agent-pulse { 50% { opacity: .35; transform: scale(.72); } }
@keyframes agent-dot-bounce { 0%, 60%, 100% { opacity: .42; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .agent-activity-mark i, .agent-activity-dots i { animation: none; } }
.results-section { margin: 47px 0 30px; }.hidden { display: none !important; }.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 17px; }.results-heading h2 { margin: 7px 0 0; font-size: 22px; }.disclaimer { color: #8d6c3c; background: #fff8ea; border: 1px solid #f2e2bd; border-radius: 5px; padding: 8px 11px; font-size: 10px; }.disclaimer span { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; color: #fff; background: var(--amber); font-size: 9px; }.result-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }.result-tab { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 14px; color: #8b989b; font-size: 11px; }.result-tab.active { color: var(--teal-deep); border-bottom-color: var(--coral); font-weight: 700; }.tab-panel { display: none; padding-top: 18px; }.tab-panel.active-tab-panel { display: block; }.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 17px; }.metric-card span { color: var(--muted); font-size: 10px; }.metric-card strong { display: block; margin-top: 8px; color: var(--teal-deep); font-size: 25px; font-weight: 650; }.data-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }.data-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 17px; }.data-card h4 { margin: 0 0 11px; font-size: 12px; }.data-card p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 4px 0; }.gene-cloud { display: flex; flex-wrap: wrap; gap: 6px; }.gene-chip { padding: 5px 8px; color: var(--teal-deep); border: 1px solid #cae0dd; background: #f0f8f7; border-radius: 4px; font-size: 11px; }.pathway-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 11px; }.pathway-table th, .pathway-table td { text-align: left; padding: 12px 13px; border-bottom: 1px solid #edf0f1; }.pathway-table th { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }.pathway-table td { color: #536268; }.report-box { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }.report-box pre { white-space: pre-wrap; margin: 0; color: #4d5c61; font-family: inherit; font-size: 12px; line-height: 1.78; }.artifact-list { display: grid; gap: 8px; }.artifact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); padding: 11px 13px; border-radius: 5px; }.artifact-row span { color: #5a696e; font-size: 11px; }.artifact-row a { color: var(--teal); font-size: 10px; text-decoration: none; }.artifact-row a:hover { text-decoration: underline; }
.service-status-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid #edf0f1; }.service-status-row:first-child { border-top: 0; }.service-status-row small, .service-status-row p { grid-column: 1 / -1; color: var(--muted); font-size: 10px; margin: 0; line-height: 1.5; }.service-status-row small { overflow-wrap: anywhere; }.service-status { align-self: start; color: #fff; background: #8b989b; border-radius: 3px; padding: 3px 6px; font-size: 9px; }.service-status.resolved { background: #268a73; }.service-status.http_404, .service-status.network_error, .service-status.unavailable { background: #b44d45; }.service-status.invalid_input, .service-status.offline_disabled { background: #a27b3d; }
.ml-advice-result { margin-top: 14px; border-top: 1px solid #edf0f1; padding-top: 12px; }.ml-advice-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }.ml-advice-header strong { color: #1f6658; }.ml-advice-header span { color: var(--muted); font-size: 12px; }.ml-advice-checks { display: grid; gap: 6px; }.ml-check { margin: 0; padding: 7px 9px; border-left: 3px solid #9aa6a5; background: #f7f9f8; font-size: 12px; line-height: 1.45; }.ml-check b { display: inline-block; min-width: 42px; margin-right: 6px; }.ml-check.blocked { border-left-color: #b44d45; background: #fff5f3; }.ml-check.review, .ml-check.warning { border-left-color: #a27b3d; background: #fffaf0; }.ml-check.ready { border-left-color: #268a73; background: #f2faf6; }.geo-label-reason { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.geo-fit { display: inline-block; padding: 3px 6px; border-radius: 3px; font-size: 11px; white-space: nowrap; }.geo-fit.ready { color: #1f6658; background: #e9f6ef; }.geo-fit.review { color: #805e20; background: #fff5d9; }.geo-fit.blocked { color: #8b3e37; background: #fde9e6; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }.button-row button { margin-top: 0; }
.target-table-card { margin-top: 15px; }.target-table-wrap { overflow-x: auto; }.target-table-wrap .pathway-table { min-width: 560px; }
.source-list { display: grid; gap: 8px; }.source-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #edf0f1; }.source-row:last-child { border-bottom: 0; }.source-row div { display: grid; gap: 3px; min-width: 0; }.source-row strong { color: #536268; font-size: 11px; }.source-row small { color: #9aa7aa; font-size: 9px; }.source-row > span { flex: 0 0 auto; color: var(--teal-deep); font-size: 10px; text-align: right; }.notice-list { display: grid; gap: 7px; }.notice-list p, .success-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 9px; background: #fff8ea; border: 1px solid #f2e2bd; border-radius: 4px; color: #8d6c3c !important; font-size: 10px !important; line-height: 1.55 !important; }.notice-list p span, .success-note span { flex: 0 0 auto; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: var(--amber); font-size: 9px; }.success-note { background: #eef8f2; border-color: #d5ebde; color: #317b5b !important; }.success-note span { background: var(--green); }.muted-empty { color: #8d999c !important; }
.prediction-row { padding: 8px 0; border-bottom: 1px solid #edf0f1; }.prediction-row:last-child { border-bottom: 0; }.prediction-row p, .prediction-row small { display: block; margin: 0 0 4px; }.prediction-row small { color: #8d999c; font-size: 10px; line-height: 1.5; }
.tutorial-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); gap: 18px; }.tutorial-card { min-height: 100%; }.tutorial-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: tutorial-step; }.tutorial-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: start; counter-increment: tutorial-step; }.tutorial-steps li::before { content: counter(tutorial-step, decimal-leading-zero); color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding-top: 2px; }.tutorial-steps li > strong, .tutorial-steps li > span { grid-column: 2; }.tutorial-steps strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 4px; }.tutorial-steps span { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; }.link-card { display: flex; flex-direction: column; }.external-tool-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; margin-top: 9px; color: var(--teal-deep); background: #f1f8f7; border: 1px solid #cfe4e1; border-radius: 6px; text-decoration: none; transition: background .18s, border .18s, transform .18s; }.external-tool-button:hover { background: #e5f2f0; border-color: #a7d0cb; transform: translateY(-1px); }.external-tool-button span:first-child { display: grid; gap: 4px; }.external-tool-button b { font-size: 12px; }.external-tool-button small { color: var(--muted); font-size: 10px; }.external-tool-button > span:last-child { color: var(--coral); font-size: 18px; }.tutorial-doc-link { display: inline-block; color: var(--teal); font-size: 10px; text-decoration: none; }.tutorial-doc-link:hover { text-decoration: underline; }.link-card .tutorial-doc-link { margin-top: 17px; }.tutorial-notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; color: #8d6c3c; background: #fff8ea; border: 1px solid #f2e2bd; border-radius: 6px; }.tutorial-notice > span { flex: 0 0 auto; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; background: var(--amber); font-size: 10px; }.tutorial-notice p { margin: 0; font-size: 10px; line-height: 1.65; }
.view.hidden-view { display: none; }.empty-page { margin: 13vh auto; max-width: 590px; padding: 50px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; }.empty-page-icon { color: var(--coral); font-size: 36px; margin-bottom: 15px; }.empty-page h2 { margin: 12px 0; }.empty-page p:last-child, .about-copy p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; }.about-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; padding: 70px 3vw; max-width: 1000px; }.about-copy h2 { font-size: 34px; letter-spacing: -.04em; margin: 12px 0 15px; }.about-copy p:last-child { max-width: 520px; }.about-list { display: grid; gap: 8px; align-content: start; }.about-list div { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 15px 0; }.about-list strong { color: var(--coral); font-size: 12px; }.about-list span { color: #536268; font-size: 12px; }.footer { display: flex; justify-content: space-between; padding: 28px 0 25px; margin-top: 45px; border-top: 1px solid var(--line); color: #98a4a6; font-size: 10px; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; }.sidebar { min-height: auto; padding: 16px 18px; flex-direction: row; align-items: center; gap: 18px; overflow-x: auto; }.brand-lockup { padding: 0; flex: 0 0 auto; }.primary-nav { display: flex; gap: 3px; margin-left: auto; flex: 0 0 auto; }.nav-item { padding: 9px 10px; font-size: 11px; }.nav-dot, .sidebar-footer { display: none; }.main-content { padding: 0 22px; }.hero-band { padding-top: 34px; }.hero-stats { display: none; } }
@media (max-width: 650px) { .topbar { height: 92px; }.topbar-actions { display: none; }.hero-band { padding: 31px 0 26px; }.hero-band h2 { font-size: 30px; }.workspace-grid, .tutorial-grid, .data-columns, .about-grid, .module-placeholder-grid { grid-template-columns: 1fr; }.panel { padding: 19px; }.summary-grid { grid-template-columns: 1fr 1fr; }.results-heading { display: block; }.disclaimer { display: inline-block; margin-top: 14px; }.sidebar { overflow-x: auto; }.primary-nav { flex: 0 0 auto; }.brand-name { font-size: 16px; }.brand-subtitle { display: none; }.footer { display: block; line-height: 1.8; }.footer span { display: block; }.agent-settings-grid { grid-template-columns: 1fr; gap: 10px; }.agent-settings-heading { flex-direction: column; gap: 8px; }.agent-key-row input { font-size: 10px; }.ml-agent-action-row, .ml-guide-links { align-items: stretch; flex-direction: column; }.ml-agent-action-row .primary-button { width: 100%; }.ml-guide-links .text-button { padding-left: 0; text-align: left; } }
@media (max-width: 650px) { .docking-files-heading { flex-direction: column; }.docking-package-button { width: 100%; }.history-detail-actions .docking-package-button { width: auto; } }

.artifact-section { margin-top: 18px; padding: 16px; background: #f8faf9; border: 1px solid var(--line); border-radius: 7px; }
.artifact-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; cursor: pointer; list-style: none; }
.artifact-section-heading::-webkit-details-marker { display: none; }
.artifact-section-heading::before { content: "+"; width: 17px; height: 17px; display: inline-grid; place-items: center; border: 1px solid #cbd8d8; border-radius: 50%; color: var(--teal); font-size: 13px; font-weight: 400; }
.artifact-section[open] .artifact-section-heading::before { content: "−"; }
.artifact-section > .artifact-list { margin-top: 12px; }
.artifact-section-heading h4 { margin: 0; color: var(--ink); font-size: 12px; }
.artifact-section-heading span { color: #9aa7aa; font-size: 10px; }
.figures-section { background: #f1f8f7; border-color: #d2e6e3; }
.ml-venn-card { margin-top: 15px; }
.ml-venn-card p { max-width: 720px; }
.ml-venn-image { display: block; width: min(100%, 680px); max-height: 560px; margin: 14px auto 0; object-fit: contain; border: 1px solid #dce9e6; background: #fff; }
.data-section { background: #fbfcfa; }
.logs-section { background: #fbfaf7; border-color: #ede3d1; }
.reports-section { background: #faf8fc; border-color: #e5ddec; }
.targets-tutorial { margin-bottom: 28px; }
.targets-tutorial .tutorial-grid { margin-top: 0; }
.targets-tutorial .external-tool-button { margin-top: 8px; }
.module-placeholder { max-width: 920px; margin: 0 0 28px; }.module-placeholder .panel-heading { margin-bottom: 15px; }.module-placeholder h3 { font-size: 20px; }.module-placeholder-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }.module-placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }.module-placeholder-grid div { display: grid; gap: 6px; padding: 14px; background: #f8faf9; border: 1px solid var(--line); border-radius: 5px; }.module-placeholder-grid strong { color: var(--coral); font-size: 11px; }.module-placeholder-grid span { color: #617176; font-size: 11px; line-height: 1.5; }.module-placeholder .tutorial-notice { margin-top: 19px; }

/* GO/KEGG enrichment controls and result metadata */
.enrichment-options { margin-top: 17px; padding: 13px 0 1px; border-top: 1px solid #edf0f1; }
.compact-input-row { display: flex; align-items: center; gap: 9px; }
.compact-input-row input { width: 100px; padding: 9px 10px; border: 1px solid #dce2e4; border-radius: 5px; color: var(--ink); background: #fcfdfd; font-size: 12px; }
.compact-input-row input:focus { outline: 2px solid rgba(11,119,115,.14); border-color: var(--teal); }
.compact-input-row span { color: var(--muted); font-size: 10px; }
.enrichment-options .compact-input-row + .field-label { margin-top: 14px; }
.table-scroll { overflow-x: auto; }
.table-scroll .pathway-table { min-width: 820px; }
.enrichment-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.enrichment-meta span { padding: 8px 10px; color: var(--muted); background: #f5f8f8; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; }
.enrichment-meta b { color: var(--teal-deep); font-size: 13px; margin-right: 3px; }
.category-badge { display: inline-block; padding: 3px 6px; border-radius: 3px; color: #fff; background: #6d858b; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.category-badge.bp { background: #16847c; }
.category-badge.cc { background: #5374a8; }
.category-badge.mf { background: #b36b39; }
.category-badge.kegg { background: #8b5da7; }
.table-limit-notice { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; color: #6f6247; background: #fffaf0; border: 1px solid #f0e3c8; border-radius: 5px; font-size: 10px; line-height: 1.55; }
.table-limit-notice > span { flex: 0 0 auto; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: var(--amber); font-size: 9px; }
.table-limit-notice p { margin: 0; }
.csv-upload-panel { margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf0f1; }
.file-input { display: block; width: 100%; padding: 9px; border: 1px dashed #cbd8d8; border-radius: 5px; background: #f9fbfb; color: #68777b; font-size: 11px; }
.csv-file-status { margin-bottom: 10px; }
.csv-column-row { display: flex; align-items: center; gap: 8px; }
.csv-column-row select { flex: 1; min-width: 0; margin: 0; }
.docking-input-fields { display: grid; gap: 11px; }
.docking-input-fields > .field-help:first-child { margin: 0 0 2px; }
.docking-input-fields > .file-input { margin: -3px 0 5px; }
.docking-input-fields .data-columns { gap: 10px; margin: 5px 0; }
.docking-input-fields .data-columns > div { min-width: 0; }
.docking-input-fields input[type="text"], .docking-input-fields input[type="number"] { width: 100%; min-width: 0; padding: 10px; border: 1px solid #dce2e4; border-radius: 5px; color: var(--ink); background: #fff; font-size: 11px; }
.docking-input-fields input[type="number"] { margin: 0; }
.docking-input-fields select { margin: 0; }
.docking-options { display: grid; gap: 11px; margin-top: 2px; padding: 14px; border: 1px solid #e3ecea; border-radius: 6px; background: #f9fbfb; }
.check-field { display: flex; align-items: flex-start; gap: 8px; color: #58666b; font-size: 10px; line-height: 1.5; cursor: pointer; }
.check-field input { margin: 1px 0 0; accent-color: var(--teal); }
.docking-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.docking-triple input { padding: 8px !important; }
.docking-image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.docking-image-preview { display: grid; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fafcfc; text-align: left; }
.docking-image-preview img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #fff; }
.docking-image-preview span { color: var(--muted); font-size: 10px; }
.docking-log-list { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #657378; font-size: 10px; line-height: 1.6; }
.docking-preview-card { margin-bottom: 14px; padding: 0; overflow: hidden; }
.docking-preview-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; color: #43535a; cursor: pointer; list-style: none; }
.docking-preview-card > summary::-webkit-details-marker { display: none; }
.docking-preview-card > summary::before { content: "+"; flex: 0 0 auto; width: 17px; height: 17px; display: inline-grid; place-items: center; border: 1px solid #cbd8d8; border-radius: 50%; color: var(--teal); font-size: 13px; font-weight: 400; }
.docking-preview-card[open] > summary::before { content: "−"; }
.docking-preview-card > summary h4 { margin: 0; font-size: 12px; }
.docking-preview-card > summary span { margin-left: auto; color: #a2adaf; font-size: 9px; }
.docking-preview-card .docking-image-gallery { padding: 0 14px 14px; }
.deg-preflight-panel { margin-top: 14px; padding: 13px; border: 1px solid #d5e8e4; border-radius: 6px; background: #f4faf9; }
.deg-preflight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.deg-preflight-grid span { padding: 9px; color: var(--muted); background: #fff; border: 1px solid #e2ecea; border-radius: 4px; font-size: 10px; }
.deg-preflight-grid b { color: var(--teal-deep); font-size: 14px; }
.deg-preflight-panel > p { margin: 5px 0 10px; color: var(--muted); font-size: 10px; }
.deg-comparison-candidates { margin: 16px 0 4px; padding: 14px 0 0; border: 0; border-top: 1px solid #dbe5e4; border-radius: 0; background: transparent; }
.comparison-heading { color: var(--ink); font-size: 14px; font-weight: 650; }
.comparison-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.comparison-intro, .comparison-reason { color: var(--muted); font-size: 12px; line-height: 1.55; }
.comparison-intro { margin: 8px 0 10px; }
.comparison-choice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.comparison-choice-row select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #cfdad9; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.comparison-choice-row .secondary-button { min-height: 42px; white-space: nowrap; }
.comparison-reason { margin: 8px 0 0; white-space: pre-line; }
.comparison-agent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 9px; }
.comparison-agent-row span { color: var(--muted); font-size: 11px; }
.comparison-agent-row .text-button { padding: 4px 0; font-size: 12px; }
.comparison-manual-action { margin-top: 6px; }
.comparison-agent-advice { margin-top: 8px; padding-left: 10px; border-left: 2px solid #68a69b; white-space: pre-line; }
.deg-preflight-panel .data-columns { gap: 10px; margin-top: 11px; }
.deg-preflight-panel input { width: 100%; padding: 10px; border: 1px solid #dce2e4; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.deg-warning-card { margin-top: 15px; }
.deg-manual-grouping { margin-top: 12px; padding: 12px 0 0; border-top: 1px solid #dbe5e4; border-radius: 0; background: transparent; }
.deg-manual-grouping .field-help { margin: 0 0 10px; }
.deg-manual-grouping select { width: 100%; padding: 10px; border: 1px solid #dce2e4; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.deg-manual-grouping .secondary-button { width: auto; min-height: 35px; margin: 11px 0 0; padding: 0 12px; }
.ephemeral-results-notice { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #cfe4e1; border-radius: 5px; color: #2f665e; background: #f1f9f7; font-size: 11px; }
.ml-advanced-input textarea { display: block; width: 100%; padding: 10px; resize: vertical; border: 1px solid #dce2e4; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; line-height: 1.6; }
.ml-advanced-input .csv-upload-panel { margin-top: 12px; }
@media (max-width: 650px) { .deg-preflight-grid { grid-template-columns: 1fr; } .comparison-choice-row { grid-template-columns: 1fr; } .comparison-choice-row .secondary-button { width: 100%; } }
.text-button { border: 0; padding: 8px 0; color: var(--coral); background: transparent; font-size: 10px; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.enrichment-groups { display: grid; gap: 9px; }
.enrichment-group { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.enrichment-group summary { display: flex; align-items: center; gap: 9px; padding: 12px 13px; color: #536268; cursor: pointer; list-style: none; font-size: 11px; font-weight: 650; }
.enrichment-group summary::-webkit-details-marker { display: none; }
.enrichment-group summary::before { content: "+"; width: 17px; height: 17px; display: inline-grid; place-items: center; border: 1px solid #cbd8d8; border-radius: 50%; color: var(--teal); font-size: 13px; font-weight: 400; }
.enrichment-group[open] summary::before { content: "−"; }
.enrichment-group summary b { margin-left: 4px; color: var(--teal-deep); }
.details-hint { margin-left: auto; color: #a2adaf; font-size: 9px; font-weight: 400; }
.enrichment-group .table-scroll { border-top: 1px solid #edf0f1; }
.artifact-actions { display: inline-flex; align-items: center; gap: 12px; }
.artifact-view-button, .artifact-download-button { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #cfe0de; border-radius: 4px; background: #f4faf9; }
.artifact-download-button { color: #fff !important; background: var(--teal); border-color: var(--teal); }
.artifact-view-button:hover, .artifact-download-button:hover { text-decoration: none !important; opacity: .86; }
.preview-button { border: 0; padding: 0; color: var(--teal); background: transparent; font-size: 10px; cursor: pointer; }
.preview-button:hover { text-decoration: underline; }
.image-preview-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(15, 29, 32, .72); }
.image-preview-dialog { width: min(900px, 94vw); max-height: 90vh; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.image-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.icon-button { width: 28px; height: 28px; border: 0; border-radius: 4px; color: #71808a; background: #f1f4f4; font-size: 18px; line-height: 1; cursor: pointer; }
.icon-button:hover { color: var(--coral); background: #fff0ec; }
.image-preview-body { display: grid; place-items: center; max-height: calc(90vh - 58px); overflow: auto; padding: 18px; background: #f4f6f6; }
.image-preview-body img { display: block; max-width: 100%; max-height: calc(90vh - 100px); object-fit: contain; }
.agent-form .primary-button:disabled { color: #fff; background: #96aaa8; box-shadow: none; opacity: 1; }
.history-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 30px 0 18px; border-bottom: 1px solid var(--line); }.history-toolbar h2 { margin: 6px 0 3px; font-size: 20px; }.history-count { margin: 0; color: var(--muted); font-size: 11px; }.history-refresh { width: auto; min-width: 90px; margin: 0; padding: 0 14px; color: var(--teal-deep); }.history-refresh span { font-size: 17px; line-height: 0; }.history-layout { display: grid; grid-template-columns: minmax(245px, .72fr) minmax(0, 1.8fr); gap: 24px; padding: 18px 0; }.history-list { display: grid; align-content: start; border-top: 1px solid var(--line); }.history-run { width: 100%; display: grid; gap: 7px; padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.history-run:hover { background: #f1f7f6; }.history-run.selected { background: #eaf4f2; box-shadow: inset 3px 0 var(--teal); }.history-run-top, .history-run-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.history-run-title { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.history-run-module, .history-run-time, .history-run-id { color: var(--muted); font-size: 10px; }.history-run-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.history-detail { min-width: 0; }.history-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }.history-detail-heading h3 { margin: 5px 0; font-size: 17px; overflow-wrap: anywhere; }.history-detail-heading p { margin: 0; color: var(--muted); font-size: 11px; }.history-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.history-action { width: auto; min-height: 34px; margin: 0; padding: 0 11px; }.history-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }.history-meta div { min-width: 0; display: grid; gap: 4px; }.history-meta span { color: var(--muted); font-size: 9px; }.history-meta strong { overflow-wrap: anywhere; font-size: 11px; font-weight: 600; }.history-section { padding: 15px 0; border-bottom: 1px solid var(--line); }.history-section h4 { margin: 0 0 9px; color: #43535a; font-size: 12px; }.history-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; }.history-stage { display: flex; justify-content: space-between; gap: 12px; padding: 7px 5px; border-bottom: 1px solid #eef1f2; font-size: 10px; }.history-stage span:last-child { color: var(--muted); }.history-targets { display: flex; flex-wrap: wrap; gap: 5px; }.history-target { padding: 4px 7px; color: #375e58; background: #e8f2f0; border-radius: 3px; font-size: 10px; }.history-warning { margin: 5px 0; color: #9a6d22; font-size: 10px; line-height: 1.5; }.history-report { max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafbfb; }.history-report pre { margin: 0; color: #4f5d62; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }.history-empty { padding: 22px 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }.history-error { color: #ac4c3a; }.history-list .state-badge { flex: 0 0 auto; }.history-artifacts { display: grid; gap: 5px; }.history-detail .pathway-table { font-size: 10px; }
@media (max-width: 760px) { .history-layout { grid-template-columns: 1fr; gap: 18px; }.history-list { max-height: 250px; overflow: auto; }.history-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }.history-detail-heading { flex-direction: column; }.history-detail-actions { justify-content: flex-start; }.history-stages { grid-template-columns: 1fr; } }

.developer-info-button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px solid #dce6e4; border-radius: 4px; color: var(--teal-deep); background: #fff; font-size: 10px; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.developer-info-button:hover { border-color: #b7d4ce; background: #f1f8f7; transform: translateY(-1px); }
.developer-info-button span { color: var(--coral); font-size: 14px; line-height: 1; }
.developer-info-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(15, 29, 32, .58); backdrop-filter: blur(4px); }
.developer-info-dialog { width: min(100%, 390px); overflow: hidden; border: 1px solid #dce8e5; border-radius: 8px; background: #fff; box-shadow: 0 22px 65px rgba(0,0,0,.22); animation: console-content-in .2s ease both; }
.developer-info-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.developer-info-body { display: grid; gap: 9px; padding: 17px; }
.developer-info-body p { margin: 0 0 4px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.developer-info-body a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 12px; border: 1px solid #e0ebe8; border-radius: 5px; color: var(--teal-deep); background: #f8fbfa; font-size: 11px; text-decoration: none; transition: background .18s, border-color .18s; }
.developer-info-body a:hover { border-color: #b9d8d1; background: #edf7f4; }
.developer-info-body a span { color: var(--muted); font-size: 10px; }
.developer-info-body a strong { font-weight: 650; }

@media (max-width: 1000px) {
  .mode-label, .mode-badge { display: none; }
}

@media (max-width: 760px) {
  .account-email, #logout-button { display: none; }
}

@media (max-width: 650px) {
  .topbar { height: auto; min-height: 92px; gap: 10px; padding: 12px 0; }
  .topbar-actions { display: flex; flex-shrink: 0; gap: 0; }
  .developer-info-button { min-height: 28px; padding: 0 7px; font-size: 9px; }
}
.demo-login-area { margin-top: 16px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: #91a0a3; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e5eceb; }
#start-button:disabled { cursor: not-allowed; }
.ml-next-step code { padding: 1px 4px; border-radius: 3px; color: #315b58; background: #eef4f2; font-family: ui-monospace, monospace; }.ml-next-step .secondary-button { width: auto; min-height: 35px; margin-top: 10px; padding: 0 12px; color: var(--teal-deep); background: #f1f8f7; }.ml-next-step .secondary-button:hover { color: var(--teal-deep); background: #e4f2ef; }
.history-run-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: stretch; border-bottom: 1px solid var(--line); }
.history-run-row .history-run { border-bottom: 0; }
.history-delete-button { display: grid; place-items: center; width: 28px; height: 28px; align-self: center; justify-self: center; border: 0; border-radius: 4px; color: #a56b62; background: transparent; cursor: pointer; }
.history-delete-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.history-delete-button:hover { color: #a33f36; background: #fff0ec; }
.history-delete-button:disabled { color: #b7c0c0; background: transparent; cursor: not-allowed; }
.history-delete-text { color: #a33f36; }
.history-delete-text:hover { color: #8d2f29; background: #fff0ec; }

.history-refresh-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.project-home { min-height: 100vh; min-height: 100svh; color: #f6f7f5; background: #172522; }
.project-home-header { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px clamp(20px, 5.5vw, 84px); }
.project-home-brand { display: flex; align-items: center; gap: 11px; }
.project-home-brand .brand-mark { flex: 0 0 auto; }
.project-home-brand > div:last-child { display: grid; gap: 3px; }
.project-home-brand strong { color: #fff; font-size: 16px; font-weight: 650; }
.project-home-brand small { color: rgba(244,248,246,.65); font-size: 8px; letter-spacing: .14em; }
.project-home-account { display: flex; align-items: center; gap: 15px; }
.project-home-account .account-email { color: rgba(246,247,245,.78); }
.project-home-account .text-button { color: #fff; }
.project-home-main { width: min(100%, 1520px); margin: 0 auto; padding: 0 clamp(20px, 5.5vw, 84px); }
.project-home-hero { position: relative; display: flex; align-items: center; min-height: min(720px, 86svh); padding: 120px 0 74px; isolation: isolate; }
.project-home-hero::before { position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; content: ""; transform: translateX(-50%); background: url("/assets/project-home-lab.jpg") center 42% / cover no-repeat; }
.project-home-hero::after { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; content: ""; transform: translateX(-50%); background: rgba(15,35,29,.58); }
.project-home-hero-copy { width: min(760px, 78%); padding: 38px 0; }
.project-home-hero .section-kicker { color: #8ac5b8; }
.project-home-hero h1 { max-width: 790px; margin: 22px 0 19px; color: #fff; font-size: 62px; font-weight: 620; line-height: 1.14; }
.project-home-hero h1 em { color: #f1a082; font-style: normal; }
.project-home-subtitle { margin: -3px 0 14px; color: #f1a082; font-size: 21px; font-weight: 600; }
.project-home-lead { max-width: 620px; margin: 0; color: rgba(244,248,246,.8); font-size: 15px; line-height: 1.85; }
.project-home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.project-home-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 190px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 4px; color: #172329; background: #f1a082; font-size: 13px; font-weight: 700; transition: background .18s, transform .18s; }
.project-home-cta:hover { background: #ffb397; transform: translateY(-1px); }
.project-home-cta span:last-child { font-size: 20px; line-height: 1; }
.project-home-hint { color: rgba(244,248,246,.68); font-size: 11px; }
.project-home-overview { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 90px); padding: 44px 0 52px; border-top: 1px solid rgba(244,248,246,.18); }
.project-home-overview-heading .section-kicker { color: #8ac5b8; }
.project-home-overview-heading h2 { margin: 10px 0 9px; color: #fff; font-size: 24px; line-height: 1.3; }
.project-home-overview-heading > p:last-child { max-width: 310px; margin: 0; color: rgba(244,248,246,.65); font-size: 12px; line-height: 1.75; }
.project-home-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.project-home-capabilities article { display: grid; align-content: start; gap: 15px; padding-top: 3px; }
.capability-index { color: #f1a082; font-size: 11px; font-weight: 700; }
.project-home-capabilities h3 { margin: 0 0 7px; color: #fff; font-size: 14px; }
.project-home-capabilities p { margin: 0; color: rgba(244,248,246,.65); font-size: 11px; line-height: 1.75; }
.project-home-footer { display: flex; justify-content: space-between; gap: 15px; padding: 17px clamp(20px, 5.5vw, 84px) 19px; border-top: 1px solid rgba(244,248,246,.12); color: rgba(244,248,246,.48); font-size: 10px; }
.console-home-button { min-height: 34px; padding: 0 11px; border: 1px solid #dce6e4; border-radius: 4px; color: var(--teal-deep); background: #fff; font-size: 10px; white-space: nowrap; }
.console-home-button:hover { background: #f1f8f7; }
@media (max-width: 900px) {
  .project-home-hero { min-height: 640px; min-height: min(680px, 82svh); }
  .project-home-hero::after { background: rgba(15,35,29,.68); }
  .project-home-overview { grid-template-columns: 1fr; gap: 24px; }
  .project-home-hero h1 { font-size: 50px; }
}
@media (max-width: 650px) {
  .project-home-header { padding-top: 17px; }
  .project-home-brand strong { font-size: 14px; }
  .project-home-brand small { font-size: 7px; }
  .project-home-account { gap: 8px; }
  .project-home-account .account-email { display: none; }
  .project-home-hero { align-items: flex-end; min-height: 700px; min-height: 88svh; padding: 115px 0 43px; }
  .project-home-hero::before { background-position: 58% center; }
  .project-home-hero::after { background: rgba(15,35,29,.7); }
  .project-home-hero-copy { width: 100%; padding: 0; }
  .project-home-hero h1 { margin: 16px 0 13px; font-size: 39px; }
  .project-home-subtitle { font-size: 18px; }
  .project-home-lead { font-size: 13px; }
  .project-home-actions { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 23px; }
  .project-home-overview { padding: 29px 0 34px; }
  .project-home-capabilities { grid-template-columns: 1fr; gap: 22px; }
  .project-home-capabilities article { grid-template-columns: 30px minmax(0, 1fr); gap: 6px; }
  .project-home-capabilities article > div { min-width: 0; }
  .project-home-capabilities p { max-width: 450px; }
  .project-home-footer { flex-direction: column; gap: 5px; }
}

/* Login is a dialog over the public project home. */
body.auth-open { overflow: hidden; }
.auth-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  min-height: 0;
  padding: 24px;
  background: rgba(10, 28, 25, .76);
  backdrop-filter: blur(7px);
}
.auth-decoration { display: none; }
.auth-panel {
  width: min(100%, 460px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(244,248,246,.18);
  border-radius: 8px;
  color: #f6f7f5;
  background: #172522;
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
  animation: console-content-in .2s ease both;
}
.auth-close-button {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.07);
  font-size: 21px;
  line-height: 1;
}
.auth-close-button:hover { color: #fff; background: rgba(255,255,255,.14); }
.auth-brand { margin-bottom: 28px; }
.auth-brand strong, .auth-panel h1 { color: #fff; }
.auth-brand small, .auth-copy { color: rgba(244,248,246,.65); }
.auth-panel .section-kicker { color: #8ac5b8; }
.auth-panel h1 { font-size: 27px; letter-spacing: 0; }
.auth-switch { background: rgba(255,255,255,.07); }
.auth-switch button { color: rgba(244,248,246,.62); }
.auth-switch button.active { color: #172522; background: #f1a082; box-shadow: none; }
.auth-form label { color: rgba(244,248,246,.82); }
.auth-form > input, .auth-password-field input {
  border-color: rgba(255,255,255,.16);
  color: #f6f7f5;
  background: rgba(255,255,255,.07);
}
.auth-form > input::placeholder, .auth-password-field input::placeholder { color: rgba(244,248,246,.38); }
.auth-form > input:focus, .auth-password-field input:focus { border-color: #8ac5b8; box-shadow: 0 0 0 3px rgba(138,197,184,.16); }
.auth-password-toggle { color: rgba(244,248,246,.62); }
.auth-password-toggle:hover { color: #fff; background: rgba(255,255,255,.1); }
.auth-form .primary-button {
  color: #172522;
  background: #f1a082;
  box-shadow: none;
}
.auth-form .primary-button:hover { background: #ffb397; }
.auth-register-actions .secondary-button {
  border-color: rgba(255,255,255,.18);
  color: #dce9e5;
  background: rgba(255,255,255,.07);
}
.auth-register-actions .secondary-button:hover { color: #fff; background: rgba(255,255,255,.13); }
.auth-field-help { color: rgba(244,248,246,.55); }
.auth-security-note { border-color: rgba(138,197,184,.2); color: rgba(244,248,246,.7); background: rgba(138,197,184,.08); }
.auth-security-note > span:first-child { color: #8ac5b8; }
.auth-developer-button { color: rgba(244,248,246,.56); }
.auth-developer-button:hover { color: #fff; }
.auth-developer-button span { color: #f1a082; }
.auth-message.success { color: #8ac5b8; }
.auth-message.error { color: #ff9d86; }
.auth-message.info { color: #b1d8ce; }
.project-home-login-button {
  min-width: 82px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(241,160,130,.82);
  border-radius: 4px;
  color: #172522;
  background: #f1a082;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s, transform .18s;
}
.project-home-login-button:hover { background: #ffb397; transform: translateY(-1px); }
@media (max-width: 480px) {
  .auth-screen { padding: 14px; }
  .auth-panel { max-height: calc(100svh - 28px); padding: 27px 22px; border-radius: 7px; }
  .auth-brand { margin-bottom: 23px; }
}

/* The console shares the public page's forest-green palette without becoming a dark-only UI. */
body { background: #edf4f1; }
.app-shell { background: #edf4f1; }
.sidebar { background: linear-gradient(180deg, #1b3431 0%, #203d3a 100%); box-shadow: 8px 0 30px rgba(20,58,53,.08); }
.main-content { background: linear-gradient(180deg, #f4f8f6 0%, #edf4f1 100%); }
.topbar { border-bottom-color: #dbe8e3; }
.panel, .data-card, .metric-card, .report-box { background: rgba(255,255,253,.92); border-color: #d8e5e0; box-shadow: 0 13px 34px rgba(33,74,67,.055); }
.hero-band { border-bottom: 1px solid rgba(190,213,205,.58); }
.hero-band h2, .topbar h1 { color: #1d3935; }
.nav-item { transition: background .22s ease, color .22s ease, transform .22s ease; }
.nav-item:hover { transform: translateX(2px); }
.primary-button, .secondary-button, .console-home-button, .external-tool-button, .project-home-login-button { transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.primary-button:not(:disabled):hover, .secondary-button:not(:disabled):hover { box-shadow: 0 8px 18px rgba(20,106,98,.13); }
.view:not(.hidden-view) { animation: console-view-in .38s ease both; }
.panel, .hero-band, .history-toolbar { animation: console-content-in .42s ease both; }
.target-gene-results { animation: console-content-in .38s ease both; }
@keyframes console-view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes console-content-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.project-home-hero-copy { animation: home-copy-in .75s cubic-bezier(.22,.7,.25,1) both; }
.project-home-overview { animation: home-section-in .7s .12s ease both; }
.project-home-capabilities article { animation: home-section-in .55s ease both; }
.project-home-capabilities article:nth-child(2) { animation-delay: .08s; }
.project-home-capabilities article:nth-child(3) { animation-delay: .16s; }
@keyframes home-copy-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-section-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .primary-button:not(:disabled):hover, .secondary-button:not(:disabled):hover, .nav-item:hover, .external-tool-button:hover, .target-source-links a:hover { transform: none; }
}

.targets-workspace { display: grid; gap: 18px; }
.target-gene-collector { padding-bottom: 21px; }
.target-gene-intro { max-width: 760px; margin: -8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.target-gene-file-input { margin-bottom: 1px; }
.target-gene-upload-status { min-height: 17px; margin-bottom: 15px; }
.error-text { color: #ad5848 !important; }
.target-gene-file-list { display: grid; gap: 7px; }
.target-gene-file-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(155px, .8fr) 28px; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #dce9e4; border-radius: 5px; background: #f7fbf9; transition: border-color .2s ease, background .2s ease; }
.target-gene-file-row:hover { border-color: #b9d5cc; background: #f2f9f6; }
.target-gene-file-name { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.target-gene-file-name strong { overflow: hidden; color: #294944; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.target-gene-file-name > span:last-child { color: var(--muted); font-size: 10px; white-space: nowrap; }
.target-file-index { color: var(--coral); font-size: 10px; font-weight: 700; }
.target-gene-file-row select { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #cfe0da; border-radius: 4px; color: #294944; background: #fff; font-size: 11px; }
.target-file-remove { width: 26px; height: 26px; border: 0; border-radius: 50%; color: #8c6e68; background: transparent; font-size: 19px; line-height: 1; }
.target-file-remove:hover { color: #ae4d3f; background: #fff0ec; }
.target-gene-compare-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 17px; }
.target-gene-compare { width: auto; min-width: 140px; padding: 0 17px; }
.target-gene-set-count { color: var(--muted); font-size: 11px; }
.target-gene-results { padding: 24px; border: 1px solid #d8e5e0; border-radius: 8px; background: rgba(255,255,253,.92); box-shadow: 0 13px 34px rgba(33,74,67,.055); }
.target-results-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #e1ebe7; }
.target-results-heading h3 { margin: 7px 0 6px; color: #1e3d38; font-size: 18px; }
.target-results-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.target-gene-downloads { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.target-gene-downloads .secondary-button { width: auto; min-height: 34px; margin: 0; padding: 0 10px; color: var(--teal-deep); background: #eff7f4; border: 1px solid #cfe2dc; font-size: 10px; }
.target-gene-downloads .secondary-button:hover { background: #e2f1ec; }
.target-venn-figure { margin: 18px 0 0; }
.target-gene-chart { overflow-x: auto; padding: 9px; border: 1px solid #dfeae5; border-radius: 6px; background: #f8fbfa; }
.target-gene-chart svg { display: block; width: min(100%, 760px); min-width: 620px; height: auto; margin: 0 auto; }
.target-venn-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.target-gene-overlap { margin-top: 14px; padding: 14px; border: 1px solid #d8e8e1; border-radius: 6px; background: #f1f8f5; }
.target-gene-overlap h4 { margin: 0 0 7px; color: #2d5d53; font-size: 12px; }
.target-gene-overlap p { margin: 0; color: #5e746e; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.target-gene-sources { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); gap: 26px; align-items: start; padding: 21px 0 8px; border-top: 1px solid #dbe8e3; }
.target-gene-sources h3 { margin: 7px 0 6px; color: #27453f; font-size: 15px; }
.target-gene-sources p { max-width: 400px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.target-source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.target-source-links a { display: flex; justify-content: space-between; padding: 11px 12px; color: var(--teal-deep); border: 1px solid #d3e5df; border-radius: 5px; background: #f7fbf9; font-size: 11px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.target-source-links a:hover { transform: translateY(-2px); background: #eaf5f1; }
@media (max-width: 760px) { .target-results-heading, .target-gene-sources { grid-template-columns: 1fr; display: grid; }.target-gene-downloads { justify-content: flex-start; }.target-gene-file-row { grid-template-columns: minmax(0, 1fr) 28px; }.target-gene-file-row label { grid-column: 1 / -1; grid-row: 2; }.target-gene-file-row .target-file-remove { grid-column: 2; grid-row: 1; }.target-gene-file-name { grid-template-columns: 26px minmax(0, 1fr); }.target-gene-file-name > span:last-child { grid-column: 2; }.target-source-links { grid-template-columns: 1fr; } }

#ml-guidance:not(.hidden) .ml-agent-action-row .text-button,
#ml-guidance:not(.hidden) ~ .workspace-grid #deg-input-fields .comparison-agent-row .text-button,
#ml-guidance:not(.hidden) ~ .workspace-grid #deg-input-fields .comparison-manual-action .text-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #b9d8d3;
  border-radius: 5px;
  color: var(--teal-deep);
  background: #e8f4f1;
  font-size: 11px;
  text-decoration: none;
}
#ml-guidance:not(.hidden) .ml-agent-action-row .text-button:hover,
#ml-guidance:not(.hidden) ~ .workspace-grid #deg-input-fields .comparison-agent-row .text-button:hover,
#ml-guidance:not(.hidden) ~ .workspace-grid #deg-input-fields .comparison-manual-action .text-button:hover {
  color: #fff;
  background: var(--teal-deep);
  text-decoration: none;
}
#ml-guidance:not(.hidden) .ml-next-step .secondary-button,
#ml-guidance:not(.hidden) ~ .workspace-grid #deg-input-fields .secondary-button {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  box-shadow: 0 5px 12px rgba(11,119,115,.14);
}
#ml-guidance:not(.hidden) .ml-next-step .secondary-button:hover,
#ml-guidance:not(.hidden) ~ .workspace-grid #deg-input-fields .secondary-button:hover:not(:disabled) {
  color: #fff;
  background: var(--teal-deep);
}
#ml-guidance:not(.hidden) ~ .workspace-grid #start-button:disabled {
  opacity: .72;
}
.ml-tutorial-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 14px; border: 1px solid #e4a08f; border-radius: 7px; color: #6d3e35; background: linear-gradient(100deg, #fff6f2, #fffaf7); box-shadow: 0 6px 16px rgba(217,109,87,.09); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ml-tutorial-entry:hover { border-color: var(--coral); box-shadow: 0 9px 22px rgba(217,109,87,.15); transform: translateY(-1px); }
.ml-tutorial-entry-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 6px; color: #fff; background: var(--coral); font-size: 15px; font-weight: 700; }
.ml-tutorial-entry strong { display: block; margin-bottom: 3px; color: #754236; font-size: 12px; }
.ml-tutorial-entry small { display: block; color: #9b6d63; font-size: 10px; line-height: 1.55; }
.ml-tutorial-entry-arrow { padding: 6px 8px; border-radius: 4px; color: #a55242; background: #ffebe5; font-size: 10px; font-weight: 700; white-space: nowrap; }
@media (max-width: 650px) { .ml-tutorial-entry { grid-template-columns: auto minmax(0, 1fr); }.ml-tutorial-entry-arrow { grid-column: 2; justify-self: start; } }
