/* Glue between Orgestrate's vendored surfaces (css/vendor/orgestrate/surfaces.css) and the H4Connect shell. */
.panel-root { position: fixed; inset: 0; z-index: var(--h4-z-dialog); }
.panel-root[hidden] { display: none; }
.panel-root .scrim { position: absolute; inset: 0; background: var(--h4-backdrop); }
/* The surface keeps app.css's z-index (slidein 45, drawer 41, modal 42) so it sits above the scrim (40) inside the root. */
.panel-surface .hd .row { display: flex; align-items: center; gap: 10px; width: 100%; }
.panel-surface .panel-heading-text { min-width: 0; }
.panel-surface .panel-heading-text h2 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-surface .small.muted { font-size: 12px; color: var(--text-3); }
.panel-surface .bd { display: block; }               /* page bodies lay themselves out; no forced grid gap */
.panel-surface .bd .card { padding: 14px; }
.panel-surface .bd .layout-2 { grid-template-columns: 1fr; }
.panel-surface .bd .strip { grid-template-columns: 1fr 1fr; }
.panel-loading { padding: 24px 0; }
.panel-page { padding: 4px 0; }
@media (max-width: 639px) { .slidein, .slidein.wide, .drawer { width: 100vw; } .modal { top: 0; max-height: 100vh; border-radius: 0; width: 100vw; } }
/* Carousel Workspace host: the Card Stage needs a height-bounded element. */
.stage-host { position: relative; height: var(--stage-h, 460px); min-height: 0; display: flex; flex-direction: column; margin: 0 0 16px; }
.stage-host .rec-grid { height: 100%; }
.stage-host[data-rail="off"] .side-icons { display: none; }   /* product pages: the carousel alone, no presentation rail */
.stage-host .rec-dots .dot-hint { display: none; }               /* split stays on Ctrl/⌘+click (in the dot title); no hint text */
.stage-card-body { padding: 12px 14px 16px; overflow: auto; flex: 1; min-height: 0; }
.stage-card-body .activity.compact li { padding: 6px 0; }
@media (max-width: 639px) { .stage-host { height: auto; } .stage-host .rec-grid { height: 420px; } }
.panel-surface .panel-back[hidden] { display: none; }
.panel-surface .icon-only { min-width: 36px; padding: 0 8px; }
.stage-host svg.icon { width: 16px; height: 16px; }
.stage-card-title { margin: 0 0 10px; font-size: 15px; font-weight: var(--h4-weight-semibold); }
.stage-host.stage-stacked { height: auto; display: grid; gap: 12px; }
.stage-stack-card { padding: 0; }
.stage-stack-card .stage-card-body { padding: 14px; }
