
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-color: #ffffff;
  --sidebar-bg: #fcfcfd;
  --text-color: #1a1a1a;
  --link-color: #0070f3;
  --secondary-color: #8e8e93;
  --border-color: #eaeaea;
  --header-bg: #ffffff;
  --sidebar-width: 280px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#sidebar {
  width: var(--sidebar-width);
  background-color: #fcfcfd;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
}

#sidebar-resize {
  width: 4px;
  background: var(--border-color);
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.15s;
  z-index: 10;
}
#sidebar-resize:hover, #sidebar-resize.dragging { background: var(--link-color); }

#sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01rem;
  color: #000;
}

#sidebar-header a { color: inherit; text-decoration: none; }

#sidebar-nav {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.nav-section { margin-bottom: 0.25rem; }

.nav-section-title {
  padding: 0.4rem 1.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: var(--secondary-color);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.nav-section-title:hover { color: var(--text-color); }
.nav-section-title:focus { outline: 2px solid var(--link-color); outline-offset: -2px; border-radius: 4px; color: var(--text-color); }
.nav-item:focus { outline: 2px solid var(--link-color); outline-offset: -2px; }
.lifecycle-badge { margin-left: 4px; }

.nav-section-title[data-section="sources"]      { background:#e8f3fd; color:#1a5f8a; border-radius:5px; }
.nav-section-title[data-section="system"]       { background:#f0ecfa; color:#5b39a0; border-radius:5px; }
.nav-section-title[data-section="_system"]      { background:#f0ecfa; color:#5b39a0; border-radius:5px; }
.nav-section-title[data-section="_maintenance"] { background:#fef3c7; color:#92400e; border-radius:5px; }
.nav-section-title[data-section="_processing"]  { background:#e0f2fe; color:#0369a1; border-radius:5px; }
.nav-section-title[data-section="cognition"]    { background:#e8f7f4; color:#1a7a65; border-radius:5px; }
.nav-section-title[data-section="categories"]   { background:#fdf5e4; color:#8a6010; border-radius:5px; }
.nav-section-title[data-section="timeline"]     { background:#fce7f3; color:#9d174d; border-radius:5px; }
.nav-section-title[data-section="source types"] { background:#fff1e6; color:#7c3a00; border-radius:5px; }
.nav-section-title[data-section="tags"]         { background:#edf8ee; color:#2d6a35; border-radius:5px; }
.nav-section-title[data-section="clusters"]     { background:#fce8f3; color:#8a1060; border-radius:5px; }
.nav-section-title[data-section="brainworks"]   { background:#f0f4ff; color:#3730a3; border-radius:5px; }
.nav-section-title[data-section="investigate"]  { background:#f3eeff; color:#7c3aed; border-radius:5px; }
.nav-section-title[data-section="operations"]   { background:#fff7ed; color:#c2410c; border-radius:5px; }
.nav-section-title[data-section="admin"]        { background:#f1f5f9; color:#334155; border-radius:5px; }
.nav-section-title[data-section="ask"]          { background:#ecfdf5; color:#065f46; border-radius:5px; }

.nav-section-title[data-section]:hover { filter: brightness(0.94); }

.nav-section-content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.22s ease-out;
}

.nav-section-content.collapsed {
  grid-template-rows: 0fr;
}

.nav-section-content > .nav-inner {
  overflow: hidden;
  min-height: 0;
}

.toggle-icon {
  font-size: 0.7rem;
  opacity: 0.7;
  display: inline-block;
  width: 0.85rem;
  text-align: center;
  flex-shrink: 0;
}

.no-anim * { transition: none !important; }

#sidebar-search {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

#sidebar-filter-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

#nav-realm-filter {
  flex: 1;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-color);
  background: #fff;
  outline: none;
  min-width: 0;
}

#sidebar-tombstoned-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
#sidebar-tombstoned-label input { cursor: pointer; }

#sidebar-search input {
  width: 100%;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.8rem;
  box-sizing: border-box;
  outline: none;
  color: var(--text-color);
  background: #fff;
}

#sidebar-search input[type="text"]:focus { border-color: var(--link-color); }

.nav-item.nav-formed { color: #15803d; }
.nav-item.nav-synth  { color: #2563eb; }
.nav-item.nav-admin  { color: #7c3aed; }
.nav-count {
  font-size: 0.68rem;
  color: #bbb;
  margin-left: 0.2rem;
  font-weight: 400;
}


.nav-item {
  display: block;
  padding: 0.35rem 1.25rem;
  color: #444;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  margin: 0 0.5rem;
  transition: all 0.15s ease;
}

.nav-item:hover { background-color: rgba(0,0,0,0.04); color: #000; }
.nav-item.active {
  background-color: #fff;
  color: var(--link-color);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.05);
}

.nav-item.inactive { color: #aaa; font-style: italic; }

#content-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  flex-shrink: 0;
}

main { padding: 1rem 2rem 2rem; max-width: 1200px; }

h1, h2, h3, h4 { font-weight: 700; margin-top: 1rem; margin-bottom: 0.5rem; }
h1 { font-size: 2rem; letter-spacing: -0.05rem; margin-top: 0; }
h2 { font-size: 1.25rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.25rem; }

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

.metadata { color: var(--secondary-color); font-size: 0.8rem; margin-bottom: 0.25rem; }

.card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.history-card { display: flex; flex-direction: column; gap: 0.25rem; }
.history-header { display: flex; justify-content: space-between; align-items: baseline; }
.history-date { font-weight: 700; font-size: 0.95rem; }
.history-source { font-size: 0.75rem; font-style: italic; color: var(--secondary-color); text-align: right; }
.history-observation { font-size: 0.9rem; }

.tag {
  display: inline-block;
  background: #eee;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

/* Systemic Indicators Styling */
.indicator-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.indicator-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  background: #fcfcfc;
  font-size: 0.9rem;
}

.indicator-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.polarity-pos { color: #28a745; }
.polarity-neg { color: #dc3545; }
.severity-high { background: #fff5f5; border-color: #feb2b2; }

/* Section Specific Colors */
.section-interactions { background-color: #f0f4ff; border-color: #dbeafe; }
.section-history { background-color: #fdf2f8; border-color: #fce7f3; }

footer {
  margin-top: auto;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-color);
  font-size: 0.75rem;
}

p { margin-top: 0; margin-bottom: 0.5rem; }
ul { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0.5rem; }
li { margin-bottom: 0.25rem; }

blockquote {
  border-left: 3px solid var(--border-color);
  margin: 0.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--secondary-color);
  font-size: 1rem;
}

/* ── Admin interactive styles (no visual effect unless --interactive) ─── */
.nav-item-wrap { position: relative; display: flex; align-items: center; }
.nav-item-wrap .nav-item { flex: 1; min-width: 0; }
.admin-action-bar {
  display: none; position: absolute; right: 0.25rem;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 4px; padding: 2px 3px; gap: 2px; z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); white-space: nowrap;
}
.nav-item-wrap:hover .admin-action-bar { display: flex; }
.admin-action-bar button {
  font-size: 0.62rem; padding: 1px 4px;
  border: 1px solid #ccc; border-radius: 2px;
  background: #f9f9f9; cursor: pointer;
}
.admin-action-bar button:hover { background: #e0e7ff; border-color: #6366f1; }
.entity-tombstoned { text-decoration: line-through; }
.nav-investigate-btn {
  display: none; font-size: 0.65rem; padding: 1px 4px;
  border: 1px solid #a5b4fc; border-radius: 2px;
  background: #eef2ff; cursor: pointer; margin-left: auto; flex-shrink: 0;
}
.nav-section:hover > .nav-section-title .nav-investigate-btn { display: inline-block; }
.admin-bar { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.admin-bar button {
  padding: 0.35rem 0.8rem; background: var(--link-color); color: #fff;
  border: none; border-radius: 4px; cursor: pointer; font-size: 0.82rem;
}
.admin-bar button:hover { opacity: 0.85; }
#admin-modal {
  border: none; border-radius: 8px; min-width: 420px; max-width: 90vw;
  padding: 0; box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
#admin-modal::backdrop { background: rgba(0,0,0,0.38); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem 0.75rem; border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { margin: 0; font-size: 1rem; }
.modal-close {
  background: none; border: none; cursor: pointer; font-size: 1.2rem;
  color: var(--secondary-color); padding: 0; line-height: 1;
}
.modal-close:hover { color: var(--text-color); }
.modal-body { padding: 1rem 1.25rem; }
.modal-body label { display: block; font-size: 0.82rem; font-weight: 600; margin: 0.75rem 0 0.2rem; }
.modal-body label:first-child { margin-top: 0; }
.modal-body input, .modal-body textarea, .modal-body select {
  width: 100%; padding: 0.4rem 0.6rem; border: 1px solid var(--border-color);
  border-radius: 4px; font-size: 0.85rem; box-sizing: border-box; font-family: var(--font-family);
}
.modal-body textarea { min-height: 80px; resize: vertical; }
.modal-footer {
  padding: 0.75rem 1.25rem 1rem; border-top: 1px solid var(--border-color);
  display: flex; justify-content: flex-end; gap: 0.5rem;
}
.btn-primary { background: var(--link-color); color: #fff; border: none; border-radius: 4px; padding: 0.4rem 0.9rem; cursor: pointer; font-size: 0.85rem; }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: #f3f4f6; color: var(--text-color); border: 1px solid var(--border-color); border-radius: 4px; padding: 0.4rem 0.9rem; cursor: pointer; font-size: 0.85rem; }
.btn-secondary:hover { background: #e5e7eb; }
.modal-success { color: #166534; background: #dcfce7; padding: 0.75rem; border-radius: 4px; }
.modal-error { color: #991b1b; background: #fee2e2; padding: 0.75rem; border-radius: 4px; }
/* ── Form controls used on integrated Operations pages ─────────────── */
.ops-form textarea, .ops-form input[type=text] { width:100%; padding:0.45rem 0.6rem; border:1px solid var(--border-color); border-radius:4px; font-size:0.9rem; background:#fff; margin-bottom:0.6rem; }
.ops-form textarea { min-height:90px; resize:vertical; }
.ops-form label { display:block; font-size:0.85rem; font-weight:600; margin-bottom:0.2rem; color:#374151; }
.ops-form .hint { font-size:0.8rem; color:#9ca3af; margin:-0.4rem 0 0.5rem; }
.chip-group { display:flex; flex-wrap:wrap; gap:0.3rem; margin-bottom:0.6rem; }
.chip { padding:0.15rem 0.55rem; border:1px solid var(--border-color); border-radius:12px; font-size:0.78rem; cursor:pointer; background:#fff; user-select:none; }
.chip.selected { background:#4f46e5; color:#fff; border-color:#4f46e5; }
#eu-entity-tags { display:flex; flex-wrap:wrap; gap:0.3rem; margin-bottom:0.5rem; }
.etag { padding:0.15rem 0.45rem; background:#e0e7ff; border-radius:10px; font-size:0.78rem; display:flex; align-items:center; gap:0.3rem; }
.etag button { border:none; background:none; cursor:pointer; color:#4f46e5; font-size:0.8rem; padding:0; line-height:1; }
.ops-result { margin-top:0.75rem; padding:0.65rem; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:4px; font-size:0.85rem; display:none; }
.ops-result.error { background:#fef2f2; border-color:#fecaca; }

/* ── Layout: top bar above the sidebar+content row ─────────────────── */
body { flex-direction: column; }
#app-body { display: flex; flex: 1; overflow: hidden; min-height: 0; }
#sidebar { height: 100%; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
#topbar {
  height: 44px; flex-shrink: 0;
  background: #fff; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 0;
  padding: 0 0.75rem; z-index: 200; position: relative;
  font-size: 0.83rem;
}
.topbar-brand {
  font-weight: 700; font-size: 0.95rem; color: var(--text-color);
  text-decoration: none; padding: 0 0.75rem 0 0.25rem;
  white-space: nowrap; letter-spacing: -0.01em; flex-shrink: 0;
}
.topbar-brand:hover { text-decoration: none; color: var(--link-color); }
.topbar-sep { width: 1px; height: 20px; background: var(--border-color); margin: 0 0.35rem; flex-shrink: 0; }
.topbar-item { position: relative; align-self: stretch; display: flex; align-items: center; }
.topbar-btn {
  background: none; border: none; cursor: pointer; color: var(--text-color);
  font-size: 0.83rem; font-family: var(--font-family);
  padding: 0.3rem 0.65rem; border-radius: 5px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.2rem;
  transition: background 0.12s; text-decoration: none;
}
.topbar-btn:hover { background: rgba(0,0,0,0.06); text-decoration: none; }
.topbar-btn-ops { color: #7c3aed; font-weight: 600; }
[x-cloak] { display: none !important; }
.topbar-dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 8px; min-width: 200px; max-width: 260px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13); z-index: 500;
  padding: 0.4rem 0;
}
.topbar-dropdown-section {
  font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--secondary-color); font-weight: 700;
  padding: 0.55rem 0.9rem 0.2rem;
}
.topbar-dropdown-divider {
  border: none; border-top: 1px solid var(--border-color);
  margin: 0.3rem 0;
}
.topbar-dropdown-item {
  display: block; padding: 0.38rem 0.9rem;
  color: var(--text-color); text-decoration: none;
  font-size: 0.83rem; white-space: nowrap; transition: background 0.1s;
}
.topbar-dropdown-item:hover { background: rgba(0,0,0,0.05); text-decoration: none; }
.topbar-dropdown-item.topbar-dropdown-btn {
  background: none; border: none; cursor: pointer; width: 100%;
  text-align: left; font-family: var(--font-family);
  padding: 0.38rem 0.9rem; font-size: 0.83rem; color: var(--text-color);
}
.topbar-dropdown-item.topbar-dropdown-btn:hover { background: rgba(0,0,0,0.05); }
/* ── View menu checkmark items ─────────────────────────────────────── */
.topbar-check-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.38rem 0.9rem; font-size: 0.83rem; color: var(--text-color);
  cursor: pointer; user-select: none; transition: background 0.1s;
  white-space: nowrap;
}
.topbar-check-item:hover { background: rgba(0,0,0,0.05); }
.topbar-check-icon {
  width: 14px; text-align: center; font-size: 0.75rem;
  color: transparent; flex-shrink: 0;
}
.topbar-check-icon.checked { color: var(--link-color); }
.topbar-breadcrumb {
  font-size: 0.78rem; color: var(--secondary-color);
  padding: 0 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 260px; flex-shrink: 1;
}

/* ── Hover preview card ──────────────────────────────────────────────── */
.preview-card {
  position: fixed; z-index: 9000; pointer-events: none;
  max-width: 320px; min-width: 220px;
  background: rgba(255,255,255,0.97); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 0.75rem 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.15s ease;
  font-size: 0.82rem; line-height: 1.5;
}
.preview-card.visible { opacity: 1; }
.preview-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.25rem; }
.preview-meta { color: var(--secondary-color); font-size: 0.75rem; margin-bottom: 0.4rem; }
.preview-divider { border: none; border-top: 1px solid var(--border-color); margin: 0.4rem 0; }
.preview-text { color: #333; font-size: 0.82rem; line-height: 1.45; }
.preview-actions { margin-top: 0.5rem; display: flex; gap: 0.5rem; }
.preview-actions a, .preview-actions button {
  font-size: 0.75rem; color: var(--link-color); text-decoration: none;
  background: none; border: 1px solid var(--border-color); border-radius: 4px;
  padding: 0.15rem 0.5rem; cursor: pointer; font-family: var(--font-family);
}
.preview-actions a:hover, .preview-actions button:hover { background: #f0f7ff; }

/* ── Search modal ────────────────────────────────────────────────────── */
#search-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 8000;
  align-items: flex-start; justify-content: center; padding-top: 80px;
}
#search-modal-overlay.open { display: flex; }
#search-modal {
  background: #fff; border-radius: 10px; width: 560px; max-width: 95vw;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22); overflow: hidden;
}
#search-input-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color);
}
#search-input-wrap .search-icon { color: var(--secondary-color); font-size: 1rem; flex-shrink: 0; }
#search-q {
  flex: 1; border: none; outline: none; font-size: 1rem;
  font-family: var(--font-family); color: var(--text-color);
  background: transparent;
}
#search-kbd { font-size: 0.72rem; color: var(--secondary-color); flex-shrink: 0; }
#search-results { max-height: 420px; overflow-y: auto; padding: 0.5rem 0; }
.search-group-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--secondary-color); font-weight: 700;
  padding: 0.4rem 1rem 0.2rem;
}
.search-result {
  display: block; padding: 0.5rem 1rem; text-decoration: none;
  border-radius: 6px; margin: 0 0.35rem;
  transition: background 0.1s;
}
.search-result:hover, .search-result.focused { background: #f0f7ff; text-decoration: none; }
.search-result-name { font-weight: 600; font-size: 0.88rem; color: var(--text-color); }
.search-result-meta { font-size: 0.72rem; color: var(--secondary-color); margin-top: 0.1rem; }
.search-result-snippet { font-size: 0.78rem; color: #555; margin-top: 0.15rem; line-height: 1.4; }
.search-result-snippet mark { background: #fef3c7; color: inherit; border-radius: 2px; padding: 0 1px; }
#search-empty { padding: 1.5rem 1rem; text-align: center; color: var(--secondary-color); font-size: 0.85rem; }

/* ── Admin phantom-entity cards ─────────────────────────────────────── */
.admin-entity-card {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.4rem 0.9rem; text-decoration: none;
  transition: background 0.1s; border-radius: 4px;
}
.admin-entity-card:hover { background: rgba(0,0,0,0.05); }
.admin-card-name { font-size: 0.83rem; color: var(--text-color); font-weight: 500; }
.admin-card-meta { font-size: 0.72rem; color: var(--secondary-color); }

/* ── Properties dropdown rows ────────────────────────────────────────── */
.prop-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; padding: 0.28rem 0.9rem; font-size: 0.8rem;
  color: var(--text-color); white-space: nowrap; min-width: 220px;
}
.prop-row-wrap { align-items: flex-start; white-space: normal; }
.prop-label { color: var(--secondary-color); flex-shrink: 0; }
.prop-value { font-weight: 500; text-align: right; }
.prop-value-wrap { text-align: left; }

/* ── Admin dropdown inline run-forms ─────────────────────────────────── */
.dropdown-form { padding: 0.25rem 0.9rem 0.5rem; min-width: 220px; }
.dropdown-form-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.3rem; font-size: 0.8rem;
}
.dropdown-form-warn { color: #991b1b; font-size: 0.75rem; font-weight: 600; }
.dropdown-input {
  flex: 1; border: 1px solid var(--border-color); border-radius: 4px;
  padding: 0.25rem 0.45rem; font-size: 0.78rem; font-family: var(--font-family);
  color: var(--text-color); background: #fafafa; outline: none; min-width: 0;
}
.dropdown-input:focus { border-color: var(--link-color); background: #fff; }
.dropdown-check { display: flex; align-items: center; gap: 0.3rem; flex: 1;
  font-size: 0.78rem; color: var(--text-color); cursor: pointer; }
.dropdown-run-btn {
  background: var(--link-color); color: #fff; border: none;
  border-radius: 4px; padding: 0.22rem 0.7rem; font-size: 0.78rem;
  font-family: var(--font-family); cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: opacity 0.1s;
}
.dropdown-run-btn:hover { opacity: 0.85; }
.dropdown-run-btn-danger { background: #dc2626; }
