:root {
  --blue: #0b63d7;
  --focus-ring: #0b63d7;
  --status-negative: #a9342b;
  --status-positive: #08684a;
  --status-watch: #7b5200;
}

.source-band {
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  align-items: start;
}

.source-band-version {
  justify-self: end;
  text-align: right;
}

.source-band-records {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .source-band {
    grid-template-columns: 1fr;
  }

  .source-band-version {
    justify-self: start;
    text-align: left;
  }

  .source-band-records {
    grid-column: auto;
  }
}

.positive,
.status.low,
.sla.healthy {
  color: var(--status-positive) !important;
}

.negative,
.status.high,
.sla.risk,
.draft-status {
  color: var(--status-negative) !important;
}

.status.medium,
.sla.watch {
  color: var(--status-watch) !important;
}

:is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.button,
.nav-item,
.text-action,
.date-control,
.field input,
.field select,
.decision select,
.decision input,
.sources-drawer > button {
  min-height: 44px;
}

.approval-check {
  align-items: center;
  min-height: 44px;
}

.approval-check input {
  width: 22px;
  height: 22px;
}

.table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
  margin: 0 0 6px;
  color: #42506a;
  font-size: .7rem;
  font-weight: 760;
}

.table-scroll-hint::before {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

.table-scroll-hint[data-overflow='false'] {
  display: none;
}

.table-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-bottom: 0;
  scrollbar-color: var(--blue) #e8edf4;
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
  box-shadow: inset -18px 0 18px -20px rgba(16, 29, 59, .75);
}

.table-wrap::-webkit-scrollbar {
  height: 11px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #e8edf4;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--blue);
  border: 2px solid #e8edf4;
  border-radius: 999px;
}

.table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fc;
}

.table-wrap :is(th, td):first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 8px 0 12px -12px rgba(16, 29, 59, .85);
}

.table-wrap th:first-child {
  z-index: 3;
  background: #f7f9fc;
}

.table-wrap tbody tr:hover td:first-child,
.table-wrap tbody tr.selected td:first-child {
  background: #f5f9ff;
}

.table-wrap tbody tr.total td:first-child {
  background: #f7f9fc;
}

.table-wrap tbody tr[role='button'] {
  cursor: pointer;
}

.table-wrap tbody tr[role='button']:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.decision-detail-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #b9c8dc;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  background: #f8fbff;
}

.decision-detail-panel h2,
.decision-detail-panel h3 {
  margin: 0;
}

.decision-detail-eyebrow {
  color: var(--blue);
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.decision-context {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.decision-context strong {
  color: var(--navy);
}

.decision-detail-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.decision-detail-panel dl div {
  display: grid;
  gap: 3px;
}

.decision-detail-panel dt {
  color: #42506a;
  font-size: .64rem;
  font-weight: 760;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.decision-detail-panel dd {
  margin: 0;
  font-size: .74rem;
  line-height: 1.35;
}

.decision .decision-context {
  margin-bottom: 12px;
}

.row-select-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #75859b;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.row-select-control:hover {
  background: #edf5ff;
}

.disabled-control-explanation {
  margin: -4px 0 18px;
  padding: 9px 12px;
  border-left: 3px solid #71809a;
  background: #f4f6f9;
  color: #3d4b62;
  font-size: .68rem;
  line-height: 1.4;
}

.qa-status-text {
  display: block;
  margin-top: 3px;
  color: #3d4b62;
  font-size: .62rem;
  font-weight: 700;
}

:is(input, select, textarea):not([type='checkbox']) {
  border-color: #75859b !important;
}

.date-control {
  border-color: #75859b !important;
}

.portfolio-context-trigger {
  position: static;
  display: flex;
  width: max-content;
  margin: 18px 18px 18px auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #a9bad0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(16, 29, 59, .16);
  font: inherit;
  font-size: .72rem;
  font-weight: 780;
  cursor: pointer;
}

.portfolio-context-trigger:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.portfolio-context-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid #a9bad0;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 70px rgba(16, 29, 59, .28);
}

.portfolio-context-dialog::backdrop {
  background: rgba(12, 24, 48, .62);
  backdrop-filter: blur(2px);
}

.portfolio-context-header,
.portfolio-context-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-context-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.portfolio-context-header h2,
.portfolio-context-demonstrates h3 {
  margin: 0;
}

.portfolio-context-eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.portfolio-context-close,
.portfolio-context-continue {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #a9bad0;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .72rem;
  font-weight: 780;
  cursor: pointer;
}

.portfolio-context-summary {
  margin: 0;
  padding: 18px 24px 8px;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.5;
}

.portfolio-context-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px 24px 18px;
}

.portfolio-context-item {
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.portfolio-context-item dt {
  margin-bottom: 5px;
  color: #42506a;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.portfolio-context-item dd {
  margin: 0;
  font-size: .74rem;
  line-height: 1.45;
}

.portfolio-context-demonstrates {
  margin: 0 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: #f4f8fd;
}

.portfolio-context-demonstrates h3 {
  font-size: .88rem;
}

.portfolio-context-demonstrates ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #42506a;
  font-size: .72rem;
  line-height: 1.4;
}

.portfolio-context-proof,
.portfolio-context-data-note {
  margin: 0;
  padding-inline: 24px;
  font-size: .7rem;
  line-height: 1.45;
}

.portfolio-context-proof {
  padding-top: 16px;
  color: var(--navy);
  font-weight: 760;
}

.portfolio-context-data-note {
  padding-top: 6px;
  color: #42506a;
}

.portfolio-context-footer {
  margin-top: 18px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
}

.portfolio-context-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 780;
}

.portfolio-context-continue {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.funnel-evidence-flow {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}

.funnel-flow-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.funnel-flow-heading h2,
.funnel-flow-heading p,
.bottleneck-explanation h3,
.bottleneck-explanation p {
  margin: 0;
}

.funnel-flow-heading h2 {
  font-size: 1rem;
}

.funnel-flow-heading p {
  margin-top: 4px;
  color: #42506a;
  font-size: .72rem;
  line-height: 1.4;
}

.comparison-label {
  max-width: 280px;
  padding: 6px 9px;
  border: 1px solid #c7d3e2;
  background: #f7f9fc;
  color: #42506a;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.35;
}

.funnel-flow-heading-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.funnel-flow-scroll-hint {
  color: var(--blue);
  font-size: .62rem;
  font-weight: 800;
}

.funnel-flow-region {
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-color: var(--blue) #e8edf4;
  overscroll-behavior-inline: contain;
}

.funnel-flow-region::-webkit-scrollbar,
.lineage-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.funnel-flow-region::-webkit-scrollbar-track,
.lineage-table-wrap::-webkit-scrollbar-track {
  background: #e8edf4;
}

.funnel-flow-region::-webkit-scrollbar-thumb,
.lineage-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #e8edf4;
  border-radius: 999px;
  background: var(--blue);
}

.funnel-flow {
  display: flex;
  align-items: stretch;
  min-width: max-content;
}

.flow-stage-card {
  display: grid;
  align-content: start;
  width: 126px;
  min-height: 136px;
  padding: 13px;
  border: 1px solid #becbdb;
  border-top: 4px solid #71809a;
  background: #fff;
}

.flow-stage-label {
  min-height: 31px;
  color: #42506a;
  font-size: .66rem;
  font-weight: 780;
  line-height: 1.25;
  text-transform: uppercase;
}

.flow-stage-card strong {
  margin-top: 7px;
  color: var(--navy);
  font-size: 1.38rem;
}

.flow-stage-card small {
  color: #5d6980;
  font-size: .62rem;
}

.flow-stage-change {
  align-self: end;
  margin-top: 11px;
  font-size: .62rem;
  font-weight: 760;
  line-height: 1.25;
}

.flow-transition {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 112px;
  min-height: 136px;
  color: #42506a;
}

.flow-arrow {
  width: 74px;
  overflow: hidden;
  color: var(--blue);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-align: center;
}

.flow-arrow::before {
  content: '';
  display: inline-block;
  width: 48px;
  height: 2px;
  margin-right: -4px;
  vertical-align: middle;
  background: currentColor;
}

.flow-transition-metrics {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  font-size: .62rem;
  line-height: 1.25;
  text-align: center;
}

.flow-transition-metrics strong {
  color: var(--navy);
  font-size: .66rem;
}

.flow-transition.bottleneck {
  border-radius: 4px;
  background: #fff4ee;
  color: #9a3f13;
}

.flow-transition.bottleneck .flow-arrow {
  color: #c45118;
}

.bottleneck-tag {
  margin-top: 7px;
  padding: 3px 6px;
  background: #c45118;
  color: #fff;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bottleneck-explanation {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 15px 18px;
  border: 1px solid #e2b394;
  border-left: 4px solid #c45118;
  background: #fff9f5;
}

.bottleneck-eyebrow {
  color: #9a3f13;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.bottleneck-explanation h3 {
  grid-column: 1;
  color: var(--navy);
  font-size: .9rem;
}

.bottleneck-explanation p {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #42506a;
  font-size: .7rem;
  line-height: 1.45;
}

.bottleneck-explanation small {
  grid-column: 1 / -1;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #edcfbb;
  color: #6e4c38;
  font-size: .62rem;
}

.data-controls-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #a9bad0;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 70px rgba(16, 29, 59, .3);
}

.data-controls-dialog::backdrop {
  background: rgba(12, 24, 48, .66);
  backdrop-filter: blur(2px);
}

.data-controls-header,
.data-controls-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.data-controls-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.data-controls-header h2,
.data-controls-header p,
.controls-section h3,
.method-card h4,
.method-card p,
.metric-type p,
.controls-boundary p {
  margin: 0;
}

.data-controls-eyebrow {
  margin-bottom: 4px !important;
  color: var(--blue);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.data-controls-close,
.data-controls-return {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #a9bad0;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .72rem;
  font-weight: 780;
  cursor: pointer;
}

.data-controls-intro {
  margin: 0;
  padding: 18px 22px 8px;
  color: #42506a;
  font-size: .82rem;
  line-height: 1.45;
}

.controls-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px 22px 18px;
}

.controls-metadata-item {
  padding: 11px;
  border: 1px solid var(--line);
  background: #f7f9fc;
}

.controls-metadata dt,
.threshold-list dt {
  color: #42506a;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.controls-metadata dd,
.threshold-list dd {
  margin: 5px 0 0;
  font-size: .71rem;
  line-height: 1.35;
}

.controls-section {
  margin: 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.controls-section h3 {
  margin-bottom: 12px;
  font-size: .9rem;
}

.controls-legend-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-type,
.method-card {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.metric-type strong,
.method-type {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 6px;
  background: #e7edf5;
  color: #30405a;
  font-size: .61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-type.derived-indicator strong,
.method-type {
  background: #e7f1ff;
  color: #1356a6;
}

.metric-type.generated-recommendation strong {
  background: #fff0e8;
  color: #9a3f13;
}

.metric-type p,
.method-card p {
  color: #42506a;
  font-size: .68rem;
  line-height: 1.42;
}

.method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-card h4 {
  margin-bottom: 6px;
  font-size: .78rem;
}

.threshold-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.threshold-list > div {
  padding: 11px;
  border-left: 4px solid #71809a;
  background: #f7f9fc;
}

.threshold-list > div:first-child {
  border-left-color: #c45118;
}

.threshold-list > div:nth-child(2) {
  border-left-color: #b98013;
}

.threshold-list > div:last-child {
  border-left-color: #16845b;
}

.lineage-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  scrollbar-color: var(--blue) #e8edf4;
}

.lineage-table-wrap table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.lineage-table-wrap :is(th, td) {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: #42506a;
  font-size: .65rem;
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
}

.lineage-table-wrap th {
  background: #f3f6fa;
  color: var(--navy);
  font-weight: 800;
}

.lineage-table-wrap td:first-child {
  color: var(--navy);
  font-weight: 800;
}

.controls-boundary {
  margin: 0 22px;
  padding: 14px 16px;
  border: 1px solid #b9c8dc;
  border-left: 4px solid var(--blue);
  background: #f5f9ff;
}

.controls-boundary strong {
  font-size: .76rem;
}

.controls-boundary p {
  margin-top: 5px;
  color: #42506a;
  font-size: .68rem;
  line-height: 1.4;
}

.data-controls-footer {
  justify-content: flex-end;
  margin-top: 18px;
  padding: 15px 22px 20px;
  border-top: 1px solid var(--line);
}

.data-controls-return {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.data-controls-mobile-nav {
  display: none;
}

.data-controls-mobile-icon {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    width: 76px;
    padding: 20px 10px 16px;
  }

  .brand {
    justify-content: center;
    padding: 2px 0 24px;
  }

  .brand-text,
  .nav-item span,
  .profile span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .sidebar nav {
    gap: 8px;
  }

  .nav-item {
    justify-content: center;
    width: 48px;
    min-height: 48px;
    margin-inline: auto;
    padding: 0;
  }

  .nav-item.active {
    box-shadow: inset 3px 0 0 var(--blue);
  }

  .profile {
    justify-content: center;
    padding-inline: 0;
  }
}

@media (max-width: 820px) {
  .funnel-flow-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .comparison-label {
    max-width: none;
  }

  .controls-metadata,
  .controls-legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    justify-content: center;
    min-width: 44px;
    padding: 0;
  }

  .brand-text,
  .sidebar-bottom {
    display: none;
  }

  .sidebar nav {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .data-controls-mobile-nav {
    display: flex;
  }

  .nav-item {
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 8px;
    font-size: .72rem;
  }

  .nav-item.active {
    box-shadow: inset 0 -3px 0 var(--blue);
  }

  .content-column,
  .screen-header.full {
    padding-inline: 16px;
  }
}

@media (max-width: 640px) {
  .funnel-flow-heading-meta {
    justify-items: start;
  }

  .funnel-flow-scroll-hint {
    display: none;
  }

  .funnel-flow-region {
    overflow: visible;
    padding: 0;
  }

  .funnel-flow {
    display: grid;
    min-width: 0;
  }

  .flow-stage-card,
  .flow-transition {
    width: 100%;
  }

  .flow-stage-card {
    min-height: 0;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 2px 14px;
  }

  .flow-stage-label,
  .flow-stage-change {
    min-height: 0;
  }

  .flow-stage-card strong,
  .flow-stage-change {
    margin-top: 0;
  }

  .flow-stage-card small,
  .flow-stage-change {
    grid-column: 1 / -1;
  }

  .flow-transition {
    min-height: 92px;
  }

  .flow-arrow {
    height: 30px;
    transform: rotate(90deg);
  }

  .flow-transition.bottleneck {
    padding: 8px;
  }

  .bottleneck-explanation {
    grid-template-columns: 1fr;
  }

  .bottleneck-explanation h3,
  .bottleneck-explanation p,
  .bottleneck-explanation small {
    grid-column: 1;
    grid-row: auto;
  }

  .data-controls-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .data-controls-header {
    padding: 14px 16px;
  }

  .data-controls-intro {
    padding: 16px 16px 6px;
  }

  .controls-metadata,
  .controls-legend-grid,
  .method-grid,
  .threshold-list {
    grid-template-columns: 1fr;
  }

  .controls-metadata {
    padding: 10px 16px 14px;
  }

  .controls-section,
  .controls-boundary {
    margin-inline: 16px;
  }

  .lineage-table-wrap {
    overflow: visible;
    border: 0;
  }

  .lineage-table-wrap table,
  .lineage-table-wrap tbody,
  .lineage-table-wrap tr,
  .lineage-table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .lineage-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .lineage-table-wrap tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
  }

  .lineage-table-wrap td {
    display: grid;
    grid-template-columns: minmax(100px, .38fr) minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .lineage-table-wrap td::before {
    content: attr(data-label);
    color: #42506a;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .data-controls-footer {
    padding: 14px 16px 18px;
  }

  .data-controls-return {
    width: 100%;
  }

  .portfolio-context-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .portfolio-context-header,
  .portfolio-context-footer {
    align-items: stretch;
  }

  .portfolio-context-header {
    padding: 16px;
  }

  .portfolio-context-summary {
    padding: 16px 16px 6px;
  }

  .portfolio-context-details {
    grid-template-columns: 1fr;
    padding: 10px 16px 14px;
  }

  .portfolio-context-item {
    padding: 10px 12px;
  }

  .portfolio-context-demonstrates {
    margin-inline: 16px;
    padding: 14px;
  }

  .portfolio-context-demonstrates ul {
    grid-template-columns: 1fr;
  }

  .portfolio-context-proof,
  .portfolio-context-data-note {
    padding-inline: 16px;
  }

  .portfolio-context-footer {
    flex-direction: column;
    padding: 14px 16px 18px;
  }

  .portfolio-context-link,
  .portfolio-context-continue {
    justify-content: center;
    width: 100%;
  }

  .table-scroll-hint {
    display: none;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .table-wrap tbody tr {
    display: grid;
    gap: 0;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(16, 29, 59, .05);
  }

  .table-wrap tbody tr.selected {
    box-shadow: inset 4px 0 0 var(--blue), 0 5px 14px rgba(16, 29, 59, .05);
  }

  .table-wrap td {
    position: static !important;
    display: grid;
    grid-template-columns: minmax(96px, .4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff !important;
    box-shadow: none !important;
    overflow-wrap: anywhere;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: #42506a;
    font-size: .64rem;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .table-wrap td[data-label=''] {
    display: none;
  }

  .table-wrap td strong {
    display: inline;
  }

  .weekly-table td textarea {
    min-width: 0;
  }

  .decision-detail-panel dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .sidebar {
    align-items: stretch;
    gap: 6px;
    padding-inline: 8px;
  }

  .brand {
    display: none;
  }

  .nav-item {
    flex-direction: column;
    gap: 2px;
    min-height: 52px;
    padding: 4px 3px;
    font-size: .62rem;
  }

  .screen-header,
  .header-actions,
  .section-head {
    align-items: stretch;
  }

  .header-actions > *,
  .date-control,
  .button {
    width: 100%;
  }

  .table-wrap td {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

/* Four-stage intake workflow */
.workflow-original-hidden {
  display: none !important;
}

.workflow-stepper.steps {
  height: auto;
  min-height: 72px;
}

.workflow-stepper.steps li {
  min-width: 0;
}

.workflow-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 71px;
  padding: 8px 10px;
  color: var(--muted);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 3px solid transparent;
}

.workflow-step:hover {
  background: #f7f9fc;
}

.workflow-step.current {
  color: var(--blue);
  background: var(--blue-soft);
  border-bottom-color: var(--blue);
}

.workflow-step.completed {
  color: #08795b;
}

.workflow-step.locked {
  color: #5f6b83;
  background: #f7f9fc;
}

.workflow-step-number {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  color: inherit;
  font-size: .74rem;
  font-weight: 800;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.workflow-step.completed .workflow-step-number::before {
  content: '✓';
}

.workflow-step.completed .workflow-step-number {
  font-size: 0;
}

.workflow-step.completed .workflow-step-number::before {
  font-size: .8rem;
}

.workflow-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workflow-step-copy strong,
.workflow-step-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-step-copy strong {
  font-size: .8rem;
}

.workflow-step-copy small {
  color: inherit;
  font-size: .66rem;
}

.workflow-stage-status {
  min-height: 42px;
  margin: 0;
  padding: 12px 28px;
  color: #42506a;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
}

.workflow-stage-status[data-tone='success'] {
  color: #08795b;
  background: var(--green-soft);
}

.workflow-stage-status[data-tone='warning'] {
  color: #7a4a00;
  background: #fff7e8;
}

.workflow-stage-status[data-tone='error'] {
  color: #a92d24;
  background: var(--coral-soft);
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workflow-panel {
  padding: 26px 28px 36px;
}

.workflow-panel[hidden],
.intake-grid[hidden] {
  display: none !important;
}

.intake-grid:not([hidden]) {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.intake-grid:not([hidden]) .intake-form {
  border-right: 0;
}

.workflow-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.workflow-panel-heading h2,
.workflow-panel-heading p {
  margin-bottom: 0;
}

.workflow-panel-heading > p {
  max-width: 520px;
  font-size: .82rem;
}

.workflow-eyebrow {
  margin-bottom: 5px !important;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.workflow-card,
.workflow-warning-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(16, 29, 59, .05);
}

.workflow-card + .workflow-card {
  margin-top: 16px;
}

.workflow-card h3,
.workflow-warning-card h3 {
  margin-bottom: 8px;
}

.workflow-card > p,
.workflow-warning-card > p {
  margin-bottom: 12px;
  font-size: .78rem;
}

.workflow-warning-card {
  margin-top: 18px;
  background: #fff7e8;
  border-color: #e6bd74;
}

.workflow-warning-card p {
  margin-bottom: 0;
  color: #6f4608;
}

.workflow-summary {
  display: grid;
  gap: 0;
  margin: 0;
}

.workflow-summary > div {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.workflow-summary dt {
  font-size: .75rem;
  font-weight: 800;
}

.workflow-summary dd {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
  white-space: pre-line;
}

.workflow-two-column,
.workflow-three-column,
.workflow-four-column {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

.workflow-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #263653;
  font-size: .74rem;
  font-weight: 750;
}

.workflow-field input,
.workflow-field textarea,
.workflow-field select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #aebbcf;
  border-radius: 4px;
}

.workflow-field input {
  min-height: 40px;
}

.workflow-field small {
  font-weight: 500;
}

.workflow-interview-list {
  display: grid;
  gap: 12px;
}

.workflow-interview-row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(240px, 1.6fr) minmax(160px, .8fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.workflow-acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  background: var(--blue-soft);
  border: 1px solid #aacbfa;
  border-radius: 6px;
  font-size: .8rem;
}

.workflow-acknowledgement input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.workflow-acknowledgement span {
  display: grid;
  gap: 4px;
}

.workflow-acknowledgement small {
  font-weight: 500;
}

.workflow-error-summary {
  margin: 0;
  padding: 14px 28px;
  color: #8e241d;
  background: #fff7f5;
  border-bottom: 1px solid #e9a69f;
}

.workflow-error-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.workflow-error-summary button {
  padding: 0;
  color: #8e241d;
  text-decoration: underline;
  background: transparent;
  border: 0;
}

.workflow-invalid {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 2px rgba(240, 93, 78, .16);
}

.workflow-pack-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #08795b;
  background: var(--green-soft);
  border: 1px solid #9ed8ca;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 750;
}

.workflow-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workflow-pack-card:last-child {
  grid-column: 1 / -1;
}

.workflow-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .workflow-four-column,
  .workflow-three-column,
  .workflow-interview-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-interview-row .workflow-field:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .workflow-stepper.steps {
    margin-inline: 0;
  }

  .workflow-step {
    min-height: 64px;
    padding-inline: 5px;
  }

  .workflow-stepper.steps li .workflow-step-number {
    display: grid;
  }

  .workflow-stepper.steps li .workflow-step-copy {
    display: grid;
  }

  .workflow-step-copy strong {
    font-size: .7rem;
  }

  .workflow-step-copy small {
    font-size: .6rem;
  }

  .workflow-step-number {
    width: 23px;
    height: 23px;
  }

  .workflow-stage-status,
  .workflow-error-summary,
  .workflow-panel {
    padding-inline: 14px;
  }

  .workflow-panel-heading,
  .workflow-two-column,
  .workflow-three-column,
  .workflow-four-column,
  .workflow-interview-row,
  .workflow-pack-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workflow-interview-row .workflow-field:nth-child(2),
  .workflow-pack-card:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .workflow-summary > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .workflow-actions,
  .workflow-actions .button,
  .workflow-export-actions,
  .workflow-export-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .workflow-step {
    flex-direction: column;
    gap: 3px;
    text-align: center;
  }

  .workflow-step-copy small {
    display: none;
  }
}

/* Dedicated local synthetic data workspace */
.data-workspace-dialog {
  width: min(1440px, calc(100vw - 24px));
  max-width: none;
  height: calc(100vh - 24px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--navy);
  background: #fff;
  border: 1px solid #91a4be;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 29, 59, .34);
}

.data-workspace-dialog[open] {
  display: flex;
  flex-direction: column;
}

.data-workspace-dialog::backdrop {
  background: rgba(12, 24, 48, .7);
  backdrop-filter: blur(2px);
}

.data-workspace-header {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.data-workspace-header h2,
.data-workspace-header p {
  margin-bottom: 0;
}

.data-workspace-header > div > p:last-child {
  margin-top: 5px;
  font-size: .78rem;
}

.data-privacy-banner {
  display: flex;
  flex: none;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 22px;
  color: #633d00;
  background: #fff6df;
  border-bottom: 1px solid #e4ba63;
  font-size: .72rem;
  line-height: 1.45;
}

.data-privacy-banner strong {
  flex: none;
}

.data-workspace-nav {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 9px 18px;
  overflow-x: auto;
  background: #f5f8fc;
  border-bottom: 1px solid var(--line);
  scrollbar-color: var(--blue) #e8edf4;
}

.data-workspace-nav a {
  flex: none;
  min-height: 36px;
  padding: 9px 11px;
  color: #30405a;
  font-size: .68rem;
  font-weight: 780;
  text-decoration: none;
  border-radius: 4px;
}

.data-workspace-nav a:hover {
  color: var(--blue);
  background: #fff;
}

.data-workspace-status {
  flex: none;
  min-height: 36px;
  margin: 0;
  padding: 9px 22px;
  color: #31506a;
  background: #eef7ff;
  border-bottom: 1px solid #b9d6ef;
  font-size: .7rem;
}

.data-workspace-scroll {
  flex: 1;
  min-height: 0;
  padding: 0 22px 28px;
  overflow: auto;
  scroll-behavior: smooth;
}

.data-workspace-section {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 12px;
}

.data-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.data-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.data-section-heading h3,
.data-section-heading p {
  margin-bottom: 0;
}

.data-section-heading > p {
  max-width: 560px;
  font-size: .76rem;
}

.data-section-number {
  color: var(--blue);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.data-workspace-dialog .controls-metadata {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 0 18px;
}

.data-workspace-dialog .controls-metadata > div {
  min-width: 0;
  padding: 11px;
  background: #f7f9fc;
  border: 1px solid var(--line);
}

.data-workspace-dialog .controls-metadata dd {
  overflow-wrap: anywhere;
}

.data-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.data-source-list li {
  padding: 10px 12px;
  color: #42506a;
  background: #f7f9fc;
  border-left: 3px solid var(--blue);
  font-size: .7rem;
  line-height: 1.4;
}

.data-section-actions,
.data-sample-actions,
.data-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.data-source-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.data-source-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(16, 29, 59, .05);
}

.data-source-card h4,
.data-source-card p {
  margin-bottom: 7px;
}

.data-source-card p {
  color: #42506a;
  font-size: .69rem;
}

.data-source-card .data-source-fields {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: .62rem;
}

.data-source-actions .button {
  flex: 1;
  min-width: 104px;
  padding-inline: 9px;
  font-size: .68rem;
  text-decoration: none;
}

.data-sample-actions {
  margin: 16px 0;
}

.data-drop-zone {
  display: grid;
  place-items: center;
  min-height: 142px;
  padding: 22px;
  text-align: center;
  background: #f7fbff;
  border: 2px dashed #7895b8;
  border-radius: 7px;
  cursor: pointer;
}

.data-drop-zone:hover,
.data-drop-zone.is-dragging {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.data-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-drop-zone strong {
  color: var(--blue);
  font-size: .88rem;
}

.data-drop-zone span,
.data-drop-zone small {
  margin-top: 4px;
  color: #42506a;
  font-size: .7rem;
}

.data-staged-files {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.data-file-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.data-file-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  color: #263653;
  background: #f5f8fc;
  cursor: pointer;
  font-size: .75rem;
}

.data-file-card > summary span {
  color: #42506a;
  font-size: .68rem;
}

.data-file-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.data-field,
.data-mapping-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #30405a;
  font-size: .66rem;
  font-weight: 760;
}

.data-field select,
.data-mapping-row select {
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #8292a8;
  border-radius: 4px;
}

.data-file-card h5 {
  margin: 4px 14px 9px;
  font-size: .72rem;
}

.data-mapping-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 14px 15px;
}

.data-mapping-row {
  padding: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.data-mapping-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-preview-table-wrap {
  margin: 0 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.data-preview-table-wrap table {
  min-width: max-content;
}

.data-preview-table-wrap :is(th, td) {
  max-width: 260px;
  padding: 8px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-validation-status {
  margin-bottom: 14px;
  padding: 11px 13px;
  color: #42506a;
  background: #f5f8fc;
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 760;
}

.data-validation-status.has-errors {
  color: #8e241d;
  background: #fff3f0;
  border-color: #e2a098;
}

.data-validation-status.is-valid {
  color: #087054;
  background: #eaf8f4;
  border-color: #8ecfbd;
}

.data-validation-columns,
.data-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.data-issue-card,
.data-summary-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.data-issue-card h4,
.data-summary-card h4 {
  margin-bottom: 9px;
}

.data-issue-card.blocking {
  background: #fff7f5;
  border-left: 4px solid #a9342b;
}

.data-issue-card.warning {
  background: #fff9eb;
  border-left: 4px solid #8a5b00;
}

.data-issue-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #42506a;
  font-size: .68rem;
  line-height: 1.4;
}

.data-no-issues {
  color: #42506a;
}

.data-summary-card {
  background: #fff;
  box-shadow: 0 5px 15px rgba(16, 29, 59, .04);
}

.data-summary-card dl {
  margin: 0;
}

.data-summary-card dl > div {
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: .7rem;
}

.data-summary-card dt {
  font-weight: 760;
}

.data-summary-card dd {
  margin: 0;
  color: #42506a;
}

.data-apply-card {
  display: grid;
  gap: 11px;
  padding: 16px;
  background: #f5f9ff;
  border: 1px solid #aac7eb;
  border-radius: 6px;
}

.data-apply-card > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .76rem;
}

.data-apply-card input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.data-apply-card label span {
  display: grid;
  gap: 3px;
}

.data-apply-card label small {
  color: #42506a;
  font-size: .66rem;
  font-weight: 500;
}

.data-persist-choice {
  padding-top: 10px;
  border-top: 1px solid #cbd9ea;
}

.data-apply-card .button {
  justify-self: end;
}

.data-empty-state {
  margin: 0;
  padding: 14px;
  color: #42506a;
  background: #f7f9fc;
  border: 1px dashed #a6b3c4;
  font-size: .7rem;
}

.data-workspace-dialog .controls-boundary {
  margin: 22px 0 0;
}

@media (max-width: 1120px) {
  .data-workspace-dialog .controls-metadata,
  .data-source-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-mapping-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .data-workspace-dialog {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border: 0;
    border-radius: 0;
  }

  .data-workspace-header {
    align-items: flex-start;
    padding: 13px 14px;
  }

  .data-workspace-header > div > p:last-child {
    display: none;
  }

  .data-privacy-banner {
    display: grid;
    gap: 3px;
    padding: 9px 14px;
  }

  .data-workspace-nav {
    padding-inline: 9px;
  }

  .data-workspace-status,
  .data-workspace-scroll {
    padding-inline: 14px;
  }

  .data-section-heading,
  .data-file-controls {
    display: grid;
  }

  .data-section-heading > div {
    align-items: center;
  }

  .data-section-heading > p {
    font-size: .7rem;
  }

  .data-workspace-dialog .controls-metadata,
  .data-source-list,
  .data-source-download-grid,
  .data-mapping-grid,
  .data-validation-columns,
  .data-before-after {
    grid-template-columns: 1fr;
  }

  .data-section-actions,
  .data-sample-actions,
  .data-source-actions {
    display: grid;
  }

  .data-section-actions .button,
  .data-sample-actions .button,
  .data-source-actions .button,
  .data-file-controls .button,
  .data-apply-card .button {
    width: 100%;
  }

  .data-file-controls .data-field {
    width: 100%;
  }

  .data-apply-card .button {
    justify-self: stretch;
  }

  .data-workspace-dialog .lineage-table-wrap {
    overflow: visible;
  }
}
