﻿/* ====================================================
   OWNER HACKER — Estética 1-Bit Hacker / Cyberpunk CRT
   (Watch Dogs · DedSec · Pixel 1-Bit)

   TODAS las reglas están aisladas bajo `body.owner-mode`,
   que solo se activa cuando el Owner Console está en
   pantalla. Un usuario normal NUNCA recibe esta clase, por
   lo que el CSS no interfiere con el resto del dashboard.
   ==================================================== */

/* ---- Modo Owner global: apagar el universo galáctico ---- */
body.owner-mode {
  background: #000000 !important;
}

body.owner-mode .galaxy-bg-layer,
body.owner-mode .galaxy-nebulas,
body.owner-mode .galaxy-noise,
body.owner-mode .liquid-bg-container,
body.owner-mode .liquid-blobs {
  display: none !important;
}

body.owner-mode #dashboard {
  background: #000000 !important;
}

body.owner-mode .sidebar {
  background: #000000 !important;
  border-right: 1px solid #ffffff;
}

body.owner-mode .sidebar-brand {
  color: #ffffff;
}

body.owner-mode .sidebar-brand .sidebar-icon {
  color: #ffffff;
  filter: none;
}

body.owner-mode .settings-panel {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  /* El scroll pertenece únicamente a .main. No recortar el flujo aquí:
     al cambiar de sección o hacer scroll el canvas no debe sustituir al UI. */
  overflow: visible;
  min-height: 100%;
  height: auto;
}

/* Owner Console: un solo scroll vertical y contenido siempre medible. */
body.owner-mode .main {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.owner-mode #settings-content,
body.owner-mode .owner-hacker,
body.owner-mode .ohc-ui {
  min-height: 100%;
  height: auto;
  overflow: visible;
}

body.owner-mode .ohc-ui {
  box-sizing: border-box;
}

/* ---- Consola raíz ---- */
.owner-hacker {
  --ohc-fg: #ffffff;
  --ohc-bg: #000000;
  --ohc-font: "Cascadia Code", Consolas, "Courier New", monospace;
  position: relative;
  min-height: 100%;
  color: var(--ohc-fg);
  background: var(--ohc-bg);
  font-family: var(--ohc-font);
  letter-spacing: 0.02em;
}

.ohc-matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background: #000000;
}

/* Líneas de escaneo CRT sobre todo el bloque */
.owner-hacker::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.045) 0px,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Viñeta CRT */
.owner-hacker::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.85) 100%);
}

.ohc-ui {
  position: relative;
  z-index: 6;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.ohc-premium-note {
  border: 1px dashed #ffffff;
  padding: 9px 11px;
  margin-bottom: 14px;
  font-size: 11px;
  color: #bdbdbd;
}

.ohc-premium-list { display: grid; gap: 8px; margin-top: 14px; }
.ohc-premium-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #444; padding: 10px; font-size: 12px; }
.ohc-premium-row.active-premium { border-color: #fff; }
.ohc-premium-row.inactive-premium { opacity: .55; }
.ohc-premium-row strong, .ohc-premium-row small { display: block; }
.ohc-premium-row small { color: #aaa; margin-top: 4px; word-break: break-all; }

/* ---- Cabecera / logo ASCII ---- */
.ohc-header {
  margin-bottom: 28px;
}

.ohc-logo {
  margin: 0;
  font-family: var(--ohc-font);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ohc-fg);
  white-space: pre;
  overflow: hidden;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.ohc-statusline {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ohc-fg);
  border: 1px solid var(--ohc-fg);
  padding: 6px 10px;
  display: inline-block;
  animation: ohcBlink 2.4s steps(2, end) infinite;
}

.ohc-statusline::before {
  content: "> ";
}

@keyframes ohcBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- Título con glitch / aberración cromática ---- */
.ohc-glitch {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ohc-fg);
}

.ohc-glitch::before,
.ohc-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.ohc-glitch::before {
  left: 2px;
  text-shadow: -2px 0 rgba(255, 0, 80, 0.55);
  animation: ohcGlitchShift 3.2s infinite linear alternate-reverse;
}

.ohc-glitch::after {
  left: -2px;
  text-shadow: 2px 0 rgba(0, 255, 240, 0.55);
  animation: ohcGlitchShift 2.7s infinite linear alternate;
}

@keyframes ohcGlitchShift {
  0% { clip-path: inset(0 0 82% 0); }
  12% { clip-path: inset(38% 0 40% 0); }
  24% { clip-path: inset(0 0 55% 0); }
  36% { clip-path: inset(70% 0 6% 0); }
  48% { clip-path: inset(12% 0 78% 0); }
  60% { clip-path: inset(44% 0 12% 0); }
  72% { clip-path: inset(0 0 100% 0); }
  84% { clip-path: inset(90% 0 0 0); }
  100% { clip-path: inset(28% 0 46% 0); }
}

/* ---- Paneles ---- */
.ohc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ohc-panel-wide { grid-column: 1 / -1; }
.ohc-audit-intro { color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.6; margin: 4px 0 14px; }
.ohc-audit-controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.ohc-audit-controls .ohc-select { min-width:240px; flex:1; }
.ohc-audit-live { min-height:18px; color:#8fffc1; font-size:11px; margin-bottom:10px; }
.ohc-audit-list { display:flex; flex-direction:column; gap:8px; }
.ohc-audit-row { border:1px solid rgba(255,255,255,.28); padding:10px 12px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; background:rgba(255,255,255,.025); }
.ohc-audit-row strong { color:#8fffc1; font-size:11px; letter-spacing:.08em; }
.ohc-audit-scope { display:block; color:rgba(255,255,255,.62); font-size:10px; margin-top:4px; }
.ohc-audit-metrics { display:flex; gap:10px; color:rgba(255,255,255,.78); font-size:10px; align-items:start; white-space:nowrap; }
.ohc-audit-row details { grid-column:1/-1; font-size:10px; color:rgba(255,255,255,.7); }
.ohc-audit-row pre { white-space:pre-wrap; overflow:auto; margin:8px 0 0; padding:8px; border-left:2px solid var(--ohc-fg); background:rgba(0,0,0,.25); }
.ohc-stats-summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; padding: 10px 12px; border: 1px dashed rgba(255,255,255,.55); }
.ohc-stat-health { display: flex; align-items: center; gap: 10px; }
.ohc-stat-health strong { display: block; font-size: 13px; letter-spacing: .08em; }
.ohc-stat-health small, .ohc-stats-runtime { color: rgba(255,255,255,.7); font-size: 11px; }
.ohc-stat-health small { display: block; margin-top: 3px; }
.ohc-stats-runtime strong { color: #fff; margin-left: 7px; }
.ohc-stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ohc-stat-cell { min-height: 58px; border: 1px solid rgba(255,255,255,.32); padding: 9px 10px; background: rgba(255,255,255,.025); }
.ohc-stat-label { display: block; color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: .08em; }
.ohc-stat-value { display: block; margin-top: 8px; color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ohc-service-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: rgba(255,255,255,.76); font-size: 10px; letter-spacing: .08em; }
.ohc-service-dot { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #fff; }
.ohc-stat-ok { color: #00ff66; }
.ohc-stat-warn { color: #ffe600; }
.ohc-stat-danger { color: #ff0033; }
.ohc-service-dot.ohc-stat-ok { background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.ohc-service-dot.ohc-stat-warn { background: #ffe600; box-shadow: 0 0 6px #ffe600; }
.ohc-service-dot.ohc-stat-danger { background: #ff0033; box-shadow: 0 0 6px #ff0033; }

@media (max-width: 900px) {
  .ohc-grid { grid-template-columns: 1fr; }
  .ohc-panel-wide { grid-column: auto; }
  .ohc-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ohc-stats-summary { align-items: flex-start; flex-direction: column; }
  .ohc-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ohc-audit-row { grid-template-columns:1fr; }
  .ohc-audit-metrics { white-space:normal; flex-wrap:wrap; }
}

.ohc-panel {
  position: relative;
  border: 1px solid var(--ohc-fg);
  background: var(--ohc-bg);
  box-shadow: 5px 5px 0 var(--ohc-fg);
  padding: 14px;
  margin-bottom: 22px;
}

.ohc-panel-head {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ohc-fg);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--ohc-fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ohc-panel-head::before {
  content: ">";
  margin-right: 6px;
}

.ohc-count {
  border: 1px solid var(--ohc-fg);
  padding: 0 8px;
  font-size: 11px;
}

/* ---- Lista de presencias ---- */
.ohc-presence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ohc-presence-row {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.ohc-presence-row.active-presence {
  border-width: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.ohc-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.ohc-status-dot.online { background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.ohc-status-dot.idle { background: #ffe600; box-shadow: 0 0 6px #ffe600; }
.ohc-status-dot.dnd { background: #ff0033; box-shadow: 0 0 6px #ff0033; }
.ohc-status-dot.streaming { background: #a970ff; box-shadow: 0 0 6px #a970ff; }
.ohc-status-dot.invisible { background: #777; }

.ohc-presence-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ohc-presence-label {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ohc-presence-sub {
  font-size: 11px;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ohc-type-badge {
  border: 1px solid var(--ohc-fg);
  padding: 0 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ohc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ohc-emoji-picker,
.ohc-command-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 14px;
  max-height: 120px;
  overflow-y: auto;
  padding: 6px;
  border: 1px dashed rgba(255,255,255,.35);
}
.ohc-emoji-choice {
  width: 30px;
  height: 30px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.45);
  background: #000;
  color: #fff;
  cursor: pointer;
}
.ohc-emoji-choice img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.ohc-emoji-choice sup { font-size: 8px; margin-left: 2px; }
.ohc-file-actions { display:flex; gap:6px; align-items:center; margin-top:6px; }
.ohc-file-actions input { min-width:0; max-width:100%; font-size:10px; }
.ohc-textarea { min-height:78px; resize:vertical; }
.ohc-command-check { display:inline-flex; gap:5px; align-items:center; border:1px solid rgba(255,255,255,.35); padding:5px 7px; font-size:10px; cursor:pointer; }
.ohc-command-check input { accent-color:#fff; }

/* ---- Botones 1-bit ---- */
.ohc-btn {
  background: transparent;
  color: var(--ohc-fg);
  border: 1px solid var(--ohc-fg);
  font-family: var(--ohc-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  cursor: pointer;
  transition: none;
}

.ohc-btn:hover {
  background: var(--ohc-fg);
  color: var(--ohc-bg);
}

.ohc-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.ohc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ohc-btn-danger:hover {
  background: #ff0033;
  border-color: #ff0033;
  color: #000;
}

.ohc-btn-block {
  width: 100%;
  padding: 10px;
  font-size: 12px;
}

.ohc-btn-sm {
  padding: 3px 8px;
  font-size: 10px;
}

/* ---- Formulario de presencia ---- */
.ohc-form {
  border: 1px dashed var(--ohc-fg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ohc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ohc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ohc-field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.ohc-input,
.ohc-select {
  background: var(--ohc-bg);
  color: var(--ohc-fg);
  border: 1px solid var(--ohc-fg);
  font-family: var(--ohc-font);
  font-size: 12px;
  padding: 7px 8px;
  outline: none;
}

.ohc-input:focus,
.ohc-select:focus {
  box-shadow: 0 0 0 1px var(--ohc-fg), 0 0 8px rgba(255, 255, 255, 0.4);
}

.ohc-select option {
  background: #000;
  color: #fff;
}

.ohc-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.ohc-hint {
  font-size: 10px;
  opacity: 0.7;
}

/* ---- Lista de servidores (inspector) ---- */
.ohc-guild-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* El inspector no debe empujar los demás paneles aunque el bot esté en
     cientos de servidores. Conserva el scroll del catálogo de comandos,
     pero sin una barra visual que rompa la consola 1-bit. */
  max-height: min(460px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ohc-guild-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ohc-guild-row {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: none;
  background: transparent;
  color: var(--ohc-fg);
  text-align: left;
  width: 100%;
  font-family: var(--ohc-font);
}

.ohc-guild-row:hover {
  background: var(--ohc-fg);
  color: #000;
}

.ohc-guild-row:hover .ohc-guild-icon {
  filter: invert(1);
}

.ohc-guild-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ohc-fg);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  background: #000;
}

.ohc-guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ohc-guild-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ohc-guild-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ohc-guild-meta {
  font-size: 10px;
  opacity: 0.8;
}

.ohc-guild-row:hover .ohc-guild-meta {
  color: #000;
}

.ohc-guild-caret {
  font-size: 14px;
  flex: 0 0 auto;
}

/* ---- Modal 1-bit ---- */
.ohc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ohc-modal-box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid var(--ohc-fg);
  background: #000;
  box-shadow: 7px 7px 0 var(--ohc-fg);
  display: flex;
  flex-direction: column;
}

.ohc-modal-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.55);
  animation: ohcScan 2.2s linear infinite;
  pointer-events: none;
}

@keyframes ohcScan {
  0% { top: 0; }
  100% { top: 100%; }
}

.ohc-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ohc-fg);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ohc-modal-close {
  background: transparent;
  border: 1px solid var(--ohc-fg);
  color: var(--ohc-fg);
  font-family: var(--ohc-font);
  font-size: 12px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  line-height: 1;
}

.ohc-modal-close:hover {
  background: #fff;
  color: #000;
}

.ohc-modal-body {
  padding: 16px 14px;
  overflow-y: auto;
}

.ohc-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--ohc-fg);
}

/* ---- Inspector ---- */
.ohc-inspector-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.ohc-inspector-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--ohc-fg);
  box-shadow: 4px 4px 0 var(--ohc-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  background: #000;
}

.ohc-inspector-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ohc-inspector-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.ohc-inspector-sub {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 3px;
}

.ohc-inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 560px) {
  .ohc-inspector-grid { grid-template-columns: 1fr; }
}

.ohc-data-cell {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 10px;
}

.ohc-data-cell.full {
  grid-column: 1 / -1;
}

.ohc-data-key {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 3px;
}

.ohc-data-val {
  font-size: 13px;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ohc-copy-btn {
  background: transparent;
  border: 1px solid var(--ohc-fg);
  color: var(--ohc-fg);
  font-family: var(--ohc-font);
  font-size: 9px;
  text-transform: uppercase;
  padding: 2px 7px;
  cursor: pointer;
}

.ohc-copy-btn:hover {
  background: #fff;
  color: #000;
}

.ohc-invite-link {
  color: var(--ohc-fg);
  text-decoration: underline;
  word-break: break-all;
}

/* ---- Calavera pixelada de hover ---- */
.ohc-mini-skull {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0;
  animation: ohcSkullFloat 1.4s steps(2, end) infinite, ohcSkullFlicker 2s steps(1, end) infinite;
}

.ohc-panel:hover .ohc-mini-skull {
  opacity: 1;
}

@keyframes ohcSkullFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, -2px) rotate(-6deg); }
  50% { transform: translate(1px, -1px) rotate(4deg); }
  75% { transform: translate(-1px, 1px) rotate(-2deg); }
}

@keyframes ohcSkullFlicker {
  0%, 88%, 100% { opacity: 1; }
  90% { opacity: 0.35; }
  93% { opacity: 1; }
  96% { opacity: 0.5; }
}

/* ---- Cargando 1-bit ---- */
.ohc-loading {
  border: 1px dashed var(--ohc-fg);
  padding: 14px;
  text-align: center;
  font-size: 12px;
  animation: ohcBlink 1s steps(2, end) infinite;
}

.ohc-empty {
  border: 1px dashed var(--ohc-fg);
  padding: 14px;
  text-align: center;
  font-size: 11px;
  opacity: 0.8;
}

.ohc-error {
  border: 1px solid #ff0033;
  color: #ff0033;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

/* ---- Panel: Perfil del bot ---- */
.ohc-bot-info {
  margin-bottom: 14px;
}

.ohc-bot-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ohc-bot-avatar {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ohc-fg);
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  flex: 0 0 auto;
}

.ohc-bot-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ohc-bot-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ohc-bot-sub {
  font-size: 10px;
  opacity: 0.85;
}

.ohc-bot-banner {
  height: 64px;
  border: 1px solid var(--ohc-fg);
  background-size: cover;
  background-position: center;
}

.ohc-bot-banner-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: 0.08em;
}
.ohc-bot-description { border-left:3px solid #fff; padding:8px 10px; margin-top:10px; font-size:11px; line-height:1.5; opacity:.9; white-space:pre-wrap; }
.ohc-bot-preview-wrap { margin-top:14px; }
.ohc-field-label { font-size:10px; letter-spacing:.1em; margin-bottom:6px; }
.ohc-profile-card { border:1px solid #fff; background:#080808; overflow:hidden; }
.ohc-profile-banner { height:72px; background-size:cover; background-position:center; }
.ohc-profile-body { display:flex; gap:10px; padding:10px; align-items:center; }
.ohc-profile-avatar { width:42px; height:42px; border:1px solid #fff; border-radius:50%; object-fit:cover; background:#111; }
.ohc-profile-body strong { font-size:13px; }
.ohc-profile-body p { margin:4px 0 0; font-size:10px; opacity:.8; white-space:pre-wrap; }
.ohc-preview-commands { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.ohc-preview-commands span { border:1px solid rgba(255,255,255,.45); padding:2px 5px; font-size:9px; }
.ohc-preview-commands em { font-size:9px; opacity:.65; }

/* El Owner Console necesita lectura, no una tabla comprimida: los paneles
   largos ocupan el ancho completo y conservan una sola columna estable. */
body.owner-mode .ohc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
body.owner-mode .ohc-panel { width: 100%; box-sizing: border-box; }
body.owner-mode .ohc-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  body.owner-mode .ohc-form-row { grid-template-columns: 1fr; }
}

/* ---- Panel: Alias de comandos ---- */
.ohc-command-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.ohc-command-row {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ohc-command-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ohc-command-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.ohc-command-name code {
  font-family: var(--ohc-font);
  font-size: 12px;
}

.ohc-cat-badge {
  opacity: 0.75;
}

.ohc-command-aliasinput {
  width: 100%;
  font-size: 11px;
  padding: 5px 7px;
}

/* ---- Accesibilidad: reducir movimiento ---- */
@media (prefers-reduced-motion: reduce) {
  .ohc-glitch::before,
  .ohc-glitch::after,
  .ohc-statusline,
  .ohc-loading,
  .ohc-modal-scan,
  .ohc-mini-skull,
  .owner-hacker::after,
  .owner-hacker::before {
    animation: none !important;
  }
}

/* ---- Fondo calavera pixel-art (discreta, 1-bit) ----
   Repite el motivo en esquinas/centro con opacidad muy
   baja para no estorbar la lectura del Owner Console. */
body.owner-mode::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%2010%22%3E%3Crect%20x%3D%224%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3C%2Fsvg%3E");
  background-size: 96px 80px;
  background-position: 16px 16px, right 16px bottom 16px;
  opacity: 0.05;
}

/* Los fondos reales del dashboard son dinámicos (galaxy-bg.js, deep-space.js,
   liquid-blobs.js según data-design): ya no hay reticulado estático encima. */
