  /* Layout: 좌측 정렬 단일 칼럼(모바일) → 데스크톱은 입력 좁은 열 + 명세서형 결과 넓은 열. 홈은 분류별 계산기 색인
   글꼴: 설계서 9장에 따라 웹폰트 없이 시스템 글꼴만 사용 (한글 웹폰트 1MB+ 회피) */
  :root {
    --paper: #f4f6f4;
    --surface: #ffffff;
    --ink: #16201b;
    --muted: #5a665f;
    --line: #d3dad5;
    --accent: #2c6a4d; /* 만원권 녹색 */
    --accent-soft: #e1ede6;
    --gold: #a9801f; /* 오만원권 황토 */
    --gold-soft: #f5ecd3;
    --down: #2453c2; /* 국내 금융 관례: 감소 = 파랑 */
    --up: #c3342b; /* 증가 = 빨강 */
    --ad: #eef0ee;
    --shadow: rgba(22, 32, 27, 0.28);
    --font-body:
      "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "맑은 고딕",
      "Noto Sans KR", system-ui, sans-serif;
    --font-num: "SF Mono", ui-monospace, Menlo, Consolas, "D2Coding", monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #0f1412;
      --surface: #171e1a;
      --ink: #e5ebe7;
      --muted: #98a49d;
      --line: #2b3530;
      --accent: #72c097;
      --accent-soft: #1c3127;
      --gold: #ddb65a;
      --gold-soft: #2f2817;
      --down: #86a6f2;
      --up: #f1857c;
      --ad: #1b221e;
      --shadow: rgba(0, 0, 0, 0.6);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #0f1412;
    --surface: #171e1a;
    --ink: #e5ebe7;
    --muted: #98a49d;
    --line: #2b3530;
    --accent: #72c097;
    --accent-soft: #1c3127;
    --gold: #ddb65a;
    --gold-soft: #2f2817;
    --down: #86a6f2;
    --up: #f1857c;
    --ad: #1b221e;
    --shadow: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }

  * {
    box-sizing: border-box;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
  }
  .wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding-inline: 16px;
  }
  .num {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
  }
  a {
    color: var(--accent);
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .draftbar {
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
  }
  .draftbar .wrap {
    padding-block: 6px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  header.site {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 5;
  }
  header.site .wrap {
    display: flex;
    align-items: center;
    gap: 8px 24px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .brand {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.04em;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .brand::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--accent);
    align-self: center;
  }
  .brand small {
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: -0.01em;
  }
  nav.tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
  nav.tabs button {
    background: none;
    border: 0;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
  }
  nav.tabs button[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--accent);
  }
  nav.tabs button:hover {
    color: var(--ink);
  }

  main {
    padding-block: 28px 56px;
  }
  .page-head {
    display: grid;
    gap: 6px;
    margin-bottom: 22px;
  }
  .crumb {
    font-size: 12px;
    color: var(--muted);
  }
  .crumb button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
  }
  h1 {
    font-weight: 800;
    font-size: clamp(26px, 4.4vw, 36px);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }
  h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  h3 {
    font-size: 15px;
    margin: 0 0 8px;
  }
  .basis {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
  .basis b {
    color: var(--ink);
    font-weight: 600;
  }
  .lede {
    color: var(--muted);
    max-width: 62ch;
    margin: 0;
  }
  .label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
  .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: 1px;
    white-space: nowrap;
  }
  .badge.est {
    background: var(--gold-soft);
    color: var(--gold);
  }
  .badge.new {
    background: var(--accent);
    color: var(--surface);
  }
  .badge.soon {
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 500;
  }
  .ad {
    border: 1px dashed var(--line);
    background: var(--ad);
    color: var(--muted);
    font-size: 12px;
    display: grid;
    place-items: center;
    min-height: 90px;
    text-align: center;
    padding: 8px;
  }
  .note {
    font-size: 12px;
    color: var(--muted);
  }
  .divider {
    border-top: 1px dashed var(--line);
    padding-top: 14px;
    font-weight: 700;
    font-size: 14px;
  }

  /* 상단 메뉴: 분류에 마우스를 올리면 그 분류의 계산기 목록이 열림 */
  header.site .wrap {
    padding-block: 0;
    flex-wrap: nowrap;
  }
  .brand {
    padding-block: 14px;
  }
  .mainnav {
    flex: 1 1 auto;
    min-width: 0;
  }
  .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
  }
  .menu-item {
    position: relative;
  }
  .menu-top {
    background: none;
    border: 0;
    padding: 18px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  .menu-top::after {
    content: "";
    border: 4px solid transparent;
    border-top-color: var(--muted);
    margin-top: 4px;
  }
  .menu-item:hover .menu-top,
  .menu-item.open .menu-top {
    color: var(--accent);
  }
  .menu-item.current .menu-top {
    box-shadow: inset 0 -3px 0 var(--accent);
  }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    z-index: 20;
    padding-top: 0;
  }
  .menu-item:nth-last-child(-n + 2) .dropdown {
    left: auto;
    right: 0;
  }
  .menu-item:hover .dropdown,
  .menu-item:focus-within .dropdown,
  .menu-item.open .dropdown {
    display: block;
  }
  .dd-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    width: 320px;
    padding: 6px;
    box-shadow: 0 16px 32px -16px var(--shadow);
  }
  .dd-inner a {
    display: block;
    padding: 9px 10px;
    text-decoration: none;
    color: var(--ink);
  }
  .dd-inner a:hover,
  .dd-inner a:focus-visible {
    background: var(--accent-soft);
    outline: none;
  }
  .dd-inner a[aria-current="page"] .t {
    color: var(--accent);
  }
  .dd-inner .t {
    font-weight: 700;
    font-size: 14px;
  }
  .dd-inner .d {
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
  .dd-soon {
    margin: 4px 10px 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
  }
  .menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--ink);
    background: var(--surface);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  @media (max-width: 760px) {
    header.site .wrap {
      flex-wrap: wrap;
    }
    .menu-toggle {
      display: block;
    }
    .mainnav {
      display: none;
      flex-basis: 100%;
      max-height: 70vh;
      overflow-y: auto;
      padding-bottom: 8px;
    }
    header.site.menu-open .mainnav {
      display: block;
    }
    .menu {
      flex-direction: column;
      gap: 0;
    }
    .menu-item {
      border-top: 1px solid var(--line);
    }
    .menu-top {
      padding: 12px 0 4px;
      cursor: default;
      color: var(--muted);
      font-size: 12px;
    }
    .menu-top::after {
      display: none;
    }
    .menu-item.current .menu-top {
      box-shadow: none;
    }
    .dropdown {
      position: static;
      display: block;
    }
    .dd-inner {
      width: auto;
      border: 0;
      box-shadow: none;
      padding: 0 0 6px;
    }
    .dd-inner a {
      padding: 8px 0;
    }
  }

  @media (max-width: 520px) {
    .brand small {
      display: none;
    }
  }

  /* 홈 상단: 검색 + 많이 찾는 계산기 (검색량 순위) */
  .hero { display: grid; gap: 14px; padding-block: 8px 28px; }
  .hero h1 { font-size: clamp(28px, 5vw, 40px); }
  .hero-search { position: relative; max-width: 680px; }
  .hero-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  .hero-search .input { font-family: var(--font-body); font-size: 17px; padding: 15px 16px 15px 46px; border: 2px solid var(--ink); }
  .hero-search .input:focus { border-color: var(--accent); }
  .search-results { max-width: 680px; background: var(--surface); border: 1px solid var(--line); margin-top: -8px; }
  .search-results a { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; padding: 11px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
  .search-results a:hover { background: var(--accent-soft); }
  .search-results .k { grid-row: span 2; font-size: 12px; color: var(--muted); padding-top: 2px; }
  .search-results .t { font-weight: 700; }
  .search-results .d { font-size: 13px; color: var(--muted); }
  .sr-empty, .sr-soon { margin: 0; padding: 11px 16px; font-size: 13px; color: var(--muted); }
  .popular { margin-bottom: 44px; }
  .pop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
  .pop-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
  .pop-top.feat-grid { margin-bottom: 0; }
  .pop-tile { padding: 20px 20px 18px; gap: 6px; }
  .pop-tile .rank { font-family: var(--font-num); font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent); }
  .pop-tile .t { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
  .pop-tile .d { font-size: 13px; color: var(--muted); }
  .pop-tile .vol { font-size: 12px; color: var(--muted); margin-top: 6px; font-family: var(--font-num); }
  .pop-rest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .pop-rest li { border-bottom: 1px solid var(--line); }
  .pop-rest a { display: flex; align-items: baseline; gap: 12px; padding: 12px 2px; text-decoration: none; color: var(--ink); }
  .pop-rest a:hover .t { color: var(--accent); text-decoration: underline; }
  .pop-rest .rank { font-family: var(--font-num); font-weight: 700; color: var(--muted); width: 1.5em; }
  .pop-rest .t { font-weight: 700; font-size: 15px; min-width: 0; }
  .pop-rest .vol { margin-left: auto; font-family: var(--font-num); font-size: 12px; color: var(--muted); }
  @media (max-width: 820px) { .pop-rest { grid-template-columns: minmax(0, 1fr); } }

  /* 홈 */
  .intro {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
  }
  .feat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 40px;
  }
  .feat {
    background: var(--surface);
    padding: 18px 18px 16px;
    text-decoration: none;
    color: var(--ink);
    display: grid;
    gap: 4px;
    align-content: start;
  }
  .feat:hover {
    background: var(--accent-soft);
  }
  .feat .k {
    font-size: 12px;
    color: var(--muted);
  }
  .feat .t {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  .feat .d {
    font-size: 13px;
    color: var(--muted);
  }
  .feat .go {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
  }
  @media (max-width: 820px) {
    .feat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .dir-soon {
    font-size: 12px;
    color: var(--muted);
    padding-top: 8px;
  }
  .home-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .dday {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    padding: 22px 22px 18px;
  }
  .dday-top {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
  }
  .dday-count {
    font-family: var(--font-num);
    font-weight: 700;
    font-size: clamp(48px, 9vw, 76px);
    line-height: 1;
    letter-spacing: -0.05em;
  }
  .dday-date {
    color: var(--muted);
    font-size: 14px;
  }
  .dday-net {
    margin-top: 14px;
    font-size: 16px;
  }
  .dday-net strong {
    font-family: var(--font-num);
    font-size: 22px;
    font-weight: 700;
  }
  .cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-top: 18px;
    font-family: var(--font-num);
    font-size: 11px;
  }
  .cal span {
    aspect-ratio: 1.5;
    display: grid;
    place-items: center;
    border-radius: 2px;
    color: var(--muted);
  }
  .cal .h {
    font-family: var(--font-body);
    font-weight: 600;
    aspect-ratio: auto;
    padding-bottom: 2px;
  }
  .cal .past {
    opacity: 0.35;
  }
  .cal .today {
    outline: 1px solid var(--ink);
    color: var(--ink);
  }
  .cal .pay {
    background: var(--accent);
    color: var(--surface);
    font-weight: 700;
  }
  .cal .gap {
    background: var(--accent-soft);
    color: var(--ink);
  }
  .dday-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }
  .dday-form .field {
    flex: 1 1 140px;
  }

  .news {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    border-top: 2px solid var(--ink);
  }
  .news li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .news time {
    font-family: var(--font-num);
    font-size: 12px;
    color: var(--muted);
    padding-top: 2px;
  }

  .dir-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 44px 0 18px;
  }
  .dir-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
  }
  .dir-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 340px;
  }
  .dir-search .input {
    font-family: var(--font-body);
    font-size: 15px;
  }
  .dir-count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    font-family: var(--font-num);
  }
  .dir {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 28px;
    align-items: start;
  }
  .dir-col h3 {
    border-top: 2px solid var(--ink);
    padding-top: 8px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }
  .dir-col h3 span {
    font-family: var(--font-num);
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
  }
  .dir-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .dir-col li {
    border-bottom: 1px solid var(--line);
  }
  .dir-col a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: var(--ink);
  }
  .dir-col a:hover .t {
    color: var(--accent);
    text-decoration: underline;
  }
  .dir-col .t {
    font-weight: 700;
    font-size: 14px;
  }
  .dir-col .d {
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
  .dir-col .off {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
  }
  .dir-empty {
    color: var(--muted);
    font-size: 14px;
  }

  /* 폼 */
  .field {
    display: grid;
    gap: 4px;
  }
  .field > label,
  .field > .flabel {
    font-size: 13px;
    font-weight: 700;
  }
  .field .hint {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-num);
    min-height: 1.2em;
  }
  .input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--ink);
    padding: 9px 10px;
    border-radius: 0;
    font-family: var(--font-num);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
  }
  .input.txt,
  select.input {
    font-family: var(--font-body);
    font-size: 15px;
  }
  .input:focus {
    outline: none;
    border-bottom-color: var(--accent);
    background: var(--accent-soft);
  }
  .suffix {
    position: relative;
  }
  .suffix .input {
    padding-right: 44px;
  }
  .suffix span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
  }
  .seg {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid var(--ink);
    width: fit-content;
    max-width: 100%;
  }
  .seg button {
    background: var(--surface);
    border: 0;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 14px;
  }
  .seg button + button {
    border-left: 1px solid var(--ink);
  }
  .seg button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
  }
  .stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
    background: var(--surface);
    width: fit-content;
  }
  .stepper button {
    width: 38px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--muted);
  }
  .stepper button:hover {
    color: var(--ink);
    background: var(--accent-soft);
  }
  .stepper output {
    min-width: 44px;
    display: grid;
    place-items: center;
    font-family: var(--font-num);
    font-size: 16px;
    border-inline: 1px solid var(--line);
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .chips button {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 3px 9px;
    font-size: 12px;
    font-family: var(--font-num);
    cursor: pointer;
    border-radius: 2px;
  }
  .chips button:hover {
    border-color: var(--ink);
  }
  .btn {
    border: 1px solid var(--ink);
    background: var(--surface);
    padding: 7px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
  }
  .btn:hover {
    background: var(--accent-soft);
  }
  .btn.primary {
    background: var(--ink);
    color: var(--paper);
  }

  .calc-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .calc-form {
    display: grid;
    gap: 18px;
  }
  .row2 {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }
  .row2 > .field {
    flex: 1 1 120px;
  }
  .stack {
    display: grid;
    gap: 20px;
  }

  /* 부가세 여러 줄 */
  .vrows {
    display: grid;
    gap: 6px;
  }
  .vrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 32px;
    gap: 6px;
  }
  .vrow .input {
    padding: 8px;
    font-size: 15px;
  }
  .vrow .del {
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
  }
  .vrow .del:hover {
    color: var(--up);
    border-color: var(--up);
  }
  .copybox {
    width: 100%;
    min-height: 90px;
    margin-top: 8px;
    font-family: var(--font-num);
    font-size: 13px;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 8px;
  }

  /* 명세서형 결과 */
  .stub {
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .stub-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 2px solid var(--ink);
  }
  .stub-head .title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.25em;
  }
  .stub-head .meta {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-num);
  }
  .stub-net {
    padding: 20px 20px 16px;
    display: grid;
    gap: 4px;
  }
  .stub-net .big {
    font-family: var(--font-num);
    font-weight: 700;
    font-size: clamp(32px, 6.5vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
  }
  .stub-net .big .won {
    font-family: var(--font-body);
    font-size: 0.42em;
    font-weight: 700;
    margin-left: 4px;
    letter-spacing: 0;
  }
  .stub-net .big.pos {
    color: var(--accent);
  }
  .stub-net .big.neg {
    color: var(--up);
  }
  .stub-net .sub {
    font-size: 13px;
    color: var(--muted);
  }
  .stub-net .sub .num {
    color: var(--ink);
  }
  .perf {
    height: 0;
    border-top: 2px dashed var(--line);
    margin: 0 12px;
    position: relative;
  }
  .perf::before,
  .perf::after {
    content: "";
    position: absolute;
    top: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .perf::before {
    left: -21px;
  }
  .perf::after {
    right: -21px;
  }
  .stub-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .stub-col {
    padding: 14px 20px 18px;
    min-width: 0;
  }
  .stub-col + .stub-col {
    border-left: 1px solid var(--line);
  }
  .stub-col h3 {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
  }
  .lines {
    display: grid;
    gap: 2px;
    margin: 0;
  }
  .lines div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    padding: 3px 0;
  }
  .lines dt {
    color: var(--ink);
    min-width: 0;
  }
  .lines dd {
    margin: 0;
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .lines .sum {
    border-top: 1px solid var(--ink);
    margin-top: 6px;
    padding-top: 7px;
    font-weight: 700;
  }
  .lines .minus dd {
    color: var(--muted);
  }
  .lines .rate {
    color: var(--muted);
    font-size: 11px;
    font-family: var(--font-num);
    margin-left: 4px;
  }
  .stub-foot {
    border-top: 1px solid var(--line);
    padding: 10px 20px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .warn {
    margin: 0 20px 16px;
    padding: 8px 12px;
    background: var(--gold-soft);
    color: var(--ink);
    font-size: 13px;
  }

  /* 비교 */
  .verdict {
    border-left: 4px solid var(--down);
    padding: 6px 0 6px 16px;
    margin-bottom: 22px;
  }
  .verdict .line1 {
    font-size: clamp(20px, 3.6vw, 26px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.35;
    text-wrap: balance;
  }
  .verdict .line1 .num {
    color: var(--down);
  }
  .verdict .line2 {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
  }
  .cmp-input {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .cmp-input .field {
    flex: 0 1 260px;
  }
  .tablebox {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .tablebox.flat {
    border: 0;
  }
  .tablebox.scroll {
    max-height: 420px;
    overflow-y: auto;
  }
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
  }
  th,
  td {
    padding: 9px 14px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  th:first-child,
  td:first-child {
    text-align: left;
  }
  thead th {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 2px solid var(--ink);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1;
  }
  td.n {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
  }
  td.w {
    white-space: normal;
    text-align: left;
    color: var(--muted);
    font-size: 13px;
    min-width: 180px;
  }
  tr.total td {
    font-weight: 700;
    border-top: 2px solid var(--ink);
    border-bottom: 0;
  }
  tr.hl td {
    background: var(--accent-soft);
    font-weight: 700;
  }
  .d-down {
    color: var(--down);
  }
  .d-up {
    color: var(--up);
  }
  .d-zero {
    color: var(--muted);
  }
  tbody tr:hover td {
    background: var(--accent-soft);
  }
  tr.adrow td {
    padding: 10px;
    background: var(--paper);
  }
  tr.adrow:hover td {
    background: var(--paper);
  }
  td a {
    text-decoration: none;
    font-weight: 700;
  }

  .rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 2px solid var(--ink);
    margin-top: 28px;
  }
  .rates > div {
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .rates .v {
    font-family: var(--font-num);
    font-size: 18px;
    font-weight: 700;
  }
  .rates .v .arrow {
    color: var(--muted);
    font-weight: 400;
    margin-inline: 4px;
  }
  .rates .c {
    font-size: 12px;
    color: var(--muted);
  }

  .blocks {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    margin-top: 44px;
  }
  .blocks section + section {
    margin-top: 32px;
  }
  .how dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 18px;
    margin: 0;
    font-size: 14px;
  }
  .how dt {
    color: var(--muted);
  }
  .how dd {
    margin: 0;
  }
  .faq {
    margin-top: 36px;
    max-width: 760px;
  }
  details {
    border-bottom: 1px solid var(--line);
  }
  details summary {
    cursor: pointer;
    padding: 11px 0;
    font-weight: 700;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  details summary::after {
    content: "+";
    font-family: var(--font-num);
    color: var(--muted);
  }
  details[open] summary::after {
    content: "−";
  }
  details p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--muted);
    max-width: 62ch;
  }
  .side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    display: grid;
  }
  .side-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .side-list .src {
    display: block;
    font-size: 11px;
    color: var(--muted);
  }

  .basis-box {
    margin-top: 28px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 18px;
    font-size: 13px;
    border-top: 2px solid var(--ink);
    padding-top: 12px;
    max-width: 760px;
  }
  .basis-box dt {
    color: var(--muted);
  }
  .basis-box dd {
    margin: 0;
  }
  .related {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: baseline;
    font-size: 14px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .related .label {
    margin-right: 4px;
  }
  .disclaimer {
    margin-top: 20px;
    padding: 12px 14px;
    background: var(--gold-soft);
    font-size: 13px;
    color: var(--ink);
  }

  footer.site {
    border-top: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    color: var(--muted);
  }
  footer.site .wrap {
    padding-block: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
  }
  footer.site nav {
    display: flex;
    gap: 16px;
  }
  footer.site a {
    color: var(--muted);
  }

  @media (max-width: 820px) {
    .home-top,
    .calc-layout,
    .blocks {
      grid-template-columns: minmax(0, 1fr);
      gap: 28px;
    }
  }
  @media (max-width: 520px) {
    .stub-cols {
      grid-template-columns: minmax(0, 1fr);
    }
    .stub-col + .stub-col {
      border-left: 0;
      border-top: 1px solid var(--line);
    }
    .stub-head,
    .stub-net,
    .stub-col,
    .stub-foot {
      padding-inline: 16px;
    }
    th,
    td {
      padding: 8px 10px;
    }
    .news li {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    .basis-box {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    .basis-box dd {
      margin-bottom: 8px;
    }
    .vrow {
      grid-template-columns: minmax(0, 1fr) minmax(0, 120px) 32px;
    }
  }

/* ===== 운영 사이트 추가분 (시안에서 옮기며 보강) ===== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; width: 100%; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
a.brand { color: var(--ink); text-decoration: none; }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.row-actions { display: flex; gap: 8px; margin-top: 6px; }
.copy-fallback { padding: 0 20px 16px; }
.ad-wrap { margin-top: 20px; min-height: 100px; }
.ad { margin-top: 20px; }
h2.sec { margin-top: 36px; }
.how { margin-top: 40px; max-width: 760px; }
.near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.near li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.near a { font-weight: 700; text-decoration: none; }
.doc { max-width: 720px; padding-block: 8px 24px; }
.doc h2 { margin-top: 28px; }
.doc p { line-height: 1.75; }
.selectable { user-select: all; font-family: var(--font-num); }
.cmp-input .chips { padding-bottom: 26px; }
.verdict .line1 .num { white-space: nowrap; }

/* 휴대폰: iOS는 16px 미만 입력칸에 초점이 가면 화면을 확대하므로 16px 이상 */
.input.txt, select.input, .dir-search .input, .vrow .input { font-size: 16px; }
@media (max-width: 520px) {
  main { padding-block: 20px 40px; }
  .hero { padding-block: 0 20px; }
  .hero-search .input { font-size: 16px; padding-block: 13px; }
  .pop-tile { padding: 16px 14px 14px; }
  .pop-tile .rank { font-size: 24px; }
  .pop-tile .t { font-size: 16px; }
  .pop-tile .d { display: none; }
  .calc-layout { gap: 20px; }
  .stub-net .big { font-size: 34px; }
  .dday { padding: 18px 16px 16px; }
  .cmp-input .chips { padding-bottom: 0; }
  .seg button { padding: 8px 10px; }
  .stub-foot .btn { width: 100%; }
  footer.site nav { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  td.w { min-width: 0; max-width: 7.5em; white-space: normal; word-break: break-all; }
  .stub .tablebox.flat th, .stub .tablebox.flat td { padding: 7px 6px; font-size: 13px; }
  .stub .tablebox.flat th:first-child, .stub .tablebox.flat td:first-child { padding-left: 0; }
}
@media (max-width: 520px) {
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
  th:first-child, td:first-child { padding-left: 10px; }
  .stub .tablebox.flat th:first-child, .stub .tablebox.flat td:first-child { padding-left: 0; }
  .yr { display: none; }
  .badge { font-size: 10px; padding: 1px 4px; }
}
@media (max-width: 520px) { .opt { display: none; } }
@media (max-width: 380px) {
  table { font-size: 12px; }
  th, td { padding: 7px 4px; }
  th:first-child, td:first-child { padding-left: 8px; }
  .wrap { padding-inline: 14px; }
}

/* ===== 월급·연봉 페이지 설명 본문 (src/partials/pay-guides.js) ===== */
.guide { max-width: 760px; }
.guide h2 { margin-top: 36px; }
.guide h3 { margin-top: 24px; }
.guide p, .guide li { line-height: 1.75; }
.guide ul, .guide ol.steps { padding-left: 1.3em; }
.guide li + li { margin-top: 6px; }

/* ===== 해설 글 (계산기 아래 "이렇게 계산합니다", 계산 예시, 홈 소개·연봉 표) — src/partials/guide.js ===== */
.calc-guide { margin-top: 40px; max-width: 760px; }
.calc-guide h2 { margin-bottom: 10px; }
.calc-guide h3 { margin-top: 22px; }
.calc-guide p { line-height: 1.75; margin: 10px 0; }
.calc-guide .steps, .calc-guide .cg-list, .doc .cg-list { margin: 8px 0 12px; padding-left: 1.4em; line-height: 1.75; }
.calc-guide .steps li, .calc-guide .cg-list li, .doc .cg-list li { margin: 4px 0; }
.cg-table { margin: 12px 0; }
.cg-table caption { text-align: left; font-size: 13px; color: var(--muted); padding: 8px 14px 0; }
.cg-table td.t, .cg-table th.t { white-space: normal; text-align: left; min-width: 9em; }
.calc-guide .ex { margin: 16px 0; padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--accent); }
.calc-guide .ex .ex-title { margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.calc-guide .ex p { margin: 4px 0; font-size: 14px; }
.home-sal { margin-top: 8px; margin-bottom: 32px; }
.home-sal .pop-head .more { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--accent); }
.home-sal .note { margin: 6px 0 10px; }
.home-sal .tablebox { max-width: 760px; }
.home-about { margin-top: 44px; max-width: 760px; }
.home-about p { line-height: 1.75; }
.home-about h3 { margin-top: 20px; }
.home-about .tablebox { margin: 8px 0; }
@media (max-width: 520px) {
  .cg-table td.t, .cg-table th.t { min-width: 7em; }
  .calc-guide .ex { padding: 10px 12px; }
}
/* ===== 해설 글 끝 ===== */

/* ===== 입력 도움말(?), 결과 공유, 모바일 결과 요약 막대 ===== */
.label-row { display: flex; align-items: center; gap: 6px; }
.label-row > label { font-size: 13px; font-weight: 700; }
.tip {
  position: relative; display: inline-grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted);
  font-size: 11px; font-weight: 700; line-height: 1; cursor: help; vertical-align: 1px;
}
.tip:hover::after, .tip:focus::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  width: max-content; max-width: min(260px, 80vw); z-index: 30;
  padding: 8px 10px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 400; line-height: 1.5; white-space: normal; text-align: left;
}
.tip:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px 14px; }
.btn-ghost {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); }
.share-msg { font-size: 12px; color: var(--accent); }
.sticky-sum { display: none; }
@media (max-width: 820px) {
  /* 하단 고정 광고와 겹치지 않게 화면 위쪽에 붙인다 */
  .sticky-sum:not([hidden]) {
    display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    justify-content: space-between; align-items: baseline;
    padding: 10px 16px; background: var(--ink); color: var(--paper);
    font-size: 14px; box-shadow: 0 2px 8px var(--shadow);
  }
  .sticky-sum b { font-size: 18px; }
}
/* ===== 입력 도움말 끝 ===== */

/* ===== 홈 첫 화면: 사이트 이름 + 월급날 위젯 + 연봉 표 ===== */
.hero-sub { margin: -6px 0 0; color: var(--muted); font-size: 16px; }
.home-top .home-sal { margin: 0; }
.home-top .home-sal .tablebox { max-width: none; }
.home-news { margin-top: 36px; max-width: 760px; }
/* ===== 홈 첫 화면 끝 ===== */

/* ===== 메뉴·분류 한 줄 설명 ===== */
.dd-hint, .dir-hint { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
/* ===== 메뉴 설명 끝 ===== */

/* ===== 연봉 계산기: 한 줄 요약, 공제 도넛, 다음 행동 카드, 두 연봉 비교, 최근 계산 (src/lib/salary-view.js, src/client/salary.js) ===== */
:root {
  --dn-net: var(--accent);
  --dn-np: var(--gold);
  --dn-hi: var(--down);
  --dn-ltc: #8aa3e0;
  --dn-ei: #7a8a82;
  --dn-incomeTax: var(--up);
  --dn-localTax: #e39a94;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dn-ltc: #4d66a8; --dn-ei: #6d7c74; --dn-localTax: #a8544d; }
}
:root[data-theme="dark"] { --dn-ltc: #4d66a8; --dn-ei: #6d7c74; --dn-localTax: #a8544d; }
.plain { margin: 0; padding: 4px 16px 10px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.sal-cmp .plain, .next-acts .plain { padding: 0 0 10px; }
.donut { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.donut svg { width: 132px; height: 132px; flex: none; }
.donut circle.dn-net { stroke: var(--dn-net); }
.donut circle.dn-np { stroke: var(--dn-np); }
.donut circle.dn-hi { stroke: var(--dn-hi); }
.donut circle.dn-ltc { stroke: var(--dn-ltc); }
.donut circle.dn-ei { stroke: var(--dn-ei); }
.donut circle.dn-incomeTax { stroke: var(--dn-incomeTax); }
.donut circle.dn-localTax { stroke: var(--dn-localTax); }
.donut .dn-t1 { font-size: 10px; fill: var(--muted); }
.donut .dn-t2 { font-size: 17px; font-weight: 700; fill: var(--ink); font-family: var(--font-num); }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; font-size: 13px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto 54px; gap: 8px; align-items: center; padding: 2px 0; }
.donut-legend .sw { width: 12px; height: 12px; display: inline-block; }
.donut-legend .sw.dn-net { background: var(--dn-net); }
.donut-legend .sw.dn-np { background: var(--dn-np); }
.donut-legend .sw.dn-hi { background: var(--dn-hi); }
.donut-legend .sw.dn-ltc { background: var(--dn-ltc); }
.donut-legend .sw.dn-ei { background: var(--dn-ei); }
.donut-legend .sw.dn-incomeTax { background: var(--dn-incomeTax); }
.donut-legend .sw.dn-localTax { background: var(--dn-localTax); }
.donut-legend .num { text-align: right; }
.donut-legend .pc { color: var(--muted); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.next-card {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.next-card:hover { border-color: var(--accent); }
.next-card b { font-size: 14px; }
.next-card span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.next-card em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent); margin-top: auto; }
.hist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sal-hist ol { margin: 8px 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.sal-hist .num { color: var(--muted); }
/* ===== 연봉 계산기 추가분 끝 ===== */

/* ===== 대출·저축 (money): 한 줄 요약, 비교, 탭, 차트, 최근 기록, 인쇄 ===== */
.mn-sum { margin: 0; padding: 12px 16px 4px; font-size: 15px; line-height: 1.6; font-weight: 600; }
.mn-cmp { margin: 6px 0 0; padding: 0 16px 0 34px; font-size: 14px; line-height: 1.6; }
.mn-cmp li + li { margin-top: 4px; }
.mn-cmp .num { font-weight: 700; color: var(--accent); }
.mn-cmp1 { margin: 6px 0 0; padding: 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mn-cta { margin: 12px 0 20px; }
.mn-cta .btn-ghost { display: inline-block; text-decoration: none; }
.mn-tabbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.mn-tabs { display: flex; gap: 2px; }
.mn-tabs [role="tab"] { background: none; border: 0; padding: 10px 14px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.mn-tabs [role="tab"][aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.mn-tools { display: flex; gap: 6px; padding-bottom: 6px; }
.mn-tabbar + [role="tabpanel"] .tablebox, [role="tabpanel"] .tablebox { margin-top: 12px; }
.ln-chart { margin-top: 12px; display: grid; gap: 16px; }
.ln-fig { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.ln-fig figcaption { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ln-fig svg { width: 100%; height: auto; display: block; }
.ln-fig svg text { font-size: 11px; fill: var(--muted); font-family: var(--font-num); }
.ln-fig .c-prin { fill: var(--accent); }
.ln-fig .c-int { fill: var(--gold); }
.ln-fig .c-bal { fill: none; stroke: var(--down); stroke-width: 2.5; }
.ln-fig .c-grid { stroke: var(--line); stroke-width: 1; }
.ln-legend { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ln-legend .k { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 8px; vertical-align: -1px; }
.ln-legend .k.c-prin { background: var(--accent); }
.ln-legend .k.c-int { background: var(--gold); }
.mn-hist { margin-top: 32px; max-width: 760px; }
.mn-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mn-hist td a { font-weight: 700; }
@media print {
  body:has(.ln-print) header.site, body:has(.ln-print) footer.site, body:has(.ln-print) .ad, body:has(.ln-print) .ad-wrap,
  body:has(.ln-print) .share-row, body:has(.ln-print) .mn-tools, body:has(.ln-print) .mn-tabs, body:has(.ln-print) .calc-guide,
  body:has(.ln-print) .faq, body:has(.ln-print) .related, body:has(.ln-print) .mn-hist, body:has(.ln-print) #ln-tab-chart,
  body:has(.ln-print) .skip, body:has(.ln-print) .sticky-sum { display: none !important; }
  body:has(.ln-print) #ln-tab-table { display: block !important; }
  body:has(.ln-print) .tablebox.scroll { max-height: none !important; overflow: visible !important; }
  body:has(.ln-print) { background: #fff; color: #000; }
  body:has(.ln-print) tr { break-inside: avoid; }
}
/* ===== 대출·저축 끝 ===== */

/* ===== 공휴일·돈 캘린더·요율 카드·페이지 정보 (platform 작업분) ===== */
.cal .hol { color: var(--up); font-weight: 700; }
.cal .pay.hol { color: var(--surface); }
.rate-card { margin: 20px 0; }
.rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rc-head h2, .rc-head h3 { margin: 0 0 8px; }
.rc-date { font-size: 13px; color: var(--muted); }
.rate-card th[scope="row"] { font-weight: 600; text-align: left; }
.rc-basis { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.4; }
td.rc-basis { display: table-cell; font-size: 12.5px; text-align: left; }
.mw-chart { margin: 16px 0; }
.mw-chart svg { width: 100%; height: auto; display: block; max-width: 680px; }
.mw-chart .base { stroke: var(--line); stroke-width: 1; }
.mw-chart path { fill: var(--accent); opacity: 0.55; }
.mw-chart .last path { opacity: 1; }
.mw-chart .hit { fill: transparent; }
.mw-chart g:hover path { opacity: 1; }
.mw-chart text { font-family: var(--font-num); font-size: 12px; text-anchor: middle; fill: var(--muted); }
.mw-chart text.v { fill: var(--ink); font-weight: 700; }
.mw-chart figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hol-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.hol-sum div { background: var(--surface); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.hol-sum b { font-size: 26px; line-height: 1.1; }
.hol-sum span { font-size: 12.5px; color: var(--muted); }
.hcal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 18px; margin: 12px 0 20px; }
.hcal-month h3 { font-size: 14px; margin: 0 0 4px; }
.hcal.cal { margin-top: 0; }
.hcal .sun { color: var(--up); }
.hcal .sat { color: var(--down); }
.hcal .hol { background: var(--gold-soft); color: var(--up); font-weight: 700; }
.hcal .h.sun, .hcal .h.sat { background: none; }
.hcal-key { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 8px; vertical-align: -1px; }
.hcal-key.hol { background: var(--gold-soft); outline: 1px solid var(--up); }
.hcal-key.sun { background: var(--up); }
.hcal-key.sat { background: var(--down); }
.mc-list { list-style: none; margin: 8px 0 20px; padding: 0; border-top: 1px solid var(--line); }
.mc-item { display: grid; grid-template-columns: minmax(150px, 0.32fr) 1fr; gap: 6px 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.mc-item.past { opacity: 0.45; }
.mc-item.next { background: var(--accent-soft); padding-left: 10px; padding-right: 10px; }
.mc-date b { font-size: 14px; display: block; }
.mc-d { font-family: var(--font-num); font-size: 12.5px; color: var(--accent); font-weight: 700; }
.mc-item.now .mc-d { color: var(--up); }
.mc-shift { display: block; font-size: 11.5px; color: var(--muted); }
.mc-title { font-weight: 700; font-size: 15px; }
.mc-body p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.mc-src { font-size: 12.5px; color: var(--muted); }
.mc-who { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border: 1px solid currentColor; vertical-align: 1px; }
.mc-emp { color: var(--accent); }
.mc-biz { color: var(--gold); }
.mc-all { color: var(--muted); }
.mc-next h2 { margin-bottom: 4px; }
.mc-list.compact .mc-item { padding: 9px 2px; grid-template-columns: minmax(130px, 0.3fr) 1fr; }
.home-month { margin: 28px 0 8px; }
.page-meta { margin: 24px 0 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.page-meta p { margin: 0 0 10px; }
.fb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-q { font-weight: 600; color: var(--ink); }
.fb button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.fb-msg { font-size: 13px; }
@media (max-width: 520px) {
  .hol-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-item, .mc-list.compact .mc-item { grid-template-columns: 1fr; }
}
/* ===== platform 작업분 끝 ===== */
/* ===== insurance4·dsr 작업분 (4대보험, DSR·LTV 계산기) ===== */
.calc-form .field[hidden], .dsr-ex-row[hidden] { display: none; }
.form-sub { margin: 18px 0 4px; font-size: 15px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dsr-ex-row { padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; }
.dsr-ex-row > .flabel { margin: 0 0 4px; font-weight: 700; font-size: 13px; }
.calc-form details.adv { margin-top: 14px; }
.calc-form details.adv summary { font-size: 14px; }
.stub .tablebox td.t { white-space: normal; }
.stub tr.sum td { border-top: 1px solid var(--line); }
/* ===== insurance4·dsr 작업분 끝 ===== */
