

.astro-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(5,4,12,.72);
  backdrop-filter: blur(10px); display: grid; place-items: center; padding: 16px;
}
.astro-overlay[hidden] { display: none !important; }
.astro-panel {
  width: min(440px, 100%); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.astro-panel h2 { margin: 0 0 8px; font-family: var(--font-display); }
.astro-panel p { color: var(--muted); line-height: 1.5; }
.astro-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .92rem; }
.astro-check input { margin-top: 3px; }
.astro-btn {
  display: inline-flex; justify-content: center; align-items: center; width: 100%;
  margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg,#9b7dff,#6c5ce7); color: #fff; font-weight: 600;
}
.astro-btn:disabled { opacity: .45; cursor: not-allowed; }
.astro-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.onb-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.onb-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.onb-dots span.is-on { background: var(--accent); }
.astro-bottom-nav { grid-template-columns: repeat(5, 1fr); }
.astro-top-actions { display: flex; gap: 8px; align-items: center; }
.astro-icon-btn {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  border-radius: 10px; width: 36px; height: 36px; cursor: pointer;
}
.astro-search, .astro-cmd {
  width: min(640px, 100%); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.astro-search input, .astro-cmd input {
  width: 100%; border: 0; padding: 14px 16px; background: transparent; color: var(--text); font: inherit;
  outline: none;
}
.astro-search-results, .astro-cmd-results { max-height: 320px; overflow: auto; border-top: 1px solid var(--border); }
.astro-search-results a, .astro-cmd-results button {
  display: block; width: 100%; text-align: left; padding: 12px 16px; border: 0; background: transparent;
  color: var(--text); border-bottom: 1px solid rgba(155,125,255,.1); cursor: pointer; font: inherit;
}
.astro-search-results a:hover, .astro-cmd-results button:hover { background: rgba(155,125,255,.1); }
.astro-state { padding: 28px 16px; text-align: center; color: var(--muted); }
.astro-skeleton {
  background: linear-gradient(90deg, var(--bg-elev), rgba(155,125,255,.12), var(--bg-elev));
  background-size: 200% 100%; animation: astroShimmer 1.2s infinite linear;
  border-radius: 12px; min-height: 14px;
}
@keyframes astroShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@media (prefers-reduced-motion: reduce) {
  .astro-skeleton { animation: none; }
}
.astro-more-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--bg-card); border-top: 1px solid var(--border);
  border-radius: 18px 18px 0 0; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.astro-more-sheet[hidden] { display: none !important; }
.astro-more-sheet a, .astro-more-sheet button.row {
  display: flex; width: 100%; padding: 12px 8px; color: var(--text); border: 0; background: transparent;
  text-align: left; font: inherit; cursor: pointer; border-bottom: 1px solid rgba(155,125,255,.1);
}
.astro-rail-nav a {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--muted);
}
.astro-rail-nav a.is-active, .astro-rail-nav a:hover { background: rgba(155,125,255,.12); color: var(--text); }
.astro-install-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px); z-index: 55;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.astro-install-bar[hidden] { display: none !important; }
@media (min-width: 960px) {
  .astro-install-bar { left: auto; right: 24px; bottom: 24px; width: 320px; }
  body.astro-app { padding-bottom: 0; }
}
html[data-gate="1"] body > *:not(#astro-gate):not(script):not(style) { pointer-events: none; }
html[data-gate="1"] #astro-gate { display: grid !important; }

.astro-profile-block { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.astro-profile-block h2 { margin: 0 0 12px; font-size: 1.15rem; }
.astro-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.astro-btn.danger, .astro-btn.ghost.danger { border-color: var(--danger); color: var(--danger); }
.astro-form select {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font: inherit;
}
