/* Compact controls around the existing graph; no data or layout limits. */
.amlg-graph-modal.ag-orbit-modal.ag-graph-focused .amlg-graph-shell{overflow:hidden!important;isolation:isolate}
.ag-graph-focused .amlg-graph-heading{min-height:56px!important;padding:8px 16px!important;gap:7px!important;flex-wrap:nowrap!important;flex-shrink:0}
.ag-graph-focused .amlg-graph-heading button{min-height:38px!important;white-space:nowrap}
.ag-graph-focused .amlg-graph-heading .ag-graph-identity{min-width:120px!important}
.ag-graph-focused .ag-graph-primary{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:7px 16px;background:var(--cab-bg-deep);border-bottom:1px solid var(--cab-border);flex-shrink:0}
.ag-graph-primary>form{display:flex;gap:5px;flex:1;min-width:200px;max-width:420px}
.ag-graph-focused .ag-graph-primary input{width:100%!important;max-width:none!important;min-width:0}
.ag-graph-primary button{min-height:36px;white-space:nowrap}
.ag-graph-data-state{display:block;font-size:10px;color:var(--cab-text-muted);font-weight:400}
.ag-graph-focused .ag-suite-counter{padding:4px 16px;min-height:26px;box-sizing:border-box;gap:5px 14px;flex-shrink:0}
.ag-graph-focused .ag-suite-draft{flex-basis:auto;margin-left:auto;padding:0;font-size:11px}
.ag-graph-focused .ag-suite-draft summary{cursor:pointer;max-width:340px;overflow-wrap:anywhere}
.ag-graph-focused .ag-suite-draft[open]{flex-basis:100%;padding:8px 0}
.amlg-graph-modal.ag-orbit-modal.ag-graph-focused .amlg-graph-body{position:relative;flex:1 1 0!important;min-height:0!important;overflow:hidden;flex-direction:row}
.amlg-graph-modal.ag-orbit-modal.ag-graph-focused .amlg-graph-canvas{min-height:0!important;overflow:hidden}
.ag-graph-focused .ag-graph-drawer{width:350px;max-width:46vw;flex:0 0 auto;min-width:0;overflow:auto;overscroll-behavior:contain;border-left:1px solid var(--cab-border);background:var(--cab-bg-deep);padding:16px;box-sizing:border-box;font-size:13px;line-height:1.6}
.ag-graph-drawer>header,.ag-graph-inspector-header{display:flex;gap:10px;align-items:center;justify-content:space-between;position:sticky;top:-16px;padding:10px 0;z-index:3;background:var(--cab-bg-deep)}
.ag-graph-drawer h2{font-size:18px;margin:0}.ag-graph-drawer h3{font-size:14px;margin:20px 0 9px}.ag-graph-drawer p{color:var(--cab-text-muted);margin:10px 0}
.ag-graph-focused .ag-graph-drawer .amlg-graph-extra{display:inline-flex!important}
.ag-graph-focused .ag-graph-drawer select{display:block!important;width:100%;max-width:none;margin:10px 0;min-height:42px;box-sizing:border-box}
.ag-graph-drawer-actions,.ag-graph-drawer .ag-graph-view{display:flex;flex-wrap:wrap;gap:8px}
.ag-graph-focused .ag-graph-drawer .amlg-graph-notice,.ag-graph-focused .ag-graph-drawer .amlg-graph-foot,.ag-graph-focused .ag-graph-drawer .ag-service-summary{padding:10px 0!important;border:0;font-size:12px!important;max-height:none!important;line-height:1.7}
.ag-graph-focused .ag-graph-drawer .ag-graph-library{padding:0!important;border:0;display:block;max-height:none;overflow:visible}
.ag-graph-drawer .ag-graph-library input{max-width:100%;margin:12px 0;min-height:42px}
.ag-graph-drawer .ag-route-panel{display:block;padding:12px 0;border:0}.ag-graph-drawer .ag-route-panel label{display:block;max-width:none;margin:12px 0}
.ag-graph-focused .ag-suite-bar{display:block;padding:0;border:0;max-height:none;overflow:visible}
.ag-suite-tools-section{margin:14px 0 20px}.ag-suite-tools-section h3{font-size:14px;margin:0 0 8px}.ag-suite-tools-section>div{display:flex;gap:7px;flex-wrap:wrap}.ag-suite-tools-section button{min-height:40px;font-size:12px}
.ag-graph-focused .ag-suite-anchor{display:block;margin:12px 0;font-size:11px}
.ag-graph-focused .amlg-graph-sidebar,.ag-graph-focused .ag-suite-panel{height:auto!important;min-height:0!important;flex-basis:auto!important;max-height:100%;overscroll-behavior:contain}
.ag-graph-inspector-header{top:-14px;margin-bottom:10px}.ag-graph-inspector-header strong{font-size:15px}
.ag-graph-focused .ag-suite-panel>header{position:sticky;top:-14px;z-index:3;background:var(--cab-bg-deep);padding:12px 0;border-bottom:1px solid var(--cab-border)}
.ag-graph-focused .ag-time-panel{padding:5px 16px;max-height:32vh}.ag-graph-focused .ag-time-options summary{min-height:22px;line-height:22px}
.ag-graph-focused .ag-graph-summary{min-height:34px!important;padding:4px 16px!important;flex-shrink:0}
.ag-graph-focused [hidden]{display:none!important}
.ag-graph-mini-toggle{display:none}.ag-graph-focused .ag-suite-minimap{width:140px;height:94px;bottom:48px;left:12px;overflow:hidden;transform:none;box-shadow:none;opacity:.92}
.ag-graph-fit-mobile{display:none!important}
.ag-graph-label-short{display:none}
.ag-graph-feedback{position:absolute;left:50%;top:48px;transform:translateX(-50%);z-index:5;display:flex;gap:10px;align-items:center;max-width:min(600px,80%);box-sizing:border-box;padding:8px 12px;border:1px solid var(--cab-border);border-radius:8px;background:var(--cab-bg-card);box-shadow:0 4px 18px #0002;font-size:12px;color:var(--cab-text);line-height:1.5}.ag-graph-feedback button{min-width:32px;min-height:32px;padding:4px!important}.ag-graph-feedback span{max-height:100px;overflow:auto}
.ag-graph-focused .ag-suite-minimap canvas{width:136px;height:75px}.ag-graph-focused .ag-suite-minimap span{font-size:9px}
.ag-graph-focused [data-canvas-only=true]>.amlg-graph-heading .ag-graph-undo,.ag-graph-focused [data-canvas-only=true]>.amlg-graph-heading .ag-graph-fit,.ag-graph-focused [data-canvas-only=true]>.amlg-graph-heading .ag-graph-library-toggle,.ag-graph-focused [data-canvas-only=true]>.amlg-graph-heading .ag-graph-panel-toggle,.ag-graph-focused [data-canvas-only=true]>.amlg-graph-heading .ag-graph-save{display:none!important}
@media(max-width:1100px){.ag-graph-focused .ag-graph-primary{gap:5px}.ag-graph-primary>form{max-width:none;min-width:200px}.ag-graph-focused .ag-graph-primary>button{font-size:12px;padding:6px 9px!important}.ag-graph-data-state{display:none}.ag-graph-focused .amlg-graph-heading .ag-graph-undo{display:none!important}}
@media(max-width:700px){
 .ag-graph-focused .amlg-graph-heading{padding:6px 8px!important;min-height:54px!important;gap:5px!important;overflow:visible!important}
 .ag-graph-focused .amlg-graph-heading .ag-graph-library-toggle,.ag-graph-focused .amlg-graph-heading .ag-graph-panel-toggle,.ag-graph-focused .amlg-graph-heading .ag-graph-fit{display:none!important}
 .ag-graph-focused .amlg-graph-heading .ag-graph-save{display:inline-flex!important;font-size:11px!important;padding:6px 8px!important;min-height:40px!important}
 .ag-graph-focused .ag-graph-canvas-toggle{max-width:90px;white-space:normal!important;font-size:11px!important;line-height:1.2;min-height:40px!important}
 .ag-graph-focused .ag-graph-primary{padding:6px 8px;gap:6px;flex-wrap:wrap}.ag-graph-primary>form{flex-basis:100%;min-width:0;max-width:none}
 .ag-graph-focused .ag-graph-primary input{font-size:16px!important;min-height:40px}.ag-graph-primary>button{flex:1;font-size:11px!important;min-height:40px;padding:6px!important}
 .ag-graph-focused .ag-graph-primary>.ag-graph-primary-3d{display:none!important}.ag-graph-focused .ag-graph-fit-mobile{display:inline-flex!important;align-items:center;justify-content:center}
 .ag-graph-focused .ag-graph-label-full{display:none}.ag-graph-focused .ag-graph-label-short{display:inline}.ag-graph-focused .ag-graph-primary>button{min-width:0!important}.ag-graph-focused .amlg-graph-heading .ag-graph-save{white-space:nowrap!important;min-width:72px}
 .ag-graph-focused .ag-suite-counter{padding:4px 8px;font-size:10px;max-height:64px;overflow:auto;gap:4px 8px}.ag-graph-focused .ag-suite-draft{margin-left:0}.ag-graph-focused .ag-suite-draft summary{max-width:310px}
 .ag-graph-focused .ag-graph-drawer,.ag-graph-focused .ag-suite-panel,.amlg-graph-modal.ag-orbit-modal.ag-graph-focused .amlg-graph-sidebar{position:absolute;right:0;top:0;bottom:0;width:min(100%,420px)!important;max-width:100%;height:100%!important;min-height:0!important;z-index:9;border-left:1px solid var(--cab-border);border-top:0;padding:14px!important;box-shadow:-10px 0 28px #0002}
 .ag-graph-focused .ag-time-panel{padding:5px 8px;max-height:32vh}.ag-graph-focused .ag-time-panel button{min-height:36px}.ag-graph-focused .ag-time-bar output{display:none}.ag-graph-focused .ag-time-bar{flex-wrap:nowrap}
 .ag-graph-focused .ag-graph-summary{padding:4px 8px!important;font-size:10px!important;min-height:32px!important}.ag-graph-summary>span:first-child{max-width:65%}
 .ag-graph-mini-toggle{display:block;position:absolute;left:8px;bottom:46px;z-index:4;font-size:10px!important;min-height:32px!important}
 .ag-graph-focused .ag-suite-minimap{display:none;left:8px;bottom:84px;width:112px;height:76px}.ag-graph-focused .ag-suite-minimap canvas{width:108px;height:59px}.ag-graph-mini[data-open=true] .ag-suite-minimap{display:block}
}
