body[data-logistic-lab]{background:#F4F5F2;color:#213B49;font-family:"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.65}body[data-logistic-lab] main{max-width:1510px;margin:auto;padding:28px 30px 19px}body[data-logistic-lab] [hidden]{display:none!important}.lf-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}.lf-header h1{font:600 33px/1.4 "Songti SC","STSong",serif;margin:0}.lf-header .pn{flex:none;font-size:12px}.lf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.lf-legend{display:flex;gap:24px;align-items:center;font-size:12px;color:#4C6879}.lf-legend span{display:flex;align-items:center;gap:8px}.lf-legend i{display:inline-block;flex:none}.lf-legend .dot{width:7px;height:7px;background:#849EAF;border-radius:50%}.lf-legend .line{width:21px;height:3px;background:#376E9E;border-radius:2px}.lf-actions{display:flex;gap:8px}.lf-actions button{font-family:inherit;font-size:12px;line-height:1.6;min-height:36px;padding:7px 14px;border:1px solid #CADAE3;border-radius:8px;background:#FFFFFF;color:#365E7A;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}.lf-actions button:first-child{background:#2E699F;border-color:#2E699F;color:white}.lf-actions button:hover{border-color:#789AB5}.lf-actions button:focus-visible,.lf-space canvas:focus-visible{outline:3px solid #D6A747;outline-offset:3px}.lf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.lf-card{background:white;border:1px solid #DCE5E9;border-radius:16px;overflow:hidden;min-width:0;box-shadow:0 6px 22px #34546B03}.lf-card h2{font-size:16px;font-weight:600;line-height:1.6;padding:14px 19px;margin:0;border-bottom:1px solid #EBEFF1;color:#2C5A81}.lf-card.nonlinear h2{color:#317A79}.lf-figure{position:relative;margin:0 6px 7px;min-width:0}.lf-figure canvas{display:block;width:100%;height:302px}.lf-caption{position:absolute;top:13px;right:16px;font-size:11px;line-height:1.7;color:#4D697A;pointer-events:none;background:#FFFFFFDC;padding:2px 7px;border-radius:5px}.lf-space canvas:first-child{cursor:grab;touch-action:none}.lf-space canvas:first-child:active{cursor:grabbing}.lf-space .lf-labels{position:absolute;inset:0;pointer-events:none}.lf-gesture{position:absolute;bottom:8px;right:14px;font-size:10px;line-height:1.7;color:#5B7585;pointer-events:none}.lf-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;font-size:10px;line-height:1.7;color:#5F7783;margin-top:16px}.lf-fallback{font-size:12px;margin-top:14px;color:#456678}
@media(max-width:1180px){body[data-logistic-lab] main{padding:25px 20px 18px}.lf-header .pn{display:none}.lf-header h1{font-size:30px}.lf-grid{gap:15px}.lf-card h2{font-size:15px;padding:13px 16px}}
@media(max-width:700px){body[data-logistic-lab] main{padding:21px 14px 17px}.lf-header{margin-bottom:18px}.lf-header h1{font-size:29px}.lf-toolbar{gap:13px;flex-wrap:wrap;margin-bottom:15px}.lf-legend{font-size:11px;gap:19px}.lf-actions button{font-size:11px;padding:6px 12px;min-height:33px}.lf-grid{grid-template-columns:minmax(0,1fr);gap:14px}.lf-card{border-radius:14px}.lf-card h2{font-size:15px;padding:12px 16px}.lf-figure canvas{height:285px}.lf-caption{font-size:10px;right:10px;top:11px}.lf-gesture{font-size:9px;right:10px;bottom:7px}.lf-footer{font-size:9px}}
@media(max-width:360px){body[data-logistic-lab] main{padding:19px 12px 16px}.lf-header h1{font-size:26px}.lf-toolbar{gap:11px}.lf-caption{font-size:10px}.lf-legend{gap:16px}.lf-card h2{font-size:14px}.lf-figure canvas{height:270px}}
@media(prefers-reduced-motion:reduce){body[data-logistic-lab] *{transition:none!important;animation:none!important}}

.lf-legend .blue{background:#387EB7}.lf-legend .orange{background:#DE8250}.lf-legend .line{background:#536E79}.lf-card.nonlinear h2{color:#2C5A81}.lf-card h2{display:flex;align-items:center;justify-content:space-between;gap:12px}.lf-badge{font:400 10px/1.6 "PingFang SC",sans-serif;color:#36786F;white-space:nowrap}.lf-header p{font-size:13px;margin:7px 0 0;color:#4C6879}.lf-footer{flex-wrap:wrap}.lf-footer p{margin:0}.lf-shape-note{font-size:10px;color:#597483;padding:0 7px}.lf-caption{font-size:11px}.lf-legend{gap:18px}@media(max-width:700px){.lf-footer{gap:6px}.lf-header p{font-size:12px}.lf-badge{font-size:9px}.lf-card h2{gap:7px}}

.lf-source{margin-left:12px;white-space:nowrap}

/* Probability explanation stays inside each existing figure. */
.lf-toolbar{flex-wrap:wrap}.lf-legend{flex-wrap:wrap;row-gap:6px}.lf-header p{max-width:560px;text-wrap:pretty}.lf-prob-caption{top:6px;display:flex;flex-direction:column;gap:0;font-size:10px;line-height:14px;text-align:right;padding:3px 7px}.lf-prob-caption b{font-weight:500}.lf-prob-caption i{font-style:normal;color:#68808E}.lf-orange-prob{color:#A65328}.lf-blue-prob{color:#2B679B}@media(max-width:700px){.lf-prob-caption{top:6px;font-size:10px}.lf-legend{column-gap:16px}.lf-legend span:last-child{white-space:nowrap}}

.lf-header>div{min-width:0;flex:1}.lf-header .lf-algorithm{max-width:760px;line-height:1.85;margin-top:9px}.lf-algorithm strong{font-weight:600;color:#2C4B5C}.lf-connection{display:block;margin-top:5px}@media(max-width:700px){.lf-header .lf-algorithm{line-height:1.9;margin-top:8px}.lf-connection{margin-top:6px}}
