/* NovaSolver simulator UX template v1 */

html.ux-template-v1{scroll-behavior:smooth}
body.ux-template-v1-page .main{
  max-width:1200px;
  grid-template-columns:300px 1fr;
  gap:20px;
}
body.ux-template-v1-page .main>.explanation{
  grid-column:1/-1;
  width:100%;
  max-width:min(1200px,100%);
  justify-self:center;
  box-sizing:border-box;
}
body.ux-template-v1-page .main>.explanation .fblock,
body.ux-template-v1-page .main>.explanation .chat,
body.ux-template-v1-page .main>.explanation .faq-section{
  box-sizing:border-box;
  width:100%;
}
body.ux-template-v1-page .panel,
body.ux-template-v1-page .controls{
  position:sticky;
  top:72px;
  max-height:calc(100vh - 88px);
  overflow:auto;
  scrollbar-width:thin;
}
body.ux-template-v1-page .ux-controls .panel,
body.ux-template-v1-page .controls-panel .panel,
body.ux-template-v1-page .ux-viz .panel{
  position:static;
  top:auto;
  max-height:none;
  overflow:visible;
}
body.ux-template-v1-page .viz-panel,
body.ux-template-v1-page .charts-area,
body.ux-template-v1-page .right-col{
  display:flex;
  flex-direction:column;
  gap:clamp(14px,1.35vw,20px);
}
body.ux-template-v1-page .tab-btns,
body.ux-template-v1-page .tab-buttons,
body.ux-template-v1-page .tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}
body.ux-template-v1-page .tab-btn{
  appearance:none;
  border:1px solid rgba(111,124,139,.32);
  border-radius:8px;
  background:#fff;
  color:#344256;
  font:600 .9rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding:8px 12px;
  min-height:36px;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
body.ux-template-v1-page .tab-btn:hover{
  border-color:rgba(0,123,255,.46);
  color:#075fb8;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}
body.ux-template-v1-page .tab-btn.active,
body.ux-template-v1-page .tab-btn[aria-selected="true"]{
  border-color:var(--accent,#007BFF);
  background:rgba(0,123,255,.1);
  color:var(--accent,#007BFF);
}
body.ux-template-v1-page .chart-card,
body.ux-template-v1-page .chart-card-inline{
  overflow:hidden;
}
body.ux-template-v1-page .chart-card{
  padding:clamp(16px,1.55vw,24px);
}
body.ux-template-v1-page .chart-card-inline{
  padding:clamp(14px,1.35vw,20px);
}
body.ux-template-v1-page .ux-repaired-result-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:clamp(8px,1vw,12px);
}
body.ux-template-v1-page .param-group:has(> .param-label .num-wrap)>input.num-input[id$="Num"],
body.ux-template-v1-page .param-group:has(> .slider-label .num-wrap)>input.num-input[id$="Num"],
body.ux-template-v1-page .slider-group:has(> .slider-label .num-wrap)>input.num-input[id$="Num"],
body.ux-template-v1-page .control-group:has(.num-wrap)>input.num-input[id$="Num"],
body.ux-template-v1-page .ctrl-group:has(> label .num-wrap)>input.num-input[id$="Num"],
body.ux-template-v1-page .field:has(> label .num-wrap)>input.num-input[id$="Num"]{
  display:none!important;
}
.ux-hidden-duplicate-num{
  display:none!important;
}
body.ux-template-v1-page .panel>.panel-title:last-child,
body.ux-template-v1-page .panel>.section-title:last-child,
body.ux-template-v1-page .controls>.panel-title:last-child,
body.ux-template-v1-page .controls>.section-title:last-child,
body.ux-template-v1-page .controls>h2:last-child,
body.ux-template-v1-page .controls>h3:last-child{
  display:none!important;
}
body.ux-template-v1-page .panel>.divider:has(+ .panel-title:last-child),
body.ux-template-v1-page .panel>.divider:has(+ .section-title:last-child),
body.ux-template-v1-page .controls>.divider:has(+ .panel-title:last-child),
body.ux-template-v1-page .controls>.divider:has(+ .section-title:last-child){
  display:none!important;
}
body.ux-template-v1-page .ux-controls .panel:has(> .panel-title:only-child),
body.ux-template-v1-page .ux-controls .panel:has(> .section-title:only-child){
  display:none!important;
}
body.ux-template-v1-page .param-label,
body.ux-template-v1-page .slider-label,
body.ux-template-v1-page .ctrl-label{
  gap:8px;
  min-width:0;
}
body.ux-template-v1-page .ux-controls .param-label,
body.ux-template-v1-page .ux-controls .slider-label,
body.ux-template-v1-page .ux-controls .ctrl-label{
  flex-wrap:wrap;
}
body.ux-template-v1-page .param-name,
body.ux-template-v1-page .slider-label>span:first-child,
body.ux-template-v1-page .ctrl-label>span:first-child{
  min-width:0;
  overflow-wrap:anywhere;
}
body.ux-template-v1-page .num-wrap{
  flex-shrink:0;
  max-width:55%;
}
body.ux-template-v1-page .ux-controls .num-wrap{
  margin-left:auto;
}
body.ux-template-v1-page .ux-controls .num-input,
body.ux-template-v1-page .ux-controls input[type="number"]{
  min-width:0!important;
  max-width:100%!important;
}
body.ux-template-v1-page .ux-controls .num-unit{
  min-width:0!important;
  overflow-wrap:anywhere;
  white-space:normal;
}
body.ux-template-v1-page .ux-controls{
  overflow-x:hidden!important;
}
body.ux-template-v1-page .ux-controls *,
body.ux-template-v1-page .ux-controls *::before,
body.ux-template-v1-page .ux-controls *::after{
  max-width:100%;
}
body.ux-template-v1-page .ux-controls .toggle-row,
body.ux-template-v1-page .ux-controls .button-row,
body.ux-template-v1-page .ux-controls .btn-row,
body.ux-template-v1-page .ux-controls .preset-grid,
body.ux-template-v1-page .ux-controls .btn-group{
  flex-wrap:wrap;
}
body.ux-template-v1-page .ux-controls mjx-container{
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
body.ux-template-v1-page mjx-assistive-mml{
  display:none!important;
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  max-width:1px!important;
  max-height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  contain:size layout style!important;
}
body.ux-template-v1-page mjx-assistive-mml math{
  width:1px!important;
  max-width:1px!important;
  overflow:hidden!important;
}
body.ux-template-v1-page .chart-card mjx-container,
body.ux-template-v1-page .chart-card-inline mjx-container,
body.ux-template-v1-page .fblock mjx-container,
body.ux-template-v1-page .theory-box mjx-container,
body.ux-template-v1-page .cae-note mjx-container,
body.ux-template-v1-page .viz-panel mjx-container{
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
body.ux-template-v1-page .chart-card mjx-container:not([display="true"]),
body.ux-template-v1-page .chart-card-inline mjx-container:not([display="true"]),
body.ux-template-v1-page .fblock mjx-container:not([display="true"]),
body.ux-template-v1-page .theory-box mjx-container:not([display="true"]),
body.ux-template-v1-page .cae-note mjx-container:not([display="true"]),
body.ux-template-v1-page .viz-panel mjx-container:not([display="true"]){
  display:inline-block!important;
  width:auto!important;
  vertical-align:-0.15em!important;
  contain:none!important;
}
body.ux-template-v1-page .chart-card mjx-container[display="true"],
body.ux-template-v1-page .chart-card-inline mjx-container[display="true"],
body.ux-template-v1-page .fblock mjx-container[display="true"],
body.ux-template-v1-page .theory-box mjx-container[display="true"],
body.ux-template-v1-page .cae-note mjx-container[display="true"],
body.ux-template-v1-page .viz-panel mjx-container[display="true"]{
  display:block!important;
  width:100%!important;
  contain:inline-size layout!important;
}
body.ux-template-v1-page .chart-card>canvas,
body.ux-template-v1-page .chart-card-inline>canvas,
body.ux-template-v1-page .viz-panel>canvas,
body.ux-template-v1-page .charts-area>canvas,
body.ux-template-v1-page .right-col>canvas,
body.ux-template-v1-page .chart-wrap>canvas,
body.ux-template-v1-page .canvas-wrap>canvas{
  width:100%!important;
}
body.ux-template-v1-page .chart-card>canvas[height],
body.ux-template-v1-page .chart-card-inline>canvas[height],
body.ux-template-v1-page canvas[data-ux-fixed-chart]{
  height:auto!important;
  min-height:0!important;
}
body.ux-template-v1-page canvas.colorbar{
  width:14px!important;
  height:120px!important;
  min-height:0!important;
}
body.ux-template-v1-page canvas#stabilityCanvas{
  width:130px!important;
  height:110px!important;
  max-width:38vw!important;
  max-height:34vw!important;
  min-height:0!important;
}
body.ux-template-v1-page .ux-visual-card>canvas,
body.ux-template-v1-page .ux-visual-card>.chart-wrap>canvas,
body.ux-template-v1-page .ux-visual-card>.chart-wrap-sm>canvas,
body.ux-template-v1-page .ux-visual-card>.canvas-wrap>canvas{
  min-height:clamp(260px,30vw,430px);
}
body.ux-template-v1-page .ux-visual-card canvas{
  min-height:clamp(260px,30vw,430px);
}
body.ux-template-v1-page .tab-pane.active .chart-card canvas,
body.ux-template-v1-page .tab-pane.active .chart-card-inline canvas{
  display:block;
  width:100%!important;
  min-height:clamp(260px,30vw,430px);
}
body.ux-template-v1-page .ux-primary-visual>canvas,
body.ux-template-v1-page .ux-primary-visual>.chart-wrap>canvas,
body.ux-template-v1-page .ux-primary-visual>.chart-wrap-sm>canvas,
body.ux-template-v1-page .ux-primary-visual>.canvas-wrap>canvas{
  min-height:clamp(320px,36vw,540px)!important;
}
body.ux-template-v1-page .ux-primary-visual canvas{
  width:100%!important;
  max-width:100%!important;
  min-height:clamp(320px,36vw,540px)!important;
}
body.ux-template-v1-page .ux-primary-visual .canvas-container,
body.ux-template-v1-page .ux-primary-visual .chart-wrap,
body.ux-template-v1-page .ux-primary-visual .chart-wrap-sm,
body.ux-template-v1-page .ux-primary-visual .canvas-wrap{
  min-height:clamp(320px,36vw,540px);
}
body.ux-template-v1-page .ux-visual-card canvas:not(.ux-chartjs-canvas),
body.ux-template-v1-page .ux-primary-visual canvas:not(.ux-chartjs-canvas){
  min-height:0!important;
}
body.ux-template-v1-page .ux-visual-card canvas[style*="position: absolute"],
body.ux-template-v1-page .ux-primary-visual canvas[style*="position: absolute"]{
  width:min(80px,24vw)!important;
  height:min(80px,24vw)!important;
  min-height:0!important;
  max-width:24vw!important;
  max-height:24vw!important;
}
body.ux-template-v1-page .ux-primary-visual .canvas-container:has(canvas:not(.ux-chartjs-canvas)),
body.ux-template-v1-page .ux-primary-visual .chart-wrap:has(canvas:not(.ux-chartjs-canvas)),
body.ux-template-v1-page .ux-primary-visual .chart-wrap-sm:has(canvas:not(.ux-chartjs-canvas)),
body.ux-template-v1-page .ux-primary-visual .canvas-wrap:has(canvas:not(.ux-chartjs-canvas)){
  min-height:0!important;
}
@media(min-width:821px){
  body.ux-template-v1-page .ux-visual-card canvas:not(.ux-chartjs-canvas),
  body.ux-template-v1-page .ux-primary-visual canvas:not(.ux-chartjs-canvas){
    width:auto!important;
    max-width:100%!important;
    max-height:min(680px,72vh)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
body.ux-template-v1-page canvas.ux-chartjs-canvas{
  height:380px!important;
  max-height:420px!important;
  min-height:0!important;
}
body.ux-template-v1-page .ux-compact-chart canvas.ux-chartjs-canvas{
  height:320px!important;
  max-height:360px!important;
}
body.ux-template-v1-page .ux-compact-chart{
  max-width:100%;
  width:100%;
  margin-left:auto;
  margin-right:auto;
}
body.ux-template-v1-page .ux-compact-chart canvas{
  max-height:480px;
}
body.ux-template-v1-page .ux-compact-chart .chart-wrap-pie,
body.ux-template-v1-page .ux-compact-chart .pie-wrap,
body.ux-template-v1-page .ux-compact-chart .donut-wrap{
  max-width:min(760px,100%)!important;
  height:clamp(320px,32vw,460px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.ux-template-v1-page .ux-results-card .stat-card,
body.ux-template-v1-page .ux-result-dock-cell,
body.ux-template-v1-page .ux-wide-metric{
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body.ux-template-v1-page .ux-results-card .stat-cards,
body.ux-template-v1-page .ux-results-card .stats-row,
body.ux-template-v1-page .ux-results-card .stat-row,
body.ux-template-v1-page .ux-results-card .stat-grid,
body.ux-template-v1-page .ux-results-card .stats-grid,
body.ux-template-v1-page .ux-results-card .stats,
body.ux-template-v1-page .ux-results-card .result-grid,
body.ux-template-v1-page .ux-results-card .metrics-grid{
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr));
}
body.ux-template-v1-page .ux-results-card .stat-card{
  min-width:0;
}
body.ux-template-v1-page .ux-results-card .stat-card *,
body.ux-template-v1-page .ux-result-dock-cell *,
body.ux-template-v1-page .stat-card *{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
body.ux-template-v1-page .ux-results-card .stat-card .label,
body.ux-template-v1-page .ux-results-card .stat-card .lbl,
body.ux-template-v1-page .ux-results-card .stat-card .stat-label,
body.ux-template-v1-page .ux-results-card .stat-card .sl{
  color:var(--muted,#6c757d);
}
body.ux-template-v1-page .ux-results-card .stat-card .value,
body.ux-template-v1-page .ux-results-card .stat-card .val,
body.ux-template-v1-page .ux-results-card .stat-card .stat-value,
body.ux-template-v1-page .ux-results-card .stat-card .sv{
  color:var(--accent,#007BFF);
}
body.ux-template-v1-page .ux-normalized-result-grid>.stat-card.wide,
body.ux-template-v1-page .ux-normalized-result-grid>.stat-card.stat-full,
body.ux-template-v1-page .ux-normalized-result-grid>.stat-full,
body.ux-template-v1-page .ux-normalized-result-grid>.wide{
  grid-column:auto!important;
}
body.ux-template-v1-page .ux-result-grid-scroll{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  padding-bottom:2px;
  scrollbar-width:thin;
}
body.ux-template-v1-page .ux-result-grid-scroll>.stat-card,
body.ux-template-v1-page .ux-result-grid-scroll>.result-card,
body.ux-template-v1-page .ux-result-grid-scroll>.metric-card,
body.ux-template-v1-page .ux-result-grid-scroll>.stat-item{
  min-width:96px;
}
@media(min-width:1024px){
  body.ux-template-v1-page .ux-result-grid-scroll{
    overflow-x:visible;
  }
  body.ux-template-v1-page .ux-result-grid-scroll>.stat-card,
  body.ux-template-v1-page .ux-result-grid-scroll>.result-card,
  body.ux-template-v1-page .ux-result-grid-scroll>.metric-card,
  body.ux-template-v1-page .ux-result-grid-scroll>.stat-item{
    min-width:0;
  }
}
body.ux-template-v1-page .ux-value-flash{
  border-color:var(--accent,#007BFF)!important;
  background:rgba(0,123,255,.08)!important;
  box-shadow:0 0 0 3px rgba(0,123,255,.08)!important;
}
.ux-mobile-switch,
.ux-result-dock,
.ux-wide-rail,
.ux-mobile-scrim,
.ux-mobile-control-fab,
.ux-mobile-panel-head{display:none}

@media(min-width:821px){
  body.ux-template-v1-page .ux-viz-stage{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    min-width:0;
  }
  body.ux-template-v1-page .ux-viz-stage-head{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:14px;
    min-width:0;
    max-width:100%;
    overflow:hidden;
  }
  body.ux-template-v1-page .ux-viz-stage-title{
    display:none!important;
    margin:0;
    color:var(--muted,#6c757d);
    font-size:.78rem;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    white-space:nowrap;
  }
  body.ux-template-v1-page .ux-viz-stage-tabs{
    display:flex;
    gap:8px;
    justify-content:flex-start;
    flex:1 1 auto;
    flex-wrap:wrap;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    min-width:0;
    max-width:100%;
    padding-bottom:2px;
  }
  body.ux-template-v1-page .ux-viz-stage-tab{
    appearance:none;
    flex:0 0 auto;
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    border:1px solid rgba(111,124,139,.34);
    border-radius:999px;
    background:#fff;
    color:#344256;
    font:800 .78rem/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    min-height:34px;
    padding:7px 12px;
    cursor:pointer;
    box-shadow:0 1px 2px rgba(15,23,42,.04);
    transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
  }
  body.ux-template-v1-page .ux-viz-stage-tab:hover{
    border-color:rgba(0,123,255,.5);
    color:var(--accent,#007BFF);
    box-shadow:0 2px 8px rgba(15,23,42,.08);
  }
  body.ux-template-v1-page .ux-viz-stage-tab[aria-selected="true"]{
    border-color:var(--accent,#007BFF);
    background:var(--accent,#007BFF);
    color:#fff;
  }
  body.ux-template-v1-page .ux-viz-stage-panes{
    position:relative;
    min-width:0;
  }
  body.ux-template-v1-page .ux-viz-stage-pane{
    display:block!important;
    position:absolute!important;
    inset:0 auto auto 0;
    z-index:-1;
    width:100%;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    visibility:hidden;
    pointer-events:none;
    opacity:0;
    min-width:0;
  }
  body.ux-template-v1-page .ux-viz-stage-pane.active{
    display:block!important;
    position:relative!important;
    z-index:auto;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    visibility:visible;
    pointer-events:auto;
    opacity:1;
  }
  body.ux-template-v1-page .ux-viz-stage-unit{
    width:100%;
    max-width:100%;
    margin:0!important;
  }
  body.ux-template-v1-page .ux-viz-stage-unit.chart-row,
  body.ux-template-v1-page .ux-viz-stage-unit.charts-grid,
  body.ux-template-v1-page .ux-viz-stage-unit.grid{
    align-items:stretch;
  }
  body.ux-template-v1-page .ux-viz-stage .chart-card,
  body.ux-template-v1-page .ux-viz-stage .chart-card-inline{
    margin:0!important;
  }
}

@media(min-width:1320px){
  body.ux-template-v1-page .main{
    max-width:1200px;
    grid-template-columns:300px 1fr;
    gap:20px;
  }
}

@media(min-width:821px){
  body.ux-template-v1-page .ux-controls{
    grid-column:1;
    grid-row:1;
  }
  body.ux-template-v1-page .ux-viz{
    grid-column:2;
    grid-row:1;
    min-width:0;
  }
}

@media(min-width:1480px){
  body.ux-template-v1-page .main{
    max-width:1200px;
    grid-template-columns:300px 1fr;
    gap:20px;
    align-items:start;
  }
  body.ux-template-v1-page .ux-controls{grid-column:1}
  body.ux-template-v1-page .ux-viz{
    grid-column:2;
    min-width:0;
  }
  .ux-wide-rail{
    display:none!important;
  }
  /*
  .ux-wide-rail{
    grid-column:3;
    display:flex;
    flex-direction:column;
    gap:12px;
    position:sticky;
    top:72px;
    max-height:calc(100vh - 88px);
    overflow:auto;
    scrollbar-width:thin;
  }
  .ux-wide-panel{
    border:1px solid var(--border,#dee2e6);
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
    padding:12px;
  }
  .ux-wide-title{
    margin:0 0 10px;
    color:var(--muted,#6c757d);
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .ux-wide-metric-list{
    display:grid;
    gap:8px;
  }
  .ux-wide-metric{
    min-width:0;
    border:1px solid var(--border,#dee2e6);
    border-radius:8px;
    background:var(--bg,#F8F9FA);
    padding:9px 10px;
  }
  .ux-wide-metric-label{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted,#6c757d);
    font-size:.66rem;
    font-weight:800;
  }
  .ux-wide-metric-value{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--accent,#007BFF);
    font-family:'Roboto Mono',monospace;
    font-size:1rem;
    font-weight:900;
    line-height:1.35;
  }
  */
}

@media(max-width:820px){
  body.ux-template-v1-page .main{
    grid-template-columns:1fr;
    padding:6px 6px 16px!important;
    gap:8px!important;
  }
  body.ux-template-v1-page .panel,
  body.ux-template-v1-page .controls{
    position:static;
    max-height:52vh;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.ux-template-v1-page .viz-panel,
  body.ux-template-v1-page .charts-area,
  body.ux-template-v1-page .right-col{
    gap:12px;
  }
  body.ux-template-v1-page .chart-card,
  body.ux-template-v1-page .chart-card-inline,
  body.ux-template-v1-page .viz-panel{
    border-radius:10px;
  }
  body.ux-template-v1-page section.explanation>h2,
  body.ux-template-v1-page .explanation>h2{
    padding-right:72px;
    overflow-wrap:anywhere;
  }
  body.ux-template-v1-page .tab-bar,
  body.ux-template-v1-page .tab-buttons,
  body.ux-template-v1-page .viz-tabs,
  body.ux-template-v1-page .tabs,
  body.ux-template-v1-page [role="tablist"]{
    flex-wrap:wrap!important;
    overflow-x:visible!important;
    max-width:100%!important;
  }
  body.ux-template-v1-page .tab-bar>*,
  body.ux-template-v1-page .tab-buttons>*,
  body.ux-template-v1-page .viz-tabs>*,
  body.ux-template-v1-page .tabs>*,
  body.ux-template-v1-page [role="tablist"]>*{
    min-width:0!important;
    white-space:normal!important;
  }
  body.ux-template-v1-page .ux-visual-card>canvas,
  body.ux-template-v1-page .ux-visual-card>.chart-wrap>canvas,
  body.ux-template-v1-page .ux-visual-card>.chart-wrap-sm>canvas,
  body.ux-template-v1-page .ux-visual-card>.canvas-wrap>canvas,
  body.ux-template-v1-page canvas.ux-chartjs-canvas{
    height:340px!important;
    max-height:400px!important;
  }
  body.ux-template-v1-page .ux-compact-chart canvas.ux-chartjs-canvas{
    height:300px!important;
    max-height:340px!important;
  }
  body.ux-template-v1-page .ux-visual-card canvas.ux-chartjs-canvas{
    min-height:220px;
  }
  body.ux-template-v1-page .ux-visual-card canvas{
    min-height:clamp(230px,58vw,360px);
  }
  body.ux-template-v1-page .ux-primary-visual>canvas,
  body.ux-template-v1-page .ux-primary-visual>.chart-wrap>canvas,
  body.ux-template-v1-page .ux-primary-visual>.chart-wrap-sm>canvas,
  body.ux-template-v1-page .ux-primary-visual>.canvas-wrap>canvas{
    min-height:clamp(280px,68vw,420px)!important;
  }
  body.ux-template-v1-page .ux-primary-visual canvas{
    width:100%!important;
    max-width:100%!important;
    min-height:clamp(280px,68vw,420px)!important;
  }
  body.ux-template-v1-page .ux-visual-card canvas:not(.ux-chartjs-canvas),
  body.ux-template-v1-page .ux-primary-visual canvas:not(.ux-chartjs-canvas),
  body.ux-template-v1-page .viz-panel .canvas-wrap>canvas:not(.ux-chartjs-canvas){
    max-height:min(500px,72vh)!important;
  }
  body.ux-template-v1-page canvas#stabilityCanvas{
    width:100px!important;
    height:85px!important;
    min-height:0!important;
  }
  body.ux-template-v1-page .ux-primary-visual .canvas-container,
  body.ux-template-v1-page .ux-primary-visual .chart-wrap,
  body.ux-template-v1-page .ux-primary-visual .chart-wrap-sm,
  body.ux-template-v1-page .ux-primary-visual .canvas-wrap{
    min-height:clamp(280px,68vw,420px);
  }
  .ux-mobile-switch{
    position:sticky;
    top:0;
    z-index:30;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:6px;
    max-width:1280px;
    margin:0 auto;
    padding:6px 6px 5px;
    background:rgba(248,249,250,.96);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(222,226,230,.8);
  }
  .ux-mobile-switch button{
    border:1px solid var(--border,#dee2e6);
    background:#fff;
    color:var(--text,#1a1a2e);
    min-height:30px;
    border-radius:999px;
    font:700 .74rem/1.1 inherit;
  }
  .ux-mobile-switch button:active,
  .ux-mobile-switch button:focus-visible{
    border-color:var(--accent,#007BFF);
    color:var(--accent,#007BFF);
    outline:none;
  }
  .ux-result-dock{
    position:sticky;
    top:42px;
    z-index:29;
    display:grid;
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);
    gap:5px;
    max-width:1280px;
    margin:0 auto;
    padding:5px 6px 6px;
    background:rgba(248,249,250,.96);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(222,226,230,.8);
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
  }
  .ux-result-dock::-webkit-scrollbar{display:none}
  .ux-result-dock-cell{
    min-width:0;
    border:1px solid var(--border,#dee2e6);
    border-radius:8px;
    background:#fff;
    padding:5px 6px;
  }
  .ux-result-dock-label{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted,#6c757d);
    font-size:.54rem;
    font-weight:700;
    letter-spacing:.04em;
  }
  .ux-result-dock-value{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--accent,#007BFF);
    font-family:'Roboto Mono',monospace;
    font-size:.76rem;
    font-weight:800;
    line-height:1.25;
  }
  body.ux-template-v1-page .ux-results-card .stat-cards,
  body.ux-template-v1-page .ux-results-card .stats-row,
  body.ux-template-v1-page .ux-results-card .stat-row,
  body.ux-template-v1-page .ux-results-card .stat-grid,
  body.ux-template-v1-page .ux-results-card .stats-grid,
  body.ux-template-v1-page .ux-results-card .stats,
  body.ux-template-v1-page .ux-results-card .result-grid,
  body.ux-template-v1-page .ux-results-card .metrics-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  body.ux-mobile-sheet-enabled .ux-viz{
    order:1;
  }
  body.ux-template-v1-page .ux-viz{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body.ux-template-v1-page .ux-viz .chart-card,
  body.ux-template-v1-page .ux-viz .chart-card-inline{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body.ux-template-v1-page .ux-viz>*,
  body.ux-template-v1-page .ux-viz>.chart-card,
  body.ux-template-v1-page .ux-viz>.chart-card-inline{
    order:4;
  }
  body.ux-template-v1-page .ux-viz>.warning-box,
  body.ux-template-v1-page .ux-viz>.warning-banner,
  body.ux-template-v1-page .ux-viz>.alert{
    order:0;
  }
  body.ux-template-v1-page .ux-viz>.tab-btns,
  body.ux-template-v1-page .ux-viz>.tab-buttons,
  body.ux-template-v1-page .ux-viz>.viz-tabs,
  body.ux-template-v1-page .ux-viz>.tabs,
  body.ux-template-v1-page .ux-viz>.tab-bar,
  body.ux-template-v1-page .ux-viz>.chart-tabs,
  body.ux-template-v1-page .ux-viz>.tab-row,
  body.ux-template-v1-page .ux-viz>.tabs-row,
  body.ux-template-v1-page .ux-viz>.tab-nav,
  body.ux-template-v1-page .ux-viz>.tablist,
  body.ux-template-v1-page .ux-viz>[role="tablist"]{
    order:1;
  }
  body.ux-template-v1-page .ux-viz>.ux-results-card,
  body.ux-template-v1-page .ux-viz>.ux-results-wrapper{
    order:3;
  }
  body.ux-template-v1-page .ux-viz>.ux-primary-visual,
  body.ux-template-v1-page .ux-viz>.ux-primary-wrapper,
  body.ux-template-v1-page .ux-viz>.tab-pane.active,
  body.ux-template-v1-page .ux-viz>.ux-primary-visual.ux-results-card{
    order:2;
  }
  body.ux-template-v1-page .ux-viz-stage{
    display:contents!important;
  }
  body.ux-template-v1-page .ux-viz-stage-head{
    display:none!important;
  }
  body.ux-template-v1-page .ux-viz-stage-panes{
    display:contents!important;
  }
  body.ux-template-v1-page .ux-viz-stage-pane{
    display:block!important;
    order:4;
  }
  body.ux-template-v1-page .ux-viz-stage-pane.active{
    display:block!important;
  }
  body.ux-template-v1-page .ux-viz-stage-unit{
    width:100%;
  }
  body.ux-template-v1-page .ux-viz-stage{
    display:flex!important;
    flex-direction:column;
    gap:10px;
    order:2;
  }
  body.ux-template-v1-page .ux-viz-stage-head{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  body.ux-template-v1-page .ux-viz-stage-title{
    margin:0;
    color:var(--muted,#6c757d);
    font-size:.74rem;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    white-space:nowrap;
  }
  body.ux-template-v1-page .ux-viz-stage-tabs{
    display:flex;
    gap:7px;
    overflow-x:auto;
    min-width:0;
    scrollbar-width:thin;
  }
  body.ux-template-v1-page .ux-viz-stage-tab{
    appearance:none;
    flex:0 0 auto;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    border:1px solid rgba(111,124,139,.34);
    border-radius:999px;
    background:#fff;
    color:#344256;
    font:800 .76rem/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    min-height:32px;
    padding:7px 11px;
  }
  body.ux-template-v1-page .ux-viz-stage-tab[aria-selected="true"]{
    border-color:var(--accent,#007BFF);
    background:var(--accent,#007BFF);
    color:#fff;
  }
  body.ux-template-v1-page .ux-viz-stage-panes{
    display:block!important;
    position:relative;
  }
  body.ux-template-v1-page .ux-viz-stage-pane{
    display:block!important;
    position:absolute!important;
    inset:0 auto auto 0;
    z-index:-1;
    width:100%;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    visibility:hidden;
    pointer-events:none;
    opacity:0;
    order:0;
  }
  body.ux-template-v1-page .ux-viz-stage-pane.active{
    display:block!important;
    position:relative!important;
    z-index:auto;
    overflow:visible!important;
    visibility:visible;
    pointer-events:auto;
    opacity:1;
  }
  body.ux-mobile-sheet-enabled .ux-controls{
    position:fixed;
    left:8px;
    right:8px;
    /* Resolve between both fixed insets, not the page's 100% panel width. */
    width:auto;
    min-width:0;
    box-sizing:border-box;
    bottom:0;
    top:auto;
    z-index:70;
    max-height:min(42dvh,360px);
    overflow:auto;
    transform:translateY(calc(100% + 18px));
    transition:transform .22s ease;
    background:#fff;
    border:1px solid var(--border,#dee2e6);
    border-bottom:0;
    border-radius:16px 16px 0 0;
    box-shadow:0 -16px 38px rgba(0,31,63,.22);
    -webkit-overflow-scrolling:touch;
  }
  body.ux-mobile-controls-open .ux-controls{
    transform:translateY(0);
  }
  .ux-mobile-panel-head{
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:-2px -2px 12px;
    padding:12px 12px 10px;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border,#dee2e6);
  }
  .ux-mobile-panel-title{
    color:var(--text,#1a1a2e);
    font-size:.92rem;
    font-weight:900;
  }
  body.ux-mobile-sheet-enabled .ux-controls>.ux-mobile-original-panel-title{
    display:none!important;
  }
  .ux-mobile-panel-close{
    width:34px;
    height:34px;
    border:1px solid var(--border,#dee2e6);
    border-radius:999px;
    background:#fff;
    color:var(--text,#1a1a2e);
    font-size:1.25rem;
    font-weight:800;
    line-height:1;
  }
  .ux-mobile-scrim{
    position:fixed;
    inset:0;
    z-index:60;
    display:block;
    pointer-events:none;
    opacity:0;
    background:rgba(0,31,63,.28);
    transition:opacity .18s ease;
  }
  body.ux-mobile-controls-open .ux-mobile-scrim{
    pointer-events:auto;
    opacity:1;
  }
}

@media(max-width:360px){
  body.ux-template-v1-page .ux-results-card .stat-cards,
  body.ux-template-v1-page .ux-results-card .stats-row,
  body.ux-template-v1-page .ux-results-card .stat-row,
  body.ux-template-v1-page .ux-results-card .stat-grid,
  body.ux-template-v1-page .ux-results-card .stats-grid,
  body.ux-template-v1-page .ux-results-card .stats,
  body.ux-template-v1-page .ux-results-card .result-grid,
  body.ux-template-v1-page .ux-results-card .metrics-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.ux-template-v1-page .ux-result-grid-scroll{
    overflow-x:visible;
  }
  body.ux-template-v1-page .ux-result-grid-scroll>.stat-card,
  body.ux-template-v1-page .ux-result-grid-scroll>.result-card,
  body.ux-template-v1-page .ux-result-grid-scroll>.metric-card,
  body.ux-template-v1-page .ux-result-grid-scroll>.stat-item{
    min-width:0;
  }
}

@media(min-width:821px){
  body.ux-template-v1-page .ux-results-card .stat-cards,
  body.ux-template-v1-page .ux-results-card .stats-row,
  body.ux-template-v1-page .ux-results-card .stat-row,
  body.ux-template-v1-page .ux-results-card .stat-grid,
  body.ux-template-v1-page .ux-results-card .stats-grid,
  body.ux-template-v1-page .ux-results-card .stats,
  body.ux-template-v1-page .ux-results-card .result-grid,
  body.ux-template-v1-page .ux-results-card .metrics-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

/* NOVA-VIZORDER v1 (2026-07-04): some pages nest explanation/related/ads inside
   .main; with the mobile sheet's .ux-viz{order:1} the simulator sank below them.
   Push all non-viz/non-controls .main children after the viz on mobile. Pages
   with canonical structure (.main = controls+viz only) are unaffected. */
@media (max-width: 860px) {
  body.ux-mobile-sheet-enabled .main > :not(.ux-viz):not(.ux-controls) {
    order: 2;
  }
}

/* Keep the input/explanation switch below the injected 60px mobile toolbar.
   Scope to pages which actually have that toolbar; desktop/print are unchanged. */
@media screen and (max-width:820px) {
  body.ux-template-v1-page:has(#ns-mobile-toolbar) .ux-mobile-switch { top:60px; }
  body.ux-template-v1-page:has(#ns-mobile-toolbar) .ux-mobile-switch button { min-height:44px; }
  body.ux-template-v1-page:has(#ns-mobile-toolbar) .ux-result-dock { top:116px; }
}


/* ===== CLS1 twins: generated by build_cls1.py from the rules above (pre-script state).
   body.ux-template-v1-page -> :where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) (same specificity);
   body.ux-mobile-sheet-enabled -> :where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-mobile-sheet-enabled);
   script-added element classes -> structural stand-ins:
     :not(.ux-viz):not(.ux-controls) -> :not(.viz-panel):not(.panel):not(.controls)
     .ux-primary-visualb -> :is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))
     .ux-primary-wrapperb -> :is(.viz-panel>:not(.chart-card):has(.chart-card canvas,.chart-card svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*))
     .ux-visual-cardb -> :is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))
     .ux-results-cardb -> .chart-card:first-child:not(:has(canvas,svg))
     .ux-results-wrapperb -> .chart-card:first-child:not(:has(canvas,svg))
     .ux-vizb(?!-) -> .main>.viz-panel
     .ux-controlsb -> .main>.panel:not(.viz-panel)
     .ux-mainb -> .main
   ===== */
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main{max-width:1200px;
  grid-template-columns:300px 1fr;
  gap:20px;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main>.explanation{grid-column:1/-1;
  width:100%;
  max-width:min(1200px,100%);
  justify-self:center;
  box-sizing:border-box;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main>.explanation .fblock,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main>.explanation .chat,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main>.explanation .faq-section{box-sizing:border-box;
  width:100%;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .panel,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls{position:sticky;
  top:72px;
  max-height:calc(100vh - 88px);
  overflow:auto;
  scrollbar-width:thin;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .panel,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls-panel .panel,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil) .panel{position:static;
  top:auto;
  max-height:none;
  overflow:visible;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .charts-area,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .right-col{display:flex;
  flex-direction:column;
  gap:clamp(14px,1.35vw,20px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-btns,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-buttons,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tabs{display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-btn{appearance:none;
  border:1px solid rgba(111,124,139,.32);
  border-radius:8px;
  background:#fff;
  color:#344256;
  font:600 .9rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding:8px 12px;
  min-height:36px;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-btn:hover{border-color:rgba(0,123,255,.46);
  color:#075fb8;
  box-shadow:0 2px 8px rgba(15,23,42,.08);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-btn.active,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-btn[aria-selected="true"]{border-color:var(--accent,#007BFF);
  background:rgba(0,123,255,.1);
  color:var(--accent,#007BFF);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline{overflow:hidden;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card{padding:clamp(16px,1.55vw,24px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline{padding:clamp(14px,1.35vw,20px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .param-group:has(> .param-label .num-wrap)>input.num-input[id$="Num"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .param-group:has(> .slider-label .num-wrap)>input.num-input[id$="Num"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .slider-group:has(> .slider-label .num-wrap)>input.num-input[id$="Num"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .control-group:has(.num-wrap)>input.num-input[id$="Num"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .ctrl-group:has(> label .num-wrap)>input.num-input[id$="Num"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .field:has(> label .num-wrap)>input.num-input[id$="Num"]{display:none!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .panel>.panel-title:last-child,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .panel>.section-title:last-child,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls>.panel-title:last-child,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls>.section-title:last-child,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls>h2:last-child,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls>h3:last-child{display:none!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .panel>.divider:has(+ .panel-title:last-child),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .panel>.divider:has(+ .section-title:last-child),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls>.divider:has(+ .panel-title:last-child),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls>.divider:has(+ .section-title:last-child){display:none!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .panel:has(> .panel-title:only-child),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .panel:has(> .section-title:only-child){display:none!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .param-label,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .slider-label,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .ctrl-label{gap:8px;
  min-width:0;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .param-label,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .slider-label,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .ctrl-label{flex-wrap:wrap;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .param-name,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .slider-label>span:first-child,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .ctrl-label>span:first-child{min-width:0;
  overflow-wrap:anywhere;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .num-wrap{flex-shrink:0;
  max-width:55%;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .num-wrap{margin-left:auto;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .num-input,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) input[type="number"]{min-width:0!important;
  max-width:100%!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .num-unit{min-width:0!important;
  overflow-wrap:anywhere;
  white-space:normal;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil){overflow-x:hidden!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) *,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) *::before,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) *::after{max-width:100%;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .toggle-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .button-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .btn-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .preset-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) .btn-group{flex-wrap:wrap;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil) mjx-container{max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) mjx-assistive-mml{display:none!important;
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  max-width:1px!important;
  max-height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  contain:size layout style!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) mjx-assistive-mml math{width:1px!important;
  max-width:1px!important;
  overflow:hidden!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card mjx-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline mjx-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .fblock mjx-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .theory-box mjx-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .cae-note mjx-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel mjx-container{max-width:100%!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card mjx-container:not([display="true"]),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline mjx-container:not([display="true"]),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .fblock mjx-container:not([display="true"]),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .theory-box mjx-container:not([display="true"]),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .cae-note mjx-container:not([display="true"]),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel mjx-container:not([display="true"]){display:inline-block!important;
  width:auto!important;
  vertical-align:-0.15em!important;
  contain:none!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card mjx-container[display="true"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline mjx-container[display="true"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .fblock mjx-container[display="true"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .theory-box mjx-container[display="true"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .cae-note mjx-container[display="true"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel mjx-container[display="true"]{display:block!important;
  width:100%!important;
  contain:inline-size layout!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .charts-area>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .right-col>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-wrap>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .canvas-wrap>canvas{width:100%!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card>canvas[height],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline>canvas[height],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) canvas[data-ux-fixed-chart]{height:auto!important;
  min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) canvas.colorbar{width:14px!important;
  height:120px!important;
  min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) canvas#stabilityCanvas{width:130px!important;
  height:110px!important;
  max-width:38vw!important;
  max-height:34vw!important;
  min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap-sm>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.canvas-wrap>canvas{min-height:clamp(260px,30vw,430px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil) canvas{min-height:clamp(260px,30vw,430px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-pane.active .chart-card canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-pane.active .chart-card-inline canvas{display:block;
  width:100%!important;
  min-height:clamp(260px,30vw,430px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap-sm>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.canvas-wrap>canvas{min-height:clamp(320px,36vw,540px)!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) canvas{width:100%!important;
  max-width:100%!important;
  min-height:clamp(320px,36vw,540px)!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .canvas-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .chart-wrap,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .chart-wrap-sm,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .canvas-wrap{min-height:clamp(320px,36vw,540px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil) canvas:not(.ux-chartjs-canvas),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) canvas:not(.ux-chartjs-canvas){min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil) canvas[style*="position: absolute"],
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) canvas[style*="position: absolute"]{width:min(80px,24vw)!important;
  height:min(80px,24vw)!important;
  min-height:0!important;
  max-width:24vw!important;
  max-height:24vw!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .canvas-container:has(canvas:not(.ux-chartjs-canvas)),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .chart-wrap:has(canvas:not(.ux-chartjs-canvas)),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .chart-wrap-sm:has(canvas:not(.ux-chartjs-canvas)),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .canvas-wrap:has(canvas:not(.ux-chartjs-canvas)){min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) canvas.ux-chartjs-canvas{height:380px!important;
  max-height:420px!important;
  min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-cards,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .result-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .metrics-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card{min-width:0;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card *,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .stat-card *{min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .label,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .lbl,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .stat-label,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .sl{color:var(--muted,#6c757d);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .value,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .val,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .stat-value,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-card .sv{color:var(--accent,#007BFF);}
@media(min-width:1320px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main{max-width:1200px;
    grid-template-columns:300px 1fr;
    gap:20px;}
}
@media(min-width:821px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil){grid-column:1;
    grid-row:1;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil){grid-column:2;
    grid-row:1;
    min-width:0;}
}
@media(min-width:1480px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main{max-width:1200px;
    grid-template-columns:300px 1fr;
    gap:20px;
    align-items:start;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.panel:not(.viz-panel)):not(.ux-nil){grid-column:1}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil){grid-column:2;
    min-width:0;}
}
@media(max-width:820px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .main{grid-template-columns:1fr;
    padding:6px 6px 16px!important;
    gap:8px!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .panel,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .controls{position:static;
    max-height:52vh;
    overflow:auto;
    -webkit-overflow-scrolling:touch;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .charts-area,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .right-col{gap:12px;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .chart-card-inline,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel{border-radius:10px;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) section.explanation>h2,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .explanation>h2{padding-right:72px;
    overflow-wrap:anywhere;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-bar,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-buttons,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-tabs,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tabs,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) [role="tablist"]{flex-wrap:wrap!important;
    overflow-x:visible!important;
    max-width:100%!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-bar>*,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tab-buttons>*,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-tabs>*,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .tabs>*,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) [role="tablist"]>*{min-width:0!important;
    white-space:normal!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap-sm>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.canvas-wrap>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) canvas.ux-chartjs-canvas{height:340px!important;
    max-height:400px!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil) canvas.ux-chartjs-canvas{min-height:220px;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil) canvas{min-height:clamp(230px,58vw,360px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-wrap-sm>canvas,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.canvas-wrap>canvas{min-height:clamp(280px,68vw,420px)!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) canvas{width:100%!important;
    max-width:100%!important;
    min-height:clamp(280px,68vw,420px)!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.chart-card:has(canvas,svg),.viz-panel>:not(.chart-card):not(:has(.chart-card)):has(canvas,svg))):not(.ux-nil) canvas:not(.ux-chartjs-canvas),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) canvas:not(.ux-chartjs-canvas),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) .viz-panel .canvas-wrap>canvas:not(.ux-chartjs-canvas){max-height:min(500px,72vh)!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) canvas#stabilityCanvas{width:100px!important;
    height:85px!important;
    min-height:0!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .canvas-container,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .chart-wrap,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .chart-wrap-sm,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil) .canvas-wrap{min-height:clamp(280px,68vw,420px);}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-cards,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .result-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-mobile-sheet-enabled) :where(.main>.viz-panel):not(.ux-nil){order:1;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil){padding-left:10px!important;
    padding-right:10px!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil) .chart-card,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil) .chart-card-inline{padding-left:10px!important;
    padding-right:10px!important;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>*,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-card,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-card-inline{order:4;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.warning-box,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.warning-banner,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.alert{order:0;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tab-btns,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tab-buttons,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.viz-tabs,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tabs,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tab-bar,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.chart-tabs,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tab-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tabs-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tab-nav,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tablist,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>[role="tablist"]{order:1;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>:where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>:where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil){order:3;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>:where(:is(.viz-panel>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel>:not(.chart-card):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*)>.chart-card:has(canvas,svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*),.viz-panel:not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg):not(:has(canvas,svg)~*))):not(.ux-nil),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>:where(:is(.viz-panel>:not(.chart-card):has(.chart-card canvas,.chart-card svg):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*))):not(.ux-nil),
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.main>.viz-panel):not(.ux-nil):not(:where(.chart-card:has(>.chart-title)))>.tab-pane.active{order:2;}
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-mobile-sheet-enabled) :where(.main>.panel:not(.viz-panel)):not(.ux-nil){position:fixed;
    left:8px;
    right:8px;
    
    width:auto;
    min-width:0;
    box-sizing:border-box;
    bottom:0;
    top:auto;
    z-index:70;
    max-height:min(42dvh,360px);
    overflow:auto;
    transform:translateY(calc(100% + 18px));
    transition:transform .22s ease;
    background:#fff;
    border:1px solid var(--border,#dee2e6);
    border-bottom:0;
    border-radius:16px 16px 0 0;
    box-shadow:0 -16px 38px rgba(0,31,63,.22);
    -webkit-overflow-scrolling:touch;}
}
@media(max-width:360px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-cards,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .result-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(min-width:821px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-cards,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-row,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stat-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .stats,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .result-grid,
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-template-v1-page) :where(.chart-card:first-child:not(:has(canvas,svg))):not(.ux-nil) .metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width: 860px){
:where(html.ux-cls1:not(.ux-cls1-ready)) body:not(.ux-mobile-sheet-enabled) .main > :where(:not(.viz-panel):not(.panel):not(.controls)):not(.ux-nil):not(.ux-nil2){order: 2;}
}


/* ============================================================================
   CLS1 (2026-11-08) — hand-written reservations for boxes that tool-ux-template.cls1.js INSERTS
   (mobile switch, visual-stage head/panes) or that other deferred scripts insert (mobile toolbar, Studio promo).
   Scope: html.ux-cls1 is set by the one-line head script (never inside iframes). html.ns-embed (set synchronously by
   tools-common.js for ?embed=1) switches off the toolbar/promo/header reservations, which do not happen in embed mode.
   The "pre" rules are scoped to html.ux-cls1:not(.ux-cls1-ready); the script adds .ux-cls1-ready in the same task in
   which it restructures the page, so a reserved box is replaced by the real one within a single frame. The generated
   twins above handle the template's own class-keyed rules; this block handles geometry the twins cannot express.
   Final-layout change (deliberate, see PLAN.md): .ux-mobile-switch fixed at 56px (42px in embed). Everything else is pre-state only.

   Vocabulary (mirrors tool-ux-template.js):
     visual card  = .chart-card that contains a canvas/svg (any depth inside .viz-panel)
     PREV         = :is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))   "is or contains a visual card"
     primary unit = first visual card in document order; the stage is inserted before its top-level ancestor T
     stage        = built when >=2 units and the page has no tabs of its own and data-ux-visual-stage is not "off"
     VIZ          = .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))
   ============================================================================ */
html.ux-cls1 .ux-mobile-switch{box-sizing:border-box;height:56px;padding:6px 6px 5px}
html.ux-cls1 .ux-mobile-switch button{min-height:44px}
html.ux-cls1.ns-embed .ux-mobile-switch{height:42px}
html.ux-cls1.ns-embed .ux-mobile-switch button{min-height:30px}

/* Studio promo (#ns-studio-promo) is appended to .hero-inner at DOMContentLoaded by related-tools.js / tool-3d.js (not in embed).
   html.ux-promo-off is set by the head line when the visitor closed it within 30 days. ns-main20 pages have their own rule. */
html.ux-cls1:not(.ux-promo-off):not(.ns-embed):not(.ux-cls1-ready) body:not(.ns-main20) .hero-inner:not(:has(#ns-studio-promo))::after{content:"";display:block;height:64px}
@media(max-width:820px){
  html.ux-cls1:not(.ux-promo-off):not(.ns-embed):not(.ux-cls1-ready) body:not(.ns-main20) .hero-inner:not(:has(#ns-studio-promo))::after{height:74px}
}
@media(max-width:600px){
  html.ux-cls1:not(.ux-promo-off):not(.ns-embed):not(.ux-cls1-ready) body:not(.ns-main20) .hero-inner:not(:has(#ns-studio-promo))::after{height:63px}
}

/* sidebar-inject.v9.js rewrites <header> on tool pages to a 56px strip (inner div height:56px, padding 0 24px) at all widths (not in embed) */
html.ux-cls1:not(.ns-embed):not(.ux-cls1-ready) body:not(.ns-main20) header{box-sizing:border-box;height:56px;padding-top:0;padding-bottom:0;overflow:hidden}

@media(max-width:820px){
  /* sidebar-inject.v9.js inserts #ns-mobile-toolbar (60px, in flow) as the first body child and sets
     html.ns-has-mobile-toolbar in the same statement: reserve 60px until then (the script exits in embed mode). */
  html.ux-cls1:not(.ns-has-mobile-toolbar):not(.ns-embed):not(.ux-cls1-ready) body::before{content:"";display:block;height:60px}
  /* ns-main20 pages hide <header> once the title strip is injected (page CSS): pre-hide it. */
  html.ux-cls1:not(.ns-embed):not(.ux-cls1-ready) body.ns-main20 header{height:0;min-height:0;overflow:clip;padding:0;border:0;visibility:hidden}
  /* .ux-mobile-switch (56px / 42px in embed) is inserted right before .main */
  html.ux-cls1:not(.ux-cls1-ready) .main{margin-top:56px}
  html.ux-cls1.ns-embed:not(.ux-cls1-ready) .main{margin-top:42px}
  /* stage head (one tab row 32px + stage gap 10px) above T when a second unit exists:
     (a) a later top-level sibling of T is/contains a visual card, (b) T wraps two visual cards, (c) a canvas-only direct child exists */
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>:is(.chart-card:has(canvas,svg),:not(.chart-card):has(.chart-card canvas,.chart-card svg)):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*):has(~.chart-card canvas,~.chart-card svg,~* .chart-card canvas,~* .chart-card svg),
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>:is(.chart-card:has(canvas,svg),:not(.chart-card):has(.chart-card canvas,.chart-card svg)):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*):has(.chart-card~.chart-card canvas,.chart-card~.chart-card svg),
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"])):has(>:not(.chart-card)>canvas,>:not(.chart-card)>svg)>:is(.chart-card:has(canvas,svg),:not(.chart-card):has(.chart-card canvas,.chart-card svg)):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*){margin-top:42px}
  /* normalizeResultGrids: on <=640px a results grid with >=3 items becomes 2 columns; 641-820px: n<=4 -> n columns, else 3 */
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(3)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
  /* Chart.js canvases (pre-state only): tuneChartCanvas writes height:280px!important inline on narrow screens (300px for pie/donut/radar) */
  html.ux-cls1:not(.ux-cls1-ready) .main canvas.ux-chartjs-canvas{height:280px!important}
  html.ux-cls1:not(.ux-cls1-ready) .main canvas.ux-chartjs-canvas:is([id*="pie" i],[id*="donut" i],[id*="doughnut" i],[id*="radar" i]){height:300px!important}
}
@media(max-width:640px){
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:821px){
  /* normalizeResultGrids on desktop: a results grid with n>=3 items becomes min(n,6) columns (the twin above gives 4) */
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(3)){display:grid}
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel .chart-card:first-child:not(:has(canvas,svg)) :is(.stat-cards,.stats-row,.stat-row,.stat-grid,.stats-grid,.stats,.result-grid,.metrics-grid):has(>:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))}
  /* stage head on desktop: 36px + gap 12px (same conditions as the mobile rule) */
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>:is(.chart-card:has(canvas,svg),:not(.chart-card):has(.chart-card canvas,.chart-card svg)):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*):has(~.chart-card canvas,~.chart-card svg,~* .chart-card canvas,~* .chart-card svg),
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>:is(.chart-card:has(canvas,svg),:not(.chart-card):has(.chart-card canvas,.chart-card svg)):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*):has(.chart-card~.chart-card canvas,.chart-card~.chart-card svg),
  html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"])):has(>:not(.chart-card)>canvas,>:not(.chart-card)>svg)>:is(.chart-card:has(canvas,svg),:not(.chart-card):has(.chart-card canvas,.chart-card svg)):not(:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~*){margin-top:48px}
}
/* Every unit except the primary becomes a hidden stage pane (same box as .ux-viz-stage-pane:not(.active)); a leading
   results card too. Without this the content below them jumps ~1000px into the viewport when the stage is built.
   H1 later top-level visual cards; H2 visual cards nested in later wrappers; H3 second+ visual card inside any wrapper;
   H4 canvas-only direct children when a visual card exists anywhere; H5 later canvas-only children when none exists. */
html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"])){position:relative}
html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~.chart-card:has(canvas,svg),
html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>:is(.chart-card:has(canvas,svg),:has(.chart-card canvas,.chart-card svg))~:not(.chart-card) .chart-card:has(canvas,svg),
html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"])) :not(.chart-card)>.chart-card:has(canvas,svg)~.chart-card:has(canvas,svg),
html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"])):has(.chart-card canvas,.chart-card svg)>:not(.chart-card):not(.tab-content,.tab-pane,[role="tabpanel"]):not(:has(.chart-card)):has(canvas,svg),
html.ux-cls1:not(.ux-cls1-ready) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"])):not(:has(.chart-card canvas,.chart-card svg))>:not(.chart-card):has(canvas,svg)~:not(.chart-card):not(.tab-content,.tab-pane,[role="tabpanel"]):has(canvas,svg),
html.ux-cls1:not(.ux-cls1-ready) body:not(.ns-main20) .main>.viz-panel:not([data-ux-visual-stage="off"]):not(:has(.tab-btn,.viz-tab,[role="tab"]))>.chart-card:first-child:not(:has(canvas,svg)):has(~.chart-card canvas,~.chart-card svg):has(~.chart-card~.chart-card canvas,~.chart-card~.chart-card svg){
  position:absolute;inset:0 auto auto 0;z-index:-1;width:100%;height:auto;overflow:hidden;visibility:hidden;pointer-events:none;opacity:0;
}
