:root {
  color-scheme: light;
  --page: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --ink: #17202a;
  --muted: #64717f;
  --line: #d7dde4;
  --soft-line: #e8edf2;
  --blue: #1f5f8b;
  --blue-soft: #e7f1f8;
  --green: #2b7054;
  --green-soft: #e8f5ee;
  --amber: #93671a;
  --amber-soft: #fff4dc;
  --red: #a64040;
  --red-soft: #fae9e9;
  --shadow: 0 10px 24px rgb(23 32 42 / 8%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 3vw, 32px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.section-heading h2,
.mapping-board-header h2,
.system-column h2,
.detail-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.safety-pill,
.save-status,
.active-pair-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.safety-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.primary-action {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 700;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--blue);
  font-weight: 700;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.object-pair-button:focus-visible,
.direction-button:focus-visible,
.target-select:focus-visible,
.mapping-row:focus-visible,
.icon-button:focus-visible,
.help-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f3c24f;
  outline-offset: 2px;
}

.workspace {
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(24px, 2vw, 32px) 36px;
}

.view[hidden] {
  display: none;
}

.auth-view {
  display: grid;
  justify-content: center;
  padding-top: clamp(24px, 8vh, 70px);
}

.new-integration-view {
  display: grid;
  gap: 14px;
}

.dashboard-view,
.integration-detail-view,
.mapping-view {
  display: grid;
  gap: 14px;
}

.form-panel,
.detail-overview,
.advanced-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 18px;
}

.auth-view .form-panel {
  width: min(520px, calc(100vw - 24px));
}

.discovery-form {
  width: 100%;
}

.form-panel h2,
.dashboard-view h2,
.integration-detail-view h2,
.mapping-view h2 {
  margin: 0;
  letter-spacing: 0;
}

.form-field {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.form-field label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-field.control-with-help {
  padding-left: 24px;
}

.control-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
}

input,
select {
  min-height: 34px;
  padding: 0 9px;
}

textarea {
  min-height: 82px;
  padding: 8px 9px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.connection-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 16px;
}

.connection-search-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.connection-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.connection-panel-heading h3,
.draft-details h3 {
  margin: 0;
  font-size: 0.94rem;
}

.connection-selected,
.profile-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.connection-results {
  display: grid;
  gap: 6px;
}

.known-profile-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: var(--panel);
}

.known-profile-result strong {
  display: block;
  font-size: 0.9rem;
}

.profile-meta {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.catalog-preview {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.selected-connection-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--panel);
}

.simple-account-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
}

.simple-account-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.simple-account-fields {
  display: grid;
  gap: 10px;
}

.connected-badge,
.pending-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.connected-badge {
  border: 1px solid #2f7d4f;
  background: #e9f7ee;
  color: #245d3d;
}

.pending-badge {
  border: 1px solid var(--line);
  background: #eef2f3;
  color: var(--muted);
}

.inline-help-action {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 0;
  text-decoration: underline;
  min-height: 32px;
}

.connection-error-message {
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.simple-advanced-details {
  box-shadow: none;
}

.discovery-proposal {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
}

.proposal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.proposal-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
}

.proposal-facts {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 4px 8px;
  margin: 0;
  font-size: 0.8rem;
}

.proposal-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.proposal-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ai-usage-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.capability-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.capability-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf7;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-capabilities {
  gap: 4px;
}

.capability-pill.yes {
  background: var(--green-soft);
  color: var(--green);
}

.capability-pill.no {
  background: var(--red-soft);
  color: var(--red);
}

.proposal-details {
  border-top: 1px solid var(--soft-line);
  padding-top: 6px;
}

.proposal-details summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.proposal-detail-grid {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.proposal-detail-grid h4 {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.proposal-detail-grid ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.compact-action {
  min-height: 28px;
  padding-inline: 9px;
}

.draft-details {
  display: grid;
  gap: 9px;
  padding-top: 2px;
  border-top: 1px solid var(--soft-line);
}

.draft-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.integrations-list,
.execution-history {
  display: grid;
  gap: 8px;
}

.integration-row,
.execution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.integration-row h3,
.execution-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.integration-row p,
.execution-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.execution-row {
  display: grid;
  justify-content: stretch;
}

.execution-row.success {
  border-left: 3px solid var(--green);
}

.execution-row.failed {
  border-left: 3px solid var(--red);
}

.muted-line {
  overflow-wrap: anywhere;
}

.error-line {
  color: var(--red) !important;
}

.empty-state {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--muted);
}

.detail-overview,
.advanced-panel {
  padding: 12px;
}

.workspace-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace-tab.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.workspace-tab.is-disabled {
  opacity: 0.7;
}

.detail-overview h2 {
  font-size: 1rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
}

.meta-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcf8;
}

.meta-grid dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 700;
}

.pair-detail-summary {
  display: grid;
  gap: 4px;
}

.pair-detail-summary h3,
.pair-detail-summary p {
  margin: 0;
}

.pair-detail-summary p {
  color: var(--muted);
  font-weight: 700;
}

.connection-pair-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 8px;
  align-items: center;
}

.pair-profile-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.pair-profile-card strong,
.pair-profile-card p {
  overflow-wrap: anywhere;
}

.pair-profile-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.connection-instance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.connection-instance-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.connection-instance-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.connection-instance-form,
.credential-fields {
  display: grid;
  gap: 8px;
}

.provider-setup-section {
  display: grid;
  gap: 8px;
  padding: 0 0 0 24px;
}

.provider-knowledge-panel {
  display: grid;
  gap: 7px;
  padding: 8px 8px 8px 32px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel);
}

.provider-setup-header {
  display: grid;
  gap: 2px;
}

.provider-setup-header h4,
.provider-knowledge-header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.provider-setup-header p,
.provider-knowledge-header p,
.provider-knowledge-status,
.provider-knowledge-drift {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-knowledge-drift {
  color: var(--amber);
  font-weight: 800;
}

.provider-knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.provider-knowledge-review {
  display: grid;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--soft-line);
}

.provider-knowledge-review h5,
.provider-knowledge-review p {
  margin: 0;
}

.provider-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
}

.provider-setup-fields,
.manual-connection-fields {
  display: grid;
  gap: 8px;
}

.credential-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.connection-advanced-settings {
  display: grid;
  gap: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
}

.connection-advanced-settings summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.connection-instance-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.live-resource-explorer {
  display: grid;
  gap: 8px;
}

.live-resource-explorer h4,
.live-preview-panel h2 {
  margin: 0;
}

.resource-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.live-resource-card .action-with-help {
  padding: 0 0 0 24px;
}

.live-preview-content {
  display: grid;
  gap: 10px;
}

.preview-table {
  display: grid;
  gap: 4px;
  overflow-x: auto;
}

.preview-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 6px;
  min-width: max-content;
}

.preview-row > * {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--panel-soft);
  overflow-wrap: anywhere;
}

.preview-header > * {
  background: var(--blue-soft);
  color: var(--blue);
}

.pair-connector {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 900;
}

.compact-heading {
  align-items: center;
}

.action-with-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding-left: 24px;
}

.live-resource-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}

.live-resource-actions .form-field {
  width: 116px;
}

.live-data-profile {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.live-data-profile h5 {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-sample-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-field-table {
  display: grid;
  gap: 4px;
  overflow-x: auto;
}

.profile-field-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(116px, 0.85fr) minmax(96px, 0.7fr) minmax(92px, 0.7fr) minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 0.76rem;
}

.profile-field-header {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.profile-field-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-field-row div:first-child {
  display: grid;
  gap: 2px;
}

.profile-field-row div:first-child span,
.profile-warning-list {
  color: var(--muted);
}

.fill-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.fill-bar {
  display: block;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.fill-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.profile-warning-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.76rem;
}

.resource-matching-panel {
  display: grid;
  gap: 10px;
}

.resource-matching-panel[hidden],
.field-matching-panel[hidden],
.transformations-panel[hidden],
.runtime-panel[hidden] {
  display: none;
}

.field-matching-panel,
.transformations-panel,
.runtime-panel {
  display: grid;
  gap: 10px;
}

.field-matching-content {
  display: grid;
  gap: 10px;
}

.field-match-resource {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.field-match-resource > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 9px 10px;
}

.field-match-resource > summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.field-match-group {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.field-match-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-match-list {
  display: grid;
  gap: 7px;
}

.field-match-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(126px, 0.55fr) minmax(180px, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--panel);
}

.field-match-card.accepted,
.field-match-card.manual {
  border-left-color: var(--green);
}

.field-match-card.rejected {
  border-left-color: var(--red);
  opacity: 0.88;
}

.field-match-card.needs-review {
  border-left-color: var(--amber);
}

.field-evidence-column,
.field-match-connector,
.field-match-explanation {
  min-width: 0;
}

.field-evidence-column {
  display: grid;
  gap: 5px;
}

.field-evidence-column strong,
.field-evidence-column small {
  overflow-wrap: anywhere;
}

.field-evidence-column small {
  color: var(--muted);
  font-size: 0.74rem;
}

.field-live-usage {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.field-usage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcf8;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.field-match-connector {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--blue);
  text-align: center;
}

.field-match-connector > span:first-child {
  font-size: 1.1rem;
  font-weight: 900;
}

.field-match-connector strong,
.field-match-connector span:last-child {
  color: var(--muted);
  font-size: 0.74rem;
}

.field-match-explanation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--soft-line);
}

.field-match-explanation h4 {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-match-explanation ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.field-match-warnings ul {
  color: var(--amber);
}

.field-match-notices ul {
  color: var(--blue);
}

.field-match-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.manual-field-match-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
}

.field-unmatched-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
}

.transformations-content,
.transformation-rule-list,
.dry-run-records,
.runtime-content,
.runtime-route-list,
.runtime-run-list {
  display: grid;
  gap: 8px;
}

.transformation-form,
.dry-run-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
}

.runtime-route-card,
.runtime-run-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.runtime-route-card.active {
  border-left: 3px solid var(--green);
}

.runtime-route-card.needs-review,
.runtime-route-card.paused {
  border-left: 3px solid var(--amber);
}

.runtime-route-header,
.runtime-route-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.runtime-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.runtime-route-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 6px;
  margin: 0;
}

.runtime-route-meta div {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel);
}

.runtime-route-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-route-meta dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 800;
}

.runtime-route-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(180px, 1.2fr) minmax(100px, 0.65fr);
  gap: 8px;
  align-items: end;
}

.runtime-run-history {
  display: grid;
  gap: 8px;
}

.runtime-run-history h3,
.runtime-run-row p {
  margin: 0;
}

.runtime-run-row p {
  color: var(--muted);
  font-size: 0.8rem;
}

.transformation-dynamic-fields,
.transformation-config-fields {
  display: contents;
}

.transformation-rule-card,
.dry-run-record {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
}

.transformation-rule-card.disabled {
  border-left-color: var(--muted);
  opacity: 0.82;
}

.transformation-rule-card.needs-review,
.dry-run-record.warning {
  border-left-color: var(--amber);
}

.dry-run-record.error {
  border-left-color: var(--red);
}

.transformation-rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  align-items: center;
}

.checkbox-group label {
  font-size: 0.8rem;
  font-weight: 800;
}

.dry-run-preview {
  display: grid;
  gap: 10px;
}

.dry-run-result {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.dry-run-result h3,
.dry-run-object h4,
.dry-run-transform h4 {
  margin: 0;
}

.dry-run-result h3 {
  color: var(--green);
  font-size: 0.9rem;
}

.dry-run-record-layout {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.5fr) minmax(180px, 1fr);
  gap: 8px;
}

.dry-run-object,
.dry-run-transform {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.dry-run-object dl {
  display: grid;
  grid-template-columns: minmax(90px, 0.6fr) minmax(110px, 1fr);
  gap: 5px 8px;
  margin: 6px 0 0;
  font-size: 0.78rem;
}

.dry-run-object dt {
  color: var(--muted);
  font-weight: 900;
}

.dry-run-object dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.dry-run-transform ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-matching-summary,
.resource-match-metrics,
.resource-match-cards,
.manual-resource-match-form,
.resource-unmatched-grid {
  display: grid;
  gap: 8px;
}

.resource-match-metrics {
  grid-template-columns: repeat(5, minmax(92px, 1fr));
}

.resource-match-metrics div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcf8;
}

.resource-match-list {
  min-width: 0;
}

.resource-match-group {
  display: grid;
  gap: 8px;
}

.resource-match-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-match-cards {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.resource-match-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--panel-soft);
}

.resource-match-card.accepted,
.resource-match-card.manual {
  border-left-color: var(--green);
}

.resource-match-card.rejected {
  border-left-color: var(--red);
  opacity: 0.88;
}

.resource-match-card.needs-review {
  border-left-color: var(--amber);
}

.resource-match-header,
.resource-match-status,
.resource-match-pair,
.resource-match-actions,
.unmatched-resource-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.resource-match-header {
  justify-content: space-between;
}

.resource-match-pair {
  min-width: 0;
  font-size: 0.9rem;
}

.resource-match-pair strong {
  overflow-wrap: anywhere;
}

.resource-match-pair span {
  color: var(--blue);
  font-weight: 900;
}

.resource-status-pill,
.resource-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.resource-status-pill.accepted,
.resource-status-pill.manual,
.resource-confidence.high {
  background: var(--green-soft);
  color: var(--green);
}

.resource-status-pill.suggested,
.resource-confidence.medium {
  background: var(--blue-soft);
  color: var(--blue);
}

.resource-status-pill.rejected,
.resource-confidence.low {
  background: var(--red-soft);
  color: var(--red);
}

.resource-status-pill.needs-review {
  background: var(--amber-soft);
  color: var(--amber);
}

.resource-match-reasons,
.resource-match-warnings,
.resource-match-notices,
.resource-match-evidence ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-match-warnings {
  color: var(--amber);
}

.resource-match-notices {
  color: var(--blue);
}

.resource-match-evidence {
  border-top: 1px solid var(--soft-line);
  padding-top: 6px;
}

.resource-match-evidence summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.manual-resource-match-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  align-items: end;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.resource-direction-shell {
  padding-left: 24px;
}

.compact-direction-control {
  justify-content: flex-start;
}

.resource-unmatched-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.unmatched-resource-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.unmatched-resource-list h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.unmatched-resource-row {
  justify-content: space-between;
  min-height: 30px;
  padding: 4px 0;
  border-top: 1px solid var(--soft-line);
  font-size: 0.8rem;
}

.unmatched-resource-row:first-of-type {
  border-top: 0;
}

.advanced-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.advanced-panel pre {
  max-height: 280px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #182026;
  color: #f8faf7;
  font-size: 0.78rem;
}

.capability-explorer-shell {
  display: grid;
  gap: 12px;
}

.capability-explorer-shell[hidden],
.capability-first-workspace[hidden] {
  display: none;
}

.capability-first-workspace {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.capability-explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 16px;
}

.system-explorer-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.system-explorer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.system-explorer-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.profile-status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.catalog-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.catalog-summary-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: var(--panel);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-summary-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.resource-explorer,
.operation-group,
.evidence-summary,
.profile-capability-summary,
.observed-resource-summary {
  display: grid;
  gap: 8px;
}

.resource-explorer h4,
.operation-group h4,
.evidence-summary h4,
.profile-capability-summary h4,
.observed-resource-summary h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-list,
.operation-groups,
.operation-list {
  display: grid;
  gap: 8px;
}

.resource-card {
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: var(--panel);
}

.resource-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 9px 10px;
}

.resource-card summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.resource-description {
  margin: 0;
  padding: 0 10px 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.field-table {
  display: grid;
  gap: 4px;
  padding: 0 10px 10px;
}

.field-table-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.3fr) minmax(80px, 0.7fr) minmax(96px, 0.7fr) minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 0.78rem;
}

.field-table-row strong {
  overflow-wrap: anywhere;
}

.field-table-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.resource-operation-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.resource-operation-group {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resource-operation-group h5 {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-operation-list {
  display: grid;
  gap: 3px;
}

.resource-operation-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(68px, auto);
  gap: 6px;
  align-items: center;
  min-height: 26px;
  padding: 4px 6px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 0.76rem;
}

.resource-operation-row strong {
  color: var(--blue);
  font-size: 0.72rem;
}

.resource-operation-row small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.compact-list {
  padding: 0 10px 8px;
}

.compact-list h5,
.compact-list p {
  margin: 0;
}

.compact-list h5 {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.compact-list p {
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.operation-groups {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.operation-list {
  gap: 4px;
}

.operation-item {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 0.78rem;
}

.operation-item strong {
  color: var(--blue);
  font-size: 0.75rem;
}

.operation-item small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.evidence-summary ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.object-section {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading,
.mapping-board-header,
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-heading h2,
.mapping-board-header h2 {
  font-size: 1rem;
}

.object-pairs {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.object-pair-button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.object-pair-button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.object-pair-button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.object-pair-button strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.mapping-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(560px, 2.45fr) minmax(190px, 0.78fr);
  gap: 12px;
  align-items: start;
  padding-top: 12px;
}

.system-column,
.mapping-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.system-column {
  padding: 10px;
}

.system-column h2 {
  font-size: 1rem;
}

.system-description {
  min-height: 34px;
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.field-list {
  display: grid;
  gap: 5px;
}

.field-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcf8;
}

.field-label {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 700;
}

.field-type {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.mapping-board {
  padding: 10px;
  box-shadow: var(--shadow);
}

.mapping-column-labels {
  display: grid;
  grid-template-columns: minmax(122px, 1fr) minmax(170px, 0.9fr) minmax(160px, 1fr) 32px;
  gap: 8px;
  margin-top: 8px;
  padding: 0 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mapping-rows {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(122px, 1fr) minmax(170px, 0.9fr) minmax(160px, 1fr) 32px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.mapping-row.is-disabled {
  background: #faf7f7;
}

.source-field,
.target-field-shell {
  min-width: 0;
}

.source-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-field-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 900;
}

.status-badge.confirmed {
  background: var(--green-soft);
  color: var(--green);
}

.status-badge.attention {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.unknown {
  background: var(--red-soft);
  color: var(--red);
}

.connector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px;
}

.control-with-help {
  position: relative;
}

.direction-shell {
  display: inline-flex;
  min-width: 0;
  padding-left: 24px;
}

.connector-line {
  height: 1px;
  background: var(--line);
}

.direction-control {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  gap: 3px;
  justify-content: center;
}

.direction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.direction-button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.target-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.target-select {
  min-height: 32px;
}

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8faf7;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.control-help-anchor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.target-field-shell {
  display: block;
  padding: 2px 0 0 24px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgb(24 32 38 / 28%);
}

.detail-panel[hidden] {
  display: none;
}

.detail-card {
  width: min(380px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 14px;
  background: var(--panel);
  box-shadow: -8px 0 18px rgb(24 32 38 / 10%);
}

.detail-content {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-summary,
.future-settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf8;
}

.detail-summary dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.detail-summary div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
}

.detail-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-summary dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.future-settings h3 {
  margin: 0 0 7px;
  font-size: 0.92rem;
}

.future-settings ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.35;
}

.future-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 3px 0 3px 24px;
  border-top: 1px solid var(--soft-line);
}

.future-setting-row:first-child {
  border-top: 0;
}

.help-popover {
  position: fixed;
  inset: auto 14px 14px auto;
  z-index: 30;
  width: min(360px, calc(100vw - 28px));
}

.help-popover[hidden] {
  display: none;
}

.help-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--soft-line);
}

.help-header h2 {
  margin: 0;
  font-size: 1rem;
}

.help-close-button {
  width: 28px;
  height: 28px;
}

.help-content {
  display: grid;
  gap: 8px;
  max-height: min(430px, calc(100vh - 120px));
  overflow-y: auto;
  padding: 10px;
  font-size: 0.86rem;
}

.help-content h3 {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.help-content p,
.help-content dl {
  margin: 0;
}

.help-summary {
  color: var(--ink);
  font-weight: 800;
}

.help-options dl {
  display: grid;
  gap: 4px 8px;
  grid-template-columns: auto 1fr;
}

.help-options dt {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.help-options dd {
  margin: 0;
  color: var(--muted);
}

.help-steps ol {
  margin: 0;
  padding-left: 20px;
}

.help-steps li + li {
  margin-top: 4px;
}

.help-official-instructions a {
  color: var(--blue);
  font-weight: 800;
}

.help-safety {
  padding: 8px;
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
}

.help-safety h3 {
  color: var(--red);
}

@media (max-width: 1120px) {
  .connection-search-grid,
  .connection-instance-grid,
  .capability-explorer-grid,
  .resource-match-cards,
  .manual-resource-match-form,
  .resource-unmatched-grid,
  .field-match-card,
  .manual-field-match-form,
  .field-unmatched-grid,
  .transformation-form,
  .dry-run-form,
  .runtime-route-form,
  .runtime-route-meta,
  .dry-run-record-layout {
    grid-template-columns: 1fr;
  }

  .object-pairs {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .mapping-layout {
    grid-template-columns: 1fr;
  }

  .system-column {
    display: none;
  }

  .mapping-row {
    grid-template-columns: minmax(120px, 1fr) minmax(170px, 0.9fr) minmax(160px, 1fr) 32px;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 12px 12px 28px;
  }

  .topbar,
  .section-heading,
  .mapping-board-header {
    display: grid;
    justify-items: start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .object-pairs {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .connection-search-grid,
  .connection-instance-grid,
  .draft-fields,
  .operation-groups,
  .catalog-summary-grid,
  .resource-operation-groups,
  .resource-match-metrics,
  .field-match-explanation,
  .dry-run-object dl {
    grid-template-columns: 1fr;
  }

  .field-table-row,
  .operation-item,
  .resource-operation-row,
  .profile-field-row {
    grid-template-columns: 1fr;
  }

  .simple-account-heading,
  .known-profile-result,
  .proposal-header {
    display: grid;
    justify-items: start;
  }

  .simple-account-card .form-actions {
    display: grid;
    width: 100%;
  }

  .simple-account-card .form-actions button {
    width: 100%;
    min-height: 42px;
  }

  .connection-pair-summary {
    grid-template-columns: 1fr;
  }

  .pair-connector {
    justify-self: start;
  }

  .integration-row {
    display: grid;
  }

  .mapping-board {
    padding: 10px;
  }

  .mapping-column-labels {
    display: none;
  }

  .mapping-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .connector {
    grid-template-columns: 1fr;
  }

  .connector-line {
    display: none;
  }

  .direction-control {
    justify-content: start;
  }

  .direction-shell {
    justify-content: start;
  }

  .icon-button {
    justify-self: start;
  }

  .detail-actions {
    width: 100%;
    justify-content: space-between;
  }

  .detail-summary div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .help-popover {
    inset: auto 10px 10px 10px;
    width: auto;
  }
}
