#layerModel{display:flex;align-items:center;justify-content:space-between;padding:10px 4px 14px;border-bottom:1px solid var(--line);gap:12px}#layerModel>span{font-size:12px;color:var(--muted)}#layerModel .body-gender{display:flex!important;margin:0}#layerModel button{min-width:72px;min-height:34px}.layer-caption{font-size:11px;color:var(--muted);padding:12px 4px 6px}.layer-list li[data-group]{display:grid;grid-template-columns:22px minmax(0,1fr) 62px 42px;align-items:center;gap:6px;padding:5px 4px;min-height:47px;border-bottom:1px solid var(--line)}.layer-list li[data-group] .name{font-size:13px;min-height:38px;gap:8px;line-height:1.3}.layer-list li[data-group] .count{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;color:var(--muted)}.layer-list li[data-group] .solo{opacity:1;font-size:11px;padding:4px;min-width:38px;border:1px solid var(--line);border-radius:6px}.layer-list li[data-group].empty{opacity:.45}.layer-list li[data-group=additional]{margin-top:8px;border-top:1px dashed var(--line)}.layer-list li[data-group] .swatch{flex:0 0 8px;width:8px;height:8px;border-radius:50%}
/* Override legacy flex rows and bottom-sheet typography. */
.layer-list li[data-group] .name{display:flex;align-items:center;white-space:normal}.layer-list{padding:0}.layer-list li[data-group] input{margin:0}.layer-list li[data-group] input:indeterminate{opacity:.65}.panel-sidebar:not(.panel-sections) .sidebar{width:370px;height:650px;max-height:calc(100dvh - 86px);bottom:auto;resize:both;overflow:auto;min-width:310px;min-height:260px}.panel-sidebar:not(.panel-sections) .sidebar .sheet-controls{flex:none;padding:8px 10px 8px 14px;min-height:44px;border-bottom:1px solid var(--line)}.panel-sidebar:not(.panel-sections) .sidebar #sectionTitle{display:block!important;order:-1;margin-right:auto;font-size:14px;cursor:grab}.panel-sidebar:not(.panel-sections) .sidebar #layerAllRow{font-size:11px;margin-right:6px}.panel-sidebar:not(.panel-sections) .sidebar .pane{padding:10px 14px;overflow:auto;min-height:0}.panel-sidebar:not(.panel-sections) #hiddenNote{display:none}.panel-sidebar:not(.panel-sections) #layerModel{position:sticky;top:-10px;background:var(--panel);z-index:2}.panel-sidebar:not(.panel-sections) .layer-list li{border-radius:0}@media(max-width:950px){.panel-sidebar:not(.panel-sections) .sidebar{left:12px;right:auto;top:62px;width:350px;max-width:calc(100vw - 24px);height:640px;max-height:calc(100dvh - 126px)}}
.panel-sidebar:not(.panel-sections) .sidebar{z-index:65}.layer-list li[data-group].empty{opacity:.4}.panel-sidebar:not(.panel-sections) .sidebar .layer-caption{line-height:1.5}.panel-sidebar:not(.panel-sections) .sidebar #layerAllRow{white-space:nowrap}

.layer-scope{display:flex;margin-top:12px;width:100%}.layer-scope button{flex:1;min-height:34px;font-size:12px}
.layer-list li[data-group]{grid-template-columns:32px minmax(0,1fr) 62px 36px;column-gap:10px}.layer-list li[data-group] .solo{display:grid;place-items:center;min-height:32px}.panel-sidebar:not(.panel-sections) .sidebar,.panel-sidebar:not(.panel-sections) .sidebar .pane{scrollbar-width:none}.panel-sidebar:not(.panel-sections) .sidebar::-webkit-scrollbar,.panel-sidebar:not(.panel-sections) .sidebar .pane::-webkit-scrollbar{display:none}.panel-sidebar:not(.panel-sections) .sidebar .sheet-controls{min-height:36px;padding:4px 8px 4px 12px}.panel-sidebar:not(.panel-sections) .sidebar #layerCaption{padding:10px 2px 4px}.panel-sidebar:not(.panel-sections) .sidebar #layerAllRow{display:flex!important;align-items:center;gap:8px;min-height:26px}

.panel-sidebar:not(.panel-sections) .sidebar .sheet-controls{background:color-mix(in srgb,var(--panel) 88%,#8bd0bf 12%);cursor:grab;border-bottom:1px solid #9ed7c52b;border-radius:13px 13px 0 0}.panel-sidebar:not(.panel-sections) .sidebar .sheet-controls:active{cursor:grabbing}.topbar .layers-shortcut{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0}
.layer-list li.layer-child{padding-left:18px;background:#ffffff03;min-height:40px}.layer-list li.layer-child .name{font-size:12px}.layer-list li[data-group][hidden]{display:none!important}.layer-list .layer-expand{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:26px;padding:0;border:0;background:transparent;color:var(--film);font-size:21px;cursor:pointer}.layer-list li[data-group] .name{gap:7px}.layer-list li.layer-child .swatch{width:5px;height:5px;flex-basis:5px;opacity:.6}
#layerControlBar{position:sticky;top:-10px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--panel);padding:9px 0 10px;border-bottom:1px solid var(--line)}#layerControlBar #layerModel{position:static;border:0;padding:0;flex:0 0 auto}#layerControlBar [data-layer-model-label]{display:none}#layerControlBar .body-gender{gap:2px}#layerControlBar .body-gender button{min-width:34px;min-height:32px;padding:0 7px;font-size:21px;line-height:1}#layerControlBar .layer-scope{margin:0;width:auto;flex:0 1 auto}#layerControlBar .layer-scope button{min-height:32px;padding:0 9px;white-space:nowrap;font-size:12px}
#layerControlBar #layerModel>[data-layer-model-label]{display:none!important}

.panel-sidebar:not(.panel-sections) .sidebar .sheet-controls{padding:2px 6px 2px 10px;min-height:32px}.panel-sidebar:not(.panel-sections) .sidebar .pane{padding:4px 10px}#layerControlBar{top:-4px;padding:4px 0 5px;gap:6px}#layerControlBar .body-gender button{min-height:28px;min-width:30px}#layerControlBar .layer-scope button{min-height:28px;padding:0 7px}.panel-sidebar:not(.panel-sections) .sidebar #layerCaption{padding:4px 2px 2px}.layer-list li[data-group]{padding-top:2px;padding-bottom:2px;min-height:42px}
/* Equal-height compact segments, overriding legacy mobile min-heights. */
#layerControlBar .seg{height:30px;min-height:30px;padding:2px;box-sizing:border-box;align-items:center}#layerControlBar .seg button{height:26px!important;min-height:26px!important;max-height:26px;box-sizing:border-box;line-height:24px;padding:0 7px!important}#layerControlBar .body-gender button{font-size:18px;min-width:30px}#layerControlBar{padding:2px 0 3px!important}#layerControlBar #layerModel{padding:0!important;min-height:0}.panel-sidebar:not(.panel-sections) .sidebar .pane{padding-top:2px;padding-bottom:2px}#layerControlBar{top:-2px}
.sidebar>#layerControlBar{position:static!important;flex:0 0 auto;margin:0 10px;padding:4px 0!important}.panel-sections .sidebar>#layerControlBar{display:none}.panel-sidebar:not(.panel-sections) .sidebar{overflow:hidden}.panel-sidebar:not(.panel-sections) .sidebar .pane{overflow:auto;overscroll-behavior:contain}
