:root{font-family:system-ui,-apple-system,'PingFang SC',sans-serif;color:#30352f;background:#faf9f5;font-size:13px;--green:#386c56;--line:#deded4;--muted:#787d75;--accent:#c96442}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:6px;padding:7px 12px}button:hover{border-color:var(--green)}button.active,.primary{background:var(--green);color:white;border-color:var(--green)}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}header{height:62px;border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:center;padding:0 24px}nav{display:flex;gap:8px;flex:1;justify-content:center}nav a{padding:9px 13px;border-radius:5px;color:var(--muted)}nav a.active{background:#e3eee7;color:var(--green);font-weight:650}.home{font-size:23px}.badge{font-size:11px;color:var(--muted);white-space:nowrap}main{max-width:1440px;margin:auto;padding:20px 28px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}h1{font-size:25px;letter-spacing:-1px;margin:3px 0 5px}p{margin:5px 0;color:var(--muted);line-height:1.6}small{font-size:11px;color:var(--muted)}.actions{display:flex;gap:7px}.layout{display:grid;grid-template-columns:285px 1fr;gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:18px;min-width:0}h2{font-size:14px;margin:0 0 14px}h3{font-size:12px;margin:14px 0 8px}.field{display:block;margin:13px 0}.field>span{display:flex;justify-content:space-between;margin-bottom:7px}.field input[type=number],select{width:100%;height:34px;border:1px solid var(--line);border-radius:5px;padding:5px 8px;background:#fff}input[type=range]{width:100%;accent-color:var(--green)}.presets{display:flex;flex-wrap:wrap;gap:5px}.presets button{font-size:11px;padding:6px 8px}.behavior{display:grid;grid-template-columns:1fr 62px 36px;gap:7px;align-items:center;margin:8px 0}.behavior input{width:62px;padding:5px;border:1px solid var(--line);border-radius:5px}.behavior small{text-align:right}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px;gap:12px}.metric b{display:block;font-size:26px;font-weight:650;letter-spacing:-1px;margin:5px 0}.metric.emphasis b{color:var(--green)}.formula{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;background:#f3f5ef;border-radius:6px;margin-bottom:12px}.formula strong{font-size:15px;font-weight:600}.legend{display:flex;gap:16px;color:var(--muted);font-size:11px}.legend span:before{content:'';display:inline-block;width:13px;height:3px;background:var(--green);vertical-align:middle;margin-right:6px}.legend span:nth-child(2):before{background:var(--accent)}.chart{width:100%;height:235px;display:block}.chart text{font-size:11px;fill:var(--muted)}.chart-tabs{display:flex;justify-content:space-between;align-items:center}.chart-tabs button{font-size:11px;padding:5px 8px}.comparison{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.comparison button{text-align:left;padding:10px 8px;background:#fafbf8}.comparison button.active{color:var(--green);border-color:var(--green);background:#eff5ef}.comparison b{display:block;margin:7px 0;font-size:16px}.fine{font-size:11px;color:var(--muted)}details{font-size:11px;line-height:1.7;margin-top:12px;color:var(--muted)}summary{cursor:pointer}.bar{height:5px;background:#eee;border-radius:5px;margin:10px 0}.bar i{display:block;background:var(--green);height:100%;border-radius:5px}.table-wrap{max-height:285px;overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:11px;color:var(--muted);position:sticky;top:0;background:#fff}td,th{padding:10px 8px;border-bottom:1px solid #eeeee7}td:last-child,th:last-child{text-align:right}.positive{color:var(--green)}.negative{color:var(--accent)}.snapshot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:14px;gap:12px}#guide{background:#e9f0e8;padding:12px 16px;margin-bottom:14px;border-radius:6px}#guide button{float:right;padding:3px 9px}.muted{color:var(--muted)}#notice{font-size:12px;min-height:20px}fieldset{border:0;padding:0;margin:0;min-width:0}.status{color:var(--green);font-size:11px}.split{display:flex;justify-content:space-between;align-items:center}.footnote{margin-top:10px}.chart-label{font-size:11px;color:var(--muted)}@media(min-width:1000px) and (max-height:780px){main{padding-top:12px}.heading{margin-bottom:10px}.panel{padding:14px}.chart{height:195px}.field{margin:10px 0}.table-wrap{max-height:245px}.metric b{font-size:23px}}@media(max-width:950px){header{padding:0 12px;gap:8px}nav a{padding:8px;font-size:11px}main{padding:16px}.layout{grid-template-columns:240px 1fr;gap:12px}.metrics{grid-template-columns:repeat(2,1fr)}.comparison{grid-template-columns:repeat(3,1fr)}.formula{flex-wrap:wrap}}@media(max-width:650px){header{height:auto;min-height:60px;flex-wrap:wrap;padding:10px}nav{order:3;flex-basis:100%;overflow:auto;justify-content:start}.layout{grid-template-columns:1fr}.comparison{grid-template-columns:repeat(2,1fr)}.heading{align-items:start}.formula strong{font-size:13px}.badge{margin-left:auto}}
@media(min-width:1000px) and (max-height:850px){.heading{height:68px;margin-bottom:10px}.heading h1{font-size:23px;margin:2px 0}.heading p{margin:2px 0}.chart{height:150px}.metrics{padding-bottom:10px;margin-bottom:10px}.metric b{font-size:24px;margin:3px 0}.formula{padding:9px;margin-bottom:10px}.comparison button{padding:7px}.comparison b{margin:4px 0}.panel h2{margin-bottom:10px}.field{margin:9px 0}.table-wrap{max-height:220px}#notice:empty{display:none}}
@media(min-width:1000px) and (max-height:850px){main{padding-bottom:10px}}
.process-flow{margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#f4f6f0}.process-flow ol{display:flex;list-style:none;padding:0;margin:0;gap:28px}.process-flow li{flex:1;min-width:0;position:relative}.process-flow li+li:before{content:'→';position:absolute;left:-21px;top:17px;color:#91a18d;font-size:17px}.flow-title{display:flex;gap:6px;align-items:center;margin-bottom:6px;font-size:12px}.flow-title span{display:inline-grid;place-items:center;flex:0 0 19px;height:19px;border-radius:50%;background:#e0e9dc;color:var(--green);font-size:10px}.process-flow small{display:block;line-height:1.5;font-size:10px}.flow-branches{display:grid;gap:2px}.flow-branches small{padding-left:7px;border-left:2px solid #a8bca0}.flow-branches small+small{border-color:#d5ac93}@media(min-width:1000px){.process-flow~#app .pool-cards{max-height:calc(100dvh - 370px)}.process-flow~#app .paper-questions{max-height:calc(100dvh - 450px)}.process-flow~#app .pool-admin-table{max-height:calc(100dvh - 465px)}}@media(min-width:1000px) and (max-height:850px){.process-flow{padding:10px 12px;margin-bottom:12px}.heading{height:48px}.process-flow~#app .chart{height:130px}.process-flow~#app .pool-cards{max-height:calc(100dvh - 350px)}}@media(max-width:750px){.process-flow ol{flex-direction:column;gap:20px}.process-flow li+li:before{content:'↓';left:3px;top:-21px}.flow-title{margin-bottom:3px}.process-flow small{padding-left:25px}.flow-branches small{padding-left:7px;margin-left:25px}}
.safeguard-flows{display:grid;gap:7px;margin:-4px 0 12px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:#f4f6f0}.safeguard-flows>div{display:grid;grid-template-columns:1fr 24px 1.3fr 24px 1.3fr;align-items:center;gap:8px}.safeguard-flows b{font-size:11px;font-weight:500}.safeguard-flows b:first-child{color:var(--green);font-weight:600}.safeguard-flows span{text-align:center;color:#91a18d}@media(max-width:650px){.safeguard-flows{padding:10px}.safeguard-flows>div{grid-template-columns:1fr 15px 1fr 15px 1fr;gap:4px}.safeguard-flows b{font-size:10px}}
