@font-face {
  font-family: 'Paper Mono';
  src: url('/assets/fonts/paper-mono.woff2?v=57b28aaaffc4') format('woff2');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --page: #faf9f6;
  --fg: #181818;
  --fg-2: #515151;
  --fg-3: #686868;
  --line: #deddd8;
  --mono: 'Paper Mono', monospace;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --page: #101010;
  --fg: #eeeeeb;
  --fg-2: #b9b9b5;
  --fg-3: #a0a09b;
  --line: #333330;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--fg); font: 14px/1.8 var(--mono); -webkit-font-smoothing: antialiased; }
button, input, select, textarea, code, pre { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover, button:hover { color: var(--fg); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a { touch-action: manipulation; }
::selection { color: var(--page); background: var(--fg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 5px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 24px; line-height: 1.5; font-weight: 500; letter-spacing: -.04em; }
h2 { font-size: 16px; line-height: 1.6; font-weight: 500; }
h3, h4 { font-size: 14px; font-weight: 500; }
p { color: var(--fg-2); }
strong { font-weight: 500; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.quiet, .hero-note, .notice, .settings-summary { color: var(--fg-3); font-size: 12px; }
.topbar, main, footer { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.topbar { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; font-weight: 500; }
.brand-logo { display: block; width: 28px; height: 28px; filter: invert(1); }
:root[data-theme='dark'] .brand-logo { filter: none; }
nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; color: var(--fg-3); font-size: 12px; }
nav a { text-decoration: none; }
nav a[aria-current='page'] { color: var(--fg); text-decoration: underline; }
main { min-height: 65vh; padding: 72px 0; }
footer { padding: 0 0 40px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--fg-3); }
footer a { text-decoration: none; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 4px 0; min-height: 36px; border: 0; border-radius: 0; background: transparent; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; font-weight: 400; }
.button:hover, .icon-button:hover { text-decoration-thickness: 2px; }
.button.primary { font-weight: 500; }
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.text-home { max-width: 54ch; margin: auto; text-align: center; }
.intro { min-height: 44vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-bottom: 64px; }
.intro .actions { justify-content: center; gap: 28px; }
.pricing .intro { min-height: 0; padding-bottom: 32px; }
.home-section { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 36px 0; }
.home-section pre { max-width: 100%; font-size: 12px; text-align: left; }
.plain-steps { text-align: left; color: var(--fg-2); margin: 0; padding-left: 24px; }
.plain-steps li + li { margin-top: 8px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; }
.page-head h1 { font-size: 22px; }
.page-head p { margin-top: 12px; }
.eyebrow { color: var(--fg-3); font-size: 12px; margin-bottom: 16px; }
.page-body, .reading, .setup-content { display: flex; flex-direction: column; gap: 32px; }
.reading section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.reading h3 { margin-top: 16px; }
.reading ul { color: var(--fg-2); padding-left: 24px; }
.setup-grid { display: flex; flex-direction: column; gap: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 20px; }
.tab { border: 0; background: transparent; color: var(--fg-3); padding: 4px 0; min-height: 36px; }
.tab[aria-selected='true'] { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.setup-step { display: flex; gap: 12px; align-items: baseline; }
.step-number { color: var(--fg-3); }
.code-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.code-box pre { width: 100%; font-size: 13px; }
.callout { color: var(--fg-2); }
.workspace { display: flex; flex-direction: column; gap: 40px; }
.inbox-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-label { display: flex; justify-content: space-between; color: var(--fg-3); font-size: 12px; }
.inbox-list { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.inbox-row { display: block; text-align: left; border: 0; background: transparent; color: var(--fg-3); padding: 4px 0; }
.inbox-row[aria-current='true'] { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.inbox-row small { display: block; font-size: 11px; text-decoration: none; }
.sidebar-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--fg-3); }
.import-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.import-form label, .import-form .error-message { grid-column: 1 / -1; font-size: 12px; }
input, select, textarea { width: 100%; min-width: 0; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: var(--fg-3); }
textarea { resize: vertical; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.inbox-content, .endpoint-panel { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.inbox-title-row, .detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.inbox-title-row .actions { gap: 20px; }
.endpoint-grid { display: flex; flex-direction: column; gap: 12px; }
.endpoint-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: baseline; font-size: 12px; }
.endpoint-label { color: var(--fg-3); }
.endpoint-row code { min-width: 0; overflow-wrap: anywhere; }
.inbox-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--fg-3); }
.event-toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-toolbar .actions { gap: 20px; }
.live-label { font-size: 12px; color: var(--fg-3); }
.event-layout { display: flex; flex-direction: column; gap: 32px; }
.event-list { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; }
.event-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; width: 100%; text-align: left; padding: 10px 0; border: 0; background: transparent; color: var(--fg-3); font-size: 12px; }
.event-row[aria-selected='true'] { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.event-row-top { display: flex; gap: 16px; }
.event-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-detail { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.detail-fields { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.detail-fields dt { color: var(--fg-3); }
.detail-fields dd { margin: 0; }
.detail-block { display: flex; flex-direction: column; gap: 12px; }
.detail-block h4 { color: var(--fg-3); font-size: 12px; }
.detail-block pre { font-size: 12px; max-height: 400px; overflow: auto; }
.error-message { color: var(--fg); font-size: 12px; }
.region-error { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.notice { padding-top: 16px; }
.list-empty { padding: 24px 0; color: var(--fg-3); font-size: 12px; }
.tool-search { display: flex; flex-direction: column; gap: 12px; }
.tool-list { display: flex; flex-direction: column; }
.tool-row { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.tool-row code { font-size: 13px; }
.tool-row p { font-size: 13px; }
.tool-hint { color: var(--fg-3); font-size: 12px; }
.tool-error { display: flex; flex-direction: column; gap: 16px; }
dialog { width: min(540px, calc(100% - 40px)); background: var(--page); color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 28px; }
dialog::backdrop { background: rgb(0 0 0 / .4); }
.dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.dialog-body { display: flex; flex-direction: column; gap: 20px; }
.dialog-body label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 24px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 8px; background: var(--page); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (max-width: 600px) {
  body { font-size: 13px; }
  .topbar, main, footer { width: calc(100% - 40px); }
  .topbar { padding-top: 32px; }
  main { padding: 48px 0; }
  nav { gap: 20px; }
  h1 { font-size: 22px; }
  .intro { min-height: 40vh; padding-bottom: 40px; }
  .intro .actions { gap: 16px; }
  .home-section { padding: 28px 0; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .inbox-title-row { flex-wrap: wrap; }
  .endpoint-row { grid-template-columns: 80px 1fr 32px; gap: 8px; font-size: 11px; }
  .detail-fields { grid-template-columns: 80px 1fr; font-size: 11px; }
  .event-row { grid-template-columns: 130px 1fr; gap: 12px; font-size: 11px; }
  .event-toolbar .actions { gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .button, .icon-button, .tab { min-height: 44px; }
}
