:root{color:#17212b;background:#f5f6f1;font-family:Inter,Pretendard,Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,select,summary{font:inherit}.app{display:grid;grid-template-columns:168px minmax(0,1fr);min-height:100vh}.rail{position:sticky;top:0;display:flex;flex-direction:column;gap:8px;height:100vh;padding:24px 14px;border-right:1px solid #d8ded2;background:#243124}.rail a{color:#edf2ea;text-decoration:none;padding:10px 12px;border-radius:6px;font-weight:800}.rail a:hover{background:#395039}main{width:min(1320px,100%);margin:0 auto;padding:28px}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 0 28px}.kicker,.section-heading span{display:inline-flex;color:#51723e;font-size:.84rem;font-weight:900}h1,h2,h3,p{margin-top:0}h1{margin-bottom:8px;font-size:3rem;line-height:1.05;letter-spacing:0}h2{margin-bottom:0;font-size:1.45rem}h3{margin-bottom:12px;font-size:1rem}.hero p,.section-summary,.note,.field small,.line-item small,.comparison-item small,.threshold-stat small{color:#5d6771}.ghost{min-height:42px;border:1px solid #aeb9aa;border-radius:6px;background:#fff;color:#23382b;padding:9px 14px;font-weight:900;cursor:pointer}.ghost:hover{border-color:#617d55}.summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:22px}.metric{min-height:92px;padding:14px;border:1px solid #d9dfd5;border-radius:8px;background:#fff}.metric span,.flow span,.line-item span{color:#65707a;font-size:.86rem}.metric strong{display:block;margin-top:12px;font-size:1.16rem;line-height:1.22;overflow-wrap:anywhere}.metric.good strong,.line-item.good strong{color:#21724b}.metric.warn strong,.line-item.warn strong{color:#b14c2c}.section{margin:18px 0;padding:22px;border:1px solid #d9dfd5;border-radius:8px;background:#fff}.section-heading{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.section-summary{margin-bottom:16px}.grid{display:grid;gap:12px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.input-panel{margin-top:14px;padding:14px;border:1px solid #dfe6db;border-radius:8px;background:#fbfcf8}.lookup-panel{display:grid;gap:12px}.lookup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.lookup-head strong{display:block;margin-bottom:5px}.lookup-head p{margin-bottom:0;color:#5d6771}.selected-rate{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(120px,1fr));gap:10px}.selected-rate>div,.formula-card{display:flex;min-height:82px;flex-direction:column;gap:6px;padding:12px;border:1px solid #d9e2d6;border-radius:6px;background:#fff}.selected-rate span,.formula-card span{color:#65707a;font-size:.86rem;font-weight:900}.selected-rate strong,.formula-card strong{overflow-wrap:anywhere}.rate-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rate-result{display:grid;grid-template-columns:78px minmax(0,1fr);gap:4px 10px;min-height:68px;border:1px solid #d9e2d6;border-radius:6px;padding:10px;text-align:left;color:#17212b;background:#fff;cursor:pointer}.rate-result:hover{border-color:#658955;background:#f5faf0}.rate-result span{color:#51723e;font-size:.84rem;font-weight:900}.rate-result strong{overflow-wrap:anywhere}.rate-result small{grid-column:2;color:#5d6771}.field{display:flex;flex-direction:column;gap:7px}.field span,.toggle span{font-weight:900}.field input,.field select{width:100%;min-height:44px;border:1px solid #cbd5c6;border-radius:6px;padding:10px 12px;color:#17212b;background:#fff}.field input{text-align:right}.field select{cursor:pointer}.field input:focus,.field select:focus{outline:3px solid #e0edd6;border-color:#5f8a4a}.toggle{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #cbd5c6;border-radius:6px;background:#fff}.toggle input{width:18px;height:18px}.toggle.compact{width:fit-content;margin-top:12px;border-color:transparent;background:transparent;padding:4px 0}.subsection{margin:14px 0;border:1px solid #dfe6db;border-radius:8px;background:#fbfcf8}.subsection summary{cursor:pointer;padding:13px 14px;color:#2d4934;font-weight:900}.subsection>.grid,.subsection>.threshold-box,.subsection>.comparison-grid{margin:0 14px 14px}.threshold-box{padding:14px;border:1px solid #cfddc9;border-radius:8px;background:#f7faf3}.threshold-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.threshold-head strong{display:block;margin-bottom:6px;font-size:1rem}.threshold-head p{margin-bottom:0;color:#5d6771}.badge{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#f5e7d8;color:#985229;font-size:.82rem;font-weight:900}.badge.good{background:#e2f2e6;color:#1f7049}.threshold-stat{display:flex;min-height:86px;flex-direction:column;gap:6px;padding:12px;border:1px solid #d9e2d6;border-radius:6px;background:#fff}.threshold-stat span{color:#65707a;font-size:.86rem}.threshold-stat strong{font-size:1.08rem;overflow-wrap:anywhere}.threshold-stat.emphasis{background:#f2f7ed}.threshold-detail{margin-top:12px;padding-top:12px;border-top:1px solid #d9e2d6}.flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:8px 0 16px}.flow div,.line-item{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e1e8dc;border-radius:6px;background:#fbfcf9}.flow div{min-height:76px;flex-direction:column}.flow strong,.line-item strong{text-align:right;overflow-wrap:anywhere}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.breakdown-card{min-width:0;border:1px solid #e1e8dc;border-radius:8px;padding:14px;background:#fff}.line-list{display:grid;gap:8px}.line-item>div{display:grid;gap:4px}.line-item.good{background:#eef8f1}.line-item.warn{background:#fff6ee}.line-item.muted{color:#747f89}.strong-line{border-color:#bccdb7}.comparison-grid,.formula-grid,.scope-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.formula-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:14px}.formula-card.good{background:#eef8f1}.formula-card.warn{background:#fff6ee}.formula-card.muted{color:#6f7983;background:#f8faf7}.comparison-item,.scope-grid>div{min-height:110px;padding:14px;border:1px solid #e1e8dc;border-radius:8px;background:#fbfcf9}.comparison-item{display:flex;flex-direction:column;gap:8px}.comparison-item span{color:#65707a;font-size:.86rem;font-weight:900}.comparison-item strong{font-size:1.2rem}.scope-grid p{margin-bottom:0;color:#4f5b64}.note{margin:14px 0 0}@media(max-width:1120px){.app{grid-template-columns:1fr}.rail{position:static;height:auto;flex-direction:row;flex-wrap:wrap;padding:12px}.summary,.grid.three,.flow,.comparison-grid,.formula-grid,.scope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){main{padding:16px}.hero{flex-direction:column}h1{font-size:2.2rem}.summary,.grid.two,.grid.three,.flow,.result-grid,.comparison-grid,.formula-grid,.selected-rate,.rate-results,.scope-grid,.rate-result{grid-template-columns:1fr}.rate-result small{grid-column:1}.section{padding:16px}.threshold-head{flex-direction:column}}
