:root {
  --ink: #141414;
  --muted: #6b6b69;
  --line: #dededb;
  --paper: #fff;
  --wash: #f5f5f3;
  --rail: 218px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    14px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d4d4d1;
  background: white;
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.5;
}
button:hover {
  background: #141414;
  color: white;
  border-color: #141414;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 35px 23px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.rail nav {
  margin-top: 32px;
  display: grid;
  gap: 7px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #666;
  padding: 12px 10px;
  font-size: 12px;
}
.nav:hover {
  background: #eee;
}
.nav[aria-current="page"] {
  background: var(--ink);
  color: white;
}
.mono,
.eyebrow,
.badge,
.service-state,
th,
.metric > span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
main {
  margin-left: var(--rail);
  padding: 0 52px 24px;
}
.mono {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #666;
}
.panel {
  padding-top: 40px;
  min-height: 100vh;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #777;
  margin: 0 0 13px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 28px;
}
.metrics {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 31px 0 30px;
}
.metric {
  padding: 20px 22px 18px 23px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
  padding-left: 23px;
}
.metric > span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
}
.metric strong {
  display: block;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -1.8px;
  line-height: 1.2;
  margin: 10px 0 6px;
}
.metric small {
  font-size: 10px;
  color: #888;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.section-top h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
}
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.service {
  border: 1px solid var(--line);
  padding: 17px 16px 15px;
}
.service-title {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 12px;
}
.service-state {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: #858585;
  border-radius: 50%;
}
.service.healthy .status-dot {
  background: #23603c;
}
.service.warning .status-dot {
  background: #b77912;
}
.service.error .status-dot {
  background: #b73535;
}
.service p {
  font-size: 10px;
  color: #888;
  margin: 9px 0 0;
  min-height: 15px;
}
.spaced {
  margin-top: 29px;
}
.empty {
  padding: 25px 20px;
  border: 1px solid var(--line);
  background: #fafaf9;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.empty h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 4px;
}
.empty p {
  font-size: 11px;
  color: #888;
  margin: 0;
}
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 10px;
}
.job-title {
  font-size: 13px;
  margin: 0 0 8px;
  font-weight: 500;
}
.job p {
  font-size: 11px;
  color: #777;
  margin: 3px 0;
}
.badge {
  display: inline-block;
  border: 1px solid #ddd;
  padding: 3px 6px;
  font-size: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.dark {
  background: #111;
  color: white;
  border-color: #111;
}
.badge.warning {
  border-style: dashed;
  background: #f0f0ed;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 20px;
}
.filters input,
.filters select {
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  padding: 10px 12px;
  font-size: 12px;
  color: #444;
}
.filters select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23666' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.search-label {
  flex: 1;
  min-width: 0;
}
.search-label input {
  width: 100%;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 650px;
  table-layout: fixed;
}
th {
  text-align: left;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #888;
  padding: 13px 15px 14px 0;
  border-bottom: 1px solid #111;
}
td {
  padding: 19px 15px 19px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #666;
  overflow-wrap: anywhere;
}
th:first-child {
  width: 34%;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
td strong {
  color: #222;
  font-weight: 500;
}
td small {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 6px;
  line-height: 1.6;
}
.request-link {
  padding: 0;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.request-link:hover {
  background: transparent;
  color: #666;
}
.timeline {
  border-top: 1px solid var(--line);
}
.event {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.event summary {
  padding: 16px 15px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 145px 1fr 110px;
  gap: 20px;
  align-items: start;
  list-style: none;
}
.event summary::-webkit-details-marker {
  display: none;
}
.event time {
  font:
    10px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #888;
}
.event-title {
  font-size: 12px;
  color: #333;
}
.event-meta {
  font-size: 10px;
  color: #999;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.event-source {
  font:
    9px/1.8 ui-monospace,
    monospace;
  text-align: right;
  color: #888;
}
.event-source:after {
  content: " +";
  margin-left: 15px;
}
.event[open] .event-source:after {
  content: " −";
}
.event pre {
  font:
    10px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--wash);
  padding: 18px;
  margin: 0 0 15px;
  max-height: 320px;
  overflow: auto;
}
.load-more {
  margin-top: 20px;
}
.footnote {
  font-size: 10px;
  color: #888;
  line-height: 1.8;
  margin-top: 24px;
  max-width: 750px;
}
.notice {
  margin-top: 18px;
  border: 1px solid #999;
  border-left: 3px solid #111;
  padding: 12px 15px;
  font-size: 12px;
  background: var(--wash);
}
.notice.demo {
  border-style: dashed;
}
.attention-item {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}
.attention-item small {
  color: #888;
}
.attention-item button {
  padding: 3px 8px;
}
.muted {
  color: #888;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
dialog {
  position: fixed;
  inset: 0 0 0 var(--rail);
  width: auto;
  max-width: none;
  max-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 30px;
  border: 0;
  border-left: 1px solid var(--line);
  overflow: auto;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 27px;
}
.detail-top .eyebrow {
  margin: 0;
}
dialog h2 {
  font-size: 30px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 15px;
}
.detail-objective {
  color: #666;
  font-size: 13px;
  margin-bottom: 25px;
}
.record-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 11px 18px;
  font-size: 11px;
  margin: 25px 0;
}
.record-grid dt {
  color: #888;
}
.record-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-label {
  margin: 25px 0 12px;
  font-size: 12px;
}
.detail-messages {
  border-top: 1px solid var(--line);
}
.detail-message {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.detail-message small {
  display: block;
  color: #888;
  margin-top: 5px;
}
.detail-events .event summary {
  grid-template-columns: 100px 1fr;
  gap: 12px;
}
.detail-events .event-source {
  display: none;
}
@media (min-width: 1600px) {
  main {
    padding-left: 70px;
    padding-right: 70px;
  }
}
@media (max-width: 1100px) {
  :root {
    --rail: 185px;
  }
  main {
    padding: 0 28px 24px;
  }
  .rail {
    padding: 28px 16px;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .metric strong {
    font-size: 36px;
  }
  .metric {
    padding-right: 12px;
  }
  .metric + .metric {
    padding-left: 15px;
  }
  .event summary {
    grid-template-columns: 125px 1fr 85px;
  }
}
@media (max-width: 720px) {
  .rail {
    position: static;
    width: 100%;
    padding: 18px 20px;
  }
  .brand {
    font-size: 17px;
  }
  .rail nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    margin-top: 17px;
  }
  .nav {
    padding: 7px 9px;
    white-space: nowrap;
    font-size: 11px;
    gap: 6px;
  }
  main {
    margin: 0;
    padding: 0 20px 20px;
  }
  .panel {
    padding-top: 28px;
  }
  h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 16px 15px;
  }
  .metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 15px;
  }
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .metric strong {
    font-size: 34px;
  }
  .services {
    gap: 8px;
  }
  .service {
    padding: 12px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search-label {
    flex-basis: 100%;
    max-width: none;
  }
  .filters input,
  .filters select {
    font-size: 11px;
  }
  .event summary {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }
  .event-source {
    display: none;
  }
  .event time {
    font-size: 9px;
  }
  .event-title {
    font-size: 11px;
  }
  dialog {
    inset: 0;
    width: 100%;
    padding: 22px;
  }
  .detail-events .event summary {
    grid-template-columns: 75px 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.12s,
      color 0.12s;
  }
}

.workflow-steps {
  display: flex;
  list-style: none;
  margin: 32px 0;
  padding: 6px 6px 16px;
  overflow-x: auto;
}
.workflow-step {
  position: relative;
  flex: 1;
  min-width: 108px;
}
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.workflow-step button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 4px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.workflow-step button:hover {
  color: var(--ink);
  background: transparent;
}
.workflow-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #c8c8c5;
  border-radius: 50%;
  background: var(--paper);
  color: #888;
  font-size: 11px;
}
.workflow-step.completed .workflow-dot {
  background: #23603c;
  border-color: #23603c;
  color: white;
}
.workflow-step.waiting .workflow-dot {
  background: #b77912;
  border-color: #b77912;
  color: white;
}
.workflow-step.running .workflow-dot {
  background: #2d5d98;
  border-color: #2d5d98;
  color: white;
}
.workflow-step.failed .workflow-dot {
  background: #b73535;
  border-color: #b73535;
  color: white;
}
.workflow-step button[aria-pressed="true"] .workflow-dot {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.workflow-step-title {
  font-size: 11px;
  font-weight: 500;
}
.workflow-step-state {
  font-size: 10px;
  color: var(--muted);
}
.workflow-badge {
  margin-left: auto;
}
.workflow-badge.waiting {
  color: #8a590b;
  border-color: #d9c59e;
}
.workflow-badge.completed {
  color: #23603c;
  border-color: #a8c1b0;
}
.workflow-detail {
  padding: 24px;
  border: 1px solid var(--line);
}
.workflow-detail .section-top {
  margin-top: 0;
}
.workflow-detail > p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.workflow-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 0;
}
.workflow-fields dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.workflow-fields dd {
  font-size: 12px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .workflow-fields {
    grid-template-columns: 1fr;
  }
  .workflow-detail {
    padding: 18px;
  }
  .workflow-step {
    min-width: 76px;
  }
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.usage-window {
  padding: 18px;
  border: 1px solid var(--line);
}
.usage-heading,
.usage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.usage-heading h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}
.usage-heading > span {
  font-size: 12px;
}
.usage-window progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  margin: 18px 0 12px;
  border: 0;
  background: #eee;
}
.usage-window progress::-webkit-progress-bar {
  background: #eee;
}
.usage-window progress::-webkit-progress-value {
  background: var(--ink);
}
.usage-window progress::-moz-progress-bar {
  background: var(--ink);
}
.usage-meta,
.usage-scope {
  color: var(--muted);
  font-size: 10px;
}
.usage-warning {
  color: #8a590b;
  font-size: 12px;
}

.workflow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.workflow-summary dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.workflow-summary dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.workflow-evidence {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.workflow-evidence li {
  font-size: 12px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.workflow-evidence span {
  display: inline-block;
  margin-right: 12px;
  color: var(--muted);
}
#workflow-more {
  margin-top: 16px;
}
.phase-resources {
  margin-top: 24px;
}
.phase-resources h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
}
.phase-resources a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.phase-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}
.phase-list li {
  margin-top: 6px;
}
.phase-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.phase-request h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}
.phase-request p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.phase-request button {
  flex-shrink: 0;
}
.technical-details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.technical-details > summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
}
.phase-cancelled {
  margin-bottom: 20px !important;
}
@media (max-width: 720px) {
  .workflow-summary {
    grid-template-columns: 1fr 1fr;
  }
}
