.wind-site-panel { position: fixed; z-index: 4500; top: 72px; right: 16px; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 88px); overflow-y: auto; background: #fff; color: #172033; border: 1px solid #d9e0ea; border-radius: 12px; box-shadow: 0 18px 50px rgba(15, 23, 42, .24); transform: translateX(calc(100% + 32px)); transition: transform .22s ease; font: 13px/1.42 Inter, ui-sans-serif, system-ui, sans-serif; }
.wind-site-panel.is-open { transform: translateX(0); }
.wind-site-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(125deg, #0f766e, #0f4c5c); border-radius: 11px 11px 0 0; }
.wind-site-header h2 { margin: 2px 0 0; font-size: 18px; line-height: 1.2; }
.wind-site-eyebrow { color: #b7f7e9; letter-spacing: .08em; font-size: 9px; font-weight: 800; }
.wind-site-icon-btn { padding: 0; border: 0; color: inherit; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.wind-site-section { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; }
.wind-site-section label, .wind-section-title { display: block; margin-bottom: 5px; color: #475569; font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.wind-site-section input[type="search"], .wind-site-section input[type="number"] { width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 9px 10px; color: #172033; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.wind-site-run, .wind-site-clear { width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: #0f766e; color: #fff; cursor: pointer; font: inherit; font-weight: 750; }
.wind-site-run:disabled { cursor: wait; opacity: .7; }
.wind-site-clear { margin-top: 12px; color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; }
.wind-site-help, .wind-site-disclaimer, .wind-result-meta { margin: 10px 0 0; color: #64748b; font-size: 11px; }
.wind-site-disclaimer { padding: 12px 18px; background: #f8fafc; }
.wind-no-candidate-notice { margin: 10px 0 0; padding: 8px 9px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; font-size: 11px; }
.wind-empty-state { padding: 6px 0; color: #64748b; }
.wind-error { padding: 9px 10px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; }
.wind-result-place { color: #0f172a; font-size: 14px; font-weight: 750; }
.wind-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.wind-score-grid div { padding: 8px; background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 6px; }
.wind-score-grid span { display: block; color: #64748b; font-size: 10px; }
.wind-score-grid strong { color: #115e59; font-size: 14px; }
.wind-limitations { margin-top: 10px; color: #475569; font-size: 11px; }
.wind-limitations summary { cursor: pointer; font-weight: 700; }
.wind-limitations ul { margin: 7px 0 0; padding-left: 18px; }
.wind-layer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wind-layer-list label { margin: 0; color: #334155; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.wind-layer-list input { vertical-align: middle; accent-color: #0f766e; }
.wind-popup { min-width: 210px; line-height: 1.45; }
.wind-site-report-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wind-site-report-btn:active { transform: translateY(0); }
.wind-layout-summary {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: #065f46;
}

/* Dark mode theme support for Wind Site Panel: white words on dark background */
body:not(.light-theme) .wind-site-panel {
  background: var(--bg-sidebar, #0a101e);
  color: var(--text-main, #f8fafc);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
body:not(.light-theme) .wind-layout-summary {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  color: #34d399;
}
body:not(.light-theme) .wind-site-section {
  border-bottom-color: var(--border-subtle, rgba(255, 255, 255, 0.08));
}
body:not(.light-theme) .wind-site-section label,
body:not(.light-theme) .wind-section-title {
  color: var(--text-secondary, #94a3b8);
}
body:not(.light-theme) .wind-site-section input[type="search"],
body:not(.light-theme) .wind-site-section input[type="number"] {
  background: var(--bg-input, rgba(255, 255, 255, 0.06));
  color: var(--text-main, #f8fafc);
  border-color: var(--border-input, rgba(255, 255, 255, 0.15));
}
body:not(.light-theme) .wind-site-section input[type="search"]:focus,
body:not(.light-theme) .wind-site-section input[type="number"]:focus {
  background: var(--bg-input-focus, rgba(255, 255, 255, 0.1));
  border-color: var(--primary-color, #3b82f6);
}
body:not(.light-theme) #wind-potential-tiers-box {
  background: var(--bg-card, rgba(255, 255, 255, 0.04)) !important;
  border-color: var(--border-card, rgba(255, 255, 255, 0.09)) !important;
}
body:not(.light-theme) #wind-potential-tiers-box span {
  color: var(--text-main, #f8fafc) !important;
}
body:not(.light-theme) .wind-result-place {
  color: var(--text-main, #f8fafc);
}
body:not(.light-theme) .wind-score-grid div {
  background: rgba(15, 118, 110, 0.15);
  border-color: rgba(15, 118, 110, 0.35);
}
body:not(.light-theme) .wind-score-grid strong {
  color: #2dd4bf;
}
body:not(.light-theme) .wind-score-grid span {
  color: #94a3b8;
}
body:not(.light-theme) .wind-layer-list label {
  color: var(--text-main, #e2e8f0);
}
body:not(.light-theme) .wind-site-disclaimer {
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  color: var(--text-muted, #94a3b8);
}
body:not(.light-theme) .wind-site-help,
body:not(.light-theme) .wind-result-meta {
  color: var(--text-secondary, #94a3b8);
}

@media (max-width: 600px) { .wind-site-panel { top: 72px; right: 10px; width: calc(100vw - 20px); max-height: calc(100vh - 88px); } }

/* Print optimization for Wind Report */
@media print {
  body * {
    visibility: hidden;
  }
  #wind-report-modal,
  #wind-report-modal * {
    visibility: visible;
  }
  #wind-report-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 999999 !important;
  }
  .wind-report-container {
    box-shadow: none !important;
    max-width: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .wind-report-container header {
    display: none !important;
  }
  #wind-printable-report-area {
    padding: 0 !important;
  }
  #btn-print-report, #btn-export-csv, #btn-export-geojson, #btn-close-report {
    display: none !important;
  }
}
