:root {
  --bg-canvas:#0d1117; --bg-subtle:#161b22; --bg-inset:#010409;
  --border-default:#30363d; --fg-default:#c9d1d9; --fg-muted:#8b949e;
  --accent-fg:#58a6ff; --success-fg:#3fb950; --danger-fg:#f85149; --attention-fg:#d29922;
}
body { font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.dot { width:.5rem; height:.5rem; border-radius:9999px; display:inline-block; }
.dot.on { background: var(--success-fg); }
.dot.off { background: var(--fg-muted); }
#log { font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.log-entry {
  border-bottom: 1px solid rgba(48, 54, 61, .8);
  font-size: .8125rem;
  line-height: 1.35;
  overflow: hidden;
  padding: .4rem .875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-entry:hover { background: rgba(22, 27, 34, .72); }
.log-time {
  color: #9fb3c8;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  margin-right: .75rem;
}
.log-state {
  display: inline-block;
  min-width: calc(10.75rem + 30px);
}
.log-action {
  font-weight: 700;
}
.log-status {
  font-style: italic;
}
.log-details {
  display: inline;
}
/* lucide icons inside small chips */
[data-lucide] { width: 1rem; height: 1rem; }

/* action buttons */
.action-btn {
  align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: .25rem;
  color: var(--fg-default);
  display: flex;
  font-weight: 500;
  gap: .25rem;
  justify-content: center;
  padding: .5rem 0;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .12s ease, box-shadow .18s ease;
}
.action-btn:hover {
  border-color: var(--accent-fg);
  color: var(--accent-fg);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, .14);
}
.action-btn:active {
  transform: translateY(1px) scale(.975);
}
.action-btn.feedback {
  animation: action-pop .22s ease-out;
}
.action-btn-run:hover {
  background: rgba(35, 134, 54, .18);
  border-color: var(--success-fg);
  color: var(--success-fg);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, .16);
}
.action-btn-run.is-running {
  border-color: rgba(63, 185, 80, .7);
  color: var(--success-fg);
}
.action-btn-stop:hover {
  background: rgba(248, 81, 73, .12);
  border-color: var(--danger-fg);
  color: var(--danger-fg);
  box-shadow: 0 0 0 1px rgba(248, 81, 73, .16);
}
.action-btn-save.is-saved {
  border-color: rgba(63, 185, 80, .7);
  color: var(--success-fg);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, .12);
}
.action-btn:disabled,
.action-btn.is-disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}
.action-btn:disabled:hover,
.action-btn.is-disabled:hover {
  background: var(--bg-inset);
  border-color: var(--border-default);
  color: var(--fg-default);
  box-shadow: none;
}
.spin-soft {
  animation: spin-soft .9s linear infinite;
}
@keyframes action-pop {
  0% { transform: scale(1); }
  45% { transform: scale(.965); }
  100% { transform: scale(1); }
}
@keyframes spin-soft {
  to { transform: rotate(360deg); }
}

/* JS scrollbars */
[data-js-scroll] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
[data-js-scroll]::-webkit-scrollbar { width: 0; height: 0; }
[data-js-scroll].js-scroll-ready { position: relative; }
.js-scrollbar {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .12s ease;
  width: 8px;
  z-index: 30;
}
.js-scrollbar.visible {
  opacity: 1;
  pointer-events: auto;
}
.js-scrollbar-thumb {
  background: rgba(139, 148, 158, .65);
  border-radius: 9999px;
  min-height: 28px;
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
}
.js-scrollbar-thumb:hover,
.js-scrollbar.dragging .js-scrollbar-thumb {
  background: rgba(201, 209, 217, .9);
}

/* collapsible installs sidebar */
#installs-sidebar.collapsed { width: 3rem; }
#installs-sidebar.collapsed #installs-header-icon,
#installs-sidebar.collapsed #installs-header-title,
#installs-sidebar.collapsed #install-count,
#installs-sidebar.collapsed #install-list,
#installs-sidebar.collapsed #conn { display: none; }
#installs-sidebar.collapsed #installs-header { justify-content: center; padding-left: 0; padding-right: 0; }
#installs-sidebar.collapsed #installs-footer { justify-content: center; }
