/*
 * CromeSky WebDev Autopilot Performance + Desert Theme Pack
 * Generated/staged by the governed internal developer runner.
 * Safe intent: make pages feel cleaner, faster, more readable, and less fragile
 * without removing existing buttons, upload controls, mic controls, or layouts.
 */
:root {
  --csky-bg-deep: #06070b;
  --csky-bg-panel: rgba(12, 16, 24, 0.84);
  --csky-bg-panel-strong: rgba(18, 23, 35, 0.94);
  --csky-border: rgba(255, 210, 135, 0.18);
  --csky-border-strong: rgba(255, 210, 135, 0.34);
  --csky-text: #f6ead7;
  --csky-muted: #b9a990;
  --csky-gold: #f4c86a;
  --csky-orange: #d97933;
  --csky-red: #9c3d27;
  --csky-cyan: #74d7ff;
  --csky-radius: 22px;
  --csky-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --csky-fast: 160ms ease;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  color: var(--csky-text);
  background-color: var(--csky-bg-deep);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

img:not([loading]) {
  content-visibility: auto;
}

button, a, input, textarea, select {
  font: inherit;
}

button, .button, .btn, a.button-link, input[type="submit"] {
  touch-action: manipulation;
  transition: transform var(--csky-fast), border-color var(--csky-fast), box-shadow var(--csky-fast), filter var(--csky-fast);
}

button:hover, .button:hover, .btn:hover, a.button-link:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--csky-cyan);
  outline-offset: 3px;
}

.csky-card, .card, .panel, .dash-card, .admin-card, .metric-card {
  border-color: var(--csky-border);
  box-shadow: var(--csky-shadow);
  backdrop-filter: blur(16px);
}

.csky-shell, .admin-shell, .dashboard-shell, main[class*="csky"], .wrap, .container {
  width: min(1440px, calc(100vw - 28px));
  margin-inline: auto;
}

.csky-grid, .grid, .dashboard-grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(14px, 2vw, 24px);
}

pre, code, textarea {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

[hidden], .is-hidden {
  display: none !important;
}

.loading-overlay:not(.is-active),
.loader-overlay:not(.is-active),
.modal-backdrop:not(.show),
.screen-lock:not(.is-active),
.page-lock:not(.is-active),
.csky-screen-blocker:not(.is-active) {
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .hero, .card, .panel, .dash-card, .admin-card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}