/* One quiet surface for conceptual artwork and the corresponding diagrams. */
.system-picture,
.direction-picture { background: #fff; aspect-ratio: 8 / 5; }
.system-picture img,
.direction-picture img { object-fit: contain; }
.system-picture:focus-visible,
.direction-picture:focus-visible { outline: 3px solid var(--customer-red, #b72c2c); outline-offset: 3px; }
.customer-detail-hero { background: #f7f8f7; }
.customer-detail-hero .visual-gallery { min-width: 0; background: #fff; align-self: start; }
.visual-gallery-stage { background: #fff; }
.visual-gallery-enlarge { position: relative; display: block; aspect-ratio: 8 / 5; cursor: zoom-in; }
.customer-detail-hero .visual-gallery .visual-gallery-stage img { display: block; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; }
.visual-gallery-enlarge-label { position: absolute; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border: 1px solid #d8dddc; border-radius: 6px; background: #fff; color: #232729; font-size: 12px; line-height: 1.4; box-shadow: 0 2px 8px #23272908; }
.visual-gallery-enlarge-label > span { font-size: 19px; }
.visual-gallery-views { display: flex; gap: 7px; padding: 15px 17px; flex-wrap: wrap; border-top: 1px solid #e8eae8; }
.visual-gallery-views button { flex: 1 1 auto; min-height: 44px; padding: 10px 12px; border: 1px solid #d8dddc; border-radius: 6px; background: #fff; color: #424a48; font: inherit; font-size: 13px; line-height: 1.45; cursor: pointer; }
.visual-gallery-views button:hover { border-color: #697174; }
.visual-gallery-views button[aria-pressed="true"] { color: #fff; border-color: var(--customer-red, #b72c2c); background: var(--customer-red, #b72c2c); }
.visual-gallery button:focus-visible,
.visual-gallery-enlarge:focus-visible,
.visual-dialog button:focus-visible { outline: 3px solid var(--customer-red, #b72c2c); outline-offset: 3px; }
.customer-detail-hero .visual-gallery figcaption { padding: 0 18px 17px; border-top: 0; font-size: 11px; line-height: 1.65; }
.visual-dialog { width: min(1200px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 20px; border: 1px solid #d8dddc; border-radius: 12px; background: #fff; color: #232729; overflow: auto; box-sizing: border-box; box-shadow: 0 20px 90px #0004; }
.visual-dialog[open] { display: flex; flex-direction: column; }
.visual-dialog::backdrop { background: #182020bb; }
.visual-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto; }
.visual-dialog-header h2 { margin: 0; font-size: clamp(18px, 2.4vw, 27px); line-height: 1.25; letter-spacing: -.02em; }
.visual-dialog-close { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding: 10px 14px; min-height: 44px; border: 1px solid #d8dddc; border-radius: 6px; background: #fff; color: #232729; font: inherit; font-size: 13px; cursor: pointer; }
.visual-dialog-close > span { font-size: 22px; line-height: 1; }
.visual-dialog-close:hover { background: #f3f4f2; }
.visual-dialog-picture { display: flex; justify-content: center; min-height: 0; margin-top: 12px; }
.visual-dialog-picture img { display: block; width: 100%; height: auto; max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); object-fit: contain; }
.visual-dialog .visual-gallery-views { justify-content: center; flex: 0 0 auto; margin-top: 8px; padding: 14px 0 0; }
.visual-dialog .visual-gallery-views button { flex: 0 1 180px; }
.visual-dialog-caption { flex: 0 0 auto; margin: 12px 0 0; color: #697174; font-size: 11px; text-align: center; }
@media (max-width: 760px) {
  .visual-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 14px; border-radius: 9px; }
  .visual-dialog-header { align-items: flex-start; gap: 12px; }
  .visual-dialog-header h2 { padding-top: 9px; font-size: 18px; }
  .visual-dialog-close { padding: 10px; gap: 8px; font-size: 12px; }
  .visual-dialog .visual-gallery-views { gap: 6px; }
  .visual-dialog .visual-gallery-views button { flex: 1 1 auto; font-size: 12px; padding: 10px; }
  .visual-dialog-picture img { max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); }
}
@media (max-width: 380px) {
  .visual-gallery-views { gap: 5px; padding: 12px; }
  .visual-gallery-views button { font-size: 12px; padding: 10px 8px; }
  .visual-gallery-enlarge-label { right: 10px; bottom: 9px; font-size: 11px; }
}
