/* AgentGate — schermata obbligatoria post-login (server + cartella) */

.agate-overlay {
  position: fixed;
  inset: 0;
  z-index: 240; /* sopra taskbar/start-menu, sotto le notifiche (250) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.agate-card {
  width: min(440px, 100%);
  background: rgba(28, 30, 34, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  padding: 28px 26px;
  text-align: center;
}

.agate-logo {
  margin-bottom: 10px;
}

.agate-card h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--text-1);
}

.agate-sub {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.agate-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.agate-step.done {
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.08);
}

.agate-step.is-disabled {
  opacity: 0.5;
}

.agate-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 120, 212, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-1);
}

.agate-step.done .agate-num {
  background: rgba(76, 175, 80, 0.35);
  color: #c8e6c9;
}

.agate-step-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agate-step-body strong {
  font-size: 0.875rem;
  color: var(--text-1);
}

.agate-hint {
  font-size: 0.72rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agate-step .docs-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.agate-step-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 400px) {
  .agate-step-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 220px;
  }
}

.agate-step-actions .docs-btn {
  min-width: 108px;
}

.agate-foot {
  margin: 18px 0 0;
  font-size: 0.72rem;
  color: var(--text-2);
}
