/* Production theme based on the Scouting Intelligence / FieldOps visual system. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

.design-prototype {
  --bg: #f5f5f4;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e7e5e4;
  --green: #166534;
  --green-dark: #14532d;
  --gold: #d97706;
  --red: #dc2626;
  --barley: #92400e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  background:
    radial-gradient(circle at 92% 2%, rgba(22, 101, 52, 0.055), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.design-prototype .shell {
  width: min(1600px, calc(100% - 40px));
  padding: 20px 0 42px;
}

.design-prototype .topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  min-height: 148px;
  padding: 24px 26px;
  border: 1px solid #1f2937;
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(34, 197, 94, 0.08), transparent 42%),
    #111827;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.16);
  color: #f9fafb;
}

.design-prototype .topbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80px;
  right: 7%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.07);
  filter: blur(1px);
}

.design-prototype .eyebrow {
  margin-bottom: 7px;
  color: #86efac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.design-prototype h1 {
  max-width: 900px;
  margin-bottom: 9px;
  color: #ffffff;
  font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.design-prototype .subhead {
  max-width: 800px;
  color: #9ca3af;
  font-size: 13.5px;
}

.design-prototype button {
  min-height: 34px;
  border-radius: 6px;
  background: var(--green);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.design-prototype button:hover {
  background: #14532d;
}

.design-prototype button:active {
  transform: translateY(1px);
}

.design-prototype button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.design-prototype button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.design-prototype .actions {
  padding-top: 0;
}

.design-prototype input,
.design-prototype select {
  min-height: 36px;
  border-color: #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 12.5px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.design-prototype input:focus,
.design-prototype select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
  outline: none;
}

.design-prototype input[type="range"] {
  accent-color: #16a34a;
  box-shadow: none;
}

.design-prototype label {
  gap: 5px;
  color: #4b5563;
  font-size: 11.5px;
  font-weight: 600;
}

.design-prototype h2 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.design-prototype .control-grid,
.design-prototype .summary-grid,
.design-prototype .detail-grid {
  gap: 12px;
  margin-top: 14px;
}

.design-prototype .control-panel,
.design-prototype .metric,
.design-prototype .driver-panel,
.design-prototype .table-panel,
.design-prototype .chart-section,
.design-prototype .spatial-section,
.design-prototype .method {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.design-prototype .control-panel {
  gap: 12px;
  padding: 16px;
}

.design-prototype .panel-title {
  min-height: 24px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.design-prototype .status {
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  background: #f0fdf4;
  color: #166534;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}

.design-prototype .status.loading {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.design-prototype .status.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.design-prototype .calibration-box,
.design-prototype .petal-test-box {
  gap: 10px;
  border-color: var(--line);
  border-radius: 8px;
  background: #fafaf9;
  padding: 11px;
}

.design-prototype .source-note,
.design-prototype .muted,
.design-prototype .section-head p,
.design-prototype .method p {
  color: var(--muted);
}

.design-prototype .metric {
  min-height: 108px;
  overflow: visible;
  padding: 14px 16px;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.design-prototype .metric::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #d1d5db;
}

.design-prototype .metric:nth-child(1)::before { background: #16a34a; }
.design-prototype .metric:nth-child(2)::before { background: #dc2626; }
.design-prototype .metric:nth-child(3)::before { background: #d97706; }
.design-prototype .metric:nth-child(4)::before { background: #3b82f6; }
.design-prototype .metric:nth-child(5)::before { background: #22c55e; }

.design-prototype .metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.design-prototype .metric-head > span:first-child {
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
}

.design-prototype .metric-info,
.design-prototype .legend-info summary {
  border-color: var(--line);
  background: #fafaf9;
  color: #166534;
}

.design-prototype .metric strong {
  margin: 9px 0 5px;
  font-size: 2.15rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.design-prototype .metric small {
  color: #9ca3af;
  font-size: 10.5px;
}

.design-prototype .chart-section,
.design-prototype .spatial-section,
.design-prototype .method {
  margin-top: 14px;
  padding: 18px;
}

.design-prototype .section-head {
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.design-prototype .info-dropdown summary {
  border-color: var(--line);
  border-radius: 6px;
  background: #fafaf9;
  color: #166534;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 600;
}

.design-prototype .legend-info-content,
.design-prototype .info-content,
.design-prototype .metric-info::after {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.design-prototype .chart-window-toolbar {
  margin: 12px 0 9px;
  padding: 10px 12px;
  border-color: var(--line);
  border-radius: 8px;
  background: #fafaf9;
}

.design-prototype .chart-window-legend {
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 600;
}

.design-prototype .chart-window-summary {
  gap: 8px;
  border-left-width: 3px;
  border-radius: 6px;
  padding: 9px 11px;
}

.design-prototype .chart-window-summary strong {
  font-size: 11.5px;
}

.design-prototype .chart-window-summary span {
  font-size: 10.5px;
}

.design-prototype .chart-wrap {
  min-height: 405px;
}

.design-prototype .spatial-head .eyebrow {
  color: #16a34a;
}

.design-prototype .spatial-summary {
  color: #6b7280;
  font-size: 11px;
}

.design-prototype .spatial-controls {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaf9;
}

.design-prototype .spatial-layout {
  gap: 12px;
}

.design-prototype .field-risk-map {
  border-color: var(--line);
  border-radius: 8px;
}

.design-prototype .map-risk-legend {
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #4b5563;
  font-size: 10px;
}

.design-prototype .spatial-sidebar {
  padding: 14px;
  border-color: var(--line);
  border-radius: 10px;
  background: #fafaf9;
}

.design-prototype .field-fact {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.design-prototype .queue-count {
  min-width: 28px;
  height: 28px;
  background: #166534;
  font-size: 11px;
}

.design-prototype .scouting-queue {
  gap: 8px;
}

.design-prototype .queue-item {
  min-height: 68px;
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.design-prototype .queue-item:hover,
.design-prototype .queue-item:focus-visible {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.design-prototype .queue-rank {
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
}

.design-prototype .spatial-import-help {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaf9;
}

.design-prototype .driver-panel,
.design-prototype .table-panel {
  padding: 16px;
}

.design-prototype .driver {
  border-left-width: 3px;
  border-radius: 6px;
  background: #fafaf9;
  padding: 10px 11px;
}

.design-prototype .table-scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.design-prototype th {
  background: #fafaf9;
  color: #6b7280;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.design-prototype td {
  color: #374151;
  font-size: 11.5px;
}

.design-prototype tbody tr:hover {
  background: #fafaf9;
}

.design-prototype .risk-low {
  background: #f0fdf4;
  color: #166534;
}

.design-prototype .risk-watch {
  background: #fffbeb;
  color: #92400e;
}

.design-prototype .risk-high {
  background: #fef2f2;
  color: #991b1b;
}

.design-prototype .method {
  background: #fafaf9;
}

.design-prototype .method h2 {
  margin-bottom: 8px;
}

.design-prototype .method p {
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .design-prototype .shell {
    width: min(100% - 24px, 1600px);
    padding-top: 12px;
  }

  .design-prototype .topbar {
    align-items: stretch;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .design-prototype .shell {
    width: min(100% - 16px, 1600px);
    padding-top: 8px;
  }

  .design-prototype .topbar,
  .design-prototype .control-panel,
  .design-prototype .metric,
  .design-prototype .driver-panel,
  .design-prototype .table-panel,
  .design-prototype .chart-section,
  .design-prototype .spatial-section,
  .design-prototype .method {
    padding: 13px;
  }

  .design-prototype .metric-info::after,
  .design-prototype .metric:first-child .metric-info::after {
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 48px));
  }
}
