/*
 * Lab-Vidi Admin — UI compacta tipo mockup (densa, cabecera 1080p).
 * Acento ámbar (laboratorio); producción usa verde.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

html { font-size: 13px; }

.o11-theme {
  --o11-bg: #0a0d12;
  --o11-panel: #12161e;
  --o11-panel-2: #161b24;
  --o11-border: #253041;
  --o11-green: #f59e0b;
  --o11-green-dim: rgba(245, 158, 11, 0.4);
  --o11-green-soft: rgba(245, 158, 11, 0.12);
  --o11-text: #dbe3ee;
  --o11-muted: #8592a3;
  --o11-radius: 8px;
  --o11-radius-sm: 6px;
  --o11-sidebar: 168px;
  --pico-font-size: 13px;
  --pico-line-height: 1.35;
  --pico-spacing: 0.45rem;
  --pico-form-element-spacing-vertical: 0.28rem;
  --pico-form-element-spacing-horizontal: 0.5rem;
  --pico-background-color: var(--o11-bg);
  --pico-card-background-color: var(--o11-panel);
  --pico-color: var(--o11-text);
  --pico-primary: var(--o11-green);
  --pico-primary-background: var(--o11-green);
  --pico-primary-border: var(--o11-green);
  --pico-primary-inverse: #1c1405;
  --pico-border-radius: var(--o11-radius-sm);
  --pico-form-element-background-color: #0d1118;
  --pico-form-element-border-color: var(--o11-border);
  --pico-form-element-color: var(--o11-text);
  --pico-muted-color: var(--o11-muted);
}

body.o11-theme {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--o11-bg);
  color: var(--o11-text);
  letter-spacing: -0.011em;
  font-size: 12.5px;
  line-height: 1.35;
}

body.o11-theme button,
body.o11-theme input,
body.o11-theme select,
body.o11-theme textarea {
  font-family: inherit;
  font-size: 12px !important;
}

.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 6px; top: 6px; background: var(--o11-green); color: #1c1405;
  padding: 4px 8px; z-index: 999; border-radius: 4px;
}

/* —— Layout —— */
.o11-layout {
  display: grid;
  grid-template-columns: var(--o11-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
.o11-layout--plain { grid-template-columns: 1fr; }

.o11-aside {
  border-right: 1px solid var(--o11-border);
  background: #0c0f14;
  padding: 0.7rem 0.55rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.o11-brand { padding: 0.15rem 0.4rem 0.75rem; }
.o11-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--o11-green);
}
.o11-brand-line .brand-burger {
  display: inline-flex; flex-direction: column; gap: 2.5px; width: 12px;
}
.o11-brand-line .brand-burger i {
  display: block; height: 1.5px; background: var(--o11-green); border-radius: 1px; opacity: 0.9;
}
.o11-green { color: var(--o11-green); }
.o11-brand-sub { display: none; }

.o11-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important; /* anula Pico space-between */
  align-content: flex-start;
  align-items: stretch;
  gap: 0.35rem;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}
.o11-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: #a8b2c0;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  margin: 0 !important;
  flex: 0 0 auto;
}
.o11-nav a .nav-ico {
  width: 14px; height: 14px; flex: 0 0 14px;
  opacity: 0.7; display: inline-flex; align-items: center; justify-content: center;
}
.o11-nav a .nav-ico svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.o11-nav a .nav-hint,
.o11-nav-group { display: none; }
.o11-nav a:hover { background: rgba(255,255,255,0.035); color: #fff; }
.o11-nav a.active { background: rgba(255,255,255,0.055); color: #fff; }
.o11-nav a.active::before {
  content: "";
  position: absolute;
  left: -0.55rem; top: 6px; bottom: 6px;
  width: 2px; border-radius: 0 2px 2px 0;
  background: var(--o11-green);
  box-shadow: 0 0 8px var(--o11-green-dim);
}

.o11-aside-foot { margin-top: auto; padding-top: 0.6rem; }
.o11-btn-out {
  width: 100%;
  font-size: 0.72rem !important;
  padding: 0.35rem 0.5rem !important;
  min-height: 1.7rem !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center; justify-content: center; gap: 0.35rem;
  background: transparent !important;
  border: 1px solid var(--o11-border) !important;
  color: #a8b2c0 !important;
}
.o11-btn-out svg { width: 12px; height: 12px; }
.o11-btn-out:hover { color: #fff !important; border-color: #3a465a !important; }

.o11-main {
  background: var(--o11-bg);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.o11-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--o11-border);
  padding: 0.45rem 0.9rem;
  background: transparent;
  min-height: 34px;
}
.o11-breadcrumb {
  font-size: 0.72rem;
  color: var(--o11-muted);
  font-weight: 500;
}
.o11-breadcrumb strong { color: var(--o11-text); font-weight: 600; }
.o11-breadcrumb .sep { opacity: 0.4; margin: 0 0.28rem; }
.o11-topbar-title,
.o11-topbar-hint { display: none; }

.o11-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--o11-green);
  font-variant-numeric: tabular-nums;
}
.o11-live-clock .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--o11-green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: sfPulse 1.6s ease infinite;
}
@keyframes sfPulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.o11-container {
  padding: 0.55rem 0.9rem 0.4rem;
  max-width: none;
  width: 100%;
  flex: 1;
}
.o11-container--narrow { max-width: 400px; margin: 0 auto; }

.o11-footer {
  margin-top: auto;
  padding: 0.35rem 0.9rem 0.55rem;
  text-align: center;
  color: var(--o11-muted);
  font-size: 0.62rem;
  opacity: 0.65;
}

.flash {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  margin: 0 0 0.55rem;
  border: 1px solid;
  font-size: 0.75rem;
}
.flash-info { background: rgba(56,189,248,0.08); border-color: #0369a1; }
.flash-ok { background: var(--o11-green-soft); border-color: var(--o11-green-dim); }
.flash-warn { background: rgba(251,191,36,0.08); border-color: #ca8a04; }
.flash-error { background: rgba(248,113,113,0.08); border-color: #dc2626; }

.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-green  { color: var(--o11-green); border-color: var(--o11-green-dim); }
.badge-orange { color: #fbbf24; border-color: rgba(251,191,36,.5); }
.badge-red    { color: #f87171; border-color: rgba(248,113,113,.55); }
.badge-gray   { color: #94a3b8; border-color: #475569; }
.badge-cyan   { color: #22d3ee; border-color: rgba(34,211,238,.55); }
.muted { color: var(--o11-muted); opacity: 1; }

/* —— Shared page chrome (rest of panel) —— */
.sf-page { max-width: 1100px; }
.sf-page--narrow { max-width: 560px; }
.sf-hint {
  font-size: 11px; opacity: 0.75; margin: 0 0 10px; line-height: 1.4;
}
.sf-card {
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.sf-card h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--o11-green);
}
.sf-form label {
  display: block;
  font-size: 11px;
  color: var(--o11-muted);
  margin: 0 0 8px;
}
.sf-form input[type="text"],
.sf-form input[type="password"],
.sf-form input[type="number"],
.sf-form input[type="url"],
.sf-form select {
  margin: 4px 0 0 !important;
  min-height: 1.65rem !important;
  height: 1.65rem !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  border-radius: 5px !important;
  background: #0d1118 !important;
  width: 100%;
}
.sf-form .sf-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.sf-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
  justify-content: space-between; margin-bottom: 10px;
}
.sf-toolbar .tablebar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.log-console {
  background: #0b0e14;
  border: 1px solid var(--o11-border);
  border-radius: 8px;
  padding: 8px 10px;
  max-height: 70vh;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}
.log-line { padding: 1px 0; white-space: pre-wrap; word-break: break-word; color: #a8b2c0; }
.log-line.lvl-error { color: #f87171; }
.log-line.lvl-warning { color: #fbbf24; }
.log-line.lvl-info { color: #93c5fd; }
.log-line.lvl-debug { color: #64748b; }
.ev-poster {
  max-width: 100px; max-height: 56px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--o11-border); margin-top: 4px;
}
.login-wrap {
  display: flex; justify-content: center; align-items: center;
  min-height: 80vh; width: 100%;
}
.login-card {
  width: 100%; max-width: 400px; padding: 1.75rem 1.5rem;
  border: 1px solid var(--o11-border); background: var(--o11-panel);
  border-radius: 10px;
}
.login-card .brand {
  font-weight: 800; letter-spacing: 0.06em; color: var(--o11-green);
  margin-bottom: 0.85rem; text-align: center; font-size: 0.95rem;
}


.sheet-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b5c0cf;
  margin: 0 0 0.4rem;
}
.sheet-title .sheet-help {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--o11-muted);
  line-height: 1.3;
  max-width: 640px;
}

.sf-panel {
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: var(--o11-radius);
  padding: 0.5rem 0.65rem 0.45rem;
  margin-bottom: 0.55rem;
}
.sf-panel > .sheet-title:first-child { margin-top: 0; }

/* —— Resource cards (compact) —— */
.sysstat-row,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.sysstat-cell,
.kpi {
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: var(--o11-radius);
  padding: 0.4rem 0.5rem 0.28rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.sysstat-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.05rem;
}
.sysstat-ico {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px;
}
.sysstat-ico svg { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sysstat-ico--cpu { background: rgba(45,212,191,0.15); color: #2dd4bf; }
.sysstat-ico--ram { background: rgba(168,85,247,0.15); color: #c084fc; }
.sysstat-ico--swap { background: rgba(96,165,250,0.15); color: #60a5fa; }
.sysstat-ico--disk { background: rgba(251,191,36,0.15); color: #fbbf24; }
.sysstat-ico--backend { background: rgba(34,211,238,0.15); color: #22d3ee; }
.sysstat-ico--worker { background: rgba(245,158,11,0.15); color: #f59e0b; }

.sysstat-k,
.kpi .label {
  font-size: 0.58rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.sysstat-v,
.kpi .value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.sysstat-v.ok { color: #f59e0b; }
.sysstat-v.warn { color: #fbbf24; }
.sysstat-v.crit { color: #f87171; }
.sysstat-d,
.kpi .sub {
  font-size: 0.58rem;
  color: var(--o11-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.05rem;
}
.sysstat-spark {
  margin-top: 0.2rem;
  height: 18px;
  width: 100%;
  display: block;
}
.sysstat-spark polyline {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* —— Provider table —— */
table.compact,
table.excel-grid,
table.provider-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.72rem;
  margin: 0;
}
table.excel-grid thead th,
table.provider-grid thead th,
table thead th {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--o11-muted);
  font-weight: 600;
  opacity: 1;
  border-bottom: 1px solid var(--o11-border);
  background: transparent;
  padding: 0.28rem 0.35rem;
  text-align: left;
  white-space: nowrap;
}
table.excel-grid td,
table.provider-grid td,
table.compact td,
table.compact th {
  padding: 0.28rem 0.35rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(37, 48, 65, 0.9);
  line-height: 1.25;
}
table tbody tr:hover { background: rgba(255,255,255,0.02); }
table.excel-grid tbody tr:last-child td,
table.provider-grid tbody tr:last-child td { border-bottom: none; }

#prov-unified .center { text-align: center; }
#prov-unified .drag-handle-prov {
  cursor: grab;
  opacity: 0.4;
  user-select: none;
  font-size: 0.85rem;
  letter-spacing: -1px;
  line-height: 1;
}
#prov-unified tr.prov-off { opacity: 0.42; }
#prov-unified .prov-order-rank {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--o11-muted);
  font-size: 0.7rem;
}
#prov-unified a { color: inherit; text-decoration: none; }
#prov-unified a:hover strong { color: var(--o11-green); }
#prov-unified strong { font-size: 0.74rem; font-weight: 650; }
#prov-unified .ch-sub {
  font-size: 0.55rem;
  color: var(--o11-muted);
  display: block;
  margin-top: 1px;
}

.status-dot,
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block; margin-right: 0.3rem; vertical-align: middle;
}
.dot-ok, .status-dot.dot-ok { background: var(--o11-green); box-shadow: 0 0 6px var(--o11-green-dim); }
.dot-degraded, .status-dot.dot-degraded { background: #fbbf24; }
.dot-down, .status-dot.dot-down { background: #f87171; }
.dot-unknown, .status-dot.dot-unknown { background: #94a3b8; }

/* Switch — compact, left column */
#prov-unified input[type="checkbox"],
.sf-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #2a3344;
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
  margin: 0;
  vertical-align: middle;
  flex-shrink: 0;
}
#prov-unified input[type="checkbox"]::after,
.sf-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #c8d0dc;
  transition: transform 0.15s ease, background 0.15s ease;
}
#prov-unified input[type="checkbox"]:checked,
.sf-switch:checked { background: var(--o11-green); }
#prov-unified input[type="checkbox"]:checked::after,
.sf-switch:checked::after {
  transform: translateX(12px);
  background: #fff;
}
#prov-unified input[type="checkbox"]:disabled,
.sf-switch:disabled { opacity: 0.45; cursor: wait; }
#prov-unified input[type="checkbox"]:indeterminate,
.sf-switch:indeterminate { background: #fbbf24; }
#prov-unified input[type="checkbox"]:indeterminate::after,
.sf-switch:indeterminate::after {
  transform: translateX(6px);
  background: #fff;
}

.prov-order-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.15rem;
  font-size: 0.68rem;
}
.prov-order-controls .sep { flex: 1; min-width: 8px; }

.sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.3rem 0 0;
}
.sheet-toolbar form { margin: 0; }
.sheet-toolbar .sep { flex: 1; min-width: 6px; }

.tablebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin: 0.25rem 0 0.4rem;
}
.tablebar form { margin: 0; }
.tablebar input,
.tablebar select {
  margin: 0;
  min-width: 90px;
  height: 1.65rem !important;
  font-size: 0.72rem !important;
  border-radius: 6px;
}
.tablebar input[type="text"] { min-width: 150px; }
.tablebar input[type="number"] { min-width: 56px; max-width: 72px; }

/* —— Buttons compact —— */
body.o11-theme .mini-btn,
body.o11-theme button.mini-btn,
body.o11-theme .backup-io-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.22rem 0.5rem !important;
  min-height: 1.55rem !important;
  height: auto !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  border-radius: 6px !important;
  border: 1px solid var(--o11-border) !important;
  background: rgba(255,255,255,0.035) !important;
  color: var(--o11-text) !important;
  cursor: pointer;
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.o11-theme .mini-btn:hover,
body.o11-theme .backup-io-btn:hover {
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
}
body.o11-theme .mini-btn:disabled { opacity: 0.4; cursor: not-allowed; }
body.o11-theme .mini-btn.outline-success,
body.o11-theme .btn-primary-soft {
  border-color: var(--o11-green-dim) !important;
  color: var(--o11-green) !important;
  background: var(--o11-green-soft) !important;
}
body.o11-theme .mini-btn.outline-danger {
  border-color: rgba(248,113,113,0.4) !important;
  color: #f87171 !important;
  background: rgba(248,113,113,0.07) !important;
}
body.o11-theme .mini-btn.btn-solid-soft {
  background: var(--o11-green) !important;
  border-color: var(--o11-green) !important;
  color: #1c1405 !important;
}
body.o11-theme .btn-solid-green,
body.o11-theme button.btn-solid-green {
  background: var(--o11-green) !important;
  border-color: var(--o11-green) !important;
  color: #1c1405 !important;
  font-weight: 700 !important;
  font-size: 0.68rem !important;
  width: 100%;
  min-height: 1.7rem !important;
  padding: 0.3rem 0.5rem !important;
  border-radius: 6px !important;
}
body.o11-theme button[type="submit"]:not(.mini-btn):not(.o11-btn-out):not(.backup-io-btn):not(.secondary) {
  background: var(--o11-green);
  border-color: var(--o11-green);
  color: #1c1405;
  font-weight: 700;
  border-radius: 6px;
  font-size: 0.78rem;
  min-height: 2rem;
}

/* Kebab action menu */
.sf-kebab {
  position: relative;
  display: inline-block;
}
.sf-kebab > summary {
  list-style: none;
  cursor: pointer;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: var(--o11-muted);
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
}
.sf-kebab > summary::-webkit-details-marker { display: none; }
.sf-kebab > summary:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sf-kebab[open] > summary { background: rgba(255,255,255,0.08); color: #fff; }
.sf-kebab-menu {
  position: absolute;
  right: 0; top: calc(100% + 2px);
  z-index: 20;
  min-width: 110px;
  background: #151a22;
  border: 1px solid var(--o11-border);
  border-radius: 6px;
  padding: 0.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.sf-kebab-menu button,
.sf-kebab-menu a {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  color: var(--o11-text) !important;
  font-size: 0.68rem !important;
  padding: 0.35rem 0.45rem !important;
  min-height: auto !important;
  border-radius: 4px !important;
  text-decoration: none;
  cursor: pointer;
}
.sf-kebab-menu button:hover,
.sf-kebab-menu a:hover { background: rgba(255,255,255,0.06) !important; }

/* —— Credential cards —— */
.sf-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.sf-cred-card {
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: var(--o11-radius);
  padding: 0.5rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sf-cred-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--o11-green);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sf-cred-card h3 .dlg {
  font-size: 0.55rem;
  color: var(--o11-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--o11-border);
  border-radius: 4px;
  padding: 1px 5px;
}
.sf-cred-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
  min-height: 1.1rem;
}
.sf-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  background: #0d1118;
  border: 1px solid var(--o11-border);
  padding: 0.28rem 0.4rem;
  border-radius: 5px;
  font-size: 0.66rem;
}
.sf-cred-add {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.sf-cred-add input {
  flex: 1;
  margin: 0 !important;
  min-height: 1.55rem !important;
  height: 1.55rem !important;
  font-size: 0.66rem !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 5px !important;
  background: #0d1118 !important;
}
.sf-cred-card form { margin-top: auto; margin-bottom: 0; }

.channels-page-head { margin-bottom: 0.45rem; }
.channels-page-title { font-size: 0.85rem; margin: 0 0 0.15rem; font-weight: 700; }
.channels-page-desc { font-size: 0.72rem; margin: 0; color: var(--o11-muted); line-height: 1.35; }
.channels-panel-title {
  font-size: 0.72rem; margin: 0 0 0.3rem; font-weight: 700;
  color: var(--o11-green); letter-spacing: 0.02em; text-transform: none;
}

.ux-advanced {
  margin-bottom: 0.45rem;
  border: 1px solid var(--o11-border);
  background: var(--o11-panel);
  border-radius: var(--o11-radius);
}
.ux-advanced > summary {
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  user-select: none;
}
.ux-advanced > summary::-webkit-details-marker { display: none; }
.ux-advanced > summary::after { content: "mostrar"; font-size: 0.62rem; color: var(--o11-muted); }
.ux-advanced[open] > summary::after { content: "ocultar"; }
.ux-advanced > summary .ux-advanced-title { color: var(--o11-green); font-weight: 600; }
.ux-advanced > summary .ux-advanced-sub {
  font-size: 0.65rem; color: var(--o11-muted); font-weight: 400; margin-left: 0.35rem;
}
.ux-advanced-body { padding: 0 0.65rem 0.65rem; border-top: 1px solid var(--o11-border); }

.layout-backup-panel { margin: 0; background: transparent; border: 0; padding: 0.45rem 0 0; }
.layout-backup-panel .layout-backup-hint {
  font-size: 0.7rem; margin: 0 0 0.4rem; color: var(--o11-muted); line-height: 1.35;
}
.layout-backup-import-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0;
}
body.o11-theme .layout-backup-toolbar .backup-io-btn { text-transform: none !important; }
body.o11-theme .layout-backup-toolbar label.backup-io-btn--file {
  position: relative; overflow: hidden; user-select: none;
}
body.o11-theme .layout-backup-toolbar label.backup-io-btn--file > input[type="file"] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}
.backup-io-file-name {
  font-size: 0.65rem; color: var(--o11-muted); max-width: 10rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.layout-backup-check-row {
  flex-basis: 100%; margin: 0.25rem 0 0; padding-top: 0.35rem;
  border-top: 1px solid var(--o11-border);
  display: flex; align-items: flex-start; gap: 0.35rem;
  font-size: 0.68rem; color: var(--o11-muted);
}
.inline-form { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; }

.o11-banner {
  border-left: 2px solid var(--o11-green);
  padding: 0.45rem 0.65rem;
  background: var(--o11-green-soft);
  font-size: 0.74rem;
  margin-bottom: 0.55rem;
  border-radius: 0 6px 6px 0;
  max-width: 900px;
}

.provider-tabs { display: flex; gap: 0.3rem; margin-bottom: 0.55rem; }
.provider-tabs a {
  border: 1px solid var(--o11-border);
  padding: 0.22rem 0.45rem;
  text-decoration: none;
  color: var(--o11-text);
  border-radius: 6px;
  font-size: 0.72rem;
}
.provider-tabs a.active {
  color: var(--o11-green);
  border-color: var(--o11-green-dim);
  background: var(--o11-green-soft);
}

/* Pico density overrides */
body.o11-theme :where(h1,h2,h3,h4,h5,h6) { --pico-typography-spacing-vertical: 0.4rem; }
body.o11-theme article { margin-bottom: 0.6rem; }
body.o11-theme label { margin-bottom: 0.35rem; font-size: 0.72rem; }
body.o11-theme input:not([type=checkbox]):not([type=radio]),
body.o11-theme select,
body.o11-theme textarea {
  margin-bottom: 0.35rem;
  min-height: 1.85rem;
}

.o11-menu-btn {
  display: none;
  position: fixed;
  top: 8px; left: 8px; z-index: 60;
  height: 28px; min-height: 28px; padding: 0 8px;
  font-size: 0.7rem; margin: 0;
  border: 1px solid var(--o11-border);
  background: var(--o11-panel);
  color: var(--o11-green);
  border-radius: 6px;
}
.o11-aside-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 40;
}
body.o11-nav-open .o11-aside-backdrop { display: block; }

@media (max-width: 1200px) {
  .sysstat-row, .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .o11-menu-btn { display: inline-flex; align-items: center; }
  .o11-layout { grid-template-columns: 1fr; }
  .o11-aside {
    position: fixed; inset: 0 auto 0 0;
    width: min(240px, 84vw); z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.45);
    height: 100vh;
  }
  body.o11-nav-open .o11-aside { transform: translateX(0); }
  .o11-main { padding-top: 38px; }
  .o11-topbar { padding-left: 3rem; }
  .sysstat-row, .kpi-grid, .sf-cred-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sysstat-row, .kpi-grid, .sf-cred-grid { grid-template-columns: 1fr; }
}


/* —— Icon buttons (acciones densas) —— */
body.o11-theme .sf-icon-btn,
body.o11-theme button.sf-icon-btn {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.7rem !important;
  height: 1.7rem !important;
  min-height: 1.7rem !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 6px !important;
  border: 1px solid var(--o11-border) !important;
  background: rgba(255,255,255,0.035) !important;
  color: var(--o11-text) !important;
  cursor: pointer;
  flex-shrink: 0;
}
body.o11-theme .sf-icon-btn:hover,
body.o11-theme .sf-icon-btn:focus-visible {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  outline: none;
  border-color: #3a465a !important;
}
body.o11-theme .sf-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
body.o11-theme .sf-icon-btn.outline-success {
  border-color: var(--o11-green-dim) !important;
  color: var(--o11-green) !important;
  background: var(--o11-green-soft) !important;
}
body.o11-theme .sf-icon-btn.outline-danger {
  border-color: rgba(248,113,113,0.4) !important;
  color: #f87171 !important;
  background: rgba(248,113,113,0.07) !important;
}
body.o11-theme .sf-icon-btn.is-busy {
  opacity: 0.55;
  animation: sfSpinHint 0.8s linear infinite;
}
body.o11-theme .sf-icon-btn.is-ok {
  border-color: var(--o11-green) !important;
  color: var(--o11-green) !important;
}
@keyframes sfSpinHint {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.role-input {
  width: 100%;
  max-width: 180px;
  margin: 0 !important;
  min-height: 1.45rem !important;
  height: 1.45rem !important;
  font-size: 0.66rem !important;
  padding: 0.12rem 0.35rem !important;
  border-radius: 5px !important;
  background: #0d1118 !important;
  border: 1px solid var(--o11-border) !important;
  color: var(--o11-text) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-input[readonly] {
  opacity: 0.85;
  cursor: default;
}
.role-input:focus { border-color: var(--o11-green-dim) !important; outline: none; }
.role-input.role-saved { border-color: var(--o11-green) !important; }
.api-cell { white-space: nowrap; font-size: 0.66rem; }
.api-label.ok { color: var(--o11-green); font-weight: 600; margin-left: 1px; }
.api-label.err { color: #f87171; font-weight: 600; margin-left: 1px; }
.sf-cred-save {
  margin: 0 !important;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.2rem;
  border-top: 1px solid var(--o11-border);
}
body.o11-theme .btn-solid-green,
body.o11-theme button.btn-solid-green {
  width: auto !important;
  min-width: 0 !important;
}
.sf-cred-card h3 .dlg { display: none; }

/* —— Providers page —— */
.prov-page { max-width: 1100px; }
.prov-hint { font-size: 11px; opacity: 0.75; margin: 0 0 10px; line-height: 1.4; }

.provider-card {
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: 8px;
  margin-bottom: 6px;
}
.provider-card.prov-off { opacity: 0.72; }
.provider-card.prov-off .prov-body { opacity: 0.85; }
.provider-card.is-hidden { display: none !important; }

.provider-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
}
.provider-head > .sf-switch { margin-top: 2px; }
.provider-head > .prov-rail { margin-top: 2px; }

.provider-details { min-width: 0; }
.provider-summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  user-select: none;
}
.provider-summary::-webkit-details-marker { display: none; }

.prov-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prov-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prov-name {
  color: var(--o11-green);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.2;
}
.ct-name {
  color: #9aa6b8;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.prov-meta { font-size: 10px; color: var(--o11-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prov-meta .st-on { color: var(--o11-green); }
.prov-meta .st-off { color: #f87171; }
.prov-meta .st-mixed { color: #fbbf24; }

.prov-rail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.kind-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--o11-muted);
  padding: 2px 6px;
  border: 1px solid var(--o11-border);
  border-radius: 6px;
  background: rgba(0,0,0,0.2);
}
.kind-ctrl .kind-badge { margin: 0; }
.kind-ctrl .kind-count { font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.kind-ctrl.cat-kind { padding: 1px 4px; background: transparent; border-color: rgba(37,48,65,0.85); }
.kind-ctrl.cat-kind .kind-badge { font-size: 8px; opacity: 0.9; }
.kind-ctrl.cat-kind .kind-count { font-size: 9px; min-width: 28px; }

.prov-body {
  padding: 2px 8px 10px 4px;
  border-top: 1px solid var(--o11-border);
  margin-top: 6px;
}
.prov-off-note, .cat-off-note { display: none; font-size: 10px; opacity: 0.65; margin: 6px 0 4px; }
.provider-card.prov-off .prov-off-note { display: block; }
.cat-card.cat-off .cat-off-note { display: block; }

.cat-card {
  border: 1px solid rgba(37,48,65,0.9);
  border-left: 2px solid rgba(60, 200, 120, 0.22);
  border-radius: 0 5px 5px 0;
  margin-top: 4px;
  margin-left: 22px;
  background: transparent;
}
.cat-card.cat-off { opacity: 0.6; border-left-color: rgba(248,113,113,0.35); }
.cat-card.is-hidden { display: none !important; }

.cat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 7px;
  padding: 5px 8px 5px 6px;
}
.cat-head > .sf-switch { margin-top: 1px; }
.cat-head > .prov-rail { margin-top: 1px; }

.cat-details { min-width: 0; }
.cat-summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
}
.cat-summary::-webkit-details-marker { display: none; }
.cat-summary .prov-meta { font-size: 9px; opacity: 0.85; }

.prov-cats-tools {
  display: flex; align-items: center; gap: 8px; margin: 6px 0 4px 0;
  font-size: 10px; color: var(--o11-muted);
}
.prov-cats-tools label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.prov-cats-tools input { margin: 0; accent-color: var(--o11-green); }

.cat-body {
  padding: 5px 4px 8px 14px;
  border-top: 1px solid rgba(37,48,65,0.75);
  margin-left: 16px;
  margin-top: 4px;
}

.kind-badge {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 5px; border-radius: 4px; border: 1px solid var(--o11-border);
  text-transform: uppercase; vertical-align: middle;
}
.kind-badge.hls { color: #38bdf8; border-color: rgba(56,189,248,0.45); background: rgba(56,189,248,0.08); }
.kind-badge.drm { color: #a78bfa; border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.08); }

.ch-tick {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 3px;
  border: 1.5px solid #4a5568; background: transparent;
  position: relative; cursor: pointer; margin: 0;
  vertical-align: middle; flex-shrink: 0;
}
.ch-tick:checked {
  background: var(--o11-green);
  border-color: var(--o11-green);
}
.ch-tick:checked::after {
  content: "";
  position: absolute;
  left: 3.5px; top: 0.5px;
  width: 3.5px; height: 7.5px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.ch-tick:disabled { opacity: 0.45; cursor: wait; }

.cat-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 6px;
}
.cat-toolbar input[type="search"] {
  margin: 0 !important; min-height: 1.55rem !important; height: 1.55rem !important;
  font-size: 0.62rem !important; padding: 0 8px !important; border-radius: 5px !important;
  background: #0d1118 !important; width: min(200px, 100%);
}
.cat-toolbar .seg {
  display: inline-flex; border: 1px solid var(--o11-border); border-radius: 6px; overflow: hidden;
}
.cat-toolbar .seg button {
  appearance: none; border: 0; background: transparent; color: var(--o11-muted);
  font-size: 10px; padding: 3px 8px; cursor: pointer; margin: 0;
  min-height: 1.45rem;
}
.cat-toolbar .seg button.active { background: rgba(255,255,255,0.06); color: #fff; }
.cat-toolbar .pager { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; font-size: 10px; color: var(--o11-muted); }
.hide-hls-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--o11-muted); cursor: pointer; user-select: none;
}
.hide-hls-label input { margin: 0; accent-color: var(--o11-green); }

.ch-editor-table { width: 100%; margin: 0; font-size: 0.62rem; border-collapse: separate; border-spacing: 0; }
.ch-editor-table th {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--o11-muted); padding: 4px; border-bottom: 1px solid var(--o11-border);
  text-align: left; font-weight: 600; position: sticky; top: 0; background: #0f131a; z-index: 1;
}
.ch-editor-table td { padding: 3px 4px; vertical-align: middle; border-bottom: 1px solid rgba(37,48,65,0.85); }
.ch-editor-table tr.state-disabled { opacity: 0.42; }
.ch-editor-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--o11-border); border-radius: 6px; }

.ch-name-input, .ch-cat-select {
  margin: 0 !important; min-height: 1.35rem !important; height: 1.35rem !important;
  font-size: 0.62rem !important; padding: 0 5px !important; border-radius: 4px !important;
  background: #0d1118 !important; width: 100%;
}
.unify-cell { font-size: 0.58rem; color: var(--o11-muted); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unify-cell strong { color: #b8c0cc; font-weight: 500; font-size: 0.62rem; }

tr.row-saved { animation: rowSaved 0.7s ease; }
tr.is-mapped .ch-cat-select {
  border-color: rgba(61, 214, 140, 0.55);
  background: rgba(61, 214, 140, 0.08);
}
.cat-map-hint {
  font-size: 0.58rem;
  white-space: nowrap;
  opacity: 0.75;
  align-self: center;
}
.cat-toolbar { flex-wrap: wrap; gap: 6px 8px; }
tr.row-error { animation: rowError 0.9s ease; }
@keyframes rowSaved { 0% { background: rgba(60,200,120,0.25); } 100% { background: transparent; } }
@keyframes rowError { 0% { background: rgba(220,70,70,0.3); } 100% { background: transparent; } }

#prov-toast {
  position: fixed; right: 12px; bottom: 12px; z-index: 9999;
  background: var(--o11-panel); border: 1px solid var(--o11-border);
  color: var(--o11-green); padding: 6px 12px; border-radius: 6px;
  font-size: 12px; opacity: 0; transform: translateY(8px); transition: all .25s ease;
  pointer-events: none;
}
#prov-toast.show { opacity: 1; transform: translateY(0); }
#prov-toast.err { color: #f87171; border-color: #f87171; }

/* —— Categories page —— */
.cat-page { max-width: 1200px; }
.cat-hint {
  font-size: 11px; opacity: 0.75; margin: 0 0 10px; line-height: 1.45;
}
.cat-hint a { color: var(--o11-green); text-decoration: none; }
.cat-hint a:hover { text-decoration: underline; }

.cat-wrap { display: flex; gap: 10px; align-items: flex-start; }
.cat-panel {
  flex: 1; min-width: 0;
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: 8px;
  padding: 8px 10px;
}
.cat-panel--warn .channels-panel-title { color: #fbbf24; }

.cat-create {
  margin-bottom: 10px;
  background: var(--o11-panel);
  border: 1px solid var(--o11-border);
  border-radius: 8px;
  padding: 8px 10px;
}
.cat-create-form {
  margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.cat-create-form input {
  margin: 0 !important; height: 1.65rem !important; min-height: 1.65rem !important;
  font-size: 0.72rem !important; padding: 0 8px !important; border-radius: 6px !important;
  background: #0d1118 !important;
}
.cat-create-form input[name="cat_name"] { width: min(220px, 100%); }
.cat-create-form input[name="cat_id"] { width: 110px; }

.cat-item {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--o11-border);
  border-radius: 8px;
  margin-bottom: 6px;
}
.cat-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  user-select: none;
}
.cat-item > summary::-webkit-details-marker { display: none; }
.cat-item-title {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.cat-item-title .sf-switch { flex-shrink: 0; }
.cat-item.cat-list-off { opacity: 0.62; }
.cat-item.cat-list-off > summary strong { color: #9aa6b8; }
.cat-list-off-badge {
  display: none; font-size: 9px; color: #f87171;
  padding: 1px 6px; border: 1px solid rgba(248,113,113,0.45); border-radius: 4px;
}
.cat-item.cat-list-off .cat-list-off-badge { display: inline-block; }
.cat-list-off-note { display: none; font-size: 10px; opacity: 0.7; margin: 0 0 6px; color: #fbbf24; }
.cat-item.cat-list-off .cat-list-off-note { display: block; }
.cat-item-title strong {
  color: var(--o11-green);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}
.cat-item-badge {
  font-size: 9px; color: var(--o11-muted);
  padding: 1px 6px; border: 1px solid var(--o11-border); border-radius: 4px;
}
.cat-item-body {
  display: none;
  padding: 6px 10px 10px;
  border-top: 1px solid var(--o11-border);
}
.cat-item[open] > .cat-item-body { display: block !important; }
.cat-item-tools {
  display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 6px;
}
/* Listado final (Categorías): un único scroll en el host.
   En Proveedores el host contiene .ch-editor-wrap (también scroll):
   si ambos tienen overflow, aparecen DOS barras y tapán la columna Guardar. */
.cat-item-body > .cat-channels-host {
  max-height: 420px; overflow: auto;
  border: 1px solid var(--o11-border); border-radius: 6px;
}
.cat-body > .cat-channels-host {
  max-height: none;
  overflow: visible;
  border: none;
  border-radius: 0;
}
.cat-empty { font-size: 10px; margin: 8px; opacity: 0.55; }

.cat-grid { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 0.68rem; }
.cat-grid th {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--o11-muted); padding: 5px 6px; border-bottom: 1px solid var(--o11-border);
  text-align: left; font-weight: 600; position: sticky; top: 0; background: #0f131a; z-index: 1;
}
.cat-grid td { padding: 4px 6px; vertical-align: middle; border-bottom: 1px solid rgba(37,48,65,0.85); }
.cg-drag { width: 22px; text-align: center; }
.cg-name strong { font-size: 0.72rem; font-weight: 600; color: #e8edf4; }
.cg-origins { min-width: 0; }
.cg-move { width: 130px; }
.drag-handle-cat, .drag-handle-ch { cursor: grab; opacity: 0.45; font-size: 11px; }
.drag-handle-cat:active, .drag-handle-ch:active { cursor: grabbing; }

.prov-tags { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.prov-tag {
  display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: 0.02em;
  padding: 1px 5px; border-radius: 4px;
  border: 1px solid rgba(60,200,120,0.35);
  background: rgba(60,200,120,0.08);
  color: #9aa6b8;
  text-transform: lowercase;
}
.prov-tag--muted { opacity: 0.45; border-color: var(--o11-border); background: transparent; }
.prov-tag--extra {
  border-color: rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.08);
  color: #fbbf24;
}

.move-select {
  width: 100%; height: 1.45rem; font-size: 0.62rem; padding: 0 5px; margin: 0;
  border-radius: 4px; background: #0d1118;
}
.channel-name-input {
  width: 100%; height: 1.45rem; font-size: 0.72rem; padding: 0 5px; margin: 0;
  border: 1px solid transparent; background: transparent; color: inherit; border-radius: 4px;
}
.channel-name-input:focus {
  border-color: var(--o11-border); background: #0d1118; outline: none;
}

.unassigned-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 4px; flex-wrap: wrap;
}
.unassigned-search {
  margin: 0 !important; height: 1.55rem !important; min-height: 1.55rem !important;
  font-size: 0.62rem !important; padding: 0 8px !important; border-radius: 5px !important;
  background: #0d1118 !important; width: min(160px, 100%);
}
.unassigned-note { font-size: 10px; margin: 0 0 6px; opacity: 0.6; }

#bulk-bar {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  margin: 0 0 6px; padding: 6px 8px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--o11-border); border-radius: 6px;
  font-size: 10px;
}
#unassigned-scroll {
  max-height: 75vh; overflow-y: auto;
  border: 1px solid var(--o11-border); border-radius: 6px;
}

.cat-advanced-section { margin-bottom: 10px; }
.cat-advanced-section + .cat-advanced-section {
  padding-top: 10px; border-top: 1px dashed var(--o11-border);
}
.channel-logo-global-form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0;
}
.channel-logo-global-form select {
  height: 1.65rem; font-size: 0.72rem; border-radius: 6px;
}
