
:root {
        color-scheme: light;
        --track: #e34f26;
        --track-strong: #c2410c;
        --track-tint: #fff7ed;
        --paper: #ffffff;
        --surface: #f8fafc;
        --surface-strong: #f1f5f9;
        --node: #ffffff;
        --line: #dbe5dd;
        --line-strong: #9cc9ab;
        --text: #111827;
        --muted: #4b5563;
        --subtle: #64748b;
        --code: #f3f4f6;
      }

      html[data-diagram-theme="dark"] {
        color-scheme: dark;
        --track: #f08b6f;
        --track-strong: #f08b6f;
        --track-tint: rgba(227, 79, 38, 0.18);
        --paper: #111418;
        --surface: #151a1f;
        --surface-strong: #1b2229;
        --node: #181d23;
        --line: #2a333c;
        --line-strong: #315f42;
        --text: #f3f4f6;
        --muted: #c7cdd4;
        --subtle: #a6adb6;
        --code: #101418;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: transparent;
        letter-spacing: 0;
      }

      body {
        color: var(--text);
        font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
        word-break: keep-all;
        overflow-wrap: anywhere;
      }

      .diagram {
        width: 100%;
        border: 1px solid var(--line);
        border-radius:8px;
        overflow: hidden;
        background: var(--paper);
        contain: layout paint;
        color: var(--text);
      }

      .diagram,
      .diagram * {
        max-width: 100%;
      }

      .web-ch13-ch13-4-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(210px, 0.38fr);
        gap: 14px;
        align-items: stretch;
        padding: 18px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
      }

      .web-ch13-ch13-4-headline {
        display: grid;
        align-content: start;
        gap: 8px;
        min-width: 0;
      }

      .web-ch13-ch13-4-kicker,
      .web-ch13-ch13-4-side-key,
      .web-ch13-ch13-4-flow-step {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 2px 8px;
        border: 1px solid var(--line-strong);
        border-radius:6px;
        background: var(--track-tint);
        color: var(--track-strong);
        font-size:12px;
        font-weight: 850;
        line-height: 1.35;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
      }

      h1,
      h2,
      h3,
      p,
      pre {
        margin: 0;
      }

      h1 {
        font-size:22px;
        line-height: 1.28;
        letter-spacing: 0;
      }

      h2 {
        font-size:14px;
        line-height: 1.38;
        letter-spacing: 0;
      }

      .web-ch13-ch13-4-lead {
        color: var(--muted);
        font-size:13px;
        line-height: 1.58;
      }

      .web-ch13-ch13-4-side {
        display: grid;
        gap: 8px;
        align-content: center;
        min-width: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius:8px;
        background: var(--surface);
      }

      .web-ch13-ch13-4-side-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        padding: 7px 8px;
        border: 1px solid var(--line);
        border-radius:7px;
        background: var(--node);
      }

      .web-ch13-ch13-4-side-value {
        min-width: 0;
        color: var(--muted);
        font-size:12px;
        line-height: 1.42;
        overflow-wrap: break-word;
        word-break: keep-all;
      }

      .web-ch13-ch13-4-body {
        display: grid;
        gap: 12px;
        padding: 18px;
        background: var(--paper);
      }

      .web-ch13-ch13-4-flow {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
      }

      .web-ch13-ch13-4-flow {
        position: relative;
        isolation: isolate;
      }

      .web-ch13-ch13-4-flow-item {
        position: relative;
        z-index: 1;
        box-shadow: none;
      }

      .web-ch13-ch13-4-matrix-row {
        position: relative;
        overflow: hidden;
        box-shadow: none;
      }

      .web-ch13-ch13-4-matrix-key {
        align-self: start;
        justify-self: start;
        padding: 3px 8px;
        border: 1px solid var(--line);
        border-radius:8px;
        background: var(--track-tint);
      }

      .web-ch13-ch13-4-flow-item,
      .web-ch13-ch13-4-matrix-row,
      .web-ch13-ch13-4-checks,
      .web-ch13-ch13-4-snippet {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius:8px;
        background: var(--node);
      }

      .web-ch13-ch13-4-flow-item {
        display: grid;
        align-content: start;
        gap: 7px;
        padding: 12px;
      }

      .web-ch13-ch13-4-flow-title,
      .web-ch13-ch13-4-check strong,
      .web-ch13-ch13-4-matrix-main strong {
        color: var(--text);
        font-size:13px;
        line-height: 1.38;
      }

      .web-ch13-ch13-4-flow-text,
      .web-ch13-ch13-4-matrix-main span,
      .web-ch13-ch13-4-check span,
      .web-ch13-ch13-4-matrix-note {
        color: var(--muted);
        font-size:12px;
        line-height: 1.48;
      }

      .web-ch13-ch13-4-flow-note {
        color: var(--track-strong);
        font-size:12px;
        line-height: 1.35;
      }

      .web-ch13-ch13-4-matrix {
        display: grid;
        gap: 8px;
      }

      .web-ch13-ch13-4-matrix-row {
        display: grid;
        grid-template-columns: minmax(96px, 0.24fr) minmax(0, 1fr) minmax(
            130px,
            0.36fr
          );
        gap: 10px;
        align-items: start;
        padding: 10px;
      }

      .web-ch13-ch13-4-matrix-key {
        color: var(--track-strong);
        font-size:12px;
        font-weight: 850;
        line-height: 1.35;
      }

      .web-ch13-ch13-4-matrix-main {
        display: grid;
        gap: 3px;
        min-width: 0;
      }

      .web-ch13-ch13-4-matrix-note {
        padding: 7px 8px;
        border: 1px solid var(--line);
        border-radius:7px;
        background: var(--surface);
      }

      .web-ch13-ch13-4-checks,
      .web-ch13-ch13-4-snippet {
        display: grid;
        gap: 10px;
        padding: 12px;
      }

      .web-ch13-ch13-4-check-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .web-ch13-ch13-4-check {
        display: grid;
        gap: 4px;
        min-width: 0;
        padding: 9px;
        border: 1px solid var(--line);
        border-radius:7px;
        background: var(--surface);
      }

      .web-ch13-ch13-4-code {
        white-space: pre-wrap;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius:7px;
        background: var(--code);
        color: var(--text);
        font-family: "D2Coding", Consolas, "SFMono-Regular", monospace;
        font-size:12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
      }

      @media (max-width: 820px) {
        .web-ch13-ch13-4-head,
        .web-ch13-ch13-4-matrix-row {
          grid-template-columns: 1fr;
        }

        .web-ch13-ch13-4-flow,
        .web-ch13-ch13-4-check-grid {
          grid-template-columns: 1fr;
        }

        .web-ch13-ch13-4-side-row {
          grid-template-columns: minmax(0, 1fr);
        }
      }

      @media (max-width: 360px) {
        .web-ch13-ch13-4-head,
        .web-ch13-ch13-4-body {
          padding: 12px;
        }

        h1 {
          font-size:19px;
        }

        .web-ch13-ch13-4-side-row {
          grid-template-columns: 1fr;
        }
      }
