.chart-anomaly{fill:rgba(245,159,0,.11);stroke:rgba(245,159,0,.45);stroke-width:1}
.chart-anomaly-critical{fill:rgba(214,57,57,.12);stroke:rgba(214,57,57,.48)}
.chart-anomaly-information{fill:rgba(12,120,201,.08);stroke:rgba(12,120,201,.3)}
.chart-expected{fill:rgba(34,184,207,.15);stroke:rgba(34,184,207,.45);stroke-width:1}
.chart-immature{fill:#e8edf2;opacity:.72}
.chart-axis-label{font-size:9px;fill:#75879a}
.chart-empty{gap:.75rem;flex-direction:column}
.empty-state-icon{display:flex;width:32px;height:32px;border-radius:50%;align-items:center;justify-content:center;color:#fff;font-weight:700}
.empty-state-icon.health-error{background:var(--p-red)}
.legend-expected{background:rgba(34,184,207,.2);border:1px solid rgba(34,184,207,.5)}
.evidence-dialog{width:min(760px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);padding:0;border:0;border-radius:16px;box-shadow:0 30px 90px rgba(7,28,51,.28)}
.evidence-dialog::backdrop{background:rgba(7,28,51,.55);backdrop-filter:blur(3px)}
.evidence-dialog-header,.evidence-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem 1.5rem;border-bottom:1px solid #e5ebf1}
.evidence-dialog-footer{border-top:1px solid #e5ebf1;border-bottom:0}
.evidence-dialog-body{padding:1.5rem}
.evidence-stat{height:100%;padding:1rem;border:1px solid #e5ebf1;border-radius:10px;background:#f9fbfd}
.domain-editor{min-height:42rem}
.domain-metric-unsaved,.domain-draft-unsaved{background:#f3f4f6}
.js-domain-inline-name{display:inline-block;cursor:text;border-bottom:1px dashed transparent}
.js-domain-inline-name:hover,.js-domain-inline-name:focus{border-bottom-color:currentColor;outline:0}
.domain-inline-name-input{width:min(100%,36rem);font-size:1.75rem;font-weight:600;letter-spacing:-.03em;color:var(--p-navy)}
.domain-wizard{width:min(920px,calc(100vw - 2rem))}
.domain-wizard .evidence-dialog-body{max-height:calc(100vh - 11rem);overflow:auto}
.domain-wizard code{white-space:normal}
.admin-actions{position:relative}
.admin-actions>summary{list-style:none}
.admin-action-panel{position:absolute;right:0;z-index:30;width:280px;padding:1rem;background:#fff;border:1px solid #dfe7ef;border-radius:12px;box-shadow:0 15px 45px rgba(7,28,51,.18);display:grid;gap:.75rem;text-align:left}
@media(max-width:767px){.evidence-dialog{width:100vw;max-width:none;height:100vh;max-height:none;border-radius:0}.evidence-dialog-body{padding:1rem}.evidence-dialog-header,.evidence-dialog-footer{padding:1rem}.admin-action-panel{position:fixed;left:1rem;right:1rem;bottom:1rem;top:auto;width:auto}}
.portfolio-signals { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 26rem; }
.portfolio-signal { border-left: .25rem solid var(--tblr-border-color); border-radius: .25rem; background: var(--tblr-bg-surface-secondary); padding: .2rem .45rem; font-size: .75rem; white-space: nowrap; }
.portfolio-signal.health-red { border-color: #c92a2a; }
.portfolio-signal.health-amber { border-color: #e67700; }
.portfolio-signal.health-green { border-color: #2b8a3e; }
.portfolio-signal.health-grey { border-color: #6c757d; }
.chart-series-legend{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;margin-top:.6rem;font-size:.78rem;color:#54718b}
.chart-series-legend i{display:inline-block;width:10px;height:10px;margin-right:.35rem;border-radius:3px;vertical-align:-1px}
.chart-value-table{max-height:340px;overflow-y:auto}
.chart-shell{display:flex;flex-direction:column}
.chart-shell svg{flex:1 1 auto;min-height:0;height:auto}
.evidence-subcharts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.9rem}
.evidence-subchart{height:92px;background:#fbfcfe;border:1px solid #e8eef4;border-radius:8px;padding:4px}
.evidence-subchart svg{display:block;width:100%;height:100%}
.page-wrapper,.page-body,.container-xl,.row,.card,.card-body,.card-header,.list-group-item,.table-responsive{min-width:0}
.card-title,.card-subtitle,.form-hint,.text-secondary,dd,td,th,code,pre{overflow-wrap:anywhere;word-break:break-word}
.domain-editor{max-width:100%;white-space:pre;overflow:auto}
.evidence-dialog-body{overflow-x:hidden}
.split-series-grid{height:auto!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,28rem),1fr));gap:1rem;overflow:visible}
.split-series-panel{min-width:0;border:1px solid #dfe7ef;border-radius:10px;padding:1rem;background:#fff}
.split-series-title{overflow-wrap:anywhere}
.split-series-chart{height:300px;min-width:0;display:flex;flex-direction:column}
.split-series-chart svg{flex:1 1 auto;min-height:0;width:100%}
.policy-preview-chart{height:260px;min-width:0}
.chart-series-legend span{min-width:0;overflow-wrap:anywhere}
.badge{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
/* The vendored Tabler build ships no .min-w-0 utility, so flex children
   refused to shrink and long selectors overflowed their cards. */
.min-w-0{min-width:0}
.list-group-item strong{overflow-wrap:anywhere;word-break:break-word}
.list-group-item .ms-auto{flex-shrink:0}
