*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

:where(h1, h2, h3, h4) {
  margin: 0;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

:where(h1) {
  font-size: var(--text-3xl);
}

:where(h2) {
  font-size: var(--text-2xl);
}

:where(h3) {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
}

:where(h4) {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
}

:where(p) {
  margin: 0;
  max-width: var(--measure);
}

:where(a) {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:where(a:hover) {
  text-decoration-thickness: 2px;
}

:where(code, kbd, samp, pre) {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

:where(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
}

.o-wordmark {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

.o-mark {
  display: inline-block;
  flex-shrink: 0;
  width: var(--o-mark-size, 48px);
  height: var(--o-mark-size, 48px);
  fill: var(--fg);
}

.o-mark--xs {
  --o-mark-size: 16px;
}

.o-mark--sm {
  --o-mark-size: 24px;
}

.o-mark--lg {
  --o-mark-size: 96px;
}

.o-mark--xl {
  --o-mark-size: 150px;
}

.o-mark .o-mark__odd {
  fill: var(--accent);
}

.o-mark--loading rect {
  animation: o-build 2.4s var(--ease) infinite both;
}

.o-mark--loading rect:nth-of-type(2) {
  animation-delay: 0.08s;
}

.o-mark--loading rect:nth-of-type(3) {
  animation-delay: 0.16s;
}

.o-mark--loading rect:nth-of-type(4) {
  animation-delay: 0.24s;
}

.o-mark--loading rect:nth-of-type(5) {
  animation-delay: 0.32s;
}

.o-mark--loading rect:nth-of-type(6) {
  animation-delay: 0.4s;
}

.o-mark--loading rect:nth-of-type(7) {
  animation-delay: 0.48s;
}

.o-mark--loading rect:nth-of-type(8) {
  animation-delay: 0.56s;
}

.o-mark--loading rect:nth-of-type(9) {
  animation-delay: 0.64s;
}

.o-mark--loading rect:nth-of-type(10) {
  animation-delay: 0.72s;
}

.o-mark--loading rect:nth-of-type(11) {
  animation-delay: 0.8s;
}

.o-mark--loading rect:nth-of-type(12) {
  animation-delay: 0.88s;
}

.o-mark--loading rect:nth-of-type(13) {
  animation-delay: 0.96s;
}

.o-mark--loading .o-mark__odd {
  animation: o-light 2.4s var(--ease) infinite both;
}

@keyframes o-build {
  0% {
    opacity: 0.15;
  }
  8%,
  72% {
    opacity: 1;
  }
  88%,
  100% {
    opacity: 0.15;
  }
}

@keyframes o-light {
  0%,
  52% {
    fill: var(--line-strong);
  }
  60%,
  80% {
    fill: var(--accent);
  }
  90%,
  100% {
    fill: var(--line-strong);
  }
}

.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.o-btn:hover {
  border-color: var(--fg);
}

.o-btn--primary {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.o-btn--primary:hover {
  background: color-mix(in srgb, var(--fg) 84%, var(--bg));
}

.o-btn--accent {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--on-accent);
}

.o-btn--accent:hover {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-strong) 86%, var(--fg));
}

.o-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.o-btn--ghost:hover {
  border-color: transparent;
  background: var(--surface-sunken);
}

.o-btn--danger {
  border-color: color-mix(in srgb, var(--bad) 45%, var(--line));
  color: var(--bad);
}

.o-btn--danger:hover {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.o-btn--sm {
  height: var(--control-sm);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}

.o-btn--lg {
  height: var(--control-lg);
  padding: 0 var(--space-6);
  font-size: var(--text-base);
}

.o-btn--icon {
  width: var(--control-md);
  padding: 0;
}

.o-btn:disabled,
.o-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.o-field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.o-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.o-help {
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-input,
.o-select,
.o-textarea {
  width: 100%;
  height: var(--control-md);
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) var(--ease);
}

.o-input:hover,
.o-select:hover,
.o-textarea:hover {
  border-color: var(--muted);
}

.o-input:focus-visible,
.o-select:focus-visible,
.o-textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}

.o-input::placeholder,
.o-textarea::placeholder {
  color: var(--subtle);
}

.o-input--mono {
  font-family: var(--font-mono);
}

.o-textarea {
  height: auto;
  min-height: 7rem;
  padding: var(--space-3);
  font-family: var(--font-mono);
  line-height: var(--leading-normal);
  resize: vertical;
}

.o-select-wrap {
  position: relative;
}

.o-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.o-select {
  appearance: none;
  padding-right: var(--space-8);
}

.o-field--error .o-input,
.o-field--error .o-select,
.o-field--error .o-textarea {
  border-color: var(--bad);
}

.o-field--error .o-help {
  color: var(--bad);
}

.o-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

.o-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-strong);
}

.o-panel {
  min-width: 0;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-panel--flush {
  padding: 0;
  overflow: hidden;
}

.o-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

.o-panel__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.o-cmd {
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-code);
}

.o-cmd__line {
  display: flex;
  gap: var(--space-2);
  white-space: pre;
}

.o-cmd__prompt {
  color: var(--accent);
  user-select: none;
}

.o-cmd__comment {
  color: var(--muted);
  white-space: pre;
}

.o-cmd__out {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  color: var(--muted);
  white-space: pre;
}

.o-cmd__ok {
  color: var(--accent-strong);
  font-weight: var(--weight-medium);
}

.o-cmd__err {
  color: var(--bad);
  font-weight: var(--weight-medium);
}

.o-cmd__value {
  color: var(--fg);
}

.o-copy {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.o-copy__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.o-copy__box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-copy__code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 2.4;
  white-space: nowrap;
  scrollbar-width: thin;
}

.o-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.o-status::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.o-status--live::before {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.o-status--building::before {
  width: 10px;
  height: 10px;
  border: 2px solid var(--fg);
  border-right-color: transparent;
  background: transparent;
  animation: o-spin 0.8s linear infinite;
}

.o-status--queued::before {
  border: 1.5px solid var(--muted);
  background: transparent;
}

.o-status--failed::before {
  border-radius: 1px;
  background: var(--bad);
}

.o-status--warn::before {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--warn);
  transform: rotate(45deg);
}

.o-status--stopped::before {
  border-radius: 1px;
  background: var(--muted);
}

.o-status--pill {
  padding: 3px 10px 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  font-size: var(--text-xs);
}

.o-status--pill.o-status--live {
  background: var(--accent-soft);
}

.o-status--pill.o-status--failed {
  background: var(--bad-soft);
}

.o-status--pill.o-status--warn {
  background: var(--warn-soft);
}

@keyframes o-spin {
  to {
    transform: rotate(360deg);
  }
}

.o-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.o-chip--outline {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.o-chip--soft {
  background: var(--surface-sunken);
  color: var(--fg);
}

.o-chip--accent {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.o-chip--mono {
  font-family: var(--font-mono);
}

.o-kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.o-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.o-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.o-tabs {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.o-tabs a {
  margin-bottom: -1px;
  padding: var(--space-3) 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.o-tabs a:hover {
  color: var(--fg);
}

.o-tabs a[aria-current="page"] {
  border-bottom-color: var(--fg);
  color: var(--fg);
}

.o-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.o-table th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-align: left;
  white-space: nowrap;
}

.o-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.o-table tbody tr:last-child td {
  border-bottom: none;
}

.o-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-sunken) 55%, var(--surface));
}

.o-table .o-num {
  text-align: right;
}

.o-table .o-mono {
  white-space: nowrap;
}

.o-kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
  margin: 0;
  font-size: var(--text-sm);
}

.o-kv dt {
  color: var(--muted);
}

.o-kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.o-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: var(--text-sm);
}

.o-notice::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
}

.o-notice--warn {
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
  background: var(--warn-soft);
}

.o-notice--warn::before {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--warn);
  transform: rotate(45deg);
}

.o-notice--bad {
  border-color: color-mix(in srgb, var(--bad) 35%, transparent);
  background: var(--bad-soft);
}

.o-notice--bad::before {
  border-radius: 1px;
  background: var(--bad);
}

.o-notice__title {
  font-weight: var(--weight-bold);
}

.o-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.o-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  text-decoration: none;
}

.o-topbar__nav {
  display: flex;
  gap: var(--space-1);
  min-width: 0;
  overflow-x: auto;
}

.o-topbar__nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.o-topbar__nav a:hover,
.o-topbar__nav a[aria-current="page"] {
  background: var(--surface-sunken);
  color: var(--fg);
}

.o-topbar__spacer {
  flex: 1;
}

.o-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--space-12);
}

.o-intro__brand {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
}

.o-intro__wordmark {
  font-size: clamp(4.5rem, 12vw, 9.375rem);
}

.o-intro__tagline {
  max-width: 24ch;
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.o-intro__lede {
  max-width: 46ch;
  color: var(--muted);
}

.o-intro__commands {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.o-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.o-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.o-toolbar__spacer {
  flex: 1;
}

.o-segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.o-segmented button {
  height: 28px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.o-segmented button:hover {
  color: var(--fg);
}

.o-segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line);
}

.o-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
}

.o-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.o-live[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--live) 45%, var(--line));
  background: var(--accent-soft);
}

.o-live[aria-pressed="true"]::before {
  border-color: var(--live);
  background: var(--live);
  animation: o-pulse 2s var(--ease) infinite;
}

@keyframes o-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.o-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

.o-toggle:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.o-toggle[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.o-toggle__count {
  opacity: 0.7;
}

.o-level {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.o-level::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.o-level--error::before {
  border-radius: 1px;
  background: var(--bad);
}

.o-level--warn::before {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--warn);
  transform: rotate(45deg);
}

.o-level--debug::before {
  border: 1.5px solid var(--subtle);
  background: transparent;
}

.o-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
}

.o-stat {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-stat__label {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-stat__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.o-stat__unit {
  margin-left: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}

.o-stat__delta {
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-stat__delta--good {
  color: var(--accent-strong);
}

.o-stat__delta--bad {
  color: var(--bad);
}

.o-stat__spark {
  height: 32px;
  margin-top: var(--space-2);
}

.o-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--space-4);
}

.o-chart {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: var(--space-4) var(--space-5) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: opacity var(--duration) var(--ease);
}

.o-chart--loading {
  opacity: 0.55;
}

.o-chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}

.o-chart__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.o-chart__note {
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-chart__plot {
  position: relative;
  height: 176px;
  border-radius: var(--radius-sm);
}

.o-details > summary {
  width: fit-content;
  color: var(--accent-strong);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.o-details[open] > summary {
  margin-bottom: var(--space-3);
}

.o-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.o-legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.o-series-1 {
  --series: var(--series-1);
}

.o-series-2 {
  --series: var(--series-2);
}

.o-series-3 {
  --series: var(--series-3);
}

.o-series-4 {
  --series: var(--series-4);
}

.o-series-5 {
  --series: var(--series-5);
}

.o-series-6 {
  --series: var(--series-6);
}

.o-series-7 {
  --series: var(--series-7);
}

.o-series-8 {
  --series: var(--series-8);
}

.o-legend__key {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--series, var(--fg));
}

.o-legend__key--box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.o-logs {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-logs__toolbar {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.o-logs__search {
  flex: 1 1 220px;
  min-width: 0;
  height: 32px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.o-logs__volume {
  height: 64px;
  padding: var(--space-2) var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.o-logs__body {
  position: relative;
}

.o-logs__lines {
  display: grid;
  grid-template-columns: max-content max-content max-content minmax(0, 1fr);
  align-content: start;
  height: 400px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-2) 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.o-logs__lines:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.o-logs__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  color: var(--muted);
}

.o-log {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: start;
  column-gap: var(--space-3);
  padding: 0 var(--space-4);
}

.o-log:hover {
  background: var(--surface-sunken);
}

.o-log__time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.o-log__level {
  height: 1.5em;
}

.o-log__svc {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 1.5em;
  color: var(--muted);
  white-space: nowrap;
}

.o-log__svc::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 1em;
  border-radius: 1px;
  background: var(--series, var(--line-strong));
}

.o-log__msg {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.o-log--error .o-log__msg {
  color: var(--bad);
}

.o-log__key {
  color: var(--muted);
}

.o-log mark {
  border-radius: 2px;
  background: var(--accent-soft);
  color: inherit;
}

.o-log mark.is-current {
  outline: 2px solid var(--accent);
}

@media (max-width: 600px) {
  .o-log {
    padding-block: var(--space-1);
  }

  .o-log__msg {
    grid-column: 1 / -1;
  }
}

.o-logs__jump {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-overlay);
}

.o-logs__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.o-map {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-map__canvas {
  position: relative;
  min-width: 0;
  min-height: 160px;
}

.o-map .vis-network:focus {
  outline: none;
}

.o-map .vis-tooltip {
  display: grid;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.o-map__tip-row {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.o-map__tip-row--bad {
  color: var(--bad);
}

.o-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.o-map__legend .o-status {
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  column-gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.o-timeline__step:last-child {
  padding-bottom: 0;
}

.o-timeline__step::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 2px;
  left: 9px;
  width: 2px;
  background: var(--line);
}

.o-timeline__step:last-child::before {
  display: none;
}

.o-timeline__step--done::before {
  background: var(--fg);
}

.o-timeline__marker {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  grid-row: 1 / span 3;
}

.o-timeline__marker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--fg);
}

.o-timeline__step--pending .o-timeline__marker::before {
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
}

.o-timeline__step--current .o-timeline__marker::before {
  width: 12px;
  height: 12px;
  border: 2px solid var(--fg);
  border-right-color: transparent;
  border-radius: 50%;
  background: transparent;
  animation: o-spin 0.8s linear infinite;
}

.o-timeline__step--failed .o-timeline__marker::before {
  background: var(--bad);
}

.o-timeline__step--live .o-timeline__marker::before {
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.o-timeline__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 20px;
}

.o-timeline__step--pending .o-timeline__title {
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.o-timeline__step--failed .o-timeline__title {
  color: var(--bad);
}

.o-timeline__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.o-timeline__time strong {
  color: var(--fg);
  font-weight: var(--weight-medium);
}

.o-timeline__detail {
  grid-column: 2 / span 2;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.o-timeline__sub {
  display: grid;
  gap: 2px;
  grid-column: 2 / span 2;
  margin: var(--space-2) 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  list-style: none;
}

.o-timeline__sub li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.o-durations {
  display: grid;
  gap: var(--space-2);
}

.o-durations__bar {
  display: flex;
  gap: 2px;
  height: 8px;
}

.o-durations__seg {
  min-width: 3px;
  border-radius: 2px;
  background: var(--seg, var(--fg));
}

.o-shade-1 {
  --seg: color-mix(in srgb, var(--fg) 25%, var(--surface));
}

.o-shade-2 {
  --seg: color-mix(in srgb, var(--fg) 40%, var(--surface));
}

.o-shade-3 {
  --seg: color-mix(in srgb, var(--fg) 55%, var(--surface));
}

.o-shade-4 {
  --seg: color-mix(in srgb, var(--fg) 70%, var(--surface));
}

.o-shade-5 {
  --seg: color-mix(in srgb, var(--fg) 85%, var(--surface));
}

.o-shade-6 {
  --seg: var(--fg);
}

@supports (x: attr(x type(*))) {
  .o-meter__fill[data-value] {
    width: calc(attr(data-value type(<number>), 0) * 100%);
  }

  .o-durations__seg[data-grow] {
    flex-grow: attr(data-grow type(<number>), 1);
  }
}

.o-durations__key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  list-style: none;
}

.o-durations__key li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.o-durations__key li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--seg, var(--fg));
}

.o-durations__key strong {
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
}

.o-meter {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-width: 160px;
}

.o-meter__track {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}

.o-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, 0%);
  border-radius: inherit;
  background: var(--fg);
}

.o-meter--warn .o-meter__fill {
  background: var(--warn);
}

.o-meter--bad .o-meter__fill {
  background: var(--bad);
}

.o-meter__text {
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.o-meter__text strong {
  color: var(--fg);
  font-weight: var(--weight-bold);
}

.o-meter--warn .o-meter__text strong {
  color: var(--warn);
}

.o-meter--bad .o-meter__text strong {
  color: var(--bad);
}

.o-capacity {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  font-size: var(--text-sm);
}

.o-capacity dt {
  color: var(--muted);
}

.o-capacity dd {
  min-width: 0;
  margin: 0;
}

.o-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: o-step;
}

.o-stepper li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  counter-increment: o-step;
}

.o-stepper li::before {
  content: counter(o-step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.o-stepper li.is-done {
  color: var(--fg);
}

.o-stepper li.is-done::before {
  content: "✓";
  border-color: var(--fg);
}

.o-stepper li[aria-current="step"] {
  color: var(--fg);
}

.o-stepper li[aria-current="step"]::before {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.o-fieldset {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.o-fieldset > legend {
  margin-bottom: var(--space-3);
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.o-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-3);
}

.o-choices--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.o-choice {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease);
}

.o-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.o-choice:hover {
  border-color: var(--fg);
}

.o-choice:has(input:checked) {
  border-color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.o-choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.o-choice__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-weight: var(--weight-bold);
}

.o-choice__title::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.o-choice:has(input:checked) .o-choice__title::after {
  border: 5px solid var(--fg);
}

.o-choice__desc {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-choice__meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.o-choices--compact .o-choice {
  padding: var(--space-3);
}

.o-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: var(--space-8);
}

.o-wizard__main {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
}

.o-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.o-wizard__aside {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
}

@media (max-width: 860px) {
  .o-wizard {
    grid-template-columns: minmax(0, 1fr);
  }

  .o-wizard__aside {
    position: static;
  }
}

.o-icon {
  flex-shrink: 0;
  width: var(--icon-size, 16px);
  height: var(--icon-size, 16px);
  stroke-width: 1.75;
  vertical-align: -0.15em;
}

.o-icon--lg {
  --icon-size: 20px;
}

.o-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  list-style: none;
}

.o-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.o-breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-1);
  color: var(--subtle);
}

.o-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.o-breadcrumbs a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.o-breadcrumbs [aria-current="page"] {
  color: var(--fg);
  font-weight: var(--weight-medium);
}

.o-page-header {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.o-page-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.o-page-header__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-width: 0;
}

.o-page-header__title h1 {
  font-size: var(--text-3xl);
  overflow-wrap: anywhere;
}

.o-page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-page-header__meta > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.o-page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.o-page-header .o-tabs {
  margin-top: var(--space-2);
}

.o-avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--avatar-size, 32px);
  height: var(--avatar-size, 32px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-size: calc(var(--avatar-size, 32px) * 0.4);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.o-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.o-avatar--sm {
  --avatar-size: 24px;
  border-radius: 6px;
}

.o-avatar--lg {
  --avatar-size: 40px;
}

.o-avatar--agent {
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-strong);
}

.o-avatars {
  display: inline-flex;
}

.o-avatars > .o-avatar + .o-avatar {
  margin-left: -3px;
  box-shadow:
    0 0 0 2px var(--surface),
    inset 0 0 0 1px var(--line);
}

.o-menu {
  position: fixed;
  inset: auto;
  min-width: 232px;
  max-width: min(320px, calc(100vw - 16px));
  margin: 0;
  padding: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  color: var(--fg);
  font-size: var(--text-sm);
}

@supports (anchor-name: --a) {
  .o-menu {
    top: anchor(bottom);
    right: anchor(right);
    margin-top: 6px;
    position-try-fallbacks: flip-block;
  }

  .o-menu--start {
    right: auto;
    left: anchor(left);
  }
}

.o-menu:popover-open {
  animation: o-pop var(--duration-fast) var(--ease);
}

@keyframes o-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.o-menu__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.o-menu__head strong {
  display: block;
}

.o-menu__label {
  padding: var(--space-2) var(--space-3) var(--space-1);
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.o-menu__item:hover,
.o-menu__item:focus-visible {
  background: var(--surface-sunken);
  outline: none;
}

.o-menu__item .o-icon {
  color: var(--muted);
}

.o-menu__item .o-kbd,
.o-menu__item .o-meta {
  margin-left: auto;
}

.o-menu__item[aria-current="true"]::after {
  content: "✓";
  margin-left: auto;
  font-weight: var(--weight-bold);
}

.o-menu__item--danger,
.o-menu__item--danger .o-icon {
  color: var(--bad);
}

.o-menu__sep {
  height: 1px;
  margin: var(--space-1) 0;
  border: 0;
  background: var(--line);
}

.o-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-2) 0 var(--space-1);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.o-topbar__user:hover {
  background: var(--surface-sunken);
}

.o-sidenav {
  display: grid;
  align-content: start;
  gap: 2px;
}

.o-sidenav__label {
  margin: var(--space-4) 0 var(--space-1);
  padding: 0 var(--space-3);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.o-sidenav__label:first-child {
  margin-top: 0;
}

.o-sidenav a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.o-sidenav a:hover {
  background: var(--surface-sunken);
  color: var(--fg);
}

.o-sidenav a[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
}

.o-sidenav__count {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.o-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.o-pagination__pages a,
.o-pagination__pages span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.o-pagination__pages a:hover {
  background: var(--surface-sunken);
}

.o-pagination__pages [aria-current="page"] {
  background: var(--fg);
  color: var(--bg);
}

.o-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  color: var(--fg);
}

.o-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: o-rise var(--duration) var(--ease);
}

.o-dialog > form {
  display: contents;
}

.o-dialog::backdrop {
  background: var(--scrim);
}

@keyframes o-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.o-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6) 0;
}

.o-dialog__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.o-dialog__body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  overflow: auto;
  font-size: var(--text-sm);
}

.o-dialog__body p {
  color: var(--muted);
}

.o-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-4) var(--space-6) var(--space-5);
}

.o-tip {
  position: relative;
}

.o-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: var(--z-tooltip);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity var(--duration-fast) var(--ease);
}

.o-tip:hover::after,
.o-tip:focus-visible::after {
  opacity: 1;
  transition-delay: 300ms;
}

.o-toasts {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-toast);
  display: grid;
  gap: var(--space-2);
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.o-toast {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  font-size: var(--text-sm);
  pointer-events: auto;
  animation: o-rise var(--duration) var(--ease);
}

.o-toast::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--muted);
}

.o-toast--live::before {
  background: var(--live);
}

.o-toast--bad::before {
  border-radius: 1px;
  background: var(--bad);
}

.o-toast--warn::before {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--warn);
  transform: rotate(45deg);
}

.o-toast__title {
  font-weight: var(--weight-bold);
}

.o-toast__text {
  grid-column: 2;
  color: var(--muted);
}

.o-toast__actions {
  display: flex;
  gap: var(--space-3);
  grid-column: 2;
  margin-top: var(--space-1);
}

.o-toast__actions a {
  font-weight: var(--weight-medium);
}

.o-toast__close {
  grid-column: 3;
  grid-row: 1;
  margin: -4px -4px 0 0;
}

.o-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--text-sm);
  text-align: center;
}

.o-banner a {
  color: inherit;
  font-weight: var(--weight-bold);
}

.o-banner--warn {
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  background: var(--warn-soft);
  color: var(--fg);
}

.o-empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.o-empty__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.o-empty__text {
  max-width: 46ch;
  color: var(--muted);
}

.o-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.o-skeleton {
  display: block;
  height: 0.9em;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface-sunken) 25%,
    color-mix(in srgb, var(--surface-sunken) 40%, var(--surface)) 50%,
    var(--surface-sunken) 75%
  );
  background-size: 200% 100%;
  animation: o-shimmer 1.4s linear infinite;
}

@keyframes o-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.o-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
}

.o-switch input {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  cursor: pointer;
  appearance: none;
  transition: background-color var(--duration-fast) var(--ease);
}

.o-switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform var(--duration-fast) var(--ease);
}

.o-switch input:checked {
  background: var(--fg);
}

.o-switch input:checked::before {
  transform: translateX(16px);
}

.o-switch input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.o-feed {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-feed__day {
  padding: var(--space-4) 0 var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.o-feed__day:first-child {
  padding-top: 0;
}

.o-feed__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 2px var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}

.o-feed__item > .o-avatar {
  grid-row: 1 / span 2;
}

.o-feed__text {
  min-width: 0;
  font-size: var(--text-sm);
  line-height: 24px;
}

.o-feed__text strong {
  font-weight: var(--weight-bold);
}

.o-feed__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 24px;
  white-space: nowrap;
}

.o-feed__detail {
  grid-column: 2 / span 2;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.o-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: o-steps;
}

.o-steps__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  counter-increment: o-steps;
}

.o-steps__item:first-child {
  border-top: 0;
}

.o-steps__item::before {
  content: counter(o-steps);
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.o-steps__item--done::before {
  content: "✓";
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.o-steps__item--current::before {
  border-color: var(--fg);
  color: var(--fg);
}

.o-steps__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 28px;
}

.o-steps__item--done .o-steps__title {
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.o-steps__text {
  grid-column: 2;
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-steps__action {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.o-steps__body {
  grid-column: 2 / span 2;
  min-width: 0;
  margin-top: var(--space-3);
}

.o-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  appearance: none;
}

.o-progress::-webkit-progress-bar {
  background: transparent;
}

.o-progress::-webkit-progress-value {
  border-radius: var(--radius-pill);
  background: var(--fg);
}

.o-progress::-moz-progress-bar {
  border-radius: var(--radius-pill);
  background: var(--fg);
}

.o-progress-label {
  display: grid;
  gap: var(--space-1);
  min-width: 160px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-size: var(--text-xs);
}

.o-divider::before,
.o-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.o-auth {
  display: grid;
  place-items: center;
  padding: var(--space-12) var(--space-4);
  background: var(--bg);
}

.o-auth__card {
  display: grid;
  gap: var(--space-5);
  width: min(400px, 100%);
  padding: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-auth__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
}

.o-auth__title {
  font-size: var(--text-xl);
}

.o-auth__providers {
  display: grid;
  gap: var(--space-2);
}

.o-auth__providers .o-btn {
  justify-content: flex-start;
  width: 100%;
  height: var(--control-lg);
}

.o-auth__foot {
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}

.o-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.o-site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}

.o-site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 64px;
}

.o-site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  text-decoration: none;
}

.o-site-header__nav {
  display: flex;
  gap: var(--space-6);
}

.o-site-header__nav a {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.o-site-header__nav a:hover,
.o-site-header__nav a[aria-current="page"] {
  color: var(--fg);
}

.o-site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.o-site-header__menu {
  display: none;
}

.o-announce {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-3) 3px 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: var(--text-sm);
  text-decoration: none;
}

.o-announce:hover {
  border-color: var(--line-strong);
}

.o-announce__tag {
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.o-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-12);
  padding-block: var(--space-20) var(--space-16);
}

.o-hero__copy {
  display: grid;
  justify-items: start;
  gap: var(--space-6);
}

.o-hero__title {
  margin: 0;
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.o-hero__lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--text-lg);
}

.o-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.o-hero__note {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-hero__visual {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}

.o-cmd--lg {
  padding: var(--space-6);
  font-size: var(--text-base);
}

.o-section {
  padding-block: var(--space-20);
  border-top: 1px solid var(--line);
}

.o-section--plain {
  padding-top: 0;
  border-top: 0;
}

.o-section--sunken {
  background: var(--surface-sunken);
}

.o-section__head {
  display: grid;
  gap: var(--space-3);
  max-width: 46rem;
  margin-bottom: var(--space-12);
}

.o-section__kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.o-section__title {
  margin: 0;
  font-size: var(--text-4xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.o-section__lede {
  color: var(--muted);
  font-size: var(--text-lg);
}

.o-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.o-feature {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
}

.o-feature__icon {
  --icon-size: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--fg);
}

.o-feature--odd .o-feature__icon {
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.o-feature__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.o-feature__text {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: o-how;
}

.o-how__step {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-width: 0;
  counter-increment: o-how;
}

.o-how__step::before {
  content: counter(o-how);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.o-how__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.o-how__text {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
  margin: 0;
}

.o-fact {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-fact dt {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-fact dd {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.o-fact dd.o-fact__detail {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
}

.o-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
}

.o-plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.o-plan--featured {
  border-color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.o-plan__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.o-plan__price {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.o-plan__unit {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}

.o-plan__text {
  color: var(--muted);
  font-size: var(--text-sm);
}

.o-plan__list {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  list-style: none;
}

.o-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.o-plan__list li::before {
  content: "✓";
  font-weight: var(--weight-bold);
}

.o-faq {
  max-width: 46rem;
  border-top: 1px solid var(--line);
}

.o-faq__item {
  border-bottom: 1px solid var(--line);
}

.o-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-weight: var(--weight-bold);
  list-style: none;
  cursor: pointer;
}

.o-faq__item > summary::-webkit-details-marker {
  display: none;
}

.o-faq__item > summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
}

.o-faq__item[open] > summary::after {
  content: "−";
}

.o-faq__answer {
  max-width: var(--measure);
  padding-bottom: var(--space-5);
  color: var(--muted);
}

.o-cta {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  background: var(--fg);
  color: var(--bg);
}

.o-cta__title {
  margin: 0;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.o-cta__text {
  max-width: 52ch;
  color: color-mix(in srgb, var(--bg) 78%, var(--fg));
}

.o-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.o-cta .o-btn {
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
  background: transparent;
  color: var(--bg);
}

.o-cta .o-btn:hover {
  border-color: var(--bg);
}

.o-cta .o-btn--primary {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--fg);
}

.o-cta .o-btn--primary:hover {
  background: color-mix(in srgb, var(--bg) 88%, var(--fg));
}

.o-site-footer {
  padding-block: var(--space-16) var(--space-10);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.o-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.o-site-footer__brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-3);
  color: var(--muted);
}

.o-site-footer__col {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.o-site-footer__title {
  color: var(--fg);
  font-weight: var(--weight-bold);
}

.o-site-footer__col a {
  color: var(--muted);
  text-decoration: none;
}

.o-site-footer__col a:hover {
  color: var(--fg);
}

.o-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
}

@media (max-width: 860px) {
  .o-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--space-12) var(--space-10);
  }

  .o-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .o-site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .o-site-header__nav,
  .o-site-header__login {
    display: none;
  }

  .o-site-header__menu {
    display: inline-flex;
  }

  .o-section {
    padding-block: var(--space-12);
  }

  .o-section__title {
    font-size: var(--text-3xl);
  }

  .o-cta {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 600px) {
  .o-container {
    padding-inline: var(--space-4);
  }
}

@media (max-width: 760px) {
  .o-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .o-topbar {
    padding: 0 var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .o-mark--loading rect,
  .o-mark--loading .o-mark__odd,
  .o-status--building::before,
  .o-live[aria-pressed="true"]::before,
  .o-timeline__step--current .o-timeline__marker::before,
  .o-menu:popover-open,
  .o-dialog[open],
  .o-toast,
  .o-skeleton {
    animation: none;
  }

  .o-tip::after,
  .o-switch input,
  .o-switch input::before {
    transition: none;
  }

  .o-chart {
    transition: none;
  }

  .o-btn,
  .o-input,
  .o-select,
  .o-textarea {
    transition: none;
  }
}
