:root{
  --ink:#3b3028;--muted:#6f5f4a;--green:#24734f;--teal:#8a624a;--mint:#f4e6c8;
  --pale:#fbf5e8;--line:#dcc9a3;--amber:#b0824f;--amber-bg:#f4e6c8;--red:#c7473f;
  --red-bg:#f8e0d7;--blue:#4f76a8;--white:#fffdf8;--shadow:0 12px 32px rgba(111,95,74,.14);
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei UI","PingFang SC","Segoe UI",sans-serif;color:var(--ink);background:#f4e6c8;font-size:15px}
button,select,input{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;background:#6f5f4a;color:#fff;padding:24px 18px;display:flex;flex-direction:column;z-index:3}
.brand{display:flex;gap:12px;align-items:center;padding:0 4px 24px;border-bottom:1px solid rgba(255,255,255,.13)}
.brand-mark{width:44px;height:44px;border-radius:13px;background:#dcc9a3;color:#4b382c;display:grid;place-items:center;font-size:22px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.brand strong{display:block;font-size:17px}.brand span{display:block;color:#a9c8bc;font-size:11px;margin-top:4px;letter-spacing:.08em}
nav{display:grid;gap:7px;margin-top:24px}nav button{border:0;color:#f4e6c8;background:transparent;border-radius:12px;text-align:left;padding:12px 13px;cursor:pointer;font-weight:700;display:flex;align-items:center;gap:11px;transition:.18s;font-size:15px}
nav button span{font-size:11px;color:#dcc9a3;letter-spacing:.1em}nav button:hover{background:rgba(244,230,200,.14);color:#fff}nav button.active{background:#f4e6c8;color:#5d4939;box-shadow:0 5px 16px rgba(49,34,25,.18)}nav button.active span{color:#8a624a}
.sidebar-note{margin-top:auto;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:14px}.sidebar-note b{font-size:13px;color:#f4cf7a}.sidebar-note p{font-size:11px;line-height:1.7;color:#b9d2c9;margin:8px 0 0}.sidebar-foot{font-size:10px;color:#719c8e;padding:16px 4px 0;line-height:1.55}
.main{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;padding:23px 30px 18px;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.eyebrow{margin:0 0 4px;color:var(--teal);font-size:10px;letter-spacing:.18em;font-weight:800}.topbar h1{font-size:24px;margin:0;letter-spacing:-.02em}.topbar p:last-child{margin:5px 0 0;color:var(--muted);font-size:12px}
.top-actions{display:flex;align-items:center;gap:12px}.health{font-size:12px;color:var(--green);background:var(--mint);padding:8px 11px;border-radius:999px}.health i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#24a66e;margin-right:6px;box-shadow:0 0 0 3px rgba(36,166,110,.14)}
.ghost-button,.text-button{border:1px solid var(--line);background:#fff;color:var(--green);padding:8px 12px;border-radius:9px;cursor:pointer;font-weight:700;font-size:12px}.ghost-button:hover{border-color:var(--teal);box-shadow:0 4px 12px rgba(15,90,69,.1)}.text-button{border:0;background:transparent;color:var(--teal);padding-inline:4px}
.filterbar{padding:12px 30px;background:#f9fbfa;border-bottom:1px solid var(--line);display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filterbar label{display:grid;gap:5px;font-size:10px;color:var(--muted);font-weight:700}.filterbar select,.inline-select{min-width:126px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 30px 8px 10px;color:var(--ink);outline:none}.filterbar select:focus,.inline-select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(20,125,112,.1)}
.content{padding:22px 30px 50px;max-width:1700px;margin:0 auto}.loading-card,.error-card,.empty-card{min-height:220px;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;place-items:center;color:var(--muted);box-shadow:var(--shadow)}.spinner{width:22px;height:22px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--teal);animation:spin .8s linear infinite;margin-right:9px}@keyframes spin{to{transform:rotate(360deg)}}
.scope-note{display:flex;align-items:flex-start;gap:9px;background:#edf7f3;border-left:4px solid var(--teal);border-radius:8px;padding:10px 13px;color:#315b4e;font-size:12px;line-height:1.6;margin-bottom:16px}.scope-note::before{content:"i";width:18px;height:18px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-weight:900;font-family:serif;flex:0 0 auto;margin-top:1px}
.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:12px;margin-bottom:16px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px 16px;box-shadow:0 5px 18px rgba(21,67,53,.055);position:relative;overflow:hidden}.kpi-card::after{content:"";position:absolute;width:58px;height:58px;border-radius:50%;right:-24px;top:-25px;background:var(--mint)}.kpi-card label{display:block;color:var(--muted);font-size:11px;font-weight:700}.kpi-card strong{display:block;font-size:26px;margin:8px 0 3px;letter-spacing:-.03em;color:var(--green)}.kpi-card small{color:#8a9691;font-size:10px}.kpi-card.warn strong{color:var(--amber)}.kpi-card.danger strong{color:var(--red)}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-bottom:16px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:13px}.panel-head h2{font-size:15px;margin:0}.panel-head p{font-size:10px;color:var(--muted);margin:4px 0 0;line-height:1.5}.panel-head .inline-select{min-width:150px;padding-block:7px}.section-title{font-size:14px;margin:20px 0 12px;color:var(--green);display:flex;align-items:center;gap:8px}.section-title::before{content:"";width:4px;height:16px;background:var(--teal);border-radius:3px}
.chart{width:100%;min-height:260px}.chart svg{width:100%;height:auto;display:block}.axis-label{font-size:10px;fill:#65746e}.value-label{font-size:10px;fill:#173d31;font-weight:700}.gridline{stroke:#e0e9e5;stroke-width:1}.zero-line{stroke:#7f918a;stroke-width:1.3}.bar-positive{fill:#1c8a76}.bar-negative{fill:#d08a3b}.line-path{fill:none;stroke:#147d70;stroke-width:3}.line-area{fill:url(#areaGradient)}.point{fill:#fff;stroke:#147d70;stroke-width:2}.ci-line{stroke:#496a60;stroke-width:2}.ci-cap{stroke:#496a60;stroke-width:1.4}
.bar-list{display:grid;gap:11px}.bar-row{display:grid;grid-template-columns:minmax(120px,1.35fr) 2fr 56px;gap:10px;align-items:center;font-size:11px}.bar-track{height:8px;background:#eaf1ee;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--teal),#4bb29e);border-radius:99px}.bar-row b{text-align:right;color:var(--green)}
.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px}.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px;white-space:nowrap}.data-table th{position:sticky;top:0;background:#194f40;color:#fff;text-align:left;padding:10px 11px;font-weight:700;z-index:1}.data-table td{padding:9px 11px;border-bottom:1px solid #e7eeeb;color:#273d36}.data-table tbody tr:nth-child(even){background:#f8fbfa}.data-table tbody tr:hover{background:#eaf7f2}.data-table .num{text-align:right;font-variant-numeric:tabular-nums}.data-table .link{color:var(--teal);font-weight:800;cursor:pointer}.data-table .wrap{white-space:normal;min-width:210px;line-height:1.5}.table-note{font-size:10px;color:var(--muted);margin:9px 0 0}
.data-table tbody tr.no-performance{background:#fffaf1}.data-table tbody tr.no-performance td.num{color:#9aa49f}.data-table tbody tr.no-performance:hover{background:#fff3df}
.badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;background:#edf1ef;color:#53645e}.badge.good{background:#dcf5e8;color:#16704f}.badge.clue{background:var(--amber-bg);color:#99530b}.badge.bad{background:var(--red-bg);color:#a52e2e}.badge.info{background:#e6effd;color:#315da7}
.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.mini-stat{border:1px solid var(--line);background:#fbfdfc;border-radius:12px;padding:12px}.mini-stat span{font-size:10px;color:var(--muted)}.mini-stat b{display:block;margin-top:5px;font-size:18px;color:var(--green)}
.explain-box{background:#f4f8f6;border:1px solid var(--line);border-radius:12px;padding:13px;font-size:11px;line-height:1.7;color:#385249}.explain-box strong{color:var(--green)}
.profile-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}.profile-item{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}.profile-item label{font-size:10px;color:var(--muted)}.profile-item strong{display:block;margin-top:6px;color:var(--green);font-size:17px}.profile-item small{color:#8b9893}
.detail-head{background:linear-gradient(110deg,#155743,#1a7d6a);color:#fff;border-radius:18px;padding:20px 22px;display:flex;justify-content:space-between;gap:20px;margin-bottom:16px;box-shadow:var(--shadow)}.detail-head h2{margin:0 0 6px;font-size:22px}.detail-head p{margin:0;color:#c9e5dc;font-size:11px}.detail-meta{display:flex;gap:9px;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end}.detail-meta span{background:rgba(255,255,255,.12);padding:6px 9px;border-radius:8px;font-size:10px}
.selector-panel{display:flex;gap:10px;align-items:end;margin-bottom:14px}.selector-panel label{display:grid;gap:5px;font-size:10px;color:var(--muted)}.selector-panel select{min-width:230px}
.group-tabs{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:16px}.group-tab{border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);cursor:pointer;font-weight:800}.group-tab b{font-size:18px;color:var(--green)}.group-tab:hover{border-color:var(--teal)}.group-tab.active{background:#e3f3ed;border-color:#8cc8b8;color:var(--green);box-shadow:0 4px 14px rgba(15,90,69,.1)}
.group-summary-grid{grid-template-columns:repeat(3,1fr)}.group-summary{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 5px 18px rgba(21,67,53,.055)}.group-summary>div{display:flex;justify-content:space-between;align-items:center}.group-summary>div b{font-size:11px;color:var(--muted)}.group-summary strong{display:inline-block;margin-top:10px;font-size:23px;color:var(--green)}.group-summary small{margin-left:7px;color:var(--muted)}.group-summary.bad strong{color:var(--red)}
.group-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:13px;padding:11px;background:#f5f9f7;border:1px solid var(--line);border-radius:11px}.group-toolbar label{display:grid;gap:5px;font-size:10px;color:var(--muted);font-weight:700}.group-toolbar span{margin-left:auto;color:var(--green);font-size:11px;font-weight:800;padding-bottom:8px}.click-row{cursor:pointer}.click-row:focus{outline:3px solid rgba(20,125,112,.25);outline-offset:-3px}.data-table .emphasis{font-weight:900;color:var(--green)}
.candidate-card{border:1px solid var(--line);border-radius:13px;padding:13px;background:#fff}.candidate-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.candidate-card h3{font-size:13px;margin:0}.candidate-card .coef{font-size:22px;font-weight:900;color:var(--teal);margin:12px 0 4px}.candidate-card p{font-size:10px;color:var(--muted);line-height:1.6;margin:0}
.content>.panel{margin-bottom:16px}.quant-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:9px}.quant-feature{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);background:#f8fbfa;border-radius:10px;padding:10px 12px;color:var(--green);font-size:11px;font-weight:800;text-align:left;cursor:pointer}.quant-feature:hover{border-color:var(--teal);background:#e9f6f1;box-shadow:0 4px 12px rgba(15,90,69,.08)}.quant-feature small{color:var(--muted);font-weight:600;white-space:nowrap}.scatter-link{border:0;background:transparent;color:var(--teal);font-weight:900;padding:0;cursor:pointer;text-align:left;white-space:nowrap}.scatter-link span{margin-left:6px;padding:2px 5px;border-radius:6px;background:#e1f2ed;color:#267263;font-size:8px}.scatter-link:hover{text-decoration:underline}
.modal-overlay{position:fixed;inset:0;background:rgba(5,28,22,.67);backdrop-filter:blur(5px);display:grid;place-items:center;padding:24px;z-index:50;opacity:0;visibility:hidden;transition:.18s}.modal-overlay.show{opacity:1;visibility:visible}.modal-card{width:min(1120px,96vw);max-height:92vh;overflow:auto;background:#f7faf9;border:1px solid rgba(255,255,255,.35);border-radius:19px;padding:20px;box-shadow:0 28px 80px rgba(0,0,0,.3)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:13px}.modal-head h2{margin:0;font-size:21px}.modal-head p:last-child{margin:5px 0 0;color:var(--muted);font-size:11px}.modal-close{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:25px;line-height:1;color:var(--green);cursor:pointer;flex:0 0 auto}.modal-close:hover{border-color:var(--teal);background:var(--mint)}.metric-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}.metric-tab{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:7px 12px;font-size:10px;font-weight:800;cursor:pointer}.metric-tab.active{background:var(--green);border-color:var(--green);color:#fff}.scatter-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:12px}.scatter-stats>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px 12px}.scatter-stats span,.scatter-stats small{display:block;color:var(--muted);font-size:9px}.scatter-stats b{display:block;color:var(--green);font-size:18px;margin-top:5px}.scatter-stats small{margin-top:3px}.scatter-chart{background:#fff;border:1px solid var(--line);border-radius:13px;padding:8px}.scatter-chart svg{width:100%;height:auto;display:block}.axis-line{stroke:#637770;stroke-width:1.2}.axis-title{font-size:11px;fill:#344a43;font-weight:700}.trend-line{stroke:#1e352e;stroke-width:2;stroke-dasharray:7 5;opacity:.65}.scatter-point{opacity:.78;cursor:pointer;transition:r .12s,opacity .12s}.scatter-point:hover{opacity:1;r:6.2px}.scatter-legend{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin:10px 0 14px;color:var(--muted);font-size:10px}.scatter-legend span{display:flex;align-items:center;gap:6px}.scatter-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.scatter-legend .excellent{background:#147d70}.scatter-legend .middle{background:#3265ba}.scatter-legend .low{background:#c16b12}.scatter-legend .trend{width:20px;height:0;border-top:2px dashed #1e352e;border-radius:0}.compact{min-height:120px}
#toast{position:fixed;right:24px;bottom:24px;background:#173f33;color:#fff;border-radius:10px;padding:11px 15px;font-size:11px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;z-index:20}#toast.show{opacity:1;transform:none}
.data-meta-bar{display:flex;align-items:center;gap:0;flex-wrap:wrap;padding:9px 30px;background:#fff;border-bottom:1px solid var(--line);color:#61716b;font-size:10px}.data-meta-bar span{padding:2px 14px;border-right:1px solid var(--line)}.data-meta-bar span:first-child{padding-left:0}.data-meta-bar span:last-child{border-right:0}.data-meta-bar b{color:var(--green);margin-right:6px}
.volume-bar{fill:#b8d9cf;opacity:.82}.chart-legend{display:flex;justify-content:center;gap:18px;align-items:center;color:var(--muted);font-size:10px;margin-top:-4px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:15px;height:8px;border-radius:3px}.legend-line{height:0!important;border-top:3px solid var(--teal);border-radius:0!important}.legend-bar{background:#b8d9cf}.legend-low{background:#c16b12}.legend-mid{background:#3265ba}.legend-good{background:#147d70}.hist-low{fill:#c16b12;opacity:.78}.hist-mid{fill:#3265ba;opacity:.76}.hist-good{fill:#147d70;opacity:.8}
.inline-input{min-width:210px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;color:var(--ink);outline:none}.inline-input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(20,125,112,.1)}
.matrix-scroll{overflow:auto;padding-bottom:3px}.association-matrix{display:grid;grid-template-columns:minmax(170px,1.35fr) repeat(var(--metric-count),minmax(105px,1fr));gap:6px;min-width:820px}.matrix-corner,.matrix-head,.matrix-label{display:flex;align-items:center;min-height:42px;padding:8px 10px}.matrix-corner,.matrix-head{background:#174f40;color:#fff;font-size:10px;font-weight:800}.matrix-corner{border-radius:10px 0 0 10px}.matrix-head{justify-content:center}.matrix-head:last-child{border-radius:0 10px 10px 0}.matrix-label{background:#f5f8f7;border:1px solid var(--line);border-radius:9px;justify-content:space-between;gap:8px}.matrix-label b{font-size:10px;color:var(--green)}.matrix-label small{font-size:8px;color:var(--muted);white-space:nowrap}.matrix-cell{border:1px solid transparent;border-radius:9px;min-height:48px;display:grid;place-items:center;align-content:center;gap:1px;cursor:pointer;color:#163a30}.matrix-cell:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(18,64,50,.15)}.matrix-cell.stable{border:3px solid #194f40}.matrix-cell b{font-size:13px}.matrix-cell small{font-size:8px;color:#35584d}.matrix-legend{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:9px}.matrix-legend span{display:flex;align-items:center;gap:5px}.matrix-legend i{width:16px;height:9px;border-radius:3px}.matrix-legend .negative{background:rgba(193,107,18,.7)}.matrix-legend .neutral{background:#e9efed}.matrix-legend .positive{background:rgba(20,125,112,.7)}.matrix-legend .stable{background:#fff;border:3px solid #194f40;height:12px}
.percentile-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:13px}.percentile-list{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.percentile-row{display:grid;grid-template-columns:minmax(135px,1.1fr) 2fr 86px;gap:10px;align-items:center;padding:10px 12px;background:#fbfdfc;border:1px solid var(--line);border-radius:12px}.percentile-copy b,.percentile-copy span{display:block}.percentile-copy b{font-size:10px;color:var(--green)}.percentile-copy span{font-size:9px;color:var(--muted);margin-top:3px}.percentile-track{height:10px;background:#e6edea;border-radius:99px;position:relative}.percentile-fill{height:100%;background:linear-gradient(90deg,#b6d8cd,#1b8875);border-radius:99px}.percentile-track i{position:absolute;top:-4px;width:3px;height:18px;background:#0f5a45;border-radius:2px}.percentile-value{text-align:right}.percentile-value b,.percentile-value small{display:block}.percentile-value b{font-size:14px;color:var(--green)}.percentile-value small{font-size:8px;color:var(--muted);margin-top:2px}
.topbar{background:#fffaf0}.topbar h1{font-size:28px}.topbar p:last-child{font-size:14px}.eyebrow{font-size:11px}.data-meta-bar{background:#fffdf8;font-size:12px}.filterbar{background:#f8eedb}.filterbar label{font-size:12px}.filterbar select,.inline-select,.inline-input{font-size:14px}.scope-note{background:#fff8e9;border-left-color:#8a624a;color:#5e4939;font-size:14px}.scope-note::before{background:#8a624a}.kpi-card,.panel,.group-summary,.candidate-card{background:#fffdf8}.kpi-card label{font-size:13px}.kpi-card strong{font-size:29px}.kpi-card small{font-size:12px}.panel-head h2{font-size:18px}.panel-head p{font-size:12px}.section-title{font-size:17px}.data-table{font-size:13px}.data-table th,.data-table td{padding:11px 12px}.table-note{font-size:12px}.badge{font-size:11px}.mini-stat span{font-size:12px}.mini-stat b{font-size:21px}.explain-box{font-size:13px}.profile-item label{font-size:12px}.profile-item strong{font-size:19px}.profile-item small{font-size:11px}.group-summary>div b,.group-summary small{font-size:12px}.candidate-card h3{font-size:15px}.candidate-card p{font-size:12px}.axis-label{font-size:12px}.axis-title{font-size:13px}.value-label{font-size:12px}.matrix-label b{font-size:12px}.matrix-label small{font-size:10px}.matrix-head,.matrix-corner{font-size:12px}.matrix-cell b{font-size:15px}.matrix-cell small{font-size:10px}.matrix-legend,.chart-legend,.scatter-legend{font-size:12px}
.scatter-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px;padding:12px 14px;background:#f8eedb;border:1px solid var(--line);border-radius:12px}.scatter-controls label{display:grid;gap:5px;font-size:12px;color:var(--muted);font-weight:800}.scatter-controls .inline-select{min-width:180px}.inline-scatter-summary{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}.inline-scatter-summary span{background:#fffdf8;border:1px solid var(--line);padding:8px 10px;border-radius:9px;color:var(--muted);font-size:11px}.inline-scatter-summary b{color:var(--ink);font-size:13px}.inline-scatter{background:#fffdf8}.inline-scatter-panel{position:relative}.inline-scatter-panel.is-switching #inlineScatterContent{opacity:.42;transform:scale(.992)}#inlineScatterContent{transform-origin:center;transition:opacity .16s ease,transform .16s ease}.scatter-swap-enter{animation:scatterSwap .38s cubic-bezier(.2,.72,.25,1) both}.scatter-point.animated{transform-box:fill-box;transform-origin:center;opacity:0;animation:scatterPop .42s ease-out forwards}.regression-enter .trend-line{stroke:#4d443d;stroke-width:2.2;stroke-dasharray:8 5;animation:regressionFade .8s ease-out both}@keyframes scatterSwap{from{opacity:.16;transform:translateY(8px) scale(.992);filter:blur(1.5px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes scatterPop{from{opacity:0;transform:scale(.25)}to{opacity:.82;transform:scale(1)}}@keyframes regressionFade{from{opacity:0;stroke-dashoffset:80}to{opacity:.75;stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.inline-scatter-panel.is-switching #inlineScatterContent,#inlineScatterContent{transition:none}.scatter-swap-enter,.scatter-point.animated,.regression-enter .trend-line{animation:none!important;opacity:1}}.scatter-legend .excellent{background:#c94a43}.scatter-legend .middle{background:#9a9a94}.scatter-legend .low{background:#5e8a43}
.farm-search-panel{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:16px;padding:14px 16px;background:#fffdf8;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.farm-search-panel label,.farm-search-panel>div>label{display:block;margin-bottom:6px;font-size:12px;color:var(--muted);font-weight:800}.farm-search-line{display:flex;gap:8px}.farm-search-line .inline-input{min-width:300px}.farm-search-panel>label{display:grid;gap:6px;margin:0}.farm-search-panel>label .inline-select{min-width:330px}.farm-select-or{color:#9b876d;font-size:12px;padding-bottom:10px}.farm-performance-grid{grid-template-columns:1fr 1fr}.performance-chart,.radar-chart{background:#fffdf8}.performance-chart svg,.radar-chart svg{width:100%;height:auto;display:block}.batch-line{fill:none;stroke-width:3}.batch-line.fsa{stroke:#24734f}.batch-line.fcr{stroke:#d86032;stroke-dasharray:9 6}.batch-point{fill:#fffdf8;stroke-width:3}.batch-point.fsa{stroke:#24734f}.batch-point.fcr{stroke:#d86032}.line-enter{stroke-dasharray:1100;stroke-dashoffset:1100;animation:drawLine 1.1s ease-out forwards}.dash-enter{animation:lineFade 1s ease-out both}@keyframes drawLine{to{stroke-dashoffset:0}}@keyframes lineFade{from{opacity:0}to{opacity:1}}.trend-fsa{height:0!important;border-top:3px solid #24734f;border-radius:0!important}.trend-fcr{height:0!important;border-top:3px dashed #d86032;border-radius:0!important}.radar-web{fill:none;stroke:#dcc9a3;stroke-width:1}.radar-axis{stroke:#d5c5aa;stroke-width:1}.radar-label{font-size:13px;fill:#5f5448;font-weight:700}.radar-area{stroke-width:2.5}.radar-area.global{fill:rgba(154,154,148,.13);stroke:#9a9a94;stroke-dasharray:3 4}.radar-area.base{fill:rgba(79,118,168,.10);stroke:#4f76a8;stroke-dasharray:8 5}.radar-area.farm{fill:rgba(199,71,63,.16);stroke:#c7473f}.radar-dot{fill:#c7473f}.radar-legend{display:flex;justify-content:center;gap:18px;font-size:12px;color:var(--muted)}.radar-legend span{display:flex;gap:6px;align-items:center}.radar-legend i{width:26px;height:10px;border-radius:4px}.radar-legend .farm{background:#c7473f}.radar-legend .base{background:#4f76a8}.radar-legend .global{background:#9a9a94}
@media(max-width:1100px){.app-shell{grid-template-columns:80px minmax(0,1fr)}.sidebar{padding-inline:10px}.brand>div:last-child,.sidebar-note,.sidebar-foot,nav button:not(.active){font-size:0}.brand{justify-content:center}.brand-mark{width:42px}.brand strong,.brand span{display:none}nav button{justify-content:center;padding:12px 8px}nav button span{font-size:10px}.kpi-grid{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:1fr}.profile-grid{grid-template-columns:repeat(3,1fr)}.group-tabs{grid-template-columns:repeat(2,1fr)}.quant-grid{grid-template-columns:repeat(3,1fr)}.scatter-stats{grid-template-columns:repeat(3,1fr)}.percentile-list{grid-template-columns:1fr}.farm-performance-grid{grid-template-columns:1fr}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:sticky;height:auto;padding:9px 12px;display:flex;flex-direction:row;align-items:center}.brand{padding:0;border:0}.brand-mark{width:35px;height:35px;font-size:16px}.sidebar-note,.sidebar-foot{display:none}.sidebar nav{display:flex;flex:1;justify-content:space-between;margin:0 0 0 12px;gap:0}.sidebar nav button{padding:7px;width:34px;height:38px;overflow:hidden;font-size:0!important}.sidebar nav button span{font-size:9px}.main{min-width:0}.topbar{padding:16px}.topbar h1{font-size:19px}.top-actions{display:none}.filterbar{padding:10px 16px;gap:8px}.filterbar label{flex:1 1 42%}.filterbar select{width:100%;min-width:0}.content{padding:14px 16px 40px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr}.metric-strip,.profile-grid{grid-template-columns:repeat(2,1fr)}.group-tabs{grid-template-columns:1fr 1fr}.group-summary-grid{grid-template-columns:1fr}.group-toolbar label{flex:1 1 42%}.group-toolbar select{width:100%;min-width:0}.group-toolbar span{width:100%;margin-left:0}.detail-head{display:block}.detail-meta{justify-content:flex-start;margin-top:12px}.topbar p:last-child{display:none}}
@media print{.sidebar,.filterbar,.top-actions{display:none}.app-shell{display:block}.content{padding:0}.panel,.kpi-card{box-shadow:none;break-inside:avoid}.topbar{padding:8px 0}}
