/* The standalone workspace is also embedded in the public site. */
html, body { margin: 0; height: 100%; overflow: hidden; }
.viewer-page {
    width: 100%; height: 100vh; height: 100dvh;
    min-height: 0; padding: 0; background: #eef4fa;
}
.viewer-page .adac-viewer {
    width: 100%; height: 100%; min-height: 0;
    margin: 0; padding: 8px;
    grid-template-rows: auto auto minmax(0, 1fr);
}
.adac-viewer__mast > div:first-child, .adac-viewer__seo { display: none; }
.adac-viewer__mast {
    display: flex; min-width: 0; align-items: center;
    justify-content: space-between; gap: 16px;
}
.viewer-workspace-brand {
    display: inline-flex; min-width: max-content; align-items: center;
    gap: 9px; color: var(--mockup-ink); line-height: 1.05;
}
.viewer-workspace-brand img { width: 38px; height: 38px; object-fit: contain; }
.viewer-workspace-brand span { display: grid; gap: 3px; }
.viewer-workspace-brand strong { font-size: 15px; font-weight: 800; }
.viewer-workspace-brand small { font-size: 12px; color: var(--mockup-body); }
.adac-viewer__actions {
    min-width: 0; flex-wrap: nowrap; justify-content: flex-end;
    overflow-x: auto; scrollbar-width: thin;
}
.adac-viewer__actions > *, .adac-viewer__actions .viewer-button { flex: 0 0 auto; }
.viewer-shell { height: auto; min-height: 0; }
.viewer-map-panel, .viewer-inspector { height: 100%; min-height: 0; }
@media (max-width: 767.98px) {
    .viewer-page .adac-viewer { gap: 6px; padding: 6px; }
    .adac-viewer__mast { gap: 8px; overflow: hidden; }
    .viewer-workspace-brand img { width: 32px; height: 32px; }
    .viewer-workspace-brand small { display: none; }
    .adac-viewer__actions { justify-content: flex-start; }
    .viewer-tool-buttons { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
    .viewer-tool-buttons > * { flex: 0 0 auto; }
    .viewer-tool-buttons > button { min-width: 40px; }
    .viewer-shell { grid-template-rows: minmax(0, 1fr) minmax(180px, .42fr); }
}
