:root {
  --paper: #f4f1ea;
  --surface: #fcfbf7;
  --surface-soft: #eeebe3;
  --ink: #242a25;
  --muted: #687065;
  --line: #d9dcd1;
  --line-dark: #b7beb1;
  --amber: #bd8431;
  --amber-light: #f4e9cf;
  --amber-ink: #79521b;
  --green: #3f664f;
  --green-light: #e9efe5;
  --red: #9b493b;
  --red-light: #f6e8e1;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, summary, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
button, input, textarea, summary, a, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--amber-ink); }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #e9d5a8; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-weight: 600; line-height: 1.3; }
code, pre { font-family: var(--mono); }
.shell { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.masthead { min-height: 94px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line-dark); }
.wordmark { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 33px; line-height: 1; font-weight: 650; letter-spacing: -1.8px; }
.brand-mark { width: 25px; height: 28px; }
.wordmark-dot { color: var(--amber); }
.masthead-caption { font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.masthead-caption span { margin: 0 12px; color: var(--line-dark); }
.service-status { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px #3f664f0d; }
.status-dot.offline { background: var(--red); }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 50px; padding: 52px 0 38px; }
.eyebrow, .mini-label { display: block; font: 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.intro h1 { font: 58px/1.1 var(--serif); letter-spacing: -2.2px; margin: 11px 0 16px; }
.title-period { color: var(--amber); }
.intro-copy { max-width: 480px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.intro-aside { min-width: 285px; border-left: 1px solid var(--line-dark); padding: 3px 0 3px 27px; margin-bottom: 5px; }
.pipeline-caption { display: flex; gap: 10px; font-size: 11px; font-weight: 600; margin: 12px 0 10px; }
.pipeline-caption span:nth-child(even) { color: var(--amber); font-weight: 400; }
.intro-aside p { font-size: 11px; color: var(--muted); max-width: 260px; }
.feedback { padding: 13px 17px; margin-bottom: 20px; border: 1px solid var(--line-dark); background: var(--green-light); font-size: 13px; overflow-wrap: anywhere; }
.feedback-error { color: #813b30; background: var(--red-light); border-color: #dac0b9; }

.launch-panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading-title { display: flex; align-items: center; gap: 12px; }
.section-number { font: 10px/1 var(--mono); color: var(--muted); padding-right: 12px; border-right: 1px solid var(--line-dark); }
.section-heading h2, .section-heading h3 { font-size: 14px; }
.section-hint { font-size: 11px; color: var(--muted); }
.scenario-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; border: 0; min-width: 0; }
.scenario-card { position: relative; display: flex; flex-direction: column; padding: 15px 14px 17px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.scenario-card:hover { border-color: var(--line-dark); background: #f6f5ee; }
.scenario-card:has(input:checked) { border-color: var(--ink); background: var(--surface-soft); box-shadow: inset 0 -2px 0 var(--ink); }
.scenario-card:has(input:focus-visible) { outline: 2px solid var(--amber-ink); outline-offset: 3px; }
.scenario-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scenario-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.scenario-index { font: 11px/1 var(--mono); color: var(--muted); }
.radio-indicator { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-dark); }
.scenario-card:has(input:checked) .radio-indicator { border: 3px solid var(--ink); background: var(--amber); }
.scenario-name { display: block; font-size: 12px; font-weight: 650; margin-bottom: 5px; }
.scenario-description { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); }
.launch-bottom { margin-top: 20px; display: flex; gap: 24px; align-items: start; }
.document-editor { flex: 1; min-width: 0; }
.document-editor > summary { display: flex; align-items: center; gap: 9px; min-height: 43px; cursor: pointer; list-style: none; font-size: 12px; }
summary::-webkit-details-marker { display: none; }
.document-icon { color: var(--muted); font-size: 19px; line-height: 1; }
.summary-affordance { color: var(--muted); font-size: 10px; margin-left: 5px; text-decoration: underline; text-underline-offset: 3px; }
.document-fields { padding-top: 15px; display: grid; gap: 8px; }
.document-fields label { font-size: 11px; font-weight: 600; }
.document-fields input, .document-fields textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fffefa; border: 1px solid var(--line-dark); border-radius: 0; }
.document-fields input { margin-bottom: 6px; }
.document-fields textarea { resize: vertical; min-height: 155px; font: 12px/1.7 var(--mono); }
.document-footer { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 42px; padding: 10px 18px; border: 1px solid transparent; border-radius: 2px; font-size: 11px; font-weight: 600; line-height: 1.5; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.button-primary { color: #fffef8; background: var(--ink); min-width: 178px; }
.button-primary:hover:not(:disabled) { background: #414b3f; }
.button-primary > span:last-child { color: #dbb76d; font-size: 17px; line-height: 1; }
.button-secondary { background: transparent; border-color: var(--line-dark); color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: var(--surface-soft); border-color: var(--ink); }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:hover:not(:disabled) { background: var(--red-light); color: var(--red); }
.text-button { padding: 2px 0; color: var(--muted); font-size: 10px; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover:not(:disabled) { color: var(--ink); }
.icon-button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.icon-button:hover:not(:disabled) { background: var(--surface-soft); color: var(--ink); }

.workspace { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 35px; margin-top: 40px; align-items: start; }
.run-sidebar { min-width: 0; padding-top: 2px; }
.runs-heading { align-items: end; margin-bottom: 8px; }
.runs-heading .eyebrow { margin-bottom: 6px; }
.runs-heading h2 { font-size: 15px; }
.count { color: var(--muted); margin-left: 4px; font: 11px var(--mono); }
.sidebar-description { font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.empty-small { padding: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.run-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.run-list li { border-bottom: 1px solid var(--line); }
.run-list-button { display: block; text-align: left; width: 100%; padding: 15px 12px; border: 0; border-left: 2px solid transparent; color: var(--ink); background: transparent; transition: background-color .15s; }
.run-list-button:hover { background: var(--surface-soft); }
.run-list-button[aria-current="true"] { border-left-color: var(--amber); background: #eae8de; }
.run-list-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.run-list-title { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; margin-bottom: 6px; }
.run-list-scenario { font-size: 10px; color: var(--muted); }
.run-list-time { font: 9px/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.run-list-id { font: 9px/1.5 var(--mono); color: var(--muted); }
.run-list .status-badge { font-size: 8px; padding: 3px 5px; gap: 4px; letter-spacing: .02em; }
.sidebar-footnote { display: flex; align-items: start; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.privacy-mark { color: #8b917f; font-size: 15px; }
.execution-area { min-width: 0; }
.empty-workspace { display: flex; min-height: 435px; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 35px; border: 1px dashed var(--line-dark); background: #f8f6f0; }
.empty-pipeline { display: flex; align-items: center; gap: 0; margin-bottom: 35px; color: #8c9583; }
.empty-pipeline span { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #cbd0c0; background: var(--paper); font: 9px/1 var(--mono); }
.empty-pipeline i { width: 25px; height: 1px; background: #cbd0c0; }
.empty-workspace h2 { font: 34px/1.2 var(--serif); letter-spacing: -.5px; margin: 10px 0 15px; }
.empty-workspace > p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 350px; }
.empty-detail { font: 9px/1.5 var(--mono); color: #78816e; margin-top: 25px; }
.run-overview { border-top: 2px solid var(--ink); padding: 20px 24px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.overview-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.run-overview h2 { font: 29px/1.2 var(--serif); letter-spacing: -.4px; overflow-wrap: anywhere; }
.run-identity { display: flex; align-items: center; gap: 10px; margin: 9px 0 12px; }
.run-identity code { font-size: 10px; overflow-wrap: anywhere; color: var(--muted); }
.run-identity button { flex-shrink: 0; }
.run-facts { display: flex; gap: 15px; color: var(--muted); font-size: 10px; }
.run-facts > span + span { padding-left: 15px; border-left: 1px solid var(--line); }
.run-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 20px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.run-metrics > div { padding-left: 20px; border-left: 1px solid var(--line); }
.run-metrics > div:first-child { padding-left: 0; border: 0; }
.metric-value { font: 27px/1.2 var(--serif); display: block; margin-bottom: 5px; }
.run-metrics .mini-label { font-size: 8px; letter-spacing: .05em; }
.run-action-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.run-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.run-actions .button { min-height: 35px; font-size: 10px; padding: 8px 11px; }
.observed-time { font: 9px/1.5 var(--mono); color: var(--muted); }
.semantics-note { color: var(--muted); font-size: 10px; line-height: 1.65; max-width: 620px; margin-top: 14px; }
.run-warning { padding: 12px 14px; margin-bottom: 17px; color: var(--amber-ink); border-left: 2px solid var(--amber); background: var(--amber-light); font-size: 11px; overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #d8dbd1; background: #eeefe9; color: #626a5c; font: 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.status-badge::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.status-succeeded, .status-completed, .status-delivered { background: var(--green-light); color: var(--green); border-color: #cfdbc9; }
.status-running, .status-retry-wait, .status-open, .status-recovering { background: var(--amber-light); color: var(--amber-ink); border-color: #e6d3aa; }
.status-failed, .status-error { background: var(--red-light); color: var(--red); border-color: #e2c7bf; }
.steps-section, .inbox-section, .audit-section { margin-top: 29px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.step { position: relative; margin: 0; border: 1px solid var(--line); background: var(--surface); }
.step + .step { margin-top: -1px; }
.step-main { display: flex; align-items: center; gap: 14px; padding: 17px 18px; }
.step-number { width: 29px; height: 29px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--line); font: 10px/1 var(--mono); flex-shrink: 0; color: var(--muted); }
.step.is-succeeded .step-number { border-color: #d5dfce; color: var(--green); background: var(--green-light); }
.step.is-running .step-number { border-color: #e3c994; color: var(--amber-ink); background: var(--amber-light); }
.step-title-wrap { flex: 1; min-width: 0; }
.step-title { font-size: 13px; font-weight: 600; }
.step-tool { font: 9px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; margin-top: 3px; }
.step-attempt-count { font: 9px/1.5 var(--mono); color: var(--muted); }
.step-details { border-top: 1px solid #e4e6dc; margin: 0 18px 0 61px; }
.step-details > summary { cursor: pointer; list-style: none; font-size: 10px; color: var(--muted); padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; }
.step-details > summary::after, .trace-detail > summary::after { content: "+"; font: 14px/1 var(--mono); }
.step-details[open] > summary::after, .trace-detail[open] > summary::after { content: "−"; }
.step-detail-content { padding: 3px 0 15px; }
.attempt-list { list-style: none; padding: 0; margin: 0 0 14px; }
.attempt-row { border-top: 1px solid var(--line); padding: 9px 0; }
.attempt-row:first-child { border-top: 0; }
.attempt-topline { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.attempt-name { font: 9px/1.5 var(--mono); }
.attempt-time, .attempt-error { font-size: 10px; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.attempt-error { color: var(--red); }
.output-label { margin: 12px 0 7px; }
.data-output { margin: 0; padding: 12px; background: var(--surface-soft); border: 1px solid #e1e2d7; color: #424c3d; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 10px/1.7 var(--mono); max-height: 320px; overflow: auto; }
.output-empty { color: var(--muted); font-size: 10px; }
.retry-time { font: 9px/1.7 var(--mono); color: var(--amber-ink); margin-bottom: 9px; }
.section-description { color: var(--muted); font-size: 11px; line-height: 1.7; margin: -7px 0 16px; max-width: 550px; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.receipt-card { padding: 17px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid #819074; min-width: 0; }
.receipt-topline { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.receipt-recipient { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.receipt-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; color: #53604c; max-height: 230px; overflow: auto; }
.receipt-time { margin-top: 13px; font: 9px/1.5 var(--mono); color: var(--muted); }
.receipt-proof { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 9px; }
.receipt-proof summary { cursor: pointer; font-size: 10px; color: var(--muted); }
.receipt-proof dl { margin: 9px 0 0; }
.receipt-proof dt { font-size: 9px; color: var(--muted); margin-top: 7px; }
.receipt-proof dd { margin: 2px 0 0; font: 9px/1.6 var(--mono); overflow-wrap: anywhere; }
.inbox-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line-dark); color: var(--muted); background: #f8f6f0; font-size: 11px; }
.audit-section { padding-bottom: 8px; }
.audit-caption { display: flex; justify-content: space-between; color: var(--muted); font: 9px/1.5 var(--mono); padding: 0 0 12px; border-bottom: 1px solid var(--line-dark); }
.audit-scroll { max-height: 480px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; overscroll-behavior: contain; }
.audit-list { list-style: none; margin: 0; padding: 0; }
.audit-event { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 18px; padding: 16px 6px 16px 0; border-bottom: 1px solid var(--line); }
.event-time { font: 9px/1.6 var(--mono); color: var(--muted); padding-top: 1px; }
.event-sequence { display: block; color: #89917e; margin-top: 3px; }
.event-kind { display: block; font: 10px/1.5 var(--mono); color: #4a5842; overflow-wrap: anywhere; margin-bottom: 5px; }
.event-reason { font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.event-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font: 8px/1.6 var(--mono); color: var(--muted); }
.event-rule { display: block; margin-top: 7px; font: 8px/1.6 var(--mono); color: #7a806f; overflow-wrap: anywhere; }
.trace-detail { border-bottom: 1px solid var(--line); margin-top: 4px; padding: 11px 0 12px; }
.trace-detail > summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; font-size: 10px; color: var(--muted); }
.trace-detail p { margin: 12px 0 5px; font-size: 10px; color: var(--muted); }
.trace-detail code { font-size: 10px; overflow-wrap: anywhere; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 28px; margin-top: 65px; border-top: 1px solid var(--line-dark); color: var(--muted); font: 9px/1.6 var(--mono); }

@media (min-width: 1250px) { .intro { padding-top: 62px; } .intro h1 { font-size: 66px; } .workspace { grid-template-columns: 275px minmax(0, 1fr); gap: 40px; } }
@media (max-width: 1050px) { .shell { padding: 0 28px; } .masthead-caption { display: none; } .intro { gap: 24px; } .intro-aside { min-width: 260px; padding-left: 20px; } .intro h1 { font-size: 49px; } .workspace { grid-template-columns: 215px minmax(0, 1fr); gap: 24px; } .scenario-card { padding: 13px 10px; } .scenario-name { font-size: 11px; } .run-action-row { align-items: start; flex-direction: column; gap: 8px; } }
@media (max-width: 800px) { .intro-aside { display: none; } .intro-copy { max-width: 540px; } .scenario-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } .workspace { grid-template-columns: 1fr; gap: 28px; } .run-list { display: flex; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--line); } .run-list li { flex: 0 0 230px; border-bottom: 0; border-right: 1px solid var(--line); } .run-list-button { height: 100%; } .sidebar-footnote { margin-top: 12px; } .sidebar-footnote p { max-width: none; } .run-overview { padding: 20px; } .run-action-row { flex-direction: row; align-items: center; } .empty-workspace { min-height: 340px; } }
@media (max-width: 520px) { .shell { padding: 0 18px; } .masthead { min-height: 76px; gap: 15px; } .wordmark { font-size: 29px; gap: 8px; } .brand-mark { width: 21px; height: 25px; } .service-status { font-size: 9px; gap: 6px; } .intro { padding: 36px 0 28px; } .intro h1 { font-size: 44px; letter-spacing: -1.7px; } .intro-copy { font-size: 13px; } .intro .eyebrow { font-size: 9px; } .launch-panel { padding: 17px; } .launch-heading { align-items: start; } .launch-heading .section-hint { display: none; } .scenario-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .scenario-card:last-child { grid-column: 1 / -1; } .scenario-card:last-child .scenario-topline { margin-bottom: 7px; } .scenario-name { font-size: 12px; } .launch-bottom { flex-direction: column; gap: 12px; } .document-editor { width: 100%; } .summary-affordance { margin-left: auto; font-size: 9px; } .button-primary { width: 100%; } .document-footer { flex-direction: column; gap: 6px; align-items: start; } .workspace { margin-top: 30px; } .run-overview { padding: 17px; } .run-overview h2 { font-size: 26px; } .run-identity { align-items: start; } .run-identity code { font-size: 9px; } .run-facts { flex-direction: column; gap: 4px; } .run-facts > span + span { padding: 0; border: 0; } .run-metrics { gap: 10px; } .run-metrics > div { padding-left: 10px; } .run-metrics .mini-label { font-size: 7px; letter-spacing: 0; } .metric-value { font-size: 25px; } .run-action-row { flex-direction: column; align-items: start; gap: 8px; } .step-main { flex-wrap: wrap; gap: 10px; padding: 14px 12px; } .step-title-wrap { min-width: 95px; } .step-attempt-count { display: none; } .step-details { margin: 0 12px 0 51px; } .receipt-grid { grid-template-columns: 1fr; } .section-heading { gap: 12px; } .section-hint { font-size: 9px; text-align: right; } .audit-event { grid-template-columns: 59px minmax(0, 1fr); gap: 10px; } .event-time { font-size: 8px; } .page-footer { flex-wrap: wrap; gap: 9px 20px; margin-top: 45px; font-size: 8px; } .page-footer > span:last-child { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
