:root {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #202d2a;
  background: #f5f7f6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --accent: #087562;
  --muted: #687773;
  --line: #e4ebe8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
input, select { min-width: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #72b5a7;
  outline-offset: 3px;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; background: white; color: var(--accent); padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.calculator-shell { width: min(100% - 40px, 680px); margin: 0 auto; padding: 54px 0 30px; }
.page-heading { margin-bottom: 28px; }
.card-name { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 750; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 36px); letter-spacing: -.05em; line-height: 1.3; }
.intro { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; word-break: keep-all; }
.blog-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; min-height: 28px; color: var(--accent); font-size: 14px; font-weight: 650; line-height: 1.6; text-underline-offset: 4px; }
.blog-link:hover { text-decoration-thickness: 2px; }
.calculator-card { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px #203c3004; }
.conditions, .spending { padding: 28px 30px; }
.conditions { border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.025em; }
.step-number { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--accent); background: #eaf5f1; font-size: 13px; margin-right: 9px; }
.card-selects { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 24px; }
.choice-field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
select { display: block; width: 100%; border: 1px solid #dbe4df; border-radius: 9px; background: white; color: #202d2a; padding: 12px 28px 12px 12px; height: 47px; font-size: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 18px; color: #566660; font-size: 13px; line-height: 1.6; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
#newCard-hint { padding-left: 24px; }
.section-hint { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.spend-assumption { margin: 14px 0 23px; padding: 11px 13px; border-radius: 8px; background: #f0f7f3; color: #4b7063; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.benefit-section { margin: 22px 0; padding: 20px 17px 0; border: 1px solid var(--line); border-radius: 13px; }
.benefit-section h3 { margin: 0; font-size: 16px; color: var(--accent); font-weight: 750; }
.benefit-section h3::before { content: ""; display: inline-block; width: 4px; height: 14px; background: #72b5a2; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.living-group { margin-top: 20px; border-bottom: 1px solid var(--line); }
.living-group h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; }
.group-note { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: auto; }
.amount-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid #eef2f0; }
.amount-copy label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 650; line-height: 1.6; word-break: keep-all; }
.rate { display: inline-block; padding: 1px 5px; border-radius: 4px; background: #edf6f2; color: var(--accent); font-size: 11px; font-weight: 750; line-height: 1.7; white-space: nowrap; }
.benefit-section > .amount-row:last-child, .living-group > .amount-row:last-child { border-bottom: 0; }
.money-input { display: flex; align-items: center; gap: 7px; padding-right: 13px; border: 1px solid #dfe7e3; border-radius: 9px; background: #fafcfb; transition: border-color .15s, background .15s; }
.money-input:focus-within { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px #0875620b; }
.money-input input { width: 100%; border: 0; outline: 0; background: transparent; padding: 13px 0 13px 12px; font-size: 16px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.money-input input:focus-visible { outline: 0; }
.money-input input::placeholder { color: #aebbb5; font-weight: 400; }
.money-input > span { flex-shrink: 0; color: var(--muted); font-size: 13px; }
[aria-invalid="true"] { outline: 1px solid #c94040 !important; outline-offset: 1px; border-radius: 8px; }
.field-error { margin: 7px 0 0; color: #b33636; font-size: 12px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
#form-error { margin-bottom: 14px; }
.count-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 8px 22px; align-items: center; padding: 18px 0 20px; }
.count-row > label { font-size: 13px; font-weight: 650; }
.count-row > p { grid-column: 1 / -1; margin: 0; }
.optional-section { margin: 20px 0; padding: 18px 17px; border: 1px solid var(--line); border-radius: 12px; }
.optional-section > summary { font-size: 14px; font-weight: 700; line-height: 1.7; cursor: pointer; }
.optional-section > summary::marker { color: var(--accent); }
.optional-section .amount-row:last-child { border-bottom: 0; padding-bottom: 0; }
.input-guide-row { row-gap: 10px; }
.input-guide-row > .field-hint { grid-column: 1 / -1; margin: 0; }
.field-hint > p { margin: 0; }
.digital-services { margin: 0 0 7px; padding-left: 17px; }
.digital-services li + li { margin-top: 4px; }
.exclusion-guide { margin: 7px 0 0; padding-left: 17px; }
.exclusion-guide li + li { margin-top: 4px; }
.calculation-input-note { margin: 14px 0 0; color: #4b7063; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.teacher-section { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.teacher-section > summary { color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; line-height: 1.7; }
.teacher-payment-row { margin-top: 15px; }
.teacher-payment-row > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.teacher-payment-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.add-payment-button, .remove-payment-button { border: 1px solid #dbe4df; border-radius: 8px; background: white; color: var(--accent); font-size: 12px; padding: 10px 12px; min-height: 44px; }
.add-payment-button { margin-top: 13px; }
.remove-payment-button { color: var(--muted); }
.section-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.spend-summary { margin: 22px 0; padding: 16px; border: 1px solid #dcece4; border-radius: 11px; background: #f0f7f3; }
.spend-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.spend-summary strong { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.performance-row { color: var(--accent); font-weight: 650; }
.spend-summary > p { border-top: 1px solid #dcece4; padding-top: 12px; margin: 10px 0 0; color: #557367; font-size: 12px; line-height: 1.7; }
.calculate-button { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-radius: 11px; background: var(--accent); color: white; padding: 17px 20px; font-size: 16px; font-weight: 750; }
.calculate-button:hover { background: #056653; }
.calculate-button > span { font-size: 20px; }
.results-card { margin-top: 24px; padding: 30px; background: #eff7f3; border: 1px solid #d9eae1; border-radius: 20px; }
.result-eyebrow { margin: 0 0 9px; color: #5e7f70; font-size: 12px; }
.results-card > h2 { font-size: 17px; scroll-margin-top: 22px; }
.picking-rate { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0; color: var(--accent); font-size: 58px; font-weight: 800; letter-spacing: -.05em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.picking-rate .percent { font-size: 26px; letter-spacing: 0; }
.result-caption { margin: 12px 0 25px; color: #5e7c6e; font-size: 12px; line-height: 1.7; }
.result-details { margin: 0; border-top: 1px solid #d5e5dc; padding-top: 16px; }
.result-details > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.result-details dt { color: #597567; }
.result-details dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.result-details .net-result { padding-top: 16px; font-size: 16px; }
.calculation-detail { margin-top: 25px; padding-top: 22px; border-top: 1px solid #d5e5dc; }
.calculation-detail > h3 { margin: 0; font-size: 15px; font-weight: 750; }
.performance-equation { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; align-items: center; gap: 9px; margin-top: 15px; padding: 18px 12px; background: #ffffff9e; border-radius: 10px; }
.performance-equation > div { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.performance-equation div > span { color: #647c70; font-size: 11px; text-align: center; line-height: 1.7; }
.performance-equation strong { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: center; }
.performance-equation .recognized strong { color: var(--accent); }
.math-symbol { color: #82988d; text-align: center; }
.performance-breakdown { margin: 13px 0 0; padding-left: 17px; color: #5f796c; font-size: 12px; line-height: 1.8; }
.tier-description { padding: 12px; margin: 14px 0 0; border: 1px solid #d5e5dc; border-radius: 8px; color: #365e4c; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.detail-note { margin: 12px 0 0; color: #647d70; font-size: 12px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.detail-note:empty { display: none; }
.discount-table { width: 100%; margin-top: 16px; border-collapse: collapse; table-layout: fixed; }
.discount-table th { padding: 10px 8px 10px 0; text-align: left; color: #6b8276; border-bottom: 1px solid #d5e5dc; font-size: 11px; font-weight: 500; }
.discount-table th:first-child { width: 26%; }
.discount-table th:last-child { width: 24%; text-align: right; }
.discount-table td { padding: 14px 8px 14px 0; border-bottom: 1px solid #d5e5dc; vertical-align: top; font-size: 12px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.discount-table td:first-child { font-weight: 650; }
.discount-table td:nth-child(2) { color: #5e786b; }
.discount-table td:last-child { padding-right: 0; color: var(--accent); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.discount-table tr:last-child td { border-bottom: 0; }
.calculation-formula { margin: 12px 0 0; color: #4e7060; font-size: 13px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.page-footer { padding: 25px 7px 0; color: #78877f; font-size: 11px; line-height: 1.9; text-align: center; }
.page-footer > p { margin: 0 0 12px; word-break: keep-all; }
.page-footer a { color: #617b6d; text-underline-offset: 3px; }
.calculation-scope { max-width: 550px; margin: 0 auto 16px; }
.calculation-scope > summary { cursor: pointer; }
.calculation-scope p { text-align: left; word-break: keep-all; }
.notice { padding: 14px; background: #fff4da; border-radius: 9px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .calculator-shell { width: min(100% - 28px, 440px); padding-top: 32px; }
  .page-heading { padding: 0 4px; margin-bottom: 24px; }
  .intro { font-size: 13px; }
  .calculator-card, .results-card { border-radius: 16px; }
  .conditions, .spending { padding: 23px 19px; }
  .card-selects { grid-template-columns: 1fr; gap: 17px; }
  .benefit-section { padding: 18px 13px 0; }
  .optional-section { padding: 16px 13px; }
  .amount-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .count-row { grid-template-columns: 1fr; gap: 10px; }
  .count-row > p { grid-column: 1; }
  .group-note { width: 100%; margin-left: 0; }
  .results-card { padding: 26px 21px; }
  .result-details > div { font-size: 13px; }
  .performance-equation { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .performance-equation > div { flex-direction: row; justify-content: space-between; align-items: center; }
  .performance-equation div > span { text-align: left; }
  .performance-equation strong { text-align: right; font-size: 14px; }
  .performance-equation .recognized { border-top: 1px solid #d5e5dc; padding-top: 12px; }
  .math-symbol { display: none; }
  .discount-table, .discount-table tbody { display: block; }
  .discount-table thead { display: none; }
  .discount-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 15px 0; border-bottom: 1px solid #d5e5dc; }
  .discount-table tr:last-child { border-bottom: 0; }
  .discount-table td { border: 0; padding: 0; }
  .discount-table td:first-child { grid-column: 1; grid-row: 1; }
  .discount-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .discount-table td:last-child { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
