#ground-truth-data,
#data-layers {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.65);
  overflow: hidden;
  box-sizing: border-box;
}
.profile-window {
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.profile-window-card,
.gt-panel {
  height: 100%;
  max-height: none;
  min-height: 0;
}
#ground-truth-data[hidden],
#data-layers[hidden] { display: none !important; }
.gt-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #e2e8f5;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  overflow: hidden;
  font-family: "EB Garamond", Georgia, serif;
}
.gt-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #1a2235;
  border-bottom: 1px solid #1e2d45;
}
.gt-kicker {
  margin: 0 0 0.2rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22d3ee;
}
.gt-panel h2 {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: #e2e8f5;
}
.gt-close, .gt-wait {
  font-family: "Space Mono", ui-monospace, monospace;
}
.gt-close {
  background: transparent;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  color: #e2e8f5;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gt-close:focus-visible, .gt-panel a:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}
.gt-scroll { overflow: auto; flex: 1; }
.gt-col { padding: 1.1rem 1.25rem 2rem; max-width: 52rem; margin: 0 auto; }
.gt-lead, .gt-col p, .gt-col li { font-size: 1.12rem; line-height: 1.55; }
.gt-col h3 {
  margin: 1.3rem 0 0.35rem;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
}
.gt-criteria {
  margin: 0.2rem 0 1.2rem;
  padding: 0.15rem 1rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 12px;
  background: #0a0d14;
}
.gt-criteria > h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}
.gt-criteria h4, .gt-criteria h5 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.gt-criteria h4 {
  margin: 1.1rem 0 0.35rem;
  font-size: 12px;
  text-transform: uppercase;
  color: #22d3ee;
}
.gt-criteria h5 {
  margin: 0.8rem 0 0.25rem;
  font-size: 13px;
  color: #e2e8f5;
}
.gt-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.gt-row {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #1e2d45;
  border-radius: 8px;
  background: #0a0d14;
}
.gt-row-head { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.gt-source { font-weight: 500; }
.gt-status, .gt-when {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #8fa4c4;
}
.gt-row p { margin: 0.35rem 0 0; font-size: 1.02rem; color: #b0bdd4; }
.gt-pilot { color: #8fa4c4; }
.gt-wait { padding: 2rem 1.5rem; color: #e2e8f5; }
.gt-panel a { color: #22d3ee; }
#eov-wiz-panel { max-width: 52rem; width: 100%; margin: 0 auto; box-sizing: border-box; }
#stm-panel { max-width: 72rem; width: 100%; margin: 0 auto; box-sizing: border-box; }
#stm-modal #ecoregion-map { height: min(52vh, 640px) !important; }
#stm-modal #global-map { height: min(36vh, 420px) !important; }
#ecomapPanel .ecomap-canvas { position: absolute; inset: 0; height: 100%; min-height: 0; }
#ecomapPanel .ecomap-layers.is-data {
  width: min(320px, 36vw);
  max-height: calc(100% - 16px);
  font-size: 13px;
  line-height: 1.35;
}
#ask-eia {
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-radius: 14px;
  border: 1px solid #1e2d45;
}
#ask-eia .eia-col { max-width: 52rem; }
@media (max-width: 720px) {
  #ground-truth-data,
  #data-layers,
  .profile-window {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .gt-panel { width: 100%; max-height: none; min-height: 0; height: 100%; border-radius: 12px; }
  #ask-eia {
    inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .gt-bar { padding: 0.8rem 1rem; }
  .gt-col { padding: 1rem 1rem 2.5rem; }
  .gt-row-head { flex-direction: column; gap: 0.15rem; }
}
