.engineering-views {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #526069;
  border-radius: 5px;
  background: #14232c;
  color: #e8ede3;
}
.engineering-selector {
  display: flex;
  min-width: 0;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid #44555d;
  padding: 0 8px;
  margin: 0;
  background: #14212a;
}
.engineering-selector > legend,
.engineering-selector > input,
.eng-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.engineering-selector label {
  display: inline-flex;
  position: relative;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 45px;
  padding: 7px 3px;
  cursor: pointer;
  color: #b9c9c8;
  font-size: clamp(.81rem, 1.1vw, .96rem);
  line-height: 1.2;
  text-align: center;
}
.engineering-selector label:hover { color: #fff1d9; }
.engineering-selector input:checked + label { color: #ffe6c8; font-weight: 650; }
.engineering-selector input:checked + label::after {
  content: "";
  position: absolute;
  inset: auto 7px -1px;
  height: 3px;
  background: #e5b28a;
}
.engineering-selector input:focus-visible + label { outline: 2px solid #f2c295; outline-offset: -4px; }
.eng-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.eng-art > img, .eng-art > svg { display: block; width: 100%; height: 100%; }
.eng-art > img { object-fit: cover; }
.eng-pulse { position: absolute; inset: 0; pointer-events: none; }
.eng-panel { display: none; }
.eng-panel[data-eng-panel="ground"] { display: block; }
.engineering-views:has(#eng-measure:checked) [data-eng-panel="ground"],
.engineering-views:has(#eng-sail:checked) [data-eng-panel="ground"] { display: none; }
.engineering-views:has(#eng-measure:checked) [data-eng-panel="measure"],
.engineering-views:has(#eng-sail:checked) [data-eng-panel="sail"] { display: block; }
.eng-annotation {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  border-top: 1px solid #44555d;
  padding: 2px clamp(12px, 1.7vw, 22px);
  background: #182a32;
}
.eng-annotation a, .eng-trace {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: #e6efe9;
  font-size: .87rem;
  line-height: 1.35;
}
.eng-annotation a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #90a8a1; }
.eng-annotation a:hover { color: #ffd5a9; }
.eng-trace { border: 0; padding: 4px 0; background: transparent; color: #efc29c; }
.eng-trace::before {
  content: "";
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  border-left: 6px solid currentColor;
  margin-right: 7px;
}
.eng-trace[hidden] { display: none; }
.eng-trace:hover { text-decoration: underline; text-underline-offset: 4px; }
.eng-annotation :focus-visible { outline-color: #ffd5a9; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .eng-panel .eng-art img { animation: plate-in .35s ease-out; }
  @keyframes plate-in { from { opacity: .55; } to { opacity: 1; } }
}
@media (max-width: 620px) {
  .engineering-views { width: 100%; }
  .engineering-selector { padding-inline: 2px; }
  .eng-annotation { min-height: 43px; padding-block: 0; }
  .eng-annotation a, .eng-trace { font-size: .8rem; }
}
