*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--geist-foreground);
  background: var(--geist-background);
  font-feature-settings: 'ss01' on, 'cv11' on;
  overflow-y: scroll;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: rgba(0,112,243,.2); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); z-index: 1; position: relative; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--accents-2); border-radius: 5px; border: 2px solid var(--geist-background); }
::-webkit-scrollbar-thumb:hover { background: var(--accents-3); }
::-webkit-scrollbar-track { background: transparent; }
h1,h2,h3,h4 { font-weight: 600; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); font-feature-settings: 'ss01' off; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* Skeleton shimmer */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--skeleton-base);
  border-radius: var(--radius-sm);
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(245,166,35,.5);} 50% { box-shadow: 0 0 0 4px rgba(245,166,35,0);} }
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--accents-2);
  border-top-color: var(--accents-5);
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.page-fade { animation: fadeSlideIn .18s ease-out; }
