@font-face {
  font-family: "AI Text";
  src: url("/assets/fonts/text/ai-text-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "AI Text";
  src: url("/assets/fonts/text/ai-text-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "AI Headline";
  src: url("/assets/fonts/headline/ai-headline-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #080b16;
  --muted: #66717f;
  --subtle: #8a94a3;
  --line: #e5e7eb;
  --line-strong: #d8dce2;
  --panel: #f8fafc;
  --panel-soft: #f3f5f8;
  --primary: #0b1020;
  --primary-hover: #1a2238;
  --danger: #b54747;
  --success: #067647;
  --success-soft: #ecfdf3;
  --success-line: #abefc6;
  --danger-soft: #fef3f2;
  --danger-line: #fecdca;
  --code-bg: #101828;
  --code-ink: #e8edf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: "AI Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

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

button {
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--primary);
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--primary-hover);
}

button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

button.secondary:hover {
  background: var(--panel-soft);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  padding: 8px 10px;
  font-size: 13px;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(9, 105, 218, 0.18);
  outline-offset: 1px;
  border-color: var(--line-strong);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.json-editor {
  position: relative;
  min-height: 520px;
  max-height: 720px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--code-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.json-highlight,
.json-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.json-highlight {
  position: relative;
  min-height: 220px;
  height: 220px;
  color: var(--code-ink);
  pointer-events: none;
  overflow: visible;
}

.json-input {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 220px;
  height: 220px;
  z-index: 1;
  border: 0;
  border-radius: 0;
  color: transparent;
  caret-color: #ffffff;
  background: transparent;
  resize: none;
  overflow: hidden;
}

.json-editor::-webkit-scrollbar {
  width: 12px;
}

.json-editor::-webkit-scrollbar-track {
  background: #161d2d;
}

.json-editor::-webkit-scrollbar-thumb {
  background: #60708c;
  border: 3px solid #161d2d;
  border-radius: 8px;
}

.json-editor::-webkit-scrollbar-thumb:hover {
  background: #8b9bb5;
}

.json-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.json-key {
  color: #79c0ff;
}

.json-string {
  color: #a5d6ff;
}

.json-number {
  color: #d2a8ff;
}

.json-literal {
  color: #ffab70;
}

.data-view-toggle {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}

.data-view-toggle .secondary {
  min-height: 34px;
  padding: 6px 12px;
}

.data-view-toggle .secondary.is-selected {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.data-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ingestion-data-form-box {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #f6f8fa;
}

.generated-data-form,
.ingestion-metadata-fields {
  display: grid;
  gap: 0;
}

.schema-form-field {
  background: #fff;
}

.schema-form-object > .schema-form-field:nth-child(even),
.ingestion-metadata-fields > .schema-form-field:nth-child(even) {
  background: #f8fafc;
}

.schema-form-fieldset {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.schema-form-fieldset legend {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.schema-form-fieldset:first-child > legend {
  border-top: 0;
}

.schema-form-field {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.ingestion-metadata-field:first-child {
  border-top: 0;
}

.ingestion-metadata-field > span {
  padding-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.schema-form-object > .schema-form-field:first-child,
.schema-form-object > .schema-form-fieldset:first-child {
  border-top: 0;
}

.schema-form-copy {
  display: grid;
  gap: 3px;
  padding-top: 5px;
}

.schema-form-copy > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.schema-form-copy > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.schema-form-copy > .field-requirement {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}

.schema-form-field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

.s3-uri-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.s3-uri-preview {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3-uri-actions {
  display: inline-flex;
  gap: 6px;
}

.s3-uri-action {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.s3-uri-icon {
  width: 30px;
  min-width: 30px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
}

.s3-uri-input,
.s3-uri-done {
  display: none;
}

.s3-uri-editor.is-editing .s3-uri-preview,
.s3-uri-editor.is-editing .s3-uri-action:not(.s3-uri-done) {
  display: none;
}

.s3-uri-editor.is-editing .s3-uri-input,
.s3-uri-editor.is-editing .s3-uri-done {
  display: block;
}

.s3-uri-editor.is-editing .s3-uri-input {
  grid-column: 1;
}

.s3-uri-editor.is-editing .s3-uri-actions {
  grid-column: 2;
}

.schema-read-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.schema-read-preview {
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-read-actions {
  display: inline-flex;
  gap: 6px;
}

.schema-read-icon {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
}

.schema-read-editor select,
.schema-read-done {
  display: none;
}

.schema-read-editor.is-editing .schema-read-preview,
.schema-read-editor.is-editing [data-schema-copy],
.schema-read-editor.is-editing [data-schema-edit] {
  display: none;
}

.schema-read-editor.is-editing select,
.schema-read-editor.is-editing .schema-read-done {
  display: block;
}

.schema-read-editor.is-editing select {
  grid-column: 1;
}

.schema-read-editor.is-editing .schema-read-actions {
  grid-column: 2;
}

.json-read-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.json-read-preview {
  position: relative;
  max-height: 180px;
  min-height: 110px;
  overflow: hidden;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.json-read-preview.is-truncated::after {
  position: absolute;
  right: 8px;
  bottom: 5px;
  content: "…";
  color: var(--muted);
  font-weight: 800;
}

.json-read-input {
  display: none;
  min-width: 0;
}

.json-read-editor.is-editing .json-read-preview,
.json-read-editor.is-editing .schema-read-icon:not(.schema-read-done) {
  display: none;
}

.json-read-editor.is-editing .json-read-input,
.json-read-editor.is-editing .schema-read-done {
  display: block;
}

.json-read-editor.is-editing .json-read-input {
  grid-column: 1;
}

.json-read-editor.is-editing .schema-read-actions {
  grid-column: 2;
}

.schema-form-field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-top: 6px;
}

.schema-form-field input.schema-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  min-height: 24px;
  margin: 4px 0 0;
  border: 1px solid #8c959f;
  border-radius: 999px;
  background: #f0f2f4;
  cursor: pointer;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease;
}

.schema-form-field input.schema-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 11, 22, 0.25);
  transition: transform 120ms ease;
}

.schema-form-field input.schema-toggle:checked {
  border-color: #1f6feb;
  background: #1f6feb;
}

.schema-form-field input.schema-toggle:checked::after {
  transform: translateX(20px);
}

.schema-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.schema-toggle-state {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.schema-form-field .invalid-json {
  border-color: #cf222e;
  outline: 3px solid rgba(207, 34, 46, 0.15);
}

.raw-json-view {
  min-width: 0;
  padding: 16px;
  background: #f6f8fa;
}

.raw-json-view .field {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .schema-form-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schema-form-copy {
    padding-top: 0;
  }
}

.confirmation-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 11, 22, 0.25);
}

.confirmation-dialog::backdrop {
  background: rgba(8, 11, 22, 0.42);
}

.confirmation-dialog h2 {
  margin: 0 0 10px;
}

.confirmation-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirmation-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.ingestion-tabs {
  display: flex;
  gap: 4px;
  max-width: 100%;
  margin: 4px 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.ingestion-tab {
  flex: 0 0 auto;
  min-height: 36px;
  margin-bottom: -1px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ingestion-tab:hover {
  color: var(--ink);
  background: var(--panel-soft);
}

.ingestion-tab.is-active {
  border-color: var(--line);
  border-bottom-color: #fff;
  color: var(--ink);
  background: #fff;
}

.s3-fetch-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.s3-fetch-row select:first-of-type {
  flex: 2;
}

.s3-fetch-row select:nth-of-type(2) {
  flex: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.inline-success {
  border: 1px solid var(--success-line);
  border-radius: 6px;
  color: var(--success);
  background: var(--success-soft);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.inline-success[hidden] {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: "AI Headline", "AI Text", ui-sans-serif, system-ui, sans-serif;
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  font-family: "AI Headline", "AI Text", ui-sans-serif, system-ui, sans-serif;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.2;
}

.site-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  border-top: 1px solid #555;
  background: #242424;
  padding: 0 28px;
}

.ai-wordmark {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: "AI Headline", "AI Text", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.ai-mark {
  display: block;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  filter: invert(1);
}

.product-wordmark {
  color: #fff;
  font-family: "AI Headline", "AI Text", ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.product-wordmark .slash {
  margin-left: 2px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}

.status-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 150px;
}

.auth-loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #d8dee4;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: sfs-spin 0.8s linear infinite;
}

.loading-spinner.large {
  width: 22px;
  height: 22px;
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 56px;
}

.auth-loading-shell {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: start center;
  padding: 72px 24px 56px;
}

.auth-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  padding: 18px 20px;
}

.auth-loading-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.anonymous-shell {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: start center;
  padding: 72px 24px 56px;
}

.auth-gate {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 28px;
  text-align: center;
}

.auth-gate h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.auth-gate p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-gate-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  color: #fff;
  background: var(--primary);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-gate-action:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.auth-gate-action:focus-visible {
  outline: 3px solid rgba(9, 105, 218, 0.25);
  outline-offset: 2px;
}

.auth-gate-helper {
  margin: 14px 0 0;
  font-size: 12px;
}

.admin-sidebar {
  align-self: start;
  position: sticky;
  top: 16px;
}

.settings-nav {
  display: grid;
  gap: 2px;
}

.nav-section-label {
  margin: 18px 8px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tab {
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.tab:hover,
.tab.is-active {
  color: var(--ink);
  background: var(--panel-soft);
}

.tab.is-active {
  font-weight: 750;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.auth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.auth-action:hover {
  background: var(--panel-soft);
  text-decoration: none;
}

.auth-action:focus-visible {
  outline: 3px solid rgba(9, 105, 218, 0.25);
  outline-offset: 2px;
}

.status-pill.ok {
  color: #067647;
  border-color: #abefc6;
  background: #ecfdf3;
}

.status-pill.error {
  color: #b42318;
  border-color: #fecdca;
  background: #fef3f2;
}

.page-shell {
  min-width: 0;
  padding: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ingestion-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.ingestion-table-header,
.ingestion-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.5fr) minmax(140px, 0.65fr) minmax(140px, 0.65fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
}

.ingestion-table-header {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-weight: 750;
}

.ingestion-table-row {
  border-bottom: 1px solid var(--line);
}

.ingestion-schema-table-header,
.ingestion-schema-table-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.5fr) minmax(180px, 0.8fr);
}

.ingestion-table-row:last-child {
  border-bottom: 0;
}

.ingestion-table-body .ingestion-table-row:nth-child(even) {
  background: #f6f8fa;
}

.muted-row {
  color: var(--muted);
  font-size: 13px;
}

.ingestion-table-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ingestion-table-link:hover {
  background: var(--panel-soft);
}

.inline-error {
  border: 1px solid var(--danger-line);
  border-radius: 6px;
  color: #b42318;
  background: var(--danger-soft);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.inline-error[hidden] {
  display: none;
}

.back-button {
  min-height: auto;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
}

.back-button:hover {
  color: var(--ink);
  background: transparent;
}

.inline-detail[hidden] {
  display: none;
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-heading h1 {
  margin-bottom: 0;
}

.settings-section {
  margin-bottom: 28px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-badge.success {
  color: var(--success);
  border-color: var(--success-line);
  background: var(--success-soft);
}

.status-badge.error {
  color: var(--danger);
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.metadata-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}

.metadata-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.metadata-list dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.metadata-list-started {
  grid-column: 1;
  grid-row: 3;
}

.metadata-list-completed {
  grid-column: 2;
  grid-row: 3;
}

.message-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.message-list li {
  margin-bottom: 4px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.ingestion-log-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.ingestion-log-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 0.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.ingestion-log-row .type-pill {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ingestion-log-row:last-child {
  border-bottom: 0;
}

.ingestion-log-when {
  color: var(--muted);
  font-size: 12px;
}

.json-block {
  max-height: 420px;
  margin: 0;
  overflow: auto;
  border-radius: 7px;
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}
