/* Token Mapping viewer chrome + layout */

html.tm-viewer {
  --mini-sidebar-width: 0px !important;
}

html.tm-viewer .nc-mini-sidebar,
html.tm-viewer .nc-mini-sidebar-v2,
html.tm-viewer [data-testid="nc-mini-sidebar-v2"],
html.tm-viewer [data-testid="nc-mini-sidebar-v2-rail"],
html.tm-viewer [data-testid="nc-sidebar-cmd-k-btn"],
html.tm-viewer [data-testid="nc-sidebar-cmd-l-btn"],
html.tm-viewer [data-testid="nc-sidebar-cmd-j-btn"],
html.tm-viewer [data-testid="nc-sidebar-team-settings-btn"],
html.tm-viewer [data-testid="nc-sidebar-integrations-btn"],
html.tm-viewer [data-testid="nc-sidebar-templates-btn"],
html.tm-viewer [data-testid="nc-sidebar-chat-btn"],
html.tm-viewer [data-testid="nc-sidebar-chat-support"],
html.tm-viewer [data-testid="nc-sidebar-product-feed"],
html.tm-viewer [data-testid="nc-sidebar-userinfo"],
html.tm-viewer [data-testid="nc-sidebar-create-base-btn"],
html.tm-viewer [data-testid="nc-home-create-new-btn"],
html.tm-viewer [data-testid="nc-sidebar-add-base-entity"],
html.tm-viewer [data-testid="nc-sidebar-context-menu"],
html.tm-viewer [data-testid="nc-sidebar-table-context-menu"],
html.tm-viewer [data-testid="nc-sidebar-table-create-view-btn"],
html.tm-viewer .nc-create-view-btn,
html.tm-viewer .nc-create-view-btn-icon,
html.tm-viewer .nc-view-create-dropdown,
html.tm-viewer [data-testid="sidebar-view-create-grid"],
html.tm-viewer [data-testid="nc-sidebar-notification-btn"],
html.tm-viewer [data-testid="nc-notification-bell-icon"],
html.tm-viewer [data-testid="share-base-button"],
html.tm-viewer .nc-share-base-button,
html.tm-viewer [data-testid="nc-topbar-extension-btn"],
html.tm-viewer [data-testid="nc-topbar-action-btn"],
html.tm-viewer .nc-sidebar-bottom-section,
html.tm-viewer .nc-sidebar-header.nc-active-project,
html.tm-viewer [data-testid="nc-sidebar-base-overview-btn"],
html.tm-viewer .nc-sidebar-top-button,
html.tm-viewer .nc-project-home-section.pt-1,
html.tm-viewer .nc-treeview-active-base .h-11,
html.tm-viewer .nc-sidebar .ant-input-affix-wrapper-readonly,
html.tm-viewer .ant-tabs-tab:has([data-testid="nc-apis-tab"]),
html.tm-viewer .ant-tabs-tab:has([data-testid="nc-webhooks-tab"]),
html.tm-viewer .ant-tabs-tab:has([data-testid="nc-fields-tab"]),
html.tm-viewer .ant-tabs-tab:has([data-testid="nc-permissions-tab"]),
html.tm-viewer [data-testid="nc-apis-tab"],
html.tm-viewer [data-testid="nc-details-wrapper"] > .nc-details-tab,
html.tm-viewer [data-testid="nc-details-wrapper"] > .nc-details-tab > .ant-tabs-nav,
html.tm-viewer .nc-table-topbar > div.flex.items-center.gap-3,
html.tm-viewer .nc-view-action-menu-btn,
html.tm-viewer .nc-actions-menu-btn,
html.tm-viewer .nc-view-context-btn,
html.tm-viewer .nc-grid-add-new-row,
html.tm-viewer .nc-grid-add-new-cell,
html.tm-viewer .nc-column-add,
html.tm-viewer .nc-grid-add-edit-column,
html.tm-viewer .nc-fields-add-new-field,
html.tm-viewer .nc-dropdown-add-column,
html.tm-viewer .nc-edit-or-add-provider-wrapper,
html.tm-viewer [data-testid="add-or-edit-column"],
html.tm-viewer .nc-column-insert-after,
html.tm-viewer .nc-column-insert-before,
html.tm-viewer .nc-column-delete,
html.tm-viewer .nc-column-edit,
html.tm-viewer .nc-column-duplicate,
html.tm-viewer .nc-column-convert-v2,
html.tm-viewer .nc-column-edit-description,
html.tm-viewer .nc-column-lookup-create,
html.tm-viewer .nc-column-rollup-create,
html.tm-viewer .nc-column-change-display-value-field,
html.tm-viewer .nc-column-set-primary,
html.tm-viewer .nc-column-field-permissions,
html.tm-viewer .nc-multi-column-delete,
html.tm-viewer .nc-add-new-row-btn,
html.tm-viewer .nc-grid-add-new-record,
html.tm-viewer .nc-new-record,
html.tm-viewer .nc-add-record-more-info,
html.tm-viewer [data-testid="nc-pagination-add-record"],
html.tm-viewer [data-testid="nc-grid-add-new-row"],
html.tm-viewer [data-testid="nc-grid-add-new-cell"],
html.tm-viewer .nc-grid-wrapper .absolute.bottom-12,
html.tm-viewer .nc-grid-wrapper .absolute.bottom-12.left-2,
html.tm-viewer [data-testid="nc-child-list-button-link-to"],
html.tm-viewer .nc-list-item-link-unlink-btn,
html.tm-viewer [data-testid="nc-expanded-form-save"],
html.tm-viewer .nc-comments-drawer,
html.tm-viewer [data-testid="nc-expanded-form-sidebar-feed-selector"],
html.tm-viewer .nc-treeview-empty-state,
html.tm-viewer .nc-base-view .ant-tabs-nav,
html.tm-viewer .nc-base-view .ant-tabs-content-holder,
html.tm-viewer .nc-collaborator-table-container,
html.tm-viewer .nc-access-settings-view {
  display: none !important;
}

html.tm-viewer .nc-grid-wrapper canvas {
  cursor: default !important;
}

html.tm-viewer .nc-fields-menu-item {
  cursor: default !important;
}

html.tm-viewer .nc-mini-sidebar,
html.tm-viewer .nc-mini-sidebar-v2 {
  width: 0 !important;
  min-width: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html.tm-viewer [class*="mini-sidebar-width"] {
  width: 100vw !important;
}

html.tm-viewer .nc-tree-item-inner.pl-2,
html.tm-viewer .nc-tree-item-inner.pl-8,
html.tm-viewer .nc-sidebar-node {
  padding-left: 8px !important;
}

html.tm-viewer .nc-treeview-active-base {
  padding-top: 0;
}

html.tm-viewer .tm-brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--color-border-gray-light, rgba(127, 127, 127, 0.18));
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

html.tm-viewer .tm-brand:hover {
  background: rgba(127, 127, 127, 0.08);
}

html.tm-viewer .tm-brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
  display: block;
}

html.tm-viewer .tm-brand-name {
  font: 800 13px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  color: inherit;
}

html.dark .tm-brand,
html[theme="dark"] .tm-brand {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.tm-viewer .nc-treeview-active-base > div:first-child {
  display: contents;
}

html.tm-viewer .nc-project-home-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html.tm-viewer .nc-views-menu,
html.tm-viewer .nc-table-chevron-btn,
html.tm-viewer .nc-table-icon-wrapper .nc-table-chevron-btn,
html.tm-viewer .nc-table-icon-wrapper .nc-button,
html.tm-viewer .nc-sidebar-expand,
html.tm-viewer .nc-sidebar-node-btn,
html.tm-viewer .nc-project-home-section-header .nc-sidebar-source-node-btns,
html.tm-viewer [data-testid="nc-sidebar-theme"],
html.tm-viewer .nc-view-create-dropdown,
html.tm-viewer .nc-create-view-lock-type {
  display: none !important;
}

html.tm-viewer .nc-project-home-section-header {
  pointer-events: none;
  cursor: default !important;
  font-weight: 650;
  color: inherit;
}

html.tm-viewer .nc-project-home-section > .overflow-x-hidden.transition-max-height,
html.tm-viewer .nc-project-home-section .overflow-x-hidden.transition-max-height {
  max-height: none !important;
}

html.tm-viewer .nc-table-icon-wrapper .group-hover\:opacity-0,
html.tm-viewer .nc-sidebar-node:hover .nc-table-icon-wrapper > div,
html.tm-viewer .nc-sidebar-node:hover .nc-table-icon {
  opacity: 1 !important;
}

html.tm-viewer .nc-table-node-wrapper[data-active="true"] .nc-tree-item-inner,
html.tm-viewer .nc-table-node-wrapper.tm-table-selected .nc-tree-item-inner {
  background: rgba(37, 99, 235, 0.12) !important;
}

html.dark .nc-table-node-wrapper[data-active="true"] .nc-tree-item-inner,
html[theme="dark"] .nc-table-node-wrapper[data-active="true"] .nc-tree-item-inner,
html.dark .nc-table-node-wrapper.tm-table-selected .nc-tree-item-inner,
html[theme="dark"] .nc-table-node-wrapper.tm-table-selected .nc-tree-item-inner {
  background: rgba(96, 165, 250, 0.18) !important;
}

html.tm-viewer .nc-table-topbar {
  position: relative;
}

html.tm-viewer .nc-base-view {
  position: relative;
}

html.tm-viewer .nc-table-topbar > div:has(.nc-view-sidebar-tab) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

html.tm-viewer .tm-theme-btn {
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  left: auto !important;
  z-index: 20;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.tm-viewer .nc-table-topbar > .flex.items-center.justify-end {
  padding-right: 40px;
}

html.tm-viewer .tm-theme-btn:hover {
  background: rgba(127, 127, 127, 0.12);
}

html.tm-viewer .tm-docs .tm-theme-btn {
  top: 20px !important;
  right: 16px !important;
  transform: none;
}

html.tm-viewer .tm-theme-btn svg {
  width: 16px;
  height: 16px;
}

html.tm-viewer [data-testid="nc-details-wrapper"] {
  position: relative;
  display: flex;
  flex-direction: column;
}

html.tm-viewer .tm-details-modes {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px 0;
  z-index: 6;
  background: inherit;
}

html.tm-viewer .tm-details-modes button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 600 13px/32px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  opacity: 0.65;
}

html.tm-viewer .tm-details-modes button.is-on {
  background: rgba(127, 127, 127, 0.12);
  opacity: 1;
}

html.tm-viewer .tm-details-modes button[data-tm-mode="map"],
html.tm-viewer [data-tm-mode="map"] {
  display: none !important;
}

html.tm-viewer .nc-fields-menu-item > svg:first-child,
html.tm-viewer .nc-fields-menu-item .cursor-move {
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
}

html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-edit),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-delete),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-duplicate),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-insert-after),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-insert-before),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-convert-v2),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-edit-description),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-lookup-create),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-rollup-create),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-set-primary),
html.tm-viewer .ant-dropdown-menu-item:has(.nc-column-change-display-value-field) {
  display: none !important;
}

html.tm-viewer .tm-hierarchy-inline {
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  background: var(--color-base, #fff);
}

html.tm-viewer .tm-hierarchy-inline.is-on {
  display: flex;
}

html[theme="dark"] .tm-hierarchy-inline,
html.dark .tm-hierarchy-inline {
  background: #171717;
  color: #f3f4f6;
}

html[theme="dark"] .tm-h-row:hover,
html.dark .tm-h-row:hover {
  background: #262626;
}

html[theme="dark"] .tm-h-kids,
html.dark .tm-h-kids {
  border-left-color: #333;
}

html.tm-viewer .tm-hierarchy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  font: 650 14px/1.3 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-hierarchy-hint {
  color: #6b7280;
  font: 400 12px/1.4 ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
}

html.tm-viewer .tm-hierarchy-body {
  flex: 1;
  overflow: auto;
  padding: 10px 16px 32px;
  font: 13px/1.45 ui-sans-serif, system-ui, sans-serif;
  color: #111827;
}

html.tm-viewer .tm-h-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

html.tm-viewer .tm-h-row:hover {
  background: #f3f4f6;
}

html.tm-viewer .tm-h-twist {
  flex: none;
  width: 16px;
  color: #6b7280;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

html.tm-viewer .tm-h-title {
  font-weight: 650;
}

html.tm-viewer .tm-h-meta {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

html.tm-viewer .tm-h-kids {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #e5e7eb;
}

html.tm-viewer .tm-h-empty,
html.tm-viewer .tm-h-status {
  color: #6b7280;
  padding: 6px 8px;
  font-size: 12px;
}

html.tm-viewer .tm-h-more {
  color: #2563eb;
  cursor: pointer;
  padding: 4px 22px;
  font-size: 12px;
}

html.tm-viewer .tm-flow-inline {
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  background: #f3f4f6;
}

html.tm-viewer .tm-flow-inline.is-on,
html.tm-viewer .tm-json-inline.is-on {
  display: flex;
}

html.tm-viewer .tm-json-inline {
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  background: var(--bg-color, #f7f7f7);
}

html.tm-viewer .tm-jc {
  display: flex;
  min-height: 0;
  flex: 1;
  height: 100%;
  --bg-color: #f7f7f7;
  --line-color-1: #ebe8e8;
  --line-color-2: #f2eeee;
  --edge-stroke: #bcbec0;
  --node-fill: #ffffff;
  --node-stroke: #bcbec0;
  --interactive-normal: #4f5660;
  --node-text: #000000;
  --node-key: #761cea;
  --node-value: #535353;
  --node-integer: #fd0079;
  --node-null: #afafaf;
  --node-bool-true: #748700;
  --node-bool-false: #ff0000;
  --node-divider: #e6e6e6;
  font: 12px/24px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--node-text);
}

html.dark .tm-jc,
html[theme="dark"] .tm-jc {
  --bg-color: #141414;
  --line-color-1: #1c1b1b;
  --line-color-2: #191919;
  --edge-stroke: #444444;
  --node-fill: #292929;
  --node-stroke: #424242;
  --interactive-normal: #b9bbbe;
  --node-text: #dce5e7;
  --node-key: #59b8ff;
  --node-value: #dce5e7;
  --node-integer: #e8c479;
  --node-null: #939598;
  --node-bool-true: #00dc7d;
  --node-bool-false: #f85c50;
  --node-divider: #383838;
}

html.tm-viewer .tm-jc-side {
  flex: none;
  width: 228px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--node-fill);
  border-right: 1px solid var(--node-divider);
}

html.tm-viewer .tm-jc-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 6px;
  font: 650 13px/1.2 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-jc-alias {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 11px ui-sans-serif, system-ui, sans-serif;
  color: var(--interactive-normal);
  cursor: pointer;
}

html.tm-viewer .tm-jc-search {
  margin: 0 10px 8px;
  width: auto;
}

html.tm-viewer .tm-jc-files {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 16px;
}

html.tm-viewer .tm-jc-group {
  margin-bottom: 10px;
}

html.tm-viewer .tm-jc-group-title {
  padding: 6px 8px 4px;
  color: var(--interactive-normal);
  font: 650 10px/1.2 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.tm-viewer .tm-jc-file {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font: 500 12px/1.3 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-jc-file:hover {
  background: rgba(118, 28, 234, 0.08);
}

html.tm-viewer .tm-jc-file.is-on {
  background: rgba(118, 28, 234, 0.14);
  color: var(--node-key);
}

html.tm-viewer .tm-jc-canvas {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  background-image:
    linear-gradient(var(--line-color-1) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--line-color-1) 1.5px, transparent 1.5px),
    linear-gradient(var(--line-color-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-color-2) 1px, transparent 1px);
  background-position: -1.5px -1.5px, -1.5px -1.5px, -1px -1px, -1px -1px;
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

html.tm-viewer .tm-jc-stage {
  cursor: grab;
}

html.tm-viewer .tm-json-inline.is-panning .tm-jc-stage {
  cursor: grabbing;
}

html.tm-viewer .tm-jc-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

html.tm-viewer .tm-jc-edges {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

html.tm-viewer .tm-jc-edge {
  stroke: var(--edge-stroke);
  stroke-width: 1.5;
}

html.tm-viewer .tm-jc-edge.is-alias {
  stroke: #3b82f6;
  stroke-dasharray: 5 4;
}

html.tm-viewer .tm-jc-node {
  position: absolute;
  background: var(--node-fill);
  border: 1px solid var(--node-stroke);
  border-radius: 5px;
  overflow: hidden;
  box-sizing: border-box;
}

html.tm-viewer .tm-jc-node.is-on,
html.tm-viewer .tm-jc-node:hover {
  border-color: #3b82f6;
}

html.tm-viewer .tm-jc-node.is-alias {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

html.tm-viewer .tm-jc-row {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--node-divider);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

html.tm-viewer .tm-jc-row:last-child {
  border-bottom: 0;
}

html.tm-viewer .tm-jc-row.is-collapsed {
  font-style: italic;
  opacity: 0.7;
}

html.tm-viewer .tm-jc-key {
  color: var(--node-key);
  flex: none;
}

html.tm-viewer .tm-jc-val {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--node-value);
}

html.tm-viewer .tm-jc-row.is-obj .tm-jc-val {
  color: var(--node-value);
}

html.tm-viewer .tm-jc-row.is-num .tm-jc-val {
  color: var(--node-integer);
}

html.tm-viewer .tm-jc-row.is-null .tm-jc-val {
  color: var(--node-null);
}

html.tm-viewer .tm-jc-row.is-true .tm-jc-val {
  color: var(--node-bool-true);
}

html.tm-viewer .tm-jc-row.is-false .tm-jc-val {
  color: var(--node-bool-false);
}

html.tm-viewer .tm-jc-collapse {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex: none;
  border: 1px solid var(--node-divider);
  border-radius: 3px;
  background: transparent;
  color: var(--interactive-normal);
  font-size: 11px;
  line-height: 12px;
  cursor: pointer;
  opacity: 0.7;
}

html.tm-viewer .tm-jc-collapse:hover {
  opacity: 1;
  background: var(--node-divider);
}

html.tm-viewer .tm-jc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  margin-right: 4px;
  flex: none;
}

html.tm-viewer .tm-jc-zoom {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 5;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

html.tm-viewer .tm-jc-zoom button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-jc-zoom button:hover {
  background: rgba(255, 255, 255, 0.28);
}

html.tm-viewer .tm-erd {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  height: 100%;
  font: 13px/1.35 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-erd-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

html.tm-viewer .tm-erd-bar strong {
  font-size: 13px;
  font-weight: 650;
}

html.tm-viewer .tm-erd-hint-bar {
  color: #6b7280;
  font-size: 12px;
}

html.tm-viewer .tm-erd-bar button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-erd-bar button:hover {
  background: #f8fafc;
}

html.tm-viewer .tm-erd-chip {
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

html.tm-viewer .tm-erd .tm-gv-search {
  margin-left: auto;
}

html.tm-viewer .tm-erd-card {
  position: absolute;
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

html.tm-viewer .tm-erd-card.is-on {
  border-color: #3366ff;
  box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.16);
}

html.tm-viewer .tm-erd-card.is-dim {
  opacity: 0.28;
}

html.tm-viewer .tm-erd-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  border-bottom: 1px solid #e7e9ee;
}

html.tm-viewer .tm-erd-icon {
  flex: none;
  color: #3366ff;
}

html.tm-viewer .tm-erd-head {
  min-width: 0;
  flex: 1;
}

html.tm-viewer .tm-erd-title {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.tm-viewer .tm-erd-hint {
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}

html.tm-viewer .tm-erd-count {
  flex: none;
  color: #9ca3af;
  font-size: 11px;
}

html.tm-viewer .tm-erd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  cursor: pointer;
  color: #6b7280;
}

html.tm-viewer .tm-erd-row:hover {
  background: #f8fafc;
}

html.tm-viewer .tm-erd-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

html.tm-viewer .tm-erd-rel {
  flex: none;
  font-size: 11px;
  color: #9ca3af;
  text-transform: lowercase;
}

html.tm-viewer .tm-erd-edges {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

html.tm-viewer .tm-erd-edge {
  stroke: #898e99;
  stroke-width: 2;
  opacity: 0.9;
}

html.tm-viewer .tm-erd-edge.is-on {
  stroke: #3366ff;
  stroke-width: 2;
  opacity: 1;
}

html.tm-viewer .tm-erd-edge.is-dim {
  opacity: 0.14;
}

html.tm-viewer .tm-erd-end {
  fill: #fff;
  stroke: #898e99;
  stroke-width: 1.5;
}

html.tm-viewer .tm-erd-end.is-on {
  stroke: #3366ff;
}

html.tm-viewer .tm-erd-end.is-dim {
  opacity: 0.14;
}

html.tm-viewer .tm-erd-elabel {
  fill: #6b7280;
  font-size: 11px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-gv {
  display: flex;
  min-height: 0;
  flex: 1;
  font: 13px/1.35 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-gv-side {
  flex: none;
  width: 260px;
  padding: 16px 14px;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  overflow: auto;
}

html.tm-viewer .tm-gv-side-block {
  margin-bottom: 22px;
}

html.tm-viewer .tm-gv-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

html.tm-viewer .tm-gv-select {
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: #6b7280;
}

html.tm-viewer .tm-gv-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
}

html.tm-viewer .tm-gv-toggle i {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
}

html.tm-viewer .tm-gv-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

html.tm-viewer .tm-gv-toggle.is-on i {
  background: #2563eb;
}

html.tm-viewer .tm-gv-toggle.is-on i::after {
  left: 16px;
}

html.tm-viewer .tm-gv-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

html.tm-viewer .tm-gv-check i {
  width: 16px;
  height: 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
}

html.tm-viewer .tm-gv-check.is-on i {
  background: #2563eb;
  border-color: #2563eb;
}

html.tm-viewer .tm-gv-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

html.tm-viewer .tm-gv-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

html.tm-viewer .tm-gv-alpha {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
}

html.tm-viewer .tm-gv-search {
  position: relative;
  margin-left: auto;
  width: min(320px, 40%);
}

html.tm-viewer .tm-gv-search input {
  width: 100%;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

html.tm-viewer .tm-flow-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(#d1d5db 1px, transparent 1px);
  background-size: 16px 16px;
  background-color: #f3f4f6;
}

html.tm-viewer .tm-gv-stage {
  position: absolute;
  inset: 0;
  cursor: grab;
  overflow: hidden;
}

html.tm-viewer .tm-flow-inline.is-panning .tm-gv-stage {
  cursor: grabbing;
}

html.tm-viewer .tm-gv-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

html.tm-viewer .tm-gv-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

html.tm-viewer .tm-gv-edge {
  stroke: #93c5fd;
  stroke-width: 2.25;
  opacity: 0.85;
}

html.tm-viewer .tm-gv-edge-usage {
  stroke: #c4b5fd;
  stroke-dasharray: 6 4;
}

html.tm-viewer .tm-gv-card {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

html.tm-viewer .tm-gv-card header {
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-weight: 650;
  font-size: 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

html.tm-viewer .tm-gv-row {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 12px;
  cursor: pointer;
}

html.tm-viewer .tm-gv-row:hover,
html.tm-viewer .tm-gv-row.is-focus {
  background: #eff6ff;
}

html.tm-viewer .tm-gv-row.is-related {
  background: rgba(37, 99, 235, 0.04);
}

html.tm-viewer .tm-gv-colhead {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

html.tm-viewer .tm-gv-colhead b {
  font-size: 12px;
}

html.tm-viewer .tm-gv-colhead span {
  font-size: 11px;
  color: #6b7280;
}

html.tm-viewer .tm-gv-edge.is-on {
  stroke-width: 2.75;
  opacity: 1;
}

html.tm-viewer .tm-gv-inspect {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

html.tm-viewer .tm-gv-hint,
html.tm-viewer .tm-gv-muted {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
}

html.tm-viewer .tm-gv-picked {
  margin-bottom: 12px;
}

html.tm-viewer .tm-gv-picked-k {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

html.tm-viewer .tm-gv-picked-t {
  font-weight: 650;
  word-break: break-word;
}

html.tm-viewer .tm-gv-picked-v {
  font-size: 12px;
  color: #2563eb;
  margin-top: 4px;
}

html.tm-viewer .tm-gv-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

html.tm-viewer .tm-gv-crumb {
  border: 0;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 3px 7px;
  font: 600 11px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

html.tm-viewer .tm-gv-crumb.is-on {
  background: #dbeafe;
  color: #1d4ed8;
}

html.tm-viewer .tm-gv-crumb-sep {
  color: #9ca3af;
  font-size: 11px;
}

html.tm-viewer .tm-gv-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 5px 0;
  cursor: pointer;
  font: 12px/1.3 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-gv-link:hover {
  color: #2563eb;
}

html.tm-viewer .tm-gv-link-meta {
  color: #9ca3af;
  font-size: 11px;
}

html.tm-viewer .tm-gv-focus-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 42%;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eff6ff;
  font-size: 12px;
}

html.tm-viewer .tm-gv-focus-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 14px;
}

html.tm-viewer .tm-gv-clear {
  height: 28px;
  margin-left: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-gv-leaf {
  font-weight: 600;
  min-width: 42px;
}

html.tm-viewer .tm-gv-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2563eb;
  font-size: 11px;
}

html.tm-viewer .tm-gv-type {
  font-size: 10px;
  color: #9ca3af;
}

html.tm-viewer .tm-gv-row.is-missing .tm-gv-type {
  color: #ef4444;
}

html.tm-viewer .tm-gv-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex: none;
}

html.tm-viewer .tm-gv-dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #93c5fd;
  border: 1px solid #60a5fa;
}

html.tm-viewer .tm-gv-dot-in {
  left: -4px;
}

html.tm-viewer .tm-gv-dot-out {
  right: -4px;
}

html.tm-viewer .tm-gv-zoom {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html.tm-viewer .tm-gv-zoom button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
}

html.tm-viewer .tm-gv-zoom button:hover {
  background: #f3f4f6;
}

html.tm-viewer .tm-flow-modes {
  display: flex;
  gap: 4px;
}

html.tm-viewer .tm-flow-modes button {
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
  opacity: 0.55;
}

html.tm-viewer .tm-flow-modes button.is-on {
  background: #eff6ff;
  color: #2563eb;
  opacity: 1;
}

html.tm-viewer .tm-flow-hits {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 8;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

html.tm-viewer .tm-flow-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

html.tm-viewer .tm-flow-hit:hover {
  background: #f3f4f6;
}

html.tm-viewer .tm-flow-empty {
  padding: 48px 24px;
  color: #6b7280;
  text-align: center;
}

html.tm-viewer .tm-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 48px 24px;
  text-align: center;
}

html.tm-viewer .tm-load-title {
  font-size: 16px;
  font-weight: 650;
  color: #111;
}

html.tm-viewer .tm-load-hint {
  font-size: 13px;
  color: #6b7280;
  max-width: 380px;
  line-height: 1.45;
}

html.tm-viewer .tm-load-bar {
  width: min(360px, 80%);
  height: 8px;
  border-radius: 99px;
  background: #e5e7eb;
  overflow: hidden;
}

html.tm-viewer .tm-load-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #ffcc00;
  transition: width 0.25s ease;
}

html.tm-viewer .tm-load-bar.is-indet i {
  width: 36% !important;
  animation: tm-load-indet 1.1s ease-in-out infinite;
}

@keyframes tm-load-indet {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(380%);
  }
}

html.tm-viewer .tm-load-pct {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

html[theme="dark"] .tm-flow-inline,
html.dark .tm-flow-inline,
html[theme="dark"] .tm-flow-canvas,
html.dark .tm-flow-canvas {
  background-color: #111;
}

html[theme="dark"] .tm-erd-bar,
html.dark .tm-erd-bar,
html[theme="dark"] .tm-erd-card,
html.dark .tm-erd-card,
html[theme="dark"] .tm-gv-zoom,
html.dark .tm-gv-zoom {
  background: #1a1a1a;
  border-color: #333;
  color: #f3f4f6;
}

html[theme="dark"] .tm-erd-title,
html.dark .tm-erd-title,
html[theme="dark"] .tm-load-title,
html.dark .tm-load-title {
  color: #f3f4f6;
}

html[theme="dark"] .tm-load-bar,
html.dark .tm-load-bar {
  background: #333;
}

html[theme="dark"] .tm-erd-row,
html.dark .tm-erd-row,
html[theme="dark"] .tm-erd-elabel,
html.dark .tm-erd-elabel,
html[theme="dark"] .tm-erd-hint-bar,
html.dark .tm-erd-hint-bar {
  color: #9ca3af;
}

html[theme="dark"] .tm-erd-row:hover,
html.dark .tm-erd-row:hover {
  background: #262626;
}

html[theme="dark"] .tm-erd-card header,
html.dark .tm-erd-card header {
  border-color: #333;
}

html[theme="dark"] .tm-erd-end,
html.dark .tm-erd-end {
  fill: #1a1a1a;
}

html[theme="dark"] .tm-erd-bar button,
html.dark .tm-erd-bar button {
  background: #1a1a1a;
  border-color: #333;
  color: #f3f4f6;
}

html[theme="dark"] .tm-gv-side,
html.dark .tm-gv-side,
html[theme="dark"] .tm-gv-top,
html.dark .tm-gv-top,
html[theme="dark"] .tm-gv-card,
html.dark .tm-gv-card,
html[theme="dark"] .tm-gv-zoom,
html.dark .tm-gv-zoom {
  background: #1a1a1a;
  border-color: #333;
  color: #f3f4f6;
}

html[theme="dark"] .tm-gv-inspect,
html.dark .tm-gv-inspect,
html[theme="dark"] .tm-gv-crumb,
html.dark .tm-gv-crumb {
  border-color: #333;
}

html[theme="dark"] .tm-gv-crumb,
html.dark .tm-gv-crumb {
  background: #262626;
  color: #f3f4f6;
}

html[theme="dark"] .tm-gv-focus-chip,
html.dark .tm-gv-focus-chip,
html[theme="dark"] .tm-gv-row.is-focus,
html.dark .tm-gv-row.is-focus {
  background: rgba(96, 165, 250, 0.16);
}

html.tm-viewer .tm-docs {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: auto;
  padding: 28px 40px 64px;
  background: var(--color-base, #fff);
  color: inherit;
}

html.tm-viewer .tm-docs-inner {
  max-width: 860px;
  margin: 0 auto;
  font: 14px/1.55 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-docs h1 {
  margin: 0 40px 8px 0;
  font: 700 28px/1.2 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-docs .tm-docs-lead {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 15px;
}

html.tm-viewer .tm-docs h2 {
  margin: 28px 0 10px;
  font: 650 17px/1.3 ui-sans-serif, system-ui, sans-serif;
}

html.tm-viewer .tm-docs p,
html.tm-viewer .tm-docs li {
  margin: 0 0 8px;
}

html.tm-viewer .tm-docs ol,
html.tm-viewer .tm-docs ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

html.tm-viewer .tm-docs .tm-docs-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 12px 0 20px;
}

html.tm-viewer .tm-docs .tm-docs-step {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
}

html.tm-viewer .tm-docs .tm-docs-step b {
  display: block;
  margin-bottom: 4px;
}

html.tm-viewer .tm-docs .tm-docs-step span {
  color: #6b7280;
  font-size: 12px;
}

html.tm-viewer .tm-docs table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}

html.tm-viewer .tm-docs th,
html.tm-viewer .tm-docs td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 10px 8px 0;
  text-align: left;
  vertical-align: top;
}

html.tm-viewer .tm-docs th {
  color: #6b7280;
  font-weight: 650;
}

html.tm-viewer .tm-docs code {
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(127, 127, 127, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
}

html.tm-viewer .tm-docs .tm-docs-note {
  border-left: 3px solid #2563eb;
  padding: 8px 12px;
  margin: 16px 0;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 8px 8px 0;
}

html[theme="dark"] .tm-docs,
html.dark .tm-docs {
  background: #171717;
  color: #f3f4f6;
}

html[theme="dark"] .tm-docs .tm-docs-lead,
html.dark .tm-docs .tm-docs-lead,
html[theme="dark"] .tm-docs .tm-docs-step span,
html.dark .tm-docs .tm-docs-step span,
html[theme="dark"] .tm-docs th,
html.dark .tm-docs th {
  color: #9ca3af;
}

html[theme="dark"] .tm-docs .tm-docs-step,
html.dark .tm-docs .tm-docs-step {
  background: #1f1f1f;
  border-color: #333;
}

html[theme="dark"] .tm-docs th,
html.dark .tm-docs th,
html[theme="dark"] .tm-docs td,
html.dark .tm-docs td {
  border-bottom-color: #333;
}

html.tm-hosting,
html.tm-hosting body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: #f7f7f7;
  color: #111827;
}

html.tm-hosting.dark,
html.tm-hosting[theme="dark"],
html.tm-hosting.dark body,
html.tm-hosting[theme="dark"] body {
  background: #141414;
  color: #f3f4f6;
}

html.tm-hosting .tm-host-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font: 650 14px/1 ui-sans-serif, system-ui, sans-serif;
}

html.tm-hosting.dark .tm-host-bar,
html.tm-hosting[theme="dark"] .tm-host-bar {
  background: #1a1a1a;
  border-bottom-color: #333;
}

html.tm-hosting .tm-host-bar span {
  font: 400 12px ui-sans-serif, system-ui, sans-serif;
  color: #6b7280;
}

html.tm-hosting .tm-host-bar .tm-theme-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  margin-left: auto;
}

html.tm-hosting .tm-json-inline {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
