[data-component="page-header"] {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

[data-slot="page-header-main"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-component="page-header"] h1,
[data-component="section-title"] h2 {
  margin: 0;
  color: var(--foreground);
  font-weight: 500;
  letter-spacing: -0.01em;
}

[data-component="page-header"] h1 {
  font-size: 1rem;
}
[data-component="section-title"] h2 {
  font-size: 0.75rem;
}
[data-component="page-header"] p,
[data-component="section-title"] p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

[data-slot="page-header-actions"] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

[data-component="section-title"] {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-bottom: 0.75rem;
}

[data-component="section-title"] > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

[data-component="banner"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--card-foreground);
  font-size: 0.75rem;
  line-height: 1.45;
  padding: 0.5rem 0.625rem;
}

[data-component="banner"][data-tone="info"] > svg {
  color: var(--info);
}
[data-component="banner"][data-tone="success"] > svg {
  color: var(--success);
}
[data-component="banner"][data-tone="warning"] > svg {
  color: var(--warning);
}
[data-component="banner"][data-tone="critical"] > svg {
  color: var(--destructive);
}
[data-component="banner"] strong {
  display: block;
  color: var(--foreground);
}
[data-component="banner"] span {
  color: var(--muted-foreground);
}

[data-component="config-row"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  text-align: left;
  text-decoration: none;
  padding: 0.625rem 0.75rem;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}

button[data-component="config-row"] {
  cursor: pointer;
}

[data-component="config-row"]:is(a, button):hover,
[data-component="config-row"]:is(a, button):focus-visible {
  border-color: var(--ring);
  background: color-mix(in oklab, var(--muted) 55%, transparent);
  outline: 0;
}

[data-component="config-row"][data-override="true"] {
  background: color-mix(in oklab, var(--info) 6%, var(--card));
  padding-left: 0.875rem;
}

[data-slot="config-row-accent"] {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--info);
}

[data-slot="config-row-leading"] {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

[data-slot="config-row-body"] {
  flex: 1 1 auto;
  min-width: 0;
}

[data-slot="config-row-title"] {
  overflow: hidden;
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-slot="config-row-subtitle"] {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-slot="config-row-trailing"],
[data-slot="config-row-actions"] {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

[data-slot="source-badge"] {
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-style: italic;
}

[data-slot="status-dot"] {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--muted-foreground);
}

[data-slot="status-dot"][data-tone="success"] {
  background: var(--success);
}
[data-slot="status-dot"][data-tone="warning"] {
  background: var(--warning);
}
[data-slot="status-dot"][data-tone="critical"] {
  background: var(--destructive);
}
