/* V29: open-card layout only; existing artwork and color palette preserved. */
.v29-house-modal .v6-house-dialog { min-height:0; grid-template-rows:minmax(0,1fr)!important; }
.v29-house-modal .v6-house-dialog>img { min-width:0; min-height:0!important; }
.v29-house-modal .v6-house-copy {
  display:grid!important;
  grid-template-rows:var(--v29-title-space,84px) minmax(0,1fr) auto;
  row-gap:18px;
  min-width:0;
  min-height:0;
  max-height:none!important;
  overflow:hidden!important;
}
.v29-house-modal .v6-house-copy h3 {
  align-self:start;
  min-width:0;
  max-width:100%!important;
  margin:0!important;
  line-height:1.05!important;
  overflow-wrap:normal;
}
.v29-house-modal .v29-house-body {
  min-width:0;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scroll-behavior:auto!important;
  -webkit-overflow-scrolling:touch;
}
.v29-house-modal .v6-summary { margin:0 0 24px!important; }
.v29-house-modal .v6-house-meta { grid-template-columns:105px minmax(0,1fr)!important; }
.v29-house-modal .v6-house-meta>span { min-width:0; overflow-wrap:anywhere; }
.v29-house-modal .v6-link { line-height:1.5; }
.v29-house-modal .v6-house-nav {
  display:flex;
  justify-content:space-between;
  align-items:stretch!important;
  gap:18px!important;
  min-width:0;
  margin:0!important;
  padding-inline:4px;
}
.v29-house-modal .v6-house-nav button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  min-height:44px!important;
  max-width:none!important;
  padding:8px 0!important;
  line-height:1.4!important;
}
.v29-house-modal .v29-house-label { min-width:0; }
.v29-house-modal .v6-house-close {
  display:grid;
  place-items:center;
  width:44px!important;
  height:44px!important;
  padding:0!important;
  line-height:1!important;
  z-index:3!important;
}
.v29-house-modal .v29-house-arrow {
  display:inline-block;
  flex-shrink:0;
  transition:transform 240ms cubic-bezier(.22,.61,.36,1);
}
.v29-house-modal .v6-link .v29-house-arrow { margin-left:3px; }
.v29-house-modal .v6-prev { --v29-arrow-x:-3px; --v29-arrow-y:0px; }
.v29-house-modal .v6-next { --v29-arrow-x:3px; --v29-arrow-y:0px; }
.v29-house-modal .v6-link { --v29-arrow-x:2px; --v29-arrow-y:-2px; }
@media (hover:hover) and (pointer:fine) {
  .v29-house-modal :is(.v6-prev,.v6-next,.v6-link):hover .v29-house-arrow {
    transform:translate(var(--v29-arrow-x),var(--v29-arrow-y));
  }
}
.v29-house-modal :is(.v6-prev,.v6-next,.v6-link):is(:focus-visible,:active) .v29-house-arrow {
  transform:translate(var(--v29-arrow-x),var(--v29-arrow-y));
}
.v29-house-modal :is(.v6-prev,.v6-next,.v6-link,.v6-house-close):focus-visible {
  outline:2px solid currentColor;
  outline-offset:3px;
}
@media (max-width:800px) {
  .v29-house-modal {
    padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))!important;
  }
  .v29-house-modal .v6-house-dialog {
    width:min(430px,100%)!important;
    height:min(680px,86vh)!important;
    height:min(680px,86dvh)!important;
    max-height:calc(100vh - 24px)!important;
    max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    grid-template-rows:clamp(100px,26vh,210px) minmax(0,1fr)!important;
    grid-template-rows:clamp(100px,26dvh,210px) minmax(0,1fr)!important;
  }
  .v29-house-modal .v6-house-dialog>img {
    height:100%!important;
    max-height:none!important;
  }
  .v29-house-modal .v6-house-copy { padding:20px!important; row-gap:14px; }
  .v29-house-modal .v6-house-copy h3 { font-size:clamp(24px,6.8vw,30px)!important; }
  .v29-house-modal .v6-summary { margin-bottom:18px!important; font-size:15px!important; line-height:1.45!important; }
  .v29-house-modal .v6-house-meta { grid-template-columns:70px minmax(0,1fr)!important; gap:10px 12px!important; font-size:13px!important; }
  .v29-house-modal .v6-link { display:inline-block; min-height:44px; padding:8px 0; }
  .v29-house-modal .v6-house-nav { gap:12px!important; }
  .v29-house-modal .v6-house-nav button { flex:1; font-size:11px!important; letter-spacing:.045em!important; }
  .v29-house-modal .v6-house-close { top:8px!important; right:8px!important; }
}
@media (max-width:380px) {
  .v29-house-modal .v6-house-copy { padding:16px!important; row-gap:12px; }
}
@media (min-width:801px) and (max-height:500px) {
  .v29-house-modal .v6-house-copy { padding:25px 36px!important; row-gap:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .v29-house-modal .v29-house-arrow { transform:none!important; transition:none!important; }
}
