:root {
  --bg: var(--color-bg, #020202);
  --panel: var(--panel-solido, #0b0b0c);
  --border: var(--color-fg, #000000);
  --text: var(--color-fg, #000000);
  --muted: color-mix(in srgb, var(--color-fg, #e9e9ea) 55%, transparent);
  --accent: var(--color-resaltado, #e9b64c);
  --row-hover: color-mix(in srgb, var(--color-bg, #0b0b0c) 85%, var(--color-fg, #e9e9ea) 15%);
  --panel-solido: #0b0b0c
}
html.tema-futurista .stage,
html.tema-futurista body {
  --panel: #6d6d6d;
  --border: color-mix(in srgb, var(--color-bg, #0b0b0c) 75%, black 25%);
  --text: #000000;
  --muted: color-mix(in srgb, black 65%, transparent);
  --accent: #000000;
  --row-hover: color-mix(in srgb, var(--color-bg, #0b0b0c) 88%, black 12%)
}
html.tema-futurista body {
  background-color: #3e3e3e!important
}
html.tema-futurista .floating-panel-left {
  background: #565454;
  border-right-color: #333
}
* {
  box-sizing: border-box
}
body {
  margin: 0;
  min-height: 90vh;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0
}
.stage {
  position: relative;
  width: 100%;
  max-width: 680px
}
.floating-icon {
  position: fixed;
  top: 24px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 900;
  transition: color .15s ease
}
.floating-icon svg {
  width: 22px;
  height: 22px
}
.floating-icon.near {
  color: var(--text)
}
.floating-icon-left {
  left: 32px
}
.floating-icon-right {
  right: 32px
}
.floating-icon-left.hidden {
  opacity: 0;
  pointer-events: none
}
.floating-panel-right {
  position: fixed;
  top: 50%;
  right: 32px;
  transform: translateY(-50%) translateX(8px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease,transform .2s ease;
  z-index: 899
}
.floating-panel-right.open {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto
}
.floating-panel-right .menu-item {
  background: 0 0;
  border: none;
  color: var(--muted);
  font-size: 18px;
  font-family: Georgia,'Times New Roman',serif;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: right;
  padding: 6px 0;
  cursor: pointer;
  transition: color .15s ease
}
.floating-panel-right .menu-item:focus-visible,
.floating-panel-right .menu-item:hover {
  color: var(--color-icons,var(--text));
  outline: 0
}
.floating-panel-right .menu-item.active {
  color: var(--accent);
  font-weight: 900;
  -webkit-text-stroke: 0.3px currentColor
}
.floating-panel-left {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--panel-solido,var(--color-bg,#0b0b0c));
  border-right: 1px solid var(--border);
  padding: 24px;
  gap: 16px;
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
  transition: opacity .2s ease,transform .2s ease;
  z-index: 899;
  box-shadow: 0 0 32px rgba(0,0,0,.4)
}
.floating-panel-left.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto
}
.search-panel-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0
}
.search-panel-input-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none
}
.search-panel-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 10px 10px 32px;
  border-radius: 6px;
  outline: 0;
  box-sizing: border-box
}
.search-panel-input:focus {
  border-color: var(--color-icons)
}
.search-panel-resultados {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto
}
.search-panel-resultados:empty {
  display: none
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease
}
.search-result-item:hover {
  background: var(--row-hover)
}
.search-result-vacio {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted)
}
@media (max-width:560px) {
  .floating-panel-left {
    width: 100%
  }
}
.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden
}
.panel-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border)
}
.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted)
}
.avatar svg {
  width: 28px;
  height: 28px
}
.nombre-usuario {
  font-size: 15px;
  color: var(--text);
  font-weight: 600
}
.panel-body {
  display: flex;
  flex-direction: column
}
.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
  cursor: pointer
}
.stat:last-child {
  border-bottom: none
}
a.stat:hover {
  background: var(--row-hover)
}
.stat-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500
}
.stat-value {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums
}
a.stat:hover .stat-value {
  color: var(--accent)
}
.estado {
  margin-top: 16px;
  font-family: SFMono-Regular,Consolas,monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: center
}
.config-wrap {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%)
}
.perfil-publico-wrap {
  position: absolute;
  right: 20px;
  top: 20px
}
.perfil-publico-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  transition: color .15s ease
}
.perfil-publico-link:focus-visible,
.perfil-publico-link:hover {
  color: var(--text)
}
.config-toggle {
  background: 0 0;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s ease,color .15s ease
}
.config-toggle:focus-visible,
.config-toggle:hover {
  background: var(--row-hover);
  color: var(--text);
  outline: 0
}
.config-toggle svg {
  width: 20px;
  height: 20px
}
.config-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  z-index: 1000
}
.config-modal-overlay.open {
  display: flex
}
.config-modal {
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden
}
.config-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border)
}
.config-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text)
}
.config-modal-close {
  background: 0 0;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s ease,color .15s ease
}
.config-modal-close:hover {
  background: var(--row-hover);
  color: var(--text)
}
.config-modal-body {
  display: flex;
  flex-direction: column;
  padding: 8px
}
.config-modal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: 0 0;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease
}
.config-modal-item:hover {
  background: var(--row-hover)
}
.config-modal-item.peligro {
  color: #f87171
}
.config-modal-item.peligro:hover {
  background: rgba(248,113,113,.12)
}
.toast-notificacion {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 320px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s ease,transform .25s ease;
  z-index: 1100
}
.toast-notificacion.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}
.notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4
}
.notif-item:last-child {
  border-bottom: none
}
.notif-item-texto {
  flex: 1
}
.notif-item-cerrar {
  background: 0 0;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0
}
.notif-item-cerrar:hover {
  color: var(--text)
}
.notif-vacio {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted)
}