
  :root {
    color-scheme: light;
    --paper: #f6f3e9;
    --sheet: #fffcf4;
    --ink: #282922;
    --muted: #6c6c61;
    --line: #d1cfc1;
    --red: #b8302d;
    --blue: #2e6094;
    --highlight: #eddf63;
    --highlight-ink: #282922;
    --band: #e8e8d9;
    --focus: #866000;
    --hover: #eae5d6;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #22241f;
      --sheet: #292c25;
      --ink: #efeee4;
      --muted: #b2b5a7;
      --line: #505347;
      --red: #ff9290;
      --blue: #93b9ee;
      --highlight: #d6cc68;
      --highlight-ink: #22241f;
      --band: #3d4334;
      --focus: #f2df7b;
      --hover: #383d31;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #22241f;
    --sheet: #292c25;
    --ink: #efeee4;
    --muted: #b2b5a7;
    --line: #505347;
    --red: #ff9290;
    --blue: #93b9ee;
    --highlight: #d6cc68;
    --highlight-ink: #22241f;
    --band: #3d4334;
    --focus: #f2df7b;
    --hover: #383d31;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; line-height: 1.6; }
  button, input, textarea { font: inherit; color: inherit; }
  button, a, input, textarea { -webkit-tap-highlight-color: var(--highlight); }
  button { cursor: pointer; }
  button:disabled { cursor: default; opacity: .4; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
  a { color: inherit; text-underline-offset: 4px; }
  h1, h2, h3, p { margin: 0; }
  .wrapper { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left,0px)); padding-right: max(16px, env(safe-area-inset-right,0px)); padding-block: 36px 32px; }
  .mono, input, .date, .weekdays, td, .range { font-family: "IBM Plex Mono", "IBM Plex Sans KR", monospace; font-variant-numeric: tabular-nums; }
  .display { font-family: "Black Han Sans", "Apple SD Gothic Neo", sans-serif; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
  .masthead { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 5px solid var(--ink); }
  .eyebrow { color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: .14em; margin-bottom: 12px; }
  .year { font-size: clamp(64px, 11vw, 126px); letter-spacing: -.06em; margin-left: -4px; }
  h1 { font-size: clamp(25px, 4vw, 38px); font-weight: 600; letter-spacing: -.05em; }
  .intro { margin-top: 10px; color: var(--muted); font-size: 14px; }
  .input-block { flex-shrink: 0; padding-bottom: 4px; }
  .input-block label { display: block; font-size: 13px; margin-bottom: 8px; }
  .stepper { display: flex; align-items: center; border: 1px solid var(--ink); background: var(--sheet); }
  .stepper button { width: 44px; height: 52px; background: var(--sheet); border: 0; font-size: 26px; }
  .stepper button:hover:not(:disabled) { background: var(--hover); }
  .stepper input { width: 62px; padding: 0; border: 0; background: var(--sheet); text-align: center; font-size: 28px; appearance: textfield; -moz-appearance: textfield; }
  .stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  .input-unit { padding-right: 10px; font-size: 14px; }
  .input-help { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .input-error { font-size: 12px; color: var(--red); margin-top: 6px; }
  section { margin-top: 36px; }
  .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
  h2 { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
  .section-note { font-size: 12px; color: var(--muted); }
  .summary { background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 24px; }
  .summary-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .summary-title { font-size: clamp(19px, 3vw, 29px); font-weight: 500; letter-spacing: -.04em; }
  .total-days { display: inline-block; font-size: clamp(46px, 7vw, 72px); vertical-align: -.08em; margin-inline: 8px 3px; }
  .plan-list { padding: 0; margin: 24px 0 18px; list-style: none; border-top: 1px solid var(--line); }
  .plan-item { display: grid; grid-template-columns: minmax(200px, .9fr) 68px minmax(0, 1.5fr); gap: 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .range { font-size: 14px; font-weight: 500; }
  .plan-length { font-size: 16px; font-weight: 600; white-space: nowrap; }
  .plan-detail { font-size: 13px; overflow-wrap: anywhere; }
  .plan-holidays { color: var(--muted); margin-top: 3px; }
  mark { color: var(--highlight-ink); background: var(--highlight); padding-inline: 4px; }
  .single { font-size: 14px; }
  .single strong { font-weight: 600; margin-right: 8px; }
  .legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
  .legend-item { display: inline-flex; align-items: center; gap: 6px; }
  .swatch { display: inline-block; width: 20px; height: 12px; background: var(--highlight); }
  .swatch.band { background: var(--band); }
  .red { color: var(--red); }
  .blue { color: var(--blue); }
  .months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
  .month { min-width: 0; border-top: 2px solid var(--ink); }
  .month-title { display: flex; align-items: baseline; gap: 8px; padding-block: 12px 10px; }
  .month-number { font-size: 38px; letter-spacing: -.04em; }
  .month-title h3 { font-size: 13px; font-weight: 400; }
  .weekdays, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
  .weekdays { border-bottom: 1px solid var(--line); padding-bottom: 6px; font-size: 11px; color: var(--muted); }
  .month-days { padding-top: 6px; row-gap: 4px; }
  .date, .blank { min-width: 0; height: 32px; }
  .date { position: relative; isolation: isolate; display: grid; place-items: center; font-size: 12px; }
  .date.in-plan { background: var(--band); }
  .date.on-leave { color: var(--highlight-ink); font-weight: 600; }
  .date.on-leave::before { content: ""; position: absolute; z-index: -1; inset: 4px 2px; background: var(--highlight); transform: rotate(-3deg); border-radius: 3px 1px 4px 2px; }
  .table-wrap { width: 100%; }
  table { border-collapse: collapse; width: 100%; text-align: left; }
  caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 12px; }
  th { font-size: 12px; color: var(--muted); font-weight: 400; padding-block: 8px; border-bottom: 1px solid var(--ink); }
  td { padding-block: 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
  th:nth-child(n+2), td:nth-child(n+2) { text-align: right; padding-left: 8px; white-space: nowrap; }
  .copy-section { border-top: 2px solid var(--ink); padding-top: 22px; }
  .copy-button { border: 1px solid var(--ink); background: var(--highlight); color: var(--highlight-ink); font-weight: 600; padding: 12px 24px; min-height: 48px; }
  .copy-button:hover { text-decoration: underline; text-underline-offset: 4px; }
  .copy-status { display: inline-block; margin-left: 12px; font-size: 13px; }
  .copy-fallback { margin-top: 16px; }
  .copy-fallback label { display: block; font-size: 13px; margin-bottom: 8px; }
  textarea { display: block; width: 100%; min-height: 190px; resize: vertical; background: var(--sheet); border: 1px solid var(--ink); padding: 12px; font-size: 14px; }
  footer { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--muted); max-width: 900px; }
  footer a { display: inline-block; margin-top: 6px; }
  @media (max-width: 1100px) { .months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 760px) {
    .masthead { align-items: start; flex-direction: column; gap: 20px; }
    .input-block { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 18px; width: 100%; }
    .input-block label { margin: 0; }
    .input-help { grid-column: 1 / -1; }
    .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-item { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
    .plan-detail { grid-column: 1 / -1; }
    .summary { padding: 20px 16px; }
    .section-heading { flex-wrap: wrap; gap: 4px; }
  }
  @media (max-width: 440px) {
    .wrapper { padding-block: 24px; }
    .months { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .date, .blank { height: 36px; }
    .date { font-size: 14px; }
    td { font-size: 12px; }
    .copy-status { display: block; margin: 10px 0 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }

  .site-header, .site-footer { max-width: 1240px; margin-inline: auto; padding: 20px max(16px, env(safe-area-inset-left, 0px)); }
  .site-header { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
  .brand { font-weight: 600; text-decoration: none; }
  .site-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
  .site-nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
  .site-footer { margin-top: 36px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .site-footer .site-nav { margin-top: 14px; }
  .article { max-width: 65ch; margin-inline: auto; overflow-wrap: anywhere; }
  .article h1 { margin-bottom: 20px; }
  .article h2 { margin: 32px 0 12px; }
  .article p + p { margin-top: 14px; }
  .article li + li { margin-top: 10px; }
  .guide-list { padding: 0; list-style: none; border-top: 2px solid var(--ink); }
  .guide-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .guide-list p { font-size: 14px; color: var(--muted); margin-top: 6px; }
  .data-table { table-layout: fixed; }
  .data-table th, .data-table td { text-align: left; white-space: normal; overflow-wrap: anywhere; padding: 12px 8px; vertical-align: top; font-family: inherit; }
  .data-table th { font-weight: 600; }
  .data-table .dates { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
  .overview th:first-child { width: 21%; }
  .overview td { font-size: 13px; }
  .overview .dates { font-size: 11px; }
  .table-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
  .back-link { display: inline-block; margin-top: 24px; font-weight: 600; }
  details { border-bottom: 1px solid var(--line); padding: 18px 0; }
  summary { cursor: pointer; font-weight: 600; }
  details p { margin-top: 12px; }
  .skip-link { position: absolute; top: -100px; left: 16px; background: var(--sheet); padding: 10px; z-index: 2; }
  .skip-link:focus { top: 8px; }
  @media (max-width: 600px) {
    .overview thead { display: none; }
    .overview tr { display: block; border-bottom: 2px solid var(--line); padding: 12px 0; }
    .overview td { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 10px; border: 0; padding: 8px 0; font-size: 14px; }
    .overview td::before { content: attr(data-label); font-size: 12px; color: var(--muted); }
    .overview td:first-child { display: block; font-size: 16px; font-weight: 600; }
    .overview td:first-child::before { content: none; }
    .overview .dates { font-size: 12px; }
    .article .data-table th, .article .data-table td { padding: 10px 5px; font-size: 12px; }
  }
