.snow-profile {
  min-width: 0;
}
.snow-profile .profile-time-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  margin: 10px 0 5px;
}
.snow-profile .profile-time-control label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 0.83rem;
}
.snow-profile .profile-time-control select {
  width: 100%;
  min-width: 0;
}
.snow-profile .profile-time-control button {
  padding-inline: 8px;
  font-size: 1rem;
}
.snow-profile .profile-time-control button:disabled {
  opacity: 0.55;
}
.profile-chart-head,
.profile-chart {
  display: grid;
  grid-template-columns: 2.8rem 15px repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.profile-chart-head {
  margin: 12px 0 5px;
  text-align: center;
  align-items: end;
  font-size: 0.7rem;
  line-height: 1.15;
}
.profile-chart-head span + span {
  color: var(--muted);
}
.profile-chart-head span {
  display: block;
}
.profile-chart-head .profile-axis-head {
  grid-column: span 2;
}
.profile-chart {
  position: relative;
  height: 320px;
  cursor: crosshair;
  outline-offset: 3px;
  margin-bottom: 12px;
}
.profile-ruler {
  position: relative;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}
.profile-ruler span {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  pointer-events: none;
}
.profile-ruler span::after {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 4px;
  border-top: 1px solid var(--muted);
  content: "";
}
.profile-track {
  position: relative;
  background: linear-gradient(to bottom, #142d38 0 var(--snow-bottom), #1f211e var(--snow-bottom));
}
.profile-band {
  position: absolute;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #152c4b50;
  background: #bad1dc;
  pointer-events: none;
}
.profile-band.profile-band-crust {
  z-index: 1;
  min-height: 1px;
  background: repeating-linear-gradient(45deg, #f8c874 0 2px, #ac7134 2px 4px);
}
.profile-track-temperature .profile-band {
  background: #6eaedb;
}
.profile-track-density .profile-band {
  background: #a4bbd1;
}
.profile-track-water .profile-band {
  background: #48c8b3;
}
.profile-cursor {
  position: absolute;
  left: 2.9rem;
  right: 0;
  z-index: 2;
  min-height: 2px;
  outline: 1px solid #edf8ff;
  background: #e4f0ff28;
  pointer-events: none;
}
.profile-crust-key {
  color: #f4c274;
  font-size: 0.78rem;
}
.profile-layer-card {
  padding: 8px;
  border: 1px solid var(--line);
}
.profile-layer-card h3 {
  margin: 0;
  font-size: 0.9rem;
}
.profile-layer-card p {
  margin: 3px 0;
}
.profile-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 0;
}
.profile-layer-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
}
.profile-layer-grid dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
