:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #edf3f0;
  --ink: #17231f;
  --muted: #66736d;
  --line: #dce5e0;
  --brand: #173f35;
  --brand-2: #286957;
  --accent: #d9a441;
  --danger: #ba493c;
  --shadow: 0 24px 70px rgba(23, 63, 53, .11);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 28px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--brand-2); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: 1; letter-spacing: -.05em; }
.hero-copy { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.minimum-card { min-width: 250px; padding: 24px 26px; border-radius: 24px; background: var(--brand); color: white; box-shadow: var(--shadow); }
.minimum-card span, .minimum-card small { display: block; color: rgba(255,255,255,.72); }
.minimum-card strong { display: block; margin: 5px 0 2px; font-size: 34px; letter-spacing: -.04em; }
.notice { display: flex; gap: 16px; padding: 16px 20px; margin-bottom: 20px; border: 1px solid #eadab9; border-radius: 16px; background: #fff9eb; color: #6d5729; line-height: 1.55; }
.calculator-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px; border-bottom: 1px solid var(--line); background: #f8faf9; }
.mode-tab { padding: 15px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-weight: 800; }
.mode-tab.active { background: var(--brand); color: white; }
.calculator-grid { display: grid; grid-template-columns: 1.05fr .95fr; }
form { padding: 38px; }
.result-panel { padding: 42px; background: var(--brand); color: white; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 22px; }
.text-button { border: 0; background: transparent; color: var(--brand-2); font-weight: 700; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; font-weight: 750; }
.field small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .2s ease; }
.input-wrap:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(40,105,87,.1); }
.input-wrap input { width: 100%; min-width: 0; padding: 15px 4px 15px 15px; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 750; }
.input-wrap b { padding: 0 15px 0 8px; color: var(--muted); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secondary-button, .primary-button { border: 0; border-radius: 14px; font-weight: 800; }
.secondary-button { padding: 12px 15px; background: var(--surface-soft); color: var(--brand); }
.full { width: 100%; margin: -5px 0 22px; }
.primary-button { width: 100%; padding: 17px; margin-top: 18px; background: var(--brand); color: white; font-size: 17px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.check-row strong, .check-row small { display: block; }
.check-row small { margin-top: 4px; color: var(--muted); }
.monthly-options { margin-top: 22px; }
.hidden { display: none !important; }
.rate-settings { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.rate-settings summary { padding: 15px 16px; font-weight: 800; cursor: pointer; }
.rate-settings > p { margin: 0; padding: 0 16px 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 14px; }
.rate-grid label { position: relative; color: var(--muted); font-size: 12px; }
.rate-grid input { width: 100%; margin-top: 6px; padding: 11px 30px 11px 10px; border: 1px solid var(--line); border-radius: 10px; }
.rate-grid span { position: absolute; right: 12px; bottom: 11px; }
.compact { padding: 0 16px 14px; }
.result-label { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; font-weight: 800; }
.result-total { display: block; margin-top: 8px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.05em; }
.result-caption { margin: 9px 0 30px; color: rgba(255,255,255,.72); line-height: 1.5; }
.summary-list { border-top: 1px solid rgba(255,255,255,.15); }
.summary-list > div, .deduction-list > div, .deduction-heading { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-list span, .deduction-list span { color: rgba(255,255,255,.7); }
.deduction-box { margin-top: 24px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.08); }
.deduction-heading { padding-top: 0; font-weight: 800; }
.net-pay { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; }
.net-pay strong { color: #f5ce7f; font-size: 26px; }
.formula-box { margin-top: 24px; padding: 15px; border-radius: 13px; background: rgba(0,0,0,.13); color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.5; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.guide-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.guide-grid h2 { margin: 0 0 10px; font-size: 17px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 4px 0; color: var(--muted); font-size: 13px; }
footer a { color: var(--brand-2); font-weight: 800; text-decoration: none; }
@media (max-width: 850px) {
  .hero { align-items: stretch; flex-direction: column; }
  .minimum-card { min-width: 0; }
  .calculator-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 28px; }
  .notice { flex-direction: column; gap: 5px; }
  form, .result-panel { padding: 24px 20px; }
  .two-columns, .rate-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

.rate-grid select { width: 100%; margin-top: 6px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.cost-row { display:flex; justify-content:space-between; gap:20px; padding:16px 0 0; color:rgba(255,255,255,.82); }
@media (max-width: 620px) { .mode-tabs { grid-template-columns: 1fr; } }

.monthly-hour-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.monthly-hour-fields.hidden { display: none; }
.field-disabled { opacity: 0.55; }
.field-disabled input:disabled { cursor: not-allowed; }
@media (max-width: 640px) {
  .monthly-hour-fields { grid-template-columns: 1fr; }
}
