/* Gateway Studio — toggle + shell impostazioni generali */

.gateway-studio-toggle {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
  color: rgba(200, 210, 225, 0.62);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(200, 210, 225, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.gateway-studio-toggle:hover,
.gateway-studio-toggle:focus-visible {
  color: rgba(220, 230, 242, 0.9);
  border-color: rgba(200, 210, 225, 0.38);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.gateway-studio-toggle[aria-expanded='true'] {
  color: rgba(220, 230, 242, 0.92);
  border-color: rgba(200, 210, 225, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

/* Hint ingranaggio — P4 default a sinistra (parity dock Live · t1_hover_hint.css) */

.gateway-studio-overlay .gateway-studio-shell {
  width: min(640px, 96vw);
  max-height: min(82vh, 560px);
  display: flex;
  flex-direction: column;
}

.gateway-studio-overlay .settings-body--visual {
  flex: 1;
  min-height: 220px;
}

.gateway-studio-save {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--gw-cyan, #00e5ff) 32%, rgba(255, 255, 255, 0.14));
  background: color-mix(in srgb, var(--gw-cyan, #00e5ff) 10%, rgba(0, 0, 0, 0.35));
  color: rgba(248, 252, 255, 0.95);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.gateway-studio-save:hover {
  border-color: color-mix(in srgb, var(--gw-cyan, #00e5ff) 48%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--gw-cyan, #00e5ff) 16%, rgba(0, 0, 0, 0.35));
}

.gateway-studio-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.gateway-studio-foot__meta {
  margin: 0;
  padding: 0 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--gw-pearl, #f0ebe3) 52%, transparent);
}

.gateway-studio-foot__link {
  display: block;
  padding: 8px 2px 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--gw-cyan, #00e5ff) 82%, rgba(248, 252, 255, 0.9));
  text-decoration: none;
  letter-spacing: 0.02em;
}

.gateway-studio-foot__link:hover {
  color: var(--gw-cyan, #00e5ff);
  text-decoration: underline;
}

.gateway-studio-foot__btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 252, 255, 0.9);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.74rem;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.gateway-studio-foot__btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.gateway-studio-foot__btn--logout {
  color: color-mix(in srgb, #ff8a8a 85%, rgba(248, 252, 255, 0.9));
  border-color: color-mix(in srgb, #ff8a8a 22%, rgba(255, 255, 255, 0.08));
}

.gateway-studio-foot__btn--logout:hover {
  background: rgba(255, 100, 100, 0.06);
}
