/* ===== PV Copilot — new liquid-glass UI, scoped under .pvcopilot-root ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* keep the pvtools site chrome (header logos row + gaps) white; the page paints
   its own gradient only on .pvcopilot-root */
html, body { background: #ffffff !important; }

.pvcopilot-root { --pvc-advanced-step-max-height:calc(100vh - 220px); position: relative; overflow: hidden; margin-top: -22px; margin-bottom: -54px; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color: #1c2540; font-size: 15px; line-height: 1.5;
  background: linear-gradient(135deg, #dbe8ff 0%, #eef4fd 42%, #fdf6e3 100%); }
.pvcopilot-root, .pvcopilot-root * { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.pvcopilot-root [style*="monospace"], .pvcopilot-root pre, .pvcopilot-root code { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Use the same height ceiling as the scrollable Advanced Step panel. The extra
   700px is the stable page chrome above/around that panel. The image is rendered
   once at this maximum page height; step content only scrolls inside the panel. */
.pvcopilot-root::before { content:""; position:absolute; top:0; right:0; bottom:auto; left:0;
  height:max(calc(var(--pvc-advanced-step-max-height) + 700px), 100vh); z-index:0; pointer-events:none;
  background-image:url('/assets/pv-array.png'); background-repeat:no-repeat;
  background-position:center center; background-size:cover;
  filter:blur(12px) saturate(1.12); transform:scale(1.04); transform-origin:center top; opacity:0.72; }
.pvcopilot-root::after  { content:""; position: absolute; inset:0; z-index:0; pointer-events:none;
  background: linear-gradient(150deg, rgba(247,250,255,0.72), rgba(238,244,253,0.66) 46%, rgba(255,252,244,0.78)); }
.pvcopilot-root > * { position: relative; z-index: 1; }

.pvcopilot-root a { color: #2f6bff; text-decoration: none; }
.pvcopilot-root ::selection { background: rgba(79,139,255,0.25); }
.pvcopilot-root ::-webkit-scrollbar { width: 10px; height: 10px; }
.pvcopilot-root ::-webkit-scrollbar-thumb { background: rgba(120,140,180,0.4); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
.pvcopilot-root button { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.pvcopilot-root input:focus-visible, .pvcopilot-root button:focus-visible { outline: 2px solid #4f8bff; outline-offset: 2px; }

.pvcopilot-shell { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 26px 16px 30px;
  min-height: calc(100vh - 210px); display: flex; flex-direction: column; justify-content: center; }

/* glass surfaces */
.pvcopilot-root .glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(255,255,255,0.44));
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 14px 44px rgba(30,58,120,0.11), inset 0 1px 0 rgba(255,255,255,0.6);
  border-radius: 28px;
}
.pvcopilot-root .glass-soft { background: rgba(255,255,255,0.42); border: 1px solid rgba(255,255,255,0.7); border-radius: 24px; }

/* nav */
.pvcopilot-root .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.pvcopilot-root .nav-pills { display: flex; align-items: center; justify-content:flex-end; flex-wrap:wrap; gap: 10px; padding: 0; border-radius: 0; background: none; border: none; box-shadow: none; }
.pvcopilot-root .nav-pill { padding: 9px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #374466; cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2));
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 34px rgba(30,58,120,0.09), inset 0 1px 0 rgba(255,255,255,0.5); }
.pvcopilot-root .nav-pill:hover { color: #2f6bff; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(30,58,120,0.15); }
.pvcopilot-root .nav-pill.active { color: #2f6bff; }

/* buttons */
.pvcopilot-root .btn-primary, .pvcopilot-root .btn-run {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #4b8bff, #2f6bff); color: #fff; font-weight: 700; font-size: 14.5px;
  cursor: pointer; box-shadow: 0 10px 26px rgba(47,107,255,0.34); }
.pvcopilot-root .btn-primary:hover, .pvcopilot-root .btn-run:hover { filter: brightness(1.05); }
.pvcopilot-root .btn-run:disabled { filter: grayscale(0.4) opacity(0.6); cursor: not-allowed; box-shadow: none; }

/* animations */
@keyframes pvc-riseIn { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: translateY(0);} }
@keyframes pvc-slideIn { from { opacity: 0; transform: translateX(40px);} to { opacity: 1; transform: translateX(0);} }
@keyframes pvc-pulseDot { 0%,100% { opacity: .35;} 50% { opacity: 1;} }
.pvcopilot-root .rise { animation: pvc-riseIn .45s ease both; }

/* identified-variable mapping chips */
.pvcopilot-root .varmap-chip { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:13px; background: rgba(255,255,255,0.58); border: 1px solid rgba(255,255,255,0.7); }
.pvcopilot-root .pill { font-size:10.5px; font-weight:600; line-height:1; border-radius:980px; padding:3px 8px; white-space:nowrap; }
.pvcopilot-root .pill-note { color:#57606a; background:#f1f3f5; border:1px solid #d7dce0; }
.pvcopilot-root .pill-warn { color:#8a6d00; background:#fff6e0; border:1px solid #f0dfa8; }

/* plotly transparent */
.pvcopilot-root .js-plotly-plot, .pvcopilot-root .plot-container { background: transparent !important; }

/* number inputs */
.pvcopilot-root input.pnum::-webkit-outer-spin-button, .pvcopilot-root input.pnum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pvcopilot-root input.pnum { -moz-appearance: textfield; appearance: textfield; }

/* hide dash undo/redo + legacy page title */
.pvcopilot-root ._dash-undo-redo { display: none; }
.pvcopilot-root .page-title { display: none; }

/* dmc.Select group ("category") titles — the dropdown renders in a body portal,
   so this is intentionally NOT scoped under .pvcopilot-root */
.pvcopilot-var-group { color:#2f6bff !important; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important; font-weight:700 !important; letter-spacing:0.02em; }

/* AI diagnosis markdown */
.pvcopilot-root .pvc-md p { margin: 0 0 8px; }
.pvcopilot-root .pvc-md ul { margin: 4px 0 8px; padding-left: 20px; }
.pvcopilot-root .pvc-md li { margin: 2px 0; }
.pvcopilot-root .pvc-md strong { color: #1c2540; font-weight: 700; }
.pvcopilot-root .pvc-md code { background: rgba(120,140,180,0.15); padding: 1px 5px; border-radius: 5px; }

/* nav pop-up modal */
.pvcopilot-root .pvc-modal-overlay { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center;
  justify-content: center; padding: 40px 20px; background: rgba(20,30,55,0.34); backdrop-filter: blur(6px); animation: pvc-riseIn .25s ease both; }
.pvcopilot-root .pvc-modal { position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 90px); overflow-y: auto;
  border-radius: 24px; padding: 26px 30px 28px;
  background: linear-gradient(150deg, rgba(255,255,255,0.96), rgba(244,248,255,0.94));
  border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 30px 80px rgba(30,58,120,0.3); }
.pvcopilot-root .pvc-modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: none;
  border-radius: 12px; background: rgba(120,140,180,0.14); color: #455172; font-size: 16px; cursor: pointer; }
.pvcopilot-root .pvc-modal-close:hover { background: rgba(120,140,180,0.24); }

/* Team modal */
.pvcopilot-root .pvc-team-modal { max-width:860px; }
.pvcopilot-root .pvc-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pvcopilot-root .pvc-team-card { min-width:0; padding:18px 14px 17px; border-radius:20px; overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.pvcopilot-root .pvc-team-photo { display:block; width:min(100%,150px); aspect-ratio:1 / 1; margin:0 auto; object-fit:cover; border-radius:15px;
  border:1px solid rgba(255,255,255,0.82); box-shadow:0 9px 24px rgba(30,58,120,0.12);
  transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s ease; }
.pvcopilot-root .pvc-team-card:hover { transform:translateY(-3px); box-shadow:0 19px 48px rgba(30,58,120,0.16),inset 0 1px 0 rgba(255,255,255,0.68); }
.pvcopilot-root .pvc-team-card:hover .pvc-team-photo { transform:scale(1.08); box-shadow:0 14px 30px rgba(30,58,120,0.18); }
.pvcopilot-root .pvc-team-copy { padding:14px 4px 0; text-align:center; }
.pvcopilot-root .pvc-team-name { color:#1c2540; font-size:16px; line-height:1.25; font-weight:800; }
.pvcopilot-root .pvc-team-role { min-height:38px; margin-top:5px; color:#2f6bff; font-size:12.5px; line-height:1.45; font-weight:700; }
.pvcopilot-root .pvc-team-org { margin-top:8px; color:#71809e; font-size:10.5px; line-height:1.4; }
@media (max-width:680px) {
  .pvcopilot-root .pvc-team-grid { grid-template-columns:1fr; }
  .pvcopilot-root .pvc-team-card { display:grid; grid-template-columns:110px minmax(0,1fr); gap:14px; align-items:center; }
  .pvcopilot-root .pvc-team-photo { width:100%; }
  .pvcopilot-root .pvc-team-copy { padding:0; text-align:left; }
  .pvcopilot-root .pvc-team-role { min-height:0; }
}

/* Live pipeline monitor */
.pvcopilot-root .pvc-monitor { position:fixed; left:24px; bottom:24px; z-index:42; }
.pvcopilot-root .pvc-monitor-toggle { display:flex; align-items:center; gap:9px; padding:11px 15px; border-radius:14px;
  color:#263454; background:rgba(255,255,255,0.82); backdrop-filter:blur(22px) saturate(1.3);
  -webkit-backdrop-filter:blur(22px) saturate(1.3); border:1px solid rgba(255,255,255,0.9);
  box-shadow:0 12px 34px rgba(30,58,120,0.18); font-size:12.5px; font-weight:750; cursor:pointer; }
.pvcopilot-root .pvc-monitor-dot { width:9px; height:9px; border-radius:50%; background:#9aa7bd; box-shadow:0 0 0 4px rgba(154,167,189,0.14); }
.pvcopilot-root .pvc-monitor-dot.is-running { background:#2f6bff; box-shadow:0 0 0 4px rgba(47,107,255,0.16); animation:pvc-pulseDot 1.1s ease-in-out infinite; }
.pvcopilot-root .pvc-monitor-dot.is-done { background:#18a36f; box-shadow:0 0 0 4px rgba(24,163,111,0.14); }
.pvcopilot-root .pvc-monitor-dot.is-error { background:#cf3f4d; box-shadow:0 0 0 4px rgba(207,63,77,0.14); }
.pvcopilot-root .pvc-monitor-panel { display:none; position:absolute; left:0; bottom:52px; width:min(560px,calc(100vw - 48px));
  height:min(500px,calc(100vh - 150px)); min-width:340px; min-height:240px;
  max-width:calc(100vw - 16px); max-height:calc(100vh - 90px); overflow:hidden; resize:none; box-sizing:border-box; border-radius:22px;
  background:linear-gradient(150deg,rgba(255,255,255,0.94),rgba(240,247,255,0.88));
  backdrop-filter:blur(30px) saturate(1.35); -webkit-backdrop-filter:blur(30px) saturate(1.35);
  border:1px solid rgba(255,255,255,0.92); box-shadow:0 28px 76px rgba(30,58,120,0.27); }
.pvcopilot-root .pvc-monitor-panel.is-open { display:flex; flex-direction:column; animation:pvc-riseIn .2s ease both; }
.pvcopilot-root .pvc-monitor-resize-grip { position:absolute; right:5px; bottom:5px; width:25px; height:25px;
  z-index:4; cursor:nwse-resize; border-radius:8px; touch-action:none; background:rgba(255,255,255,0.34); }
.pvcopilot-root .pvc-monitor-resize-grip::before,.pvcopilot-root .pvc-monitor-resize-grip::after {
  content:''; position:absolute; right:5px; bottom:6px; height:2px; border-radius:2px; background:#8291ad; transform:rotate(-45deg); transform-origin:right center; }
.pvcopilot-root .pvc-monitor-resize-grip::before { width:15px; }
.pvcopilot-root .pvc-monitor-resize-grip::after { width:9px; right:5px; bottom:11px; }
.pvcopilot-root .pvc-monitor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 18px 14px;
  border-bottom:1px solid rgba(120,140,180,0.17); cursor:grab; user-select:none; touch-action:none; }
.pvcopilot-root .pvc-monitor-head:active { cursor:grabbing; }
.pvcopilot-root .pvc-monitor-titleline { display:flex; align-items:center; gap:9px; }
.pvcopilot-root .pvc-monitor-title { color:#1c2540; font-size:15px; font-weight:800; }
.pvcopilot-root .pvc-monitor-move-hint { display:inline-flex; align-items:center; padding:3px 7px; border-radius:980px;
  color:#637391; background:rgba(120,140,180,0.11); font-size:8.5px; line-height:1; font-weight:750;
  letter-spacing:.03em; cursor:move; pointer-events:none; }
.pvcopilot-root .pvc-monitor-subtitle { margin-top:2px; color:#7b89a5; font-size:10.5px; }
.pvcopilot-root .pvc-monitor-close { width:31px; height:31px; padding:0; border:0; border-radius:10px; color:#53617e;
  background:rgba(120,140,180,0.12); font-size:20px; line-height:29px; cursor:pointer; }
.pvcopilot-root .pvc-monitor-actions { display:flex; align-items:center; gap:7px; }
.pvcopilot-root .pvc-monitor-copy { height:31px; padding:0 11px; border:0; border-radius:10px; color:#415274;
  background:rgba(120,140,180,0.12); font-size:10.5px; font-weight:750; cursor:pointer; }
.pvcopilot-root .pvc-monitor-copy:hover,.pvcopilot-root .pvc-monitor-minimize:hover,.pvcopilot-root .pvc-monitor-close:hover {
  color:#2f6bff; background:rgba(47,107,255,0.11); }
.pvcopilot-root .pvc-monitor-minimize { width:31px; height:31px; padding:0; border:0; border-radius:10px; color:#53617e;
  background:rgba(120,140,180,0.12); font-size:20px; line-height:27px; cursor:pointer; }
.pvcopilot-root .pvc-monitor-body { flex:1; min-height:0; display:flex; flex-direction:column; overflow-y:auto; padding:10px 12px 12px; }
.pvcopilot-root .pvc-monitor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.pvcopilot-root .pvc-monitor-idle-summary { grid-column:1/-1; padding:10px 12px; border-radius:12px;
  color:#71809e; background:rgba(255,255,255,0.48); border:1px solid rgba(255,255,255,0.78); font-size:11.5px; }
.pvcopilot-root .pvc-monitor-row { padding:10px 11px; margin-bottom:7px; border-radius:13px; background:rgba(255,255,255,0.58);
  border:1px solid rgba(255,255,255,0.82); }
.pvcopilot-root .pvc-monitor-rowtop { display:flex; align-items:center; gap:8px; }
.pvcopilot-root .pvc-monitor-statusdot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#9aa7bd; }
.pvcopilot-root .pvc-monitor-row.is-running .pvc-monitor-statusdot { background:#2f6bff; animation:pvc-pulseDot 1.1s ease-in-out infinite; }
.pvcopilot-root .pvc-monitor-row.is-done .pvc-monitor-statusdot { background:#18a36f; }
.pvcopilot-root .pvc-monitor-row.is-error .pvc-monitor-statusdot { background:#cf3f4d; }
.pvcopilot-root .pvc-monitor-row.is-locked { opacity:.62; }
.pvcopilot-root .pvc-monitor-label { flex:1; color:#263454; font-size:12px; font-weight:750; }
.pvcopilot-root .pvc-monitor-badge { padding:3px 6px; border-radius:980px; color:#71809e; background:rgba(120,140,180,0.1);
  font-size:8.5px; line-height:1; font-weight:800; letter-spacing:.05em; }
.pvcopilot-root .pvc-monitor-row.is-running .pvc-monitor-badge { color:#2f6bff; background:rgba(47,107,255,0.1); }
.pvcopilot-root .pvc-monitor-row.is-done .pvc-monitor-badge { color:#15835e; background:rgba(24,163,111,0.1); }
.pvcopilot-root .pvc-monitor-row.is-error .pvc-monitor-badge { color:#b52f3d; background:rgba(207,63,77,0.1); }
.pvcopilot-root .pvc-monitor-message { margin:5px 0 0 16px; color:#657391; font-size:10.8px; line-height:1.4; }
.pvcopilot-root .pvc-monitor-track { height:4px; margin:8px 0 0 16px; overflow:hidden; border-radius:99px; background:rgba(120,140,180,0.15); }
.pvcopilot-root .pvc-monitor-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,#5b96ff,#2f6bff); transition:width .25s ease; }
.pvcopilot-root .pvc-monitor-meta { margin:5px 0 0 16px; color:#8a97b0; font-family:'JetBrains Mono',monospace !important; font-size:8.8px; line-height:1.35; }
.pvcopilot-root .pvc-monitor-error { margin:6px 0 0 16px; color:#b52f3d; font-size:9.5px; line-height:1.4; overflow-wrap:anywhere; }
.pvcopilot-root .pvc-monitor-warning { margin:2px 0 9px; padding:11px 12px; border-radius:13px; color:#8e2632;
  background:rgba(207,63,77,0.1); border:1px solid rgba(207,63,77,0.2); font-size:10.5px; line-height:1.45; }
.pvcopilot-root .pvc-monitor-warning b { display:block; margin-bottom:3px; }
.pvcopilot-root .pvc-monitor-warning code { display:block; margin-top:5px; color:#8e2632; background:rgba(255,255,255,0.48);
  padding:5px 6px; border-radius:7px; font-size:8.5px; white-space:normal; overflow-wrap:anywhere; }
.pvcopilot-root .pvc-monitor-footer { padding:6px 3px 2px; color:#94a0b6; text-align:center; font-family:'JetBrains Mono',monospace !important; font-size:8.5px; }
.pvcopilot-root .pvc-log-section { flex:1; min-height:0; display:flex; flex-direction:column; margin-top:12px; padding-top:11px; border-top:1px solid rgba(120,140,180,0.2); }
.pvcopilot-root .pvc-log-heading { display:flex; justify-content:space-between; align-items:center; padding:0 3px 7px;
  color:#64728f; font-size:9px; line-height:1; font-weight:800; letter-spacing:.08em; }
.pvcopilot-root .pvc-log-heading span:last-child { color:#95a1b7; font-weight:600; letter-spacing:0; }
.pvcopilot-root .pvc-log-console { flex:1; min-height:160px; overflow:auto; padding:10px 11px; border-radius:12px;
  background:rgba(18,28,50,0.94); border:1px solid rgba(255,255,255,0.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05); scroll-behavior:smooth; }
.pvcopilot-root .pvc-log-line { position:relative; padding:4px 0 5px 12px; color:#c8d5ed;
  font-family:'JetBrains Mono',monospace !important; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.pvcopilot-root .pvc-log-line::before { content:''; position:absolute; left:0; top:7px; width:5px; height:5px;
  border-radius:50%; background:#71809e; }
.pvcopilot-root .pvc-log-line.is-running::before { background:#6da2ff; }
.pvcopilot-root .pvc-log-line.is-done::before { background:#43c894; }
.pvcopilot-root .pvc-log-line.is-error::before { background:#ff7180; }
.pvcopilot-root .pvc-log-meta { display:inline-block; min-width:245px; margin-right:9px; color:#8fa0c0; }
.pvcopilot-root .pvc-log-message { color:#d8e2f4; }
.pvcopilot-root .pvc-log-line.is-error .pvc-log-message { color:#ff9aa5; }
.pvcopilot-root .pvc-log-detail { margin:5px 0 3px; padding:7px 8px; max-height:130px; overflow:auto; white-space:pre-wrap;
  border-radius:8px; color:#ffc0c7; background:rgba(207,63,77,0.12); font:inherit; }
.pvcopilot-root .pvc-log-empty { color:#8291ad; font-family:'JetBrains Mono',monospace !important; font-size:9px; }
@media (max-width:620px) {
  .pvcopilot-root .pvc-monitor { left:14px; bottom:14px; }
  .pvcopilot-root .pvc-monitor-panel { width:calc(100vw - 28px); min-width:280px; }
  .pvcopilot-root .pvc-monitor-grid { grid-template-columns:1fr; }
}

/* Data requirements: three signal tiers first, then one compact file checklist. */
.pvcopilot-root .pvc-datareq-modal { max-width:900px; padding:30px 32px 28px;
  background:linear-gradient(150deg,rgba(255,255,255,0.92),rgba(248,251,255,0.84));
  backdrop-filter:blur(26px) saturate(1.24); -webkit-backdrop-filter:blur(26px) saturate(1.24);
  border:1px solid rgba(255,255,255,0.78); box-shadow:0 30px 80px rgba(30,58,120,0.24),inset 0 1px 0 rgba(255,255,255,0.64); }
.pvcopilot-root .pvc-datareq-section { margin-bottom:18px; }
.pvcopilot-root .pvc-datareq-section-head { display:flex; align-items:baseline; gap:12px; margin:0 2px 10px; }
.pvcopilot-root .pvc-datareq-section-title { flex:0 0 auto; color:#1c2540; font-size:14px; font-weight:800; }
.pvcopilot-root .pvc-datareq-section-description { color:#71809e; font-size:11.5px; line-height:1.4; }
.pvcopilot-root .pvc-datareq-signal-surface { padding:16px; border-radius:20px;
  background:linear-gradient(135deg,rgba(79,139,255,0.13),rgba(210,229,255,0.22) 48%,rgba(255,228,169,0.14));
  border:1px solid rgba(255,255,255,0.82); box-shadow:0 14px 34px rgba(30,58,120,0.09),inset 0 1px 0 rgba(255,255,255,0.68); }
.pvcopilot-root .pvc-datareq-grid { display:grid; grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr);
  gap:8px; align-items:stretch; }
.pvcopilot-root .pvc-datareq-card { position: relative; min-width: 0; padding: 17px 17px 16px; border-radius: 18px;
  overflow:hidden; background:linear-gradient(135deg,rgba(255,255,255,0.76),rgba(248,251,255,0.56));
  backdrop-filter:blur(18px) saturate(1.22); -webkit-backdrop-filter:blur(18px) saturate(1.22);
  border:1px solid rgba(255,255,255,0.88); box-shadow:0 10px 24px rgba(30,58,120,0.075),inset 0 1px 0 rgba(255,255,255,0.7); }
.pvcopilot-root .pvc-datareq-plus { display:flex; align-items:center; justify-content:center; align-self:center; width:26px; height:26px;
  border-radius:50%; color:#7183a8; background:rgba(255,255,255,0.72); border:1px solid rgba(160,181,218,0.42);
  font-size:18px; line-height:1; font-weight:500; }
.pvcopilot-root .pvc-datareq-card-head { display:flex; align-items:center; justify-content:flex-start; gap:8px; margin-bottom:13px; }
.pvcopilot-root .pvc-datareq-level { padding:4px 8px; border-radius:980px; color:var(--req-accent); background:var(--req-tint);
  font-size:9.5px; line-height:1; font-weight:800; letter-spacing:.045em; white-space:nowrap; }
.pvcopilot-root .pvc-datareq-title { margin-bottom:10px; color:#1c2540; font-size:15px; line-height:1.25; font-weight:800; }
.pvcopilot-root .pvc-datareq-fields { display:flex; flex-wrap:wrap; gap:6px; min-height:29px; margin-bottom:11px; }
.pvcopilot-root .pvc-datareq-field { padding:5px 9px; border-radius:9px; color:#4f5f80; background:rgba(255,255,255,0.82);
  border:1px solid rgba(160,181,218,0.46); font-size:11.5px; line-height:1.2; font-weight:700; }
.pvcopilot-root .pvc-datareq-description { margin:0; color:#5a6784; font-size:11.8px; line-height:1.48; }
.pvcopilot-root .pvc-datareq-file { padding:16px 18px 17px; border-radius:18px;
  background:linear-gradient(135deg,rgba(79,139,255,0.12),rgba(215,232,255,0.24) 55%,rgba(255,255,255,0.22));
  border:1px solid rgba(255,255,255,0.82); box-shadow:0 14px 34px rgba(30,58,120,0.085),inset 0 1px 0 rgba(255,255,255,0.68); }
.pvcopilot-root .pvc-datareq-file-head { display:flex; align-items:baseline; gap:12px; margin-bottom:13px; }
.pvcopilot-root .pvc-datareq-file-kicker { color:#2f6bff; font-size:10px; font-weight:800; letter-spacing:.08em; white-space:nowrap; }
.pvcopilot-root .pvc-datareq-file-title { color:#1c2540; font-size:13.5px; font-weight:750; }
.pvcopilot-root .pvc-datareq-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pvcopilot-root .pvc-datareq-check { min-width:0; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,0.68);
  backdrop-filter:blur(16px) saturate(1.18); -webkit-backdrop-filter:blur(16px) saturate(1.18);
  border:1px solid rgba(255,255,255,0.88); box-shadow:0 7px 18px rgba(30,58,120,0.055),inset 0 1px 0 rgba(255,255,255,0.66); }
.pvcopilot-root .pvc-datareq-check-label { margin-bottom:3px; color:#6c7ea8; font-size:9.5px; font-weight:800; letter-spacing:.07em; }
.pvcopilot-root .pvc-datareq-check-value { color:#1c2540; font-size:13px; line-height:1.25; font-weight:800; }
.pvcopilot-root .pvc-datareq-check-note { margin-top:3px; color:#8090ad; font-size:10.5px; line-height:1.3; }
.pvcopilot-root .pvc-datareq-note { display:flex; align-items:flex-start; gap:9px; margin-top:12px; padding:0 3px;
  color:#5a6784; font-size:11.5px; line-height:1.45; }
.pvcopilot-root .pvc-datareq-note-icon { flex:0 0 auto; color:#2f6bff; font-size:14px; line-height:1.2; }
@media (max-width:760px) {
  .pvcopilot-root .pvc-datareq-modal { padding:24px 20px 22px; }
  .pvcopilot-root .pvc-datareq-signal-surface { padding:12px; }
  .pvcopilot-root .pvc-datareq-grid { grid-template-columns:1fr; }
  .pvcopilot-root .pvc-datareq-plus { margin:0 auto; }
  .pvcopilot-root .pvc-datareq-section-head { display:block; }
  .pvcopilot-root .pvc-datareq-section-description { margin-top:3px; }
  .pvcopilot-root .pvc-datareq-check-grid { grid-template-columns:1fr; }
  .pvcopilot-root .pvc-datareq-file-head { display:block; }
  .pvcopilot-root .pvc-datareq-file-title { margin-top:4px; }
}

/* universal hover feedback on buttons + selectable cards */
.pvcopilot-root button { transition: box-shadow .14s ease, transform .12s ease, background .15s ease, filter .12s ease, border-color .12s ease; }
.pvcopilot-root button:hover { box-shadow: 0 6px 18px rgba(30,58,120,0.14); }
.pvcopilot-root button:active { transform: translateY(1px); }
.pvcopilot-root .nav-pill:hover { background: rgba(79,139,255,0.14); color: #2f6bff; }
.pvcopilot-root .btn-run:hover, .pvcopilot-root .btn-primary:hover { transform: translateY(-1px); }
.pvcopilot-root .glass-soft:hover, .pvcopilot-root .varmap-chip { transition: box-shadow .14s ease; }
/* dmc select + dropdown hover */
.pvcopilot-root .mantine-Select-input:hover { border-color: rgba(79,139,255,0.6) !important; }

/* data-load spinner accent */
.pvcopilot-root ._dash-loading, .pvcopilot-root .dash-spinner * { color: #2f6bff !important; }

/* upload arrow hover zoom */
.pvcopilot-root .pvc-up-icon { transition: transform .2s ease; }
.pvcopilot-root .pvc-upload:hover .pvc-up-icon { transform: scale(1.12) translateY(-2px); }

/* Local busy overlays: every mask is clipped to the smallest result/input host. */
.pvcopilot-root .pvc-busy-host,
.pvcopilot-root .pvc-upload-host { position: relative; min-width: 0; }
.pvcopilot-root .pvc-upload-host { min-height: 230px; align-self: stretch; overflow: hidden; border-radius: 22px; }
.pvcopilot-root .pvc-upload-host > #upload-data {
  position: absolute !important; inset: 0 !important; display: flex !important;
  width: auto !important; height: auto !important; min-height: 0 !important; box-sizing: border-box;
}
.pvcopilot-root .pvc-upload-host > #upload-data > .pvc-upload {
  display: flex !important; width: 100% !important; height: 100% !important;
  min-height: 0 !important; box-sizing: border-box;
}
.pvcopilot-root .pvc-upload-host > #upload-data > .pvc-upload > div { width: 100%; height: 100%; min-height: 0; }
.pvcopilot-root .pvc-panel-busy-host { position: relative; min-width: 0; border-radius: 24px; overflow: hidden; }
.pvcopilot-root .pvc-panel-busy-host > .glass-soft { width: 100%; }
.pvcopilot-root .pvc-panel-busy-host > .pvc-busy { border-radius: 24px; }
.pvcopilot-root .pvc-busy { position: absolute; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; background: rgba(238,244,253,0.62); backdrop-filter: blur(4px); border-radius: 28px; }
.pvcopilot-root .pvc-busy.show { display: flex; }
.pvcopilot-root .pvc-upload-busy { border-radius: 22px; }
.pvcopilot-root .pvc-busy-text { font-size: 15px; font-weight: 700; color: #1c2540; }
.pvcopilot-root .pvc-busy-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px;
  padding: 0; border: 1px solid rgba(120,140,180,0.28); border-radius: 11px; background: rgba(255,255,255,0.82);
  color: #455172; font-size: 24px; font-weight: 400; line-height: 30px; cursor: pointer;
  box-shadow: 0 5px 16px rgba(30,58,120,0.12); }
.pvcopilot-root .pvc-busy-close:hover { color: #b42318; background: rgba(255,255,255,0.96); border-color: rgba(180,70,70,0.35); }
.pvcopilot-root .pvc-spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid rgba(79,139,255,0.25);
  border-top-color: #2f6bff; animation: pvc-spin .8s linear infinite; }
@keyframes pvc-spin { to { transform: rotate(360deg); } }

/* whole selectable block hover (methods/filters) */
.pvcopilot-root .pvc-sel-block { transition: box-shadow .14s ease, transform .12s ease, border-color .14s ease; }
.pvcopilot-root .pvc-sel-block:hover { box-shadow: 0 8px 22px rgba(30,58,120,0.13); transform: translateY(-1px); border-color: rgba(79,139,255,0.5); }
.pvcopilot-root .pvc-sel-block button:hover { box-shadow: none; }

/* controlled "fold" bar used to tuck away a step's settings once its result is
   shown (Step 2 filters, Step 3 metric selection). State lives in app-state, so
   a re-run can force it back to folded. */
.pvcopilot-root .pvc-foldbar { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 13px 18px; border: 1px solid rgba(120,140,180,0.28); border-radius: 14px; background: rgba(255,255,255,0.5);
  font-size: 13px; font-weight: 700; color: #374466; cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease; }
.pvcopilot-root .pvc-foldbar:hover { color: #2f6bff; background: rgba(79,139,255,0.07); border-color: rgba(79,139,255,0.4); box-shadow: none; }
.pvcopilot-root .pvc-foldbar .pvc-chev { font-size: 12px; color: #8090ad; transition: color .14s ease; }
.pvcopilot-root .pvc-foldbar:hover .pvc-chev { color: #2f6bff; }

/* PVPRO parameter pills (Advanced mode) — short name shown, full name on hover.
   The tooltip uses the button's data-full attribute and sits BELOW the pill so
   it never gets clipped by the card above it. */
.pvcopilot-root .pvc-pvpro-pill { position: relative; transition: box-shadow .14s ease, transform .12s ease, background .15s ease, border-color .12s ease; }
.pvcopilot-root .pvc-pvpro-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,58,120,0.16); border-color: rgba(79,139,255,0.55); }
.pvcopilot-root .pvc-pvpro-pill::after {
  content: attr(data-full); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-3px);
  padding: 6px 11px; border-radius: 9px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: 0.01em;
  color: #eef4ff; background: rgba(24,34,60,0.94); box-shadow: 0 8px 22px rgba(20,30,55,0.28);
  opacity: 0; pointer-events: none; z-index: 40; transition: opacity .13s ease, transform .13s ease; }
.pvcopilot-root .pvc-pvpro-pill::before {
  content: ""; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: rgba(24,34,60,0.94);
  opacity: 0; pointer-events: none; z-index: 40; transition: opacity .13s ease; }
.pvcopilot-root .pvc-pvpro-pill:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.pvcopilot-root .pvc-pvpro-pill:hover::before { opacity: 1; }

/* Technology dropdown matched to the number inputs */
.pvcopilot-root .pvc-dd .Select-control,
.pvcopilot-root .pvc-dd .Select__control {
  border: 1px solid rgba(120,140,180,0.4) !important; border-radius: 10px !important;
  background: rgba(255,255,255,0.7) !important; min-height: 38px !important; box-shadow: none !important; font-size: 13px; }
.pvcopilot-root .pvc-dd .Select__control--is-focused { border-color: #4f8bff !important; }
.pvcopilot-root .pvc-dd .Select-value, .pvcopilot-root .pvc-dd .Select__single-value { color: #1c2540 !important; }
