/* Mental Altitude Suite - Scoped Aerospace Executive Dark Theme */
.ma-suite-root,
.ma-suite-modal,
#toast-container {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #F1F5F9;
  line-height: 1.5;
}

/* Zero-specificity scoped resets so every Tailwind utility class (0,1,0) always wins */
:where(
  .ma-suite-root,
  .ma-suite-root *,
  .ma-suite-root ::before,
  .ma-suite-root ::after,
  .ma-suite-modal,
  .ma-suite-modal *,
  .ma-suite-modal ::before,
  .ma-suite-modal ::after,
  #toast-container,
  #toast-container *
) {
  border-width: 0;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.15);
  box-sizing: border-box;
}

:where(.ma-suite-root button, .ma-suite-modal button) {
  background-color: transparent;
  background-image: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

:where(.ma-suite-root input, .ma-suite-root select, .ma-suite-modal input, .ma-suite-modal select) {
  font-family: inherit;
  color: inherit;
}

:where(.ma-suite-root a, .ma-suite-modal a) {
  text-decoration: none;
}

:where(.ma-suite-root ul, .ma-suite-modal ul) {
  list-style: none;
}

.ma-suite-root {
  background-color: #0B1120;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.09), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(45, 212, 191, 0.07), transparent 34%),
    radial-gradient(circle at 50% 60%, rgba(56, 189, 248, 0.04), transparent 50%);
  padding: 0 !important;
  position: relative;
  border-top: 4px solid #1a5f7a;
  border-bottom: 4px solid #1a5f7a;
}

.ma-suite-root section {
  padding: 0;
}

/* Glassmorphic Card Surfaces */
.ma-suite-root .glass-card,
.ma-suite-modal .glass-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88) 0%, rgba(15, 23, 42, 0.84) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.ma-suite-root .glass-subcard,
.ma-suite-modal .glass-subcard {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.ma-suite-root .glass-overlay,
.ma-suite-modal .glass-overlay {
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(10px);
}

/* Precision Aerospace Sliders */
.ma-suite-root input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ma-suite-root input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 9999px;
  background: #1E293B;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ma-suite-root input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 9999px;
  background: #38BDF8;
  border: 2px solid #0B1120;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  margin-top: -7px;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.ma-suite-root input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  background: #7DD3FC;
}

.ma-suite-root input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 9999px;
  background: #1E293B;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ma-suite-root input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 9999px;
  background: #38BDF8;
  border: 2px solid #0B1120;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.ma-suite-root input[type="range"].slider-teal::-webkit-slider-thumb {
  background: #2DD4BF;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.35);
}

.ma-suite-root input[type="range"].slider-teal::-moz-range-thumb {
  background: #2DD4BF;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.35);
}

.ma-suite-root input[type="range"].slider-amber::-webkit-slider-thumb {
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.ma-suite-root input[type="range"].slider-amber::-moz-range-thumb {
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

/* Modal Backdrop */
.ma-suite-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
}

.ma-suite-modal.hidden {
  display: none !important;
}

/* Subtle Dark Scrollbar inside suite */
.ma-suite-root ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ma-suite-root ::-webkit-scrollbar-track {
  background: #0B1120;
}

.ma-suite-root ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.ma-suite-root ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Ensure FAB stays below modals */
#toast-container {
  z-index: 10100;
}
