  :root {
    --ink: #1c1f2b; --paper: #f6f3ec; --panel: #ffffff; --line: #ddd6c4;
    --gold: #b8863b; --gold-soft: #f0e2c4; --silver: #6b7583; --silver-soft: #e3e6ea;
    --infinity: #4a5d52; --infinity-soft: #dde6df; --muted: #6b6558;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; line-height: 1.5; }
  .wrap { max-width: 740px; margin: 0 auto; padding: 48px 24px 96px; }
  header.top { text-align: center; margin-bottom: 8px; }
  header.top .eyebrow { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  header.top h1 { font-weight: 400; font-size: 28px; margin: 6px 0 0; }
  .phi-line { text-align: center; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; margin: 10px 0 16px; }
  .phi-line .active { color: var(--gold); font-weight: 600; }

  .compass { display: block; margin: 0 auto 10px; width: 220px; height: 220px; }
  .compass .node { cursor: default; transition: opacity 0.3s; }
  .compass .node.dim { opacity: 0.28; }
  .compass .node.active circle { stroke-width: 2.5; }
  .compass text { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 9px; letter-spacing: 0.03em; fill: var(--ink); }
  .compass .base-label { font-size: 7.5px; }

  .active-lens {
    max-width: 480px; margin: 0 auto 6px; text-align: center;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12px; color: var(--muted);
  }
  .active-lens .lens-name { color: var(--gold); font-weight: 600; }
  .active-lens .lens-terms { margin-top: 2px; }
  .active-lens .lens-note { margin-top: 6px; font-style: italic; color: var(--infinity); }

  .field-guide { max-width: 480px; margin: 0 auto 32px; text-align: center; }
  .field-guide button { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11.5px; color: var(--muted); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 4px 8px; }
  .field-guide button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .field-guide .legend { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12.5px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 14px 18px; margin-top: 10px; text-align: left; }
  .field-guide .legend dt { font-weight: 600; color: var(--gold); margin-top: 8px; }
  .field-guide .legend dt:first-child { margin-top: 0; }
  .field-guide .legend dd { margin: 2px 0 0; color: var(--muted); }

  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 32px; }
  .card .state-label { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
  .method-note { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12.5px; font-style: italic; color: var(--infinity); background: var(--infinity-soft); border-radius: 2px; padding: 8px 12px; margin: -6px 0 16px; }
  .card h2 { font-weight: 400; font-size: 22px; margin: 0 0 14px; }
  .card p.prompt { font-size: 17px; color: var(--ink); margin: 0 0 18px; }
  .card label.field-label { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
  .card .subsection-title { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 13px; color: var(--ink); font-weight: 600; margin: 22px 0 10px; border-top: 1px solid var(--line); padding-top: 18px; }
  .card .subsection-hint { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
  textarea { width: 100%; min-height: 80px; padding: 12px 14px; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; border: 1px solid var(--line); border-radius: 2px; resize: vertical; background: var(--paper); color: var(--ink); margin-bottom: 16px; }
  textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
  textarea:last-child { margin-bottom: 0; }
  select { width: 100%; padding: 10px 12px; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); margin-bottom: 16px; }

  .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  button.btn { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 13px; letter-spacing: 0.02em; padding: 10px 18px; border-radius: 2px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
  button.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  button.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
  button.btn.pause { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
  button.btn:disabled { opacity: 0.4; cursor: not-allowed; }

  .fork { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
  .fork .option { flex: 1; min-width: 140px; border: 1px solid var(--line); border-radius: 2px; padding: 16px; cursor: pointer; background: var(--paper); }
  .fork .option:hover { border-color: var(--ink); }
  .fork .option:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .fork .option.gold { border-left: 3px solid var(--gold); }
  .fork .option.silver { border-left: 3px solid var(--silver); }
  .fork .option.infinity { border-left: 3px solid var(--infinity); }
  .fork .option h3 { font-size: 15px; font-weight: 400; margin: 0 0 4px; }
  .fork .option p { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12.5px; color: var(--muted); margin: 0; }

  .method-picker { display: grid; gap: 10px; margin-bottom: 8px; }
  .method-picker .m-option { text-align: left; border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; background: var(--paper); cursor: pointer; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
  .method-picker .m-option.selected { border-color: var(--gold); background: var(--gold-soft); }
  .method-picker .m-option:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .method-picker .m-option .m-title { font-size: 14px; color: var(--ink); font-weight: 600; }
  .method-picker .m-option .m-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .method-picker .m-option .m-terms { font-size: 11px; color: var(--gold); margin-top: 4px; }

  .oscillation-note { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12.5px; color: var(--infinity); background: var(--infinity-soft); border-radius: 2px; padding: 10px 12px; margin-bottom: 18px; }
  .cycle { border: 1px solid var(--line); border-radius: 2px; padding: 16px; margin-bottom: 14px; background: var(--paper); }
  .cycle .cycle-title { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--infinity); margin-bottom: 10px; }
  .cycle textarea { min-height: 56px; font-size: 14px; }
  .cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .prob-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .prob-grid textarea { min-height: 64px; font-size: 13.5px; }

  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
  .pair .boons label { color: var(--gold); }
  .pair .banes label { color: var(--silver); }

  .footnote { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12px; color: var(--muted); margin-top: 18px; }

  .artifact { white-space: pre-wrap; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 13.5px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 18px; margin: 18px 0; max-height: 440px; overflow-y: auto; }

  .fuller-toggle { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
  .fuller-toggle > button { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 13.5px; color: var(--ink); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 2px; padding: 10px 16px; cursor: pointer; }
  .fuller-toggle > button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  .reflection-drawer { max-width: 740px; margin: 0 auto 20px; }
  .drawer-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; text-align: left;
    background: var(--panel); border: 1px solid var(--line); border-radius: 3px;
    padding: 12px 16px; cursor: pointer;
  }
  .drawer-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .drawer-toggle .drawer-title { font-size: 13.5px; color: var(--ink); font-weight: 600; }
  .drawer-toggle .drawer-status { font-size: 11.5px; color: var(--gold); margin-top: 2px; }
  .drawer-toggle .drawer-caret { font-size: 12px; color: var(--muted); }
  .drawer-panel { border: 1px solid var(--line); border-top: none; border-radius: 0 0 3px 3px; background: var(--panel); padding: 20px; }
  .drawer-panel h3 { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
  .drawer-panel h3.second { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
  .drawer-panel .artifact { max-height: 300px; }

  .ai-section { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
  .ai-section .subsection-hint { margin-bottom: 14px; }
  button.btn.ai { background: var(--infinity); border-color: var(--infinity); }
  .ai-status { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
  .ai-error { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12.5px; color: #a34b3d; margin-top: 10px; }
  .ai-draft-panel { margin-top: 16px; border: 1px solid var(--infinity); border-radius: 3px; overflow: hidden; }
  .ai-draft-panel .ai-draft-header {
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: var(--infinity); padding: 8px 14px;
  }
  .ai-draft-panel .ai-draft-body { padding: 16px; background: var(--infinity-soft); }
  .ai-field { margin-bottom: 14px; }
  .ai-field:last-child { margin-bottom: 0; }
  .ai-field .ai-field-label { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--infinity); margin-bottom: 4px; }
  .ai-field .ai-field-text { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 13.5px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; margin-bottom: 6px; white-space: pre-wrap; }
  .ai-field .ai-field-actions { display: flex; gap: 8px; }
  .ai-field .ai-field-actions button { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11.5px; padding: 5px 10px; border-radius: 2px; border: 1px solid var(--infinity); background: transparent; color: var(--infinity); cursor: pointer; }
  .ai-field .ai-field-actions button:hover { background: var(--infinity); color: #fff; }
  .ai-sources { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 11px; color: var(--muted); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
  .ai-disclaimer { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 12px; font-style: italic; color: var(--muted); margin-bottom: 12px; }

  /* Milestone 0 additions: persistent disclosure + first-pass draft labelling */
  .studio-footer {
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px; line-height: 1.6; color: var(--muted);
    margin: 32px auto 40px; max-width: 720px; text-align: center;
    padding-top: 16px; border-top: 1px solid var(--line);
  }

  .ai-draft-badge {
    display: inline-block; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #6b4d16; background: var(--gold-soft); border: 1px solid var(--gold);
    border-radius: 999px; padding: 2px 8px; vertical-align: middle;
  }

  /* Per-step reflective analysis. Visually distinct from participant fields and
     from the first-pass draft panels: this material is never authored content. */
  .step-analysis { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
  .step-analysis .footnote { margin-top: 8px; }
  .btn.analysis {
    background: transparent; color: var(--ink); border: 1px solid var(--line);
    font-weight: 400;
  }
  .btn.analysis:hover { border-color: var(--gold); color: var(--gold); }
  .btn.tiny { padding: 4px 10px; font-size: 11px; letter-spacing: .04em; }
  .analysis-panel { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
  .analysis-header {
    background: var(--paper); padding: 9px 14px; border-bottom: 1px solid var(--line);
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .analysis-body { padding: 16px; }
  .analysis-note {
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px; line-height: 1.6; color: var(--muted);
    margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  .analysis-list { list-style: none; margin: 0; padding: 0; }
  .analysis-list li {
    padding: 12px 0; border-bottom: 1px solid var(--line);
    display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  }
  .analysis-list li:last-child { border-bottom: none; }
  .analysis-list li p { margin: 0; font-size: 15px; line-height: 1.62; flex: 1 1 auto; }
  .analysis-list li .btn { flex: 0 0 auto; }
  .analysis-empty {
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px; color: var(--muted); margin: 0;
  }

/* --- the forming band: the shape at Resolve, reflected back at every turn --- */
.forming-band {
  margin: 0 0 1.4rem; padding: 0.85rem 1rem 0.7rem;
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: var(--panel); border-radius: 3px;
}
.forming-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; margin-bottom: 0.55rem; }
.forming-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.forming-caveat { font-size: 0.72rem; font-style: italic; color: var(--muted); }
.forming-list { list-style: none; margin: 0; padding: 0; }
.forming-list li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 0 0.75rem;
  margin-bottom: 0.55rem; font-size: 0.9rem; line-height: 1.5;
}
.forming-key {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding-top: 0.22rem;
}
.forming-text { display: inline; color: var(--ink); }
.forming-aside {
  margin-left: 0.4rem; padding: 0; border: 0; background: none;
  font: inherit; font-size: 0.72rem; color: var(--muted);
  text-decoration: underline; cursor: pointer;
}
.forming-aside:hover { color: var(--ink); }
.forming-foot { margin: 0.6rem 0 0; font-size: 0.75rem; font-style: italic; color: var(--muted); }
@media (max-width: 640px) {
  .forming-list li { grid-template-columns: 1fr; gap: 0.1rem; }
  .forming-key { padding-top: 0; }
}
