/* serverload.css — the server's load badge, its panel and a video's live line (serverload.js, migration 120) */
:root { --sl-free: #e3f5e9; --sl-free-ink: #17643a; --sl-free-dot: #22a35a; --sl-busy: var(--act); --sl-busy-ink: var(--act-ink); --sl-busy-dot: #8a7400; }
:root[data-theme='dark'] { --sl-free: rgba(34, 197, 94, .16); --sl-free-ink: #86efac; --sl-free-dot: #4ade80; --sl-busy: rgba(245, 221, 30, .18); --sl-busy-ink: #f5dd1e; --sl-busy-dot: #f5dd1e; }

.sl-wrap { position: relative; }
.sl-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-full);
  border: 1px solid transparent; font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.sl-badge:focus-visible { outline: none; box-shadow: var(--ring); }
.sl-badge.is-free { background: var(--sl-free); color: var(--sl-free-ink); }
.sl-badge.is-busy { background: var(--sl-busy); color: var(--sl-busy-ink); }
.sl-badge.is-off { background: var(--neutral-soft); color: var(--neutral-ink); }
.sl-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.sl-badge.is-free .sl-dot { background: var(--sl-free-dot); }
.sl-badge.is-busy .sl-dot { background: var(--sl-busy-dot); animation: sl-pulse 1.6s ease-in-out infinite; }
@keyframes sl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sl-badge.is-busy .sl-dot { animation: none; } }
.sl-short { display: none; }
/* (2026-10-26) short in the bar («Free · 3», «Busy») until very wide screens: the full sentence is the tooltip and the panel */
.sl-txt { display: none; } .sl-short { display: inline; }
@media (min-width: 1800px) { .sl-txt { display: inline; } .sl-short { display: none; } }

.sl-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(420px, calc(100vw - 32px)); padding: 16px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-lg); color: var(--ink); }
.sl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sl-tile { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.sl-tile small { color: var(--ink-3); font-size: 12px; }
.sl-tile b { font: 600 20px/1.2 var(--display); }
.sl-list, .sl-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-line { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); gap: 6px; }
.sl-row, .sl-line li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.sl-row > span:first-child, .sl-line li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-row .hint, .sl-line .hint { flex: none; }
.sl-bar { height: 6px; margin-top: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.sl-bar i { display: block; height: 100%; border-radius: 3px; background: var(--commit); transition: width .6s ease; }
.sl-bar i.is-est { background: repeating-linear-gradient(90deg, var(--commit) 0 8px, var(--ord-2) 8px 16px); }
.sl-none { margin: 0; }
.sl-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* a video's live line, next to its step («The machine is editing») */
.sl-vid { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--accent-ink); }
:root[data-theme='dark'] .sl-vid { color: #a9bbff; }
