.dg-lifecycle {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.dg-lifecycle span {
  position: relative;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.dg-lifecycle span:last-child { border-right: 0; }
.dg-lifecycle span::after { content: "›"; position: absolute; right: 7px; color: #a6afbd; }
.dg-lifecycle span:last-child::after { content: ""; }
.dg-lifecycle b { display: block; margin-bottom: 3px; color: var(--text); font-size: 12px; }
.dg-lifecycle.dg-lifecycle-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.dg-owner-note,
.field-owner-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
  background: #f7f9fc;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.dg-owner-note strong,
.field-owner-note strong { color: var(--text); }

.dg-owner-note div:last-child,
.field-owner-note div:last-child { display: flex; flex-shrink: 0; gap: 8px; }

.dg-panel { display: none; }
.dg-panel.active { display: block; }

.dg-statline {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
}

.dg-statline b { margin-left: 4px; color: var(--text); }
.dg-statline .warn-text { color: #a65b00; }
.dg-statline .bad-text { color: var(--primary); }

.mapping-workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.mapping-workbench-head > div:first-child strong,
.mapping-workbench-head > div:first-child small { display: block; }
.mapping-workbench-head > div:first-child strong { margin-bottom: 4px; font-size: 13px; }
.mapping-workbench-head > div:first-child small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.mapping-workbench-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.mapping-filterbar,
.mapping-workbench-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
}

.mapping-filterbar > div { display: flex; gap: 6px; }
.mapping-filterbar > span,
.mapping-workbench-foot span { color: var(--muted); font-size: 10px; }
.mapping-workbench-foot { margin: 10px 0 0; }
.mapping-workbench-foot .secondary { flex-shrink: 0; }

.mapping-workbench-table { overflow-x: auto; }
.mapping-workbench-table table { min-width: 960px; }
.mapping-workbench-table td { vertical-align: top; }
.mapping-workbench-table strong,
.mapping-workbench-table small { display: block; }
.mapping-workbench-table small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.mapping-empty { padding: 26px; color: var(--muted); text-align: center; }
.mapping-empty strong,
.mapping-empty small { display: block; }
.mapping-empty strong { margin-bottom: 5px; color: var(--text); font-size: 12px; }

.template-structure-table { min-width: 620px; }
.template-structure-table th,
.template-structure-table td { vertical-align: middle; }
.template-structure-table select {
  min-width: 112px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
  color: var(--text);
  font: inherit;
}
.template-structure-table input[type="checkbox"] { accent-color: var(--primary); }

.mapping-template-select {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.mapping-template-select select {
  min-width: 210px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 28px 7px 8px;
  color: var(--text);
  font: inherit;
}

.mapping-field-table .mapping-system-field {
  display: block;
  min-width: 190px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 9px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mapping-field-table .mapping-system-field:hover { border-color: var(--primary); }
.mapping-field-table .mapping-system-field.pending { border-color: #e3a72f; background: #fffaf0; }
.mapping-field-table .mapping-system-field strong,
.mapping-field-table .mapping-system-field small { display: block; }
.mapping-field-table .mapping-system-field small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.template-step-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}

.template-step-head > b {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
}

.template-step-head > div { min-width: 0; flex: 1; }
.template-step-head h3 { margin: 0 0 3px; }
.template-step-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.template-step-head .secondary { margin-left: auto; flex-shrink: 0; }

.template-structure-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px dashed #bdc5d0;
  background: #fafbfc;
  padding: 10px;
}

.template-structure-upload span { color: var(--muted); font-size: 10px; }
.template-field-config { min-width: 760px; }
.template-field-config th,
.template-field-config td { vertical-align: top; }

.template-empty-state {
  display: grid;
  min-height: 110px;
  place-content: center;
  border: 1px dashed #bdc5d0;
  background: #fafbfc;
  color: var(--muted);
  text-align: center;
}

.template-empty-state strong { margin-bottom: 5px; color: var(--text); font-size: 12px; }
.template-empty-state small { font-size: 10px; }
.mapping-create-field { width: 100%; margin-top: 10px; }

.mapping-cascade-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
}

.mapping-cascade-step:first-of-type { margin-top: 0; }
.mapping-cascade-step b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
}
.mapping-cascade-step strong,
.mapping-cascade-step small { display: block; }
.mapping-cascade-step strong { font-size: 11px; }
.mapping-cascade-step small { margin-top: 2px; color: var(--muted); font-size: 9px; }

[data-mapping-domain],
[data-mapping-dataset],
[data-mapping-system] {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  color: var(--text);
  font: inherit;
}

[data-mapping-system] option:disabled { color: #a6adba; }

.dg-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  gap: 12px;
}

.dg-side-list { display: grid; gap: 8px; padding: 12px; }
.dg-side-list article { border: 1px solid var(--line); background: #fff; padding: 10px; }
.dg-side-list strong { display: block; margin-bottom: 4px; font-size: 12px; }
.dg-side-list small { color: var(--muted); line-height: 1.5; }

.dg-status-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dg-status-flow span { border: 1px solid var(--line); background: #fff; padding: 5px 8px; color: var(--muted); font-size: 10px; }
.dg-status-flow i { color: #9aa3b2; font-style: normal; }

.dg-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  background: rgba(20, 27, 39, .38);
}

.dg-drawer-mask.open { display: block; }

.dg-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 131;
  display: flex;
  width: min(660px, 94vw);
  height: 100vh;
  transform: translateX(105%);
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #f7f8fa;
  box-shadow: -12px 0 30px rgba(20, 27, 39, .14);
  transition: transform .18s ease;
}

.dg-drawer.open { transform: translateX(0); }
.dg-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; padding: 16px; }
.dg-drawer-head h2 { margin: 0 0 4px; font-size: 17px; }
.dg-drawer-head p { margin: 0; color: var(--muted); font-size: 11px; }
.dg-drawer-close { border: 1px solid var(--line); background: #fff; width: 30px; height: 30px; cursor: pointer; }
.dg-drawer-body { flex: 1; overflow: auto; padding: 12px; }
.dg-drawer-section { margin-bottom: 10px; border: 1px solid var(--line); background: #fff; padding: 12px; }
.dg-drawer-section h3 { margin: 0 0 10px; font-size: 12px; }
.dg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-form-grid label,
.dg-form-row label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.dg-form-grid input,
.dg-form-grid select,
.dg-form-row input,
.dg-form-row textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--line); background: #fff; padding: 8px; color: var(--text); font: inherit; }
.dg-form-row { margin-top: 10px; }
.dg-form-row textarea { min-height: 74px; resize: vertical; }
.dg-drawer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: #fff; padding: 12px 16px; }
.dg-drawer-foot span { margin-right: auto; color: var(--muted); font-size: 10px; }
.dg-checks { display: grid; gap: 8px; color: var(--text); font-size: 11px; }
.dg-checks label { display: flex; align-items: flex-start; gap: 7px; }
.dg-checks input { margin-top: 2px; accent-color: var(--primary); }

.dg-drawer[data-mode="dataset-manage"] { width: min(760px, 94vw); }
.dataset-manager-section { padding: 14px; }
.dataset-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.dataset-manager-head h3 { margin-bottom: 4px; }
.dataset-manager-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dataset-manager-stats { display: flex; flex-shrink: 0; gap: 6px; }
.dataset-manager-stats span {
  min-width: 58px;
  border: 1px solid var(--line);
  background: #f8f9fb;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.dataset-manager-stats b { display: block; margin-bottom: 2px; color: var(--text); font-size: 13px; }
.dataset-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dataset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  background: #fff;
}
.dataset-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eceff3;
  background: #fafbfc;
  padding: 11px 12px 9px;
}
.dataset-card header > div { min-width: 0; }
.dataset-card header strong { display: block; color: var(--text); font-size: 12px; line-height: 1.4; }
.dataset-card header code {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #64748b;
  font: 9px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dataset-module-tag {
  flex-shrink: 0;
  border: 1px solid #d7e2ef;
  background: #eef4fa;
  padding: 3px 6px;
  color: #315f91;
  font-size: 8px;
  white-space: nowrap;
}
.dataset-module-tag.is-scm { border-color: #d5e8df; background: #eef8f3; color: #39745a; }
.dataset-card-main { padding: 11px 12px; }
.dataset-grain > span,
.dataset-card dt { color: #7a8494; font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.dataset-grain p { margin: 4px 0 3px; color: var(--text); font-size: 10px; font-weight: 600; line-height: 1.45; }
.dataset-grain small { color: var(--muted); font-size: 9px; }
.dataset-card dl { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 8px; margin: 11px 0 0; }
.dataset-card dl > div { min-width: 0; border-top: 1px solid #eceff3; padding-top: 8px; }
.dataset-card dt,
.dataset-card dd { margin: 0; }
.dataset-card dd { margin-top: 4px; }
.dataset-card dd code {
  display: block;
  overflow-wrap: anywhere;
  color: #34435a;
  font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dataset-card footer { display: flex; gap: 14px; border-top: 1px solid #eceff3; background: #fafbfc; padding: 7px 12px; color: var(--muted); font-size: 9px; }
.dataset-card footer b { color: var(--text); font-size: 11px; }
.dataset-lifecycle-section .dg-checks { grid-template-columns: 1fr 1fr; column-gap: 18px; }

@media (max-width: 720px) {
  .dataset-manager-head { flex-direction: column; }
  .dataset-manager-stats { width: 100%; }
  .dataset-manager-stats span { flex: 1; }
  .dataset-card-grid { grid-template-columns: 1fr; }
  .dataset-lifecycle-section .dg-checks { grid-template-columns: 1fr; }
}

.batch-field-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.batch-field-heading h3 { margin-bottom: 4px; }
.batch-field-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.batch-field-heading > span {
  flex-shrink: 0;
  border: 1px solid #d9dee7;
  background: #f7f8fa;
  padding: 4px 7px;
  color: var(--muted);
  font-size: 9px;
}

.batch-field-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.batch-field-columns > div {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fafbfc;
  padding: 7px 8px;
}

.batch-field-columns strong,
.batch-field-columns code { display: block; }
.batch-field-columns strong { margin-bottom: 3px; color: var(--text); font-size: 10px; }
.batch-field-columns code { overflow: hidden; color: #697386; font-size: 9px; text-overflow: ellipsis; }

.batch-field-method {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.batch-field-method + .batch-field-method { margin-top: 8px; }
.batch-field-method.primary-method { border-color: #c9d6e8; background: #f8fafd; }
.batch-method-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.batch-method-head > div { min-width: 0; }
.batch-method-head b {
  display: inline-block;
  margin-right: 6px;
  background: #eaf1fa;
  padding: 3px 5px;
  color: #315f91;
  font-size: 8px;
}
.batch-method-head strong { color: var(--text); font-size: 11px; }
.batch-method-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.batch-method-head input[type="file"] { max-width: 250px; font-size: 9px; }
.batch-field-method textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 126px;
  margin-top: 9px;
  border: 1px solid #cfd6e1;
  background: #fff;
  padding: 10px;
  color: var(--text);
  font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}
.batch-field-method textarea:focus { border-color: #557ca8; outline: 2px solid rgba(85, 124, 168, .12); }

.batch-field-example {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
}
.batch-field-example span { flex-shrink: 0; }
.batch-field-example code { border: 1px solid #e1e5eb; background: #fff; padding: 3px 5px; white-space: nowrap; }
.batch-field-preview { margin-top: 10px; }
.batch-field-preview .notice { margin: 0; }
.batch-field-rules .dg-checks { grid-template-columns: 1fr 1fr; column-gap: 16px; }

.batch-reference-head { margin-bottom: 12px; }
.batch-reference-head h3 { margin-bottom: 4px; }
.batch-reference-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.batch-field-reference h4 { margin: 14px 0 7px; color: var(--text); font-size: 10px; }
.batch-field-reference h4:first-of-type { margin-top: 0; }
.batch-reference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.batch-reference-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fafbfc;
  padding: 8px;
}
.batch-reference-grid strong,
.batch-reference-grid span,
.batch-reference-grid small { display: block; }
.batch-reference-grid strong { color: #315f91; font: 600 9px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.batch-reference-grid span { margin-top: 3px; color: var(--text); font-size: 10px; font-weight: 600; }
.batch-reference-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.batch-definition-guide { border-left: 3px solid #557ca8; background: #f5f8fc; padding: 9px 10px; }
.batch-definition-guide p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.batch-definition-guide p strong { color: var(--text); }
.batch-definition-guide > div { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; }
.batch-definition-guide span { flex-shrink: 0; border: 1px solid #d5deea; background: #fff; padding: 3px 5px; color: #315f91; font-size: 8px; }
.batch-definition-guide code { color: #4f5d70; font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

@media (max-width: 720px) {
  .batch-field-columns { grid-template-columns: 1fr 1fr; }
  .batch-method-head { align-items: flex-start; flex-direction: column; }
  .batch-field-rules .dg-checks { grid-template-columns: 1fr; }
  .batch-reference-grid { grid-template-columns: 1fr; }
}

.source-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.source-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px;
  cursor: pointer;
}

.source-mode-option:has(input:checked) {
  border-color: var(--primary);
  background: #fff7f8;
}

.source-mode-option input { margin-top: 2px; accent-color: var(--primary); }
.source-mode-option strong { display: block; margin-bottom: 3px; font-size: 12px; }
.source-mode-option small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.source-mode-panel { display: none; }
.source-mode-panel.active { display: block; }

.binding-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.binding-section-head h3 { margin-bottom: 3px; }
.binding-section-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.source-binding-guide {
  margin-bottom: 10px;
  border-left: 3px solid #4b77a8;
  background: #f3f7fc;
  padding: 9px 10px;
  color: #3d5f88;
  font-size: 10px;
  line-height: 1.55;
}

.binding-mode-panel { display: none; margin: 10px 0; }
.binding-mode-panel.active { display: block; }
.binding-mode-panel > label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.binding-mode-panel select { box-sizing: border-box; width: 100%; border: 1px solid var(--line); background: #fff; padding: 8px; color: var(--text); font: inherit; }
.binding-profile-summary { margin-top: 10px; }

.credential-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.profile-load-status {
  display: block;
  margin-top: 4px;
  color: #3d5f88;
  font-size: 9px;
  font-weight: 600;
}

.collection-scope {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.collection-scope label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fafbfc;
  padding: 7px 8px;
  color: var(--text);
  font-size: 10px;
}

.collection-scope input { accent-color: var(--primary); }

.profile-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.profile-check-grid span {
  border: 1px solid var(--line);
  background: #fafbfc;
  padding: 8px;
}

.profile-check-grid small,
.profile-check-grid b { display: block; }
.profile-check-grid small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.profile-check-grid b { color: #3d5f88; font-size: 10px; font-weight: 600; line-height: 1.4; }

.sync-config [hidden] { display: none; }

.field-register-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: #f5f6f8;
}

.field-register-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.field-register-tabs button:last-child { border-right: 0; }
.field-register-tabs button.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: inset 0 -2px 0 var(--primary); }
.field-register-panel { display: none; }
.field-register-panel.active { display: block; }

.source-sync-bar,
.field-register-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.source-sync-bar {
  border: 1px dashed #cbd2dc;
  background: #fafbfc;
  padding: 9px 10px;
}

.source-sync-bar strong,
.source-sync-bar small { display: block; }
.source-sync-bar strong { margin-bottom: 3px; font-size: 11px; }
.source-sync-bar small,
.field-register-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.field-register-head h3 { margin-bottom: 3px; }

.field-source-empty {
  border: 1px dashed #cbd2dc;
  background: #fafbfc;
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.field-source-table { margin-top: 8px; overflow: auto; }
.field-source-table[hidden] { display: none; }
.field-source-table table { min-width: 620px; }
.field-source-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.field-source-table td input[type="text"],
.field-source-table td input:not([type]) { box-sizing: border-box; width: 100%; min-width: 180px; border: 1px solid var(--line); background: #fff; padding: 6px; font: inherit; }
.field-source-table td input[readonly] { background: #f4f5f7; color: var(--muted); }

.source-security-note {
  margin-top: 10px;
  border-left: 3px solid #3b78c4;
  background: #f3f8ff;
  padding: 9px 10px;
  color: #3d5f88;
  font-size: 10px;
  line-height: 1.55;
}

.template-file-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  border: 1px dashed #cbd2dc;
  background: #fafbfc;
  padding: 10px;
}

.template-file-state span { color: var(--muted); font-size: 10px; }
.template-preview { margin-top: 10px; overflow: auto; }
.template-preview table { min-width: 560px; }

.field-life-table small { display: block; margin-top: 2px; color: var(--muted); }
.field-life-table .business-object-cell { max-width: 180px; }

@media (max-width: 1100px) {
  .dg-lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dg-lifecycle span { border-bottom: 1px solid var(--line); }
  .dg-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dg-form-grid,
  .profile-check-grid { grid-template-columns: 1fr; }
  .collection-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-register-tabs { grid-template-columns: 1fr; }
  .field-register-tabs button { border-right: 0; border-bottom: 1px solid var(--line); }
}
