/* CRIA Interactive Image & Chart Viewer — overlay + "View" buttons */
.cria-viewer{ display:none; position:fixed; inset:0; z-index:4000;
  background:rgba(8,14,22,.88); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.cria-viewer.open{ display:block; animation:cvFade .18s ease both; }
@keyframes cvFade{ from{ opacity:0; } to{ opacity:1; } }

.cv-bar{ position:absolute; top:14px; right:16px; display:flex; gap:8px; z-index:3; }
.cv-btn{ width:40px; height:40px; border-radius:50%; border:2px solid #FFC627;
  background:linear-gradient(150deg,#a52350,#8C1D40 60%,#6d1531); color:#fff;
  font-size:18px; font-weight:800; cursor:pointer; display:flex; align-items:center;
  justify-content:center; box-shadow:0 6px 16px rgba(0,0,0,.45); transition:transform .12s; }
.cv-btn:hover{ transform:translateY(-2px); }
.cv-close{ border-color:#fff; }

.cv-hint{ position:absolute; top:20px; left:20px; z-index:3; color:#e8eef4; font-size:12px;
  font-weight:600; background:rgba(13,33,55,.5); border:1px solid rgba(255,255,255,.18);
  border-radius:16px; padding:5px 12px; }

.cv-stage{ position:absolute; inset:60px 20px 22px; display:flex; align-items:center;
  justify-content:center; overflow:hidden; }
.cv-img{ max-width:100%; max-height:100%; cursor:grab; user-select:none; -webkit-user-drag:none;
  transform-origin:center center; will-change:transform; border-radius:8px; background:#fff;
  box-shadow:0 24px 64px rgba(0,0,0,.55); }
.cv-img:active{ cursor:grabbing; }
.cv-plot{ width:min(1240px,96vw); height:min(82vh,920px); background:#fff; border-radius:12px;
  padding:12px 14px; box-shadow:0 24px 64px rgba(0,0,0,.55); }
.cv-plot .js-plotly-plot,
.cv-plot .dash-graph{ width:100% !important; height:100% !important; }

/* icon-only expand control in the corner — maroon button, yellow icon */
.cv-view{ position:absolute; top:6px; right:6px; z-index:6; width:27px; height:27px; padding:0;
  display:inline-flex; align-items:center; justify-content:center; font-size:14px; line-height:1;
  color:#FFC627; background:#8C1D40; border:1px solid #8C1D40;
  border-radius:7px; cursor:pointer; box-shadow:0 1px 5px rgba(13,33,55,.28);
  opacity:.95; transition:opacity .15s, background .15s, transform .12s, box-shadow .15s; }
.cv-view .bi{ font-size:14px; }
.cv-view:hover{ opacity:1; background:#6d1531; transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(140,29,64,.4); }

@media (max-width:600px){
  .cv-hint{ display:none; }
  .cv-stage{ inset:56px 8px 12px; }
  .cv-view{ width:25px; height:25px; font-size:13px; }
}
