:root {
  color-scheme: light dark;
  --line: #8885;
  --soft: #8822;
  --term-bg: #1e1e1e;
  --term-text: #b6f0c8;
  --muted: light-dark(#595959, #a0a0a0);
  --ok-text: light-dark(#1b6f49, #5fd39b);
  --lane-declared: #2e9e6b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: system-ui, sans-serif; line-height: 1.45; max-width: 54rem; margin: 2rem auto 4rem; padding: 0 1rem; }
h1 { margin-bottom: 0.25rem; }
.lede { margin-top: 0; font-size: 1.15rem; }
.site { font-size: 14px; color: var(--muted); }
.nav { font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.caption { min-height: 2.9em; margin: 1rem 0 0.5rem; font-weight: 600; }
.btn { font: inherit; padding: 5px 14px; border: 1px solid var(--line); border-radius: 6px; background: Canvas; color: inherit; cursor: pointer; }
.btn:disabled { cursor: not-allowed; color: var(--muted); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.step-title { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.term { background: var(--term-bg); color: var(--term-text); border-radius: 8px; padding: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.term .cmd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term .run { font: inherit; font-size: 13px; padding: 4px 12px; border: 1px solid var(--term-text); border-radius: 6px; background: transparent; color: var(--term-text); cursor: pointer; }
.term .run:disabled { opacity: 0.55; cursor: not-allowed; }
.term .run:hover:not(:disabled), .term .run:focus-visible { background: #b6f0c822; }
.done-mark { color: var(--term-text); font-size: 13px; }
.result { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.result.waiting { color: var(--muted); }
.result .ok { color: var(--ok-text); font-weight: 600; }
.cert { margin: 0; padding: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.5; overflow-x: auto; }
.lanes { display: grid; gap: 8px; }
.lane { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.lane.declared { border-color: var(--lane-declared); border-width: 2px; }
.lane h3 { margin: 0 0 2px; font-size: 14px; }
.lane p { margin: 0; font-size: 13px; }

.prose h2 { margin-top: 2rem; }
table { border-collapse: collapse; margin: 0.75rem 0; font-size: 14px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; }
