/* Histology FM Portal — brightfield (light) / darkfield fluorescence (dark) */
:root {
  --glass: #f3f2f7;      /* slide glass */
  --glass-2: #ebe9f2;
  --paper: #fbfbfd;
  --ink: #221e3a;        /* haematoxylin-dark ink */
  --ink-2: #57526f;
  --ink-3: #635e7a;
  --line: #d6d2e3;
  --haem: #3b3486;       /* haematoxylin */
  --eosin: #c2407a;      /* eosin */
  --btn-bg: #3b3486;
  --btn-ink: #ffffff;
  --ok-solid: #246b4b;
  --ok-ink: #ffffff;
  --cli-bg: #1c1932;
  --cli-ink: #f3f2f7;
  --glint: rgba(255,255,255,.65);
  --frost: rgba(255,255,255,.76);
  --focus: #c2407a;
  --ok: #26704e;
  --warn: #995813;
  --err: #b3262f;
  /* family stains */
  --c-patch: #3b3486;
  --c-vl: #c2407a;
  --c-slide: #7a3e9d;
  --c-vmif: #0b7f90;
  --c-st: #8a5a2b;
  --c-seg: #3f7f5a;
  /* dataset modality stains */
  --d-matched_he_spatial: #8a5a2b;
  --d-matched_he_if: #0b7f90;
  --d-matched_other: #c2407a;
  --d-unmatched_he: #3b3486;
  --d-unmatched_spatial: #2f7d58;
  --d-unmatched_tx: #7a3e9d;
  /* oncology site stains */
  --cs-brain: #6b3fa0;
  --cs-lung: #0b7f90;
  --cs-breast: #c2407a;
  --cs-prostate: #2b59a8;
  --cs-pan_cancer: #9a5220;
  --cs-other_cancer: #57526f;
  --radius-s: 4px;
  --radius-m: 10px;
  --font-ui: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glass: #0d0f1e; --glass-2: #151830; --paper: #121529;
    --ink: #e9e8f4; --ink-2: #b8b5d0; --ink-3: #9692b3; --line: #2a2d4a;
    --haem: #9b93ff; --eosin: #ff6fae; --frost: rgba(28,31,58,.82); --focus: #ff6fae;
    --btn-bg: #6358dc; --btn-ink: #ffffff;
    --ok-solid: #1f7a53; --ok-ink: #ffffff;
    --cli-bg: #080a16; --cli-ink: #e9e8f4;
    --glint: rgba(255,255,255,.07);
    --ok: #4fd39a; --warn: #f0a94b; --err: #ff6b74;
    --c-patch: #8f86ff; --c-vl: #ff6fae; --c-slide: #c48cff; --c-vmif: #34d6e8; --c-st: #e0a35f; --c-seg: #6fd39b;
    --d-matched_he_spatial: #e0a35f; --d-matched_he_if: #34d6e8; --d-matched_other: #ff6fae;
    --d-unmatched_he: #8f86ff; --d-unmatched_spatial: #6fd39b; --d-unmatched_tx: #c48cff;
    --cs-brain: #b98eff; --cs-lung: #34d6e8; --cs-breast: #ff6fae;
    --cs-prostate: #6ea4ff; --cs-pan_cancer: #f0a94b; --cs-other_cancer: #9e9ab8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --glass: #0d0f1e; --glass-2: #151830; --paper: #121529;
  --ink: #e9e8f4; --ink-2: #b8b5d0; --ink-3: #9692b3; --line: #2a2d4a;
  --haem: #9b93ff; --eosin: #ff6fae; --frost: rgba(28,31,58,.82); --focus: #ff6fae;
  --btn-bg: #6358dc; --btn-ink: #ffffff;
  --ok-solid: #1f7a53; --ok-ink: #ffffff;
  --cli-bg: #080a16; --cli-ink: #e9e8f4;
  --glint: rgba(255,255,255,.07);
  --ok: #4fd39a; --warn: #f0a94b; --err: #ff6b74;
  --c-patch: #8f86ff; --c-vl: #ff6fae; --c-slide: #c48cff; --c-vmif: #34d6e8; --c-st: #e0a35f; --c-seg: #6fd39b;
  --d-matched_he_spatial: #e0a35f; --d-matched_he_if: #34d6e8; --d-matched_other: #ff6fae;
  --d-unmatched_he: #8f86ff; --d-unmatched_spatial: #6fd39b; --d-unmatched_tx: #c48cff;
  --cs-brain: #b98eff; --cs-lung: #34d6e8; --cs-breast: #ff6fae;
  --cs-prostate: #6ea4ff; --cs-pan_cancer: #f0a94b; --cs-other_cancer: #9e9ab8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--glass); color: var(--ink);
  font: 16px/1.5 var(--font-ui); font-feature-settings: "tnum" 1;
}
a { color: var(--haem); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-size: 1.08rem; line-height: 1.3; }
p { margin: 0 0 .75em; max-width: 72ch; }
code, pre { font-family: var(--font-code); font-size: .84em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--glass) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 14px; border-radius: 2px; align-self: center;
  background: linear-gradient(90deg, var(--frost) 0 34%, transparent 34%), linear-gradient(90deg, var(--haem), var(--eosin));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-stretch: 90%; }
nav.tabs { display: flex; gap: 3px; margin-left: 8px; }
nav.tabs button {
  border: 0; background: none; padding: 8px 13px; border-radius: var(--radius-s); cursor: pointer; color: var(--ink-2);
  font-weight: 500; white-space: nowrap; transition: background-color .14s ease, color .14s ease;
}
nav.tabs button:hover { color: var(--ink); background: color-mix(in srgb, var(--glass-2) 68%, transparent); }
nav.tabs button[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--glass-2); box-shadow: inset 0 -2.5px 0 var(--eosin); }
.conn { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: .875rem; transition: border-color .14s ease; }
.pill:hover, .icon-btn:hover { border-color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }
.dot.run { background: var(--eosin); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.icon-btn { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-s); width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; transition: border-color .14s ease; }

main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 80px; }
section[hidden] { display: none !important; }

/* ── intro ──────────────────────────────────────────────────────────────── */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.intro h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.02; font-weight: 700; font-stretch: 88%; max-width: 18ch; }
.intro p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.counts { display: flex; gap: 22px; color: var(--ink-2); font-size: .9rem; }
.counts b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-weight: 650; }

/* ── catalogue layout ───────────────────────────────────────────────────── */
.cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
.cat-main { min-width: 0; }
.filters { position: sticky; top: 76px; align-self: start; display: grid; gap: 22px; }
.filters h3 { font-size: .95rem; margin-bottom: 8px; }
.search-wrap { position: relative; }
.search { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.search-wrap .search { padding-right: 34px; }
.kbd-hint {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font: 700 .73rem/1 var(--font-code); padding: 3px 6px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--glass-2); color: var(--ink-3);
  pointer-events: none; transition: opacity .12s ease;
}
.search-wrap:focus-within .kbd-hint, .search-wrap.has-val .kbd-hint { opacity: 0; }
.cat-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px;
  padding: 10px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper);
}
.cat-toolbar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; color: var(--ink-2); }
.cat-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fam-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.fam-list button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none;
  padding: 7px 8px; border-radius: var(--radius-s); cursor: pointer; color: var(--ink-2); }
.fam-list button:hover { background: color-mix(in srgb, var(--glass-2) 65%, transparent); color: var(--ink); }
.fam-list button[aria-pressed="true"] { background: var(--glass-2); color: var(--ink); font-weight: 700; }
.fam-list .sw { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.fam-list .n { margin-left: auto; font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); padding: 3px 0; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--haem); }

.fam-block { margin-bottom: 34px; }
.fam-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fam-head .sw { width: 12px; height: 12px; border-radius: 2px; align-self: center; }
.fam-head p { margin: 0 0 0 auto; color: var(--ink-3); font-size: .9rem; text-align: right; }

/* ── the slide card (the one bold element) ─────────────────────────────── */
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.slide {
  --stain: var(--c-patch);
  position: relative; min-height: 126px; border-radius: 4px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--paper) 94%, transparent), color-mix(in srgb, var(--paper) 64%, var(--glass)));
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  box-shadow: 0 1px 0 var(--glint) inset, 0 6px 14px -10px color-mix(in srgb, var(--ink) 50%, transparent);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.slide:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--stain) 45%, var(--line));
  box-shadow: 0 1px 0 var(--glint) inset, 0 12px 22px -14px color-mix(in srgb, var(--ink) 68%, transparent);
}
.slide[data-compared="yes"] {
  border-color: var(--stain);
  box-shadow: 0 0 0 1px var(--stain), 0 12px 22px -14px color-mix(in srgb, var(--stain) 58%, transparent);
}
.slide-body {
  width: 100%; height: 100%; min-height: 126px; display: grid; grid-template-columns: 36% 1fr;
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit;
}
.slide-body:focus-visible { outline: none; }
.slide:has(.slide-body:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.slide .label {
  background: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--ink) 3%, transparent) 3px 4px), var(--frost);
  border-right: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 4px; position: relative; min-width: 0;
}
.slide .label::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--stain); }
.slide .label .nm { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; font-stretch: 92%; padding-left: 4px; }
.slide .label .dev { font-size: .78rem; color: var(--ink-2); padding-left: 4px; }
.slide .label .arch-meta { font-size: .72rem; color: var(--ink-3); padding-left: 4px; font-family: var(--font-code); line-height: 1.25; }
.slide .label .badges { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; padding-left: 4px; }
.slide .specimen { position: relative; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slide .specimen::before { /* the smear */
  content: ""; position: absolute; right: -18px; top: 12%; width: 62%; height: 76%; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--stain) 26%, transparent), transparent 62%),
              radial-gradient(circle at 70% 65%, color-mix(in srgb, var(--eosin) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.slide dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .84rem; position: relative; padding-right: 76px; }
.slide dt { color: var(--ink-3); }
.slide dd { margin: 0; color: var(--ink); }
.slide .tasks { font-size: .8rem; color: var(--ink-2); position: relative; margin-top: auto; }
.slide[data-ready="no"] .specimen { opacity: .68; }
.cmp-toggle {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; line-height: 1.1; cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(4px); color: var(--ink-2);
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.cmp-toggle:hover { border-color: var(--stain); color: var(--ink); background: var(--paper); }
.cmp-toggle[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; line-height: 1.1; padding: 3px 6px; border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); color: var(--ink-2); background: var(--paper); }
.badge.nc { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--paper)); color: var(--warn); font-weight: 700; }
.badge.free { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--paper)); color: var(--ok); font-weight: 700; }
.badge.gated { border-color: color-mix(in srgb, var(--haem) 45%, transparent); background: color-mix(in srgb, var(--haem) 8%, var(--paper)); color: var(--haem); }
.badge.ready { background: var(--ok-solid); color: var(--ok-ink); border-color: transparent; font-weight: 700; }

.fam-patch { --stain: var(--c-patch); } .fam-vl { --stain: var(--c-vl); } .fam-slide { --stain: var(--c-slide); }
.fam-vmif { --stain: var(--c-vmif); } .fam-st { --stain: var(--c-st); } .fam-seg { --stain: var(--c-seg); }
.empty { padding: 40px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius-m); }

/* ── drawer ─────────────────────────────────────────────────────────────── */
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 100vw); border: 0; padding: 0;
  background: var(--paper); color: var(--ink); box-shadow: -20px 0 40px -20px rgba(0,0,0,.35); }
dialog.drawer::backdrop { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.drawer-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--stain); }
.drawer-body { padding: 18px 24px 30px; display: grid; gap: 18px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: .93rem; margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.close-x { position: absolute; right: 16px; top: 16px; }

/* ── forms / run ────────────────────────────────────────────────────────── */
.run-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.step { border-top: 1px solid var(--line); padding: 18px 0 20px; display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--eosin); line-height: 1.25; }
.step h3 { margin-bottom: 10px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .9rem; color: var(--ink-2); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
input[type=text], input[type=url], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper);
}
textarea { min-height: 120px; resize: vertical; font-family: var(--font-code); font-size: .85rem; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seg-ctl { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 12px; flex-wrap: wrap; }
.seg-ctl button { border: 0; background: var(--paper); padding: 8px 14px; cursor: pointer; color: var(--ink-2); }
.seg-ctl button:hover { color: var(--ink); background: var(--glass-2); }
.seg-ctl button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; }
.drop { display: block; border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 22px; text-align: center; background: var(--paper);
  color: var(--ink-2); cursor: pointer; }
.drop.over { border-color: var(--eosin); background: color-mix(in srgb, var(--eosin) 6%, var(--paper)); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-s);
  padding: 10px 18px; cursor: pointer; font-weight: 700; background: var(--btn-bg); color: var(--btn-ink); transition: filter .14s ease, border-color .14s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); font-weight: 400; }
.btn.ghost:hover:not(:disabled) { border-color: var(--ink-3); background: var(--glass-2); filter: none; }
.btn.small { padding: 6px 11px; font-size: .86rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.aside { position: sticky; top: 76px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; }
.card h3 { margin-bottom: 8px; }
.card ul { margin: 0; padding-left: 1.1em; }
pre.cli { background: var(--cli-bg); color: var(--cli-ink); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius-s); overflow-x: auto; white-space: pre; margin: 8px 0 0; }
.notice { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--paper)); padding: 10px 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .92rem; }
.notice.info { border-left-color: var(--haem); background: color-mix(in srgb, var(--haem) 7%, var(--paper)); }
.notice.err { border-left-color: var(--err); background: color-mix(in srgb, var(--err) 8%, var(--paper)); }
details summary { cursor: pointer; color: var(--ink-2); padding: 4px 0; }

/* ── results ────────────────────────────────────────────────────────────── */
.res-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.joblist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
.joblist button { width: 100%; text-align: left; border: 1px solid transparent; background: none; border-radius: var(--radius-s);
  padding: 9px 10px; cursor: pointer; display: grid; grid-template-columns: 10px 1fr; gap: 3px 10px; align-items: center; }
.joblist button[aria-current="true"] { background: var(--paper); border-color: var(--line); }
.joblist .t { font-weight: 700; font-size: .93rem; } .joblist .s { grid-column: 2; font-size: .8rem; color: var(--ink-3); }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 14px; }
.progress { height: 6px; background: var(--glass-2); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--haem), var(--eosin)); transition: width .3s ease; }
.summary { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.summary div { font-size: .85rem; color: var(--ink-3); }
.summary b { display: block; color: var(--ink); font-size: 1.05rem; font-family: var(--font-display); font-weight: 650; }
.panels { display: grid; gap: 22px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; min-width: 0; }
.panel > h3 { margin-bottom: 12px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.panel-tools select { width: auto; max-width: 100%; padding: 6px 9px; }
.panel-tools label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.viz { position: relative; width: 100%; }
.viz canvas, .viz svg { display: block; max-width: 100%; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--glass); font-size: .8rem; padding: 6px 8px; border-radius: 4px;
  white-space: nowrap; z-index: 5; transform: translate(10px, 10px); }
.tip img { display: block; width: 80px; height: 80px; object-fit: cover; margin-bottom: 4px; border-radius: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.cbar { height: 10px; width: 220px; border-radius: 2px; }
.cbar-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); margin-top: 10px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ch-grid figure { margin: 0; }
.ch-grid img { width: 100%; aspect-ratio: 1; display: block; border-radius: 3px; background: #000; }
.ch-grid figcaption { font-size: .8rem; display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink-2); font-weight: 700; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--paper); }
table.data td.num, table.data th.num { text-align: right; }
.table-wrap { max-height: 420px; overflow: auto; }
.files { display: grid; gap: 6px; }
.files a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); background: var(--paper); }
.files a span { color: var(--ink-3); font-size: .85rem; }
.log { max-height: 220px; overflow: auto; font-family: var(--font-code); font-size: .78rem; background: var(--glass-2); padding: 10px; border-radius: var(--radius-s); white-space: pre-wrap; }
.demo-banner { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--warn) 14%, var(--paper)) 0 10px, var(--paper) 10px 20px);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); padding: 10px 14px; border-radius: var(--radius-s); font-size: .92rem; margin-bottom: 16px; }

/* ── connect ────────────────────────────────────────────────────────────── */
.connect-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.mode-cards { display: grid; gap: 10px; margin-bottom: 18px; }
.mode-cards label { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); cursor: pointer; }
.mode-cards label:has(input:checked) { border-color: var(--haem); box-shadow: inset 3px 0 0 var(--haem); }
.mode-cards input { margin-top: 5px; accent-color: var(--haem); }
.mode-cards .d { grid-column: 2; font-size: .88rem; color: var(--ink-2); }
ol.setup { padding-left: 1.3em; margin: 0; display: grid; gap: 10px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; font-size: .86rem; }
.status-grid span { display: flex; gap: 7px; align-items: center; }

footer { max-width: 1320px; margin: 0 auto; padding: 20px 24px 40px; color: var(--ink-3); font-size: .85rem; border-top: 1px solid var(--line); }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cat-layout, .run-layout, .res-layout, .connect-layout { grid-template-columns: 1fr; }
  .filters, .aside, .joblist { position: static; }
  .joblist { max-height: none; }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-inner { padding: 8px 16px; flex-wrap: wrap; gap: 8px 12px; }
  nav.tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  nav.tabs::-webkit-scrollbar { display: none; }
  main { padding: 20px 16px 60px; }
  .rack { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0 0; } .kv dt { margin-top: 8px; }
  .fam-head { flex-wrap: wrap; } .fam-head p { margin-left: 0; text-align: left; width: 100%; }
  .counts { gap: 14px 18px; flex-wrap: wrap; }
  .cat-toolbar { padding: 10px 12px; }
  .cat-toolbar-actions { width: 100%; }
}
@media (max-width: 520px) {
  .slide-body { grid-template-columns: 1fr; }
  .slide .label { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); padding-right: 92px; }
  .slide dl { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── hardware & weights ─────────────────────────────────────────────────── */
.hw-bar { display: grid; gap: 4px; padding: 12px 16px; margin: -8px 0 26px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper); }
.hw-bar:empty { display: none; }
.hw-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .93rem; color: var(--ink-2); }
.hw-specs .btn { margin-left: 0; }
.hw-specs .btn:first-of-type { margin-left: auto; }
.badge.hw-good { border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok); }
.badge.hw-ok { border-color: color-mix(in srgb, var(--haem) 55%, transparent); color: var(--haem); }
.badge.hw-warn { border-color: color-mix(in srgb, var(--warn) 60%, transparent); color: var(--warn); }
.badge.hw-bad { border-color: color-mix(in srgb, var(--err) 60%, transparent); color: var(--err); }
.badge.hw-info { color: var(--ink-3); }
.hw-card { border-left: 4px solid var(--ink-3); }
.hw-card.hw-good { border-left-color: var(--ok); } .hw-card.hw-ok { border-left-color: var(--haem); }
.hw-card.hw-warn { border-left-color: var(--warn); } .hw-card.hw-bad { border-left-color: var(--err); }
.hw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hw-head h3 { margin: 0 !important; }
.wrow { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.wrow p { margin-bottom: 6px; }
.ok-text { color: var(--ok); }
#weightsCard .table-wrap { max-height: 480px; }
@media (max-width: 640px) { .hw-specs .btn:first-of-type { margin-left: 0; } }
table.data .dot { display: inline-block; vertical-align: middle; }
.slide dd .badge { padding: 3px 6px; }

/* ── setup wizard ───────────────────────────────────────────────────────── */
dialog.wizard { width: min(960px, 96vw); max-height: min(760px, 94vh); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,.45); overflow: hidden; }
dialog.wizard::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.wz { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: min(760px, 94vh); }
.wz-rail { background: var(--glass); border-right: 1px solid var(--line); padding: 18px 12px; overflow: auto; }
.wz-brand { font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 6px 14px; }
.wz-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wz-rail li button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left;
  padding: 7px 8px; border-radius: var(--radius-s); color: var(--ink-2); cursor: pointer; font-size: .92rem; }
.wz-rail li button:disabled { color: var(--ink-3); cursor: default; }
.wz-rail li.cur button { background: var(--paper); color: var(--ink); box-shadow: inset 3px 0 0 var(--eosin); }
.wz-rail .n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  font-size: .78rem; background: var(--paper); }
.wz-rail li.done .n { background: var(--ok-solid); border-color: var(--ok-solid); color: var(--ok-ink); }
.wz-main { position: relative; padding: 26px 30px 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.wz-main h2 { padding-right: 40px; }
.wz-main p { margin: 0; }
.wz-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.wz-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wz-cmd { display: flex; gap: 8px; align-items: flex-start; }
.wz-cmd pre.cli { flex: 1; margin: 0; white-space: pre-wrap; word-break: break-all; }
.wz-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wz-row input { flex: 1; min-width: 220px; }
.wz-checks { display: grid; gap: 6px; }
.wz-access { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; font-size: .92rem; }
.wz-access .dot { display: inline-block; }
.wz-nav { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.wz-nav > :first-child { margin-right: auto; }
.err-text { color: var(--err); }
@media (max-width: 720px) {
  .wz { grid-template-columns: 1fr; height: auto; max-height: 94vh; }
  .wz-rail { display: none; }
  .wz-main { padding: 20px 16px; }
}

/* ── species badges, copyable CLI blocks & papers view ──────────────────── */
.badge.sp-rodent { border-color: color-mix(in srgb, var(--eosin) 55%, transparent); color: var(--eosin); font-weight: 700; }
.badge.sp-multi { border-color: color-mix(in srgb, var(--haem) 55%, transparent); color: var(--haem); }
.cli-wrap { position: relative; }
.cli-wrap pre.cli { padding-right: 72px; margin: 0; }
.cli-copy { position: absolute; top: 8px; right: 8px; padding: 3px 9px; font-size: .76rem; line-height: 1.3;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.cli-copy:hover { border-color: var(--ink-2); color: var(--ink); }
.papers-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.papers-toolbar .search { max-width: 340px; flex: 1; min-width: 220px; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 12px; }
.bench-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-m); background: var(--paper); }
.bench-card h4 { margin: 0; font-family: var(--font-display); font-size: 1rem; }
.bench-card p { margin: 0; color: var(--ink-2); font-size: .88rem; flex: 1; }
.bench-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; font-size: .84rem; }
.paper-cite { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 2px; }

/* ── open data view & live repository scanner ───────────────────────────── */
.mod-matched_he_spatial { --stain: var(--d-matched_he_spatial); }
.mod-matched_he_if { --stain: var(--d-matched_he_if); }
.mod-matched_other { --stain: var(--d-matched_other); }
.mod-unmatched_he { --stain: var(--d-unmatched_he); }
.mod-unmatched_spatial { --stain: var(--d-unmatched_spatial); }
.mod-unmatched_tx { --stain: var(--d-unmatched_tx); }

.site-brain { --cs: var(--cs-brain); --stain: var(--cs-brain); }
.site-lung { --cs: var(--cs-lung); --stain: var(--cs-lung); }
.site-breast { --cs: var(--cs-breast); --stain: var(--cs-breast); }
.site-prostate { --cs: var(--cs-prostate); --stain: var(--cs-prostate); }
.site-pan_cancer { --cs: var(--cs-pan_cancer); --stain: var(--cs-pan_cancer); }
.site-other_cancer { --cs: var(--cs-other_cancer); --stain: var(--cs-other_cancer); }

.data-controls { display: grid; gap: 10px; margin-bottom: 18px; }
.cancer-bar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper);
}
.cancer-bar-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-right: 4px; }
.cancer-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.cancer-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); cursor: pointer; font-size: .86rem;
}
.cancer-pill.priority { border-color: color-mix(in srgb, var(--cs, var(--haem)) 45%, var(--line)); background: var(--paper); color: var(--ink); }
.cancer-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.cancer-pill[aria-pressed="true"] {
  background: color-mix(in srgb, var(--cs, var(--haem)) 16%, var(--paper));
  border-color: var(--cs, var(--haem)); color: var(--ink); font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--cs, var(--haem));
}
.cancer-pill .sw { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--cs, var(--haem)); }
.cancer-pill .n { font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.cancer-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; line-height: 1.1;
  padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--cs, var(--haem)) 13%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--cs, var(--haem)) 48%, transparent); color: var(--ink);
}
.cancer-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cs, var(--haem)); flex: none; }
.data-toprow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.data-toprow .search { flex: 1; min-width: 240px; max-width: 420px; }
.data-toprow .seg-ctl, .data-subrow .seg-ctl { margin-bottom: 0; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.mod-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; font-size: .86rem;
}
.mod-pill:hover { border-color: var(--ink-3); color: var(--ink); }
.mod-pill[aria-pressed="true"] { background: var(--glass-2); color: var(--ink); border-color: var(--ink-2); font-weight: 700; }
.mod-pill .sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.mod-pill .n { font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.data-subrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

.mod-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; line-height: 1.1;
  padding: 4px 7px; border-radius: 3px; background: color-mix(in srgb, var(--stain) 11%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--stain) 42%, transparent); color: var(--ink);
}
.mod-badge i { width: 8px; height: 8px; border-radius: 2px; background: var(--stain); flex: none; }
.assay-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.assay-tag { font-size: .72rem; padding: 2px 6px; border-radius: 3px; background: var(--glass-2); color: var(--ink-2); }
.hub-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .73rem; padding: 3px 7px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-weight: 700;
}

.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.data-card {
  --stain: var(--haem);
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 14px 19px;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); overflow: hidden;
}
.data-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--stain); }
.data-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.data-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; }
.data-card h4 button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.data-card h4 button:hover { color: var(--haem); text-decoration: underline; }
.data-card p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.data-meta { font-size: .8rem; color: var(--ink-3); display: grid; gap: 2px; }
.data-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .83rem; }
.scan-panel { margin-top: 34px; border-top: 3px solid var(--haem); }
.scan-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0 12px; }
.scan-form .search { flex: 1; min-width: 240px; max-width: 440px; }
@media (max-width: 640px) { .data-actions { margin-left: 0; width: 100%; } }

/* ── side-by-side comparison dock, comparison modal & BibTeX modal ──────── */
body.has-cmp-dock footer { padding-bottom: 108px; }
.cmp-dock {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 35;
  width: min(1060px, calc(100vw - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; border-radius: var(--radius-m);
  border: 1px solid color-mix(in srgb, var(--haem) 42%, var(--line));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px); box-shadow: 0 18px 42px -14px rgba(0, 0, 0, .42);
}
.cmp-dock[hidden] { display: none !important; }
.cmp-dock-title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); font-size: .82rem; font-weight: 700; max-width: 220px;
}
.cmp-chip .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.cmp-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-chip button {
  border: 0; background: none; color: var(--ink-3); cursor: pointer; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; line-height: 1; padding: 0;
}
.cmp-chip button:hover { background: var(--glass-2); color: var(--err); }
.cmp-slot-empty {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  border: 1px dashed var(--line); color: var(--ink-3); font-size: .78rem;
}
.cmp-dock-msg { width: 100%; font-size: .8rem; color: var(--warn); margin: 0; }
.cmp-dock-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

dialog.cmp-modal, dialog.bib-modal {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -28px rgba(0, 0, 0, .5); overflow: hidden;
}
dialog.cmp-modal { width: min(1180px, 96vw); max-height: 92vh; }
dialog.bib-modal { width: min(680px, 94vw); max-height: 88vh; }
dialog.cmp-modal::backdrop, dialog.bib-modal::backdrop { background: color-mix(in srgb, var(--ink) 38%, transparent); }
.modal-frame { display: flex; flex-direction: column; max-height: 90vh; }
.modal-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--glass);
}
.modal-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.modal-body { overflow: auto; flex: 1; min-height: 0; }
.bib-body { padding: 18px 20px 22px; display: grid; gap: 12px; }
table.cmp-table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 620px; }
table.cmp-table th, table.cmp-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  border-right: 1px solid color-mix(in srgb, var(--line) 55%, transparent); vertical-align: top; text-align: left;
}
table.cmp-table th:last-child, table.cmp-table td:last-child { border-right: 0; }
table.cmp-table thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 2px solid var(--line); }
table.cmp-table tbody th {
  width: 164px; min-width: 144px; color: var(--ink-2); font-weight: 700;
  background: color-mix(in srgb, var(--glass) 60%, var(--paper)); position: sticky; left: 0; z-index: 1;
}
table.cmp-table thead th:first-child { z-index: 3; left: 0; background: var(--glass); }
.cmp-col-head { display: flex; flex-direction: column; gap: 4px; min-width: 195px; position: relative; padding-left: 10px; }
.cmp-col-head::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--stain, var(--haem)); }
.cmp-col-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cmp-col-nm { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.15; }
.cmp-task-pills { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 640px) {
  .cmp-slot-empty { display: none; }
  .cmp-dock { left: 10px; right: 10px; transform: none; width: auto; padding: 9px 11px; }
  .cmp-dock-actions { width: 100%; justify-content: flex-end; }
  table.cmp-table tbody th { position: static; min-width: 118px; width: 118px; }
}

/* === PRAZG_SUITE_BANNER_CSS_START === */
.prazg-suite-bar {
  position: relative;
  z-index: 9999;
  flex: none;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 5px 14px;
  background: linear-gradient(90deg, #070d18 0%, #0b1322 55%, #070d18 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
.prazg-suite-bar *,
.prazg-suite-bar *::before,
.prazg-suite-bar *::after {
  box-sizing: border-box;
}
.prazg-suite-bar a.prazg-suite-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  border-radius: 6px;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.prazg-suite-bar a.prazg-suite-brand:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}
.prazg-suite-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
  flex: none;
}
.prazg-suite-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 1px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}
.prazg-suite-links::-webkit-scrollbar {
  height: 4px;
}
.prazg-suite-links::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}
.prazg-suite-sep {
  flex: none;
  width: 1px;
  height: 15px;
  margin: 0 4px;
  background: rgba(148, 163, 184, 0.28);
}
.prazg-suite-bar a.prazg-suite-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.prazg-suite-bar a.prazg-suite-link:hover {
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
}
.prazg-suite-bar a.prazg-suite-link.prazg-suite-link--active {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.68);
  font-weight: 600;
}
.prazg-suite-bar a.prazg-suite-link:focus-visible,
.prazg-suite-bar a.prazg-suite-brand:focus-visible,
.prazg-suite-bar a.prazg-suite-gh:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.prazg-suite-bar a.prazg-suite-gh {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}
.prazg-suite-bar a.prazg-suite-gh:hover {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.7);
}
@media (max-width: 720px) {
  .prazg-suite-bar {
    padding: 5px 10px;
    gap: 7px;
  }
  .prazg-suite-bar a.prazg-suite-gh {
    display: none;
  }
}
@media print {
  .prazg-suite-bar {
    display: none !important;
  }
}
/* === PRAZG_SUITE_BANNER_CSS_END === */
