#system-dialog {
  width: min(1180px, 94vw);
  height: min(820px, 90svh);
  max-height: 90svh;
  padding: 0;
  margin: auto;
  background: #fff;
  overflow: hidden;
}
.system-close {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 61px;
  padding: 14px 26px;
  font-size: 13px;
}
.system-close span { font-size: 25px; }
.system-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 40px;
  height: calc(100% - 61px);
  padding: 10px 32px 32px;
  min-height: 0;
}
.system-player { min-width: 0; min-height: 0; background: #fafbf8; }
#system-animation { display: block; width: 100%; height: 100%; border: 0; }
.system-detail-copy { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 0 0; }
.system-detail-copy .eyebrow { font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.system-detail-copy h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.15; }
.system-detail-copy>p:not(.eyebrow) { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 24px; }
.system-detail-copy dl { margin: 30px 0 0; }
.system-detail-copy dl>div { border-top: 1px solid var(--line); padding: 16px 0; }
.system-detail-copy dt { font-size: 11px; color: var(--muted); }
.system-detail-copy dd { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
.system-detail-copy .system-interaction { border-top: 1px solid var(--line); padding-top: 22px; font-size: 11px!important; }
.system-detail-copy .text-link { font-size: 12px; margin-top: 24px; }
.system-animation-link { cursor: pointer; }
.system-copy h3 .system-animation-link:hover { color: var(--green); }
@media(max-width:760px) {
  #system-dialog { overflow-y: auto; }
  .system-close { position: sticky; top: 0; background: #fff; z-index: 1; }
  .system-detail { display: flex; flex-direction: column; height: auto; gap: 24px; padding: 0 20px 28px; }
  .system-player { height: 56svh; min-height: 340px; flex-shrink: 0; }
  .system-detail-copy { padding: 0; overflow: visible; }
  .system-detail-copy h2 { font-size: 30px; }
}

.system-card:has(.system-visual.system-animation-link) {
  grid-template-columns: clamp(180px, 16vw, 240px) minmax(0, 1fr);
}
.system-preview { margin: 0; min-width: 0; align-self: start; }
.system-preview figcaption { text-align: center; margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.system-visual.system-animation-link {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 405 / 645;
  min-height: 0;
  align-self: start;
}
.system-visual.system-animation-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

@media(max-width:760px) {
  .system-card:has(.system-visual.system-animation-link) {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

.system-preview .system-visual[href="#system=integrated-insulated"] img { object-position: left center; transform: translateX(1.5%); }

.system-preview .system-visual[href="#system=unitised"] img { transform: translateX(2%); }
