/* ELN Studio — chrome: the left rail, the header, the entry status line, the
 * compose outline, focus mode and density.
 *
 * Loaded after eln-studio.css, so anything here wins. Calm navy; state is said
 * in words and shapes, never by colour alone. Class names avoid the substrings
 * the app-colour theme layer repaints (see tests/eln-plan-css.test.mjs).
 */

.eln-studio-root {
  --eln-navy: #00376e;
  --eln-rl-collapsed: 56px;
  --eln-rl-open: 264px;
}
.dark .eln-studio-root, .dark .eln-rl { --eln-navy: #3a76c2; }

/* ---- The rail ------------------------------------------------------------------------------------ */

/* The shell's sidebar column becomes a 56 px strip. What opens is drawn OVER the page. */
.eln-studio-root .st-sidebar.st-sidebar-custom {
  flex: 0 0 var(--eln-rl-w, var(--eln-rl-collapsed));
  width: var(--eln-rl-w, var(--eln-rl-collapsed));
  padding: 0; overflow: visible; position: relative; z-index: 15;
  background: var(--eln-surface-subtle, #f8fafc);
  border-right: 1px solid var(--eln-line, #e2e8f0);
  transition: flex-basis .16s ease, width .16s ease;
}
.eln-studio-root .st-sidebar.st-sidebar-custom .st-nav { display: block; height: 100%; padding: 0; }
.eln-studio-root[data-eln-rail="pinned"] .st-sidebar.st-sidebar-custom { --eln-rl-w: var(--eln-rl-open); }
.eln-studio-root .st-center { position: relative; z-index: 0; }

.eln-rl {
  --eln-navy: #00376e;
  position: absolute; inset: 0 auto 0 0; z-index: 1; box-sizing: border-box;
  width: var(--eln-rl-collapsed); display: flex; flex-direction: column; overflow: hidden;
  background: var(--eln-surface-subtle, #f8fafc); color: var(--eln-text, #0f172a);
  transition: width .16s ease, box-shadow .16s ease;
}
.eln-rl[data-state="open"] { width: var(--eln-rl-open); box-shadow: 6px 0 28px rgba(15, 23, 42, .16); border-right: 1px solid var(--eln-line, #e2e8f0); }
.eln-rl[data-state="pinned"] { width: 100%; }
.eln-rl[data-mode="sheet"] { position: static; width: auto; overflow: visible; box-shadow: none; border: 0; }

.eln-rl-toggle, .eln-rl-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 42px; box-sizing: border-box;
  padding: 0 17px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13.5px;
  text-align: left; cursor: pointer; position: relative; white-space: nowrap;
}
.eln-rl-toggle { margin-top: 6px; color: var(--eln-muted, #64748b); }
.eln-rl-item:hover, .eln-rl-toggle:hover { background: color-mix(in srgb, var(--eln-navy) 8%, transparent); }
.eln-rl button:focus-visible { outline: 2px solid var(--eln-navy); outline-offset: -2px; }
.eln-rl-ico { display: inline-flex; flex: none; width: 22px; height: 22px; }
.eln-rl-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eln-rl-nav { list-style: none; margin: 0; padding: 0; }

/* Where you are: a bar and a heavier label, not colour alone. */
.eln-rl-item[aria-current="page"] { font-weight: 650; color: var(--eln-navy); }
.eln-rl-item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--eln-navy); }

.eln-rl-count {
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; margin-left: auto;
  background: var(--eln-navy); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.eln-rl-count[hidden] { display: none; }
.eln-rl[data-state="collapsed"] .eln-rl-count { position: absolute; top: 3px; left: 31px; margin: 0; }

/* Entries: only while it is open. */
.eln-rl-entries {
  flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 8px; padding-top: 4px;
  border-top: 1px solid var(--eln-line, #e2e8f0); visibility: hidden; opacity: 0; transition: opacity .12s ease;
}
.eln-rl:not([data-state="collapsed"]) .eln-rl-entries { visibility: visible; opacity: 1; }
.eln-rl[data-mode="sheet"] .eln-rl-entries { max-height: 55vh; }
.eln-rl-entries-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 4px; }
.eln-rl-entries-head strong { font-size: 12.5px; font-weight: 650; }
.eln-rl-pin {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--eln-muted, #64748b); font: inherit; font-size: 12px; cursor: pointer;
}
.eln-rl-pin svg { width: 16px; height: 16px; }
.eln-rl-pin:hover { background: color-mix(in srgb, var(--eln-navy) 8%, transparent); }
.eln-rl-pin[aria-pressed="true"] { color: var(--eln-navy); border-color: color-mix(in srgb, var(--eln-navy) 40%, transparent); background: color-mix(in srgb, var(--eln-navy) 8%, transparent); font-weight: 600; }
.eln-rl-pin[hidden], .eln-rl-toggle[hidden] { display: none; }

.eln-rl-lists { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.eln-studio-root .eln-rl .eln-saved-sidebar, .st-sidebar-sheet-body .eln-rl .eln-saved-sidebar { flex: 1; height: auto; min-height: 0; padding: 0 12px 10px; gap: 6px; }
.eln-rl-listhead { display: flex; flex-direction: column; gap: 6px; flex: none; }
.eln-rl-listhead .eln-saved-scope-tabs { margin: 0; }
.eln-rl-searchrow { display: flex; gap: 6px; align-items: center; }
.eln-rl-searchrow .eln-saved-search { flex: 1; min-width: 0; }
.eln-rl-filter {
  flex: none; padding: 6px 9px; border: 1px solid var(--eln-line, #e2e8f0); border-radius: 8px;
  background: var(--eln-surface, #fff); color: var(--eln-text, #0f172a); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.eln-rl-filter.is-on { border-color: var(--eln-navy); color: var(--eln-navy); font-weight: 600; }
.eln-rl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.eln-rl-tags[hidden] { display: none; }
.eln-rl-tag {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px 2px 9px; border-radius: 999px; font-size: 11.5px;
  background: color-mix(in srgb, var(--eln-navy) 10%, transparent); color: var(--eln-navy); font-weight: 600;
}
.eln-rl-tag-x { all: unset; cursor: pointer; padding: 0 6px; border-radius: 999px; font-size: 11px; }
.eln-rl-tag-x:hover { background: color-mix(in srgb, var(--eln-navy) 18%, transparent); }
.eln-rl-tag-x:focus-visible { outline: 2px solid var(--eln-navy); }
.eln-rl-sel { margin: 0; font-size: 11.5px; color: var(--eln-muted, #64748b); }
.eln-rl-sel[hidden] { display: none; }
.eln-rl-listhost { flex: 1; min-height: 0; overflow: auto; margin-top: 2px; }
.eln-rl-listhost .eln-saved-list { overflow: visible; flex: none; margin-top: 0; }

/* A touch screen has no hover: the menu button opens it, with a scrim behind. */
.eln-rl-scrim { display: none; }
.eln-rl[data-touch="1"][data-state="open"] .eln-rl-scrim { display: block; position: fixed; inset: 0; z-index: -1; background: rgba(15, 23, 42, .28); }

@media (prefers-reduced-motion: reduce) {
  .eln-studio-root .st-sidebar.st-sidebar-custom, .eln-rl, .eln-rl-entries { transition: none; }
}

/* ---- The header: breadcrumb · the one search · actions ------------------------------------------- */

.eln-studio-root .st-toolbar { min-height: 52px; padding: 6px 14px; gap: 12px; }
.eln-studio-root .st-brand { display: none; }   /* the app name, and with it the "LAB NOTEBOOK" pill: the window title says it */
.eln-hd-lead { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex: 0 1 auto; }
.eln-hd-crumbs { min-width: 0; }
.eln-hd-crumbs ol { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; min-width: 0; }
.eln-hd-crumbs li { display: flex; align-items: center; min-width: 0; }
.eln-hd-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--eln-muted, #64748b); }
.eln-hd-crumb { all: unset; box-sizing: border-box; font-size: 15px; color: var(--eln-muted, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28ch; }
button.eln-hd-crumb { cursor: pointer; border-radius: 4px; }
button.eln-hd-crumb:hover { color: var(--eln-navy); text-decoration: underline; }
button.eln-hd-crumb:focus-visible { outline: 2px solid var(--eln-navy); outline-offset: 2px; }
.eln-hd-crumb.is-here { color: var(--eln-text, #0f172a); font-weight: 650; max-width: 42ch; }
.eln-hd-where { font-size: 12.5px; color: var(--eln-muted, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }

/* ＋ New entry and its ▾ read as one flat navy button. On an entry the page has its own main action, so this one steps back to an outline. */
.eln-studio-root .st-tbtns .st-tbtn.primary { border-radius: 9px 0 0 9px; background: var(--eln-navy); box-shadow: none; }
.eln-studio-root .st-tbtns .st-tbtn.primary.eln-hd-caret { border-radius: 0 9px 9px 0; margin-left: -1px; padding: 0 9px; min-width: 0; font-size: 12px; border-left: 1px solid rgba(255, 255, 255, .28); }
.eln-studio-root .st-tbtns .eln-hd-caret:disabled { opacity: .5; cursor: default; }
/* (the colour-theme layer paints .primary with !important, so the outline needs the same weight and more specificity) */
#os .window .st-toolbar[data-eln-here="entry"] .st-tbtn.primary,
#os .window .st-toolbar[data-eln-here="compose"] .st-tbtn.primary,
#os .window .st-toolbar[data-eln-here="bench"] .st-tbtn.primary {
  background: transparent !important; color: var(--eln-navy) !important; border: 1px solid var(--eln-navy) !important; box-shadow: none;
}

/* The search: in the header, wide enough to type in, flat, with the shortcut shown. */
.eln-studio-root .eln-fnsearch { flex: 0 1 380px; margin-left: 0; min-width: 0; }
.eln-studio-root .eln-fnsearch-field { width: 100%; }
.eln-fnsearch-kbd { flex: none; margin-left: auto; padding: 1px 6px; border: 1px solid var(--eln-line, #e2e8f0); border-radius: 5px; font: inherit; font-size: 11px; color: var(--eln-muted, #64748b); background: var(--eln-surface, #fff); }
.eln-studio-root .eln-fnsearch.open .eln-fnsearch-kbd, .eln-studio-root .eln-fnsearch-field:focus-within .eln-fnsearch-kbd { display: none; }
.eln-studio-root .eln-fnsearch-pop { width: min(600px, calc(100cqi - 32px)); background-image: none; }
.eln-fnsearch-group { padding: 8px 10px 3px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; color: var(--fn-pop-muted, #5c6573); }
.eln-fnsearch-group:first-child { padding-top: 2px; }
.eln-fnsearch-item.is-pending { opacity: .7; cursor: default; }
.eln-fnsearch-snippet { font-style: italic; }
.eln-fnsearch-foot-says { margin-left: auto; font-size: 11px; color: var(--fn-pop-muted, #5c6573); text-align: right; max-width: 60%; }
.eln-studio-root .eln-fnsearch-foot { align-items: center; }

@container eln-studio (max-width: 1050px) { .eln-hd-where { display: none; } .eln-studio-root .eln-fnsearch { flex-basis: 300px; } }
@container eln-studio (max-width: 640px) {
  .eln-hd-crumbs li:not(:last-child) { display: none; }
  .eln-hd-crumbs li + li::before { content: none; }
  .eln-studio-root .eln-fnsearch { flex: none; }
  .eln-studio-root .eln-fnsearch-field { width: 36px; padding: 0; justify-content: center; }
  .eln-studio-root .eln-fnsearch-input, .eln-fnsearch-kbd { display: none; }
}

/* ---- An entry: one quiet status line, a slim drop bar, the record folded ------------------------------------ */

.eln-entry-window-status { padding: 0 16px; }
.eln-entry-window-status:empty { display: none; }
.eln-es { margin: 6px 0 4px; padding: 5px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
.eln-es.is-loud { border-left-color: var(--eln-amber, #b45309); background: color-mix(in srgb, var(--eln-amber, #b45309) 8%, transparent); }
.eln-es-line {
  all: unset; box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  cursor: pointer; font-size: 12.5px; color: var(--eln-muted, #64748b); line-height: 1.5;
}
.eln-es-line:focus-visible { outline: 2px solid var(--eln-navy); outline-offset: 2px; border-radius: 4px; }
.eln-es-seg.is-warn, .eln-es-seg.is-fail { color: var(--eln-text, #0f172a); font-weight: 600; }
.eln-es-mark { margin-right: 5px; font-size: 11px; }
.eln-es-seg.is-ok .eln-es-mark { color: var(--eln-green, #059669); }
.eln-es-seg.is-warn .eln-es-mark { color: var(--eln-amber, #b45309); }
.eln-es-seg.is-fail .eln-es-mark { color: var(--eln-red, #b91c1c); }
.eln-es-dot { opacity: .5; }
.eln-es-chev { margin-left: auto; font-size: 10px; transition: transform .12s ease; }
.eln-es-line[aria-expanded="true"] .eln-es-chev { transform: rotate(90deg); }
.eln-es-more { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; font-size: 13px; }
.eln-es-more[hidden] { display: none; }
.eln-es-part strong { display: block; margin-bottom: 2px; font-size: 13px; }
.eln-es-part p { margin: 0 0 6px; color: var(--eln-muted, #64748b); }
.eln-es-part ul { margin: 0 0 6px; padding-left: 18px; color: var(--eln-muted, #64748b); }
.eln-es-part .eln-pf { border: 0; padding: 0; background: transparent; }
.eln-es-record > summary { cursor: pointer; padding: 6px 0; font-size: 13px; font-weight: 600; }
.eln-es-record[open] > summary { margin-bottom: 8px; }
.eln-es-link { all: unset; cursor: pointer; color: var(--eln-navy); text-decoration: underline; }
.eln-es-link:focus-visible { outline: 2px solid var(--eln-navy); outline-offset: 2px; border-radius: 3px; }
.eln-smart-upload-dropzone.is-slim { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 7px 12px; margin: 0 0 8px; border-radius: 8px; font-size: 12.5px; }
.eln-smart-upload-dropzone.is-slim .eln-smart-upload-drop-icon { flex: none; width: 22px; height: 22px; min-width: 0; padding: 0; font-size: 12px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.eln-smart-upload-dropzone.is-slim .eln-smart-upload-drop-copy { display: block; flex: 1; min-width: 0; }
.eln-smart-upload-dropzone.is-slim .eln-es-link { font-size: inherit; }
.eln-entry-more { min-width: 34px; font-size: 16px; line-height: 1; }

/* ---- Compose: the seven steps as an outline beside the document ---------------------------------------------- */

.eln-studio-root .eln-ol-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); flex: 1 1 auto; min-height: 0; }
.eln-studio-root .eln-ol-layout > .eln-compose-body { min-width: 0; min-height: 0; overflow: auto; }
.eln-studio-root .eln-ol { margin: 0; padding: 18px 10px 18px 20px; background: transparent; border: 0; border-right: 1px solid var(--eln-line, #e2e8f0); overflow: auto; }
.eln-studio-root .eln-ol .eln-compose-pipeline { display: flex; flex-direction: column; gap: 2px; width: auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: visible; }
.eln-studio-root .eln-ol .eln-compose-step, .eln-studio-root .eln-ol .eln-compose-step:first-child, .eln-studio-root .eln-ol .eln-compose-step.is-last {
  position: relative; flex: none; width: 100%; min-width: 0; min-height: 36px; margin: 0; padding: 6px 10px; gap: 10px;
  border: 0; border-radius: 8px; background: transparent; clip-path: none; filter: none; box-shadow: none; color: var(--eln-text, #0f172a);
}
.eln-studio-root .eln-ol .eln-compose-step--empty { color: var(--eln-muted, #64748b); }
.eln-studio-root .eln-ol .eln-compose-step:hover { background: color-mix(in srgb, var(--eln-navy) 8%, transparent); filter: none; }
.eln-studio-root .eln-ol .eln-compose-step:focus-visible { outline: 2px solid var(--eln-navy); outline-offset: -2px; }
.eln-studio-root .eln-ol .eln-compose-step.is-active, .eln-studio-root .eln-ol .eln-compose-step.is-active.eln-compose-step--empty,
.eln-studio-root .eln-ol .eln-compose-step.is-active.eln-compose-step--partial, .eln-studio-root .eln-ol .eln-compose-step.is-active.eln-compose-step--complete {
  background: color-mix(in srgb, var(--eln-navy) 9%, transparent); color: var(--eln-text, #0f172a); font-weight: 650; border: 0; box-shadow: none;
}
.eln-studio-root .eln-ol .eln-compose-step.is-active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--eln-navy); }
.eln-studio-root .eln-ol .eln-compose-step-icon { width: 20px; height: 20px; flex: none; border: 1px solid currentColor; background: transparent; font-size: 11px; font-weight: 700; opacity: .85; }
.eln-studio-root .eln-ol .eln-compose-step--complete .eln-compose-step-icon { background: color-mix(in srgb, var(--eln-navy) 14%, transparent); border-color: transparent; color: var(--eln-navy); }
.eln-studio-root .eln-ol .eln-compose-step--partial .eln-compose-step-icon { color: var(--eln-amber, #b45309); }
.eln-studio-root .eln-ol .eln-compose-step-label { display: block; font-size: 13px; font-weight: inherit; white-space: normal; }
.eln-studio-root .eln-ol .eln-compose-step-short { display: none; }
.eln-ol-now { display: none; }
.eln-ol-says { margin: 0 0 14px; padding: 2px 0 2px 10px; border-left: 3px solid var(--eln-amber, #b45309); font-size: 13px; color: var(--eln-text, #0f172a); }

/* The scientific design and provenance: one closed row with what is left to fill. */
.eln-ol-record { margin: 0 0 14px; border: 1px solid var(--eln-line, #e2e8f0); border-radius: 10px; }
.eln-ol-record > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; }
.eln-ol-record > summary::-webkit-details-marker { display: none; }
.eln-ol-record > summary::before { content: "▸"; font-size: 10px; margin-right: 8px; color: var(--eln-muted, #64748b); }
.eln-ol-record[open] > summary::before { content: "▾"; }
.eln-ol-record > summary span:first-of-type { flex: 1; }
.eln-ol-count { font-size: 12px; font-weight: 500; color: var(--eln-muted, #64748b); font-variant-numeric: tabular-nums; }
.eln-ol-record[open] > summary { border-bottom: 1px solid var(--eln-line, #e2e8f0); }
.eln-ol-record > :not(summary) { margin: 12px 14px 14px; }
.eln-ol-more { min-width: 34px; }

@container eln-studio (max-width: 860px) {
  .eln-studio-root .eln-ol-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .eln-studio-root .eln-ol { padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--eln-line, #e2e8f0); }
  .eln-studio-root .eln-ol .eln-compose-pipeline { display: none; }
  .eln-ol-now { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--eln-line, #e2e8f0); border-radius: 9px; background: var(--eln-surface, #fff); color: var(--eln-text, #0f172a); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
}

/* ---- Focus mode (⌘\ / Ctrl \) ------------------------------------------------------------------------ */

/* Everything but the page goes away. The rail, the header and the project strip are only hidden, never
 * removed: leaving focus mode puts them back exactly as they were. */
.eln-studio-root.eln-fx-on .st-toolbar,
.eln-studio-root.eln-fx-on .st-memory-strip,
.eln-studio-root.eln-fx-on .st-mobile-bar,
.eln-studio-root.eln-fx-on .st-sidebar-wrap,
.eln-studio-root.eln-fx-on .st-sidebar,
.eln-studio-root.eln-fx-on .st-inspector,
.eln-studio-root.eln-fx-on .st-inspector-resizer { display: none !important; }
.eln-studio-root.eln-fx-on .st-workspace { max-width: none; }

/* The way out: faint at the corner, plain when the pointer or the keyboard reaches it. */
.eln-fx-exit {
  position: absolute; top: 10px; right: 14px; z-index: 1250;
  min-height: 30px; padding: 0 12px; border: 1px solid var(--eln-line, #e2e8f0); border-radius: 8px;
  background: var(--eln-surface, #fff); color: var(--eln-muted, #64748b); font: inherit; font-size: 12px; cursor: pointer;
  opacity: .5; transition: opacity .16s ease;
}
.eln-fx-exit[hidden] { display: none; }
.eln-fx-exit:hover, .eln-fx-exit:focus-visible { opacity: 1; color: var(--eln-navy); border-color: var(--eln-navy); }
.eln-fx-exit:focus-visible { outline: 2px solid var(--eln-navy); outline-offset: 2px; }

/* Said aloud, not shown. */
.eln-fx-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Density -------------------------------------------------------------------------------------- */

.eln-studio-root { --eln-fx-bar: 52px; --eln-fx-row: 42px; --eln-fx-pad-y: 22px; --eln-fx-pad-x: clamp(18px, 2.4vw, 34px); --eln-fx-gap: 16px; --eln-fx-list-row: 64px; }
.eln-studio-root[data-eln-density="compact"] {
  --eln-fx-bar: 44px; --eln-fx-row: 34px; --eln-fx-pad-y: 14px; --eln-fx-pad-x: clamp(12px, 1.6vw, 22px); --eln-fx-gap: 10px; --eln-fx-list-row: 48px;
}
.eln-studio-root .st-toolbar { min-height: var(--eln-fx-bar); padding-block: 6px; }
.eln-studio-root[data-eln-density="compact"] .st-toolbar { padding-block: 4px; }
.eln-studio-root[data-eln-density="compact"] .st-tbtn { min-height: 30px; padding-block: 4px; }
.eln-rl-toggle, .eln-rl-item { min-height: var(--eln-fx-row); }
.eln-studio-root .eln-saved-row { min-height: var(--eln-fx-list-row); }
.eln-studio-root[data-eln-density="compact"] .eln-saved-row { padding-block: 5px; }
.eln-studio-root .st-workspace { padding: var(--eln-fx-pad-y) var(--eln-fx-pad-x); }
.eln-studio-root[data-eln-view="home"] .st-workspace { padding-top: calc(var(--eln-fx-pad-y) + 6px); }
.eln-studio-root[data-eln-view="compose"] .st-workspace,
.eln-studio-root[data-eln-view="entry"] .st-workspace { padding: 0; }
.eln-td-side, .eln-td-main, .eln-td-aside { gap: var(--eln-fx-gap); }
.eln-studio-root[data-eln-density="compact"] .eln-td-row { padding-block: 4px; }
.eln-studio-root[data-eln-density="compact"] .eln-td-block { padding-block: 8px; }
.eln-studio-root[data-eln-density="compact"] .eln-compose-body { padding: 16px 22px 20px; }
.eln-studio-root[data-eln-density="compact"] .eln-compose-document-head { padding: 14px 22px 10px; }

/* ---- A calmer look ------------------------------------------------------------------------------------ */

/* Flat navy primary buttons: no gradient, no glow. */
.eln-studio-root .st-tbtn.primary, .eln-home-action.is-primary { background: var(--eln-navy); box-shadow: none; }
/* The header is a line, not a frosted pane. */
#os .window .eln-studio-root .st-toolbar { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
/* No card inside a card: Today's blocks are separated by a hairline, not boxed. */
.eln-td-main > .eln-td-block, .eln-td-aside > .eln-td-block {
  background: transparent; border: 0; border-top: 1px solid var(--pl-line, var(--eln-line, #e2e8f0)); border-radius: 0; padding: 14px 0 6px;
}
.eln-td-main > .eln-td-block:first-child, .eln-td-aside > .eln-td-block:first-child { border-top: 0; padding-top: 0; }
/* Headers of panels lose their coloured wash. */
.eln-science-record-head, .eln-home-recents .eln-home-panel-head { background: transparent; }
.eln-home-recents { box-shadow: none; }
.eln-studio-root .eln-compose-pipeline-wrap { border-bottom: 0; }
.eln-compose-document-head { border-bottom-color: color-mix(in srgb, var(--eln-line, #e2e8f0) 60%, transparent); }

@media (prefers-reduced-motion: reduce) { .eln-fx-exit { transition: none; } }
