/* Fonte única do layout aprovado: preset empilhado, grupo unido, scroll interno. */
#ld-demo.ld-fixed-shell{position:relative;width:100%;max-width:820px;height:740px;display:flex;flex-direction:column;gap:10px}
#ld-demo.ld-fixed-shell .ld-preset-header{flex:none;grid-template-columns:104px minmax(0,1fr) auto;min-height:82px;padding:10px 16px;gap:16px;margin:0 0 4px;border:1px solid var(--lm-line);border-radius:var(--luzshade-corner-radius)}
#ld-demo.ld-fixed-shell :is(.lm-logo,.lm-theme-logo){width:104px}
#ld-demo[data-preset-layout=stacked] .ld-picker-trigger{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:start;gap:1px;padding:2px 28px 2px 16px;min-height:58px}
#ld-demo[data-preset-layout=stacked] .ld-picker-trigger :is(.ld-preset-eyebrow,.ld-save-state){font-size:var(--ld-text-meta)}
#ld-demo[data-preset-layout=stacked] .ld-picker-trigger .ld-preset-name{font-size:var(--ld-text-support)}
#ld-demo.ld-fixed-shell .ld-window-frame{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;border:1px solid var(--lm-line);border-radius:var(--luzshade-corner-radius);background:var(--lm-surface)}
#ld-demo.ld-fixed-shell .ld-group-bar{display:flex;height:32px;flex:none;border-bottom:1px solid var(--lm-line);background:var(--lm-container);color:var(--lm-muted)}
#ld-demo.ld-fixed-shell .ld-group-bar .ld-window-detail{display:block;margin-left:auto}
#ld-demo.ld-fixed-shell .ld-window>.ld-window-bar{display:none}
#ld-demo.ld-fixed-shell .ld-workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 224px;align-items:stretch;gap:0}
#ld-demo.ld-fixed-shell .ld-window{display:flex;flex-direction:column;min-height:0;height:100%;order:initial;border:0;border-radius:0!important}
#ld-demo.ld-fixed-shell .ld-layers-window{border-left:1px solid var(--lm-line);border-bottom:0}
#ld-demo.ld-fixed-shell.ld-layer-actions-compact .ld-layers-window{height:100%;min-height:0}
#ld-demo.ld-fixed-shell .ld-tabs{flex:none;padding:0 6px;min-height:44px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
#ld-demo.ld-fixed-shell .ld-tab{min-height:44px;padding:0 10px}
#ld-demo.ld-fixed-shell .ld-tools-window .ld-panels{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--lm-line) var(--lm-surface);overscroll-behavior:contain;scroll-behavior:auto}
#ld-demo.ld-fixed-shell .lm-editor{padding:18px}
#ld-demo.ld-fixed-shell .ld-selection-context{margin-bottom:14px;padding-bottom:12px}
#ld-demo.ld-fixed-shell .lm-editor-title{margin-bottom:16px;min-height:0;gap:12px}
#ld-demo.ld-fixed-shell .lm-editor-title h1{font-size:var(--ld-text-title)}
#ld-demo.ld-fixed-shell .ld-inspector-actions{gap:12px}
#ld-demo.ld-fixed-shell .lm-section{padding:18px 16px}
#ld-demo.ld-fixed-shell .lm-sidebar{padding:16px 10px;border-top:0}
#ld-demo.ld-fixed-shell .lm-sidebar-description{padding-bottom:12px}
#ld-demo.ld-fixed-shell .lm-layer-list{grid-template-columns:1fr;gap:4px}
#ld-demo.ld-fixed-shell .lm-layer{min-height:54px}
#ld-demo.ld-fixed-shell .ld-select-layer{padding:8px;gap:8px}
#ld-demo.ld-fixed-shell .lm-stack-note{margin-top:16px;padding-top:12px}
#ld-demo.ld-fixed-shell .ld-header-actions>button{padding-inline:12px}
#ld-demo.ld-fixed-shell .lm-hsl-controls .lm-control{grid-template-columns:1fr}
#ld-demo.ld-fixed-shell .lm-effect-label{display:inline}
#ld-demo.ld-fixed-shell .ld-layer-footer{flex:none}
#ld-demo.ld-fixed-shell .ld-layer-scroll{scrollbar-color:var(--lm-line) var(--lm-surface)}
#ld-demo.ld-fixed-shell .ld-prototype-footer{display:none}
html.ld-shell-embed,html.ld-shell-embed body{height:100%;margin:0;padding:0;overflow:hidden;background:transparent!important}
html.ld-shell-embed #ld-demo.ld-fixed-shell{position:absolute;left:50%;top:12px;width:820px;max-width:none;transform:translateX(-50%) scale(var(--shell-scale,1));transform-origin:top center}
@media(max-width:660px){html:not(.ld-shell-embed) #ld-demo.ld-fixed-shell .ld-workspace{grid-template-columns:minmax(0,1fr) 178px}html:not(.ld-shell-embed) #ld-demo.ld-fixed-shell .ld-preset-header{grid-template-columns:80px minmax(0,1fr);gap:10px}html:not(.ld-shell-embed) #ld-demo.ld-fixed-shell .ld-header-actions{grid-column:1/-1}html:not(.ld-shell-embed) #ld-demo.ld-fixed-shell .lm-basic-grid{grid-template-columns:1fr}}

/* Cápsulas compactas do cabeçalho nativo. */
#ld-demo .ld-preset-header .ld-header-actions>button{width:calc(64px * var(--ld-ui-scale,1));height:calc(42px * var(--ld-ui-scale,1));padding:0;flex:none;border-radius:999px}
#ld-demo .ld-preset-header :is(.ld-compare-action,.ld-split-action){background:var(--lm-high);color:var(--lm-text);border:1px solid var(--lm-line)}
#ld-demo .ld-preset-header :is(.ld-compare-action,.ld-split-action):hover:not(:disabled){background:var(--lm-container)}
#ld-demo .ld-preset-header :is(.ld-compare-action,.ld-split-action)[aria-pressed=true]{background:var(--lm-high);color:var(--lm-primary);border-color:var(--lm-primary)}
#ld-demo .ld-preset-header :is(.ld-compare-action,.ld-split-action):disabled,#ld-demo .ld-preset-header .ld-save-action:disabled{background:var(--lm-high);color:var(--lm-muted);opacity:.55;cursor:default}
#ld-demo .ld-preset-header .ld-more-action{color:var(--lm-muted)}
