#ec-root{min-width:0;max-width:100%;padding:8px;color:var(--text-1)}#ec-root h1{font-size:26px;margin:6px 0}#ec-root h2{font-size:18px;margin:18px 0 10px}.ec-heading{margin-bottom:20px}.ec-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0}.ec-filter,.ec-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.ec-filter{padding:16px;background:var(--bg-elev1);border:1px solid var(--border);border-radius:12px}.ec-filter label,.ec-form label,#ec-commit label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--text-2)}#ec-root input,#ec-root select,#ec-root textarea{box-sizing:border-box;width:100%;min-width:0;padding:9px;border:1px solid var(--border);border-radius:6px;color:var(--text-1);background:var(--bg-elev2);font:inherit}#ec-root select option{background:var(--bg-elev1)}.ec-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:18px 0}.ec-cards article{padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev1)}.ec-cards span{display:block;color:var(--text-2);font-size:12px}.ec-cards strong,.ec-cards strong span{display:block;font-size:24px;color:var(--text-1);margin-top:8px;font-variant-numeric:tabular-nums}.ec-scroll{max-width:100%;overflow:auto;margin:12px 0;border:1px solid var(--border);border-radius:8px}.ec-scroll table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.ec-scroll th,.ec-scroll td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border)}.ec-scroll th{color:var(--text-2);background:var(--bg-elev1)}.ec-scroll small{display:block;font-size:12px;color:var(--text-3);max-width:230px;overflow:hidden;text-overflow:ellipsis}.ec-scroll .btn{padding:5px 8px}.ec-empty{padding:40px;text-align:center;color:var(--text-2)}#ec-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--bg-base,#131620);color:var(--text-1);padding:20px}#ec-dialog::backdrop{background:#0009}.ec-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.ec-dialog-head h2{margin:0!important}.ec-wide{grid-column:1/-1}.ec-form [hidden]{display:none}.ec-form button{justify-self:start}#ec-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-width:100%}#ec-dialog-status,#ec-status{color:var(--text-2);overflow-wrap:anywhere}#ec-bulk textarea{width:100%;margin-bottom:12px}#ec-root details>summary{cursor:pointer}#ec-root button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:600px){#ec-root{padding:0}.ec-filter,.ec-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-cards article{padding:12px}.ec-cards strong,.ec-cards strong span{font-size:20px}#ec-dialog{padding:14px}.ec-toolbar .btn{font-size:12px}.ec-form .ec-wide{grid-column:1/-1}}

.ec-shop-tabs,.ec-date-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ec-shop-tabs{margin:0 0 16px}.ec-shop-tabs .btn,.ec-date-shortcuts .btn{min-height:40px;white-space:normal;overflow-wrap:anywhere}.ec-shop-tabs [aria-pressed="true"],.ec-date-shortcuts [aria-pressed="true"]{background:var(--bg-elev2);color:var(--text-1)!important;border:2px solid var(--text-1);font-weight:700}.ec-date-shortcuts span{font-size:12px}.ec-shop-tabs button:focus-visible,.ec-date-shortcuts button:focus-visible{outline:2px solid var(--text-1);outline-offset:3px}


/* T47 compact filters and configurable metric cards */
#ec-root .ec-heading{margin-bottom:12px}#ec-root .ec-shop-tabs{margin-bottom:10px}
#ec-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:10px 12px}#ec-filter>.ec-date-shortcuts{align-self:center;gap:6px}#ec-filter>label{flex:0 1 160px}#ec-filter>.btn{align-self:center}#ec-filter input,#ec-filter select{padding:7px 9px}#ec-more{align-self:center}#ec-more>summary{padding:9px 4px;font-size:13px;white-space:nowrap}#ec-more[open]{flex-basis:100%;order:10}#ec-more .ec-advanced{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;padding-top:8px;border-top:1px solid var(--border)}
.ec-metric-head{display:flex;justify-content:flex-end;margin-bottom:6px}.ec-metric-head .btn{padding:6px 12px;font-size:12px}#ec-root .ec-cards{margin:0 0 12px;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}#ec-root .ec-cards article{padding:14px 16px}#ec-root .ec-cards strong{overflow-wrap:anywhere}#ec-root .ec-metric-section{margin-top:8px}
.ec-display-row{display:grid;grid-template-columns:minmax(130px,1fr) auto auto auto;align-items:end;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}.ec-display-row>label{display:flex;flex-direction:column;gap:5px;font-size:13px}.ec-display-row .ec-hide-card{flex-direction:row;align-items:center;align-self:center;white-space:nowrap}.ec-display-row input[type=checkbox]{width:18px!important;height:18px}.ec-display-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
@media(max-width:600px){#ec-filter>label{flex:1 1 calc(50% - 10px);min-width:0}#ec-filter>.ec-date-shortcuts{flex-basis:100%}#ec-more .ec-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}#ec-root .ec-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-display-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.ec-display-row button{min-height:40px}.ec-display-row .ec-hide-card{justify-self:end}}
/* T86 test-data source bar: public variables only */.ec-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px}.ec-heading-actions{display:flex;flex-wrap:wrap;gap:8px}.ec-heading-actions [aria-pressed=true]{border-color:var(--warning);color:var(--warning)}.ec-test{display:grid;gap:10px;margin:0 0 16px;padding:14px 16px;border:1px solid var(--warning);border-left-width:4px;border-radius:var(--radius);background:var(--bg-elev1)}.ec-test[hidden]{display:none}.ec-test-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:12px;color:var(--text-2)}.ec-test-badge{padding:2px 10px;border:1px solid var(--warning);border-radius:999px;color:var(--warning);font-size:13px}.ec-test-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}.ec-test-row label{display:flex;flex:1 1 320px;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:var(--text-2)}.ec-test-meta{margin:0;font-size:12px;color:var(--text-2);overflow-wrap:anywhere}
/* C2 operating expenses and net profit: public variables only */
#ec-more:not([open])>.ec-advanced{display:none}#ec-filter .ec-week-pick{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:12px;color:var(--text-2);white-space:nowrap}#ec-filter .ec-week-pick select{width:auto;max-width:230px;padding:7px 9px}
.ec-net{margin:4px 0 14px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev1)}.ec-net[hidden]{display:none}
.ec-coverage{margin:4px 0 14px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev1)}.ec-coverage[hidden]{display:none}.ec-coverage h2{margin:0 0 6px;font-size:16px}
.ec-cov-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.ec-cov-card{padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elev2)}.ec-cov-card h3{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:14px}.ec-cov-card p{margin:4px 0;font-size:13px;overflow-wrap:anywhere}.ec-cov-card strong.is-negative{color:var(--danger,inherit)}
.ec-cov-badge{padding:1px 8px;border:1px solid var(--border);border-radius:999px;font-size:12px;font-weight:400;color:var(--text-2)}.ec-cov-card[data-state="partial"] .ec-cov-badge,.ec-cov-card[data-state="none"] .ec-cov-badge{border-color:var(--warning,var(--text-2));color:var(--text-1)}.ec-cov-pending{color:var(--text-2)}
.ec-net-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}#ec-root .ec-net-head h2{margin:0;font-size:16px}
.ec-net-status,.ec-net-note{margin:8px 0;font-size:12px;color:var(--text-2);overflow-wrap:anywhere}
#ec-root .ec-net .ec-cards{margin:8px 0}#ec-root .ec-net .ec-cards article{background:var(--bg-elev2)}#ec-root .ec-cards strong small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:var(--text-3)}
#ec-root .ec-net-warn{border-color:var(--warning)}#ec-root .ec-net-warn strong{color:var(--warning)}
.ec-net-issues{margin:8px 0;font-size:12px;color:var(--warning)}.ec-net-issues ul{margin:6px 0 0;padding-left:18px;color:var(--text-2)}
.ec-net .ec-scroll td:nth-child(2),.ec-net .ec-scroll th:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}
#ec-dialog h3{margin:18px 0 6px;font-size:15px}#ec-dialog .ec-form small{color:var(--text-3);font-size:11px;overflow-wrap:anywhere}#ec-dialog .ec-heading-actions{align-items:center}
#ec-confirm{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid var(--warning);border-radius:14px;background:var(--bg-base,#131620);color:var(--text-1);padding:20px}#ec-confirm::backdrop{background:#0009}#ec-confirm h2{margin:0 0 10px;font-size:18px;color:var(--warning)}
#ec-root button:focus-visible,#ec-confirm button:focus-visible{outline:2px solid var(--text-1);outline-offset:2px}
@media(max-width:600px){#ec-filter>.ec-date-shortcuts{min-width:0}#ec-filter .ec-week-pick{flex-basis:100%;min-width:0}#ec-filter .ec-week-pick select{flex:1 1 0;width:0;min-width:0;max-width:none}.ec-net{padding:10px}}
/* C24 summary/detail single region and grouped record drawer. */
.ec-records-region{min-width:0;margin:16px 0}.ec-records-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}.ec-records-title,.ec-record-layout-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ec-records-head h2{margin:0!important}.ec-records-hint{margin:6px 0 10px;color:var(--text-2);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.ec-record-layout-status{margin:6px 0;color:var(--text-2);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.ec-record-layout-status:empty{display:none}.ec-records-region>[hidden]{display:none!important}.ec-records-region .ec-toolbar{justify-content:flex-end}
#ec-detail-drawer{box-sizing:border-box;position:fixed;inset:0 0 0 auto;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-left:1px solid var(--border);border-radius:0;background:var(--bg-base,#131620);color:var(--text-1);box-shadow:-16px 0 42px rgb(0 0 0 / .28);overflow:hidden}#ec-detail-drawer[open]{display:flex;flex-direction:column}
.ec-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex:none;padding:18px 20px 14px;border-bottom:1px solid var(--border);background:var(--bg-elev1)}.ec-detail-kicker{margin:0 0 4px;color:var(--text-2);font-size:12px}.ec-detail-head h2{margin:0!important;font-size:18px!important;overflow-wrap:anywhere}.ec-detail-head .btn{min-height:40px;flex:none}.ec-detail-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 20px 28px;scrollbar-gutter:stable}.ec-detail-section{padding:14px 0;border-bottom:1px solid var(--border)}.ec-detail-section:last-child{border-bottom:0}.ec-detail-section h3{margin:0 0 10px;font-size:14px}.ec-detail-section dl,.ec-detail-other dl{display:grid;gap:0;margin:0}.ec-detail-row{display:grid;grid-template-columns:minmax(100px,34%) minmax(0,1fr);gap:8px 12px;padding:7px 0}.ec-detail-row dt{color:var(--text-2);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.ec-detail-row dd{min-width:0;margin:0;color:var(--text-1);font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.ec-detail-diff{display:block;margin-top:2px;color:var(--warning);font-size:11px}.ec-detail-other{margin-top:10px;border:1px solid var(--border);border-radius:8px;padding:0 10px}.ec-detail-other>summary{min-height:44px;display:flex;align-items:center;color:var(--text-2);font-size:12px;cursor:pointer}.ec-detail-other[open]>summary{border-bottom:1px solid var(--border)}#ec-detail-drawer button:focus-visible,#ec-detail-drawer summary:focus-visible{outline:2px solid var(--text-1);outline-offset:2px}
@media(max-width:767px){#ec-detail-drawer{width:100vw;border-left:0}#ec-detail-drawer::backdrop{background:rgb(0 0 0 / .58)}.ec-detail-head{padding:14px}.ec-detail-body{padding:2px 14px 24px}.ec-detail-head .btn{min-height:44px}.ec-detail-row{grid-template-columns:minmax(88px,32%) minmax(0,1fr)}}
/* C25 record-row details and independent record-column layout. */
.ec-record-table tbody tr{cursor:pointer}.ec-record-table tbody tr:hover{background:var(--bg-elev2)}.ec-record-table tbody tr:focus-visible,.ec-record-table tbody tr.is-detail-open{position:relative;outline:2px solid var(--accent,var(--text-1));outline-offset:-2px;box-shadow:inset 4px 0 0 var(--accent,var(--text-1))}.ec-record-table [data-record-actions]{cursor:default}.ec-record-table .num{text-align:right;font-variant-numeric:tabular-nums}.ec-record-table th[draggable=true]{cursor:grab;user-select:none}.ec-record-table th[draggable=true]:focus-visible{outline:2px solid var(--accent,var(--text-1));outline-offset:-2px}.ec-column-handle{display:block;margin-top:3px;color:var(--text-3);font-size:10px;font-weight:400}.is-column-editing table{border-collapse:separate;border-spacing:0}.is-column-editing th{border-inline-end:1px dashed var(--border)}
#ec-column-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--bg-base);color:var(--text-1);padding:20px}#ec-column-dialog::backdrop{background:rgb(0 0 0 / .58)}#ec-column-dialog h2{margin:0!important}.ec-column-fields{display:grid;gap:12px}.ec-column-group{min-width:0;margin:0;padding:12px 14px 14px;border:1px solid var(--border);border-radius:10px}.ec-column-group legend{padding:0 8px}.ec-column-group-toggle{display:inline-flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}.ec-column-group-toggle input,.ec-column-choices input{box-sizing:border-box;flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:18px;margin:0;padding:0;accent-color:var(--accent)}.ec-column-group-toggle input:focus-visible,.ec-column-choices input:focus-visible{outline:2px solid var(--accent,var(--text-1));outline-offset:2px}.ec-column-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:4px 16px}.ec-column-choices label{display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;cursor:pointer}.ec-column-choices span{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){.ec-record-layout-actions{flex-basis:100%}#ec-column-dialog{padding:14px}.ec-column-choices{grid-template-columns:minmax(0,1fr)}}
/* C3 embedded C4 sections: inline expense editor mirrors the dialog styles; public variables only */
#ec-exp-inline h2{margin:0 0 6px;font-size:16px}#ec-exp-inline h3{margin:18px 0 6px;font-size:15px}#ec-exp-inline .ec-form small{color:var(--text-3);font-size:11px;overflow-wrap:anywhere}#ec-exp-inline .ec-heading-actions{align-items:center}
/* C7 metric dashboard: selectable metric cards and a 12-column panel grid (16px gaps); public variables only */
.ec-cards .ec-card-pick{cursor:pointer;position:relative}.ec-cards .ec-card-pick:hover{background:var(--bg-hover,var(--bg-elev2))}.ec-cards .ec-card-pick.is-on{border-color:var(--accent,var(--text-1));box-shadow:inset 0 0 0 1px var(--accent,var(--text-1))}.ec-cards .ec-card-pick.is-on>span::after{content:" · 仪表盘";color:var(--accent,var(--text-2))}.ec-cards .ec-card-pick:focus-visible{outline:2px solid var(--focus,var(--text-1));outline-offset:2px}
.ec-cards .ec-card-trace{border-color:var(--accent,var(--border))}.ec-cards .ec-card-trace:hover{box-shadow:inset 0 0 0 1px var(--accent,var(--text-1))}.ec-card-link{margin-top:12px;color:var(--accent,var(--text-1))!important;font-size:12px!important;font-weight:600}.ec-card-link b{font-size:14px}.ec-cards .ec-card-trace:hover .ec-card-link b{margin-left:2px}
.ec-trace-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 12px}.ec-trace-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:4px 5px 4px 10px;border:1px solid var(--accent,var(--border));border-radius:999px;background:var(--accent-soft,var(--bg-elev2));color:var(--text-1);font-size:12px;line-height:1.5}.ec-trace-chip>span{overflow-wrap:anywhere}.ec-trace-clear{min-height:30px;padding:3px 9px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--accent,var(--text-1));font:inherit;font-weight:600;cursor:pointer}.ec-trace-clear:hover{background:var(--bg-hover,var(--bg-elev1));border-radius:999px}.ec-trace-clear:focus-visible{outline:2px solid var(--focus,var(--text-1));outline-offset:2px}.ec-dash-status:empty{display:none}
.ec-dash{margin:18px 0}.ec-dash-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}#ec-root .ec-dash-head h2{margin:0;min-width:0;overflow-wrap:anywhere}.ec-dash-actions{display:flex;flex-wrap:wrap;gap:8px}.ec-dash-status{margin:8px 0 12px;font-size:12px;color:var(--text-2);overflow-wrap:anywhere}
.ec-dash-grid{position:relative;min-height:120px}.ec-dash-grid.is-flow{display:flex;flex-direction:column;gap:16px;height:auto!important}
.ec-panel{position:absolute;box-sizing:border-box;display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev1);overflow:hidden}.is-flow .ec-panel{position:relative;left:auto!important;top:auto!important;width:auto!important}
.ec-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 12px;border-bottom:1px solid var(--border-soft,var(--border))}#ec-root .ec-panel-head h3{margin:0;font-size:14px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ec-panel-tools{display:flex;gap:6px;flex:none}#ec-root .ec-panel-tools .btn{padding:4px 8px;font-size:12px}
.is-editing .ec-panel{border-style:dashed}.is-editing [data-panel-handle]{cursor:move;touch-action:none}.is-editing [data-panel-handle]:focus-visible{outline:2px solid var(--focus,var(--text-1));outline-offset:-2px}.ec-panel.is-dragging{z-index:2;box-shadow:var(--shadow,0 6px 24px #0006);opacity:.92}
.ec-panel-body{flex:1;min-height:0;overflow:auto;padding:10px 12px}.ec-panel-resize{position:absolute;right:0;bottom:0;width:18px;height:18px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 50%,var(--text-3) 50%,var(--text-3) 58%,transparent 58%,transparent 70%,var(--text-3) 70%,var(--text-3) 78%,transparent 78%)}
.ec-dash-svg{display:block;max-width:100%}.ec-dash-gridline{stroke:var(--border);stroke-width:1}.ec-dash-zero{stroke:var(--text-3);stroke-width:1}.ec-dash-line{fill:none;stroke:var(--chart-1,var(--accent));stroke-width:2;stroke-linejoin:round}.ec-dash-dot{fill:var(--chart-1,var(--accent))}.ec-dash-gap{fill:var(--bg-elev1);stroke:var(--warning);stroke-width:1.5}.ec-dash-axis{fill:var(--text-2);font-size:11px;font-variant-numeric:tabular-nums}
.ec-dash-cap{margin:6px 0 0;font-size:12px;color:var(--text-3);overflow-wrap:anywhere}.ec-dash-empty{margin:0;padding:24px 8px;text-align:center;color:var(--text-2);overflow-wrap:anywhere}.ec-dash-warn{margin:0 0 8px;font-size:12px;color:var(--warning);overflow-wrap:anywhere}.ec-dash-missing{color:var(--warning)}
.ec-bars{display:grid;gap:10px}.ec-bar-row{display:grid;grid-template-columns:minmax(64px,30%) minmax(0,1fr);align-items:center;gap:8px;font-size:12px}.ec-bar-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}.ec-bar-set{display:grid;gap:4px;min-width:0}.ec-bar-line{display:grid;grid-template-columns:minmax(40px,1fr) auto;align-items:center;gap:8px;min-width:0}.ec-bar-val{text-align:right;font-variant-numeric:tabular-nums;color:var(--text-1);white-space:nowrap}.ec-bar-val small{color:var(--text-3);font-size:11px}
.ec-bar-track{position:relative;height:12px;border-radius:3px;background:var(--bg-elev2)}.ec-bar-track i{position:absolute;top:0;bottom:0;border-radius:3px;background:var(--bar,var(--chart-1,var(--accent)))}.ec-bar-track i.is-alt{background:repeating-linear-gradient(45deg,var(--bar) 0 3px,transparent 3px 6px);box-shadow:inset 0 0 0 1px var(--bar)}.ec-bar-track i.is-neg{background:var(--danger)}.ec-bar-track b{position:absolute;top:-2px;bottom:-2px;width:1px;background:var(--text-3)}
#ec-root .ec-dash-table{max-width:100%;overflow:auto;margin:0;border:0;border-radius:0}.ec-dash-table table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.ec-dash-table th,.ec-dash-table td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--border)}.ec-dash-table th{position:sticky;top:0;color:var(--text-2);background:var(--bg-elev1)}.ec-dash-table .num{text-align:right;font-variant-numeric:tabular-nums}.ec-dash-table td:first-child{max-width:220px;overflow:hidden;text-overflow:ellipsis}#ec-root .ec-dash-table .btn{padding:4px 8px;font-size:12px}.ec-dash-total td{font-weight:600}
.ec-dash-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 4px;font-size:12px;color:var(--text-2)}.ec-dash-legend span{display:inline-flex;align-items:center;gap:6px}.ec-dash-bar{stroke-width:1}.ec-dash-slice{stroke:var(--bg-elev1);stroke-width:1.5}.ec-dash-slice-no{fill:#fff;font-size:11px;font-weight:700;paint-order:stroke;stroke:#0008;stroke-width:2px}.ec-dash-center{fill:var(--text-1);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.ec-dash-pie{display:flex;flex-direction:column;align-items:center;gap:8px}.ec-dash-pie.is-wide{flex-direction:row;align-items:flex-start;gap:16px}.ec-dash-pie-legend{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:12px;min-width:0;flex:1;width:100%}.ec-dash-pie-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:6px;align-items:center}.ec-dash-pie-legend i{width:12px;height:12px;border-radius:2px}.ec-pie-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}.ec-pie-val{font-variant-numeric:tabular-nums;white-space:nowrap}
#ec-dash-wizard{box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--bg-base,#131620);color:var(--text-1);padding:20px}#ec-dash-wizard::backdrop{background:#0009}#ec-dash-wizard h2{margin:0;font-size:18px}.ec-wz-steps{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:0 0 14px;padding:0;font-size:12px;color:var(--text-3)}.ec-wz-steps .is-on{color:var(--text-1);font-weight:700}.ec-wz-steps .is-done{color:var(--text-2)}
.ec-wz-form fieldset{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}.ec-wz-form legend{font-size:13px;color:var(--text-2);margin-bottom:8px}.ec-wz-choice{display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--border);border-radius:10px;cursor:pointer}.ec-wz-choice:has(input:checked){border-color:var(--accent,var(--text-1));box-shadow:inset 0 0 0 1px var(--accent,var(--text-1))}.ec-wz-choice.is-off{opacity:.55;cursor:not-allowed}.ec-wz-choice input{width:auto!important;margin-top:2px}.ec-wz-choice span{display:flex;flex-direction:column;gap:2px;min-width:0}.ec-wz-choice small{color:var(--text-3);font-size:11px}
.ec-wz-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.ec-wz-row label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--text-2)}.ec-wz-row label[hidden]{display:none}.ec-wz-sum{display:flex;flex-direction:column;gap:2px;margin:0 0 10px}.ec-wz-sum span{font-size:12px;color:var(--text-2)}#ec-root .ec-wz-preview{position:relative;height:300px;left:auto;top:auto;width:auto}.ec-wz-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}#ec-wz-note:empty{display:none}
#ec-root .ec-filter-overview{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}#ec-root .ec-filter-overview>[type=reset]{order:1;align-self:flex-start}
.ec-dash-blank{padding:32px 16px;text-align:center;border:1px dashed var(--border);border-radius:12px;color:var(--text-2)}
/* C6 分类与标准克重筛选：提示行占满筛选栅格，长路径选项不撑破列宽 */
#ec-more .ec-c6-note{margin:0;font-size:12px;line-height:1.6;color:var(--text-2)}#ec-more .ec-c6-note:empty{display:none}#ec-more .ec-c6-note .btn{margin-left:6px;padding:4px 10px;font-size:12px}#ec-more .ec-advanced select{min-width:0;max-width:100%;text-overflow:ellipsis}
/* C6/C7 2026-10-21: compact selectable cards and pivot filters. */
.ec-metric-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 10px}.ec-metric-head h2{font-size:18px;margin:0}.ec-card-integrity{font-size:12px;color:var(--text-2)}.ec-card-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
#ec-cards article{position:relative;min-width:0}#ec-cards strong.is-negative{color:#c43131}#ec-cards small{display:block;color:var(--text-2);font-size:12px}.ec-card-handle{position:absolute;right:8px;top:8px;width:28px;height:28px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:inherit;cursor:grab;touch-action:none}.is-card-editing article{padding-right:42px!important;cursor:default!important}.ec-card-handle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#ec-card-note{font-size:12px;color:var(--text-2);margin:8px 0 16px}
.ec-metric-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.ec-metric-options label{display:grid;grid-template-columns:20px 1fr;align-content:start;gap:5px;padding:10px;border:1px solid var(--border);border-radius:8px}.ec-metric-options input{width:16px!important;height:16px}.ec-metric-options small{grid-column:2;color:var(--text-2);font-size:12px;line-height:1.5}.ec-display-actions{display:flex;gap:8px;margin-top:16px}
.ec-facet-enabled .ec-advanced>label:has([data-c6]){display:none!important}.ec-facet-grid{display:contents}.ec-facet-grid>details{position:relative;min-width:0}.ec-facet-grid>details>summary{display:flex;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:7px;padding:10px 12px;cursor:pointer;list-style:none;background:var(--surface)}.ec-facet-grid summary span{font-size:12px;color:var(--text-2)}.ec-facet-menu{position:absolute;z-index:40;top:100%;left:0;min-width:260px;max-width:min(450px,85vw);max-height:320px;overflow:auto;background:var(--surface,#fff);border:1px solid var(--border);box-shadow:0 8px 24px #0002;padding:10px;border-radius:8px}.ec-facet-menu label{display:flex!important;align-items:center;gap:8px;padding:7px 2px;line-height:1.5;overflow-wrap:anywhere}.ec-facet-menu input{flex:0 0 16px;width:16px!important;height:16px}.ec-facet-menu small{margin-left:auto;color:var(--text-2)}
#c-product-filter-slot .ec-filter-overview{display:flex;flex-direction:column;margin:12px 0;gap:10px}#c-product-filter-slot #ec-more{margin:0}#c-product-filter-slot .ec-advanced{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}#c-product-filter-slot .ec-c6-note{grid-column:1/-1;font-size:12px;color:var(--text-2);margin:0}#c-product-filter-slot [type=reset]{align-self:flex-start}#c-product-filter-slot input[name=product]{width:100%}
.ec-pivot-head,.ec-pivot-controls,.ec-pivot-order{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.ec-pivot-head h2{margin:0;font-size:18px}.ec-pivot-head span{font-size:12px;color:var(--text-2)}.ec-pivot-controls label{display:flex;gap:6px;align-items:center}.ec-pivot-controls input{width:16px!important;height:16px}#ec-pivot .num{text-align:right;font-variant-numeric:tabular-nums}#ec-pivot td{vertical-align:middle}#ec-pivot tr:last-child{font-weight:600}
#c-product-filter-slot #ec-more{align-self:stretch;width:100%;order:0}#c-product-filter-slot #ec-filter{align-items:stretch}#c-product-filter-slot [type=reset]{order:1}#c-product-filter-slot input{box-sizing:border-box;width:100%;min-width:0;padding:9px;border:1px solid var(--border);border-radius:6px;background:var(--bg-elev2);color:var(--text-1);font:inherit}.ec-facet-menu{background:var(--bg-elev1)}.ec-facet-grid>details>summary{background:var(--bg-elev2)}.ec-card-handle{background:var(--bg-elev1)}

/* C11: chart-type sample cards; subsequent wizard steps keep their original layout. */
.ec-wz-form .ec-wz-types{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ec-wz-type{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;background:var(--bg-elev1)}
.ec-wz-type:hover{background:var(--bg-elev2)}
.ec-wz-type:has(input:focus-visible){outline:2px solid var(--accent,var(--text-1));outline-offset:3px}
.ec-wz-type>input{position:absolute;right:10px;top:10px;z-index:1;accent-color:var(--accent);cursor:pointer}
.ec-wz-type .ec-wz-type-copy{width:100%;gap:5px}
.ec-wz-type-copy strong{font-size:14px;color:var(--text-1)}
.ec-wz-type-copy small{font-size:12px;line-height:1.5;color:var(--text-2)}
.ec-wz-type-copy .ec-wz-example{align-self:flex-start;margin-top:auto;color:var(--text-2);border:1px solid var(--border);border-radius:4px;padding:1px 5px}
.ec-wz-sample{box-sizing:border-box;width:100%;height:212px;padding-top:18px;display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--text-1);font-variant-numeric:tabular-nums}
.ec-wz-sample:has(.ec-dash-legend){flex-direction:column;justify-content:center;align-items:stretch}
.ec-wz-sample .ec-dash-legend{font-size:11px;gap:2px 10px;margin:0 0 2px}
.ec-wz-sample .ec-dash-svg{max-width:100%;height:auto;max-height:192px}
.ec-wz-type .ec-wz-sample span{display:initial;flex-direction:initial;gap:initial}
.ec-wz-sample .ec-bars{width:100%;gap:16px}
.ec-wz-sample .ec-bar-row{grid-template-columns:48px minmax(0,1fr);gap:6px}
.ec-wz-type .ec-wz-sample .ec-bar-set{display:grid;gap:4px}
.ec-wz-type .ec-wz-sample .ec-bar-line{display:grid;gap:5px;grid-template-columns:minmax(20px,1fr) auto}
.ec-wz-type .ec-wz-sample .ec-bar-track{display:block}
.ec-wz-sample .ec-dash-pie{width:100%;gap:5px}
.ec-wz-sample .ec-dash-pie-legend{font-size:11px;gap:2px}
.ec-wz-sample .ec-dash-pie-legend li{grid-template-columns:8px minmax(0,1fr) auto;gap:3px}
.ec-wz-sample .ec-dash-pie-legend i{width:8px;height:8px}
.ec-wz-sample .ec-dash-table{width:100%;margin:0;overflow:hidden}
.ec-wz-sample .ec-dash-table th,.ec-wz-sample .ec-dash-table td{padding:7px 5px;font-size:11px}
@media(max-width:699px){.ec-wz-form .ec-wz-types{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-wz-type{padding:10px}}
@media(max-width:449px){.ec-wz-form .ec-wz-types{grid-template-columns:minmax(0,1fr)}.ec-wz-sample{height:212px}.ec-wz-sample>.ec-dash-svg{max-width:260px}}
/* C11 20类型：按四组展示样图；公共库图表在板块内不重复标题，样图卡只留图形 */
.ec-wz-form .ec-wz-typeset{display:block}
.ec-wz-group{margin:0 0 14px}.ec-wz-group>h3{margin:0 0 8px;font-size:13px;color:var(--text-2);font-weight:600}
.ec-wz-sample .wbc{width:100%;pointer-events:none}.ec-wz-sample .wbc-title,.ec-wz-sample .wbc-unit,.ec-wz-sample .wbc-data,.ec-wz-sample .wbc-notice{display:none}
.ec-panel-body .wbc-title{display:none}
.ec-wz-form .ec-wz-types{display:grid}
.ec-wz-sample{overflow:hidden}.ec-wz-sample .wbc{max-height:100%;overflow:hidden}.ec-wz-sample .wbc svg{max-width:100%;max-height:168px;height:auto}
.ec-wz-sample .wbc-metric{padding:4px 0}.ec-wz-sample .wbc-metric strong{font-size:26px}.ec-wz-sample .wbc-round{grid-template-columns:1fr;gap:4px}.ec-wz-sample .wbc-round ol{display:none}

/* J43: 指标字段选择不继承经营表单的满宽输入样式。 */
#ec-root .ec-metric-fields .ec-field-group-toggle{display:inline-flex;align-items:center;gap:8px;min-height:32px;color:inherit;cursor:pointer}
#ec-root .ec-metric-fields .ec-field-group-toggle input[type=checkbox]{box-sizing:border-box;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--accent)}
#ec-root .ec-metric-fields .ec-field-group-toggle input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#ec-root .ec-metric-fields .wb-field-choice{display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;padding:0;border:0;background:none}
#ec-root .ec-metric-fields .wb-field-choice input[type=checkbox]{box-sizing:border-box;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--accent)}
#ec-root .ec-metric-fields .wb-field-choice>span{flex:1 1 auto;min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}
#ec-root .ec-metric-fields .wb-field-choice:has(details[open]){flex-wrap:wrap;padding:8px 0}
#ec-root .ec-metric-fields .ec-field-source[open]{flex:0 0 calc(100% - 26px);margin-left:26px}
#ec-root .ec-metric-fields .ec-field-source[open] small{max-width:none;white-space:normal;overflow-wrap:anywhere}

@media(max-width:600px){.ec-trace-clear{min-height:44px;padding-inline:12px}.ec-trace-chip{width:100%;justify-content:space-between;border-radius:12px}.ec-card-link{margin-top:10px}}

/* J95: H-style details remain below native modal top-layer and below the fixed topbar edge. */
/* C29: independent columns keep wide layouts inside the existing table scroller. */
#ec-root .ec-record-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
#ec-root .ec-record-table th,#ec-root .ec-record-table td{min-width:110px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
#ec-root .ec-record-table th:first-child,#ec-root .ec-record-table td:first-child{position:sticky;left:0;z-index:1;background:var(--bg-elev1,var(--bg-base))}
#ec-root .ec-record-table th:first-child{z-index:3}
#ec-column-dialog .ec-column-search{box-sizing:border-box;width:100%;margin:14px 0;padding:10px 12px;border:1px solid var(--border);border-radius:8px;color:var(--text-1);background:var(--bg-elev1,var(--bg-base));font:inherit}
#ec-detail-drawer{top:var(--topbar-h,60px);bottom:0;left:auto;right:0;height:auto;max-height:calc(100vh - var(--topbar-h,60px));z-index:40;margin:0}
