/* Inter and JetBrains Mono, latin subset, SIL Open Font License; served from this site */
@font-face{font-family:Inter;font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/inter-latin.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-latin.woff2) format('woff2');}
/* hepatoSIGHT deactivated placeholder — hand-written replacement for the
   Tailwind utility classes used by the original hepatosight layout. */
:root { --navy-900:#0b1533; --navy-800:#12224f; --navy-700:#1b2a6b; --navy-600:#1e3a8f; }
html, body { background: #f6f8fc; }
html.dark, html.dark body { background: var(--navy-900); color-scheme: dark; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #1e293b; -webkit-font-smoothing: antialiased; }
html.dark body { color: #f1f5f9; }
* { box-sizing: border-box; }
.brandtext { background: linear-gradient(90deg,#22d3ee 0%,#38bdf8 40%,#3b82f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-accent { background: linear-gradient(90deg,#22d3ee 0%,#3b82f6 100%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
html.dark .site-header { border-bottom-color: rgba(255,255,255,.1); background: rgba(27,42,107,.95); }
.site-header .bar { margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 56px; max-width: 80rem; padding: 0 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(34,211,238,.2); }
.wordmark .wm-text { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; color: var(--navy-800); }
html.dark .wordmark .wm-text { color: #e2e8f0; }
.wordmark .wm-plus { margin: 0 4px; font-size: 18px; font-weight: 300; color: rgba(148,163,184,.8); }
.wordmark .wm-gxb { font-size: 17px; font-weight: 800; letter-spacing: -0.025em; color: #10b981; }
html.dark .wordmark .wm-gxb { color: #34d399; }
.theme-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 8px; border: 1px solid #e2e8f0; background: transparent; color: #64748b; cursor: pointer; }
.theme-toggle:hover { background: #f1f5f9; }
html.dark .theme-toggle { border-color: rgba(255,255,255,.1); color: #cbd5e1; }
html.dark .theme-toggle:hover { background: rgba(255,255,255,.05); }
.theme-toggle .icon-sun { display: block; } .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; } html.dark .theme-toggle .icon-moon { display: block; }

/* Main column */
.hs-main { margin: 0 auto; max-width: 80rem; padding: 40px 24px 96px; text-align: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 4px 12px; border-radius: 9999px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; font-weight: 500; color: #64748b; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px -6px rgba(16,24,40,.1); }
html.dark .badge-pill { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #e2e8f0; }
.badge-pill .dot { width: 6px; height: 6px; border-radius: 9999px; }
h1 { margin: 0 auto; max-width: 48rem; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--navy-800); text-wrap: balance; }
html.dark h1 { color: #f1f5f9; }
@media (min-width: 640px) { h1 { font-size: 48px; } }
.hs-lede { margin: 16px auto 0; max-width: 42rem; font-size: 15px; line-height: 1.625; color: #64748b; }
html.dark .hs-lede { color: #94a3b8; }

/* Search form card */
.search-card { margin: 32px auto 0; max-width: 48rem; padding: 8px; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.18); transition: border-color .15s, box-shadow .15s; }
.search-card:focus-within { border-color: #67e8f9; box-shadow: 0 0 0 4px #cffafe; }
html.dark .search-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
html.dark .search-card:focus-within { box-shadow: 0 0 0 4px rgba(34,211,238,.1); }
.search-row { display: flex; align-items: flex-end; gap: 8px; }
.search-row .glyph { padding: 0 0 12px 12px; color: #cbd5e1; }
textarea#nl-query { flex: 1; min-height: 64px; max-height: 160px; resize: none; border: 0; background: transparent; padding: 12px 0; font: inherit; font-size: 15px; line-height: 1.625; color: #1e293b; outline: none; }
textarea#nl-query::placeholder { color: #94a3b8; }
html.dark textarea#nl-query { color: #f1f5f9; }
.btn-search { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 4px 0; padding: 10px 16px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(59,130,246,.25); }
.btn-search:hover { filter: brightness(1.05); }

/* Preset pills */
.presets { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 48rem; }
.presets .presets-label { font-size: 12px; font-weight: 500; color: #94a3b8; }
.preset-pill { padding: 6px 14px; border-radius: 9999px; border: 1px solid #e2e8f0; background: #fff; font-size: 12.5px; font-weight: 500; color: #475569; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px -6px rgba(16,24,40,.1); }
html.dark .preset-pill { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #e2e8f0; }

/* Deactivated notice */
.deactivated-notice { margin: 24px auto 0; max-width: 48rem; padding: 16px 20px; border-radius: 12px; border: 1px solid #fecaca; background: #fef2f2; font-size: 15px; line-height: 1.6; color: #991b1b; }
.deactivated-notice a { color: #991b1b; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
html.dark .deactivated-notice { border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.1); color: #fecaca; }
html.dark .deactivated-notice a { color: #fecaca; }

/* Builder */
.builder-wrap { margin-top: 24px; text-align: left; }
.builder-kicker { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 auto; padding: 6px 12px; font-size: 14px; font-weight: 500; color: #64748b; }
html.dark .builder-kicker { color: #94a3b8; }
.builder-card { margin-top: 16px; border-radius: 16px; overflow: hidden; border: 1px solid #a5f3fc; background: linear-gradient(180deg, rgba(236,254,255,.6), #fff); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px -6px rgba(16,24,40,.1); }
html.dark .builder-card { border-color: rgba(34,211,238,.2); background: linear-gradient(180deg, rgba(34,211,238,.05), var(--navy-900)); }
.builder-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #cffafe; }
html.dark .builder-head { border-bottom-color: rgba(255,255,255,.1); }
.builder-title { font-size: 14px; font-weight: 700; color: var(--navy-800); }
html.dark .builder-title { color: #f1f5f9; }
.builder-controls { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 6px 12px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px -6px rgba(16,24,40,.1); }
html.dark .builder-controls { background: rgba(255,255,255,.05); }
.builder-controls .ctl-label { font-size: 12px; font-weight: 600; color: #64748b; }
.builder-controls label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-700); }
html.dark .builder-controls label { color: #e2e8f0; }
.builder-controls label.or-label { font-weight: 500; color: #64748b; }
.builder-controls .mode-divider { margin-left: 8px; border-left: 1px solid #e2e8f0; padding-left: 8px; font-size: 12px; font-weight: 600; color: #64748b; }
html.dark .builder-controls .mode-divider { border-left-color: rgba(255,255,255,.1); }
select.mode-select { padding: 2px 6px; border-radius: 4px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; color: inherit; }
html.dark select.mode-select { border-color: rgba(255,255,255,.1); background: var(--navy-700); }
.builder-body { padding: 16px 20px; }
.rule-row { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; }
@media (min-width: 640px) { .rule-row { grid-template-columns: minmax(0,1.4fr) minmax(0,1.4fr) minmax(0,1.3fr) minmax(0,1.2fr) auto; } }
.rule-row + .rule-row { margin-top: 10px; }
.mat-select, .mat-input { appearance: none; -webkit-appearance: none; width: 100%; background: transparent; border: none; border-bottom: 1px solid #cbd5e1; border-radius: 0; padding: 4px; font: inherit; font-size: 13px; color: #334155; outline: none; }
.mat-select:focus, .mat-input:focus { border-bottom: 2px solid var(--navy-600); }
html.dark .mat-select, html.dark .mat-input { color: #e2e8f0; border-bottom-color: #334155; }
.mat-input::placeholder { color: #94a3b8; font-style: italic; }
.rule-remove { justify-self: end; border: 0; background: transparent; padding: 4px; color: #cbd5e1; cursor: pointer; }
.rule-remove:hover { color: #f43f5e; }
.builder-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: #475569; cursor: pointer; }
.btn-ghost:hover { border-color: #cbd5e1; }
html.dark .btn-ghost { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #e2e8f0; }
.btn-run { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px -6px rgba(16,24,40,.1); }
.btn-run:hover { filter: brightness(1.05); }
.builder-note { margin-left: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: #94a3b8; }

/* Footer */
.site-footer { border-top: 1px solid #e2e8f0; padding: 24px 0; text-align: center; font-size: 12px; color: #94a3b8; }
html.dark .site-footer { border-top-color: rgba(255,255,255,.1); color: #64748b; }
.site-footer a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #475569; }
html.dark .site-footer a:hover { color: #cbd5e1; }

/* platform skip link: its inline style is blocked by the site CSP */
.skip-link{position:absolute;left:-9999px;top:auto;}
.skip-link:focus{position:fixed;left:1rem;top:1rem;z-index:50;background:#fff;color:#000;padding:.5rem 1rem;border-radius:.25rem;}
.builder-controls{flex-wrap:wrap;max-width:100%;}
