/* Panel del cliente (8.1 mínimo): hereda la maqueta del panel oscuro y toma
   los colores corporativos del cliente como acento (se aplican desde app.js). */

.portal .chain-box {
  background: var(--surface);
  border: 2px dashed var(--brand);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.portal .chain-box h3 { margin: 0 0 6px; }
.portal .chain-box .code {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .08em;
  user-select: all;
}
.portal .chain-box .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.portal .chain-box .link {
  font-family: ui-monospace, monospace;
  font-size: .8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
}

.portal .store-meta { color: var(--muted); font-size: .9rem; font-weight: 600; }
.portal .empty-note { color: var(--muted); padding: 8px 0 2px; line-height: 1.5; }

.portal .sections-line { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }

/* Gestión de secciones (editar/eliminar/añadir desde el panel) */
.portal .section-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
}
.portal .section-row .sec-nm { font-weight: 700; font-size: .95rem; }
.portal .btn-xs { font-size: .74rem; padding: .35em .75em; }

/* Casilla del mando automático y casillas de enganche del formulario de sección */
.portal .check-line { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 12px 0; }
.portal .checks label.check-disabled { opacity: .55; }

/* Errores de los modales cuando van fuera de un .field */
.portal .modal .error { color: var(--danger); font-size: .88rem; font-weight: 600; min-height: 1.2em; margin-top: 8px; }

.portal .login-sent { color: var(--ok); font-weight: 600; margin-top: 12px; line-height: 1.4; }
.portal .dev-hint {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  font-size: .9rem;
  color: var(--accent);
  text-align: left;
}
.portal .dev-hint a { color: var(--accent); font-weight: 700; }
