/* Preserve the operational table on desktop; keep the activation action visible on phones. */
.deployment-model { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--j-line); }
.deployment-model-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.deployment-model details { border: 1px solid var(--j-line); margin: 8px 0; padding: 10px; }
.deployment-model summary { cursor: pointer; overflow-wrap: anywhere; }
.deployment-model-view { padding: 0 10px; }
.deployment-model-fields { list-style: none; padding: 0; }
.deployment-model-fields > li { padding: 8px 0; border-bottom: 1px solid var(--j-line); overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .journey .deployment-installations { overflow: visible; }
    .journey .deployment-installations table { display: block; min-width: 0; width: 100%; }
    .journey .deployment-installations thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .journey .deployment-installations tbody { display: block; }
    .journey .deployment-installations tr { display: block; border-bottom: 1px solid var(--j-line); padding: 8px 0; }
    .journey .deployment-installations td { display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: start; gap: 10px; padding: 7px 0; border: 0; overflow-wrap: anywhere; }
    .journey .deployment-installations td::before { content: attr(data-label); font-weight: 600; }
    .journey .deployment-installations td[colspan] { display: block; }
    .journey .deployment-installations td[colspan]::before { content: none; }
    .journey .deployment-installations td button { width: 100%; }
}

/* Modeless installation drawer: the catalogue stays available on the left. */
#deployment-workspace:not([open]){display:none!important}
#deployment-workspace[open]{position:fixed;inset:82px 0 0 auto;z-index:1040;width:min(760px,65vw);max-height:calc(100dvh - 82px);overflow:auto;margin:0!important;padding:18px!important;border:1px solid var(--cat-line);background:var(--cat-surface);color:var(--cat-text);box-shadow:-8px 0 28px #0003}
#deployment-workspace>summary{padding-right:100px;pointer-events:none;list-style:none}
#deployment-drawer-close{position:absolute;right:14px;top:12px;min-height:36px}
#deployment-workspace .journey-expand-content{min-width:0}
@media(max-width:760px){#deployment-workspace[open]{inset:0;width:100%;max-height:100dvh;padding:14px!important}#deployment-workspace .journey-fields{grid-template-columns:1fr}}
