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

:root {
  --bg: #02040a;
  --surface: #060d1a;
  --surface2: #0a1428;
  --accent: #00d4ff;
  --accent2: #7b4fff;
  --accent3: #00ff88;
  --warning: #ffb800;
  --danger: #ff3c5a;
  --text: #e8edf8;
  --muted: #2a3a5c;
  --muted2: #4a6080;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND ── */
.bg-layer {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(123,79,255,0.05) 0%, transparent 60%),
    var(--bg);
}

.grid-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── SCREENS ── */
.app { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; }
.screen { display: none; flex-direction: column; height: 100%; overflow: hidden; }
.screen.active { display: flex; }

/* ══ SETUP SCREEN ══ */
.setup-screen {
  align-items: center; justify-content: flex-start;
  padding: 12px 20px 24px; gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.logo-block { text-align: center; }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; letter-spacing: 0.4em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}

.tagline {
  font-size: 8px; letter-spacing: 0.6em;
  color: rgba(255,255,255,1.0); text-transform: uppercase; margin-top: 4px;
}

.version-tag {
  display: inline-block; margin-top: 10px;
  font-size: 10px; letter-spacing: 0.35em;
  color: #00ff88; border: 1px solid rgba(0,255,136,0.6);
  padding: 4px 14px; font-weight: 300;
  text-shadow: 0 0 10px rgba(0,255,136,0.5);
  box-shadow: 0 0 8px rgba(0,255,136,0.12);
}

.setup-card {
  width: 100%; max-width: 420px;
  background: rgba(6,13,26,0.95);
  border: 1px solid rgba(0,212,255,0.1);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px;
}

.card-title {
  font-size: 9px; letter-spacing: 0.5em;
  color: var(--accent); text-transform: uppercase;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  padding-bottom: 10px; margin-bottom: 4px;
}

.field-label {
  font-size: 8px; letter-spacing: 0.5em;
  color: rgba(255,255,255,1.0); text-transform: uppercase; margin-bottom: 5px;
}

.field-input {
  width: 100%; background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.1);
  color: var(--text); padding: 11px 13px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px; outline: none;
  transition: border-color 0.3s; border-radius: 0;
  -webkit-appearance: none;
}
.field-input:focus { border-color: rgba(0,212,255,0.4); }

.info-box {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 4px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: rgba(255,255,255,1.0); letter-spacing: 0.05em; }
.info-row span:last-child  { color: rgba(0,212,255,0.8); font-family: 'Josefin Sans', sans-serif; }
.field-hint {
  font-size: 10px; color: rgba(255,255,255,1.0);
  line-height: 1.7; letter-spacing: 0.03em;
}
.field-hint a { color: var(--accent); text-decoration: none; }

.btn-secondary {
  background: transparent; border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent); padding: 14px; font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; -webkit-tap-highlight-color: transparent;
}
.btn-secondary:active { background: rgba(0,212,255,0.1); }
.btn-renable {
  background: transparent; border: 1px solid rgba(255,180,0,0.5);
  color: rgba(255,180,0,0.9); padding: 2px 8px; font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; margin-left: 6px; vertical-align: middle;
}
.btn-renable:active { background: rgba(255,180,0,0.15); }
.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,79,255,0.08));
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.6em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  border-radius: 0; -webkit-appearance: none;
}
.btn-primary:active {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(123,79,255,0.15));
}

/* ══ MAIN SCREEN ══ */
.main-screen { padding: 0; }

/* Header */
.main-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--safe-top) + 8px) 20px 8px;
  border-bottom: 1px solid rgba(0,212,255,0.07);
  background: rgba(2,4,10,0.8); backdrop-filter: blur(10px);
  flex-shrink: 0;
}

/* Orb centrato nell'header */
.header-orb {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 14px; }

.logo-wrapper {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0px;
}
.main-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 300; letter-spacing: 0.4em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.main-version {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; font-weight: 400; letter-spacing: 0.15em;
  color: rgba(0,212,255,0.85);
  margin-left: 2px;
  text-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.system-status {
  display: none; gap: 6px; align-items: center;
}
@media (max-width: 640px) {
  .system-status { display: flex; margin-top: 4px; }
  .main-header { padding: calc(var(--safe-top) + 4px) 12px 4px; }
  .main-logo { font-size: 22px; }
}

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 8px var(--accent3);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-label {
  font-size: 8px; letter-spacing: 0.3em;
  color: var(--accent3); text-transform: uppercase;
}

.header-right { display: flex; gap: 10px; align-items: center; }

.power-badge {
  font-size: 11px; letter-spacing: 0;
  padding: 2px 4px; border-radius: 0;
  background: transparent;
  border: none !important;
  text-transform: none;
  line-height: 1.4;
}

.header-backup-group {
  display: flex; flex-direction: row; align-items: center;
}
@media (max-width: 640px) {
  .header-backup-group { flex-direction: column; gap: 14px; }
  .header-backup-group .settings-btn { padding: 2px 8px; font-size: 13px; }
}
.settings-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.75); font-size: 16px;
  cursor: pointer; padding: 8px 14px 8px 8px;
  transition: color 0.3s;
}
.settings-btn:hover { color: #fff; }
.settings-btn:active { color: var(--accent); }

.header-install-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.6); font-size: 14px;
  cursor: pointer; padding: 8px 4px 8px 4px;
  transition: color 0.3s; line-height: 1;
}
.header-install-btn:hover { color: var(--accent); }
.header-install-btn.hidden { display: none; }

.mode-badge {
  font-size: 15px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--muted2); cursor: pointer;
  transition: all 0.3s; border-radius: 50%;
  background: transparent; padding: 0;
}
.mode-badge:active { border-color: var(--accent); color: var(--accent); }
.mode-badge.text-mode {
  color: var(--accent3);
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.05);
  box-shadow: 0 0 8px rgba(0,255,136,0.15);
}

/* ── MAIN BODY ── */
.content-row {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; overflow: hidden;
}
.left-column {
  display: flex; flex-direction: column;
  flex-shrink: 0;
}
.main-body {
  display: flex; flex-direction: column;
  flex-shrink: 0; overflow: hidden;
  padding: 0 16px 0;
}

/* ── ORB SECTION ── */
.orb-section {
  display: flex; flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 4px 6px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Colonne laterali agenti e servizi — larghezza fissa */
.dock-left {
  display: flex; flex-direction: column; gap: 6px;
  flex-shrink: 0;
  width: 115px;
}

/* Pulsanti dock panel (Agenti / Progetti) */
.dock-panel-btn {
  width: 100%; flex: 1;
  background: rgba(6,13,26,0.8);
  border: 1px solid rgba(0,212,255,0.08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; transition: border-color 0.2s;
  padding: 8px 4px;
  -webkit-tap-highlight-color: transparent;
}
.dock-panel-btn:active { border-color: rgba(0,212,255,0.4); background: rgba(0,212,255,0.04); }
.dpb-icon  { font-size: 22px; }
.dpb-title { font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase;
             color: rgba(255,255,255,0.85); font-family: 'Josefin Sans', sans-serif; }
.dpb-count { font-size: 8px; color: var(--accent); font-family: 'Share Tech Mono', monospace; }

/* Overlay pannello agenti / progetti */
.dock-panel-overlay {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: rgba(6,13,26,0.97);
  border-top: 1px solid rgba(0,212,255,0.15);
  padding: 0 12px 20px;
  max-height: 75vh; overflow-y: auto;
  display: none;
}
.dock-panel-overlay.visible { display: block; }
.dpo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px; border-bottom: 1px solid rgba(0,212,255,0.08);
  margin-bottom: 12px;
}
.dpo-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
             color: rgba(255,255,255,0.9); font-family: 'Josefin Sans', sans-serif; }
.dpo-close {
  background: transparent; border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent); font-size: 18px; width: 32px; height: 32px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.dpo-agents-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.dpo-projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
/* Card agente nell'overlay — più grandi delle dock-card */
.dpo-agents-grid .dock-agent-card {
  width: auto; padding: 10px 6px;
}
.dpo-agents-grid .dock-agent-card .agent-icon { font-size: 22px; }
.dpo-agents-grid .dock-agent-card .agent-name { font-size: 8px; }
.dpo-agents-grid .dock-agent-card .agent-status-dot { width: 5px; height: 5px; }
/* Chip progetto nell'overlay — più grande */
.dpo-proj-card {
  width: auto !important; padding: 14px 10px !important;
}
.dpo-proj-card .proj-icon { font-size: 28px; }
.dpo-proj-card .proj-name { font-size: 9px; margin-top: 4px; }
.dpo-proj-card .proj-status { font-size: 8px; margin-top: 2px; }

.dock-right {
  display: none;
}

.qcmd-services {
  display: flex; flex-direction: row; gap: 5px;
  margin-left: auto; flex-shrink: 0;
  align-items: center;
}

.dock-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  flex: 1;
  flex-shrink: 0;
  min-width: 0;
}

.dock-label {
  font-size: 8px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.9);
  font-weight: bold;
  text-transform: uppercase;
  text-align: center; margin-bottom: 2px;
}

/* Agenti di sistema — bordo ciano più marcato */
.dock-agent-card.system-agent {
  border-color: rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.04);
}

/* Barra progetti (desktop) */
.projects-section {
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 4px 4px 2px; flex-shrink: 0;
  margin-top: 4px; margin-left: 16px;
  width: 100%; box-sizing: border-box;
}
.projects-label { text-align: center; width: 115px; margin-bottom: 4px; margin-left: 50px; }
.projects-bar {
  display: flex; flex-direction: row;
  align-items: center; justify-content: flex-start;
  gap: 5px; flex-shrink: 0; width: 100%; overflow-x: hidden;
}

/* project-chip usato nei due contesti: desktop barra + mobile overlay */
.project-chip {
  background: rgba(6,13,26,0.8);
  border: 1px solid rgba(0,212,255,0.5);
  padding: 5px 4px; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  transition: all 0.3s;
  width: 52px; flex-shrink: 0;
}
.project-chip:active { border-color: rgba(0,212,255,0.6); }
.proj-icon { font-size: 16px; }
.proj-name {
  font-size: 6px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.95); text-transform: uppercase;
  text-align: center; font-family: 'Josefin Sans', sans-serif;
}
.proj-status {
  font-size: 6px; letter-spacing: 0.05em;
  text-transform: uppercase; font-family: 'Share Tech Mono', monospace;
  padding: 1px 4px; border-radius: 2px;
  background: rgba(0,212,255,0.08); color: var(--accent);
}
.proj-status.realizzazione { color: var(--warning); background: rgba(255,184,0,0.1); }
.proj-status.beta { color: var(--accent3); background: rgba(0,255,136,0.1); }
.proj-status.completo { color: var(--accent3); background: rgba(0,255,136,0.15); }

/* ❤ Orb cuore anatomico — appare durante esecuzione/speaking */
.orb-container.thinking .orb-outer,
.orb-container.coordinating .orb-outer,
.orb-container.executing .orb-outer,
.orb-container.speaking .orb-outer { opacity: 0 !important; transition: opacity 0.3s; }

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.18); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.12); }
  70%  { transform: scale(1); }
}

.orb-heart {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 36px; width: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.orb-container.thinking .orb-heart,
.orb-container.coordinating .orb-heart,
.orb-container.executing .orb-heart,
.orb-container.speaking .orb-heart {
  opacity: 1;
  animation: heartbeat 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(200,50,50,0.5));
}

/* Nascondi simbolo testo durante stati cuore */
.orb-container.thinking .orb-symbol,
.orb-container.coordinating .orb-symbol,
.orb-container.executing .orb-symbol,
.orb-container.speaking .orb-symbol {
  opacity: 0 !important;
  animation: none !important;
}

/* 🧠 Brain sotto l'orb — quando agente lavora */
.brain-indicator {
  font-size: 22px; opacity: 0; transition: opacity 0.4s;
  text-align: center; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.brain-indicator.active { opacity: 1; }

@keyframes neural-pulse {
  0%   { filter: drop-shadow(0 0 2px rgba(123,79,255,0.3)); transform: scale(1); }
  25%  { filter: drop-shadow(0 0 8px rgba(0,212,255,0.8)); transform: scale(1.08); }
  50%  { filter: drop-shadow(0 0 12px rgba(123,79,255,0.9)); transform: scale(1.05); }
  75%  { filter: drop-shadow(0 0 6px rgba(0,255,136,0.7)); transform: scale(1.1); }
  100% { filter: drop-shadow(0 0 2px rgba(123,79,255,0.3)); transform: scale(1); }
}
.brain-indicator.active {
  animation: neural-pulse 1.5s ease-in-out infinite;
}

/* Card agente nella dock */
.dock-agent-card {
  background: rgba(6,13,26,0.8);
  border: 1px solid rgba(0,212,255,0.5);
  padding: 5px 4px;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  cursor: pointer; transition: border-color 0.3s, background 0.3s;
  width: 52px;
}
.dock-agent-card:active { border-color: rgba(0,212,255,0.6); }
.dock-agent-card .agent-icon { font-size: 16px; }
.dock-agent-card .agent-name {
  font-size: 6px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.95);
  text-align: center;
}
.dock-agent-card .agent-status-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(0,212,255,0.3);
}
.dock-agent-card.busy {
  border-color: rgba(255,184,0,0.8);
  animation: agent-beat 1.4s ease-in-out infinite;
}
.dock-agent-card.busy .agent-status-dot {
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
  animation: blink 1s ease-in-out infinite;
}

/* Pulsante mobile Agenti — pulse quando un agente è attivo */
.dock-panel-btn.busy {
  animation: agent-beat 1.4s ease-in-out infinite;
}

@keyframes agent-beat {
  0%, 100% { box-shadow: 0 0 0px 0px rgba(255,184,0,0); }
  40%       { box-shadow: 0 0 10px 4px rgba(255,184,0,0.45); }
}

/* Card servizio nella dock */
.dock-service-card {
  background: rgba(6,13,26,0.8);
  border: 1px solid rgba(0,212,255,0.18);
  padding: 5px 6px;
  display: flex; flex-direction: row;
  align-items: center; gap: 4px;
  width: 76px;
}
.dock-service-card .svc-icon { font-size: 12px; }
.dock-service-card .svc-name {
  font-size: 6px; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(255,255,255,0.95);
}
.dock-service-card .svc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,60,90,0.6); margin-left: auto; flex-shrink: 0;
}
.dock-service-card.active .svc-dot { background: var(--accent3); }

.orb-container {
  position: relative; width: 55px; height: 55px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

.pulse-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.06);
  animation: pulse-idle 3s ease-out infinite;
  pointer-events: none;
}
.pulse-ring:nth-child(1) { inset: -8px; animation-delay: 0s; }
.pulse-ring:nth-child(2) { inset: -16px; animation-delay: 1s; }
.pulse-ring:nth-child(3) { inset: -24px; animation-delay: 2s; }

@keyframes pulse-idle {
  0% { opacity: 0; transform: scale(0.93); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.05); }
}

.orb-container.listening .pulse-ring { border-color: rgba(0,212,255,0.2); animation: pulse-active 1s ease-out infinite; }
.orb-container.speaking .pulse-ring { border-color: rgba(123,79,255,0.2); animation: pulse-active 0.8s ease-out infinite; }
.orb-container.approval .pulse-ring { border-color: rgba(255,184,0,0.3); animation: pulse-active 0.6s ease-out infinite; }
.orb-container.executing .pulse-ring { border-color: rgba(0,255,136,0.2); animation: pulse-active 1.2s ease-out infinite; }
.orb-container.coordinating .pulse-ring { border-color: rgba(0,212,255,0.15); animation: pulse-active 0.5s ease-out infinite; }

@keyframes pulse-active {
  0% { opacity: 0; transform: scale(0.88); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1); }
}

.orb-outer {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(0,212,255,0.15) 0%, rgba(123,79,255,0.06) 50%, rgba(2,4,10,0.7) 100%
  );
  border: 1px solid rgba(0,212,255,0.12);
  transition: all 0.5s ease;
}

.orb-container.listening .orb-outer {
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.35) 0%, rgba(0,212,255,0.1) 50%, rgba(2,4,10,0.5) 100%);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 50px rgba(0,212,255,0.2), inset 0 0 30px rgba(0,212,255,0.08);
}
.orb-container.speaking .orb-outer {
  background: radial-gradient(circle at 30% 30%, rgba(123,79,255,0.4) 0%, rgba(123,79,255,0.12) 50%, rgba(2,4,10,0.5) 100%);
  border-color: rgba(123,79,255,0.4);
  box-shadow: 0 0 50px rgba(123,79,255,0.2), inset 0 0 30px rgba(123,79,255,0.08);
}
.orb-container.approval .orb-outer {
  background: radial-gradient(circle at 30% 30%, rgba(255,184,0,0.4) 0%, rgba(255,184,0,0.12) 50%, rgba(2,4,10,0.5) 100%);
  border-color: rgba(255,184,0,0.5);
  box-shadow: 0 0 60px rgba(255,184,0,0.25), inset 0 0 30px rgba(255,184,0,0.1);
}
.orb-container.executing .orb-outer {
  background: radial-gradient(circle at 30% 30%, rgba(0,255,136,0.25) 0%, rgba(0,255,136,0.08) 50%, rgba(2,4,10,0.5) 100%);
  border-color: rgba(0,255,136,0.35);
  box-shadow: 0 0 40px rgba(0,255,136,0.15);
}
.orb-container.coordinating .orb-outer {
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.2) 0%, rgba(123,79,255,0.1) 50%, rgba(2,4,10,0.5) 100%);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 0 40px rgba(0,212,255,0.1), 0 0 40px rgba(123,79,255,0.1);
}

.orb-inner {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0,212,255,0.08), var(--surface) 70%);
  border: 1px solid rgba(0,212,255,0.08);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: all 0.5s ease;
}

.orb-spin {
  position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(0,212,255,0.5) 25%, transparent 50%, rgba(123,79,255,0.5) 75%, transparent 100%);
  opacity: 0; animation: spin 3s linear infinite; transition: opacity 0.4s;
}
.orb-container.listening .orb-spin,
.orb-container.speaking .orb-spin,
.orb-container.approval .orb-spin { opacity: 1; }
/* orb-spin nascosto durante ❤ */
.orb-container.thinking .orb-spin { opacity: 0 !important; }
.orb-container.executing .orb-spin,
.orb-container.coordinating .orb-spin,
.orb-container.speaking .orb-spin { opacity: 0 !important; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orb-symbol {
  font-size: 32px; transition: all 0.4s;
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.5));
}
.orb-container.speaking .orb-symbol { filter: drop-shadow(0 0 10px rgba(123,79,255,0.6)); }
.orb-container.approval .orb-symbol { filter: drop-shadow(0 0 14px rgba(255,184,0,0.8)); }
.orb-container.executing .orb-symbol { filter: drop-shadow(0 0 10px rgba(0,255,136,0.6)); }
.orb-container.coordinating .orb-symbol { filter: drop-shadow(0 0 10px rgba(0,212,255,0.4)) drop-shadow(0 0 20px rgba(123,79,255,0.4)); }

.status-area { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.status-text {
  font-size: 9px; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--muted2);
  transition: color 0.4s; text-align: center;
}
.status-text.listening { color: var(--accent); }
.status-text.thinking { color: rgba(0,212,255,0.5); }
.status-text.speaking { color: var(--accent2); }
.status-text.error { color: var(--danger); }
.status-text.approval { color: var(--warning); }
.status-text.executing { color: var(--accent3); }
.status-text.coordinating { color: var(--accent); }

.waveform {
  display: flex; gap: 3px; align-items: center;
  height: 20px; opacity: 0; transition: opacity 0.3s;
}
.waveform.active { opacity: 1; }
.waveform span {
  display: block; width: 2px; border-radius: 2px;
  background: var(--accent2);
  animation: wave 0.9s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 5px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 18px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 12px; animation-delay: 0.1s; }
.waveform span:nth-child(5) { height: 5px; animation-delay: 0s; }
.waveform span:nth-child(6) { height: 16px; animation-delay: 0.15s; }
.waveform span:nth-child(7) { height: 8px; animation-delay: 0.05s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ── AGENTS GRID ── */
.agents-section { display: none; } /* dock integrata nell'orb-section */

.agent-card {
  background: rgba(6,13,26,0.8);
  border: 1px solid rgba(0,212,255,0.18);
  padding: 8px 6px;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.agent-card:active { border-color: rgba(0,212,255,0.25); }
.agent-card.active-agent {
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.04);
}
.agent-card.busy-agent {
  border-color: rgba(255,184,0,0.3);
  background: rgba(255,184,0,0.03);
}

.agent-icon { font-size: 16px; }

.agent-name {
  font-size: 7px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.95);
  text-align: center; line-height: 1.3;
}

.agent-status-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
  transition: all 0.3s;
}
.agent-card.active-agent .agent-status-dot {
  background: var(--accent3);
  box-shadow: 0 0 6px var(--accent3);
  animation: blink 1.5s infinite;
}
.agent-card.busy-agent .agent-status-dot {
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
  animation: blink 0.8s infinite;
}

/* ── APPROVAL PANEL — modal overlay fisso ── */
.approval-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
  padding: 20px;
}
.approval-panel.visible {
  display: flex;
}
.approval-panel > .approval-inner {
  background: rgba(6,13,26,0.99);
  border: 1px solid rgba(255,184,0,0.4);
  padding: 24px 20px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.25s ease;
  box-shadow: 0 0 40px rgba(255,184,0,0.15);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.approval-header {
  font-size: 13px; letter-spacing: 0.15em;
  color: var(--warning); text-transform: uppercase;
  font-family: 'Josefin Sans', sans-serif; font-weight: 700;
  margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}

.approval-section {
  margin-bottom: 14px;
}

.approval-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px; letter-spacing: 0.4em;
  color: var(--warning);
  text-transform: uppercase; margin-bottom: 4px;
}

.approval-action {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; color: var(--text);
  line-height: 1.5;
}

.approval-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; color: var(--text);
  line-height: 1.4;
}

.approval-files {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--accent3);
  white-space: pre-wrap; word-break: break-all;
}

.approval-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; color: var(--text);
  margin-bottom: 12px;
}

.approval-buttons { display: flex; gap: 8px; }

/* Nega = verde (azione sicura), Autorizza = rosso (azione rischiosa) */
.btn-approve {
  flex: 1; padding: 12px;
  background: rgba(220,50,50,0.25);
  border: 1px solid rgba(220,50,50,0.7);
  color: #ff5252;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; letter-spacing: 0.4em; font-weight: 700;
  text-transform: uppercase; cursor: pointer;
  border-radius: 0; transition: all 0.2s;
}
.btn-approve:hover { background: rgba(220,50,50,0.4); border-color: #ff5252; }
.btn-approve:active { background: rgba(220,50,50,0.55); }

.btn-reject {
  flex: 1; padding: 12px;
  background: rgba(50,200,80,0.2);
  border: 1px solid rgba(50,200,80,0.7);
  color: #00e676;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; letter-spacing: 0.4em; font-weight: 700;
  text-transform: uppercase; cursor: pointer;
  border-radius: 0; transition: all 0.2s;
}
.btn-reject:hover { background: rgba(50,200,80,0.35); border-color: #00e676; }
.btn-reject:active { background: rgba(50,200,80,0.5); }

.approval-cmd {
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  background: rgba(0,0,0,0.35); border-radius: 6px; padding: 8px 12px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  line-height: 1.6; margin: 4px 0; color: #ef5350;
  border-left: 2px solid rgba(220,60,60,0.5);
}

/* ── ACTIVITY LOG ── */
.log-wrapper {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  margin-left: 309px;
  margin-right: 52px;
}
.activity-log {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  margin-bottom: 8px;
  background: rgba(6,13,26,0.6);
  border: 1px solid rgba(0,212,255,0.5);
  padding: 10px 12px;
  scrollbar-width: thin; scrollbar-color: var(--muted) transparent;
}

.log-empty {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; color: var(--muted);
  font-style: italic; text-align: center;
  padding: 20px 0;
}

.log-entry {
  display: flex; gap: 8px; margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.log-source {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; min-width: 56px;
  padding-top: 2px; flex-shrink: 0;
}
.log-source.marco { color: rgba(0,212,255,0.95); }
.log-source.boss { color: rgba(0,212,255,0.95); }
.log-source.suimi { color: rgba(155,100,255,0.95); }
.log-source.agent { color: rgba(0,255,136,0.9); }
.log-source.system { color: rgba(255,184,0,0.85); }

.log-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 300;
  color: rgba(232,237,248,0.85); line-height: 1.5; flex: 1;
  white-space: pre-wrap;
}
.log-text.marco { color: rgba(0,212,255,0.9); font-family: 'Josefin Sans', sans-serif; font-size: 15px; }
.log-text.system { color: rgba(255,184,0,0.7); font-family: 'Share Tech Mono', monospace; font-size: 13px; }

/* ── LOG MARKUP — intestazioni report (### e **titolo**) ── */
.log-h1 {
  display: block;
  font-weight: bold;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00c97a;
  margin: 8px 0 2px 0;
}
.log-h1:first-child { margin-top: 2px; }
.log-h2 {
  font-weight: bold;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.log-h2-ok   { color: #ffffff; }
.log-h2-warn { color: #ffcc00; }
.log-h2-crit { color: #ff3c5a; animation: log-h2-blink 0.8s step-start infinite; }
@keyframes log-h2-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── LOG TABLE — FIX #23: tabelle markdown nel log ── */
.log-table {
  border-collapse: collapse;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  margin: 6px 0;
  width: 100%;
  white-space: normal;
}
.log-table th, .log-table td {
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 8px;
  text-align: left;
}
.log-table th {
  color: #00c97a;
  font-weight: bold;
  background: rgba(0,212,255,0.05);
}
.log-table td {
  color: rgba(232,237,248,0.85);
}
/* ── LOG BULLET — FIX #23 ── */
.log-li {
  display: block;
  padding-left: 12px;
}

/* ── BOTTOM CONTROLS ── */
.bottom-controls {
  display: flex; gap: 6px;
  padding: 8px 0 calc(var(--safe-bottom) + 10px);
  flex-shrink: 0;
}

.ctrl-btn {
  flex: 1; background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.95); padding: 9px 6px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px; font-weight: 300;
  letter-spacing: 0.3em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  border-radius: 0; -webkit-appearance: none;
}
.ctrl-btn:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.ctrl-btn:active { border-color: var(--accent); color: var(--accent); }
.ctrl-btn.danger { color: rgba(255,255,255,0.95); border-color: rgba(255,60,90,0.6); }
.ctrl-btn.danger:hover { border-color: rgba(255,60,90,0.9); color: #fff; }
.ctrl-btn.danger:active { border-color: var(--danger); color: var(--danger); }

/* ── QUICK COMMANDS BAR (v7.0 Rev 1.3) ── */
.quick-cmds {
  display: flex; gap: 5px; flex-wrap: nowrap;
  padding: 6px 8px; flex-shrink: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(0,212,255,0.07);
  scrollbar-width: none;
}
.quick-cmds::-webkit-scrollbar { display: none; }
.qcmd {
  background: transparent;
  border: 1px solid rgba(0,212,255,0.35);
  color: rgba(0,212,255,0.95);
  padding: 4px 9px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 7px; font-weight: 200;
  letter-spacing: 0.25em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
  border-radius: 2px; white-space: nowrap;
  -webkit-appearance: none;
}
.qcmd:active, .qcmd:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(0,212,255,0.08);
}

/* ── FILE PREVIEW BAR ── */
.file-preview-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 4px 0 4px; flex-shrink: 0; min-height: 0;
}

.file-chip {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 4px 8px; max-width: 130px;
  animation: fadeIn 0.2s ease;
}

.file-chip-thumb {
  width: 24px; height: 24px; object-fit: cover;
  border: 1px solid rgba(0,212,255,0.1); flex-shrink: 0;
}

.file-chip-icon { font-size: 14px; flex-shrink: 0; }

.file-chip-name {
  font-size: 9px; letter-spacing: 0.04em;
  color: var(--accent); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1;
}

.file-chip-remove {
  background: none; border: none;
  color: var(--muted2); font-size: 12px;
  cursor: pointer; padding: 0; flex-shrink: 0; line-height: 1;
}
.file-chip-remove:active { color: var(--danger); }

.file-send-bar {
  display: none; gap: 8px; align-items: center;
  padding: 4px 0; flex-shrink: 0;
}
.file-send-bar.visible { display: flex !important; }

.file-send-input {
  flex: 1; background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.1);
  color: var(--text); padding: 9px 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; outline: none; border-radius: 0;
  -webkit-appearance: none;
}
.file-send-input::placeholder { color: var(--muted2); }
.file-send-input:focus { border-color: rgba(0,212,255,0.3); }

.file-send-btn {
  padding: 9px 14px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.file-send-btn:active { background: rgba(0,212,255,0.18); }

.log-image {
  max-width: 120px; max-height: 80px;
  border: 1px solid rgba(0,212,255,0.15);
  margin-top: 4px; display: block;
}

/* ── TEXT INPUT BAR ── */
.text-input-bar {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 6px 0 4px; flex-shrink: 0;
  border-top: 1px solid rgba(0,212,255,0.06);
}

.text-input {
  flex: 1; background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.5);
  color: var(--text); padding: 12px 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 200;
  letter-spacing: 0.03em;
  outline: none; border-radius: 0;
  resize: none; line-height: 1.6;
  min-height: 72px;
  -webkit-appearance: none;
  transition: border-color 0.3s;
}
.text-input::placeholder { color: rgba(255,255,255,0.55); }
.text-input:focus { border-color: rgba(0,212,255,0.3); }

.text-input-actions {
  display: flex; flex-direction: column; gap: 4px;
}

.attach-btn {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent); padding: 8px 10px;
  font-size: 14px; cursor: pointer; border-radius: 0;
  transition: all 0.2s; line-height: 1;
}
.attach-btn:active { border-color: var(--accent); color: var(--accent); }

.send-btn {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent); padding: 8px 12px;
  font-size: 16px; cursor: pointer; border-radius: 0;
  transition: all 0.2s; line-height: 1;
}
.send-btn:active { background: rgba(0,212,255,0.25); }

.log-copy-fixed {
  position: absolute; right: -48px; bottom: 8px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent); font-size: 16px;
  width: auto; height: auto;
  padding: 8px 10px 8px 12px; border-radius: 0; line-height: 1;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.log-copy-fixed:active { border-color: var(--accent); color: var(--accent); }

/* ── MEMORY PANEL ── */
.memory-panel {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,212,255,0.1);
  display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);
}

.memory-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  padding-bottom: 12px; margin-bottom: 12px;
}

.memory-close-btn {
  background: none; border: none;
  color: var(--muted2); font-size: 20px;
  cursor: pointer; padding: 0; line-height: 1;
}

.memory-content {
  flex: 1; overflow-y: auto;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: rgba(232,237,248,0.7);
  line-height: 1.8; padding: 8px 0;
  white-space: pre-wrap; word-break: break-word;
  scrollbar-width: thin; scrollbar-color: var(--muted) transparent;
}

.memory-actions {
  display: flex; gap: 8px; padding-top: 12px;
  border-top: 1px solid rgba(0,212,255,0.08);
  flex-wrap: wrap;
}

.memory-btn {
  flex: 1; padding: 10px 8px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
  min-width: 80px;
}
.memory-btn:active { background: rgba(0,212,255,0.15); }
.memory-btn.danger-btn { color: var(--danger); border-color: rgba(255,60,90,0.2); background: rgba(255,60,90,0.05); }
.memory-btn.danger-btn:active { background: rgba(255,60,90,0.15); }

.hidden { display: none !important; }

/* ── CRONOLOGIA COMANDI (v7.0 Rev 1.4) ── */
.history-panel {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2,8,20,0.96);
  display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);
}
.history-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  padding-bottom: 12px; margin-bottom: 12px;
}
.history-list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  scrollbar-width: thin; scrollbar-color: var(--muted) transparent;
}
.history-item {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.08);
  padding: 10px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px; color: rgba(232,237,248,0.8);
  cursor: pointer; transition: all 0.2s;
  word-break: break-word;
}
.history-item:active, .history-item:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.25);
  color: var(--text);
}
.history-item .history-ts {
  font-size: 9px; color: var(--muted2);
  letter-spacing: 0.1em; display: block; margin-bottom: 3px;
}
.history-empty {
  color: var(--muted2); font-size: 11px; text-align: center;
  padding: 32px 0; letter-spacing: 0.2em;
}
.history-footer {
  display: flex; gap: 8px; padding-top: 12px;
  border-top: 1px solid rgba(0,212,255,0.08);
}
.history-btn {
  flex: 1; padding: 10px 8px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.history-btn:active { background: rgba(0,212,255,0.15); }
.history-btn.danger { color: var(--danger); border-color: rgba(255,60,90,0.2); }

/* Toast notifiche (v7.0 Rev 1.4) */
.toast {
  padding: 10px 18px; border-radius: 6px; font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; letter-spacing: 0.08em; color: #fff; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}
.toast.toast-show { opacity: 1; transform: translateY(0); }
.toast.toast-info    { background: rgba(0,212,255,0.18); border: 1px solid rgba(0,212,255,0.3); }
.toast.toast-success { background: rgba(0,255,140,0.15); border: 1px solid rgba(0,255,140,0.3); }
.toast.toast-warning { background: rgba(255,180,0,0.15); border: 1px solid rgba(255,180,0,0.3); color: rgba(255,220,80,1); }
.toast.toast-error   { background: rgba(255,60,90,0.15); border: 1px solid rgba(255,60,90,0.3); color: rgba(255,120,130,1); }

/* ════════════════════════════════════════════════════════════════
   ██  SOLO DESKTOP  (min-width: 641px)
   ════════════════════════════════════════════════════════════════
   ATTENZIONE: modificare SOLO qui per cambiamenti esclusivi desktop.
   NON modificare le regole base o il blocco @media (max-width: 640px)
   per evitare di alterare il layout smartphone.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 641px) {

  /* Dock sinistra più larga per 3 colonne agenti */
  .dock-left { width: 200px; }

  /* ── ORB nell'header (desktop) ── */
  .dock-center { display: none; }

  /* Simbolo più piccolo per l'header */
  .orb-symbol { font-size: 22px; }
  .orb-container.thinking .orb-symbol,
  .orb-container.coordinating .orb-symbol,
  .orb-container.executing .orb-symbol { font-size: 26px; }
  /* Cuore più piccolo nell'header desktop */
  .orb-heart { height: 26px; }

  /* Agenti — card più grande, testo più grande */
  .dock-agent-card {
    width: 64px;
    padding: 7px 5px;
    border-color: rgba(0,212,255,0.5);
    background: rgba(6,13,26,0.9);
  }
  .dock-agent-card:hover {
    border-color: rgba(0,212,255,0.7);
    background: rgba(0,212,255,0.06);
  }
  .dock-agent-card .agent-icon { font-size: 20px; }
  .dock-agent-card .agent-name {
    font-size: 7.5px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.12em;
  }
  .dock-agent-card.system-agent { border-color: rgba(0,212,255,0.5); }

  /* Servizi — card più grande */
  .dock-service-card {
    width: 90px;
    padding: 6px 8px;
    border-color: rgba(0,212,255,0.28);
  }
  .dock-service-card:hover { border-color: rgba(0,212,255,0.7); }
  .dock-service-card .svc-icon { font-size: 14px; }
  .dock-service-card .svc-name {
    font-size: 7.5px;
    color: #fff;
    font-weight: 300;
  }

  /* Progetti — card più grande */
  .project-chip {
    width: 64px;
    padding: 7px 5px;
    border-color: rgba(0,212,255,0.5);
  }
  .project-chip:hover { border-color: rgba(0,212,255,0.7); }
  .proj-icon { font-size: 18px; }
  .proj-name {
    font-size: 7.5px;
    color: #fff;
    font-weight: 300;
  }

  /* Quick commands — font più grande, bordo più marcato */
  .qcmd {
    font-size: 9px;
    padding: 5px 12px;
    border-color: rgba(0,212,255,0.5);
    color: #00d4ff;
    font-weight: 300;
    letter-spacing: 0.2em;
  }
  .qcmd:hover {
    border-color: #00d4ff;
    color: #fff;
    background: rgba(0,212,255,0.1);
    box-shadow: 0 0 8px rgba(0,212,255,0.15);
  }
  .quick-cmds {
    border-bottom-color: rgba(0,212,255,0.12);
    padding: 7px 10px;
    gap: 7px;
  }

  /* Status bar — desktop: centro barra tra pulsanti e servizi */
  .quick-cmds > .status-area {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  .quick-cmds > .status-area .status-text {
    font-size: 9px;
    letter-spacing: 0.4em;
  }
  /* "Coordinando agenti..." — colore più evidente con glow */
  .quick-cmds > .status-area .status-text.coordinating {
    color: #00d4ff;
    text-shadow: 0 0 12px rgba(0,212,255,0.7);
    letter-spacing: 0.45em;
  }
  /* Altri stati visibili */
  .quick-cmds > .status-area .status-text.thinking {
    color: rgba(0,212,255,0.7);
    text-shadow: 0 0 8px rgba(0,212,255,0.4);
  }
  .quick-cmds > .status-area .status-text.speaking {
    color: var(--accent2);
    text-shadow: 0 0 10px rgba(255,149,0,0.5);
  }
  .quick-cmds > .status-area .status-text.executing {
    color: var(--accent3);
    text-shadow: 0 0 8px rgba(0,255,136,0.4);
  }

  /* ── 2-COLONNE DESKTOP: left-column (agenti+progetti) + log-wrapper ── */
  .content-row {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
  }
  .left-column {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 330px;
  }
  .log-wrapper {
    margin-left: 4px;
    margin-top: 15px;
    margin-right: 48px;
    flex: 1;
  }
  .projects-section { margin-left: 0; padding-left: 19px; }
  .text-input-bar { margin-left: 5px; }
}

/* ══ RESPONSIVE: desktop default, mobile override ══ */

/* Desktop/tablet: griglia agenti visibile, pulsanti mobile nascosti, progetti visibili */
.dock-agents-desktop { display: block; }
.dock-agents-mobile  { display: none; }
.mobile-services-bar { display: none; }

/* ════════════════════════════════════════════════════════════════
   ██  SOLO SMARTPHONE  (max-width: 640px)
   ════════════════════════════════════════════════════════════════
   ATTENZIONE: modificare SOLO qui per cambiamenti esclusivi mobile.
   NON modificare le regole base o il blocco @media (min-width: 641px)
   per evitare di alterare il layout desktop.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .dock-agents-desktop { display: none; }
  .dock-right { display: none; }
  .mobile-services-bar {
    display: flex; flex-direction: row;
    gap: 5px; padding: 4px 6px;
    flex-shrink: 0;
  }
  .mobile-services-bar .dock-service-card { flex: 1; min-width: 0; width: auto; flex-shrink: 1; }
  .qcmd-services { display: none; }
  .quick-cmds > .status-area { display: none; }
  .dock-agents-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
  }
  .projects-section { display: none; }

  /* Pulsanti quadrati — stessa dimensione dei dock-agent-card (52px) */
  .dock-panel-btn {
    aspect-ratio: 1;
    width: 100%;
    padding: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    border-color: rgba(0,212,255,0.35);
  }
  .dock-agent-card { border-color: rgba(0,212,255,0.35); }
  .dock-agent-card.system-agent { border-color: rgba(0,212,255,0.35); }
  .dpb-icon  { font-size: 16px; }
  .dpb-title { font-size: 6px; letter-spacing: 0.1em; }
  .log-wrapper { margin-left: 9px; margin-right: 50px; }
  .log-copy-fixed {
    right: -50px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 0;
    line-height: 1;
    display: inline-flex;
  }
  .text-input-bar { margin-left: 6px; }
  .bottom-controls { padding-left: 12px; padding-right: 12px; }
  .ctrl-btn { padding: 6px 4px; font-size: 7px; }
  .main-header { padding: calc(var(--safe-top) + 3px) 20px 3px; }
  .orb-container { width: 35px; height: 35px; }
  .orb-inner { width: 26px; height: 26px; }
  .orb-heart { height: 18px; }
  .header-right { gap: 4px; }
  .header-right .settings-btn { font-size: 13px; padding: 4px 5px; }
  .header-right .header-backup-group .settings-btn { font-size: 12px; padding: 1px 4px; }
  .power-badge { font-size: 9px; }
}

/* Install banner */
.install-banner {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 10px);
  left: 12px; right: 12px;
  background: rgba(6,13,26,0.97);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 12px 16px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  z-index: 100;
}
.install-banner p { font-size: 11px; color: rgba(232,237,248,0.7); line-height: 1.5; }
.install-banner p strong { color: var(--accent); font-weight: 300; }
.install-btn {
  flex-shrink: 0;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent); padding: 7px 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.dismiss-btn { background: none; border: none; color: var(--muted2); font-size: 18px; cursor: pointer; }

/* ══ PIN SCREEN (v7.0 Rev 1.9) ══ */
.pin-screen {
  align-items: center; justify-content: center;
  padding: 20px; gap: 12px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  position: relative;
}
.pin-card { max-width: 340px; }
.pin-input {
  font-size: 22px; text-align: center; letter-spacing: 8px;
}
.pin-setup-input { font-size: 14px; }
.pin-error {
  color: var(--danger); font-size: 11px; letter-spacing: 0.08em;
  text-align: center; margin-top: 8px;
}
.pin-error.hidden { display: none; }
.pin-gear-btn {
  background: transparent; border: 1px solid rgba(0,212,255,0.3);
  color: rgba(255,255,255,0.75); font-size: 16px; cursor: pointer;
  padding: 6px 11px; border-radius: 4px; transition: all 0.2s;
}
.pin-gear-btn:hover { color: #fff; border-color: rgba(0,212,255,0.7); }

.pin-install-btn {
  background: transparent; border: 1px solid rgba(0,212,255,0.3);
  color: rgba(255,255,255,0.75); font-size: 14px; cursor: pointer;
  padding: 6px 10px; border-radius: 4px; transition: all 0.2s;
  line-height: 1;
}
.pin-install-btn:hover { color: var(--accent); border-color: rgba(0,212,255,0.7); }
.pin-install-btn.hidden { display: none; }

/* Recovery code modal */
.recovery-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.recovery-modal-box {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 12px; padding: 28px; max-width: 380px; width: 92%;
}
.recovery-modal-title {
  font-family: 'Josefin Sans', sans-serif; font-size: 10px; letter-spacing: 0.5em;
  color: var(--warning); text-transform: uppercase; margin-bottom: 10px;
}
.recovery-code-display {
  font-family: 'Share Tech Mono', monospace; font-size: 16px;
  background: var(--surface2); padding: 18px;
  border-radius: 6px; word-break: break-all;
  color: var(--accent2); text-align: center;
  letter-spacing: 4px; border: 1px solid rgba(123,79,255,0.3);
  margin: 14px 0; user-select: all;
}
.recovery-modal-hint {
  font-size: 10px; color: rgba(255,255,255,0.75); letter-spacing: 0.05em;
  line-height: 1.6; margin-bottom: 14px;
}
.recovery-modal-btn {
  width: 100%; padding: 11px; border: none; border-radius: 6px;
  font-family: 'Josefin Sans', sans-serif; letter-spacing: 0.2em;
  font-size: 11px; cursor: pointer; text-transform: uppercase; margin-top: 6px;
}
.recovery-modal-btn.copy {
  background: transparent; border: 1px solid rgba(0,212,255,0.3); color: var(--muted2);
}
.recovery-modal-btn.copy:hover { color: var(--accent); border-color: rgba(0,212,255,0.6); }
.recovery-modal-btn.confirm {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(123,79,255,0.15));
  border: 1px solid rgba(0,212,255,0.4); color: var(--accent);
}
.recovery-modal-btn.confirm:hover { background: rgba(0,212,255,0.2); }

/* ══ BOT DASHBOARD ══ */
.bot-dashboard {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(2,4,10,0.97);
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  animation: fadeIn 0.25s ease;
}
.bot-dashboard.hidden { display: none; }

.bot-dashboard-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,212,255,0.15);
  flex-shrink: 0;
}
.bot-dashboard-title {
  flex: 1; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
}
.btn-icon {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,1.0); font-size: 14px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 0; transition: color 0.2s, border-color 0.2s;
}
.btn-icon:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
.bot-dashboard-refresh { font-size: 16px; }

.bot-panels {
  flex: 1; display: flex; gap: 1px;
  overflow: hidden; background: rgba(0,212,255,0.04);
}

.bot-panel {
  flex: 1; display: flex; flex-direction: column;
  background: var(--surface); overflow-y: auto;
  padding: 12px 10px;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.bot-panel.loading {
  align-items: center; justify-content: center;
}
.bot-panel-loader {
  font-size: 11px; color: var(--muted2); text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bot-panel-head {
  border-left: 2px solid var(--accent);
  padding-left: 8px; margin-bottom: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.bot-panel-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
}
.bot-panel-mode {
  font-size: 9px; color: var(--warning); text-transform: uppercase;
  letter-spacing: 0.1em; border: 1px solid rgba(255,184,0,0.3);
  padding: 1px 5px;
}

.bot-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-bottom: 12px;
}
.bot-stat {
  background: var(--surface2);
  padding: 6px 8px;
}
.bot-stat-label {
  font-size: 9px; color: rgba(255,255,255,0.6); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 3px;
}
.bot-stat-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px; color: var(--text);
}
.bot-stat-val.pos { color: var(--accent3); }
.bot-stat-val.neg { color: var(--danger); }

.bot-trades-section { flex: 1; min-width: 0; }
.bot-trades-title {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6); margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bot-trade-row {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 10px;
}
.bot-trade-sym { flex: 1; color: var(--text); font-family: 'Share Tech Mono', monospace; }
.bot-trade-dir {
  font-size: 9px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bot-trade-pnl {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  min-width: 52px; text-align: right; color: var(--muted2);
}
.bot-trade-pnl.pos { color: var(--accent3); }
.bot-trade-pnl.neg { color: var(--danger); }
.bot-no-trades { font-size: 10px; color: var(--muted2); padding: 8px 0; }

/* mobile: panels stack vertically */
@media (max-width: 600px) {
  .bot-panels { flex-direction: column; overflow-y: auto; }
  .bot-panel { flex: none; min-height: 220px; }
}

/* ── RESTORE POPUP (Rev 1.25) ── */
.restore-overlay {
  position: fixed; inset: 0; background: rgba(2,4,10,0.85);
  backdrop-filter: blur(10px); z-index: 9990;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.restore-overlay.hidden { display: none; }
.restore-box {
  background: rgba(15,20,35,0.98); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 20px; width: 100%; max-width: 400px;
  max-height: 80vh; overflow-y: auto;
}
.restore-title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 4px; letter-spacing: 0.03em;
}
.restore-history-row {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.07); margin-bottom: 6px;
  transition: background 0.15s;
}
.restore-history-row:hover { background: rgba(255,255,255,0.06); border-color: rgba(0,212,255,0.3); }
.restore-cat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06); margin-bottom: 6px;
  transition: background 0.15s;
}
.restore-cat-row:hover { background: rgba(255,255,255,0.04); }
.restore-cat-row.restore-cat-danger { border-color: rgba(220,60,60,0.2); }
.restore-cat-row.restore-cat-danger:hover { background: rgba(220,60,60,0.06); }
.restore-cat-row input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.restore-cat-icon { font-size: 18px; flex-shrink: 0; }
.restore-cat-label { flex: 1; font-size: 12px; color: rgba(255,255,255,0.85); }

/* ── AUTOREPAIR POPUP (Rev 1.26) ── */
.autorepair-overlay {
  position: fixed; inset: 0; background: rgba(2,4,10,0.9);
  backdrop-filter: blur(12px); z-index: 9995;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.autorepair-overlay.hidden { display: none; }
.autorepair-box {
  background: rgba(10,15,28,0.99); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 20px; width: 100%; max-width: 540px;
  max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.autorepair-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ar-severity-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 20px; border: 1px solid;
}
.ar-section { display: flex; flex-direction: column; gap: 5px; }
.ar-section-title {
  font-size: 8px; letter-spacing: 0.5em; color: rgba(255,255,255,0.4);
  text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 4px;
}
.ar-section-body {
  font-size: 12px; color: rgba(255,255,255,1.0); line-height: 1.6;
}
.ar-diff {
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 10px 12px;
  overflow-x: auto; white-space: pre; line-height: 1.6; margin: 0;
}
.ar-question-input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 8px 12px; font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; border-radius: 8px; resize: none; outline: none;
}
.ar-question-input:focus { border-color: rgba(0,212,255,0.4); }
.ar-ask-btn {
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent); padding: 8px 14px; border-radius: 8px; cursor: pointer;
  font-size: 11px; white-space: nowrap; transition: background 0.2s;
}
.ar-ask-btn:hover { background: rgba(0,212,255,0.2); }
.ar-buttons { display: flex; gap: 10px; margin-top: 4px; }
.ar-btn {
  flex: 1; padding: 13px; border-radius: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; cursor: pointer; transition: all 0.2s; border: 1px solid;
}
.ar-btn-reject {
  background: rgba(76,175,80,0.15); border-color: rgba(76,175,80,0.5); color: #4caf50;
}
.ar-btn-reject:hover { background: rgba(76,175,80,0.25); }
.ar-btn-reject:focus { outline: 2px solid rgba(76,175,80,0.7); outline-offset: 2px; }
.ar-btn-approve {
  background: rgba(220,60,60,0.15); border-color: rgba(220,60,60,0.5); color: #ef5350;
}
.ar-btn-approve:hover { background: rgba(220,60,60,0.25); }
.ar-status {
  font-size: 11px; text-align: center; padding: 6px;
  border-radius: 6px; background: rgba(255,255,255,0.04);
}
.ar-copy-btn {
  width: 100%; padding: 9px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.05em;
  transition: all 0.2s; margin-bottom: 8px;
}
.ar-copy-btn:hover { background: rgba(255,255,255,0.09); color: #fff; }

/* ── AUTOREPAIR ALERT BADGE ── */
.ar-alert-badge {
  position: absolute;
  top: 3px; right: 18px;
  min-width: 26px; height: 26px;
  background: #dc3c3c;
  color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px rgba(220,60,60,0.3);
  animation: ar-badge-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.ar-alert-badge.ar-warn {
  background: #ffb800;
  box-shadow: 0 0 0 2px rgba(255,184,0,0.3);
  animation: ar-badge-pulse-warn 1.6s ease-in-out infinite;
}
@keyframes ar-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220,60,60,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(220,60,60,0); }
}
@keyframes ar-badge-pulse-warn {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,184,0,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(255,184,0,0); }
}
/* card intera lampeggia se alert critico */
#agent-autorepair.ar-alert-critical, #m-agent-autorepair.ar-alert-critical, #mobileAgentiBtn.ar-alert-critical {
  animation: ar-card-alert 1.6s ease-in-out infinite;
}
@keyframes ar-card-alert {
  0%, 100% { box-shadow: none; background: rgba(6,13,26,0.8); border-color: rgba(220,60,60,0.3); }
  50%       { box-shadow: 0 0 20px 6px rgba(220,60,60,0.7); background: rgba(220,60,60,0.2); border-color: rgba(220,60,60,0.9); }
}
#m-autorepairBadge { top: 9px; right: 25px; }
#mobileAgentiBadge { top: 4px; right: 13px; }

/* FIX REGISTRY POPUP */
.fix-registry-overlay {
  position: fixed; inset: 0; background: rgba(2,4,10,0.88);
  backdrop-filter: blur(12px); z-index: 9993;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.fix-registry-overlay.hidden { display: none; }
.fix-registry-box {
  background: rgba(12,17,30,0.98); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 0; width: 100%; max-width: 620px;
  max-height: 82vh; display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.fix-registry-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.fix-registry-title {
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.05em;
}
.fix-registry-close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
  transition: color 0.15s;
}
.fix-registry-close:hover { color: #fff; }
.fix-registry-list {
  overflow-y: auto; padding: 12px 16px 16px; flex: 1;
}
.fix-registry-loading {
  color: rgba(255,255,255,0.4); font-size: 13px; text-align: center; padding: 24px 0;
}
.fix-registry-item {
  border: 1px solid rgba(255,255,255,0.07); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px; background: rgba(255,255,255,0.03);
}
.fix-meta {
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.fix-status-done     { color: #5FFFD7; }
.fix-status-tested   { color: #5FFFD7; }
.fix-status-pending  { color: #FFD700; }
.fix-status-progress { color: #FFD700; }
.fix-status-default  { color: rgba(255,255,255,0.5); }
.fix-bug {
  font-size: 13px; color: #ffffff; margin-bottom: 5px; line-height: 1.45;
}
.fix-solution {
  font-size: 12px; color: #5FFFD7; line-height: 1.45;
}
