.museum-astrolabe {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(275px, 1fr);
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  padding: clamp(12px, 2.5vw, 26px);
  border: 1px solid #9c784b;
  border-radius: 12px;
  background: #172a37;
  color: #f8edd8;
}
.astrolabe-illustration {
  min-width: 0;
  border: 1px solid #445457;
  border-radius: 8px;
  background: radial-gradient(ellipse at 40% 54%, #284651, #101e2a 72%);
  overflow: hidden;
}
.astrolabe-illustration canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
}
.astrolabe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 16px;
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  border-top: 1px solid #42555c;
  color: #f6ebd8;
  font-size: .89rem;
}
.astrolabe-legend li { display: flex; gap: 6px; align-items: center; }
.astrolabe-legend span { display: inline-block; inline-size: 15px; }
.astrolabe-star::before { display: block; content: "✦"; color: #f9d99a; text-align: center; }
.astrolabe-rule { border-block-start: 3px solid #e9b578; }
.astrolabe-horizon { border-block-start: 2px dashed #e0d2b9; }
.astrolabe-controls h3 {
  margin: 0 0 8px;
  color: #ffdc9f;
  font-size: clamp(1.13rem, 2.1vw, 1.5rem);
  line-height: 1.6;
}
.astrolabe-controls p { margin: 0; font-size: 1rem; }
.astrolabe-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 15px;
}
.astrolabe-targets button {
  min-height: 44px;
  background: #233e4c;
  color: #f8e9d0;
  border: 1px solid #8d7d68;
  border-radius: 6px;
  padding: 5px 12px;
  font-weight: 700;
}
.astrolabe-targets button:hover { background: #325463; }
.astrolabe-targets button[aria-pressed="true"] {
  background: #f0cb8b;
  color: #292017;
  border-color: #f0cb8b;
}
.astrolabe-field {
  padding: 10px 12px;
  border: 1px solid #536569;
  border-radius: 7px;
  background: #0e1e29;
}
.astrolabe-field-head, .astrolabe-range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.astrolabe-field label { font-weight: 700; }
.astrolabe-reading { color: #ffda95; font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.astrolabe-field input {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 0;
  accent-color: #e4b66e;
  cursor: pointer;
}
.astrolabe-range-labels { font-size: .87rem; color: #e4dac8; }
.astrolabe-controls .astrolabe-instructions { margin-top: 10px; color: #e9deca; }
.astrolabe-controls .astrolabe-feedback {
  padding: 6px 9px;
  margin-top: 10px;
  border-inline-start: 3px solid #edc78e;
  background: #2e4250;
}
.astrolabe-controls .astrolabe-feedback.is-aligned {
  border-inline-start-color: #a7e1bd;
  color: #e0ffea;
  background: #26534a;
}
.astrolabe-source {
  display: inline-block;
  margin-top: 12px;
  color: #f7d29b;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .9rem;
}
.museum-astrolabe :focus-visible { outline: 2px solid #f4d08d; outline-offset: 3px; }
@media (max-width: 780px) {
  .museum-astrolabe { grid-template-columns: minmax(0, 1fr); }
  .astrolabe-illustration { max-width: 540px; width: 100%; margin-inline: auto; }
}
