:root {
  --background: #fff;
  --foreground: #151515;
  --muted: #737373;
  --border: #e8e8e8;
  --primary: #0070e0;
  --accent: #f6f6f6;
  --red-soft: #fff1f1;
  --radius: 14px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--foreground);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[role='tab']:focus-visible {
  outline: 3px solid #0070e04d;
  outline-offset: 3px;
}
p {
  line-height: 1.65;
}
.site-header {
  max-width: 1160px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 34px;
}
.wordmark {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1.4px;
  text-decoration: none;
}
.wordmark:after {
  content: '.';
  color: var(--primary);
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 14px;
}
.header-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.nav-api {
  font-size: 11px;
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.nav-api:hover {
  background: #f6f6f6;
}
main {
  max-width: 1120px;
  padding: 0 26px;
  margin: auto;
}
.intro {
  max-width: 760px;
  padding: 32px 0 30px;
}
.eyebrow,
.micro-label {
  font-size: 9px;
  letter-spacing: 1.25px;
  font-weight: 550;
  color: var(--muted);
  margin: 0 0 10px;
}
h1 {
  font-weight: 550;
  font-size: clamp(32px, 4vw, 43px);
  line-height: 1.13;
  letter-spacing: -1.9px;
  margin: 14px 0;
}
.brand-accent {
  color: #003087;
}
.intro > p.scope-line {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}
.simulation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 24px;
  align-items: start;
}
.flow-column {
  min-width: 0;
}
.flow-progress {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #737373;
  margin-bottom: 14px;
  gap: 10px;
}
.flow-progress span:first-child {
  color: #272727;
}
.main-card {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 32px #00000006;
  overflow: hidden;
}
.resource-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px 25px;
}
.resource-row img {
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(1);
  background: #f5f5f5;
}
.resource-row > div {
  flex: 1;
}
.resource-row .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0 0 5px;
}
.subtle {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 100px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e8e8e8;
}
.badge-good {
  color: #232323;
  background: #f5f5f5;
  border-color: #dedede;
}
.badge-warning {
  color: #ae2222;
  background: var(--red-soft);
  border-color: #f0d5d5;
}
.compact-terms {
  display: flex;
  gap: 17px;
  padding: 13px 25px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  color: #757575;
  font-size: 10px;
  line-height: 1.6;
}
.compact-terms strong {
  color: var(--foreground);
  font-weight: 550;
}
.outcome {
  padding: 25px;
}
.status-line {
  font-size: 10px;
  color: #707070;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #292929;
  flex-shrink: 0;
}
.live-dot.pulse {
  background: var(--primary);
}
.pulse {
  animation: pulse 1.5s infinite;
}
.waiting-summary {
  margin-left: auto;
  color: #737373;
  font-size: 9px;
}
.outcome h3 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.65px;
  margin: 16px 0 9px;
}
.outcome > p {
  font-size: 12px;
  color: #727272;
  margin: 0;
  max-width: 530px;
}
.latest-moves {
  font-size: 10px !important;
  color: #8a8a8a !important;
  margin-top: 10px !important;
}
.primary-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}
.button-primary {
  background: var(--primary);
  color: #fff;
}
.button-primary:hover {
  background: #005bb5;
}
.button-outline {
  background: #fff;
  border-color: #dedede;
  color: var(--foreground);
}
.button-outline:hover,
.button-ghost:hover {
  background: #f5f5f5;
}
.button-ghost {
  background: transparent;
  color: #707070;
}
.button-small {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}
.button:disabled,
.button[data-disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.fine-print {
  font-size: 10px !important;
  color: #858585 !important;
  line-height: 1.7;
  margin: 15px 0 0 !important;
}
.card-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 15px;
  border-top: 1px solid var(--border);
}
.card-links .button {
  font-size: 10px;
  min-height: 33px;
  padding: 7px 10px;
  gap: 8px;
}
.principle {
  font-size: 10px;
  color: #737373;
  margin: 18px 0 28px;
}
/* Both agent summaries stay visible. Only the selected detail view expands. */
.process-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  position: sticky;
  top: 20px;
  margin-top: 26px;
  overflow: hidden;
  box-shadow: 0 5px 24px #00000003;
}
.process-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
}
.process-top .eyebrow {
  margin: 0;
  flex: 1;
  font-size: 9px;
}
.process-connection {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #777;
}
.process-connection i {
  width: 4px;
  height: 4px;
  background: #343434;
  border-radius: 50%;
}
.process-connection.is-offline {
  color: #b02525;
}
.process-connection.is-offline i {
  background: var(--primary);
}
.process-collapse {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #737373;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
}
.process-collapse:hover {
  background: #f5f5f5;
}
.process-collapse svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.15s;
}
.process-collapse svg.is-collapsed {
  transform: rotate(-90deg);
}
.agent-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}
.agent-tab {
  border: 1px solid #e8e8e8;
  background: #fafafa;
  text-align: left;
  padding: 11px;
  border-radius: 9px;
  color: #555;
  cursor: pointer;
  min-width: 0;
  position: relative;
  transition:
    border-color 0.12s,
    background 0.12s;
}
.agent-tab:hover {
  background: #f5f5f5;
}
.agent-tab[data-active] {
  border-color: #252525;
  background: #fff;
  color: #151515;
  box-shadow: 0 1px 3px #00000006;
}
.agent-tab-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}
.agent-tab-heading strong {
  font-size: 12px;
  font-weight: 550;
}
.agent-avatar {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: #eaeaea;
  color: #333;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.agent-tab[data-active] .agent-avatar {
  background: #1c1c1c;
  color: #fff;
}
.agent-indicator {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: #c4c4c4;
  flex-shrink: 0;
}
.agent-indicator.running {
  background: var(--primary);
}
.agent-indicator.failed {
  background: #b42318;
  box-shadow: 0 0 0 3px #b4231814;
}
.agent-indicator.approval,
.agent-indicator.complete {
  background: #262626;
}
.agent-tab-status {
  display: block;
  font-size: 10px;
  color: #737373;
  margin: 8px 0 0 28px;
  line-height: 1.3;
}
.agent-detail-wrap {
  border-top: 1px solid #ededed;
}
.agent-view {
  padding: 17px 17px 12px;
  outline: none;
}
.agent-now {
  min-height: 49px;
}
.agent-now .micro-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #737373;
  margin-bottom: 5px;
  display: block;
}
.agent-now p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.agent-now[data-kind='failed'] p,
.agent-now[data-kind='offline'] p {
  color: #ad2727;
}
.agent-now > .button {
  margin-top: 10px;
}
.activity-track {
  display: block;
  height: 2px;
  background: #f1f1f1;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.activity-track > span {
  height: 100%;
  width: 35%;
  display: block;
  background: var(--primary);
  animation: activity 1.8s ease-in-out infinite;
}
.agent-event-list {
  list-style: none;
  padding: 0;
  margin: 9px 0 0;
}
.agent-event-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #f4f4f4;
}
.event-symbol {
  width: 14px;
  padding-top: 1px;
  flex-shrink: 0;
  font-size: 11px;
  color: #333;
}
.agent-event-list li > div {
  min-width: 0;
}
.agent-event-list li > div > span {
  font-size: 11px;
  display: block;
  line-height: 1.4;
  color: #555;
}
.agent-event-list small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #737373;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 245px;
}
.agent-event-list li[data-kind='failed'] .event-symbol {
  color: var(--primary);
}
.agent-event-list li[data-kind='failed'] small {
  color: #b32b2b;
}
.agent-event-list li[data-kind='blocked'] .event-symbol {
  color: #777;
}
.agent-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
}
.agent-empty p {
  font-size: 11px;
  color: #737373;
  margin: 0;
  max-width: 175px;
}
.empty-orbit {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px dashed #d4d4d4;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  margin-top: 5px;
  border-top: 1px solid #f2f2f2;
}
.agent-detail-footer > span {
  font-size: 9px;
  color: #a0a0a0;
}
.agent-detail-footer button {
  border: 0;
  background: none;
  padding: 7px 0;
  font-size: 10px;
  color: #5b5b5b;
  cursor: pointer;
}
.process-api-link {
  border-top: 1px solid var(--border);
  padding: 13px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  background: #fafafa;
}
.process-api-link code {
  font:
    11px/1.5 ui-monospace,
    monospace;
  color: #777;
}
.process-api-link > span {
  font-size: 10px;
  color: #343434;
}
.process-api-link:hover {
  background: #f5f5f5;
}
footer {
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid #efefef;
  padding: 23px 0 35px;
  font-size: 10px;
  color: #8b8b8b;
}
footer button {
  font-size: 10px;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
footer a {
  text-decoration: none;
}
footer span {
  margin-left: auto;
  font-size: 9px;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff5f5;
  border: 1px solid #efd9d9;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 16px;
}
/* Source-owned shadcn-style dialogs over Base UI. */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #0006;
  z-index: 30;
  backdrop-filter: blur(4px);
  transition: opacity 0.15s;
}
.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 31;
  background: #fff;
  color: var(--foreground);
  border: 1px solid #dedede;
  border-radius: 17px;
  padding: 27px;
  box-shadow: 0 30px 120px #0003;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  outline: none;
}
.dialog-wide {
  width: min(900px, calc(100vw - 32px));
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.dialog-title {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-close {
  border: 0;
  background: #f4f4f4;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #737373;
  font-size: 19px;
  line-height: 1;
}
.dialog-description {
  font-size: 12px;
  color: #737373;
  line-height: 1.7;
  margin: 11px 0 22px;
}
.dialog p {
  font-size: 12px;
}
.dialog form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label {
  font-size: 11px;
  display: block;
  color: #777;
}
input,
textarea {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 11px;
  border: 1px solid #dfdfdf;
  border-radius: 7px;
  color: var(--foreground);
  background: #fff;
  outline: none;
  font-size: 12px;
  line-height: 1.6;
}
input:focus,
textarea:focus {
  border-color: #0070e0;
  box-shadow: 0 0 0 3px #0070e00d;
}
textarea {
  resize: vertical;
}
details {
  border-top: 1px solid var(--border);
  margin-top: 17px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  padding: 16px 0;
  color: #626262;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary:after {
  content: '+';
  font-size: 15px;
}
details[open] > summary:after {
  content: '-';
}
.evidence-grid {
  height: 320px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.race-grid {
  height: 152px;
}
.row-winner {
  background: #f1f1f1 !important;
}
.row-waiting {
  background: #fafafa !important;
}
.row-failed {
  background: #fff0f0 !important;
}
.tool-list {
  padding: 0;
  list-style: none;
}
.tool-list li {
  padding: 10px 0;
  border-top: 1px solid #f1f1f1;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tool-list small {
  font-size: 10px;
  color: #737373;
  text-align: right;
}
pre {
  font:
    10px/1.7 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
  background: #f7f7f7;
  padding: 14px;
  border-radius: 7px;
}
.error-copy {
  font-size: 11px;
  color: #b42b2b;
}
.case-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-options .button {
  justify-content: flex-start;
  text-align: left;
}
.business-attention {
  font-size: 12px;
}
.business-attention p {
  background: #fff4f4;
  padding: 12px;
  border-radius: 8px;
  color: #9a3030;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.receipt h3 {
  margin: 18px 0;
  font-size: 20px;
  font-weight: 550;
}
.receipt dl {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
}
.receipt dt {
  color: #858585;
}
.receipt dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.receipt .button {
  margin-top: 17px;
}
.table-fallback {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.developer-page {
  max-width: 870px;
  padding-top: 40px;
  padding-bottom: 50px;
}
.api-live-card {
  border: 1px solid var(--border);
  padding: 23px;
  border-radius: 13px;
  margin: 20px 0;
}
.api-live-card h2 {
  font-size: 15px;
  margin-bottom: 14px;
}
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  overflow-wrap: anywhere;
}
.api-endpoint code {
  font-size: 12px;
}
.api-live-card pre {
  margin-bottom: 0;
}
.api-downloads {
  display: flex;
  gap: 22px;
  font-size: 12px;
  flex-wrap: wrap;
}
.api-route {
  padding: 13px 0;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.api-route code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.api-route span {
  font-size: 10px;
  color: #888;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes activity {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(390%);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 850px) {
  .simulation-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .process-panel {
    position: static;
    margin: 0 0 24px;
  }
  .intro h1 {
    font-size: 36px;
  }
  .header-actions > .badge {
    display: none;
  }
  .nav-api {
    font-size: 10px;
  }
  .api-route {
    display: block;
  }
  .api-route span {
    display: block;
    margin-top: 6px;
  }
  .agent-event-list small {
    max-width: 100%;
  }
  .process-collapse {
    width: 36px;
    height: 36px;
  }
  .process-top {
    padding-bottom: 8px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 20px;
  }
  .wordmark span {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  main {
    padding: 0 18px;
  }
  .intro {
    padding: 27px 0 25px;
  }
  .intro h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }
  .intro > p.scope-line {
    font-size: 11px;
    max-width: 310px;
  }
  .resource-row {
    padding: 19px;
    gap: 11px;
  }
  .resource-row img {
    width: 48px;
    height: 48px;
  }
  .resource-row .eyebrow {
    font-size: 7px;
  }
  .resource-row h2 {
    font-size: 16px;
  }
  .resource-row > .badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .compact-terms {
    padding: 11px 19px;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .outcome {
    padding: 20px;
  }
  .outcome h3 {
    font-size: 20px;
  }
  .primary-actions .button {
    font-size: 11px;
  }
  .card-links {
    padding: 8px;
  }
  .card-links .button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .waiting-summary {
    font-size: 8px;
  }
  .flow-progress {
    font-size: 8px;
  }
  .dialog {
    padding: 22px;
  }
  .dialog-title {
    font-size: 18px;
  }
  .tool-list li {
    display: block;
  }
  .tool-list small {
    display: block;
    text-align: left;
    margin-top: 5px;
  }
  footer {
    gap: 15px;
  }
  footer span {
    font-size: 8px;
  }
  .agent-tab {
    padding: 12px;
  }
  .process-collapse {
    width: 40px;
    height: 40px;
  }
  .api-endpoint code {
    font-size: 10px;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body [data-base-ui-portal] {
    display: block !important;
  }
  .dialog-backdrop {
    display: none !important;
  }
  .dialog {
    position: static;
    transform: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    width: 100%;
  }
  .dialog-close,
  .receipt .button {
    display: none !important;
  }
}

.outcome {
  padding: 24px 25px 28px;
}
.outcome h3 {
  margin: 0;
  font-size: 22px;
}
.outcome .primary-actions {
  margin-top: 20px;
}
.terms-metrics {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.terms-metrics > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.terms-metrics small {
  font-size: 10px;
  color: #737373;
}
.terms-metrics strong {
  font-size: 14px;
  font-weight: 500;
}
.integration-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}
.integration-strip > a,
.integration-strip > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 10px;
  text-decoration: none;
  border: 0;
  border-right: 1px solid #ededed;
  background: #fff;
  cursor: pointer;
}
.integration-strip > :last-child {
  border-right: 0;
}
.integration-strip strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #292929;
}
.integration-strip .paypal-name {
  color: #003087;
  font-style: italic;
}
.integration-strip small {
  font-size: 10px;
  color: #737373;
}
.integration-strip > a:hover,
.integration-strip > button:hover {
  background: #fafafa;
}
.terms-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  font-size: 12px;
  margin: 0;
}
.terms-list dt {
  color: #737373;
}
.terms-list dd {
  margin: 0;
  font-weight: 500;
}
.process-panel {
  margin-top: 24px;
}
.site-header .wordmark:after {
  content: none;
}
.notice {
  padding: 10px 14px;
  font-size: 12px;
}
.notice .button {
  font-size: 10px;
}
.agent-now[data-kind='failed'] p,
.agent-now[data-kind='offline'] p {
  color: #b42318;
}
.agent-event-list li[data-kind='failed'] .event-symbol {
  color: #b42318;
}
@media (max-width: 850px) {
  .process-panel {
    margin-top: 0;
  }
  .integration-strip > a,
  .integration-strip > button {
    flex-direction: column;
    gap: 4px;
  }
  .integration-strip {
    margin-top: 18px;
  }
  .flow-column {
    margin-bottom: 18px;
  }
}
@media (max-width: 600px) {
  .integration-strip strong {
    font-size: 11px;
  }
  .integration-strip small {
    font-size: 8px;
  }
  .integration-strip > a,
  .integration-strip > button {
    padding: 10px 5px;
    min-height: 58px;
  }
  .terms-metrics {
    gap: 10px;
  }
  .terms-metrics small {
    font-size: 8px;
  }
  .terms-metrics strong {
    font-size: 13px;
  }
  .outcome {
    padding: 21px;
  }
  .outcome h3 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .process-collapse {
    width: 44px;
    height: 44px;
  }
  .dialog-close {
    width: 36px;
    height: 36px;
  }
  .header-actions .nav-api {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
}
/* Compact copy, clear icon affordances, comfortable touch targets. */
.button svg,
.process-api-link svg {
  flex-shrink: 0;
}
.intro {
  padding-top: 22px;
  padding-bottom: 26px;
}
.process-panel {
  margin-top: 0;
}
.card-links .button {
  min-height: 48px;
  font-size: 12px;
  gap: 9px;
  padding: 10px 14px;
}
.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eee;
}
.agent-tab-heading {
  gap: 8px;
}
.agent-tab-status {
  margin-left: 44px;
}
.agent-tab {
  padding: 12px 10px;
}
.process-collapse {
  width: 44px;
  height: 44px;
}
.process-collapse svg {
  width: 24px;
  height: 24px;
}
.event-symbol {
  width: 24px;
  padding-top: 0;
}
.agent-empty {
  min-height: 60px;
  justify-content: center;
  color: #8a8a8a;
}
.agent-empty p {
  font-size: 12px;
}
.agent-now p {
  margin-top: 0;
}
.agent-detail-footer button {
  min-height: 44px;
  padding: 10px 4px;
}
.process-api-link .api-icon-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #343434;
}
.primary-actions .button {
  min-height: 48px;
  gap: 12px;
}
.agent-tab[data-active] {
  border-color: #003087;
}
.agent-tab[data-active] .agent-avatar {
  background: #edf4ff;
  color: #003087;
}
.event-symbol {
  color: #003087;
}
.resource-row {
  padding-top: 24px;
  padding-bottom: 24px;
}
@media (max-width: 600px) {
  .card-links .button {
    font-size: 11px;
    padding: 10px;
    min-height: 48px;
  }
  .intro > p.scope-line {
    font-size: 12px;
  }
  .agent-avatar {
    width: 36px;
    height: 36px;
  }
  .agent-tab-heading strong {
    font-size: 12px;
  }
  .integration-strip {
    margin-top: 4px;
  }
}
.agent-detail-footer button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.agent-now {
  padding-bottom: 4px;
}
/* Reservation race: readable state and accessible evidence controls. */
.grid-section {
  min-width: 0;
}
.grid-overview {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 16px;
}
.grid-overview strong {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.grid-overview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0070e0;
  flex-shrink: 0;
}
.grid-overview-dot.is-offline {
  background: #a35f00;
}
.grid-provider {
  margin-left: auto;
  color: #737373;
  font-size: 10px;
  white-space: nowrap;
}
.evidence-grid {
  border-radius: 12px;
  box-shadow: none;
}
.race-grid {
  height: 198px;
}
.grid-buyer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  height: 100%;
}
.grid-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf1f7;
  color: #344054;
  font-size: 12px;
}
.grid-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #f8f9fb;
  padding: 4px 8px;
  font: 500 11px/1.4 system-ui;
  white-space: nowrap;
  color: #596273;
}
.grid-pill.tone-claim {
  background: #eff6ff;
  color: #0756a3;
  border-color: #d7e8fc;
}
.grid-pill.tone-reserved,
.grid-pill.tone-booked {
  background: #eaf1ff;
  color: #003087;
  border-color: #c9dbfa;
}
.grid-pill.tone-error {
  background: #fff3f2;
  color: #a52a22;
  border-color: #f5d9d5;
}
.grid-inspect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #005bb5;
  font: 500 12px system-ui;
  cursor: pointer;
  padding: 8px;
}
.grid-inspect:hover {
  background: #eaf2ff;
  border-color: #d5e4f8;
}
.grid-inspect:focus-visible {
  outline: 3px solid #0070e04d;
  outline-offset: 0;
}
.evidence-grid .ag-cell {
  display: flex;
  align-items: center;
}
.evidence-grid .ag-cell-focus {
  outline-offset: -2px;
}
.race-row-reserved .ag-cell {
  background: #f5f8ff;
}
.race-row-claim .ag-cell {
  background: #fbfcff;
}
.race-row-error .ag-cell {
  background: #fffafa;
}
.grid-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  color: #7c828b;
  font-size: 10px;
  line-height: 1.5;
}
.grid-fallback {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e7e8eb;
  border-radius: 12px;
}
.grid-fallback table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.grid-fallback th,
.grid-fallback td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f3;
  font-weight: 400;
}
.grid-fallback thead th {
  background: #f8f9fb;
  color: #626b78;
  font-weight: 500;
}
.grid-fallback tbody th {
  font-weight: 550;
}
.grid-fallback tbody tr:last-child > * {
  border-bottom: 0;
}
.grid-empty {
  text-align: center;
  color: #7c828b;
  padding: 18px;
  font-size: 12px;
}
.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;
}
@media (max-width: 600px) {
  .dialog-wide {
    width: calc(100vw - 24px);
    padding: 20px;
  }
  .grid-overview {
    gap: 7px;
    align-items: flex-start;
  }
  .grid-overview strong {
    font-size: 12px;
  }
  .grid-overview-dot {
    margin-top: 6px;
  }
  .grid-caption {
    font-size: 9px;
  }
  .grid-provider {
    font-size: 9px;
    padding-top: 2px;
  }
  .grid-fallback th,
  .grid-fallback td {
    padding: 12px;
  }
}
/* Navy grid surface follows the reference without expanding the page. */
.dialog-wide {
  width: min(1000px, calc(100vw - 32px));
}
.grid-section {
  background: #1d2735;
  padding: 16px;
  border: 1px solid #354152;
  border-radius: 13px;
  color: #edf2fa;
}
.grid-overview strong {
  font-size: 12px;
  color: #edf2fa;
}
.grid-provider,
.grid-caption {
  color: #a3afc2;
}
.grid-overview-dot {
  background: #65acff;
}
.grid-buyer {
  color: #edf2fa;
}
.grid-avatar {
  background: #314560;
  color: #cde2ff;
  border-radius: 50%;
}
.grid-pill {
  background: #303b4b;
  color: #d2dbe8;
  border-color: #435064;
}
.grid-pill.tone-claim {
  background: #233d5e;
  color: #a5d0ff;
  border-color: #365d86;
}
.grid-pill.tone-reserved,
.grid-pill.tone-booked {
  background: #1b4274;
  color: #c5e0ff;
  border-color: #3264a0;
}
.grid-pill.tone-error {
  background: #4d2b34;
  color: #ffc4c2;
  border-color: #75424c;
}
.grid-inspect {
  color: #9dc9ff;
}
.grid-inspect:hover {
  background: #2b405c;
  border-color: #466181;
}
.race-row-reserved .ag-cell {
  background: #21334c;
}
.race-row-claim .ag-cell {
  background: #1f2d40;
}
.race-row-error .ag-cell {
  background: #312936;
}
.grid-fallback {
  border-color: #354152;
}
.grid-fallback th,
.grid-fallback td {
  border-color: #354152;
  color: #e2e9f3;
}
.grid-fallback thead th {
  background: #273344;
  color: #b7c3d4;
}
.grid-path {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  width: 108px;
}
.grid-stage {
  display: block;
  flex: 1;
  height: 20px;
  background: #354152;
  border: 1px solid #455164;
  border-radius: 2px;
}
.stage-done {
  background: #65acff;
  border-color: #65acff;
}
.stage-pending {
  background: #2a486d;
  border-color: #9ccaff;
}
.stage-blocked {
  background: #a65361;
  border-color: #d997a0;
}
.grid-caption {
  margin-top: 12px;
  font-size: 10px;
}
.grid-empty {
  color: #a3afc2;
}
@media (max-width: 600px) {
  .grid-section {
    padding: 12px;
  }
  .dialog-wide {
    width: calc(100vw - 24px);
  }
  .grid-overview strong {
    font-size: 11px;
  }
}
