#factory-data-shell{position:absolute;left:50%;top:64px;transform:translateX(-50%);z-index:45;background:#fff;border:1px solid #e6e3e0;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 3px 8px #24242406,0 16px 42px #2424240c;overflow:hidden;isolation:isolate}
#factory-data-shell .data-handle{position:relative;left:auto;top:auto;transform:none;margin:auto;border:0;border-radius:0;box-shadow:none;white-space:nowrap;opacity:1;cursor:pointer;height:43px}
#factory-data-shell[data-open=true] .chevron{transform:rotate(180deg)}
#factory-data-shell .chevron{transition:transform .3s ease}
#factory-data-shell[data-hover=true]:after{content:'';position:absolute;top:0;left:0;height:2px;background:var(--accent);width:100%;transform-origin:left;animation:fd-hover 1s linear}
@keyframes fd-hover{from{transform:scaleX(0)}to{transform:scaleX(1)}}
#factory-data-panel{position:absolute;left:0;padding:22px 26px 26px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#fff;color:#333;scrollbar-gutter:stable;border-top:1px solid #eeece9}
#factory-data-panel[hidden]{display:none}
.fd-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.fd-heading small{font-size:10px;letter-spacing:1.4px;color:var(--accent)}.fd-heading h2{margin:7px 0;font-size:23px}.fd-heading p,.fd-note{font-size:12px;color:#827c77;line-height:1.7;margin:7px 0 16px}.fd-heading button{border:0;background:transparent;font-size:25px;color:#777;cursor:pointer;width:36px;height:36px}
.fd-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}.fd-toolbar label{font-size:12px;color:#777;display:flex;align-items:center;gap:8px}.fd-toolbar select,.fd-toolbar button{font:inherit;font-size:12px;border:1px solid #dfdcd8;border-radius:6px;background:white;color:#3d3834;padding:8px 10px}.fd-toolbar button{margin-left:auto;color:var(--accent);cursor:pointer}.fd-toolbar button:disabled{opacity:.4;cursor:default}
#factory-data-content h3{font-size:14px;margin:18px 0 12px}#factory-data-content h3 small{font-size:11px;color:#8b837c;font-weight:400;margin-left:10px}.fd-table{overflow:auto;border:1px solid #e8e4e0;border-radius:8px;max-height:260px}.fd-table table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;text-align:left;font-variant-numeric:tabular-nums}.fd-table th{position:sticky;top:0;background:#f8f7f5;color:#80756c;font-weight:500}.fd-table td,.fd-table th{padding:11px 14px;border-bottom:1px solid #eee9e5}.fd-table tr:last-child td{border-bottom:0}.fd-charts{display:grid;grid-template-columns:1fr 1fr;gap:20px}.fd-chart{min-width:0}.fd-chart svg{width:100%;display:block}.fd-chart text{font-size:11px;fill:#999087}.fd-legend{display:flex;gap:20px;margin-top:20px;font-size:11px;color:#777}.fd-legend span:before{content:'';display:inline-block;width:18px;height:3px;margin-right:6px;vertical-align:middle;background:var(--series)}.fd-empty{text-align:center;padding:45px 15px;color:#777;font-size:13px}.fd-empty strong{color:#514840}.fd-empty p{line-height:1.8}#factory-data-panel button:focus-visible,#factory-data-panel select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1400px){#factory-data-shell{top:58px}#factory-data-shell .data-handle{height:40px}}
@media(max-width:700px){#factory-data-shell{top:54px}#factory-data-shell .data-handle{height:35px}#factory-data-panel{padding:16px}.fd-heading h2{font-size:19px}.fd-toolbar{gap:10px}.fd-toolbar label{flex-wrap:wrap}.fd-charts{grid-template-columns:1fr}.fd-toolbar button{margin-left:0}#factory-data-content h3 small{display:block;margin:5px 0 0}.fd-table td,.fd-table th{padding:10px}.fd-heading p{font-size:11px}}
@media(prefers-reduced-motion:reduce){#factory-data-shell .chevron{transition:none}#factory-data-shell:after{animation:none}}

/* Keep chart scale and type consistent on large monitors. */
#factory-data-panel{padding:16px 22px 20px}
.fd-heading h2{font-size:20px;margin:5px 0}.fd-heading p{margin:5px 0 10px}
.fd-toolbar{padding:9px 0}.fd-note{margin:8px 0 10px}
.fd-charts{gap:16px}.fd-chart{padding:0 12px 8px;border:1px solid #eee9e5;border-radius:8px;background:#fdfcfb}
.fd-chart svg{height:150px;max-height:150px}.fd-legend{margin:12px 0 8px}
#factory-data-content h3{margin:12px 0 9px}.fd-table td,.fd-table th{padding:9px 12px}
@media(max-width:700px){#factory-data-panel{padding:14px}.fd-chart svg{height:auto;max-height:150px}.fd-chart{padding:0 6px 6px}}

.fd-strategy{font-size:12px;font-weight:600;color:var(--accent);line-height:1.6}
.fd-pdf-host{position:absolute;left:-12000px;top:0;width:1000px;pointer-events:none;color:#333;background:#fff;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;--accent:#ae3c25}
.fd-pdf-page{position:relative;width:1000px;height:1414.28px;padding:42px;box-sizing:border-box;background:#fff;overflow:hidden}
.fd-pdf-page .fd-heading{border-bottom:1px solid #e8e4e0;margin-bottom:14px;padding-bottom:10px}.fd-pdf-page .fd-heading h2{font-size:24px}.fd-pdf-page .fd-heading p{font-size:13px}.fd-pdf-page .fd-note{font-size:12px;margin:10px 0 18px}
.fd-pdf-content h3{font-size:15px;margin:20px 0 12px}.fd-pdf-content h3 small{font-size:11px;color:#8b837c;font-weight:400;margin-left:10px}.fd-pdf-page .fd-charts{display:flex;gap:16px}.fd-pdf-page .fd-chart{width:450px;box-sizing:border-box;padding:0 10px 10px}.fd-pdf-page .fd-chart svg{width:100%;height:150px}.fd-pdf-page .fd-table{max-height:none;overflow:visible;border-radius:6px}.fd-pdf-page .fd-table th{position:static}.fd-pdf-page .fd-table td,.fd-pdf-page .fd-table th{padding:10px 9px;font-size:12px}.fd-pdf-page footer{position:absolute;bottom:30px;left:42px;right:42px;padding-top:12px;border-top:1px solid #e8e4e0;font-size:11px;color:#999}

/* The popup body owns vertical scrolling; tables retain horizontal scrolling. */
#factory-data-panel.lss-tool-results-panel-host .fd-table{max-height:none}
