/* T1 — Overlay vetro centrato (Cockpit + Gateway Studio) */
.t1-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.33, 1, 0.32, 1);
}

.t1-sidebar-overlay[hidden] {
  display: none !important;
}

.t1-sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 12100;
}

.t1-sidebar-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 50%, color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 6%, transparent), transparent 60%),
    rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

.t1-sidebar-overlay__shell {
  position: relative;
  width: min(420px, 96vw);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  gap: 0;
  background:
    linear-gradient(160deg, rgba(12, 16, 24, 0.94) 0%, rgba(6, 8, 14, 0.96) 100%);
  border: 1px solid color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 18%, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 calc(30px * var(--neon-glow-intensity, 1)) color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms cubic-bezier(0.33, 1, 0.32, 1);
}

.t1-sidebar-overlay.is-open .t1-sidebar-overlay__shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.t1-sidebar-overlay__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.t1-sidebar-overlay__glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 75%, var(--t1-helm-frost, rgba(248, 252, 255, 0.92)));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 14%, transparent) 0%, rgba(8, 10, 18, 0.7) 100%);
  border: 1px solid color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 22%, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
}

.t1-sidebar-overlay__head-text,
.t1-sidebar-overlay__titles {
  flex: 1;
  min-width: 0;
}

.t1-sidebar-overlay__eyebrow {
  margin: 0 0 2px;
  font-family: 'Inter', var(--t1-font-ui, system-ui, sans-serif);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t1-helm-frost-dim, rgba(248, 252, 255, 0.55));
}

.t1-sidebar-overlay__title {
  font-family: 'Inter', var(--t1-font-ui, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--t1-helm-frost, rgba(248, 252, 255, 0.92));
  margin: 0;
  line-height: 1.2;
}

.t1-sidebar-overlay__hint {
  font-family: 'Inter', var(--t1-font-ui, system-ui, sans-serif);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--t1-helm-frost-muted, rgba(248, 252, 255, 0.55));
  margin: 2px 0 0;
  line-height: 1.35;
}

.t1-sidebar-overlay__close {
  position: relative;
  overflow: visible;
  z-index: 2;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--t1-helm-frost-muted, rgba(248, 252, 255, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.t1-sidebar-overlay__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--t1-helm-frost, rgba(248, 252, 255, 0.92));
  border-color: color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 28%, rgba(255, 255, 255, 0.08));
}

.t1-sidebar-overlay__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--t1-cyan, var(--gw-cyan, #00e5ff)) 45%, transparent);
}
