/* css/app.css */
* {
  box-sizing: border-box;
}

.xo-body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  min-height: 100vh;
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.ops-console {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

.ops-rail {
  display: flex;
  background: var(--color-code);
  color: var(--color-code-foreground);
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 20px;
}

.ops-brand {
  display: flex;
  align-items:  center;
  gap: 12px;
  min-height: 48px;
}

.ops-brand-mark {
  display: grid;
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-code-accent);
  color: var(--color-code-foreground);
  place-items:  center;
  width: 44px;
  height: 44px;
  font-weight: 700;
}

.ops-kicker {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 700;
}

.ops-rail .ops-kicker {
  color: var(--color-code-muted-foreground);
}

.ops-brand h1, .ops-header h2, .ops-column h3, .ops-profile h3, .ops-brief h3, .ops-empty h3 {
  letter-spacing: 0;
  margin: 0;
}

.ops-brand h1 {
  color: var(--color-code-foreground);
  font-size: 1rem;
}

.ops-backend-list {
  display: grid;
  gap: 8px;
}

.ops-backend {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  border-radius: var(--radius-DEFAULT);
  color: inherit;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  align-items:  center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 10px;
}

.ops-backend:hover:not(:disabled), .ops-backend.is-selected {
  border-color: var(--color-code-border);
  background: var(--color-code-accent);
  outline: none;
}

.ops-backend:focus-visible {
  border-color: var(--color-code-border);
  background: var(--color-code-accent);
  outline: none;
}

.ops-backend.is-disabled {
  opacity: .62;
}

.ops-dot {
  background: var(--color-primary-500);
  border-radius: 999px;
  width: 10px;
  height: 10px;
}

.ops-dot.is-sky {
  background: var(--color-info-500);
}

.ops-dot.is-violet {
  background: var(--color-secondary-500);
}

.ops-backend-main {
  min-width: 0;
}

.ops-backend-name, .ops-backend-description {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-backend-name {
  font-weight: 700;
}

.ops-backend-description {
  color: var(--color-code-muted-foreground);
  margin-top: 4px;
  font-size: .78rem;
}

.ops-status, .ops-priority {
  display: inline-flex;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  align-items:  center;
  min-height: 22px;
  padding: 0 8px;
  font-size: .72rem;
  font-weight: 700;
}

.ops-status.is-ok, .ops-priority.is-complete {
  background: var(--color-success-tint);
  color: var(--color-success-text);
}

.ops-status.is-warn, .ops-priority.is-high {
  background: var(--color-warning-tint);
  color: var(--color-warning-text);
}

.ops-status.is-info {
  background: var(--color-info-tint);
  color: var(--color-info-text);
}

.ops-priority.is-critical {
  background: var(--color-error-tint);
  color: var(--color-error-text);
}

.ops-workspace {
  min-width: 0;
  padding: 24px;
}

.ops-header {
  display: flex;
  justify-content: space-between;
  align-items:  end;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-header h2 {
  font-size: 1.6rem;
}

.ops-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
}

.ops-stats div {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  min-height: 64px;
  padding: 10px 12px;
}

.ops-stats dt {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.ops-stats dd {
  margin: 6px 0 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ops-tab {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-muted-foreground);
  align-items:  center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
}

.ops-tab:hover, .ops-tab.is-selected {
  border-color: color-mix(in oklab, var(--color-primary-500) 45%, var(--color-border));
  color: var(--color-foreground);
  outline: none;
}

.ops-tab:focus-visible {
  border-color: color-mix(in oklab, var(--color-primary-500) 45%, var(--color-border));
  color: var(--color-foreground);
  outline: none;
}

.ops-tab-icon {
  width: 18px;
  height: 18px;
}

.ops-surface {
  min-width: 0;
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  overflow-x: auto;
  align-items:  start;
  gap: 12px;
}

.ops-column, .ops-profile, .ops-brief, .ops-empty, .ops-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
}

.ops-column {
  min-height: 440px;
  padding: 10px;
}

.ops-column-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  height: 34px;
  margin-bottom: 10px;
}

.ops-column-header h3 {
  font-size: .9rem;
}

.ops-column-header span {
  color: var(--color-muted-foreground);
  font-size: .8rem;
  font-weight: 800;
}

.ops-task-list {
  display: grid;
  gap: 8px;
}

.ops-task {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-sunken);
  min-height: 120px;
  padding: 10px;
}

.ops-task-top, .ops-task footer, .ops-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
}

.ops-task-id {
  color: var(--color-muted-foreground);
  font-size: .78rem;
  font-weight: 800;
}

.ops-task h4 {
  margin: 10px 0 8px;
  font-size: .92rem;
  line-height: 1.28;
}

.ops-task p, .ops-brief p, .ops-profile p, .ops-empty p {
  color: var(--color-muted-foreground);
  margin: 0;
  line-height: 1.45;
}

.ops-task footer {
  color: var(--color-muted-foreground);
  margin-top: 12px;
  font-size: .78rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.ops-profile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-height: 160px;
  padding: 14px;
}

.ops-profile-icon, .ops-brief-icon {
  display: grid;
  border-radius: var(--radius-DEFAULT);
  background: var(--color-primary-tint);
  color: var(--color-primary-text);
  place-items:  center;
  width: 40px;
  height: 40px;
}

.ops-profile h3 {
  font-size: 1rem;
}

.ops-profile p {
  margin-top: 6px;
}

.ops-meta-row {
  color: var(--color-muted-foreground);
  justify-content: flex-start;
  margin-top: 12px;
  font-size: .78rem;
  font-weight: 700;
}

.ops-table {
  overflow: hidden;
}

.ops-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(120px, .7fr) minmax(220px, 1fr) minmax(96px, .5fr);
  border-top: 1px solid var(--color-border);
  align-items:  center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
}

.ops-table-row:first-child {
  border-top: 0;
}

.ops-table-head {
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  min-height: 42px;
  font-size: .75rem;
  font-weight: 800;
}

.ops-table strong, .ops-table small, .ops-table code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ops-table small {
  color: var(--color-muted-foreground);
  margin-top: 4px;
}

.ops-table code {
  font-family: var(--font-code);
  font-size: .8rem;
}

.ops-brief {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  max-width: 760px;
  padding: 18px;
}

.ops-brief h3 {
  margin-bottom: 8px;
}

.ops-brief ul {
  display: grid;
  list-style: none;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.ops-brief li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.ops-brief li span {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

.ops-empty {
  display: grid;
  text-align: center;
  place-items:  center;
  min-height: 300px;
  padding: 24px;
}

.ops-empty > span {
  color: var(--color-muted-foreground);
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.ops-empty.is-error > span {
  color: var(--color-error-text);
}

@media (max-width: 980px) {
  .ops-console {
    grid-template-columns: 1fr;
  }

  .ops-rail {
    min-height: 0;
  }

  .ops-backend-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-header {
    flex-direction: column;
    align-items:  start;
  }

  .ops-board {
    grid-template-columns: repeat(4, minmax(220px, 78vw));
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ops-table-head {
    display: none;
  }
}

.ops-badge {
  display: inline-flex;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  align-items:  center;
  min-height: 22px;
  padding: 0 8px;
  font-size: .72rem;
  font-weight: 700;
}

.ops-badge.is-info {
  background: var(--color-info-tint);
  color: var(--color-info-text);
}

.ops-badge.is-warn {
  background: var(--color-warning-tint);
  color: var(--color-warning-text);
}

.ops-tab-badge {
  display: inline-flex;
  background: var(--color-primary-500);
  color: var(--color-primary-foreground);
  border-radius: 999px;
  justify-content: center;
  align-items:  center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: .72rem;
  font-weight: 800;
}

.ops-notice {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  align-items:  center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.ops-notice p {
  margin: 0;
}

.ops-notice.is-ok {
  border-color: color-mix(in oklab, var(--color-success-text) 45%, var(--color-border));
  background: var(--color-success-tint);
  color: var(--color-foreground);
}

.ops-notice.is-error {
  border-color: color-mix(in oklab, var(--color-error-text) 45%, var(--color-border));
  background: var(--color-error-tint);
  color: var(--color-foreground);
}

.ops-button {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-foreground);
  align-items:  center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
}

.ops-button:hover:not(:disabled) {
  border-color: color-mix(in oklab, var(--color-primary-500) 45%, var(--color-border));
  outline: none;
}

.ops-button:focus-visible:not(:disabled) {
  border-color: color-mix(in oklab, var(--color-primary-500) 45%, var(--color-border));
  outline: none;
}

.ops-button:disabled {
  opacity: .5;
}

.ops-button.is-primary {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: var(--color-primary-foreground);
}

.ops-button.is-ghost {
  background: none;
}

.ops-button.is-danger {
  border-color: color-mix(in oklab, var(--color-error-text) 40%, var(--color-border));
  color: var(--color-error-text);
}

.ops-write {
  margin-bottom: 16px;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
}

.ops-disabled-reason {
  color: var(--color-muted-foreground);
  font-size: .82rem;
}

.ops-form {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  gap: 12px;
  max-width: 560px;
  margin-top: 12px;
  padding: 16px;
}

.ops-form-target {
  color: var(--color-muted-foreground);
  margin: 0;
  font-size: .85rem;
}

.ops-field {
  display: grid;
  gap: 4px;
}

.ops-field > span {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.ops-field.is-inline {
  grid-auto-flow: column;
  justify-content: start;
  align-items:  center;
  gap: 8px;
}

.ops-field.is-inline > span {
  text-transform: none;
  color: var(--color-foreground);
  font-size: .9rem;
  font-weight: 500;
}

.ops-field input[type="text"], .ops-field textarea, .ops-field select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-foreground);
  padding: 8px 10px;
}

.ops-form-actions {
  display: flex;
  gap: 8px;
}

.ops-modes {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  gap: 8px;
  padding: 10px 12px;
}

.ops-modes legend {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  padding: 0 4px;
  font-size: .72rem;
  font-weight: 700;
}

.ops-mode {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ops-mode code {
  border-radius: var(--radius-xs);
  background: var(--color-muted);
  font-family: var(--font-code);
  padding: 0 4px;
}

.ops-approvals {
  display: grid;
  gap: 12px;
}

.ops-approval {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  padding: 16px;
}

.ops-approval-head {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-approval-target {
  font-weight: 700;
}

.ops-approval-age {
  color: var(--color-muted-foreground);
  margin-left: auto;
  font-size: .82rem;
}

.ops-approval-by {
  color: var(--color-muted-foreground);
  margin: 0 0 8px;
  font-size: .85rem;
}

.ops-self {
  display: inline-flex;
  background: var(--color-secondary-tint);
  color: var(--color-secondary-text);
  text-transform: uppercase;
  border-radius: 999px;
  align-items:  center;
  margin-left: 6px;
  padding: 0 8px;
  font-size: .72rem;
  font-weight: 700;
}

.ops-payload {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}

.ops-payload > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.ops-payload dt {
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}

.ops-payload dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.ops-approval-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-reject {
  display: flex;
  gap: 8px;
}

.ops-reject input[type="text"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-foreground);
  flex: auto;
  padding: 8px 10px;
}

.ops-audit-filter {
  margin-bottom: 12px;
}

.ops-audit-filter select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-foreground);
  margin-top: 4px;
  padding: 8px 10px;
}

.ops-audit.ops-table {
  grid-template-columns: 150px 150px minmax(0, 1fr) minmax(0, 1fr);
}

.ops-board-select {
  margin-bottom: 12px;
}

.ops-board-select label {
  display: inline-flex;
  align-items:  center;
  gap: 8px;
}

.ops-board-select select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-foreground);
  padding: 8px 10px;
  font-weight: 700;
}

.ops-board-select.is-loading, .ops-board-select.is-empty {
  color: var(--color-muted-foreground);
  font-size: .85rem;
}

.ops-nav-group {
  display: grid;
  gap: 6px;
}

.ops-nav-item {
  display: flex;
  border-radius: var(--radius-DEFAULT);
  color: inherit;
  text-decoration: none;
  border: 1px solid #0000;
  align-items:  center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  font-weight: 700;
}

.ops-nav-item:hover, .ops-nav-item.is-selected {
  border-color: var(--color-code-border);
  background: var(--color-code-accent);
  outline: none;
}

.ops-nav-item:focus-visible {
  border-color: var(--color-code-border);
  background: var(--color-code-accent);
  outline: none;
}

.ops-nav-item > span:first-child {
  width: 18px;
  height: 18px;
}

.ops-caveat {
  display: flex;
  border: 1px solid color-mix(in oklab, var(--color-info-text) 35%, var(--color-border));
  border-radius: var(--radius-DEFAULT);
  background: var(--color-info-tint);
  color: var(--color-foreground);
  align-items:  flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: .88rem;
}

.ops-caveat > span:first-child {
  color: var(--color-info-text);
  flex: none;
  width: 18px;
  height: 18px;
}

.ops-bank-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ops-bank {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  padding: 16px;
}

.ops-bank header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-bank h3 {
  margin: 0;
  font-size: .95rem;
}

.ops-recall-form {
  display: flex;
  flex-wrap: wrap;
  align-items:  flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.ops-recall-field {
  display: grid;
  flex: 320px;
  gap: 4px;
}

.ops-recall-field input[type="text"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  color: var(--color-foreground);
  padding: 8px 10px;
}

.ops-hint {
  color: var(--color-muted-foreground);
  margin: 0 0 12px;
  font-size: .85rem;
}

.ops-recall {
  display: grid;
  gap: 16px;
}

.ops-recall-group {
  display: grid;
  gap: 8px;
}

.ops-recall-group-header {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 6px;
}

.ops-recall-group-header h3 {
  margin: 0;
  font-size: .95rem;
}

.ops-recall-group-header .ops-kicker {
  color: var(--color-muted-foreground);
}

.ops-recollection {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-DEFAULT);
  background: var(--color-card);
  padding: 14px 16px;
}

.ops-recollection header {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-recollection p {
  margin: 0;
}

.ops-provenance {
  display: flex;
  color: var(--color-muted-foreground);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: .8rem;
}

.ops-provenance-doc {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.ops-provenance-path {
  border-radius: var(--radius-xs);
  background: var(--color-muted);
  font-family: var(--font-code);
  overflow-wrap: anywhere;
  padding: 0 6px;
}

.ops-provenance-none {
  font-style: italic;
}

@media (max-width: 640px) {
  .ops-rail, .ops-workspace {
    padding: 16px;
  }

  .ops-backend-list, .ops-stats {
    grid-template-columns: 1fr;
  }

  .ops-tab {
    flex: 140px;
    justify-content: center;
  }

  .ops-payload > div {
    grid-template-columns: 1fr;
  }
}

.dev-prose {
  color: var(--color-foreground);
  font-family: var(--font-body);
  max-width: 60rem;
  font-size: .875rem;
  line-height: 1.65;
}

.dev-prose h1, .dev-prose h2, .dev-prose h3, .dev-prose h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  color: var(--color-foreground);
  line-height: 1.25;
}

.dev-prose h1 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.dev-prose h2 {
  border-top: 1px solid var(--color-border);
  margin: 2rem 0 .75rem;
  padding-top: 1.25rem;
  font-size: 1.25rem;
}

.dev-prose h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.05rem;
}

.dev-prose h4 {
  margin: 1.25rem 0 .5rem;
  font-size: .95rem;
}

.dev-prose p, .dev-prose ul, .dev-prose ol {
  margin: 0 0 .85rem;
}

.dev-prose ul, .dev-prose ol {
  padding-left: 1.4rem;
}

.dev-prose li, .dev-prose li > ul, .dev-prose li > ol {
  margin: .3rem 0;
}

.dev-prose a {
  color: var(--color-primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dev-prose strong {
  font-weight: var(--font-weight-semibold);
}

.dev-prose hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.75rem 0;
}

.dev-prose blockquote {
  border-left: 3px solid var(--color-border-strong);
  color: var(--color-muted-foreground);
  margin: 0 0 .85rem;
  padding: .25rem 0 .25rem 1rem;
}

.dev-prose code {
  font-family: var(--font-code);
  background: var(--color-sunken);
  color: var(--color-foreground);
  border-radius: .25rem;
  padding: .1rem .35rem;
  font-size: .85em;
}

.dev-prose pre {
  background: var(--color-code);
  color: var(--color-code-foreground);
  border: 1px solid var(--color-code-border);
  overflow-x: auto;
  border-radius: .5rem;
  margin: 0 0 .85rem;
  padding: .85rem 1rem;
}

.dev-prose pre code {
  color: inherit;
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: .8rem;
  line-height: 1.5;
}

.dev-prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 .85rem;
  font-size: .8rem;
}

.dev-prose th, .dev-prose td {
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  padding: .4rem .6rem;
}

.dev-prose th {
  background: var(--color-sunken);
  font-weight: var(--font-weight-semibold);
}

.dev-prose pre.mermaid {
  border-radius: var(--radius-lg);
  overflow-x: auto;
  text-align: center;
  color: #cdd6f4;
  font-family: var(--font-code);
  white-space: pre;
  background: #1e1e2e;
  border: 1px solid #313244;
  margin: 0 0 .85rem;
  padding: 1rem;
  font-size: .8rem;
  line-height: 1.5;
}

.dev-prose pre.mermaid svg {
  max-width: 100%;
  height: auto;
}

:where([data-tweak-collapsible-content]) {
  overflow: hidden;
}

:where([data-tweak-collapsible-content][data-state="closed"]) {
  height: 0;
}

:where([data-tweak-collapsible-content][data-state="open"]) {
  height: var(--tweak-collapsible-content-height, auto);
}

[data-nav-collapsible]:not([data-nav-animate]) [data-tweak-collapsible-content] {
  animation: none !important;
}

@keyframes collapsible-down {
  from {
    height: 0;
  }

  to {
    height: var(--tweak-collapsible-content-height);
  }
}

@keyframes collapsible-up {
  from {
    height: var(--tweak-collapsible-content-height);
  }

  to {
    height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes collapsible-down {
    from, to {
      height: var(--tweak-collapsible-content-height);
    }
  }

  @keyframes collapsible-up {
    from, to {
      height: 0;
    }
  }
}
