/* ============================================================
   Nevian — shared design system

   One theme, on purpose: light, white, emerald. No theme switcher,
   no per-theme overrides. Everything below derives from the tokens
   in :root, so a change here propagates across the whole console.
   ============================================================ */

:root {
  /* ── Surfaces ────────────────────────────────────────────── */
  --bg:         #f7f9fa;
  --surface:    #ffffff;
  --card:       #ffffff;
  --card-2:     #f4f7f8;
  --hover:      #eef2f4;
  --hover-fade: rgba(16, 32, 44, .045);
  --border:     rgba(17, 34, 51, .085);
  --border-2:   rgba(17, 34, 51, .16);
  /* A divider fainter than --border, for long lists of rows where a
     full hairline every 54px would read as stripes. */
  --hairline:   rgba(17, 34, 51, .055);
  /* Inset fills for chips, inputs and buttons that sit on chrome. */
  --well:       rgba(17, 34, 51, .03);
  --well-hi:    rgba(17, 34, 51, .07);

  /* ── Text ────────────────────────────────────────────────── */
  --text:  #14202c;
  --dim:   #5b6875;
  --muted: #98a3ae;

  /* ── Brand: emerald ──────────────────────────────────────── */
  --accent:        #12a06a;
  --accent-bright: #17b878;
  --accent-deep:   #0b7f52;
  --accent-soft:   rgba(18, 160, 106, .085);
  --accent-line:   rgba(18, 160, 106, .28);
  --on-accent:     #ffffff;

  /* ── Status ──────────────────────────────────────────────── */
  --green:  #12a06a;
  --yellow: #b0770f;
  --orange: #c47d28;
  --red:    #d24141;
  --blue:   #2f7fc4;
  --violet: #7256cc;

  /* ── Live data ───────────────────────────────────────────────
     Health dots, presence pulses, chart strokes. Distinct from
     --accent on purpose: this means "a reading", not "clickable".
     The dark skin re-points these to the site's mint. */
  --live:      #12a06a;
  --live-soft: rgba(18, 160, 106, .10);
  --live-glow: rgba(18, 160, 106, .35);

  /* Legacy aliases: the metallic edge is retired, these keep any
     remaining references harmless. */
  --metal-hi:  rgba(120, 130, 145, .40);
  --metal-mid: rgba(120, 130, 145, .18);

  --topbar-bg: rgba(255, 255, 255, .82);

  /* ── Shape ───────────────────────────────────────────────────
     One geometry for both skins, matching the marketing site and the
     borderRadius scale in tailwind.config.js. Keep the two in step:
     `rounded-lg` and --radius must agree or controls next to each other
     end up with different corners. */
  --radius-sm: 6px;   /* badges, status pills, tree rows */
  --radius:    8px;   /* buttons, inputs, nav rows, toolbar chips */
  --radius-lg: 12px;  /* cards, content frame, drawers */
  --radius-xl: 16px;  /* large modals */
  --radius-pill: 999px;

  /* ── Elevation: layered, low-contrast, never muddy ───────── */
  --shadow-xs: 0 1px 2px rgba(16, 32, 44, .05);
  --shadow-sm: 0 1px 2px rgba(16, 32, 44, .05), 0 2px 6px rgba(16, 32, 44, .04);
  --shadow:    0 1px 3px rgba(16, 32, 44, .06), 0 6px 18px rgba(16, 32, 44, .06);
  --shadow-lg: 0 2px 6px rgba(16, 32, 44, .07), 0 16px 40px rgba(16, 32, 44, .10);
  --shadow-panel: 0 2px 8px rgba(16, 32, 44, .07), 0 24px 60px rgba(16, 32, 44, .12);
  /* No focus rings in this product (see the end of ui.css); kept as a token so
     every `box-shadow: var(--ring)` still parses, and draws nothing. */
  --ring: 0 0 #0000;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  /* Display face, same as the marketing site's h1–h4. Warmer and rounder
     than Inter at large sizes. Reserved for page titles ≥20px — below that
     it is indistinguishable from Inter and just costs a font request. */
  --font-display: 'Hanken Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(150,160,170,.18); }
::-webkit-scrollbar-thumb:hover { background: rgba(150,160,170,.3); }
::-webkit-scrollbar-track { background: transparent; }

/* ── Base card surfaces ──────────────────────────────────── */
.stat, .panel, .card, .ring-card, .modal, .ticket-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* The animated metallic outline that used to live here belonged to the old dark
   console. Retired: the class stays a harmless no-op so existing markup keeps
   working without carrying a rotating conic-gradient on every card. */
.metal-edge { position: relative; }

/* ── Brand mark ───────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius); flex-shrink: 0; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg path, .brand-mark svg rect { stroke: var(--accent); }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.brand-sub  { font-size: 11px; color: var(--muted); line-height: 1.1; margin-top: 1px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border-2); background: var(--card-2); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s, background .15s, opacity .15s, transform .05s;
}
.btn:hover { border-color: rgba(180,190,198,.4); background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent-deep); border: 1px solid var(--accent); color: var(--on-accent);
}
.btn-primary:hover { opacity: .92; background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-2); background: var(--card); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Pills / badges (rounded) ─────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; }
.badge-green  { background: rgba(52,192,138,.1);  color: var(--green);  border-color: rgba(52,192,138,.25); }
.badge-yellow { background: rgba(212,168,67,.1);  color: var(--yellow); border-color: rgba(212,168,67,.25); }
.badge-red    { background: rgba(217,106,106,.1); color: var(--red);    border-color: rgba(217,106,106,.25); }
.badge-blue   { background: rgba(91,145,196,.1);  color: var(--blue);   border-color: rgba(91,145,196,.25); }
.badge-gray   { background: var(--hover-fade); color: var(--dim); }

.role-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 9px; border-radius: 999px; }
.role-admin { background: var(--accent-soft); color: var(--accent); }
.role-user  { background: var(--hover-fade); color: var(--dim); }

.fleet-command-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 18px;
}
.fleet-command-modal.hidden { display: none; }
.fleet-command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}
.fleet-command-card {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-panel, 0 24px 80px rgba(0,0,0,.35));
  padding: 22px;
}
.fleet-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.fleet-command-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}
.fleet-command-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.fleet-command-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.fleet-command-close:hover { color: var(--text); }
.fleet-command-warning {
  border: 1px solid rgba(212,168,67,.32);
  background: rgba(212,168,67,.08);
  color: var(--yellow);
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.fleet-command-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 130px 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.fleet-command-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fleet-command-field select,
.fleet-command-field input,
.fleet-command-editor {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.fleet-command-field select,
.fleet-command-field input {
  height: 38px;
  padding: 0 11px;
  font-size: 13px;
}
.fleet-command-field select:focus,
.fleet-command-field input:focus,
.fleet-command-editor:focus {
}
.fleet-command-hint {
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 10px;
}
.fleet-command-editor-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fleet-command-editor {
  min-height: 260px;
  resize: vertical;
  padding: 12px;
  font: 12px/1.5 Consolas, "SFMono-Regular", Menlo, monospace;
}
.fleet-command-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.fleet-command-status {
  color: var(--muted);
  font-size: 12px;
}
.fleet-command-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.fleet-command-headline { flex: 1; min-width: 0; }
.fleet-command-target-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.fleet-command-chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--hover-fade);
  font-size: 11px; color: var(--text);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

/* Any device can be selected, so the modal warns up front about targets that
   can't take a script right now. Flagged, not removed — the server re-checks
   and the run reports the real reason per host. */
.fleet-command-eligibility {
  padding: 9px 12px;
  border: 1px solid rgba(212, 168, 67, .32);
  border-radius: var(--radius);
  background: rgba(212, 168, 67, .08);
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.fleet-command-eligibility.hidden { display: none; }
.fleet-command-chip.is-blocked {
  border-color: rgba(212, 168, 67, .4);
  color: var(--yellow);
}
.fleet-command-templates {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.fleet-command-template-btn {
  height: 38px; padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fleet-command-template-btn:hover:not(:disabled) {
  background: var(--hover-fade);
}
.fleet-command-template-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fleet-command-template-delete { color: var(--red); border-color: rgba(217,106,106,.35); }
.fleet-command-info {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 50%; border: 1px solid var(--border);
  text-align: center; line-height: 12px; font-size: 9px;
  color: var(--muted); margin-left: 4px;
  cursor: help;
}
.fleet-command-status-error { color: var(--red); }

.fleet-command-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 12px 14px;
}
.fleet-command-row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.fleet-command-row-host {
  font-weight: 700; font-size: 13px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}
.fleet-command-row-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px;
}
.fleet-command-elapsed { color: var(--muted); font-size: 11px; }
.fleet-command-exit {
  color: var(--muted); font-size: 11px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}
.fleet-command-placeholder {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 6px 4px;
  color: var(--muted); font-size: 12px;
}
.fleet-command-stream { margin-top: 10px; }
.fleet-command-stream-label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.fleet-command-pre {
  margin: 0;
  max-height: 220px; overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 10px 12px;
  font: 11.5px/1.55 Consolas, "SFMono-Regular", Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.fleet-command-pre-err { color: var(--red); }
.fleet-command-empty {
  margin: 8px 0 0;
  color: var(--muted); font-size: 12px;
}
.fleet-command-skipped {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--hover-fade);
}
@media (max-width: 720px) {
  .fleet-command-modal { padding: 18px 12px; }
  .fleet-command-card { max-height: calc(100vh - 36px); padding: 18px; }
  .fleet-command-controls { grid-template-columns: 1fr; }
  .fleet-command-hint { padding-bottom: 0; }
}

.status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 11px; border-radius: 999px; border: 1px solid transparent; }
.status-open             { background: var(--card); color: var(--text); border-color: var(--border-2); }
.status-in-progress      { background: rgba(212,168,67,.12);  color: var(--yellow); border-color: rgba(212,168,67,.28); }
.status-waiting-customer { background: rgba(221,144,64,.12);  color: var(--orange, #dd9040); border-color: rgba(221,144,64,.28); }
.status-vip              { background: rgba(155,125,229,.12); color: var(--violet, #9b7de5); border-color: rgba(155,125,229,.28); }
.status-resolved         { background: rgba(52,192,138,.12);  color: var(--green); border-color: rgba(52,192,138,.28); }
.status-close            { background: rgba(150,160,170,.1); color: var(--dim); border-color: rgba(150,160,170,.28); }
.status-discard          { background: rgba(217,106,106,.1); color: var(--red); border-color: rgba(217,106,106,.24); }
/* Compatibility with older markup that used raw underscore status values. */
.status-in_progress      { background: rgba(212,168,67,.12); color: var(--yellow); border-color: rgba(212,168,67,.28); }
.status-waiting_customer { background: rgba(221,144,64,.12); color: var(--orange, #dd9040); border-color: rgba(221,144,64,.28); }

/* ── User chip (top-right) ────────────────────────────────── */
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; }
.user-chip .uc-name { font-size: 12px; color: var(--dim); }
.user-chip a { font-size: 12px; color: var(--dim); }
.user-chip a:hover { color: var(--text); }
.avatar-fallback {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ============================================================
   ADMIN CONSOLE SHELL  (sidebar + main)
   ============================================================ */
.console { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-head { padding: 20px 18px 18px; }
.sidebar-nav { padding: 6px 12px; flex: 1; overflow-y: auto; }
.nav-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 10px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius); margin-bottom: 2px;
  color: var(--dim); font-size: 13px; font-weight: 500; cursor: pointer;
  border-left: 2px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.nav-item:hover { background: var(--hover-fade); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text); font-weight: 600; border-left-color: var(--accent); }
.nav-item svg { flex-shrink: 0; }
.nav-item .nav-count { margin-left: auto; background: var(--card-2); color: var(--dim); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 9999px; min-width: 1.25rem; text-align: center; }
.nav-item.active .nav-count { background: var(--card-2); color: var(--dim); }

.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user img { width: 32px; height: 32px; border-radius: 50%; }
.su-name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.su-mail { font-size: 11px; color: var(--muted); line-height: 1.2; margin-top: 1px; }
.su-signout { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--muted); border-radius: var(--radius-sm); width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.su-signout:hover { color: var(--red); border-color: rgba(217,106,106,.4); }

/* The sidebar footer is a label now, not a menu: it names the signed-in account
   and nothing opens from it. Account settings and sign out are in the workspace
   pill at the top left. */
.sidebar-profile { position: relative; }

/* The custom-logo upload and its preview are gone. The logo was only ever kept
   in this browser's localStorage, so a colleague never saw it, and once the
   workspace pill took over the top bar nothing displayed it at all. */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--border);
  background: var(--topbar-bg); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.content { padding: 28px; flex: 1; }

/* ── Stat cards (overview) ────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 20px; }
.stat-label { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.stat-ico { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 12px; letter-spacing: -.02em; }
.stat-delta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stat-delta.up { color: var(--green); }

/* ── Data table ───────────────────────────────────────────── */
.panel { overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-title { font-size: 14px; font-weight: 700; }

table.data { width: 100%; border-collapse: collapse; }
table.data th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--card-2); }
table.data tbody tr:last-child td { border-bottom: none; }

.cell-strong { font-weight: 600; color: var(--text); }
.cell-dim { color: var(--dim); }

.bar-wrap { display: flex; align-items: center; gap: 9px; }
.bar-bg { flex: 1; max-width: 84px; height: 5px; background: var(--hover); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-pill); background: var(--accent); }
.bar-fill.warn { background: var(--yellow); }
.bar-fill.crit { background: var(--red); }

/* ── Inputs ───────────────────────────────────────────────── */
.input, input[type=text], textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; color: var(--text); font-size: 13px; padding: 9px 14px; font-family: inherit;
}
.input:focus, input[type=text]:focus, textarea:focus, select:focus { outline: none; }
textarea { border-radius: 1rem; }
.field-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* ── Filter buttons ───────────────────────────────────────── */
.filter-btn { background: var(--card); border: 1px solid var(--border); color: var(--dim); font-size: 12px; font-weight: 500; padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: all .14s; }
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ── Empty / loading ──────────────────────────────────────── */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.skeleton { background: var(--hover); border-radius: var(--radius-sm); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:.9} }

/* ── Modal ────────────────────────────────────────────────── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }
.modal { width: 100%; max-width: 480px; padding: 26px; box-shadow: var(--shadow); }
.modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; }

/* ── Custom dropdown (replaces native <select> popup) ─────── */
.cs { position: relative; display: inline-block; }
.cs-native {
  /* keep the real select in the DOM for value + events, but invisible */
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0; padding: 0; margin: 0; border: 0;
}
.cs-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-width: 110px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 13px; padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  transition: border-color .14s, background .14s;
}
.cs-trigger:hover { border-color: var(--border-2); }
.cs-trigger[aria-expanded="true"] { border-color: var(--accent-line); }
.cs-disabled .cs-trigger, .cs-trigger:disabled { opacity: .45; cursor: not-allowed; }
.cs-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-chevron { flex-shrink: 0; color: var(--dim); transition: transform .18s ease; }
.cs-trigger[aria-expanded="true"] .cs-chevron { transform: rotate(180deg); }

/* Floating option panel (appended to <body>) */
.cs-panel {
  position: fixed; z-index: 500;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 6px; box-shadow: none;
  max-height: 280px; overflow-y: auto;
  animation: cs-in .12s ease;
}
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-option {
  padding: 8px 12px; font-size: 13px; color: var(--dim); cursor: pointer;
  border-radius: var(--radius-sm); white-space: nowrap; margin: 1px 0;
}
.cs-option:hover { background: var(--hover); color: var(--text); border-radius: var(--radius-sm); }
.cs-option.selected { color: var(--text); background: var(--hover); border-radius: var(--radius-sm); }

/* Menu-style dropdown (project selector, etc.). Squared off to the shared
   radius scale — a full pill next to 8px controls read as a different
   design language. */
.cs-menu .cs-trigger {
  min-width: 11rem;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--dim);
  background: var(--card);
}
.cs-menu .cs-trigger:hover { border-color: var(--border-2); color: var(--text); }
.cs-menu .cs-trigger[aria-expanded="true"] {
  border-color: var(--border-2);
  color: var(--text);
}
.cs-menu .cs-chevron-updown { opacity: 0.55; }
.cs-menu .cs-trigger[aria-expanded="true"] .cs-chevron-updown { opacity: 0.7; }
.cs-panel.cs-menu-panel {
  border-radius: var(--radius-lg);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.cs-panel.cs-menu-panel .cs-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 10px;
}
.cs-panel.cs-menu-panel .cs-option {
  border-radius: var(--radius-sm);
  border-left: none;
  padding: 8px 12px;
  color: var(--text);
  margin: 1px 0;
}
.cs-panel.cs-menu-panel .cs-option:hover {
  background: var(--hover);
  border-radius: var(--radius-sm);
}
.cs-panel.cs-menu-panel .cs-option.selected {
  background: var(--hover);
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.cs-panel.cs-menu-panel .cs-option-create {
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
}
.cs-panel.cs-menu-panel .cs-option-create:hover,
.cs-panel.cs-menu-panel .cs-option-create.selected {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-radius: var(--radius-sm);
}
/* No elevation — the hairline plus the lifted surface is the separation. */
.cs-panel.cs-menu-panel { box-shadow: none; }

#project-selector .cs-menu .cs-trigger { min-width: 12.5rem; }

.brand-mark svg path, .brand-mark svg rect { stroke: var(--accent); }

/* ── Reusable search field ────────────────────────────────── */
.glass-search {
  position: relative; display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px; border-radius: var(--radius); color: var(--dim);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden; transition: border-color .15s;
}
.glass-search:focus-within { }
.gs-icon { flex-shrink: 0; color: var(--muted); position: relative; z-index: 1; }
.glass-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 13px; position: relative; z-index: 1;
}
.glass-search input::placeholder { color: var(--muted); }

/* ── Liquid-glass segmented control with sliding indicator ── */
.seg {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
}
/*
 * ── How the indicator moves ────────────────────────────────
 *
 * One curve for everything that travels: a decisive start, then a long soft
 * settle, and *no* overshoot. It used to be `cubic-bezier(.34,1.56,.64,1)`, whose
 * 1.56 sends the pill past its target and back — that reads as bouncy, and bounce
 * is the difference between a control that feels expensive and one that feels
 * eager. This is the shape a sheet uses when you flick it: it commits immediately
 * and comes to rest instead of arriving.
 *
 * Width settles faster than the travel on purpose. The pills are different
 * widths, so the indicator has to resize as well as move — with both on the same
 * duration it stretches the whole way across and looks like rubber. Resizing
 * early and then gliding reads as one object moving, which is what it is.
 *
 * No glow, no sheen, no scale. The only thing that changes is where it is.
 */
:root {
  --seg-ease: cubic-bezier(.32, .72, 0, 1);
  --seg-travel: 460ms;
  --seg-resize: 320ms;
  /*
   * One curve, three distances. The durations differ because the distances and the
   * stakes do, not because each place got its own taste:
   *
   *   --nav-travel   the sidebar indicator, which crosses the whole rail
   *   --view-in      a new view arriving — long enough to be seen, short enough
   *                  that nobody waits for it
   *   --view-out     the old view leaving. Deliberately the shortest of all:
   *                  time spent leaving is felt as lag, time spent arriving is
   *                  felt as polish.
   */
  --nav-travel: 380ms;
  --view-in: 240ms;
  --view-out: 110ms;
}
.seg-btn {
  position: relative; z-index: 1; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--dim);
  padding: 7px 15px; border-radius: 999px; white-space: nowrap;
  /* Matched to the travel so the two labels cross-fade under the moving pill
     rather than snapping the moment the class changes. */
  transition: color var(--seg-travel) var(--seg-ease);
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { color: var(--on-accent); }
.seg-slider {
  position: absolute; top: 4px; left: 4px; z-index: 0;
  height: calc(100% - 8px); border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
  transition:
    transform var(--seg-travel) var(--seg-ease),
    width var(--seg-resize) var(--seg-ease);
  /* Only for the duration of a move — a permanent `will-change` keeps the layer
     promoted for a control that is idle almost all the time. `seg.js` adds
     `.is-moving` while it travels. */
}
.seg-slider.is-moving { will-change: transform, width; }
.seg-slider.no-anim { transition: none; }

/*
 * Somebody who asked the system for less motion gets the state, not the journey.
 * The control still works — the indicator is simply already there.
 */
@media (prefers-reduced-motion: reduce) {
  .seg-slider, .seg-btn { transition: none; }
}

.glass-search, .seg { background: var(--card); }

/* ── View switch (glass pill slider: User | Admin) ────────── */
.view-seg .seg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; }
.view-seg .seg-btn svg { opacity: .9; }
.view-seg.view-seg-floating { position: fixed; bottom: 18px; right: 70px; z-index: 400; box-shadow: var(--shadow); }

/* ── View transition (fade in on load, fade out on switch) ── */
@keyframes view-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.view-enter { animation: view-fade-in .34s ease both; }
body.view-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .26s ease, transform .26s ease; }
@media (prefers-reduced-motion: reduce) {
  body.view-enter { animation: none; }
  body.view-leaving { transition: none; }
}

/* ── Sidebar liquid-glass active indicator ────────────────── */
.sidebar-nav { position: relative; }
.nav-indicator {
  position: absolute; top: 0; left: 12px; right: 12px; z-index: 0;
  border-radius: 3px; pointer-events: none; opacity: 0;
  background: transparent;
  border: 1px solid var(--accent);
  box-shadow: none;
  /* Same curve as the segmented control's chip. This used to be its own spring
     (`cubic-bezier(.34,1.4,.5,1)`), so the two things in the console that slide
     slid differently — and the sidebar one overshot the row it was landing on.
     The rows are all one height, so `height` only moves on a layout change and
     can settle on the shorter of the two durations. */
  transition:
    transform var(--nav-travel) var(--seg-ease),
    height var(--seg-resize) var(--seg-ease),
    opacity var(--view-in) ease;
}
.nav-indicator.ready { opacity: 1; }
.nav-indicator.no-anim { transition: none; }
/* active item: white/primary text + green outline indicator */
.nav-item { position: relative; z-index: 1; background: transparent !important; }
.nav-item.active { background: transparent !important; border-left-color: transparent; color: var(--text) !important; }


/* ── Fleet live status ───────────────────────────────────────────── */
.fleet-live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 transparent;
  flex-shrink: 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.fleet-live-online {
  background: var(--green);
  animation: fleet-dot-pulse 2.2s infinite;
}
.fleet-live-stale {
  background: var(--yellow);
}
.fleet-live-offline {
  background: var(--red);
}
/* The ring colour comes from the live-data mint when the dark skin
   defines it, and falls back to the light theme's green otherwise. */
@keyframes fleet-dot-pulse {
  0%   { box-shadow: 0 0 0 0   var(--live-glow, rgba(106, 217, 148, 0.55)); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0   transparent; }
}

.fleet-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.fleet-live-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: fleet-dot-pulse 2.2s infinite;
}
.fleet-live-indicator-down {
  border-color: rgba(217, 106, 106, 0.35);
  color: var(--red);
}
.fleet-live-indicator-down .fleet-live-pulse {
  background: var(--red);
  animation: none;
}


/* ── Device Control Center ───────────────────────────────────────── */
.cc-subtabs {
  display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap;
  padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
}
.cc-subtab {
  padding: 6px 12px; border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--muted); border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.cc-subtab:hover { color: var(--text); }
.cc-subtab.active { background: var(--accent); color: var(--on-accent); }
.cc-body { min-height: 200px; }
.cc-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cc-grow { flex: 1; min-width: 0; }
.cc-search {
  flex: 1; min-width: 0; height: 34px; padding: 0 11px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 9px; font-size: 12px; outline: none;
}
.cc-search:focus { }
.cc-btn {
  height: 34px; padding: 0 13px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s ease, border-color .15s ease;
}
.cc-btn:hover { background: var(--hover-fade); }
.cc-btn:disabled { opacity: .45; cursor: not-allowed; }
.cc-btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.cc-btn-primary:hover { filter: brightness(1.05); background: var(--accent); }
.cc-mini {
  height: 26px; padding: 0 9px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer;
  margin-left: 4px;
}
.cc-mini:hover:not(:disabled) { background: var(--hover-fade); }
.cc-mini:disabled { opacity: .4; cursor: not-allowed; }
.cc-kill {
  height: 26px; padding: 0 10px; border: 1px solid rgba(217,106,106,.35); background: transparent;
  color: var(--red); border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.cc-kill:hover:not(:disabled) { background: rgba(217,106,106,.12); }
.cc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cc-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.cc-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cc-mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }
.cc-dim { color: var(--muted); }
.cc-sub { font-size: 10.5px; margin-top: 1px; }
.cc-right { text-align: right; }
.cc-empty { text-align: center; color: var(--muted); padding: 18px 0; }
.cc-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cc-badge-on { background: rgba(106,217,148,.14); color: var(--green); }
.cc-badge-off { background: var(--hover-fade); color: var(--muted); }
.cc-badge-sec { background: rgba(217,106,106,.14); color: var(--red); }
.cc-badge-drv { background: rgba(120,150,220,.16); color: #4f6bd0; }
.cc-badge-opt { background: rgba(200,160,90,.16); color: #b07d2e; }
.cc-badge-prev { background: rgba(160,120,210,.16); color: #7b52c9; }
.cc-badge-upd { background: var(--hover-fade); color: var(--muted); }

/* ── Windows Updates list ─────────────────────────────────── */
.cc-upd-list { display: flex; flex-direction: column; gap: 6px; }
.cc-upd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); transition: border-color .15s ease, background .15s ease;
}
.cc-upd-item:hover { }
.cc-upd-main { flex: 1 1 auto; min-width: 0; }
.cc-upd-title {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-upd-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: nowrap; }
.cc-upd-kb, .cc-upd-size { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.cc-upd-sev { font-size: 10.5px; color: var(--red); font-weight: 600; white-space: nowrap; }
.cc-upd-size { margin-left: auto; }
.cc-upd-act { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.cc-upd-btn { margin-left: 0; }
.cc-upd-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cc-upd-installing { color: var(--muted); }
.cc-upd-elapsed { font-variant-numeric: tabular-nums; opacity: .8; }
.cc-upd-ok { color: var(--green); animation: cc-upd-pop .3s ease both; }
.cc-upd-fail { color: var(--red); }
.cc-upd-item-done { border-color: rgba(106,217,148,.35); background: rgba(106,217,148,.06); }
.cc-spin { width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: ab-spin .8s linear infinite; display: inline-block; }
@keyframes cc-upd-pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.cc-upd-err { font-size: 10.5px; color: var(--red); margin-top: 5px; line-height: 1.35; }
.cc-warn {
  padding: 9px 12px; margin-bottom: 10px; font-size: 11.5px; line-height: 1.45;
  border: 1px solid rgba(200,160,90,.4); background: rgba(200,160,90,.1);
  color: #8a6216; border-radius: 9px;
}
.cc-reboot-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px; border-radius: 10px;
  border: 1px solid rgba(90,150,220,.35); background: rgba(90,150,220,.1);
  font-size: 11.5px; line-height: 1.4; color: var(--text);
}
.cc-reboot-ic { flex: 0 0 auto; font-size: 16px; color: #4f6bd0; }
.cc-reboot-txt { flex: 1 1 auto; }
.cc-reboot-txt strong { color: #4f6bd0; }
.cc-loading { display: flex; justify-content: center; padding: 28px 0; }
.cc-error { padding: 10px 12px; border: 1px solid rgba(217,106,106,.3); background: rgba(217,106,106,.08); color: var(--red); border-radius: 9px; font-size: 12px; }
.cc-ok { padding: 10px 12px; border: 1px solid rgba(106,217,148,.3); background: rgba(106,217,148,.08); color: var(--green); border-radius: 9px; font-size: 12px; font-weight: 600; }
.cc-hint { color: var(--muted); font-size: 11.5px; padding: 6px 0; }
.cc-schedule-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.cc-schedule-row input { height: 32px; padding: 0 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; font-size: 12px; }
.cc-fs-table td { cursor: default; }
.cc-fs-dir { cursor: pointer; }
.cc-fs-dir:hover { background: var(--hover-fade); }
.cc-fs-name { font-size: 12px; }
.cc-shot-out { margin-top: 8px; }
.cc-shot-img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; }
.cc-shot-meta { font-size: 11px; margin-top: 6px; text-align: center; }

/* The Fleet Copilot chat panel used to be styled here — 18 classes, none of
   them referenced by any script any more. The POST /api/fleet/copilot endpoint
   still exists server-side; the interface that called it does not. */

/* Schedule field in run-script modal */
.fleet-command-schedule input { height: 38px; padding: 0 11px; font-size: 13px; }


/* ── Custom dashboards ───────────────────────────────────────────── */
.db-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.db-palette { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.db-add { height: 30px; padding: 0 11px; border: 1px dashed var(--border); background: transparent; color: var(--muted); border-radius: 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.db-add:hover { color: var(--text); border-style: solid; }
.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.db-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px; }
.db-value { font-size: 34px; font-weight: 800; line-height: 1; }
.db-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 8px; font-weight: 700; }
.db-remove { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.db-card:hover .db-remove { opacity: 1; }
.db-remove:hover { color: var(--red); }


/* Control Center offline state */
.cc-offline {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(217,106,106,.28); background: rgba(217,106,106,.07);
  margin-top: 4px;
}
.cc-offline-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(217,106,106,.85);
  margin-top: 3px; flex-shrink: 0;
}
.cc-offline-title { font-size: 13px; font-weight: 700; color: var(--red); }
.cc-offline-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }


/* ── Agent build button + modal ──────────────────────────────────── */
.agent-build-btn {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--card);
  color: var(--dim); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.agent-build-btn:hover { background: var(--hover-fade); color: var(--text); }
.agent-build-btn svg { color: var(--accent); flex-shrink: 0; }

#agent-build-host { position: fixed; inset: 0; z-index: 300; display: none; }
#agent-build-host.open { display: block; }
.ab-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ab-modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.45); padding: 22px;
}
.ab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ab-title { font-size: 16px; font-weight: 800; }
.ab-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ab-close { border: 0; background: transparent; color: var(--muted); font-size: 23px; line-height: 1; cursor: pointer; }
.ab-close:hover { color: var(--text); }
.ab-info { border: 1px solid var(--border); border-radius: 12px; padding: 6px 14px; margin-bottom: 16px; }
.ab-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.ab-row:last-child { border-bottom: 0; }
.ab-row span { color: var(--muted); }
.ab-actions { display: flex; gap: 10px; }
.ab-btn { flex: 1; height: 40px; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 11px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ab-btn:hover:not(:disabled) { background: var(--hover-fade); }
.ab-btn:disabled { opacity: .45; cursor: not-allowed; }
.ab-btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ab-btn-primary:hover:not(:disabled) { filter: brightness(1.05); background: var(--accent); }
.ab-status { min-height: 20px; margin-top: 14px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.ab-ok { color: var(--green); font-weight: 600; }
.ab-err { color: var(--red); }
.ab-note { margin-top: 14px; font-size: 11px; color: var(--muted); line-height: 1.55; }
.ab-note code { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 10.5px; }
.ab-spin { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: ab-spin .8s linear infinite; display: inline-block; }
@keyframes ab-spin { to { transform: rotate(360deg); } }


/* ── Control Center refinements ──────────────────────────────────── */
.cc-ic { color: var(--accent); flex-shrink: 0; }
.cc-fs-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cc-fs-table td { padding: 8px 10px; }
.cc-fs-size { width: 90px; white-space: nowrap; }
.cc-fs-date { width: 90px; white-space: nowrap; }
.cc-fs-act { width: 90px; }
.cc-fs-dir .cc-fs-name { font-weight: 600; }
.cc-body { animation: cc-fade .18s ease both; }
@keyframes cc-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }


/* Process group instance count */
.cc-count {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  background: var(--hover-fade);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.cc-proc-group.expandable { cursor: pointer; }
.cc-proc-group.expandable:hover { background: var(--hover-fade); }
.cc-chev {
  display: inline-block; width: 0.8rem; color: var(--muted);
  transition: transform .15s ease; font-size: 9px;
}
.cc-chev-sp { display: inline-block; width: 0.8rem; }
.cc-proc-group.open .cc-chev { transform: rotate(90deg); }
/* Compact sub-rows for individual processes inside an expanded group */
.cc-proc-table .cc-sub td {
  padding: 3px 8px;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 0;
}
.cc-proc-table .cc-sub td:first-child { padding-left: 1.8rem; }
.cc-kill-pid {
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 11px; line-height: 1; padding: 2px 6px; border-radius: 5px;
}
.cc-kill-pid:hover:not(:disabled) { color: var(--red); background: rgba(217,106,106,.12); }


/* Anchored confirm / error popover for process kills */
.cc-pop {
  position: fixed;
  z-index: 400;
  min-width: 8.5rem;
  max-width: 15rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 9px 10px;
  animation: cc-pop-in 120ms ease both;
}
@keyframes cc-pop-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.cc-pop-msg { font-size: 12px; color: var(--text); line-height: 1.4; }
.cc-pop-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 9px; }
.cc-pop-btn {
  height: 26px; padding: 0 10px; border-radius: 7px; font-size: 11.5px; font-weight: 650; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.cc-pop-cancel:hover { background: var(--hover-fade); }
.cc-pop-kill { background: var(--red, #d96a6a); border-color: transparent; color: #fff; }
.cc-pop-kill:hover { filter: brightness(1.05); }
.cc-pop-err { border-color: rgba(217,106,106,.4); }
.cc-pop-err .cc-pop-msg { color: var(--red, #d96a6a); }


/* Services: slim rows + Start/Stop/Restart as one segmented pill */
.cc-svc-table td { padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.cc-svc-row .cc-sub { font-size: 10.5px; }
.cc-seg-actions {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  white-space: nowrap;
}
.cc-seg-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  cursor: pointer;
  border-left: 1px solid var(--border);
  transition: background .12s ease, color .12s ease;
}
.cc-seg-btn:first-child { border-left: 0; }
.cc-seg-btn:hover:not(:disabled) { background: var(--hover-fade); color: var(--accent); }
.cc-seg-btn:disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }
.cc-seg-btn.active { background: var(--accent); color: var(--on-accent); }
.cc-seg-btn.active:hover { background: var(--accent); color: var(--on-accent); }

/* ── Update history rows ──────────────────────────────────── */
.cc-hist-item { gap: 10px; }
.cc-hist-icon {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.cc-hist-ok { color: var(--green); }
.cc-hist-fail { color: var(--red); }
.cc-hist-warn { color: var(--muted); }
.cc-hist-icon.cc-hist-ok { background: rgba(106,217,148,.14); }
.cc-hist-icon.cc-hist-fail { background: rgba(217,106,106,.14); }
.cc-hist-icon.cc-hist-warn { background: var(--hover-fade); }
.cc-hist-res { font-size: 10.5px; font-weight: 600; white-space: nowrap; }


/* ── Events: clean activity list ──────────────────────────── */
.ev-head {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 10px;
}
.ev-list { display: flex; flex-direction: column; }
.ev-row {
  display: flex; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--border);
}
.ev-row:last-child { border-bottom: 0; }
.ev-dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px;
}
.ev-dot-ok { background: var(--green); }
.ev-dot-fail { background: var(--red); }
.ev-dot-info { background: #6b8cd0; }
.ev-body { flex: 1 1 auto; min-width: 0; }
.ev-line1 { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.ev-title { font-size: 13px; font-weight: 600; color: var(--text); }
.ev-status { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ev-status.ev-ok { color: var(--green); }
.ev-status.ev-fail { color: var(--red); }
.ev-status.ev-info { color: #6b8cd0; }
.ev-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ev-who { color: var(--dim, var(--text)); font-weight: 600; }
.ev-details { margin-top: 7px; }
.ev-details summary {
  font-size: 10.5px; color: var(--muted); cursor: pointer; user-select: none;
  list-style: none; display: inline-flex; align-items: center; gap: 4px;
}
.ev-details summary::-webkit-details-marker { display: none; }
.ev-details summary::before { content: '▸'; font-size: 9px; transition: transform .12s ease; }
.ev-details[open] summary::before { transform: rotate(90deg); }
.ev-details summary:hover { color: var(--text); }
.ev-pre {
  margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); font-size: 10.5px; line-height: 1.45; white-space: pre-wrap;
  word-break: break-word; color: var(--dim, var(--text)); max-height: 180px; overflow: auto;
}
.ev-pre-tag {
  display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-right: 8px;
}
.ev-pre-err { color: var(--red); border-color: rgba(217,106,106,.3); background: rgba(217,106,106,.06); }


/* Settings → Your team (organisation membership) */
.org-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.org-note-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.org-note strong { color: var(--text); font-weight: 600; }

.org-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.org-member + .org-member { margin-top: 6px; }
.org-member-found { border-color: var(--accent-line, var(--accent)); }

.org-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.org-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  vertical-align: middle;
}
.org-tag-role {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
/* External access is what an admin scans this list for, so it is the one tag
   that carries a warm colour instead of the neutral grey. */
.org-tag-ext {
  color: var(--amber, #e0b155);
  background: color-mix(in srgb, var(--amber, #e0b155) 16%, transparent);
}
.org-tag-pending {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.org-tag-declined,
.org-tag-revoked,
.org-tag-expired {
  color: var(--red, #e5484d);
  background: color-mix(in srgb, var(--red, #e5484d) 14%, transparent);
}

/* A dashed ring says "not a member yet" without needing a second label. */
.org-avatar-pending {
  border: 1px dashed var(--border-2);
  background: transparent;
  color: var(--muted);
}

.org-role-select {
  flex-shrink: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
}
.org-role-select:disabled { opacity: .55; cursor: default; }

.org-remove { flex-shrink: 0; }

/* The development-only wipe button is gone, together with its panel and the
   route behind it. */

/* ── Onboarding builder modal ──────────────────────────────────────────────
   Uses the console accent green for selected OS and the primary action, so
   the wizard matches the rest of the admin chrome. Surfaces and borders stay
   the shared neutrals.                                                       */
.ob-modal {
  width: min(560px, calc(100vw - 32px));
  /* One knob for the whole dialog: change this and every accent follows. */
  --ob: var(--accent);
  --ob-soft: var(--accent-soft);
  --ob-line: var(--accent-line);
}
/* The computer configuration needs a wider canvas than the device picker. */
.ob-modal:has(.ob-panel[data-panel="computer"]:not([hidden])),
.ob-modal:has(.ob-panel[data-panel="deliver"]:not([hidden])) {
  width: min(720px, calc(100vw - 32px));
}
.ob-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: min(58vh, 460px);
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.ob-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
}
.ob-num {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--ob);
}
.ob-optional {
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}

/* Clients */
.ob-clients { display: flex; flex-direction: column; gap: 5px; }
.ob-client-row { display: flex; align-items: stretch; gap: 4px; }
/* Delete stays quiet until you are on the row: it is a destructive action that
   should not compete with picking a client, which is the common case. */
.ob-client-del {
  flex-shrink: 0;
  width: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, color .12s, border-color .12s;
}
.ob-client-row:hover .ob-client-del { opacity: 1; }
.ob-client-del:hover {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}
.ob-client-del:focus-visible { opacity: 1; outline: none; border-color: var(--red); }
.ob-client-del:disabled { opacity: .4; cursor: default; }
.ob-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.ob-client:hover { border-color: var(--ob-line); }
.ob-client.is-on {
  border-color: var(--ob);
  background: var(--ob-soft);
  box-shadow: inset 2px 0 0 var(--ob);
}
.ob-client-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-client-count { flex-shrink: 0; font-size: 11px; color: var(--muted); }

.ob-add { display: flex; gap: 6px; margin-top: 8px; }
.ob-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.ob-input:focus {
  border-color: var(--ob);
  box-shadow: none;
}
.ob-input-wide { width: 100%; margin-top: 8px; }

.ob-empty { font-size: 12px; color: var(--muted); padding: 8px 2px; }

/* Optional device name */
.ob-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.ob-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.ob-check-hint {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* Platforms */
.ob-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ob-platform {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 8px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color .12s, background .12s;
}
.ob-platform:hover:not(.is-off) { border-color: var(--ob-line); }
.ob-platform.is-on {
  border-color: var(--ob);
  background: var(--ob-soft);
}
/* Unavailable platforms keep their logo readable but drain the surface, so the
   card looks switched off rather than broken. */
.ob-platform.is-off { cursor: not-allowed; background: transparent; }
.ob-platform.is-off .ob-platform-icon { filter: grayscale(1); opacity: .55; }
.ob-platform.is-off .ob-platform-label { color: var(--muted); }
.ob-platform-icon {
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
}
.ob-platform-label { font-size: 12.5px; font-weight: 650; }
.ob-platform-hint { font-size: 10px; line-height: 1.35; color: var(--muted); }
.ob-platform-soon {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

/* How-to */
.ob-howto {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.ob-howto code, .ob-howto-note code {
  padding: 1px 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  font-size: 11px;
}
.ob-howto-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 520px) {
  .ob-platforms { grid-template-columns: 1fr; }
  .ob-platform { flex-direction: row; justify-content: flex-start; text-align: left; }
}

/* ── Multi-step onboarding (Add item → Add device → Add a computer) ──── */
.ob-panel[hidden] { display: none; }

.ob-panel .ab-head { align-items: center; gap: 10px; margin-bottom: 14px; }
.ob-panel .ab-head > .ab-title,
.ob-panel .ab-head > div { flex: 1; min-width: 0; }
.ob-back {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 8px;
  /* Match the top-nav "+" button surface, not the darker modal body. */
  background: var(--card); color: var(--dim); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.ob-back:hover { background: var(--hover-fade); color: var(--text); border-color: var(--border-2); }
.ob-back lucide-icon { font-size: 17px; --icon-stroke: 2.06; }

/* Add-item popover, anchored under the top-nav "+" button. */
.ob-pop {
  position: fixed;
  z-index: 400;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.ob-pop[hidden] { display: none; }
.ob-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.ob-pop-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ob-pop-close {
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  padding: 2px 5px; border-radius: 6px;
}
.ob-pop-close:hover { color: var(--text); background: var(--hover-fade); }
.ob-pop-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 8px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text);
  text-align: left; cursor: pointer;
  transition: background .12s;
}
.ob-pop-item:hover { background: var(--hover-fade); }
.ob-pop-item lucide-icon { font-size: 18px; color: var(--dim); flex: none; }
.ob-pop-label { flex: 1; font-size: 13px; font-weight: 600; }
.ob-pop-chev { font-size: 15px; color: var(--muted); }

/* Step 1 — Add item */
.ob-menu { display: flex; flex-direction: column; gap: 4px; }
.ob-menu-item, .ob-type {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 12px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--text);
  text-align: left; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.ob-menu-item:hover, .ob-type:not(.is-off):hover { background: var(--ob-soft); border-color: var(--ob-line); }
.ob-menu-item lucide-icon, .ob-type-icon { font-size: 22px; color: var(--dim); flex: none; }
.ob-menu-label { flex: 1; font-size: 13.5px; font-weight: 600; }
.ob-menu-chev, .ob-type-chev { font-size: 16px; color: var(--muted); flex: none; }

/* Step 2 — device types */
.ob-types { display: flex; flex-direction: column; gap: 2px; }
.ob-type-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ob-type-title { font-size: 13.5px; font-weight: 600; }
.ob-type-sub { font-size: 11.5px; color: var(--muted); }
.ob-type.is-off { cursor: not-allowed; }
.ob-type:disabled { opacity: .55; cursor: wait; }
.ob-type.is-off .ob-type-icon, .ob-type.is-off .ob-type-title { color: var(--muted); }
.ob-type-soon {
  flex: none; padding: 1px 6px; border-radius: 999px;
  font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in srgb, var(--muted) 16%, transparent);
}

/* Step 3 — computer configuration */
.ob-panel[data-panel="computer"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: min(520px, calc(100vh - 96px));
}
.ob-computer {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: 100%;
  min-height: 0;
  flex: 1;
}
.ob-tabs { display: flex; flex-direction: column; gap: 6px; }
.ob-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text);
  cursor: pointer; text-align: left;
  transition: border-color .12s, background .12s;
}
.ob-tab:hover:not(.is-off) { border-color: var(--ob-line); }
.ob-tab.is-on { border-color: var(--ob); background: var(--ob-soft); }
.ob-tab.is-off { cursor: not-allowed; }
.ob-tab.is-off .ob-tab-icon { filter: grayscale(1); opacity: .55; }
.ob-tab.is-off .ob-tab-label { color: var(--muted); }
.ob-tab-icon { line-height: 0; display: flex; flex: none; }
.ob-tab-icon svg { width: 20px; height: 20px; }
.ob-tab-label { font-size: 12.5px; font-weight: 600; flex: 1; }
.ob-tab-soon {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ob-config { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ob-config-title { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.ob-field { display: block; width: 100%; min-width: 0; margin: 0; }
.ob-field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ob-field > .cs { display: block; width: 100%; min-width: 0; }
.ob-field > .cs > .cs-trigger { width: 100%; min-width: 0; height: 40px; }
.ob-req { color: var(--red); font-weight: 700; }
.ob-select {
  width: 100%; height: 40px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text);
  font-size: 13px; cursor: pointer; outline: none;
}
.ob-select:focus { border-color: var(--ob); }
.ob-select:disabled { color: var(--muted); background: color-mix(in srgb, var(--muted) 7%, var(--bg)); cursor: not-allowed; }
.ob-neworg { display: flex; gap: 6px; margin: 0; }
.ob-panel[data-panel="computer"] .ob-back { display: none; }
.ob-panel[data-panel="computer"] > .ob-sign { display: none; }
.ob-learn {
  margin-left: 4px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ob-learn:hover { text-decoration: underline; }
.ob-learn lucide-icon {
  font-size: 12px;
  vertical-align: -2px;
  margin-left: 2px;
}
/* Footer */
.ob-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ob-foot .ab-status { flex: 1; min-width: 0; margin: 0; }
.ob-foot-btns { display: flex; gap: 8px; flex: none; margin-left: auto; }
.ob-foot-btns .ab-btn { flex: none; height: 38px; padding: 0 16px; }

@media (max-width: 520px) {
  .ob-computer { grid-template-columns: 1fr; }
  .ob-tabs { flex-direction: row; flex-wrap: wrap; }
}

.ob-modal .ab-btn-primary {
  background: var(--ob);
  border-color: transparent;
  color: #fff;
}
.ob-modal .ab-btn-primary:hover:not(:disabled) {
  background: var(--ob);
  filter: brightness(1.07);
}
.ob-modal .ab-spin { border-top-color: var(--ob); }

.ob-panel[data-panel="deliver"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: min(420px, calc(100vh - 96px));
}
.ob-deliver { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ob-link-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.ob-link-hint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.ob-link-row { display: flex; align-items: center; gap: 8px; }
.ob-link-url {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
  color: var(--text);
}
.ob-link-copy {
  flex: none;
  height: 32px;
  padding: 0 10px;
  min-width: 72px;
}
.ob-link-copy:active:not(:disabled) {
  transform: translateY(1px);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.ob-link-copy.is-copied,
.ob-link-copy.is-copied:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Signing status under the install steps */
.ob-sign {
  margin: 9px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.55;
  border: 1px solid var(--border);
}
.ob-sign code {
  padding: 1px 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  font-size: 10px;
}
.ob-sign.is-signed {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 32%, var(--border));
  background: color-mix(in srgb, var(--green) 7%, transparent);
}
.ob-sign.is-unsigned {
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 32%, var(--border));
  background: color-mix(in srgb, var(--yellow) 7%, transparent);
}
