
      /* Tokens: identical to page.html — contrast ratios ≥ 7:1 (AAA). */
      :root {
        --type-display: "Iowan Old Style", "Palatino Nova", Palatino, "New York", ui-serif, Georgia, serif;
        --type-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        --type-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
        --bg-page: #ffffff; --bg-alt: #f7f5f1; --bg-card: #fdfcfa;
        --ink: #1d1d1f; --ink-soft: #3a3a3c; --ink-mute: #4d4d55;
        --rule: #e4e1da; --rule-strong: #c9c5bb;
        --link: #004caf; --link-hover: #003a86; --eyebrow: #684d00;
        --btn-bg: #1d1d1f; --btn-text: #ffffff; --focus-ring: #004caf;
        --ok: #14532d; --bad: #7f1d1d;
        --code-bg: #14161c; --code-text: #f2f3f5;
        --shadow-sm: 0 1px 2px rgb(29 29 31 / 0.06);
        --shadow-md: 0 12px 32px -12px rgb(29 29 31 / 0.18);
        --radius-sm: 8px; --radius-md: 14px; --radius-pill: 999px;
      }
      [data-theme="dark"] {
        --bg-page: #0b0e14; --bg-alt: #10141c; --bg-card: #171b24;
        --ink: #f5f5f7; --ink-soft: #d6d9e0; --ink-mute: #b3bac7;
        --rule: #262c38; --rule-strong: #3a4252;
        --link: #8cc0ff; --link-hover: #b8d8ff; --eyebrow: #e3c878;
        --btn-bg: #f5f5f7; --btn-text: #16181d; --focus-ring: #8cc0ff;
        --ok: #86efac; --bad: #fca5a5;
        --code-bg: #05070b; --code-text: #eef0f4;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.6);
        --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.7);
      }
      @media (prefers-color-scheme: dark) {
        html:not([data-theme="light"]) {
          --bg-page: #0b0e14; --bg-alt: #10141c; --bg-card: #171b24;
          --ink: #f5f5f7; --ink-soft: #d6d9e0; --ink-mute: #b3bac7;
          --rule: #262c38; --rule-strong: #3a4252;
          --link: #8cc0ff; --link-hover: #b8d8ff; --eyebrow: #e3c878;
          --btn-bg: #f5f5f7; --btn-text: #16181d; --focus-ring: #8cc0ff;
          --ok: #86efac; --bad: #fca5a5;
          --code-bg: #05070b; --code-text: #eef0f4;
          --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.6);
          --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.7);
        }
      }

      *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
      html {
        font-family: var(--type-body); font-size: 16px; line-height: 1.65;
        color: var(--ink); background: var(--bg-page);
        -webkit-text-size-adjust: 100%;
      }
      body { min-height: 100vh; display: flex; flex-direction: column; }
      :focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
      @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
      }
      @media (prefers-contrast: more) {
        :root, [data-theme="dark"] { --ink-soft: var(--ink); --ink-mute: var(--ink); --rule: var(--rule-strong); }
      }

      .skip-link {
        position: absolute; top: -120px; left: 1rem;
        background: var(--btn-bg); color: var(--btn-text);
        padding: 0.8rem 1.6rem; z-index: 10000;
        border-radius: var(--radius-pill); font-weight: 600;
      }
      .skip-link:focus { top: 1rem; }
      .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

      .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }

      .navbar { position: sticky; top: 0; z-index: 1000; background: var(--bg-page); border-bottom: 1px solid var(--rule); }
      .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
      .brand {
        display: inline-flex; align-items: center; gap: 0.6rem;
        font-family: var(--type-display); font-size: 1.3rem; font-weight: 700;
        color: var(--ink); text-decoration: none; min-height: 44px;
      }
      .brand img { height: 30px; width: 30px; }
      .back-link { color: var(--link); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
      .back-link:hover { text-decoration: underline; }

      .page-header { padding: 3.5rem 0 2rem; }
      .eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 1rem; }
      h1 {
        font-family: var(--type-display); font-size: clamp(2.1rem, 4vw, 3rem);
        font-weight: 700; letter-spacing: -0.015em; line-height: 1.14;
        max-width: 26ch; margin-bottom: 1rem; text-wrap: balance;
      }
      .deck { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

      .demo-grid {
        display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
        padding: 2.5rem 0;
      }
      @media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
      .demo-panel {
        border: 1px solid var(--rule); border-radius: var(--radius-md);
        background: var(--bg-card); padding: 1.5rem; box-shadow: var(--shadow-sm);
        display: flex; flex-direction: column; gap: 1rem;
      }
      .demo-panel h2 { font-size: 1.05rem; font-weight: 700; }
      textarea {
        width: 100%; min-height: 260px;
        font-family: var(--type-mono); font-size: 0.85rem; line-height: 1.6;
        color: var(--ink); background: var(--bg-page);
        border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
        padding: 0.9rem; resize: vertical;
      }
      .demo-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
      .pill {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 46px; padding: 0 1.5rem;
        border-radius: var(--radius-pill); font-size: 0.95rem; font-weight: 600;
        text-decoration: none; border: 1px solid transparent;
        cursor: pointer; font-family: inherit;
      }
      .pill-primary { background: var(--btn-bg); color: var(--btn-text); }
      .pill-primary:hover { opacity: 0.85; }
      .pill-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
      .pill-ghost:hover { border-color: var(--ink); }

      .status {
        font-weight: 700; font-size: 0.95rem;
        padding: 0.6rem 1rem; border-radius: var(--radius-sm);
        border: 1px solid var(--rule);
      }
      .status.pass { color: var(--ok); border-color: var(--ok); }
      .status.fail { color: var(--bad); border-color: var(--bad); }
      .error-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
      .error-list li { color: var(--bad); font-family: var(--type-mono); font-size: 0.82rem; }
      .xml-out {
        background: var(--code-bg); color: var(--code-text);
        font-family: var(--type-mono); font-size: 0.8rem; line-height: 1.6;
        border-radius: var(--radius-sm); padding: 1rem;
        overflow: auto; max-height: 420px; white-space: pre;
        flex-grow: 1;
      }
      .fineprint { color: var(--ink-mute); font-size: 0.9rem; max-width: 70ch; }
      .fineprint a { color: var(--link); }

      .content-note { padding: 1.5rem 0 3rem; }
      .content-note article { max-width: 68ch; color: var(--ink-soft); }
      .content-note article h1 { display: none; }
      .content-note article h2 { font-family: var(--type-display); font-size: 1.5rem; margin: 2rem 0 0.8rem; color: var(--ink); }
      .content-note article p { margin-bottom: 1.2rem; }
      .content-note article a { color: var(--link); }
      .content-note article code {
        font-family: var(--type-mono); font-size: 0.86em;
        background: var(--bg-alt); border: 1px solid var(--rule);
        border-radius: 6px; padding: 0.15rem 0.4rem;
      }
      .footer {
        border-top: 1px solid var(--rule); background: var(--bg-alt);
        padding: 1.75rem 0; margin-top: auto;
        color: var(--ink-mute); font-size: 0.9rem;
      }
      .footer a { color: var(--ink-mute); }
      .footer a:hover { color: var(--link); }
    