/* Arbor console — "cyanotype" operator UI.
   Palette: Prussian-blue ink on cool paper (light) / deep cyanotype field (dark).
   Signature: the isolation lens — the selected folder's subtree is lit, everything sealed off is hatched. */

:root {
  --paper: #f3f6fa;
  --panel: #ffffff;
  --panel-2: #e9eff6;
  --sunken: #f7f9fc;
  --ink: #0e2747;
  --ink-2: #3c5473;
  --ink-3: #6b809b;
  --line: #d4dde9;
  --line-2: #e4eaf2;
  --cyan: #1f6fb2;
  --cyan-strong: #175a93;
  --cyan-ink: #ffffff;
  --wash: #dcebf9;
  --wash-2: #eef5fc;
  --hatch: rgba(14, 39, 71, 0.085);
  --amber: #a85f0e;
  --amber-wash: #fbefdd;
  --rust: #b23a2e;
  --rust-wash: #f9e5e2;
  --moss: #23744f;
  --moss-wash: #dff2e8;
  --shadow: 0 1px 2px rgba(14, 39, 71, 0.06), 0 8px 24px rgba(14, 39, 71, 0.06);
  --shadow-lg: 0 24px 60px rgba(8, 22, 42, 0.22);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --topbar: 56px;
  --sidebar: 304px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #07152a;
  --panel: #0c1f37;
  --panel-2: #0a1a30;
  --sunken: #091a2f;
  --ink: #e3ecf7;
  --ink-2: #a8bbd3;
  --ink-3: #7086a3;
  --line: #1b3355;
  --line-2: #152b48;
  --cyan: #6cb2f0;
  --cyan-strong: #8cc4f5;
  --cyan-ink: #04121f;
  --wash: #11335a;
  --wash-2: #0e2846;
  --hatch: rgba(227, 236, 247, 0.07);
  --amber: #eba44f;
  --amber-wash: rgba(235, 164, 79, 0.13);
  --rust: #f2806d;
  --rust-wash: rgba(242, 128, 109, 0.13);
  --moss: #62c99c;
  --moss-wash: rgba(98, 201, 156, 0.13);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #07152a;
    --panel: #0c1f37;
    --panel-2: #0a1a30;
    --sunken: #091a2f;
    --ink: #e3ecf7;
    --ink-2: #a8bbd3;
    --ink-3: #7086a3;
    --line: #1b3355;
    --line-2: #152b48;
    --cyan: #6cb2f0;
    --cyan-strong: #8cc4f5;
    --cyan-ink: #04121f;
    --wash: #11335a;
    --wash-2: #0e2846;
    --hatch: rgba(227, 236, 247, 0.07);
    --amber: #eba44f;
    --amber-wash: rgba(235, 164, 79, 0.13);
    --rust: #f2806d;
    --rust-wash: rgba(242, 128, 109, 0.13);
    --moss: #62c99c;
    --moss-wash: rgba(98, 201, 156, 0.13);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
button {
  font: inherit;
  color: inherit;
}
code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  font-size: 11px;
  background: var(--panel);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
::selection {
  background: var(--wash);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--ink-3);
}
.wrap {
  word-break: break-all;
}
.nowrap {
  white-space: nowrap;
}
.noscript {
  padding: 24px;
}
.ico {
  display: inline-flex;
  flex: none;
  width: 16px;
  height: 16px;
}
.ico svg {
  width: 100%;
  height: 100%;
}
.rot-90 svg {
  transform: rotate(90deg);
}
.rot-180 svg {
  transform: rotate(180deg);
}
.eyebrow {
  margin: 0 0 4px;
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stack > * + * {
  margin-top: 12px;
}
.stack-sm > * + * {
  margin-top: 8px;
}

/* --- gate --------------------------------------------------------------------------------------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.gate-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate-mark {
  color: var(--cyan);
  display: flex;
  justify-content: center;
}
.gate-title {
  font: 400 48px/1 var(--font-display);
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.gate-sub {
  margin: 0 0 24px;
  color: var(--ink-2);
}
.gate-form {
  text-align: left;
  display: grid;
  gap: 14px;
}
.gate-error {
  margin: 0;
  color: var(--rust);
  background: var(--rust-wash);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.gate-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

/* --- shell -------------------------------------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: var(--topbar) minmax(0, 1fr);
  height: 100vh;
}
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px 0 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 20;
  min-width: 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.wordmark-glyph {
  color: var(--cyan);
  display: inline-flex;
}
.wordmark-text {
  font: 400 24px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.topbar-status {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.health[data-state="ok"] .health-dot {
  background: var(--moss);
  box-shadow: 0 0 0 3px var(--moss-wash);
}
.health[data-state="down"] {
  color: var(--rust);
  border-color: var(--rust);
}
.health[data-state="down"] .health-dot {
  background: var(--rust);
}
.load {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}
.load-n {
  color: var(--ink);
}
.load-n.is-live {
  color: var(--cyan);
  font-weight: 600;
}
.load-cap {
  color: var(--ink-3);
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--panel-2);
  color: var(--ink);
}
.nav-link.is-active {
  color: var(--cyan);
  background: var(--wash-2);
}

/* --- sidebar ------------------------------------------------------------------------------------ */
.sidebar {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
}
.sidebar-head {
  padding: 14px 12px 10px 14px;
  display: grid;
  gap: 10px;
}
.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sidebar-tools {
  display: flex;
  gap: 2px;
}
#lens-btn[aria-pressed="true"] {
  color: var(--cyan);
  background: var(--wash);
}
.tree-wrap {
  flex: 1;
  overflow: auto;
  padding: 2px 8px 16px 6px;
  min-height: 0;
}
.tree-loading {
  display: grid;
  gap: 10px;
  padding: 10px;
}
.tree-empty {
  padding: 10px 14px;
  color: var(--ink-3);
}
.lens-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}
.lens-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.swatch.lit {
  background: var(--wash);
  border-color: var(--cyan);
}
.swatch.self {
  background: var(--cyan);
  border-color: var(--cyan);
}
.swatch.sealed {
  background: repeating-linear-gradient(135deg, var(--ink-3) 0 1px, transparent 1px 4px);
  opacity: 0.7;
}

/* tree */
.tree,
.tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree ul {
  margin-left: 15px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
.node {
  border-radius: 10px;
}
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 4px 0 2px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  user-select: none;
}
.row:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.row:focus-visible {
  outline-offset: -2px;
}
.row[aria-selected="true"] {
  background: var(--cyan);
  color: var(--cyan-ink);
}
.row[aria-selected="true"] .row-count,
.row[aria-selected="true"] .badge {
  color: inherit;
  border-color: color-mix(in srgb, var(--cyan-ink) 35%, transparent);
}
.row-twisty {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  flex: none;
}
.row-twisty.is-leaf {
  cursor: default;
}
.row-twisty .ico {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}
.row[aria-expanded="true"] > .row-twisty .ico {
  transform: rotate(90deg);
}
.row-ico {
  opacity: 0.8;
}
.row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.row-count {
  font-size: 11px;
  color: var(--ink-3);
}
.row-badges {
  display: inline-flex;
  gap: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--ink-3);
}
.badge .ico {
  width: 13px;
  height: 13px;
}
.badge-policy {
  color: var(--cyan);
}
.badge-warn {
  color: var(--amber);
}
.badge-live {
  color: var(--cyan);
  font: 600 11px/1 var(--font-mono);
}
.badge-sealed {
  color: var(--ink-3);
}
.row-menu {
  opacity: 0;
}
.row:hover .row-menu,
.row:focus-within .row-menu,
.row[aria-selected="true"] .row-menu {
  opacity: 1;
}
.node-more {
  padding: 2px 10px;
  color: var(--ink-3);
}

/* the isolation lens (signature) */
.tree.lens-on .node.is-selected {
  background: var(--wash);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 45%, transparent);
}
.tree.lens-on .node.is-selected ul {
  border-left-color: color-mix(in srgb, var(--cyan) 55%, transparent);
}
.tree.lens-on .node[data-rel="outside"] > .row {
  color: var(--ink-3);
  background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 6px);
}
.tree.lens-on .node[data-rel="outside"] > .row .row-ico,
.tree.lens-on .node[data-rel="outside"] > .row .row-name {
  opacity: 0.75;
}
.tree.lens-on .node[data-rel="ancestor"] > .row .row-name {
  color: var(--ink-2);
}

/* --- main --------------------------------------------------------------------------------------- */
.main {
  grid-row: 2;
  grid-column: 2;
  overflow: auto;
  min-width: 0;
  outline: none;
}
.folder-page,
.page,
.job-view {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 32px 64px;
}
.page-head {
  margin-bottom: 22px;
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-title {
  font: 400 38px/1.05 var(--font-display);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.page-lede {
  margin: 0 0 10px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* folder header */
.folder-head {
  margin-bottom: 18px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.crumb {
  color: var(--ink-2);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
a.crumb:hover,
button.crumb:hover {
  color: var(--cyan);
  text-decoration: underline;
}
.crumb.is-current {
  color: var(--ink);
  cursor: default;
}
.crumb-sep {
  color: var(--line);
}
.folder-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.folder-title {
  font: 400 44px/1.02 var(--font-display);
  margin: 0;
  letter-spacing: -0.015em;
  word-break: break-word;
}
.folder-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.folder-desc {
  margin: 4px 0 0;
  color: var(--ink-2);
  max-width: 72ch;
}
.reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 12px 0 10px;
  font-size: 13px;
}
.reach-lit,
.reach-sealed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reach-lit {
  color: var(--cyan);
  font-weight: 600;
}
.reach-sealed {
  color: var(--ink-3);
}
.reach-link {
  font-size: 12.5px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fact {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
}
.fact-k {
  color: var(--ink-3);
}
.fact-warn {
  border-color: var(--amber);
  background: var(--amber-wash);
}
.fact-warn .fact-v {
  color: var(--amber);
}

/* tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 11px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-selected="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.tab-panel {
  outline: none;
}

/* --- primitives --------------------------------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card + .card {
  margin-top: 14px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.card-head > .card-title {
  flex: 1;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.card-head .card-title {
  margin: 0;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field + .field {
  margin-top: 14px;
}
.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.field-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0;
}
.input {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sunken);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input::placeholder {
  color: var(--ink-3);
  opacity: 0.85;
}
.input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent);
  background: var(--panel);
}
textarea.input {
  resize: vertical;
  line-height: 1.55;
}
select.input {
  cursor: pointer;
}
.input-sm {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}
.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-row .input {
  flex: 1;
}
.input-prefixed {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sunken);
}
.input-prefixed .input {
  flex: 1;
  min-width: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.input-prefix {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 60%;
  align-self: center;
  padding: 0 2px 0 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.input-prefixed:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent);
}
.input-prefixed .input:focus {
  box-shadow: none;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-2);
}
.check input {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
}
.check-sm {
  font-size: 12.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:hover {
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}
.btn-primary:hover {
  background: var(--cyan-strong);
  border-color: var(--cyan-strong);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--panel-2);
  color: var(--ink);
  border-color: transparent;
}
.btn-danger {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}
.btn-danger-ghost {
  background: var(--rust-wash);
  border-color: transparent;
  color: var(--rust);
}
.btn.danger,
.icon-btn.danger {
  color: var(--rust);
}
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}
.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}
.btn.is-busy {
  position: relative;
  color: transparent;
}
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan-ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
}
.icon-btn.sm {
  width: 26px;
  height: 26px;
}
.only-narrow {
  display: none;
}

/* segmented control */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sunken);
  max-width: 100%;
  overflow-x: auto;
}
.seg {
  border: 0;
  background: none;
  padding: 5px 12px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.seg:hover {
  color: var(--ink);
}
.seg[aria-checked="true"] {
  background: var(--panel);
  color: var(--cyan);
  box-shadow: 0 1px 2px rgba(14, 39, 71, 0.12), 0 0 0 1px var(--line);
}

/* switch */
.switch {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s;
  margin-top: 1px;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.switch-input:checked + .switch-track {
  background: var(--cyan);
}
.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(14px);
}
.switch-input:focus-visible + .switch-track {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.switch-label {
  display: grid;
  gap: 2px;
  font-weight: 500;
}
.switch-sm .switch-track {
  width: 28px;
  height: 16px;
}
.switch-sm .switch-thumb {
  width: 12px;
  height: 12px;
}
.switch-sm .switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(12px);
}
.switch-sm .switch-label {
  font-size: 12px;
  color: var(--ink-3);
}

/* pills & chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill + .pill {
  margin-left: 6px;
}
.pill[data-status="preparing"],
.pill[data-status="organizing"],
.pill[data-status="running"] {
  background: var(--wash);
  color: var(--cyan);
}
.pill[data-status="succeeded"] {
  background: var(--moss-wash);
  color: var(--moss);
}
.pill[data-status="failed"] {
  background: var(--rust-wash);
  color: var(--rust);
}
.pill[data-status="cancelled"] {
  color: var(--ink-3);
}
.pill-quiet {
  background: transparent;
  border: 1px solid var(--line);
  font-weight: 500;
}
.pill[data-delivery="delivered"] {
  color: var(--moss);
  border-color: color-mix(in srgb, var(--moss) 40%, transparent);
}
.pill[data-delivery="failed"] {
  color: var(--rust);
  border-color: color-mix(in srgb, var(--rust) 40%, transparent);
}
.pill-pulse,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
  flex: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--panel);
  white-space: nowrap;
}
.chip-sm {
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
}
.chip-sm .ico {
  width: 12px;
  height: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
}
.tag .ico {
  width: 12px;
  height: 12px;
}
.tag-ok {
  color: var(--moss);
}
.tag-error {
  color: var(--rust);
  background: var(--rust-wash);
}
.tag-guard {
  color: var(--amber);
  background: var(--amber-wash);
}

/* callouts */
.callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin: 0 0 12px;
}
.callout p {
  margin: 2px 0 0;
}
.callout-warn {
  background: var(--amber-wash);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
}
.callout-error {
  background: var(--rust-wash);
  color: var(--rust);
  border: 1px solid color-mix(in srgb, var(--rust) 35%, transparent);
}
.callout-error p {
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--sunken);
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
}
.table .actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.table tr.is-link {
  cursor: pointer;
}
.table tr.is-link:hover td,
.table tr.is-link:focus-visible td {
  background: var(--wash-2);
}
.table tr.is-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.prompt-cell {
  max-width: 460px;
}
.prompt-link {
  color: var(--ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prompt-cell .chip {
  margin-top: 4px;
}
.load-more {
  display: flex;
  justify-content: center;
  padding: 14px;
}
.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
  min-width: 0;
}
.file-link:hover span {
  color: var(--cyan);
  text-decoration: underline;
}
.file-link .ico {
  color: var(--ink-3);
}
tr.is-dir .file-link {
  font-weight: 600;
}
tr.is-dir .file-link .ico {
  color: var(--cyan);
}

/* toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* empty & skeleton */
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.empty-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--wash-2);
  color: var(--cyan);
  margin-bottom: 12px;
}
.empty-ico .ico {
  width: 22px;
  height: 22px;
}
.empty-title {
  margin: 0 0 6px;
  font-size: 16px;
}
.empty-text {
  margin: 0 0 14px;
  color: var(--ink-3);
  max-width: 52ch;
}
.skeleton {
  display: grid;
  gap: 12px;
  padding: 6px 0;
}
.sk-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-2), var(--line-2), var(--panel-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-line.short {
  width: 60%;
}

/* disclosure */
.disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 4px 0;
}
.disclosure > summary::-webkit-details-marker {
  display: none;
}
.disclosure > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
  margin: 0 3px 0 1px;
  color: var(--ink-3);
}
.disclosure[open] > summary::before {
  transform: rotate(45deg);
}
.summary-hint {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12.5px;
  margin-left: 8px;
}

/* code */
.code {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  border: 1px solid var(--line-2);
  overflow: auto;
  max-height: 420px;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.inline-url {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  border: 1px solid var(--line);
}

/* --- run tab ------------------------------------------------------------------------------------ */
.run-form {
  max-width: 940px;
}
.run-compose {
  border-color: color-mix(in srgb, var(--cyan) 35%, var(--line));
}
.prompt {
  font-size: 15px;
  min-height: 160px;
  background: var(--panel);
}
.kbd-hint {
  justify-self: end;
}
.run-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 16px 24px;
  margin-top: 16px;
  align-items: start;
}
.run-controls .field + .field {
  margin-top: 0;
}
.effort-hint {
  min-height: 1.5em;
}
.dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone > .ico {
  width: 24px;
  height: 24px;
  color: var(--cyan);
}
.dropzone div {
  display: grid;
  gap: 2px;
}
.dropzone span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--cyan);
  background: var(--wash-2);
}
.attach-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.attach-list:empty {
  display: none;
}
.attach {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.attach-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attach-size {
  color: var(--ink-3);
  font-size: 12px;
}
.card .field:first-of-type + .field,
.dropzone + .attach-list + .field {
  margin-top: 14px;
}
.organize-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 12px;
}
.grid-2 .field + .field {
  margin-top: 0;
}
.span-2 {
  grid-column: 1 / -1;
}
.card .disclosure {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.run-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* --- files tab ---------------------------------------------------------------------------------- */
.tab-files {
  position: relative;
  border-radius: var(--radius);
}
.tab-files.is-over::after {
  content: "Drop to upload into this folder";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px dashed var(--cyan);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--wash) 85%, transparent);
  color: var(--cyan);
  font-weight: 600;
  z-index: 2;
}
.preview-meta {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 12px;
}
.preview-text {
  max-height: none;
}
.preview-img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: repeating-conic-gradient(var(--panel-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
}
.preview-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* --- isolation tab ------------------------------------------------------------------------------ */
.tab-isolation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}
.tab-isolation .card + .card {
  margin-top: 0;
}
.map-card {
  position: sticky;
  top: 0;
}
.map-title {
  font: 400 28px/1.1 var(--font-display);
  margin: 0;
}
.map-title-sep {
  color: var(--ink-3);
}
.sealed-text {
  color: var(--ink-3);
}
.map-lede {
  color: var(--ink-2);
  margin: 8px 0 14px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-scroll {
  max-height: 460px;
  overflow: auto;
  padding: 4px 2px 8px;
}
.map-tree,
.map-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-tree ul {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.map-tree li {
  padding: 3px 0;
}
.map-node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  max-width: 100%;
}
.map-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-tag {
  font: 11px/1 var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.map-node[data-kind="self"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}
.map-node[data-kind="self"] .map-tag {
  color: inherit;
  opacity: 0.8;
}
.map-node[data-kind="lit"] {
  background: var(--wash);
  border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
}
.map-node[data-kind="lit"] .ico {
  color: var(--cyan);
}
.map-node[data-kind="sealed"],
.map-node[data-kind="ancestor"] {
  color: var(--ink-3);
  background-color: var(--panel);
  background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 6px);
  border-style: dashed;
}
.map-node:hover {
  border-color: var(--cyan);
}
.enforcement {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.checklist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}
.checklist li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.checklist .ico {
  color: var(--moss);
  margin-top: 2px;
}
.settings-head {
  margin-bottom: 14px;
}
.settings-head .card-title {
  margin-bottom: 6px;
  display: block;
}
.settings-group {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.settings-group legend {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0;
  margin-bottom: 4px;
}
.setting {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.setting:last-child {
  border-bottom: 0;
}
.setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setting-label {
  font-weight: 600;
  font-size: 13.5px;
}
.setting.is-own .setting-label::after {
  content: "set here";
  margin-left: 8px;
  font: 500 10.5px/1 var(--font-mono);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--wash-2);
  vertical-align: 2px;
}
.inherited {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  border: 1px dashed var(--line);
}
.inherited-value {
  color: var(--ink);
}
.inherited-from {
  font-size: 12px;
  color: var(--ink-3);
}
.inherited-from strong {
  font-weight: 600;
  color: var(--ink-2);
}
.inherited-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12.5px;
}
.inherited-rules li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 0 2px;
  margin-top: 8px;
  background: linear-gradient(transparent, var(--panel) 30%);
}

/* --- job view ----------------------------------------------------------------------------------- */
.job-head {
  margin-bottom: 18px;
}
.job-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-2);
}
.back-link:hover {
  color: var(--cyan);
}
.id-chip {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: copy;
}
.job-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  margin: 8px 0 12px;
  max-width: 70ch;
  word-break: break-word;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.job-meta .pill + .pill {
  margin-left: 0;
}
.job-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.timeline {
  list-style: none;
  display: flex;
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  counter-reset: none;
}
.step {
  position: relative;
  flex: 1 1 0;
  min-width: 110px;
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 16px;
  right: 4px;
  height: 2px;
  background: var(--line);
}
.step:last-child::before {
  display: none;
}
.step-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  z-index: 1;
}
.step[data-state="done"] .step-dot,
.step[data-state="succeeded"] .step-dot {
  background: var(--moss);
  border-color: var(--moss);
}
.step[data-state="done"]::before {
  background: var(--moss);
}
.step[data-state="done"],
.step[data-state="succeeded"] {
  color: var(--ink-2);
}
.step[data-state="current"] {
  color: var(--cyan);
  font-weight: 600;
}
.step[data-state="current"] .step-dot {
  border-color: var(--cyan);
  background: var(--wash);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent);
  animation: pulse-ring 1.6s ease-in-out infinite;
}
.step[data-state="failed"] {
  color: var(--rust);
  font-weight: 600;
}
.step[data-state="failed"] .step-dot {
  background: var(--rust);
  border-color: var(--rust);
}
.step[data-state="cancelled"] .step-dot {
  background: var(--ink-3);
  border-color: var(--ink-3);
}
.step[data-state="skipped"] .step-dot {
  border-style: dashed;
}
.step[data-state="skipped"]::before {
  background: var(--moss);
}
.step[data-state="unreached"] {
  opacity: 0.5;
}
.job-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}
.job-side > .card + .card,
.job-side > .card + details,
.job-side > details + .card {
  margin-top: 14px;
}
.log-card {
  padding: 0;
  overflow: hidden;
}
.log-card .card-head {
  padding: 14px 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.log-scroll {
  max-height: calc(100vh - 250px);
  min-height: 320px;
  overflow: auto;
}
.log {
  padding: 8px 0 16px;
}
.ev {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 7px 18px;
  animation: ev-in 0.18s ease-out;
}
.ev-ico {
  color: var(--ink-3);
  padding-top: 2px;
}
.ev-body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ev-time {
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 3px;
}
.ev-status .ev-body {
  color: var(--ink-2);
  font-size: 13px;
}
.ev-muted {
  color: var(--ink-3);
  font-size: 13px;
}
.ev-assistant {
  padding-top: 12px;
  padding-bottom: 12px;
}
.ev-assistant .ev-ico {
  color: var(--cyan);
}
.ev-ok .ev-ico {
  color: var(--moss);
}
.ev-error {
  color: var(--rust);
}
.ev-error .ev-ico {
  color: var(--rust);
}
.ev-guard {
  margin: 4px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--amber-wash);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 12%, transparent) 0 1.5px, transparent 1.5px 7px);
  color: var(--ink);
  padding: 9px 10px;
}
.ev-guard .ev-ico,
.ev-guard strong {
  color: var(--amber);
}
.ev-files .ev-ico {
  color: var(--cyan);
}
.ev-placements {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  display: grid;
  gap: 3px;
}
.ev-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 18px 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.phase-name {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}
.phase-meta,
.phase-tools {
  color: var(--ink-3);
}
.ev-tool {
  display: block;
  padding: 0;
  margin: 2px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--sunken);
}
.ev-tool > summary {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 6px 6px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.ev-tool > summary::-webkit-details-marker {
  display: none;
}
.ev-tool .ev-ico {
  padding: 0;
  display: grid;
  place-items: center;
}
.tool-name {
  font-weight: 600;
}
.tool-arg {
  color: var(--ink-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-detail {
  padding: 4px 10px 10px;
  display: grid;
  gap: 6px;
}
.tool-detail .eyebrow {
  margin: 4px 0 0;
}
.ev-tool[data-state="blocked"] {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background-color: var(--amber-wash);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 10%, transparent) 0 1.5px, transparent 1.5px 7px);
}
.ev-tool[data-state="blocked"] .ev-ico {
  color: var(--amber);
}
.ev-tool[data-state="error"] {
  border-color: color-mix(in srgb, var(--rust) 35%, transparent);
}
.follow-btn {
  margin-left: auto;
}
.result-card[data-status="succeeded"] {
  border-top: 3px solid var(--moss);
}
.result-card[data-status="failed"] {
  border-top: 3px solid var(--rust);
}
.result-text {
  margin-bottom: 14px;
}
.pulse-text {
  animation: breathe 2.4s ease-in-out infinite;
}
.structured {
  margin-bottom: 14px;
}
.structured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
}
.stat {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  border: 1px solid var(--line-2);
  min-width: 0;
}
.stat dt {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.stat dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.stat dd .code {
  font-weight: 400;
}
.organizer-summary {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.organizer-summary .ico {
  color: var(--cyan);
  margin-top: 2px;
}
.placements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.placements li {
  display: grid;
  gap: 2px;
}
.placement-meta {
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 24px;
}
.placement-reason {
  font-size: 12.5px;
  color: var(--ink-2);
  padding-left: 24px;
}
.guard-card[data-blocked="true"] {
  background-color: var(--amber-wash);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 9%, transparent) 0 1.5px, transparent 1.5px 7px);
  border-color: color-mix(in srgb, var(--amber) 40%, transparent);
}
.guard-card[data-blocked="true"] .card-title {
  color: var(--amber);
}
.guard-card[data-blocked="false"] .card-title .ico {
  color: var(--moss);
}
.denial-head {
  margin-top: 14px;
}
.denials {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
}
.denials li {
  display: grid;
  gap: 2px;
}
.denials li span {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.attempts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.attempts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  font-size: 12.5px;
}
.attempt-code {
  grid-row: span 2;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  align-self: start;
  background: var(--rust-wash);
  color: var(--rust);
}
.attempts li[data-ok="true"] .attempt-code {
  background: var(--moss-wash);
  color: var(--moss);
}
.attempt-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attempt-error {
  grid-column: 2;
  color: var(--rust);
}
.prompt-card > summary {
  font-size: 15px;
}
.prompt-full {
  white-space: pre-wrap;
  word-break: break-word;
  font: 13.5px/1.6 var(--font-body);
  margin: 10px 0 14px;
  padding: 12px;
  background: var(--sunken);
  border-radius: var(--radius-sm);
  max-height: 360px;
  overflow: auto;
}

/* markdown */
.md {
  font-size: 14px;
  line-height: 1.65;
}
.md > :first-child {
  margin-top: 0;
}
.md > :last-child {
  margin-bottom: 0;
}
.md p {
  margin: 0 0 10px;
}
.md-h {
  margin: 16px 0 8px;
  line-height: 1.3;
}
h3.md-h {
  font-size: 17px;
}
h4.md-h {
  font-size: 15px;
}
h5.md-h,
h6.md-h {
  font-size: 14px;
}
.md-list {
  margin: 0 0 10px;
  padding-left: 22px;
}
.md-list li + li {
  margin-top: 3px;
}
.md-code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-size: 0.88em;
}
.md .code {
  margin: 0 0 10px;
}
.md blockquote {
  margin: 0 0 10px;
  padding: 2px 12px;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
}
.md hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}
.md-table-wrap {
  overflow-x: auto;
  margin: 0 0 10px;
}
.md-table {
  border-collapse: collapse;
  font-size: 13px;
}
.md-table th,
.md-table td {
  border: 1px solid var(--line);
  padding: 5px 9px;
  text-align: left;
}
.md-table th {
  background: var(--sunken);
}

/* --- inbox & connect ---------------------------------------------------------------------------- */
.inbox-list {
  display: grid;
  gap: 12px;
}
.inbox-list .card + .card {
  margin-top: 0;
}
.inbox-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.inbox-output {
  margin: 10px 0 6px;
  color: var(--ink-2);
  max-height: 12em;
  overflow: hidden;
}
.inbox-item .disclosure {
  margin-top: 8px;
}
.inbox-item .disclosure .btn {
  margin: 6px 0;
}
.sig {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.sig-ok {
  color: var(--moss);
  background: var(--moss-wash);
}
.sig-bad {
  color: var(--rust);
  background: var(--rust-wash);
}
.connect {
  display: grid;
  gap: 18px;
}
.connect-urls {
  grid-template-columns: 1fr;
}
.connect-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}
.connect-block {
  display: grid;
  gap: 8px;
}
.connect-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.connect-block h3 {
  margin: 0;
  font-size: 14px;
}

/* --- overlays ----------------------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 15, 30, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  animation: fade-in 0.14s ease-out;
}
.backdrop.leaving {
  animation: fade-out 0.14s ease-in forwards;
}
.backdrop-modal {
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.backdrop-drawer {
  justify-content: flex-end;
}
.modal,
.drawer {
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  outline: none;
}
.modal {
  width: min(560px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  animation: pop-in 0.16s ease-out;
}
.modal-sm {
  width: min(440px, 100%);
}
.drawer {
  width: min(760px, 100%);
  height: 100%;
  border-left: 1px solid var(--line);
  animation: slide-in 0.2s ease-out;
}
.modal-head,
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}
.modal-title,
.drawer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  word-break: break-word;
}
.drawer-title {
  font: 400 26px/1.15 var(--font-display);
}
.modal-sub,
.drawer-sub {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  font-family: var(--font-mono);
  word-break: break-all;
}
.modal-body,
.drawer-body {
  padding: 4px 20px 18px;
  overflow: auto;
}
.drawer-body {
  flex: 1;
}
.modal-text {
  margin: 0;
  color: var(--ink-2);
}
.modal-foot,
.drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line-2);
}
.menu {
  position: fixed;
  z-index: 90;
  min-width: 210px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.12s ease-out;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.menu-item:hover,
.menu-item:focus {
  background: var(--wash-2);
  outline: none;
}
.menu-item.danger {
  color: var(--rust);
}

/* toasts */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
}
.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 10px 11px 13px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.18s ease-out;
  font-size: 13.5px;
}
.toast.leaving {
  animation: fade-out 0.18s ease-in forwards;
}
.toast-body {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}
.toast-body strong {
  text-transform: capitalize;
}
.toast .icon-btn {
  color: inherit;
  opacity: 0.7;
}
.toast-icon {
  padding-top: 2px;
}
.toast[data-kind="ok"] .toast-icon {
  color: var(--moss);
}
.toast[data-kind="error"] {
  background: var(--rust);
  color: #fff;
}

/* --- motion ------------------------------------------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes pulse-ring {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--cyan) 8%, transparent);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.6;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes ev-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(4px);
  }
}
@keyframes slide-in {
  from {
    transform: translateX(32px);
    opacity: 0;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- identity (folder keys) ----------------------------------------------------------------------- */
.identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 420px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  background: var(--wash-2);
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
}
.identity .ico {
  color: var(--cyan);
  flex: none;
}
.identity-kind {
  font-weight: 600;
  color: var(--cyan);
}
.identity-sep {
  color: var(--ink-3);
}
.identity-name,
.identity-scope {
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity-scope {
  color: var(--ink-2);
}
.crumb-scope {
  display: inline-flex;
  color: var(--cyan);
  margin-right: 2px;
}
.crumb-scope .ico {
  width: 13px;
  height: 13px;
}

/* tree badges for keys */
.badge-key {
  color: var(--cyan);
  font: 600 11px/1 var(--font-mono);
}
.badge-keys-off {
  color: var(--rust);
}

/* shared bits */
.callout-quiet {
  background: var(--sunken);
  color: var(--ink-2);
  border: 1px dashed var(--line);
}
.callout-quiet .ico {
  color: var(--cyan);
  flex: none;
  margin-top: 2px;
}
.locked-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.locked-hint .ico {
  width: 13px;
  height: 13px;
}
.setting.is-locked {
  opacity: 0.78;
}
.setting.is-locked .switch,
.setting.is-locked .segmented,
.setting.is-locked .input {
  cursor: not-allowed;
}
.setting-link {
  justify-items: start;
}

/* --- instructions & memory tab ------------------------------------------------------------------ */
.tab-instructions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tab-instructions .card + .card {
  margin-top: 0;
}
.instr-head {
  margin-bottom: 14px;
}
.instr-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 400 28px/1.1 var(--font-display);
}
.instr-title > .ico {
  color: var(--cyan);
}
.instr-title > .ico svg {
  width: 22px;
  height: 22px;
}
.instr-lede {
  margin: 8px 0 0;
  color: var(--ink-2);
  max-width: 70ch;
}
.instr-section {
  padding: 16px 0 4px;
  border-top: 1px solid var(--line-2);
  margin-top: 14px;
}
.instr-h {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.instr-h .ico {
  color: var(--ink-3);
}
.instr-section > .field-hint {
  margin-bottom: 10px;
}
.instr-none {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

/* reading order: what Claude receives, top to bottom */
.read-order {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.order-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  background: var(--sunken);
  min-width: 0;
}
.order-step + .order-step {
  border-top: 1px solid var(--line-2);
}
.order-step[data-on="true"] {
  background: var(--wash-2);
}
.order-n {
  font-size: 11px;
  color: var(--ink-3);
}
.order-step[data-on="true"] .order-n {
  color: var(--cyan);
  font-weight: 600;
}
.order-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.order-state {
  font-size: 11.5px;
  color: var(--ink-3);
}
.order-step[data-on="false"] .order-title {
  color: var(--ink-3);
  font-weight: 500;
}

.rule-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 10px 14px 12px;
  background: var(--panel);
  margin-top: 8px;
}
.rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.rule-from strong {
  color: var(--ink-2);
}
.rule-link {
  font-size: 12.5px;
}

.md-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.md-pane {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: start;
}
.md-pane-label {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.md-input {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}
.md-preview {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--sunken);
  font-size: 13.5px;
}
.md-preview-empty {
  margin: 0;
  color: var(--ink-3);
  font-style: italic;
}
.md-editor.is-locked .md-input {
  cursor: not-allowed;
  opacity: 0.75;
}

/* memory */
.mem-mode {
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 500 11px/1.2 var(--font-mono);
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--panel);
}
.mem-mode[data-mode="read_write"] {
  color: var(--moss);
  border-color: color-mix(in srgb, var(--moss) 40%, transparent);
  background: var(--moss-wash);
}
.mem-mode[data-mode="off"] {
  color: var(--ink-3);
}
.mem-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.mem-body {
  display: grid;
  gap: 8px;
}
.mem-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.mem-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.mem-file-meta {
  font-size: 12px;
}
.mem-input {
  min-height: 240px;
  resize: vertical;
  font-size: 12.5px;
  line-height: 1.6;
}
.mem-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.notes-section {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.note-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.note-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.note-row:hover {
  background: var(--sunken);
}
.note-row .file-link {
  flex: 1;
  min-width: 0;
}
.note-meta {
  font-size: 12px;
  white-space: nowrap;
}

/* --- access tab ----------------------------------------------------------------------------------- */
.tab-access {
  max-width: 1040px;
}
.access-switch-card .switch {
  margin-top: 4px;
}
.access-switch-card .callout {
  margin: 14px 0 0;
}
.managed-above {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.managed-above .empty-ico {
  flex: none;
  margin: 0;
}
.managed-above .card-title {
  margin-bottom: 4px;
}
.managed-above p {
  margin: 0;
  max-width: 68ch;
}
.keys-head {
  flex-wrap: wrap;
}
.keys-table td {
  vertical-align: middle;
}
.keys-table tr[data-enabled="false"] td:first-child strong {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent);
}
.key-prefix {
  font-size: 11.5px;
  margin-top: 2px;
}
.keys-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.keys-foot .ico {
  width: 13px;
  height: 13px;
}
.secret-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  background: var(--wash-2);
}
.secret-value {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}
.secret-box .connect-block-head h3 {
  margin: 0;
  font-size: 14px;
}

/* --- job view: memory ----------------------------------------------------------------------------- */
.memory-updated-card .card-title .ico {
  color: var(--moss);
}
.memory-updated-card > .muted {
  margin: 0 0 8px;
}
.mem-changes {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12.5px;
}
.mem-changes li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mem-change-tag {
  font: 600 10.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--moss-wash);
  color: var(--moss);
}
.mem-changes li[data-change="deleted"] .mem-change-tag {
  background: var(--rust-wash);
  color: var(--rust);
}
.ev-memory .ev-ico {
  color: var(--moss);
}

/* isolation map: sealed ancestors above a folder key's root */
.map-above {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.map-above-label {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.map-above .map-node {
  cursor: default;
}

@media (max-width: 1180px) {
  .tab-instructions {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .identity-kind,
  .identity-name,
  .identity-sep {
    display: none;
  }
  .identity {
    max-width: 160px;
  }
  .md-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .md-preview {
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .keys-table th:nth-child(n + 4),
  .keys-table td:nth-child(n + 4):not(.actions) {
    display: none;
  }
}

/* --- responsive --------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .job-grid,
  .tab-isolation {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-card {
    position: static;
  }
  .log-scroll {
    max-height: 70vh;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: min(320px, 86vw);
  }
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .only-narrow {
    display: inline-grid;
  }
  .sidebar {
    position: fixed;
    top: var(--topbar);
    bottom: 0;
    left: 0;
    width: var(--sidebar);
    z-index: 30;
    transform: translateX(-102%);
    transition: transform 0.2s ease, visibility 0.2s;
    visibility: hidden;
  }
  .sidebar-open .sidebar {
    transform: none;
    visibility: visible;
    box-shadow: var(--shadow-lg);
  }
  .scrim {
    position: fixed;
    inset: var(--topbar) 0 0 0;
    z-index: 25;
    background: rgba(5, 15, 30, 0.35);
  }
  .main {
    grid-column: 1;
  }
  .topbar {
    gap: 10px;
    padding: 0 10px;
  }
  .load,
  .nav-link > span:not(.ico) {
    display: none;
  }
  .nav-link {
    padding: 0 9px;
  }
  .health-text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .folder-page,
  .page,
  .job-view {
    padding: 18px 16px 48px;
  }
  .folder-title {
    font-size: 34px;
  }
  .page-title {
    font-size: 30px;
  }
  .run-controls,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-head-row {
    flex-direction: column;
    align-items: stretch;
  }
  .job-actions {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .health {
    display: none;
  }
  .table th:nth-child(3),
  .table td:nth-child(3) {
    display: none;
  }
}
