.table-list-shell {
  display: grid;
  gap: 10px;
}

.db-table-search {
  display: grid;
  gap: 6px;
  max-width: 360px;
}

.db-table-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.db-table-search input {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
}

.table-list {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.table-list-head,
.table-list-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) 100px minmax(180px, 1.2fr) 180px 110px;
  align-items: center;
  gap: 12px;
  min-width: 980px;
}

.table-list-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--faint);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 850;
}

.table-list-head button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.table-list-head button:hover {
  color: var(--blue);
}

.table-list-row {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0 14px;
  color: var(--text);
  text-align: left;
}

.table-list-row:last-child {
  border-bottom: 0;
}

.table-list-row:hover {
  background: #f8fbff;
}

.table-list-row strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-list-row em {
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-list-row span {
  justify-self: start;
  border-radius: 999px;
  background: #e7edf5;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.metadata-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  background: #e7edf5;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.metadata-type-badge.metadata-type-custom {
  background: #dcfce7;
  color: #047857;
}

.table-list-row .metadata-type-badge.metadata-type-custom {
  background: #dcfce7;
  color: #047857;
}

.metadata-type-badge.metadata-type-standard {
  background: #dbeafe;
  color: #1d4ed8;
}

.table-list-row .metadata-type-badge.metadata-type-standard {
  background: #dbeafe;
  color: #1d4ed8;
}

.metadata-type-badge.metadata-type-system {
  background: #ede9fe;
  color: #6d28d9;
}

.table-list-row .metadata-type-badge.metadata-type-system {
  background: #ede9fe;
  color: #6d28d9;
}

.table-list-row small {
  overflow: hidden;
  color: #42506a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-list-empty {
  border-bottom: 0;
  color: var(--muted);
  padding: 18px 14px;
  font-size: 13px;
  font-weight: 750;
}

.object-manager {
  display: grid;
  gap: 14px;
}

.object-create-panel,
.object-table-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.object-create-panel > div,
.object-table-panel header,
.object-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.object-create-panel h2,
.object-table-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.object-create-panel span,
.object-table-panel header > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.object-form,
.object-column-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.object-create-dialog {
  width: min(520px, 100%);
  overflow: visible;
}

.object-create-dialog .custom-select-menu {
  top: auto;
  right: auto;
  bottom: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(420px, calc(100vw - 56px));
}

.object-create-dialog .custom-select-menu button {
  white-space: nowrap;
}

.object-create-dialog .custom-select .custom-select-menu button span {
  overflow: visible;
  text-overflow: clip;
}

.object-bulk-dialog {
  width: min(760px, 100%);
}

.object-dialog-form {
  grid-template-columns: 1fr;
}

.object-dialog-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.object-dialog-form .dialog-actions {
  justify-content: flex-end;
}

.object-schema-grid {
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) 140px 90px 90px;
}

.object-column-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.object-column-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.object-column-table th,
.object-column-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.object-column-table th {
  background: #f8fafc;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.object-column-table th button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.object-column-search {
  margin: 10px 12px 0;
}

.object-field-error {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.object-dialog-form input[aria-invalid="true"] {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.object-column-table td {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.object-column-table tbody tr:last-child td {
  border-bottom: 0;
}

.object-column-table code {
  border-radius: 6px;
  background: #eef4ff;
  color: var(--blue);
  padding: 3px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.object-column-protected {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--faint);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 850;
}

.object-record-list {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.object-record-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.object-record-list h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.object-record-list > header > span {
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.object-record-list-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.object-record-list-actions label {
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.object-record-list-actions label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.object-record-list-actions > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.object-record-table-wrap {
  max-width: 100%;
}

.object-record-table {
  min-width: 760px;
}

.object-record-table td {
  white-space: nowrap;
}

.object-record-name-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.object-record-name-link:hover,
.object-record-name-link:focus-visible {
  text-decoration: underline;
}

.object-record-detail {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.object-record-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.object-record-detail > header h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.object-record-detail > header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-record-detail > header > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.object-record-layout {
  display: grid;
  grid-template-columns: repeat(var(--object-layout-columns, 2), minmax(180px, 1fr));
  gap: 10px;
}

.object-record-layout > label,
.object-record-layout-read-field {
  min-width: 0;
}

.object-record-layout-section {
  grid-column: 1 / -1;
}

.object-record-layout-section {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.object-record-layout-section > header {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.object-record-layout-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.object-record-layout-section > summary::-webkit-details-marker {
  display: none;
}

.object-record-layout-section > summary::before {
  content: "›";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.16s ease;
}

.object-record-layout-section[open] > summary::before {
  transform: rotate(90deg);
}

.object-record-layout-section > summary span:first-child {
  flex: 1;
  min-width: 0;
}

.object-record-layout-section > summary span:last-child {
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.object-record-layout-section > div {
  display: grid;
  grid-template-columns: repeat(var(--object-section-columns, 2), minmax(160px, 1fr));
  gap: 10px;
}

.object-record-layout-space {
  min-height: 22px;
}

.object-record-layout-read-field {
  display: grid;
  gap: 6px;
  min-height: 58px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.object-record-layout-read-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.object-record-layout-read-field strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.object-record-layout-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-record-dialog textarea {
  height: 72px;
  min-height: 72px;
  resize: none;
}

.object-column-form {
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) 130px 110px auto;
}

.object-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.object-dialog-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.object-bulk-layout {
  display: grid;
  gap: 14px;
}

.object-bulk-layout label {
  display: grid;
  gap: 6px;
}

.object-bulk-layout label span,
.object-bulk-preview > div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-bulk-preview {
  display: grid;
  gap: 8px;
}

.object-bulk-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.object-bulk-preview strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.object-bulk-input-sheet {
  display: grid;
  grid-template-columns: 44px repeat(4, minmax(128px, 1fr));
  grid-auto-rows: 34px;
  max-height: 282px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: auto;
}

.object-bulk-sheet-corner,
.object-bulk-sheet-column,
.object-bulk-line-number,
.object-bulk-sheet-input {
  min-height: 34px;
  border-right: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.object-bulk-sheet-corner,
.object-bulk-sheet-column,
.object-bulk-line-number {
  position: sticky;
  z-index: 1;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 900;
}

.object-bulk-sheet-corner {
  position: sticky;
  top: 0;
  left: 0;
  grid-column: 1;
  grid-row: 1;
  z-index: 3;
}

.object-bulk-sheet-column {
  top: 0;
  z-index: 2;
  text-align: center;
}

.object-bulk-line-number {
  left: 0;
  text-align: center;
}

.object-bulk-sheet-input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  outline: none;
}

.object-bulk-sheet-input:focus {
  position: relative;
  z-index: 4;
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.object-bulk-sheet-input.selected {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.5);
}

.object-bulk-cell-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.object-bulk-warning {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
}

.object-form label,
.object-column-form label {
  display: grid;
  gap: 6px;
}

.object-form label span,
.object-column-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-form input,
.object-form textarea,
.object-column-form input,
.object-column-form select {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}

.object-form textarea {
  height: 72px;
  min-height: 72px;
  padding: 10px;
  line-height: 1.55;
  resize: none;
}

.object-form :where(.primary-button, .secondary-button, .ghost-button),
.object-column-form :where(.primary-button, .secondary-button, .ghost-button) {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.object-table-list {
  display: grid;
  gap: 10px;
}

.object-table-list-view .table-list-head,
.object-table-list-view .table-list-row {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 100px 100px 90px;
  min-width: 760px;
}

.compact-object-create {
  padding: 12px 14px;
}

.object-table-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.object-table-title strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.object-table-title code {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.object-table-title > span {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.object-column-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.object-column-list span {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 850;
}

.object-column-list span.system {
  background: #eef3f9;
  color: var(--muted);
}

.object-column-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.object-nullable {
  align-items: center;
  grid-template-columns: 18px auto;
  min-height: 38px;
  padding-top: 20px;
}

.object-nullable input {
  min-height: 18px;
  padding: 0;
}


.object-detail-settings-layout {
  align-items: start;
}

.object-detail-settings-nav button {
  min-height: 62px;
}

.object-detail-card {
  overflow: hidden;
}

.object-detail-card .schema-grid,
.object-detail-card .object-column-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.object-detail-count {
  border-radius: 999px;
  background: #eef4ff;
  color: #496281;
  font-size: 12px;
  font-weight: 950;
  padding: 6px 10px;
  white-space: nowrap;
}

.object-view-setting-card > header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.object-setting-name {
  display: grid;
  gap: 6px;
  max-width: 340px;
}

.object-setting-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-setting-footer-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 4px -2px -2px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px;
  box-shadow: 0 -12px 28px rgba(31, 45, 68, 0.08);
  backdrop-filter: blur(12px);
}

.object-setting-footer-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-setting-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.object-setting-picker section {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.object-setting-picker section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.object-setting-picker section > header strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.object-setting-picker section > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.object-setting-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
}

.object-setting-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  cursor: grab;
}

.object-setting-item:hover,
.object-setting-item:focus-visible {
  border-color: #9fc2ff;
  background: #f6f9ff;
}

.object-setting-item:active {
  cursor: grabbing;
}

.object-setting-item strong {
  font-size: 13px;
  font-weight: 900;
}

.object-setting-item code {
  width: fit-content;
  border-radius: 999px;
  background: #eef4ff;
  color: #2463eb;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 850;
}

.object-setting-item.selected {
  background: #fbfdff;
}

.object-setting-transfer {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 950;
}

.object-setting-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed #c8d6ea;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.object-layout-setting-card {
  gap: 14px;
}

.object-layout-palette,
.object-layout-preview {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.object-layout-palette > header,
.object-layout-preview > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.object-layout-palette > header strong,
.object-layout-preview > header strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.object-layout-palette > header span,
.object-layout-preview > header span,
.object-layout-preview > header div span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.object-layout-preview-heading {
  display: grid;
  gap: 2px;
}

.object-layout-preview-columns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.object-layout-palette-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  max-height: 190px;
  overflow: auto;
  padding: 8px 10px;
}

.layout-column-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  border: 1px solid #c9d8ee;
  border-radius: 8px;
  background: #eef4ff;
  padding: 2px;
}

.layout-column-toggle button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #48617f;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.layout-column-toggle button.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.layout-column-toggle.compact button {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.object-layout-palette-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  min-height: 30px;
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 4px 8px 4px 10px;
  text-align: left;
  cursor: grab;
}

.object-layout-type-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #eef4ff;
  color: #2563eb;
}

.object-layout-type-icon .menu-svg-icon {
  width: 13px;
  height: 13px;
}

.object-layout-palette-item.selected {
  border-color: #9fc2ff;
  background: #eef4ff;
}

.object-layout-palette-item.dragging,
.object-layout-field.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.object-layout-palette-item.disabled {
  cursor: default;
  opacity: 0.68;
}

.object-layout-palette-item:hover,
.object-layout-palette-item:focus-visible {
  border-color: #8fb7ff;
}

.object-layout-palette-item strong {
  overflow: hidden;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-layout-field-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.object-layout-palette-item code,
.object-layout-field code {
  width: fit-content;
  border-radius: 999px;
  background: #eef4ff;
  color: #2463eb;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 850;
}

.object-layout-palette-item > span {
  width: fit-content;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 850;
}

.object-layout-canvas {
  display: grid;
  grid-template-columns: repeat(var(--object-layout-columns, 2), minmax(180px, 1fr));
  gap: 8px;
  min-height: 260px;
  padding: 10px;
  background: #fbfdff;
}

.object-layout-field {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 66px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 34px 9px 10px;
  cursor: grab;
}

.object-layout-field:hover {
  border-color: #8fb7ff;
  box-shadow: 0 12px 24px rgba(42, 96, 180, 0.08);
}

.object-layout-field.highlighted {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.object-layout-field.drop-target {
  border-color: #0ea5e9;
  background: #ecfeff;
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.28);
}

.object-layout-field.drop-target::before,
.object-layout-section-body.drop-target::before,
.object-layout-section-child.drop-target::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -4px;
  z-index: 5;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14), 0 8px 18px rgba(37, 99, 235, 0.24);
  pointer-events: none;
}

.object-layout-section-child.drop-target,
.object-layout-section-body.drop-target {
  border-color: #0ea5e9;
  background: #ecfeff;
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.24);
}

.object-layout-field > div:not(.object-layout-section-body):not(.object-layout-section-column-toggle) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.object-layout-field span {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-layout-section-title-input {
  min-width: 120px;
  max-width: min(280px, 100%);
  height: 28px;
  border: 1px solid #c9d8ee;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.object-layout-section-title-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.object-layout-section-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.object-layout-section-column-toggle {
  position: absolute;
  top: 8px;
  right: 38px;
}

.object-layout-field input:not(.object-layout-section-title-input) {
  width: 100%;
  min-height: 30px;
  border: 1px solid #d6e1f2;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 0 10px;
  font-weight: 750;
}

.object-layout-field.is-section {
  grid-column: 1 / -1;
}

.object-layout-field.is-section {
  min-height: 86px;
  background: #f8fbff;
}

.object-layout-space-line {
  height: 1px;
  background: #cbd5e1;
}

.object-layout-section-body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--object-section-columns, 2), minmax(160px, 1fr));
  gap: 8px;
  min-height: 48px;
  border: 1px dashed #c6d7ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.object-layout-section-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px dashed #d6e1f2;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.object-layout-section-child {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 32px 8px 9px;
  cursor: grab;
}

.object-layout-section-child.highlighted {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.object-layout-section-child.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.object-layout-section-child > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.object-layout-section-child span {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-layout-section-child input {
  width: 100%;
  min-height: 28px;
  border: 1px solid #d6e1f2;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 0 10px;
  font-weight: 750;
}

.object-layout-section-child > button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 900;
}

.object-layout-space-line {
  height: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: transparent;
}

.object-layout-field > button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 900;
}

.object-layout-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #b9cce6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .table-list-head,
  .table-list-row {
    grid-template-columns: 150px 150px 110px 140px 92px;
  }

  .object-form,
  .object-column-form {
    grid-template-columns: 1fr;
  }

  .object-nullable {
    padding-top: 0;
  }
}
