
    /*
     * 5-Line Design Note (Concept 01 — Crafting Table Workbench):
     * 1. Metaphor: Minecraft crafting table slots—crisp 1px cells, thick tactile 3px bottom-beveled buttons, row-by-row parameters.
     * 2. Green and copper on a light surface, with a darker copper for text.
     * 3. Layout Rhythm: First-fold A (compact H1 + immediate tool workbench), E (01-04 list), G (2x2 no-icon grid), H (4-step install bar), unboxed <details> FAQ.
     * 4. Signature Accent: 4px pixel stair notch via CSS pseudo-element strictly on section dividers and card top-left corners.
     * 5. Mobile 390px: Single-column form and slot stack, full-width export triggers, minimum 12px type, zero horizontal scroll.
     */
    :root {
      --bg: #f4f6f0;
      --surface: #ffffff;
      --text: #1a2118;
      --muted: #5c6b57;
      --primary: #3f7a2e;
      --accent: #c8873c;
      --accent-ink: #874a12;
      --line: rgb(26 33 24 / .12);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: var(--text);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, .brand-name {
      font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
      font-weight: 700;
      line-height: 1.2;
      color: var(--text);
    }

    a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
    a:hover { color: var(--accent-ink); }
    button, input, select { font-family: inherit; font-size: 14px; color: var(--text); }
    code {
      font-family: inherit;
      font-size: 0.875em;
      background: var(--bg);
      border: 1px solid var(--line);
      padding: 1px 5px;
      border-radius: 6px;
    }

    .container {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
    }

    /* Header — compact utility top bar */
    .site-header {
      background: var(--surface);
      border-bottom: 2px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 30;
    }
    .header-inner {
      min-height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 8px 0;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--text);
      flex-shrink: 0;
    }
    .brand-slot {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: var(--primary);
      border: 2px solid var(--text);
      box-shadow: inset -4px -4px 0 var(--accent);
      display: inline-block;
    }
    .brand-name { font-size: 18px; letter-spacing: -0.02em; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }
    .nav-links a {
      text-decoration: none;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid transparent;
    }
    .nav-links a:hover { color: var(--text); background: var(--bg); }
    .nav-links a.is-active {
      color: var(--text);
      background: var(--bg);
      border-color: var(--line);
    }

    /* Main First-Fold A: Compact Title + Immediate Workbench */
    main { padding: 24px 0 64px; }

    .page-head { margin-bottom: 16px; }
    .breadcrumb {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .breadcrumb a { color: var(--muted); text-decoration: none; }
    .breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
    .page-head h1 {
      font-size: clamp(26px, 3.2vw, 38px);
      letter-spacing: -0.02em;
      margin-bottom: 4px;
    }
    .page-sub {
      font-size: 15px;
      color: var(--muted);
      max-width: 72ch;
    }

    /* 4px Pixel Stair Accent (ONLY on section dividers and card top-left corner) */
    .wb-shell,
    .tool-card-g,
    .sec-numbered,
    .sec-grid-g,
    .sec-install-h {
      position: relative;
    }
    .wb-shell::before,
    .tool-card-g::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 4px;
      background: var(--primary);
      box-shadow: 4px 0 0 var(--primary), 0 4px 0 var(--accent);
      pointer-events: none;
    }

    .sec-numbered,
    .sec-grid-g,
    .sec-install-h,
    .prose-block,
    .faq-block {
      margin-top: 48px;
      padding-top: 32px;
      border-top: 2px solid var(--line);
      position: relative;
    }
    .sec-numbered::before,
    .sec-grid-g::before,
    .sec-install-h::before,
    .prose-block::before,
    .faq-block::before {
      content: "";
      position: absolute;
      top: -2px;
      left: 0;
      width: 4px;
      height: 4px;
      background: var(--accent);
      box-shadow: 4px 0 0 var(--primary), 8px 0 0 var(--primary);
    }

    /* Workbench Slots */
    .wb-shell {
      background: var(--surface);
      border: 2px solid var(--line);
      border-radius: 6px;
      padding: 16px;
      box-shadow: 0 2px 0 rgb(26 33 24 / .08);
    }

    .wb-steps-bar {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }
    .wb-step {
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 6px 10px;
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .wb-step b {
      color: var(--primary);
      font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    }
    .wb-step.is-active {
      border-color: var(--primary);
      color: var(--text);
    }

    .wb-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 16px;
      align-items: start;
    }
    .wb-controls, .wb-output { display: grid; gap: 16px; }

    .wb-block {
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 12px;
    }
    .wb-label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }
    .wb-step-tag {
      font-family: 'Bricolage Grotesque', system-ui, sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }
    .wb-badge {
      font-size: 12px;
      font-weight: 600;
      color: var(--primary);
      background: var(--surface);
      border: 1px solid var(--line);
      padding: 2px 8px;
      border-radius: 6px;
    }
    .wb-muted-sm { font-size: 12px; color: var(--muted); }

    .wb-seg {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }
    .wb-seg-btn {
      background: var(--surface);
      border: 1px solid var(--line);
      border-bottom: 3px solid var(--line);
      border-radius: 6px;
      padding: 8px 10px;
      font-weight: 600;
      cursor: pointer;
    }
    .wb-seg-btn:hover { border-color: var(--primary); }
    .wb-seg-btn.is-active {
      background: var(--primary);
      color: var(--surface);
      border-color: var(--text);
      border-bottom-color: var(--text);
    }

    .wb-form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    .wb-field { display: grid; gap: 4px; }
    .wb-field span { font-size: 12px; font-weight: 600; color: var(--muted); }
    .wb-field input,
    .wb-field select {
      width: 100%;
      min-height: 38px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 6px 10px;
    }
    .wb-field input[type="color"] { padding: 3px; cursor: pointer; }
    .wb-field input:focus,
    .wb-field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

    .wb-preset-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    .wb-chip {
      background: var(--surface);
      border: 1px solid var(--line);
      border-bottom: 2px solid var(--line);
      border-radius: 6px;
      padding: 5px 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
    }
    .wb-chip:hover { border-color: var(--accent-ink); }

    .wb-pixel-pad-wrap {
      margin-top: 12px;
      display: flex;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 12px;
    }
    .wb-paint-canvas {
      border: 2px solid var(--text);
      border-radius: 6px;
      cursor: crosshair;
      touch-action: none;
      max-width: 100%;
      height: auto;
    }

    .wb-canvas-stage {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .wb-canvas-stage canvas {
      image-rendering: pixelated;
      border: 1px solid var(--line);
      border-radius: 6px;
      max-width: 100%;
      height: auto;
    }
    .wb-meta-strip {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 12px;
      color: var(--muted);
    }

    .wb-json-box {
      margin-top: 10px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 10px;
      font-size: 12px;
      overflow-x: auto;
      max-height: 190px;
    }

    /* Thick Tactile Workbench Buttons */
    .wb-btn-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .wb-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 10px 14px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      text-decoration: none;
      border: 2px solid var(--text);
      border-bottom-width: 4px;
      transition: transform 0.08s ease;
    }
    .wb-btn:active { transform: translateY(1px); }
    .wb-btn-primary {
      background: var(--primary);
      color: var(--surface);
    }
    .wb-btn-secondary {
      background: var(--accent);
      color: var(--text);
    }
    a.wb-btn-primary:hover { color: var(--surface); }
    a.wb-btn-secondary:hover { color: var(--text); }
    .wb-mini-btn {
      background: var(--surface);
      border: 1px solid var(--line);
      border-bottom: 2px solid var(--line);
      border-radius: 6px;
      padding: 4px 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }

    .wb-java-strip {
      margin-top: 12px;
      padding: 10px 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 13px;
    }
    .wb-java-strip span { color: var(--muted); display: block; }
    .wb-java-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .wb-inline-link { font-size: 13px; font-weight: 600; }

    .wb-status {
      margin-top: 10px;
      padding: 8px 10px;
      background: var(--surface);
      border-left: 4px solid var(--primary);
      border-radius: 6px;
      font-size: 13px;
    }

    .wb-mini-steps {
      margin-top: 10px;
      padding-left: 18px;
      font-size: 13px;
      color: var(--muted);
      display: grid;
      gap: 4px;
    }

    .wb-honest-note {
      background: var(--bg);
      border: 1px solid var(--accent);
      border-left: 4px solid var(--accent);
      border-radius: 6px;
      padding: 10px 12px;
      margin-bottom: 14px;
      font-size: 14px;
    }
    .wb-cross-links {
      margin-top: 10px;
      display: grid;
      gap: 4px;
      font-size: 13px;
    }

    .wb-drafts-wrap {
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }
    .wb-drafts-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 8px;
    }
    .wb-draft-empty { font-size: 13px; color: var(--muted); }
    .wb-draft-card {
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .wb-draft-actions { display: flex; gap: 6px; }

    /* Section E: Numbered 01-04 List */
    .sec-numbered h2, .sec-grid-g h2, .sec-install-h h2, .faq-block h2 {
      font-size: clamp(22px, 2.5vw, 28px);
      margin-bottom: 16px;
    }
    .sec-lead { color: var(--muted); margin-bottom: 16px; max-width: 68ch; }

    .step-list-e {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .step-list-e li {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 14px 16px;
      font-size: 15px;
    }

    /* Section G: 2x2 Grid (No Icons, Short Title + 2 Lines) */
    .grid-2x2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .tool-card-g {
      display: block;
      text-decoration: none;
      background: var(--surface);
      border: 2px solid var(--line);
      border-radius: 6px;
      padding: 16px 20px;
      box-shadow: 0 2px 0 rgb(26 33 24 / .06);
      color: var(--text);
    }
    .tool-card-g:hover { border-color: var(--primary); }
    .tool-card-g h3 { font-size: 19px; margin-bottom: 6px; color: var(--primary); }
    .tool-card-g p { font-size: 14px; color: var(--muted); }

    /* Section H: 4-Step Install Bar */
    .steps-bar-h {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }
    .step-h {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 14px;
      display: grid;
      gap: 4px;
      align-content: start;
    }
    .step-h span { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
    .step-h strong { font-size: 16px; }
    .step-h p { font-size: 13px; color: var(--muted); }

    /* Prose & Guide */
    .prose-block { max-width: 78ch; }
    .prose-block h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 24px 0 12px; }
    .prose-block h2:first-child { margin-top: 0; }
    .prose-block h3 { font-size: 18px; margin: 20px 0 8px; }
    .prose-block p { margin-bottom: 14px; }
    .prose-block ul, .prose-block ol { margin: 0 0 16px 20px; display: grid; gap: 6px; }

    .guide-direct-answer {
      background: var(--surface);
      border: 1px solid var(--line);
      border-left: 4px solid var(--primary);
      border-radius: 6px;
      padding: 14px 16px;
      font-size: 16px;
    }
    .guide-toc {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 12px 14px;
      margin: 16px 0 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      align-items: center;
      font-size: 14px;
    }
    .video-placeholder-slot, .screenshot-slot {
      background: var(--surface);
      border: 2px dashed var(--line);
      border-radius: 6px;
      padding: 16px;
      margin: 16px 0 24px;
      display: grid;
      gap: 6px;
    }
    .vp-badge {
      display: inline-block;
      width: fit-content;
      font-size: 12px;
      font-weight: 600;
      color: var(--accent-ink);
      background: var(--bg);
      border: 1px solid var(--line);
      padding: 2px 8px;
      border-radius: 6px;
    }
    .screenshot-slot { font-size: 13px; color: var(--muted); }
    .guide-bottom-cta { margin-top: 32px; }

    /* FAQ: <details> NOT inside cards */
    .faq-item {
      border-bottom: 1px solid var(--line);
      padding: 12px 0;
      max-width: 78ch;
    }
    .faq-item summary {
      font-family: 'Bricolage Grotesque', system-ui, sans-serif;
      font-weight: 600;
      font-size: 17px;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }
    .faq-item summary::after { content: "+"; color: var(--primary); font-weight: 700; }
    .faq-item[open] summary::after { content: "−"; color: var(--accent-ink); }
    .faq-item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

    /* Footer: 3 Columns + Copyright */
    .site-footer {
      border-top: 2px solid var(--line);
      background: var(--surface);
      padding: 32px 0 48px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-bottom: 24px;
    }
    .footer-col h3 { font-size: 15px; margin-bottom: 10px; }
    .footer-col ul { list-style: none; display: grid; gap: 6px; font-size: 14px; }
    .footer-col a { color: var(--muted); text-decoration: none; }
    .footer-col a:hover { color: var(--primary); text-decoration: underline; }
    .footer-bottom {
      padding-top: 16px;
      border-top: 1px solid var(--line);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 8px;
      font-size: 13px;
      color: var(--muted);
    }


    /* Mobile 390px: Single-column, full buttons, zero overflow */
    @media (max-width: 860px) {
      .wb-grid,
      .step-list-e,
      .grid-2x2,
      .steps-bar-h,
      .footer-grid { grid-template-columns: 1fr; }
      .wb-steps-bar { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 520px) {
      .container { width: calc(100% - 24px); }
      .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
      .wb-form-grid,
      .wb-btn-row { grid-template-columns: 1fr; }
      .wb-seg { grid-template-columns: repeat(2, 1fr); }
      .wb-btn { width: 100%; }
    }
    .prose-block img { max-width: 100%; height: auto; }
    .prose-block figure { margin: 16px 0; }
    .prose-block figcaption { color: var(--muted); font-size: 13px; }
    .prose-block table { width:100%; border-collapse:collapse; margin:0 0 16px; font-size:.92rem; table-layout:fixed; }
    .prose-block th,.prose-block td { text-align:left; vertical-align:top; padding:8px; border:1px solid var(--line, #59705a); overflow-wrap:anywhere; }
    .prose-block th { font-weight:700; }
    .footer-bottom span { min-width:0; overflow-wrap:anywhere; }
    .wb-btn-row:has(> [hidden]) { grid-template-columns: 1fr; }
    [hidden] { display: none !important; }
    [id] { scroll-margin-top: 96px; }
    @media (max-width: 520px) {
      [id] { scroll-margin-top: 150px; }
      .wb-grid > *, .wb-field { min-width: 0; }
      .wb-meta-strip code { overflow-wrap: anywhere; }
    }


/* Long generated identifiers wrap inside saved draft cards. */
.wb-draft-card > :first-child { min-width: 0; overflow-wrap: anywhere; }
.wb-draft-actions { flex-shrink: 0; }
.wb-drafts-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* Feedback */
.bam-feedback {
  color: var(--text, #191a17);
  background: var(--surface, #fff);
  border: 1px solid #879274;
  border-radius: 14px;
  box-sizing: border-box;
  width: min(29rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 4vw, 1.5rem);
  overflow: auto;
}
.bam-feedback::backdrop { background: rgb(18 24 15 / 65%); }
.bam-feedback form, .bam-feedback label { display: grid; gap: .55rem; }
.bam-feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bam-feedback h2, .bam-feedback p { margin: 0; }
.bam-feedback p { font-size: .88rem; }
.bam-feedback p:empty { display: none; }
.bam-feedback select, .bam-feedback textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .55rem; border: 1px solid #879274; border-radius: 6px; }
.bam-feedback textarea { resize: vertical; min-height: 6rem; }
.bam-feedback button { cursor: pointer; font: inherit; border: 1px solid #556541; border-radius: 6px; padding: .45rem .7rem; }
.bam-feedback button[type="submit"] { color: white; background: #3a552c; justify-self: start; }
.bam-feedback button:disabled { opacity: .65; cursor: wait; }
.bam-report-link { color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; padding: .25rem 0; }
.bam-report-link[data-bam-error="true"] { font-weight: 700; }
