/* Explicit state rules outrank previous display declarations. */
body .dev56 .dev56-form[hidden],body:not(.compact-layout) .dev56 .dev56-form[hidden],body.compact-layout .dev56 .dev56-form[hidden]{display:none!important}
body:not(.compact-layout) .dev56 .development-stage:not(.is-open) .dev56-form{display:none!important}
/* Image and family controls share the height left above the footer. */
body:not(.compact-layout) .detail-page .page-body{overflow:hidden;min-height:0}
body:not(.compact-layout) .detail-page .detail-layout{height:100%;min-height:0;align-items:stretch}
body:not(.compact-layout) .detail-page .detail-image{height:100%;min-height:0;overflow:hidden}
body:not(.compact-layout) .detail-page .detail-image .product-art{height:0!important;min-height:0!important;flex:1 1 0!important;width:100%;max-height:none}
body:not(.compact-layout) .detail-page .series-strip{flex:0 0 auto;min-width:0;gap:10px;margin-top:12px;padding-top:10px;padding-bottom:4px}
body:not(.compact-layout) .detail-page .series-strip button{line-height:1.4;max-width:42%;white-space:normal}
body:not(.compact-layout) .detail-page .series-strip select{width:100%;min-width:0}
/* Remove the legacy thumbnail float and margin inside every image frame. */
.product-reference-figure>.selection-reference-image{float:none!important;margin:0!important;position:static!important}
body.compact-layout .mobile-topic-dialog .topic-dialog-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
body.compact-layout .mobile-topic-dialog .topic-product{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start;gap:8px;min-width:0;padding:8px!important}
body.compact-layout .mobile-topic-dialog .topic-product .product-reference-figure{display:flex;width:100%!important;height:130px!important;min-height:0;margin:0;padding:3px!important;background:#fff;border-radius:4px;overflow:hidden}
body.compact-layout .mobile-topic-dialog .topic-product .product-reference-figure>img{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;float:none!important;margin:0!important}
body.compact-layout .mobile-topic-dialog .topic-product>span{position:static;width:100%;font-size:14px;line-height:1.4;text-align:center}
/* Compact carousel summaries retain the neighboring-card swipe cue. */
body.compact-layout .mobile-product-families{gap:18px}
body.compact-layout .mobile-family-row{padding-bottom:16px}
body.compact-layout .mobile-family-heading{margin-bottom:10px}
body.compact-layout .mobile-rail-product{flex-basis:62%;width:62%}
body.compact-layout .mobile-rail-product .product-card{height:auto!important;min-height:0!important;gap:0;padding:0 4px!important;align-items:stretch}
body.compact-layout .mobile-rail-product .product-reference-figure{height:150px!important;margin-bottom:8px;padding:5px}
body.compact-layout .mobile-rail-product .product-reference-figure>img{height:135px!important;max-height:135px!important}
body.compact-layout .mobile-rail-product .product-card h2{margin:0 0 5px!important;line-height:1.4!important}
body.compact-layout .mobile-rail-product .product-card>.subtle{margin:0!important}
body.compact-layout .rail-specification{display:block;white-space:normal;word-break:normal;overflow-wrap:normal;margin-top:6px;font-size:12px;line-height:1.5}
body.compact-layout .mobile-rail-product .selection-image-pending{height:150px!important;min-height:0!important;display:grid;place-items:center;margin-bottom:8px}
/* Mobile entry controls use their content height, not large backdrop cards. */
body.compact-layout .portrait-city .portrait-tagline{top:20%!important;background:#243743aa;display:inline-block;padding:2px 6px;border-radius:3px;font-size:12px;line-height:1.5;width:auto;max-width:88%}
body.compact-layout .portrait-city .portrait-impact{top:26%!important;right:5%!important;max-width:53%!important;width:max-content!important;height:auto!important;min-height:40px!important;gap:6px!important;padding:5px 7px!important;background:#243743bc!important;border-radius:4px;font-size:16px}
body.compact-layout .portrait-impact .portrait-cycle-symbol{width:30px!important;height:30px!important;flex:none}
body.compact-layout .portrait-impact strong{font-size:16px;line-height:1.25}
body.compact-layout .portrait-impact small{font-size:11px!important;line-height:1.4!important}
body.compact-layout .portrait-impact>span:before,body.compact-layout .portrait-development:after,body.compact-layout .portrait-development:before{display:none!important}
body.compact-layout .portrait-city .portrait-development{top:71%!important;right:5%!important;max-width:47%;height:auto;min-height:0;padding:5px 7px!important;font-size:15px;background:#243743bc!important;gap:3px}
body.compact-layout .portrait-city .portrait-development small{font-size:10px!important;line-height:1.4!important}
.portrait-product-entry{position:absolute;left:5%;bottom:3%;width:90%;height:auto;display:grid;gap:7px;opacity:var(--parallel-reveal,1)}
.portrait-product-entry .portrait-entry-heading{display:flex;align-items:center;gap:.4em;justify-self:start;position:static;width:auto;min-height:24px!important;padding:0;border:0;background:none;color:#e8eedc;font-size:16px;line-height:1.5;text-shadow:0 1px 5px #102330}
.portrait-entry-heading .action-cue{position:static!important;inset:auto!important;display:inline-block!important;width:1.15em!important;height:1.15em!important;flex:none}
.portrait-entry-heading>span{color:#c6dca1}.portrait-product-bar{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;padding:3px 8px 3px 0;background:#24374380;border-radius:4px}
body.compact-layout .portrait-city .portrait-product-entry .portrait-collection{position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center;inset:auto!important;width:50px!important;max-width:50px!important;height:50px!important;min-height:50px!important;padding:0!important;background:none!important;border:0;opacity:1}
body.compact-layout .portrait-product-entry .portrait-collection>img{width:48px!important;height:48px!important;margin:0!important;object-fit:contain}
.portrait-product-bar .portrait-family-shortcut{font-size:13px;line-height:1.4;min-height:44px;padding:6px;border:0;background:none;color:#e9eedf}
.intro-running .portrait-product-entry{visibility:hidden!important;pointer-events:none!important}
@media(max-width:360px){body.compact-layout .mobile-topic-dialog .topic-product .product-reference-figure{height:110px!important}.portrait-product-entry{bottom:2%}.portrait-product-bar{gap:8px}.portrait-product-entry .portrait-entry-heading{font-size:15px}}
@media(max-height:650px){body.compact-layout .portrait-city .portrait-impact{top:27%!important}}
/* Supporting copy follows the two-line heading at every viewport height. */
body.compact-layout .portrait-city{--portrait-title-size:clamp(21px,min(6.4cqw,3.6dvh),28px)}
body.compact-layout .portrait-city .portrait-headline{top:9%!important;font-size:var(--portrait-title-size)!important;line-height:1.3!important}
body.compact-layout .portrait-city .portrait-tagline{top:calc(9% + var(--portrait-title-size) * 2.6 + 8px)!important}
/* Settle the left-hand illustration before fading in the form. */
@media(prefers-reduced-motion:no-preference){.dev56 .is-open .dev56-form{animation-delay:.65s!important}}
