/* schemas page styles (page-specific only; shared patterns live in app.css). */
.sch-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.sch-kpi { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.sch-kpi .row { justify-content: space-between; align-items: center; }
.sch-kpi b { font-size: var(--text-lg); font-weight: 600; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.sch-kpi span:last-child { font-size: var(--text-xs); color: var(--fg-3); }
.sch-name { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; text-decoration: none; color: inherit; }
.sch-name small { color: var(--fg-3); font-size: var(--text-xs); }
.sch-steps { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.sch-step { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--fg-2); font: 500 var(--font-body) var(--font-sans); cursor: pointer; padding: 4px; white-space: nowrap; }
.sch-step .n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--fg-3); font-size: var(--text-xs); }
.sch-step.on { color: var(--fg-1); font-weight: 600; }
.sch-step.on .n { border-color: var(--prism-stop-violet, var(--chart-1)); color: var(--fg-1); }
.sch-step.done .n { border-color: var(--approved-fg); color: var(--approved-fg); }
.sch-line { flex: 1; height: 1px; background: var(--border-default); min-width: 20px; }
.sch-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--pg-col, var(--pg-gap)); align-items: start; }
.sch-grid.wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.sch-pad { padding: 14px var(--pad-x); }
.sch-pad .kv { padding: 0; }
.sch-req { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; font-family: var(--font-mono); font-size: var(--text-xs); }
.sch-probs { margin: 4px 0 0; padding-left: 18px; }
.sch-file { font: inherit; color: var(--fg-2); }
.sch-file::file-selector-button { font: 500 var(--text-sm) var(--font-sans); color: var(--fg-1); background: transparent; border: 1px solid var(--border-default); border-radius: var(--radius); height: var(--control-h-sm); padding: 0 10px; margin-right: 10px; cursor: pointer; }
@media (max-width: 1100px) { .sch-grid, .sch-grid.wide { grid-template-columns: 1fr; } .sch-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sch-steps { flex-wrap: wrap; } .sch-line { display: none; } }
.sch-grid .wb-table td { padding-inline: 8px; }
/* sample file: the file read, or the drop zone */
.sch-file-box, .sch-drop { border: 1px dashed var(--border-control); border-radius: var(--wb-r, var(--radius)); background: var(--surface-0); }
.sch-file-box { display: flex; align-items: center; gap: 14px; padding: 20px; color: var(--fg-2); }
.sch-file-box b { color: var(--fg-1); font-weight: 600; overflow-wrap: anywhere; }
.sch-file-box .end { margin-inline-start: auto; }
.sch-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; text-align: center; color: var(--fg-2); transition: border-color .15s, background .15s; }
.sch-drop b { color: var(--fg-1); font-weight: 600; }
.sch-drop.over { border-color: var(--chart-1); background: color-mix(in srgb, var(--chart-1) 8%, var(--surface-0)); }
.sch-drop.bad { border-color: var(--critical-border); }
/* about the dataset: labels left, inputs right */
.sch-form { grid-template-columns: 140px minmax(0, 1fr); align-items: center; padding: 0; }
/* the footer of each step: back on the left, next on the right */
.sch-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 16px; }
/* the columns table: quiet inputs that show their border on hover and focus */
.sch-q .ds-in:not(:hover):not(:focus-within) { border-color: transparent; background: transparent; }
.sch-qs:not(:hover):not(:focus) { border-color: transparent; background-color: transparent; }
/* business key chips */
.sch-chips { gap: 6px; align-items: center; }
.sch-chip { display: inline-flex; align-items: center; gap: 6px; height: calc(var(--control-h-sm) - 2px); padding: 0 8px 0 10px; border-radius: var(--radius); background: var(--bg-muted); color: var(--fg-1); font-size: var(--text-sm); }
.sch-chip code { font-family: var(--font-mono); font-size: var(--text-xs); }
.sch-chip button { border: 0; background: transparent; color: var(--fg-3); padding: 0; cursor: pointer; display: inline-flex; }
.sch-chip button:hover { color: var(--fg-1); }
/* review checks */
.sch-checks { list-style: none; margin: 0; padding: 14px var(--pad-x); display: flex; flex-direction: column; gap: 10px; font-size: var(--text-sm); }
.sch-checks li { display: flex; gap: 8px; align-items: flex-start; color: var(--fg-1); }
.sch-checks li > svg { flex: none; margin-top: 2px; }
.sch-checks li.ok > svg { color: var(--approved-fg); }
.sch-checks li.bad > svg { color: var(--critical-fg); }
.sch-checks li.unk > svg { color: var(--fg-3); }
.sch-checks small { display: block; color: var(--fg-3); font-size: var(--text-xs); }
/* activity */
.sch-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-sm); }
.sch-activity b { font-weight: 600; }
.sch-activity .sch-said { color: var(--fg-2); }
.sch-activity .sch-quote { display: block; color: var(--fg-1); }
.sch-activity small { display: block; color: var(--fg-3); font-size: var(--text-xs); }
/* live datasets: the key wraps, the button stays inside the tile */
.sch-live .wb-table td:last-child { width: 1%; }
.sch-wrap { white-space: normal; overflow-wrap: anywhere; }
