:root {
  color-scheme: light;
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #15312a;
  background: #edf3ed;
  font-synthesis: none;
  --muted: #4d625a;
  --green: #126349;
  --line: #d9e3dc;
  --night: #14342c;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #bc7b16; outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-start: 12px; padding: 12px; color: white; background: #14342c; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #d4e0d6; }
.header-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; display: flex; align-items: end; justify-content: center; gap: 2px; padding-bottom: 8px; border-radius: 8px; background: #164b39; }
.brand-mark i { width: 3px; height: 6px; border-radius: 2px; background: #c6efac; }
.brand-mark i:nth-child(2) { height: 10px; }
.brand-mark i:nth-child(3) { height: 14px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
nav a { padding: 6px 0; text-decoration: none; color: #36534a; }
nav a[aria-current] { font-weight: 800; color: var(--green); border-bottom: 2px solid var(--green); }
.hero { padding: 51px 0 34px; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(42px, 6.15vw, 78px); line-height: 1.08; letter-spacing: -.09em; }
.hero em { color: var(--green); font-style: normal; }
.hero p { margin: 20px 0 0; max-width: 560px; color: #3d584d; font-size: 17px; line-height: 1.68; word-break: keep-all; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .93fr); gap: 20px; align-items: start; }
.panel { min-width: 0; padding: 23px; border-radius: 18px; }
.input-panel { background: #fff; border: 1px solid #dce6df; box-shadow: 0 6px 22px #122e2510; }
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 17px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.06em; }
.quiet-button { border: 1px solid #dce7de; background: #f4f8f4; color: #214939; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.quiet-button:hover { background: #e9f3eb; }
.scenarios, .result-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.scenario { background: #f7faf7; border: 1px solid #dce7df; border-radius: 11px; padding: 8px 12px 12px; }
.scenario.b { background: #edf7ef; border-color: #cae5d3; }
.scenario legend { display: flex; gap: 7px; align-items: center; padding: 0 6px; font-size: 14px; font-weight: 800; }
.scenario legend span { display: grid; place-items: center; width: 23px; height: 23px; color: white; background: #416158; border-radius: 7px; font-size: 12px; }
.scenario.b legend span { background: #116c4d; }
.scenario-fields { display: grid; gap: 9px; }
.costs { margin-top: 20px; }
.costs legend { padding: 0; margin-bottom: 10px; font-weight: 780; }
.cost-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
label { min-width: 0; font-size: 14px; font-weight: 700; color: #29463a; }
.unit-input { display: flex; gap: 6px; align-items: center; background: #fff; border: 1px solid #cbdad0; border-radius: 7px; padding: 0 9px; margin-top: 5px; color: #425d53; }
.unit-input input { flex: 1; width: 100%; min-width: 0; padding: 8px 0; border: 0; background: none; color: #142e25; font-variant-numeric: tabular-nums; font-weight: 750; }
.unit-input input:focus-visible { outline: none; }
.unit-input:focus-within { outline: 2px solid #147654; outline-offset: 1px; }
.unit-input input::-webkit-inner-spin-button { appearance: none; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 13px; line-height: 1.4; }
.check input { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: #11694c; }
.field-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.56; word-break: keep-all; }
.primary-button { display: block; width: 100%; min-height: 45px; margin-top: 17px; padding: 8px 10px; background: #116147; color: white; border: 0; border-radius: 8px; font-size: 16px; font-weight: 800; }
.primary-button:hover { background: #0c513a; }
.error { color: #92291a; }
.result-panel { background: var(--night); color: #f7fff4; box-shadow: 0 10px 28px #183e2e24; scroll-margin-top: 16px; }
.result-panel:focus-visible { outline: 3px solid #bc7b16; outline-offset: 3px; }
.result-panel .section-head a { color: #cce8d6; font-size: 14px; text-underline-offset: 4px; }
.result-panel .field-note { color: #c8dacd; }
.verdict { margin: 6px 0 13px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.05em; color: #e0f3cf; overflow-wrap: anywhere; }
.stale { color: #ffe5a5; font-size: 14px; line-height: 1.5; }
.result-card { min-width: 0; display: grid; gap: 5px; padding: 11px; background: #21493d; border: 1px solid #41685a; border-radius: 10px; }
.result-card span, .result-card small { color: #c9e1d3; font-size: 13px; }
.result-card strong { font-size: clamp(22px, 3vw, 35px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-card .loss { color: #ffb7a7; }
.breakdown { width: 100%; border-collapse: collapse; margin-top: 14px; table-layout: fixed; font-size: 14px; }
.breakdown caption { text-align: left; margin-bottom: 2px; color: #c9e1d3; font-size: 13px; }
.breakdown th, .breakdown td { border-bottom: 1px solid #365b4e; padding: 7px 4px; text-align: right; overflow-wrap: anywhere; }
.breakdown thead th { color: #c9e1d3; }
.breakdown th:first-child { width: 41%; text-align: left; }
.breakdown tbody th { font-weight: 550; }
.breakdown td { font-variant-numeric: tabular-nums; }
.price-target { color: #163f2c; background: #d9f0cc; border-radius: 9px; margin-top: 14px; padding: 10px 12px; }
.price-target div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 12px; }
.price-target p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.price-target div p { font-weight: 800; }
.price-target strong { font-size: 22px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.price-target > p { margin-top: 3px; }
.result-note { margin: 8px 0 0; color: #c9e1d3; line-height: 1.4; font-size: 13px; }
.site-footer { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; padding-block: 19px 27px; font-size: 14px; color: #3e5b4f; }
.site-footer span { font-weight: 780; color: #163f2c; }
.site-footer a { text-underline-offset: 3px; }
.article { width: min(760px, calc(100% - 48px)); padding-block: 43px 16px; line-height: 1.7; }
.article h1 { margin: 0 0 12px; color: #123f2e; font-size: clamp(27px, 5vw, 46px); line-height: 1.18; letter-spacing: -.07em; }
.article h2 { margin-top: 25px; line-height: 1.35; font-size: 21px; letter-spacing: -.04em; }
.article p, .article li { color: #365349; }
.article ul { padding-inline-start: 22px; }
.article .back { display: inline-block; color: #116147; padding: 4px 0; margin-bottom: 11px; text-underline-offset: 4px; }
.article code { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .shell { width: min(690px, calc(100% - 38px)); }
  .hero { padding-top: 39px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .header-row { min-height: 58px; gap: 11px; }
  nav { gap: 13px; }
  .wordmark { gap: 6px; font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; padding-bottom: 6px; }
  .hero { padding-block: 31px 23px; }
  .hero p { margin-top: 14px; font-size: 16px; }
  .panel { padding: 15px; }
  .section-head h2 { font-size: 20px; }
  .scenario { padding-inline: 7px; }
  .cost-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-input input { font-size: 16px; }
  .article { width: calc(100% - 32px); padding-top: 29px; }
}
