
* { box-sizing: border-box; }
      .diagram,
      .diagram * {
        max-width: 100%;
      }
      html,
      body {
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: transparent;
      }
      body {
        color: var(--ink);
        font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
      }
      .diagram {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        border: 1px solid var(--line);
        border-radius:8px;
        overflow: hidden;
        background: var(--paper);
        contain: layout paint;
      }
      .next-ch16-ch16-4-root {
        padding: 16px;
        overflow-wrap: anywhere;
      }
      .next-ch16-ch16-4-tag {
        display: inline-flex;
        align-items: center;
        border: 1px solid #bfdbfe;
        border-radius:6px;
        padding: 3px 9px;
        color: var(--accent);
        background: var(--track-tint);
        font-size:12px;
        font-weight: 800;
        line-height: 1.2;
      }
      h1 {
        margin: 10px 0 8px;
        color: var(--ink);
        font-size:24px;
        line-height: 1.25;
        letter-spacing: 0;
      }
      p {
        margin: 0;
        color: var(--muted);
        font-size:14px;
        line-height: 1.65;
      }
      .next-ch16-ch16-4-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
      }
      .next-ch16-ch16-4-card {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius:8px;
        padding: 10px;
        background: var(--panel);
      }
      .next-ch16-ch16-4-card b {
        display: block;
        margin-bottom: 6px;
        color: var(--accent);
        font-size:12px;
        line-height: 1.35;
      }
      .next-ch16-ch16-4-card strong {
        display: block;
        margin-bottom: 4px;
        color: var(--ink);
        font-size:15px;
        line-height: 1.35;
      }
      .next-ch16-ch16-4-card span {
        display: block;
        color: var(--muted);
        font-size:12px;
        line-height: 1.5;
      }
      .next-ch16-ch16-4-matrix {
        margin-top: 10px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius:8px;
      }
      .next-ch16-ch16-4-row {
        display: grid;
        grid-template-columns: 120px 1fr 1fr;
      }
      .next-ch16-ch16-4-row > div {
        min-width: 0;
        padding: 9px 10px;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
        color: var(--muted);
        font-size:13px;
        line-height: 1.5;
      }
      .next-ch16-ch16-4-row > div:first-child {
        border-left: 0;
        color: var(--accent);
        font-weight: 800;
      }
      .next-ch16-ch16-4-head > div {
        border-top: 0;
        background: var(--head);
        color: var(--ink);
        font-weight: 800;
      }
      .next-ch16-ch16-4-note {
        margin-top: 10px;
        border: 1px solid var(--line);
        border-radius:8px;
        padding: 10px 12px;
        background: var(--panel);
        color: var(--muted);
        font-size:13px;
        line-height: 1.6;
      }
      .next-ch16-ch16-4-note b {
        color: var(--accent);
      }
      @media (max-width: 640px) {
        .next-ch16-ch16-4-root { padding: 13px; }
        h1 { font-size:21px; line-height: 1.28; }
        p { font-size:13px; line-height: 1.6; }
        .next-ch16-ch16-4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
        .next-ch16-ch16-4-card { padding: 9px; }
        .next-ch16-ch16-4-row { grid-template-columns: 82px 1fr 1fr; }
        .next-ch16-ch16-4-row > div { padding: 8px 7px; font-size:12px; line-height: 1.45; }
      }
      @media (max-width: 360px) {
        .next-ch16-ch16-4-root { padding: 10px; }
        h1 { font-size:19px; }
        .next-ch16-ch16-4-grid { grid-template-columns: 1fr; }
        .next-ch16-ch16-4-row { grid-template-columns: 72px 1fr 1fr; }
        .next-ch16-ch16-4-row > div { padding: 7px 4px; font-size:12px; }
      }
