/*
  Studio v2: the supplier's own file, opened at the row behind an output cell.
  The marked row is blue ("look here"), with an outline as well as the tint.
*/
.src-dialog {
  inline-size: min(72rem, calc(100vw - 32px));
  max-block-size: min(86vh, 52rem);
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgb(15 23 42 / 24%);
}

.src-dialog::backdrop {
  background: rgb(15 23 42 / 35%);
}

.src-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-block-end: 1px solid var(--line);
}

.src-head .section-label {
  margin: 0;
}

.src-title {
  margin: 2px 0 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.src-sub,
.src-note {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.src-body {
  display: grid;
  gap: 8px;
  padding: 10px 16px 14px;
}

.src-grid-wrap {
  max-block-size: min(62vh, 36rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.src-grid {
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-data);
  font-size: 12px;
}

.src-grid :is(th, td) {
  max-inline-size: 16rem;
  padding: 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
}

.src-grid thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  color: var(--text-subtle);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  background: var(--surface-muted);
}

.src-rownum {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  min-inline-size: 3rem;
  color: var(--text-subtle);
  font-weight: 500;
  text-align: end;
  background: var(--surface-muted);
}

.src-grid thead .src-rownum {
  z-index: 3;
}

.src-target :is(td, th) {
  color: var(--v2-attn-ink);
  font-weight: 700;
  background: var(--v2-attn-bg);
}

.src-target td:first-of-type,
.src-target th {
  box-shadow: inset 0 2px 0 var(--v2-attn-ink), inset 0 -2px 0 var(--v2-attn-ink);
}

.src-error {
  margin: 0;
  padding: 14px 16px;
  color: var(--v2-attn-ink);
  font-weight: 600;
}

/* The preview's cell bar: where the value came from, and the way to it. */
.pv-cellbar-where .pv-cellbar-value {
  font-family: var(--font-ui);
}

.pv-show-source {
  margin-inline-start: auto;
}

.pv-cellbar-note {
  flex-basis: 100%;
  font-size: 12.5px;
  font-weight: 600;
}

.pv-cellbar-note.is-done {
  color: var(--v2-done-ink);
}

.pv-cellbar-note.is-attn {
  color: var(--v2-attn-ink);
}
