/* Data is the main surface; presentation and configuration stay compact. */
.report-explorer{margin-block:12px}
.report-explorer>.card-b{padding:16px}
.explorer-toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.explorer-toolbar>label{flex:1 1 180px;max-width:270px}
.explorer-presentation{display:flex;align-items:center;gap:12px;margin-left:auto;flex-wrap:wrap}
.explorer-icon-group{display:flex;gap:2px;padding:3px;background:var(--surface-2,var(--bg));border:1px solid var(--line);border-radius:8px}
.explorer-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ink-2);cursor:pointer;list-style:none}
.explorer-icon-group .explorer-icon{width:30px;height:30px}
.explorer-icon:hover{color:var(--accent);background:var(--accent-soft,rgba(49,94,234,.08))}
.explorer-icon.on{color:var(--accent);background:var(--surface,var(--surface));box-shadow:0 1px 4px #0001;border-color:var(--line)}
.explorer-icon:focus-visible,.data-combobox input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.explorer-searchbar{display:flex;gap:8px;align-items:center;margin-top:12px}
.explorer-search{flex:1;max-width:420px}
.explorer-searchbar>.btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.explorer-settings{position:relative;margin-left:auto}
.explorer-settings>summary::-webkit-details-marker{display:none}
.explorer-settings-panel{position:absolute;z-index:15;right:0;top:42px;width:420px;max-width:calc(100vw - 60px);padding:16px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 36px #0002;border-radius:10px;grid-template-columns:1fr 1fr}
.explorer-settings-panel .explorer-columns{grid-column:1/-1;max-height:260px;overflow:auto;margin:0}
.explorer-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.explorer-chips:empty{display:none}
.explorer-chips button{max-width:100%;overflow-wrap:anywhere;text-align:left}
.explorer-advanced{margin-top:12px;background:var(--bg);padding:8px 12px}
.explorer-advanced:not([open]){display:none}
.report-filters>.explorer-context,.analyst-controls>.explorer-context{margin:12px;border-top:1px solid var(--line)}
.explorer-rule{grid-template-columns:minmax(140px,2fr) minmax(100px,1fr) minmax(120px,1.5fr) auto auto;align-items:start}
.explorer-rule>[hidden]{display:none!important}
.explorer-rule>.data-combobox{min-width:0}
.explorer-status{padding:12px 0;font-size:12px}
.explorer-table thead{position:sticky;top:0;z-index:2;background:var(--surface)}
.explorer-table th .btn{border:0;background:transparent;padding:6px 0;font-size:12px;font-weight:600}
.explorer-table td:first-child .btn{border:0;background:transparent;padding:0;color:var(--accent);text-align:left;white-space:normal}
.explorer-table tbody tr:hover{background:var(--accent-soft,rgba(49,94,234,.05))}
.explorer-chart{height:440px}
.data-combobox{position:relative;width:100%;min-width:0}
.data-combobox>select[hidden]{display:none!important}
.data-combobox>input{padding-right:26px}
.data-combobox:after{content:'⌄';position:absolute;right:10px;top:9px;color:var(--ink-2);pointer-events:none}
.data-choice-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 5px);max-height:250px;overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:4px;box-shadow:0 8px 25px #0002;min-width:180px}
.data-choice-list[hidden]{display:none}
.data-choice-list [role=option]{padding:9px 10px;font-size:13px;color:var(--ink);cursor:pointer;border-radius:4px;overflow-wrap:anywhere}
.data-choice-list [role=option]:hover,.data-choice-list [role=option].on{background:var(--accent-soft,rgba(49,94,234,.09));color:var(--accent)}
.data-choice-empty{padding:10px;font-size:12px;color:var(--ink-2)}
.report-filter-card,.analyst-controls{overflow:visible}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.explorer-presentation{margin-left:0}.explorer-toolbar>label{max-width:none;flex-basis:calc(50% - 12px)}.explorer-toolbar>.explorer-icon{margin-left:auto}.explorer-chart{height:370px}}
@media(max-width:600px){.report-explorer>.card-b{padding:12px}.explorer-presentation{gap:6px}.explorer-icon-group{gap:0}.explorer-icon-group .explorer-icon{width:29px}.explorer-searchbar{flex-wrap:wrap}.explorer-search{min-width:180px;max-width:none}.explorer-settings-panel{width:320px}.explorer-rule{grid-template-columns:1fr 1fr}.explorer-rule>.data-combobox:nth-child(3){grid-column:1}.explorer-rule>button{grid-column:2;justify-self:end}.data-choice-list{min-width:0}.explorer-chart{height:340px}}

.live-scope{margin:12px 0;border:1px solid var(--line);border-radius:8px;padding:10px 14px}
.live-scope>summary{cursor:pointer;font-size:13px;color:var(--ink-2)}
.live-workbench .live-notice{font-size:12px;padding:9px 12px;margin:10px 0}
.live-workbench .live-notice>summary{cursor:pointer}
.live-workbench .explorer-toolbar{margin:4px 0}
.live-workbench .explorer-toolbar label{display:grid;gap:5px;font-size:12px}
.live-workbench .explorer-toolbar .inp{width:100%;min-width:0}
.live-workbench .explorer-settings-panel{display:grid;gap:12px}
.live-workbench .explorer-settings-panel label{display:grid;gap:5px;font-size:12px}
.live-workbench .explorer-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.live-workbench .explorer-columns label{display:flex;align-items:start;gap:7px}
.live-workbench details.explorer-advanced>summary{cursor:pointer}
.live-data{max-height:620px}.live-data thead{position:sticky;top:0;background:var(--surface);z-index:2}
.live-data tbody tr:hover{background:var(--accent-soft)}
.live-data th,.live-data td,.live-cards article,.live-filter{border-color:var(--line)}
.live-filter>[hidden]{display:none!important}
.live-workbench .explorer-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.live-workbench{min-width:0}.live-workbench .live-controls>label{min-width:0}
.live-workbench .live-controls .data-combobox>.inp{width:100%}
.live-workbench .live-controls>label:has(.data-combobox){width:180px}
.live-workbench .live-controls select[hidden]{display:none!important}
.live-scope .live-controls{margin-bottom:0}
.env-select .ctrl{min-width:0;max-width:100%}
@media(max-width:600px){.env-select .ctrl select{flex:1;min-width:0;width:0}}
.live-data td{max-width:480px;overflow-wrap:anywhere;white-space:normal}
.liveops-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:18px 0}
.liveops-setting{display:flex;align-items:center;gap:10px;font-size:13px;padding:12px;border:1px solid var(--line);border-radius:8px;min-width:0}
.liveops-setting>span{flex:1}.liveops-setting .inp,.liveops-setting .data-combobox{max-width:120px;min-width:0;width:110px}
.liveops-event{padding:16px;border:1px solid var(--line);border-radius:8px;margin:16px 0}
@media(max-width:600px){.live-workbench .live-controls>label:has(.data-combobox){width:auto}.live-filter>.data-combobox{flex:1 1 42%}.live-workbench .explorer-toolbar>label{flex-basis:100%}.live-workbench .explorer-presentation{gap:4px}.live-workbench .explorer-settings-panel{max-width:calc(100vw - 48px)}}
