/*
 * BioCloud Spatial Analysis Suite — Unified Bright Palette & Mobile Polish (2026-12-04)
 * Loaded as same-origin stylesheet ('self') across /spatial-lab/ and all /spatial-* apps.
 */

:root {
  color-scheme: light;
}

html, body {
  overflow-x: clip;
  background: #f6f9ff !important;
  color: #0f172a !important;
}

header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #dbe6f5 !important;
  backdrop-filter: blur(14px);
}

.brand {
  color: #1d4ed8 !important;
  white-space: nowrap;
}

a {
  color: #2563eb;
}

.method {
  color: #2563eb !important;
}

.intro {
  color: #475569 !important;
}

section {
  border-color: #dbe6f5 !important;
  box-shadow: 0 10px 28px rgba(23, 43, 77, 0.04);
}

.tabs {
  border-bottom-color: #dbe6f5 !important;
}

.tabs button[aria-pressed="true"] {
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

.sample-box,
.root-choice {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

.primary,
button.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  min-height: 44px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.primary:hover,
button.primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
}

#status:not(:empty):not(.error) {
  background: #eff6ff !important;
  color: #1e3a8a !important;
}

.result-counts {
  color: #1d4ed8 !important;
}

h1, h2 {
  text-wrap: balance;
}

@media (max-width: 680px) {
  header {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px 12px !important;
    padding: 12px 16px !important;
  }

  header nav,
  header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  header a:not(.brand) {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
  }

  main {
    padding: 22px 16px 40px !important;
  }

  section {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }

  .params {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .primary,
  button.primary {
    width: 100%;
    text-align: center;
  }
}
