/* [project]/app/globals.css [app-client] (css) */
:root {
  --color-bg: #0b0c10;
  --color-surface: #0f1218;
  --color-muted: #1a1d26;
  --color-card: #11131a;
  --color-text: #e6e6e6;
  --color-text-muted: #9ca3af;
  --color-border: #222533;
  --color-border-strong: #2e3345;
  --color-input-bg: #0f1218;
  --color-input-border: #303545;
  --color-accent: #14b8a6;
  --color-accent-text: #062a27;
  --color-link: #22d3ee;
  --color-link-visited: #a855f7;
  --color-focus: #22d3ee;
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #f43f5e;
  --color-header: #0f1117;
  --color-header-border: #1d202a;
  --layout-header-height: 58px;
  --layout-nav-height: 56px;
  --color-chip: #1f6feb;
  --font-family-base: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-family-heading: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-helper: 12px;
  --line-height-base: 1.6;
  --heading-scale: 1.2;
  --heading-weight: 700;
  --body-weight: 500;
  --letter-spacing: 0em;
  --space-base: 8px;
  --space-form: 12px;
  --space-page: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px #00000040;
  --shadow-md: 0 8px 24px #00000047;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing);
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
}

body > * {
  width: min(1100px, 100%);
  margin: 0 auto;
}

body > .header, body > .flow, body > .public-shell, body > .nav-search-bar {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.dragging-pointer, body.dragging-pointer * {
  -webkit-user-select: none;
  user-select: none;
}

body.dragging-pointer {
  cursor: grabbing;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.card-compact {
  border-radius: 10px;
  padding: 12px;
}

.card-compact-sm {
  border-radius: 8px;
  padding: 10px;
}

.card-flush-top {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-field-group {
  gap: var(--space-form);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
}

.field-row {
  border-radius: var(--radius-sm);
  border: 1px solid #0000;
  gap: 5px;
  padding: 2px 4px;
  display: grid;
}

.field-row > label {
  margin-bottom: 0;
  display: block;
}

.configurable-list-grid {
  grid-template-columns: repeat(var(--configurable-list-columns, 4),minmax(0,1fr));
  gap: 12px;
  min-width: 0;
  display: grid;
}

.configurable-list-grid-item {
  grid-column: span var(--configurable-list-span, 1);
  min-width: 0;
}

.btn {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-accent-text);
  cursor: pointer;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.btn-danger {
  background: var(--color-danger);
  color: var(--color-bg);
}

.btn-danger:hover {
  filter: brightness(.95);
}

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: none;
}

.btn-ghost:hover {
  background: var(--color-muted);
  border-color: var(--color-border-strong);
}

.btn-sm {
  padding: 6px 10px;
  font-size: .875rem;
}

.btn-icon-tooltip {
  position: relative;
  overflow: visible;
}

.btn-icon-tooltip:after {
  content: attr(data-tooltip);
  --tooltip-gap: 8px;
  top: auto;
  left: 50%;
  right: auto;
  bottom: calc(100% + var(--tooltip-gap));
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.1;
  transition: opacity .12s;
  position: absolute;
  transform: translate(-50%);
}

.btn-icon-tooltip:hover:after, .btn-icon-tooltip:focus-visible:after {
  opacity: 1;
  transform: translate(-50%);
}

.btn-icon-tooltip[data-tooltip-side="bottom"]:after {
  top: calc(100% + var(--tooltip-gap));
  bottom: auto;
  transform: translate(-50%);
}

.btn-icon-tooltip[data-tooltip-align="start"]:after {
  left: 0;
  right: auto;
  transform: translate(0);
}

.btn-icon-tooltip[data-tooltip-align="end"]:after {
  left: auto;
  right: 0;
  transform: translate(0);
}

.input, .select, .textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  width: 100%;
  color: var(--color-text);
  padding: 10px;
}

.grid {
  gap: 16px;
  display: grid;
}

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

.header {
  border-bottom: 1px solid var(--color-header-border);
  background: var(--color-header);
  z-index: 10;
  min-height: var(--layout-header-height);
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.site-brand-link {
  color: var(--color-text);
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.site-brand-link:hover {
  color: var(--color-text);
}

.site-brand-logo {
  object-fit: contain;
  width: auto;
  max-width: 200px;
  height: 42px;
  display: block;
}

.site-brand-text {
  white-space: nowrap;
}

.nav-search-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  top: var(--layout-header-height);
  z-index: 9;
  position: sticky;
}

.nav-search-inner {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 16px;
  display: flex;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  touch-action: manipulation;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 600;
  display: inline-flex;
}

.nav-menu-button:hover {
  background: var(--color-muted);
  border-color: var(--color-border-strong);
}

.nav-menu-button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-menu-button-icon {
  width: 16px;
  height: 16px;
}

.nav-menu-button-caret {
  width: 14px;
  height: 14px;
}

.nav-menu-dropdown {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 260px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-sm);
  z-index: 20;
  padding: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  overflow-x: auto;
}

.nav-menu-columns {
  align-items: flex-start;
  gap: 0;
  max-height: 60vh;
  display: flex;
  overflow-y: auto;
}

.nav-menu-column {
  gap: 4px;
  min-width: 240px;
  padding: 8px;
  display: grid;
}

.nav-menu-column + .nav-menu-column {
  border-left: 1px solid var(--color-border);
}

.nav-menu-back {
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  padding: 6px 8px;
}

.nav-menu-back:hover {
  border-color: var(--color-border-strong);
}

.nav-menu-item {
  position: relative;
}

.nav-menu-row {
  border-radius: var(--radius-sm);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  display: flex;
}

.nav-menu-row:hover, .nav-menu-row.is-active {
  background: var(--color-muted);
}

.nav-menu-link {
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  flex: 1;
  align-items: center;
  padding: 0;
  text-decoration: none;
  display: flex;
}

.nav-menu-link.is-disabled {
  color: var(--color-text-muted);
  cursor: default;
}

.nav-menu-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-menu-type-icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
  background-color: currentColor;
  flex-shrink: 0;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.nav-menu-type-icon--menu {
  -webkit-mask-image: url("/icons/menu_items_icon.svg");
  mask-image: url("/icons/menu_items_icon.svg");
}

.nav-menu-type-icon--page {
  -webkit-mask-image: url("/icons/pages_menu_items_icon.svg");
  mask-image: url("/icons/pages_menu_items_icon.svg");
}

.nav-menu-type-icon--form {
  -webkit-mask-image: url("/icons/forms_menu_items_icon.svg");
  mask-image: url("/icons/forms_menu_items_icon.svg");
}

.nav-menu-type-icon--lookup {
  -webkit-mask-image: url("/icons/lookup_menu_items_icon.svg");
  mask-image: url("/icons/lookup_menu_items_icon.svg");
}

.nav-menu-type-icon--external {
  -webkit-mask-image: url("/icons/external_link_icon.svg");
  mask-image: url("/icons/external_link_icon.svg");
}

.nav-menu-type-icon--menu {
  color: #f59e0b;
}

.nav-menu-type-icon--page {
  color: #38bdf8;
}

.nav-menu-type-icon--form {
  color: #a78bfa;
}

.nav-menu-type-icon--lookup {
  color: #fb7185;
}

.nav-menu-type-icon--external {
  color: #34d399;
}

.nav-menu-row:hover .nav-menu-type-icon--menu {
  color: #f59e0b;
}

.nav-menu-row:hover .nav-menu-type-icon--page {
  color: #38bdf8;
}

.nav-menu-row:hover .nav-menu-type-icon--form {
  color: #a78bfa;
}

.nav-menu-row:hover .nav-menu-type-icon--lookup {
  color: #fb7185;
}

.nav-menu-row:hover .nav-menu-type-icon--external {
  color: #34d399;
}

.nav-menu-empty {
  color: var(--color-text-muted);
  padding: 8px;
}

.nav-search {
  --nav-search-height: 40px;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  position: relative;
}

.nav-search-button {
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  height: var(--nav-search-height);
  width: var(--nav-search-height);
  color: var(--color-text);
  cursor: pointer;
  border-right: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.nav-search-button:hover {
  background: var(--color-muted);
  border-color: var(--color-border-strong);
}

.nav-search-button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-search-button-icon {
  width: 18px;
  height: 18px;
}

.nav-search-input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  min-width: 0;
  height: var(--nav-search-height);
  border-left: 0;
  flex: 1;
  padding: 0 10px;
}

.nav-search-input:focus {
  outline: none;
}

.nav-search:focus-within {
  box-shadow: 0 0 0 2px var(--color-focus);
  border-radius: var(--radius-md);
}

.nav-search:focus-within .nav-search-button, .nav-search:focus-within .nav-search-input {
  border-color: var(--color-focus);
}

.nav-search-results {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  z-index: 20;
  gap: 10px;
  padding: 8px;
  display: grid;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
}

.nav-search-section {
  gap: 6px;
  display: grid;
}

.nav-search-label {
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 12px;
}

.nav-search-items {
  gap: 4px;
  display: grid;
}

.nav-search-item {
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 6px 8px;
  text-decoration: none;
}

.nav-search-item:hover {
  background: var(--color-muted);
}

.nav-search-empty, .nav-search-status {
  color: var(--color-text-muted);
  padding: 6px 8px;
}

.page-navigation-menu {
  gap: 8px;
  display: grid;
}

.page-navigation-menu-list {
  gap: 4px;
  display: grid;
}

.page-navigation-menu .nav-menu-row {
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.page-navigation-menu .nav-menu-row:hover {
  background: var(--color-muted);
}

@media (max-width: 900px) {
  .nav-menu-dropdown {
    width: calc(100vw - 32px);
    min-width: 0;
  }

  .nav-menu-column {
    min-width: 0;
  }

  .configurable-list-grid {
    grid-template-columns: 1fr;
  }

  .configurable-list-grid-item {
    grid-column: 1 / -1;
  }
}

.sidebar {
  border-right: 1px solid var(--color-header-border);
  width: 240px;
  top: calc(var(--layout-header-height) + var(--layout-nav-height));
  height: calc(100vh - var(--layout-header-height) - var(--layout-nav-height) - 32px);
  background: var(--color-surface);
  padding: 16px;
  position: sticky;
  overflow: auto;
}

.main {
  padding: 16px;
}

.main.lookup-runtime-host-full {
  width: 100%;
  max-width: none;
  margin: 0;
}

.flow {
  gap: 16px;
  display: flex;
}

.flow .main {
  flex: 1;
  width: 100%;
  margin: 0;
}

.flow .main > * {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.flow .main.lookup-runtime-host-full > * {
  width: 100%;
  max-width: none;
  margin: 0;
}

.public-shell {
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.public-sidebar {
  border-right: 1px solid var(--color-header-border);
  width: 260px;
  top: calc(var(--layout-header-height) + var(--layout-nav-height));
  height: calc(100vh - var(--layout-header-height) - var(--layout-nav-height));
  background: var(--color-surface);
  padding: 16px;
  position: sticky;
  overflow: auto;
}

.public-content {
  flex: 1;
}

.public-content > * {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.public-content > .main.lookup-runtime-host-full {
  width: 100%;
  max-width: none;
  margin: 0;
}

.public-shell.is-embed {
  gap: 0;
}

.public-content.is-embed > * {
  width: 100%;
  max-width: none;
  margin: 0;
}

.external-embed {
  width: 100%;
  margin: 0;
  padding: 0;
}

.external-embed-frame {
  border: 0;
  width: 100%;
  height: calc(100vh - 140px);
}

.external-embed-message {
  padding: 16px;
}

.menu-sidebar {
  gap: 8px;
  display: grid;
}

.menu-sidebar-empty {
  color: var(--color-text-muted);
}

.menu-node {
  gap: 6px;
  display: grid;
}

.menu-node-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.menu-toggle {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.menu-toggle-spacer {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.menu-icon {
  object-fit: contain;
  border-radius: 4px;
  width: 18px;
  height: 18px;
}

.menu-icon-text {
  color: var(--color-text-muted);
  font-size: 13px;
}

.theme-switcher {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.theme-switcher-trigger {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.theme-switcher-trigger:hover .theme-switcher-icon {
  opacity: .8;
}

.theme-switcher-trigger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.theme-switcher-icon {
  background-color: var(--color-accent);
  width: 42px;
  height: 42px;
  display: inline-block;
  -webkit-mask: url("/icons/site_settings_icon.svg") center / 100% no-repeat;
  mask: url("/icons/site_settings_icon.svg") center / 100% no-repeat;
}

.theme-switcher-menu {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
  gap: 4px;
  padding: 8px;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.theme-switcher-item, .theme-switcher-link {
  color: var(--color-text);
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  text-decoration: none;
  display: flex;
}

.theme-switcher-item:hover, .theme-switcher-link:hover {
  background: var(--color-muted);
  border-color: var(--color-border);
}

.theme-switcher-item:disabled {
  opacity: .75;
  cursor: not-allowed;
}

.theme-switcher-item.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 700;
}

.theme-switcher-label {
  color: var(--color-text-muted);
  padding: 6px 8px;
  font-size: 12px;
}

.theme-switcher-submenu-wrap {
  position: relative;
}

.theme-switcher-submenu-trigger {
  justify-content: space-between;
}

.theme-switcher-submenu-caret {
  font-size: 12px;
  line-height: 1;
  transition: transform .12s;
}

.theme-switcher-submenu-trigger.is-open .theme-switcher-submenu-caret {
  transform: rotate(180deg);
}

.theme-switcher-submenu {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: var(--shadow-sm);
  z-index: 22;
  gap: 4px;
  padding: 8px;
  display: grid;
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
}

.menu-link {
  color: var(--color-text);
  font-weight: 600;
}

.menu-link.is-active {
  text-decoration: underline;
}

.menu-link.is-disabled {
  color: var(--color-text-muted);
  cursor: default;
}

.menu-description {
  color: var(--color-text-muted);
  margin-left: 32px;
  font-size: 12px;
}

.menu-assignments {
  gap: 4px;
  margin-left: 32px;
  display: grid;
}

.menu-assignment-link {
  color: var(--color-link);
  font-size: 13px;
}

.menu-children {
  border-left: 1px solid var(--color-border);
  gap: 8px;
  margin-left: 8px;
  padding-left: 8px;
  display: grid;
}

@media (max-width: 900px) {
  .public-shell {
    flex-direction: column;
  }

  .public-sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
}

hr {
  border-color: var(--color-border);
}

table {
  border-collapse: collapse;
  width: 100%;
}

table[data-table-align="center"] {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

table[data-table-align="right"] {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
}

table[data-table-align="justify"] {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

td, th {
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  padding: 8px;
}

.table-builder-grid {
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  display: flex;
}

.table-builder-grid-frame {
  flex: 1;
  min-height: 0;
}

.table-builder-editor.is-full, .lookup-runtime.is-full {
  width: 100%;
  max-width: none;
  margin: 0;
}

.table-builder-editor-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.table-builder-grid table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.table-builder-grid thead th {
  background: var(--color-card);
  z-index: 2;
  position: sticky;
  top: 0;
}

.table-builder-grid tbody tr:nth-child(2n) {
  background: var(--color-muted);
}

.table-builder-grid .input {
  min-width: 140px;
}

.table-builder-header {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.table-builder-docked {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: -16px;
}

.admin-list-shell {
  isolation: isolate;
  overflow: clip;
}

@supports not (overflow: clip) {
  .admin-list-shell {
    overflow: hidden;
  }
}

.admin-list-sticky {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.admin-tabs {
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 0;
  display: flex;
}

.admin-tab {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  padding: 6px 12px;
  font-size: 13px;
}

.admin-tab.active {
  color: var(--color-text);
  border-top-color: var(--color-accent);
  border-left-color: var(--color-accent);
  border-right-color: var(--color-accent);
}

.admin-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.advanced-modal-overlay {
  background: #00000073;
  position: fixed;
  inset: 0;
}

.advanced-modal-dialog {
  gap: 12px;
  display: grid;
  position: fixed;
  left: 50%;
  overflow: auto;
  transform: translateX(-50%);
  box-shadow: 0 20px 50px #00000059;
}

.advanced-modal-dialog--wide {
  width: min(960px, 92vw);
}

.advanced-modal-dialog--narrow {
  width: min(720px, 92vw);
}

.advanced-modal-dialog--main {
  max-height: 88vh;
  top: 6vh;
}

.advanced-modal-dialog--editor {
  max-height: 80vh;
  top: 10vh;
}

.advanced-modal-dialog--transform {
  max-height: 76vh;
  top: 12vh;
}

.input-error {
  border-color: #f87171;
  box-shadow: 0 0 0 1px #f8717199;
}

.table-grid-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.table-grid-toolbar-left, .table-grid-toolbar-right {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.table-grid-toolbar-secondary {
  border-top: 1px solid var(--color-border);
  margin-top: 10px;
  padding-top: 10px;
}

.table-grid-toolbar-secondary .table-grid-toolbar-left {
  flex: 1;
  min-width: 0;
}

.table-grid-search-row {
  flex-wrap: nowrap;
  flex: 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.table-grid-search-control {
  flex: 0 0 400px;
  align-items: stretch;
  min-width: 400px;
  max-width: 400px;
  display: flex;
  position: relative;
}

.table-grid-search-icon-btn {
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  width: 38px;
  color: var(--color-text);
  cursor: pointer;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.table-grid-search-icon-btn:hover {
  background: var(--color-muted);
  border-color: var(--color-border-strong);
}

.table-grid-search-control .table-grid-search-icon-btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: 0;
}

.table-grid-search-input {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  min-width: 0;
  margin: 0;
}

.table-grid-filter-icon-btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 0;
  position: relative;
}

.table-grid-filter-badge {
  background: var(--color-accent);
  min-width: 14px;
  height: 14px;
  color: var(--color-accent-text);
  text-align: center;
  border-radius: 999px;
  padding: 0 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  position: absolute;
  top: 3px;
  right: 3px;
}

.table-grid-search-control:focus-within {
  box-shadow: 0 0 0 2px var(--color-focus);
  border-radius: var(--radius-md);
}

.table-grid-search-control:focus-within .table-grid-search-icon-btn, .table-grid-search-control:focus-within .table-grid-search-input {
  border-color: var(--color-focus);
}

.table-grid-case-toggle {
  flex-direction: column;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 3px;
  display: flex;
}

.table-grid-case-label {
  color: var(--color-text-muted);
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
}

.table-builder-editor [title] {
  position: relative;
}

.table-builder-editor [title]:after {
  content: attr(title);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  z-index: 180;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.1;
  transition: opacity .12s, transform .12s;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.table-builder-editor [title]:hover:after, .table-builder-editor [title]:focus-visible:after {
  opacity: 1;
  transform: translateX(-50%)translateY(0);
}

.table-grid-divider {
  background: var(--color-border);
  width: 1px;
  height: 24px;
}

.table-save-btn {
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  padding: 2px 4px;
  display: flex;
}

.table-save-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.table-save-btn-icon {
  object-fit: contain;
  width: 32px;
  height: 32px;
  margin-bottom: 1px;
}

.table-save-btn-label {
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
}

.table-action-btn {
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  padding: 2px 4px;
  display: flex;
}

.table-action-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.table-action-icon {
  object-fit: contain;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.table-action-label {
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
}

.table-action-sub {
  color: #64748b;
  margin-top: 2px;
  font-size: 10px;
}

.table-undo-stack {
  flex-direction: column;
  gap: 4px;
  height: 64px;
  display: flex;
}

.table-undo-btn {
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
  padding: 0;
  display: flex;
}

.table-undo-btn:hover {
  background: #f1f5f9;
}

.table-undo-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.table-grid-meta {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  display: flex;
}

.table-grid-meta-line {
  color: #9ca3af;
  font-size: 12px;
}

.grid-drag-handle {
  cursor: grab;
  color: #9ca3af;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1;
}

.grid-drag-handle:hover {
  border-color: var(--color-border);
  color: var(--color-text);
}

.grid-header-button {
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  display: flex;
}

.grid-header-button:hover {
  color: var(--color-text);
}

.grid-filter-indicator {
  color: var(--color-accent);
  font-size: 12px;
}

.table-grid-filter-row {
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.table-grid-progress {
  background: linear-gradient(90deg, #38bdf8 0%, #4ade80 50%, #38bdf8 100%) 0 0 / 200% 100%;
  border-radius: 999px;
  height: 6px;
  animation: 1.4s linear infinite tableGridProgress;
}

@keyframes tableGridProgress {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.grid-add-row-btn {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  width: 26px;
  height: 26px;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  place-self: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  display: flex;
}

.grid-add-row-cell {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.grid-add-row-btn:hover {
  background: var(--color-muted);
  border-color: var(--color-border-strong);
}

.grid-add-row-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.rdg-theme {
  --rdg-color: var(--color-text);
  --rdg-border-color: var(--color-border);
  --rdg-summary-border-color: var(--color-border);
  --rdg-background-color: var(--color-card);
  --rdg-header-background-color: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
  --rdg-header-draggable-background-color: color-mix(in srgb, var(--color-accent) 22%, var(--color-surface));
  --rdg-row-hover-background-color: var(--color-muted);
  --rdg-row-selected-background-color: color-mix(in srgb, var(--color-accent) 24%, var(--color-card));
  --rdg-row-selected-hover-background-color: color-mix(in srgb, var(--color-accent) 36%, var(--color-card));
  --rdg-selection-color: var(--color-accent);
  --rdg-cell-frozen-box-shadow: 3px 0 0 #0f172a66;
  accent-color: var(--color-accent);
}

:root[data-theme="light"] .rdg-theme {
  --rdg-color-scheme: light;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --rdg-header-background-color: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  --rdg-header-draggable-background-color: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface));
  --rdg-cell-frozen-box-shadow: 3px 0 0 #0f172a61;
}

:root[data-theme="dark"] .rdg-theme {
  --rdg-color-scheme: dark;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --rdg-header-background-color: color-mix(in srgb, var(--color-accent) 20%, var(--color-surface));
  --rdg-header-draggable-background-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-surface));
  --rdg-cell-frozen-box-shadow: 3px 0 0 #020617d1;
}

.rdg-theme .rdg-header-row {
  font-weight: 600;
}

.rdg-theme [role="columnheader"].grid-header-drop-before, .rdg-theme [role="columnheader"].grid-header-drop-after {
  position: relative;
}

.rdg-theme [role="columnheader"].grid-header-drop-before {
  box-shadow: inset 2px 0 #22d3ee, 0 0 10px #22d3ee88;
}

.rdg-theme [role="columnheader"].grid-header-drop-after {
  box-shadow: inset -2px 0 #22d3ee, 0 0 10px #22d3ee88;
  border-inline-end-color: #22d3ee !important;
}

.rdg-theme [role="columnheader"].grid-header-drop-before:before, .rdg-theme [role="columnheader"].grid-header-drop-after:after {
  content: "";
  pointer-events: none;
  z-index: 5;
  background: #22d3ee;
  width: 2px;
  position: absolute;
  top: -1px;
  bottom: -1px;
}

.rdg-theme [role="columnheader"].grid-header-drop-before:before {
  left: 0;
}

.rdg-theme [role="columnheader"].grid-header-drop-after:after {
  right: 0;
}

.rdg-cell-error {
  box-shadow: inset 0 0 0 1px #f87171cc;
}

.badge {
  background: var(--color-chip);
  color: var(--color-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

[contenteditable][data-placeholder]:empty:before {
  content: attr(data-placeholder);
  color: var(--color-text-muted);
}

.tiptap:focus, .tiptap:focus-visible {
  outline: none;
}

.print-button {
  margin-top: 4px;
}

@media print {
  .header, .nav-search-bar, .sidebar, .public-sidebar, .print-button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  body > * {
    width: 100%;
    margin: 0;
  }

  .card {
    box-shadow: none;
    border: 0;
  }
}

:where(.page-grid, .tiptap) ol {
  list-style-type: decimal;
}

:where(.page-grid, .tiptap) ol > li > ol {
  list-style-type: lower-alpha;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol {
  list-style-type: lower-roman;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol {
  list-style-type: decimal;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: lower-alpha;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: lower-roman;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: decimal;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: lower-alpha;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: lower-roman;
}

:where(.element-settings-panel *) {
  min-width: 0;
}

:where(.element-settings-panel label) {
  color: var(--color-text-muted);
  font-size: calc(var(--font-size-helper) + 1px);
  font-family: var(--font-family-base);
  font-weight: 500;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: decimal;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: lower-alpha;
}

:where(.page-grid, .tiptap) ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
  list-style-type: lower-roman;
}

.sitemap-page {
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 160px);
  min-height: calc(100vh - 160px);
}

.sitemap-shell {
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
  display: flex;
}

.sitemap-canvas-panel {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  height: 100%;
  min-height: 0;
  display: flex;
}

.sitemap-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.sitemap-toolbar-left, .sitemap-toolbar-right {
  align-items: center;
  gap: 8px;
  display: flex;
}

.sitemap-modal-overlay {
  z-index: 140;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #080c14b8;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 4vw, 48px) 16px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.sitemap-modal-dialog {
  gap: 16px;
  width: min(980px, 100%);
  display: grid;
  position: relative;
}

.sitemap-modal-close {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  width: 38px;
  height: 38px;
  color: var(--color-text);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  position: absolute;
  top: 12px;
  right: 12px;
}

.sitemap-modal-close:hover {
  border-color: var(--color-border-strong);
  background: var(--color-muted);
}

.sitemap-canvas-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.sitemap-canvas {
  background-color: var(--color-surface);
  touch-action: none;
  cursor: grab;
  background-image: radial-gradient(circle at 20% 20%, #22d3ee1f, #0000 45%), radial-gradient(circle at 80% 0, #14b8a61f, #0000 40%), linear-gradient(#ffffff0a 1px, #0000 1px), linear-gradient(90deg, #ffffff0a 1px, #0000 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.sitemap-canvas.is-panning {
  cursor: grabbing;
}

.sitemap-transform {
  transform-origin: 0 0;
  min-width: 100%;
  min-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.sitemap-tree {
  --sitemap-card-width: 240px;
  --sitemap-card-border: 1px;
  --sitemap-node-padding: 16px;
  --sitemap-connector-length: 32px;
  min-width: 100%;
  min-height: 100%;
  padding: 80px 80px 120px;
  position: relative;
}

.sitemap-root-wrap {
  justify-content: center;
  display: flex;
}

.sitemap-root {
  --sitemap-branch-gap: 28px;
  gap: var(--sitemap-branch-gap);
  padding-top: var(--sitemap-connector-length);
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  display: flex;
  position: relative;
}

.sitemap-root.has-multiple > .sitemap-node:after {
  content: "";
  top: calc(-1 * var(--sitemap-connector-length));
  left: calc(-1 * (var(--sitemap-branch-gap) / 2));
  width: calc(100% + var(--sitemap-branch-gap));
  background: var(--color-border-strong);
  border-radius: 999px;
  height: 3px;
  position: absolute;
}

.sitemap-root.has-multiple > .sitemap-node:first-child:after {
  width: calc(50% + (var(--sitemap-branch-gap) / 2));
  left: 50%;
}

.sitemap-root.has-multiple > .sitemap-node:last-child:after {
  left: calc(-1 * (var(--sitemap-branch-gap) / 2));
  width: calc(50% + (var(--sitemap-branch-gap) / 2));
}

.sitemap-home {
  margin-bottom: var(--sitemap-connector-length);
  justify-content: center;
  display: flex;
  position: relative;
}

.sitemap-home.has-children:after {
  content: "";
  left: 50%;
  bottom: calc(-1 * var(--sitemap-connector-length));
  width: 3px;
  height: var(--sitemap-connector-length);
  background: var(--color-border-strong);
  border-radius: 999px;
  position: absolute;
  transform: translateX(-50%);
}

.sitemap-home-card {
  width: 260px;
  max-width: 100%;
}

.sitemap-home-card.is-drop-target {
  box-shadow: 0 0 0 2px var(--color-accent);
  border-color: var(--color-accent);
}

.sitemap-home-card .sitemap-card-section p {
  margin: 0;
}

.sitemap-home-items {
  margin-top: 6px;
}

.sitemap-node {
  padding: 0 var(--sitemap-node-padding);
  flex-direction: column;
  align-items: center;
  display: flex;
  position: relative;
}

.sitemap-node[data-has-parent="true"]:before, .sitemap-node[data-root="true"]:before {
  content: "";
  top: calc(-1 * var(--sitemap-connector-length));
  width: 3px;
  height: var(--sitemap-connector-length);
  background: var(--color-border-strong);
  border-radius: 999px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sitemap-card {
  width: var(--sitemap-card-width);
  background: var(--color-card);
  border: var(--sitemap-card-border) solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  padding: 12px;
  position: relative;
}

.sitemap-node[data-has-children="true"] > .sitemap-card:after {
  content: "";
  left: 50%;
  bottom: calc(-1 * var(--sitemap-connector-length));
  width: 3px;
  height: var(--sitemap-connector-length);
  background: var(--color-border-strong);
  border-radius: 999px;
  position: absolute;
  transform: translateX(-50%);
}

.sitemap-card-header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.sitemap-card-title {
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.sitemap-card-title-text {
  flex: 1;
  min-width: 0;
}

.sitemap-edit-btn {
  background: var(--color-muted);
  color: var(--color-text);
  padding: 6px 10px;
  font-size: 12px;
}

.sitemap-edit-btn:hover {
  background: var(--color-border-strong);
}

.sitemap-card-section {
  gap: 6px;
  margin-top: 10px;
  display: grid;
}

.sitemap-section-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-size: 11px;
}

.sitemap-card-items {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.sitemap-card-item {
  border: 1px solid var(--color-border);
  background: var(--color-muted);
  cursor: grab;
  --item-accent: var(--color-text-muted);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  display: flex;
  position: relative;
}

.sitemap-card-item.is-dragging {
  opacity: .6;
}

.sitemap-card-item.is-static {
  cursor: default;
}

.sitemap-card-item.is-drop-target {
  box-shadow: none;
}

.sitemap-card-item-label {
  min-width: 0;
  color: var(--color-text);
  flex: 1;
}

.sitemap-ellipsis-start {
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  direction: rtl;
  unicode-bidi: plaintext;
  display: block;
  overflow: hidden;
}

.sitemap-tooltip-floating {
  z-index: 80;
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  max-width: min(360px, 100vw - 24px);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  white-space: normal;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  position: fixed;
  transform: translate(-50%);
}

.sitemap-tooltip-floating.is-top {
  transform: translate(-50%, -100%);
}

.sitemap-card-item-icon {
  width: 18px;
  height: 18px;
  color: var(--item-accent);
  background-color: currentColor;
  flex-shrink: 0;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.sitemap-card-item.item-page {
  --item-accent: #38bdf8;
  border-left: 3px solid #38bdf8;
}

.sitemap-card-item.item-form {
  --item-accent: #a78bfa;
  border-left: 3px solid #a78bfa;
}

.sitemap-card-item.item-lookup {
  --item-accent: #fb7185;
  border-left: 3px solid #fb7185;
}

.sitemap-card-item.item-menu {
  --item-accent: #f59e0b;
  border-left: 3px solid #f59e0b;
}

.sitemap-card-item.item-external {
  --item-accent: #34d399;
  border-left: 3px solid #34d399;
}

.sitemap-card-item-icon.icon-page {
  -webkit-mask-image: url("/icons/pages_menu_items_icon.svg");
  mask-image: url("/icons/pages_menu_items_icon.svg");
}

.sitemap-card-item-icon.icon-form {
  -webkit-mask-image: url("/icons/forms_menu_items_icon.svg");
  mask-image: url("/icons/forms_menu_items_icon.svg");
}

.sitemap-card-item-icon.icon-lookup {
  -webkit-mask-image: url("/icons/lookup_menu_items_icon.svg");
  mask-image: url("/icons/lookup_menu_items_icon.svg");
}

.sitemap-card-item-icon.icon-menu {
  -webkit-mask-image: url("/icons/menu_items_icon.svg");
  mask-image: url("/icons/menu_items_icon.svg");
}

.sitemap-card-item-icon.icon-external {
  -webkit-mask-image: url("/icons/external_link_icon.svg");
  mask-image: url("/icons/external_link_icon.svg");
}

.sitemap-muted {
  color: var(--color-text-muted);
  font-size: 13px;
}

.sitemap-error {
  color: #f87171;
  font-size: 13px;
}

.sitemap-confirm-overlay {
  z-index: 180;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #080c14b8;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.sitemap-confirm-dialog {
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  width: min(520px, 100%);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  gap: 10px;
  padding: 20px;
  display: grid;
}

.sitemap-confirm-title {
  margin: 0;
}

.sitemap-confirm-text {
  color: var(--color-text-muted);
  margin: 0;
}

.sitemap-confirm-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  display: flex;
}

.sitemap-confirm-cancel {
  color: var(--color-text);
  border-color: var(--color-border);
  background: none;
}

.sitemap-confirm-cancel:hover {
  background: var(--color-muted);
  border-color: var(--color-border-strong);
}

.sitemap-children {
  --sitemap-branch-gap: 24px;
  gap: var(--sitemap-branch-gap);
  margin-top: var(--sitemap-connector-length);
  padding-top: var(--sitemap-connector-length);
  justify-content: center;
  align-items: flex-start;
  display: flex;
  position: relative;
}

.sitemap-children.has-multiple > .sitemap-node:after {
  content: "";
  top: calc(-1 * var(--sitemap-connector-length));
  left: calc(-1 * (var(--sitemap-branch-gap) / 2));
  width: calc(100% + var(--sitemap-branch-gap));
  background: var(--color-border-strong);
  border-radius: 999px;
  height: 3px;
  position: absolute;
}

.sitemap-children.has-multiple > .sitemap-node:first-child:after {
  width: calc(50% + (var(--sitemap-branch-gap) / 2));
  left: 50%;
}

.sitemap-children.has-multiple > .sitemap-node:last-child:after {
  left: calc(-1 * (var(--sitemap-branch-gap) / 2));
  width: calc(50% + (var(--sitemap-branch-gap) / 2));
}

.sitemap-zoom-controls {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  display: flex;
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.sitemap-zoom-controls .btn {
  padding: 6px 10px;
}

.sitemap-zoom-value {
  color: var(--color-text-muted);
  text-align: center;
  min-width: 48px;
  font-size: 12px;
}

.sitemap-drawer {
  background: var(--color-card);
  border-right: 1px solid var(--color-border);
  z-index: 5;
  --sitemap-list-row-height: 42px;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  min-width: 240px;
  height: 100%;
  padding: 12px;
  transition: width .2s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.sitemap-drawer.is-collapsed {
  align-items: center;
  width: 68px;
  min-width: 68px;
  padding: 10px 6px;
}

.sitemap-drawer.is-collapsed .sitemap-drawer-header, .sitemap-drawer.is-collapsed .sitemap-drawer-content {
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.sitemap-drawer-header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.sitemap-drawer-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.sitemap-drawer-content {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  height: 100%;
  min-height: 0;
  display: flex;
}

.sitemap-drawer-label {
  display: none;
}

.sitemap-drawer.is-collapsed .sitemap-drawer-label {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-muted);
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  display: flex;
}

.sitemap-pin-btn {
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  width: 32px;
  height: 32px;
  padding: 6px;
}

.sitemap-pin-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sitemap-pin-btn.active {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

.sitemap-sidebar-tabs {
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 0;
  display: flex;
}

.sitemap-tab {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  padding: 6px 10px;
  font-size: 13px;
}

.sitemap-tab.active {
  color: var(--color-text);
  border-top-color: var(--color-accent);
  border-left-color: var(--color-accent);
  border-right-color: var(--color-accent);
}

.sitemap-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sitemap-sidebar-list {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  height: 100%;
  min-height: 0;
  display: flex;
}

.sitemap-sidebar-list label {
  color: var(--color-text-muted);
  gap: 6px;
  font-size: 13px;
  display: grid;
}

.sitemap-list-scroll {
  flex: 1;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding-right: 4px;
  display: grid;
  overflow: hidden auto;
}

.sitemap-group {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 12px;
  display: grid;
  overflow: hidden;
}

.sitemap-group-header {
  background: var(--color-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  height: var(--sitemap-list-row-height);
  min-height: var(--sitemap-list-row-height);
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 12px;
  display: flex;
}

.sitemap-group-title {
  font-weight: 600;
}

.sitemap-group-count {
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 11px;
}

.sitemap-group-chevron {
  border-bottom: 2px solid;
  border-right: 2px solid;
  width: 8px;
  height: 8px;
  transition: transform .2s;
  transform: rotate(45deg);
}

.sitemap-group.is-open .sitemap-group-chevron {
  transform: rotate(-135deg);
}

.sitemap-group-body {
  gap: 8px;
  padding: 10px;
  display: grid;
}

.sitemap-draggable {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: grab;
  min-width: 0;
  height: var(--sitemap-list-row-height);
  min-height: var(--sitemap-list-row-height);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  display: flex;
}

.sitemap-draggable:active {
  cursor: grabbing;
}

.sitemap-draggable-text {
  flex: 1;
  min-width: 0;
}

.sitemap-draggable-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  display: flex;
}

.sitemap-jump-btn {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  width: 26px;
  height: 26px;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: border-color .18s, color .18s, background .18s, transform .18s;
  display: inline-flex;
}

.sitemap-jump-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sitemap-jump-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-card));
  transform: translateX(1px);
}

.sitemap-jump-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sitemap-card.is-jump-highlight {
  box-shadow: 0 0 0 2px var(--color-accent), var(--shadow-sm);
}

.sitemap-card-item.is-jump-highlight {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 70%, transparent);
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-muted));
}

.sitemap-editor-layout {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  display: grid;
}

body.sitemap-fullscreen .flow .main > .sitemap-page {
  width: 100%;
  max-width: none;
}

body.sitemap-fullscreen .sitemap-page {
  height: calc(100vh - 140px);
  min-height: calc(100vh - 140px);
}

@media (max-width: 1100px) {
  .sitemap-page {
    height: calc(100vh - 140px);
    min-height: calc(100vh - 140px);
  }

  .sitemap-editor-layout {
    grid-template-columns: 1fr;
  }
}

/* [project]/app/paragraph-editor.css [app-client] (css) */
* {
  box-sizing: border-box;
}

input.color-picker-rgb-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.color-picker-rgb-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.color-picker-rgb-input[type="number"] {
  -moz-appearance: textfield;
}

.ProseMirror .tableWrapper {
  overflow-x: auto;
}

.ProseMirror table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  overflow: hidden;
}

.ProseMirror td, .ProseMirror th {
  vertical-align: top;
  box-sizing: border-box;
  position: relative;
}

.ProseMirror td:not([data-colwidth]):not(.column-resize-dragging), .ProseMirror th:not([data-colwidth]):not(.column-resize-dragging) {
  min-width: var(--default-cell-min-width);
}

.ProseMirror .column-resize-handle {
  z-index: 20;
  background-color: var(--color-focus);
  pointer-events: none;
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2px;
}

.ProseMirror.resize-cursor {
  cursor: ew-resize;
  cursor: col-resize;
}

.ProseMirror .selectedCell:after {
  z-index: 2;
  content: "";
  background: color-mix(in srgb, var(--color-focus) 24%, transparent);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.ProseMirror.row-resize-cursor {
  cursor: ns-resize;
}

.ProseMirror.table-move-cursor {
  cursor: move;
}

.tiptap table.word-table, .tiptap table, .ProseMirror table.word-table, .ProseMirror table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
  font-size: calc(var(--font-size-helper) + 1px);
  width: auto !important;
}

.tiptap table.word-table td, .tiptap table.word-table th, .tiptap table td, .tiptap table th {
  border-style: solid;
  border-width: 1px;
  padding: 6px 8px;
  border-color: var(--color-text) !important;
}

.paragraph-content table.word-table td, .paragraph-content table.word-table th, .paragraph-content table td, .paragraph-content table th {
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-border);
  padding: 6px 8px;
}

.ProseMirror table.word-table th {
  background: color-mix(in srgb, var(--color-text) 10%, var(--color-surface));
  font-weight: 600;
}

.ProseMirror table.word-table.table-striped tbody tr:nth-child(2n) td {
  background: color-mix(in srgb, var(--color-text) 6%, var(--color-surface));
}

.ProseMirror table.word-table.table-compact td, .ProseMirror table.word-table.table-compact th {
  padding: 3px 6px;
}

.ProseMirror table.word-table.table-stretch {
  width: 100%;
}

.ProseMirror table.word-table.table-border-none, .ProseMirror table.word-table.table-border-none td, .ProseMirror table.word-table.table-border-none th {
  border: none;
}

.ProseMirror table.word-table.table-border-dashed td, .ProseMirror table.word-table.table-border-dashed th {
  border-style: dashed;
}

.ProseMirror .row-resize-handle {
  z-index: 20;
  background-color: var(--color-focus);
  pointer-events: none;
  height: 4px;
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
}

.ProseMirror .column-resize-handle {
  background-color: #0000 !important;
}

.ProseMirror tr.row-resize-hover > td, .ProseMirror tr.row-resize-hover > th {
  box-shadow: 0 2px 0 var(--color-focus);
}

.tiptap table[data-table-align="center"], .ProseMirror table[data-table-align="center"] {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.tiptap table[data-table-align="right"], .ProseMirror table[data-table-align="right"] {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.tiptap table[data-table-align="justify"], .ProseMirror table[data-table-align="justify"] {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ProseMirror p.align-center {
  text-align: center;
}

.ProseMirror p.align-right {
  text-align: right;
}

.ProseMirror p.align-justify {
  text-align: justify;
}

.ProseMirror table[data-border-line-style="none"], .ProseMirror table[data-border-line-style="none"] td, .ProseMirror table[data-border-line-style="none"] th, .ProseMirror td[data-border-line-style="none"], .ProseMirror th[data-border-line-style="none"] {
  border-style: none !important;
  border-width: 0 !important;
}

.ProseMirror table[data-border-line-style="thin"], .ProseMirror table[data-border-line-style="thin"] td, .ProseMirror table[data-border-line-style="thin"] th, .ProseMirror td[data-border-line-style="thin"], .ProseMirror th[data-border-line-style="thin"] {
  border-style: solid !important;
  border-width: 1px !important;
}

.ProseMirror table[data-border-line-style="medium"], .ProseMirror table[data-border-line-style="medium"] td, .ProseMirror table[data-border-line-style="medium"] th, .ProseMirror td[data-border-line-style="medium"], .ProseMirror th[data-border-line-style="medium"] {
  border-style: solid !important;
  border-width: 2px !important;
}

.ProseMirror table[data-border-line-style="thick"], .ProseMirror table[data-border-line-style="thick"] td, .ProseMirror table[data-border-line-style="thick"] th, .ProseMirror td[data-border-line-style="thick"], .ProseMirror th[data-border-line-style="thick"] {
  border-style: solid !important;
  border-width: 3px !important;
}

.ProseMirror table[data-border-line-style="dotted"], .ProseMirror table[data-border-line-style="dotted"] td, .ProseMirror table[data-border-line-style="dotted"] th, .ProseMirror td[data-border-line-style="dotted"], .ProseMirror th[data-border-line-style="dotted"] {
  border-style: dotted !important;
}

.ProseMirror table[data-border-line-style="dashed"], .ProseMirror table[data-border-line-style="dashed"] td, .ProseMirror table[data-border-line-style="dashed"] th, .ProseMirror td[data-border-line-style="dashed"], .ProseMirror th[data-border-line-style="dashed"] {
  border-style: dashed !important;
}

.ProseMirror table[data-border-line-style="double"], .ProseMirror table[data-border-line-style="double"] td, .ProseMirror table[data-border-line-style="double"] th, .ProseMirror td[data-border-line-style="double"], .ProseMirror th[data-border-line-style="double"] {
  border-style: double !important;
}

.paragraph-content table[data-border-line-style], .paragraph-content table[data-border-line-size] {
  border: none !important;
}

.ProseMirror table[data-border-line-size="0.25pt"], .ProseMirror table[data-border-line-size="0.25pt"] td, .ProseMirror table[data-border-line-size="0.25pt"] th, .ProseMirror td[data-border-line-size="0.25pt"], .ProseMirror th[data-border-line-size="0.25pt"] {
  border-width: .25pt !important;
}

.ProseMirror table[data-border-line-size="0.5pt"], .ProseMirror table[data-border-line-size="0.5pt"] td, .ProseMirror table[data-border-line-size="0.5pt"] th, .ProseMirror td[data-border-line-size="0.5pt"], .ProseMirror th[data-border-line-size="0.5pt"] {
  border-width: .5pt !important;
}

.ProseMirror table[data-border-line-size="0.75pt"], .ProseMirror table[data-border-line-size="0.75pt"] td, .ProseMirror table[data-border-line-size="0.75pt"] th, .ProseMirror td[data-border-line-size="0.75pt"], .ProseMirror th[data-border-line-size="0.75pt"] {
  border-width: .75pt !important;
}

.ProseMirror table[data-border-line-size="1pt"], .ProseMirror table[data-border-line-size="1pt"] td, .ProseMirror table[data-border-line-size="1pt"] th, .ProseMirror td[data-border-line-size="1pt"], .ProseMirror th[data-border-line-size="1pt"] {
  border-width: 1pt !important;
}

.ProseMirror table[data-border-line-size="1.5pt"], .ProseMirror table[data-border-line-size="1.5pt"] td, .ProseMirror table[data-border-line-size="1.5pt"] th, .ProseMirror td[data-border-line-size="1.5pt"], .ProseMirror th[data-border-line-size="1.5pt"] {
  border-width: 1.5pt !important;
}

.ProseMirror table[data-border-line-size="2.25pt"], .ProseMirror table[data-border-line-size="2.25pt"] td, .ProseMirror table[data-border-line-size="2.25pt"] th, .ProseMirror td[data-border-line-size="2.25pt"], .ProseMirror th[data-border-line-size="2.25pt"] {
  border-width: 2.25pt !important;
}

.ProseMirror table[data-border-line-size="3pt"], .ProseMirror table[data-border-line-size="3pt"] td, .ProseMirror table[data-border-line-size="3pt"] th, .ProseMirror td[data-border-line-size="3pt"], .ProseMirror th[data-border-line-size="3pt"] {
  border-width: 3pt !important;
}

.ProseMirror table[data-border-line-size="4.5pt"], .ProseMirror table[data-border-line-size="4.5pt"] td, .ProseMirror table[data-border-line-size="4.5pt"] th, .ProseMirror td[data-border-line-size="4.5pt"], .ProseMirror th[data-border-line-size="4.5pt"] {
  border-width: 4.5pt !important;
}

.ProseMirror table[data-border-line-size="6pt"], .ProseMirror table[data-border-line-size="6pt"] td, .ProseMirror table[data-border-line-size="6pt"] th, .ProseMirror td[data-border-line-size="6pt"], .ProseMirror th[data-border-line-size="6pt"] {
  border-width: 6pt !important;
}

.tiptap.table-border-none-active table[data-border-line-style="none"] td, .tiptap.table-border-none-active table[data-border-line-style="none"] th, .tiptap.table-border-none-active td[data-border-line-style="none"], .tiptap.table-border-none-active th[data-border-line-style="none"] {
  border: 1px dashed #f8fafc40 !important;
}

.ProseMirror table td[data-top-border-color="#f8fafc"], .ProseMirror table th[data-top-border-color="#f8fafc"] {
  border-top-color: #f8fafc !important;
}

.ProseMirror table td[data-bottom-border-color="#f8fafc"], .ProseMirror table th[data-bottom-border-color="#f8fafc"] {
  border-bottom-color: #f8fafc !important;
}

.ProseMirror table td[data-left-border-color="#f8fafc"], .ProseMirror table th[data-left-border-color="#f8fafc"] {
  border-left-color: #f8fafc !important;
}

.ProseMirror table td[data-right-border-color="#f8fafc"], .ProseMirror table th[data-right-border-color="#f8fafc"] {
  border-right-color: #f8fafc !important;
}

.ProseMirror table td[data-top-border-color="#ffffff"], .ProseMirror table th[data-top-border-color="#ffffff"] {
  border-top-color: #fff !important;
}

.ProseMirror table td[data-bottom-border-color="#ffffff"], .ProseMirror table th[data-bottom-border-color="#ffffff"] {
  border-bottom-color: #fff !important;
}

.ProseMirror table td[data-left-border-color="#ffffff"], .ProseMirror table th[data-left-border-color="#ffffff"] {
  border-left-color: #fff !important;
}

.ProseMirror table td[data-right-border-color="#ffffff"], .ProseMirror table th[data-right-border-color="#ffffff"] {
  border-right-color: #fff !important;
}

.ProseMirror table td[data-top-border-color="#f9fafb"], .ProseMirror table th[data-top-border-color="#f9fafb"] {
  border-top-color: #f9fafb !important;
}

.ProseMirror table td[data-bottom-border-color="#f9fafb"], .ProseMirror table th[data-bottom-border-color="#f9fafb"] {
  border-bottom-color: #f9fafb !important;
}

.ProseMirror table td[data-left-border-color="#f9fafb"], .ProseMirror table th[data-left-border-color="#f9fafb"] {
  border-left-color: #f9fafb !important;
}

.ProseMirror table td[data-right-border-color="#f9fafb"], .ProseMirror table th[data-right-border-color="#f9fafb"] {
  border-right-color: #f9fafb !important;
}

.ProseMirror table td[data-top-border-color="#f3f4f6"], .ProseMirror table th[data-top-border-color="#f3f4f6"] {
  border-top-color: #f3f4f6 !important;
}

.ProseMirror table td[data-bottom-border-color="#f3f4f6"], .ProseMirror table th[data-bottom-border-color="#f3f4f6"] {
  border-bottom-color: #f3f4f6 !important;
}

.ProseMirror table td[data-left-border-color="#f3f4f6"], .ProseMirror table th[data-left-border-color="#f3f4f6"] {
  border-left-color: #f3f4f6 !important;
}

.ProseMirror table td[data-right-border-color="#f3f4f6"], .ProseMirror table th[data-right-border-color="#f3f4f6"] {
  border-right-color: #f3f4f6 !important;
}

.ProseMirror table td[data-top-border-color="#e5e7eb"], .ProseMirror table th[data-top-border-color="#e5e7eb"] {
  border-top-color: #e5e7eb !important;
}

.ProseMirror table td[data-bottom-border-color="#e5e7eb"], .ProseMirror table th[data-bottom-border-color="#e5e7eb"] {
  border-bottom-color: #e5e7eb !important;
}

.ProseMirror table td[data-left-border-color="#e5e7eb"], .ProseMirror table th[data-left-border-color="#e5e7eb"] {
  border-left-color: #e5e7eb !important;
}

.ProseMirror table td[data-right-border-color="#e5e7eb"], .ProseMirror table th[data-right-border-color="#e5e7eb"] {
  border-right-color: #e5e7eb !important;
}

.ProseMirror table td[data-top-border-color="#d1d5db"], .ProseMirror table th[data-top-border-color="#d1d5db"] {
  border-top-color: #d1d5db !important;
}

.ProseMirror table td[data-bottom-border-color="#d1d5db"], .ProseMirror table th[data-bottom-border-color="#d1d5db"] {
  border-bottom-color: #d1d5db !important;
}

.ProseMirror table td[data-left-border-color="#d1d5db"], .ProseMirror table th[data-left-border-color="#d1d5db"] {
  border-left-color: #d1d5db !important;
}

.ProseMirror table td[data-right-border-color="#d1d5db"], .ProseMirror table th[data-right-border-color="#d1d5db"] {
  border-right-color: #d1d5db !important;
}

.ProseMirror table td[data-top-border-color="#9ca3af"], .ProseMirror table th[data-top-border-color="#9ca3af"] {
  border-top-color: #9ca3af !important;
}

.ProseMirror table td[data-bottom-border-color="#9ca3af"], .ProseMirror table th[data-bottom-border-color="#9ca3af"] {
  border-bottom-color: #9ca3af !important;
}

.ProseMirror table td[data-left-border-color="#9ca3af"], .ProseMirror table th[data-left-border-color="#9ca3af"] {
  border-left-color: #9ca3af !important;
}

.ProseMirror table td[data-right-border-color="#9ca3af"], .ProseMirror table th[data-right-border-color="#9ca3af"] {
  border-right-color: #9ca3af !important;
}

.ProseMirror table td[data-top-border-color="#6b7280"], .ProseMirror table th[data-top-border-color="#6b7280"] {
  border-top-color: #6b7280 !important;
}

.ProseMirror table td[data-bottom-border-color="#6b7280"], .ProseMirror table th[data-bottom-border-color="#6b7280"] {
  border-bottom-color: #6b7280 !important;
}

.ProseMirror table td[data-left-border-color="#6b7280"], .ProseMirror table th[data-left-border-color="#6b7280"] {
  border-left-color: #6b7280 !important;
}

.ProseMirror table td[data-right-border-color="#6b7280"], .ProseMirror table th[data-right-border-color="#6b7280"] {
  border-right-color: #6b7280 !important;
}

.ProseMirror table td[data-top-border-color="#374151"], .ProseMirror table th[data-top-border-color="#374151"] {
  border-top-color: #374151 !important;
}

.ProseMirror table td[data-bottom-border-color="#374151"], .ProseMirror table th[data-bottom-border-color="#374151"] {
  border-bottom-color: #374151 !important;
}

.ProseMirror table td[data-left-border-color="#374151"], .ProseMirror table th[data-left-border-color="#374151"] {
  border-left-color: #374151 !important;
}

.ProseMirror table td[data-right-border-color="#374151"], .ProseMirror table th[data-right-border-color="#374151"] {
  border-right-color: #374151 !important;
}

.ProseMirror table td[data-top-border-color="#111827"], .ProseMirror table th[data-top-border-color="#111827"] {
  border-top-color: #111827 !important;
}

.ProseMirror table td[data-bottom-border-color="#111827"], .ProseMirror table th[data-bottom-border-color="#111827"] {
  border-bottom-color: #111827 !important;
}

.ProseMirror table td[data-left-border-color="#111827"], .ProseMirror table th[data-left-border-color="#111827"] {
  border-left-color: #111827 !important;
}

.ProseMirror table td[data-right-border-color="#111827"], .ProseMirror table th[data-right-border-color="#111827"] {
  border-right-color: #111827 !important;
}

.ProseMirror table td[data-top-border-color="#38bdf8"], .ProseMirror table th[data-top-border-color="#38bdf8"] {
  border-top-color: #38bdf8 !important;
}

.ProseMirror table td[data-bottom-border-color="#38bdf8"], .ProseMirror table th[data-bottom-border-color="#38bdf8"] {
  border-bottom-color: #38bdf8 !important;
}

.ProseMirror table td[data-left-border-color="#38bdf8"], .ProseMirror table th[data-left-border-color="#38bdf8"] {
  border-left-color: #38bdf8 !important;
}

.ProseMirror table td[data-right-border-color="#38bdf8"], .ProseMirror table th[data-right-border-color="#38bdf8"] {
  border-right-color: #38bdf8 !important;
}

.ProseMirror table td[data-top-border-color="#0284c7"], .ProseMirror table th[data-top-border-color="#0284c7"] {
  border-top-color: #0284c7 !important;
}

.ProseMirror table td[data-bottom-border-color="#0284c7"], .ProseMirror table th[data-bottom-border-color="#0284c7"] {
  border-bottom-color: #0284c7 !important;
}

.ProseMirror table td[data-left-border-color="#0284c7"], .ProseMirror table th[data-left-border-color="#0284c7"] {
  border-left-color: #0284c7 !important;
}

.ProseMirror table td[data-right-border-color="#0284c7"], .ProseMirror table th[data-right-border-color="#0284c7"] {
  border-right-color: #0284c7 !important;
}

.ProseMirror table td[data-top-border-color="#60a5fa"], .ProseMirror table th[data-top-border-color="#60a5fa"] {
  border-top-color: #60a5fa !important;
}

.ProseMirror table td[data-bottom-border-color="#60a5fa"], .ProseMirror table th[data-bottom-border-color="#60a5fa"] {
  border-bottom-color: #60a5fa !important;
}

.ProseMirror table td[data-left-border-color="#60a5fa"], .ProseMirror table th[data-left-border-color="#60a5fa"] {
  border-left-color: #60a5fa !important;
}

.ProseMirror table td[data-right-border-color="#60a5fa"], .ProseMirror table th[data-right-border-color="#60a5fa"] {
  border-right-color: #60a5fa !important;
}

.ProseMirror table td[data-top-border-color="#2563eb"], .ProseMirror table th[data-top-border-color="#2563eb"] {
  border-top-color: #2563eb !important;
}

.ProseMirror table td[data-bottom-border-color="#2563eb"], .ProseMirror table th[data-bottom-border-color="#2563eb"] {
  border-bottom-color: #2563eb !important;
}

.ProseMirror table td[data-left-border-color="#2563eb"], .ProseMirror table th[data-left-border-color="#2563eb"] {
  border-left-color: #2563eb !important;
}

.ProseMirror table td[data-right-border-color="#2563eb"], .ProseMirror table th[data-right-border-color="#2563eb"] {
  border-right-color: #2563eb !important;
}

.ProseMirror table td[data-top-border-color="#6366f1"], .ProseMirror table th[data-top-border-color="#6366f1"] {
  border-top-color: #6366f1 !important;
}

.ProseMirror table td[data-bottom-border-color="#6366f1"], .ProseMirror table th[data-bottom-border-color="#6366f1"] {
  border-bottom-color: #6366f1 !important;
}

.ProseMirror table td[data-left-border-color="#6366f1"], .ProseMirror table th[data-left-border-color="#6366f1"] {
  border-left-color: #6366f1 !important;
}

.ProseMirror table td[data-right-border-color="#6366f1"], .ProseMirror table th[data-right-border-color="#6366f1"] {
  border-right-color: #6366f1 !important;
}

.ProseMirror table td[data-top-border-color="#4338ca"], .ProseMirror table th[data-top-border-color="#4338ca"] {
  border-top-color: #4338ca !important;
}

.ProseMirror table td[data-bottom-border-color="#4338ca"], .ProseMirror table th[data-bottom-border-color="#4338ca"] {
  border-bottom-color: #4338ca !important;
}

.ProseMirror table td[data-left-border-color="#4338ca"], .ProseMirror table th[data-left-border-color="#4338ca"] {
  border-left-color: #4338ca !important;
}

.ProseMirror table td[data-right-border-color="#4338ca"], .ProseMirror table th[data-right-border-color="#4338ca"] {
  border-right-color: #4338ca !important;
}

.ProseMirror table td[data-top-border-color="#a855f7"], .ProseMirror table th[data-top-border-color="#a855f7"] {
  border-top-color: #a855f7 !important;
}

.ProseMirror table td[data-bottom-border-color="#a855f7"], .ProseMirror table th[data-bottom-border-color="#a855f7"] {
  border-bottom-color: #a855f7 !important;
}

.ProseMirror table td[data-left-border-color="#a855f7"], .ProseMirror table th[data-left-border-color="#a855f7"] {
  border-left-color: #a855f7 !important;
}

.ProseMirror table td[data-right-border-color="#a855f7"], .ProseMirror table th[data-right-border-color="#a855f7"] {
  border-right-color: #a855f7 !important;
}

.ProseMirror table td[data-top-border-color="#6d28d9"], .ProseMirror table th[data-top-border-color="#6d28d9"] {
  border-top-color: #6d28d9 !important;
}

.ProseMirror table td[data-bottom-border-color="#6d28d9"], .ProseMirror table th[data-bottom-border-color="#6d28d9"] {
  border-bottom-color: #6d28d9 !important;
}

.ProseMirror table td[data-left-border-color="#6d28d9"], .ProseMirror table th[data-left-border-color="#6d28d9"] {
  border-left-color: #6d28d9 !important;
}

.ProseMirror table td[data-right-border-color="#6d28d9"], .ProseMirror table th[data-right-border-color="#6d28d9"] {
  border-right-color: #6d28d9 !important;
}

.ProseMirror table td[data-top-border-color="#ec4899"], .ProseMirror table th[data-top-border-color="#ec4899"] {
  border-top-color: #ec4899 !important;
}

.ProseMirror table td[data-bottom-border-color="#ec4899"], .ProseMirror table th[data-bottom-border-color="#ec4899"] {
  border-bottom-color: #ec4899 !important;
}

.ProseMirror table td[data-left-border-color="#ec4899"], .ProseMirror table th[data-left-border-color="#ec4899"] {
  border-left-color: #ec4899 !important;
}

.ProseMirror table td[data-right-border-color="#ec4899"], .ProseMirror table th[data-right-border-color="#ec4899"] {
  border-right-color: #ec4899 !important;
}

.ProseMirror table td[data-top-border-color="#be185d"], .ProseMirror table th[data-top-border-color="#be185d"] {
  border-top-color: #be185d !important;
}

.ProseMirror table td[data-bottom-border-color="#be185d"], .ProseMirror table th[data-bottom-border-color="#be185d"] {
  border-bottom-color: #be185d !important;
}

.ProseMirror table td[data-left-border-color="#be185d"], .ProseMirror table th[data-left-border-color="#be185d"] {
  border-left-color: #be185d !important;
}

.ProseMirror table td[data-right-border-color="#be185d"], .ProseMirror table th[data-right-border-color="#be185d"] {
  border-right-color: #be185d !important;
}

.ProseMirror table td[data-top-border-color="#ef4444"], .ProseMirror table th[data-top-border-color="#ef4444"] {
  border-top-color: #ef4444 !important;
}

.ProseMirror table td[data-bottom-border-color="#ef4444"], .ProseMirror table th[data-bottom-border-color="#ef4444"] {
  border-bottom-color: #ef4444 !important;
}

.ProseMirror table td[data-left-border-color="#ef4444"], .ProseMirror table th[data-left-border-color="#ef4444"] {
  border-left-color: #ef4444 !important;
}

.ProseMirror table td[data-right-border-color="#ef4444"], .ProseMirror table th[data-right-border-color="#ef4444"] {
  border-right-color: #ef4444 !important;
}

.ProseMirror table td[data-top-border-color="#b91c1c"], .ProseMirror table th[data-top-border-color="#b91c1c"] {
  border-top-color: #b91c1c !important;
}

.ProseMirror table td[data-bottom-border-color="#b91c1c"], .ProseMirror table th[data-bottom-border-color="#b91c1c"] {
  border-bottom-color: #b91c1c !important;
}

.ProseMirror table td[data-left-border-color="#b91c1c"], .ProseMirror table th[data-left-border-color="#b91c1c"] {
  border-left-color: #b91c1c !important;
}

.ProseMirror table td[data-right-border-color="#b91c1c"], .ProseMirror table th[data-right-border-color="#b91c1c"] {
  border-right-color: #b91c1c !important;
}

.ProseMirror table td[data-top-border-color="#f97316"], .ProseMirror table th[data-top-border-color="#f97316"] {
  border-top-color: #f97316 !important;
}

.ProseMirror table td[data-bottom-border-color="#f97316"], .ProseMirror table th[data-bottom-border-color="#f97316"] {
  border-bottom-color: #f97316 !important;
}

.ProseMirror table td[data-left-border-color="#f97316"], .ProseMirror table th[data-left-border-color="#f97316"] {
  border-left-color: #f97316 !important;
}

.ProseMirror table td[data-right-border-color="#f97316"], .ProseMirror table th[data-right-border-color="#f97316"] {
  border-right-color: #f97316 !important;
}

.ProseMirror table td[data-top-border-color="#c2410c"], .ProseMirror table th[data-top-border-color="#c2410c"] {
  border-top-color: #c2410c !important;
}

.ProseMirror table td[data-bottom-border-color="#c2410c"], .ProseMirror table th[data-bottom-border-color="#c2410c"] {
  border-bottom-color: #c2410c !important;
}

.ProseMirror table td[data-left-border-color="#c2410c"], .ProseMirror table th[data-left-border-color="#c2410c"] {
  border-left-color: #c2410c !important;
}

.ProseMirror table td[data-right-border-color="#c2410c"], .ProseMirror table th[data-right-border-color="#c2410c"] {
  border-right-color: #c2410c !important;
}

.ProseMirror table td[data-top-border-color="#fbbf24"], .ProseMirror table th[data-top-border-color="#fbbf24"] {
  border-top-color: #fbbf24 !important;
}

.ProseMirror table td[data-bottom-border-color="#fbbf24"], .ProseMirror table th[data-bottom-border-color="#fbbf24"] {
  border-bottom-color: #fbbf24 !important;
}

.ProseMirror table td[data-left-border-color="#fbbf24"], .ProseMirror table th[data-left-border-color="#fbbf24"] {
  border-left-color: #fbbf24 !important;
}

.ProseMirror table td[data-right-border-color="#fbbf24"], .ProseMirror table th[data-right-border-color="#fbbf24"] {
  border-right-color: #fbbf24 !important;
}

.ProseMirror table td[data-top-border-color="#d97706"], .ProseMirror table th[data-top-border-color="#d97706"] {
  border-top-color: #d97706 !important;
}

.ProseMirror table td[data-bottom-border-color="#d97706"], .ProseMirror table th[data-bottom-border-color="#d97706"] {
  border-bottom-color: #d97706 !important;
}

.ProseMirror table td[data-left-border-color="#d97706"], .ProseMirror table th[data-left-border-color="#d97706"] {
  border-left-color: #d97706 !important;
}

.ProseMirror table td[data-right-border-color="#d97706"], .ProseMirror table th[data-right-border-color="#d97706"] {
  border-right-color: #d97706 !important;
}

.ProseMirror table td[data-top-border-color="#eab308"], .ProseMirror table th[data-top-border-color="#eab308"] {
  border-top-color: #eab308 !important;
}

.ProseMirror table td[data-bottom-border-color="#eab308"], .ProseMirror table th[data-bottom-border-color="#eab308"] {
  border-bottom-color: #eab308 !important;
}

.ProseMirror table td[data-left-border-color="#eab308"], .ProseMirror table th[data-left-border-color="#eab308"] {
  border-left-color: #eab308 !important;
}

.ProseMirror table td[data-right-border-color="#eab308"], .ProseMirror table th[data-right-border-color="#eab308"] {
  border-right-color: #eab308 !important;
}

.ProseMirror table td[data-top-border-color="#22c55e"], .ProseMirror table th[data-top-border-color="#22c55e"] {
  border-top-color: #22c55e !important;
}

.ProseMirror table td[data-bottom-border-color="#22c55e"], .ProseMirror table th[data-bottom-border-color="#22c55e"] {
  border-bottom-color: #22c55e !important;
}

.ProseMirror table td[data-left-border-color="#22c55e"], .ProseMirror table th[data-left-border-color="#22c55e"] {
  border-left-color: #22c55e !important;
}

.ProseMirror table td[data-right-border-color="#22c55e"], .ProseMirror table th[data-right-border-color="#22c55e"] {
  border-right-color: #22c55e !important;
}

.ProseMirror table td[data-top-border-color="#10b981"], .ProseMirror table th[data-top-border-color="#10b981"] {
  border-top-color: #10b981 !important;
}

.ProseMirror table td[data-bottom-border-color="#10b981"], .ProseMirror table th[data-bottom-border-color="#10b981"] {
  border-bottom-color: #10b981 !important;
}

.ProseMirror table td[data-left-border-color="#10b981"], .ProseMirror table th[data-left-border-color="#10b981"] {
  border-left-color: #10b981 !important;
}

.ProseMirror table td[data-right-border-color="#10b981"], .ProseMirror table th[data-right-border-color="#10b981"] {
  border-right-color: #10b981 !important;
}

.ProseMirror table td[data-top-border-color="#14b8a6"], .ProseMirror table th[data-top-border-color="#14b8a6"] {
  border-top-color: #14b8a6 !important;
}

.ProseMirror table td[data-bottom-border-color="#14b8a6"], .ProseMirror table th[data-bottom-border-color="#14b8a6"] {
  border-bottom-color: #14b8a6 !important;
}

.ProseMirror table td[data-left-border-color="#14b8a6"], .ProseMirror table th[data-left-border-color="#14b8a6"] {
  border-left-color: #14b8a6 !important;
}

.ProseMirror table td[data-right-border-color="#14b8a6"], .ProseMirror table th[data-right-border-color="#14b8a6"] {
  border-right-color: #14b8a6 !important;
}

.ProseMirror table td[data-bottom-border="none"], .ProseMirror table th[data-bottom-border="none"] {
  border-bottom-style: none !important;
  border-bottom-width: 0 !important;
}

.ProseMirror table td[data-top-border="none"], .ProseMirror table th[data-top-border="none"] {
  border-top-style: none !important;
  border-top-width: 0 !important;
}

.tiptap.table-border-none-active table td[data-bottom-border="none"], .tiptap.table-border-none-active table th[data-bottom-border="none"] {
  border-bottom: 1px dashed #f8fafc40 !important;
}

.tiptap.table-border-none-active table td[data-top-border="none"], .tiptap.table-border-none-active table th[data-top-border="none"] {
  border-top: 1px dashed #f8fafc40 !important;
}

.ProseMirror table td[data-left-border="none"], .ProseMirror table th[data-left-border="none"] {
  border-left-style: none !important;
  border-left-width: 0 !important;
}

.ProseMirror table td[data-right-border="none"], .ProseMirror table th[data-right-border="none"] {
  border-right-style: none !important;
  border-right-width: 0 !important;
}

.tiptap.table-border-none-active table td[data-left-border="none"], .tiptap.table-border-none-active table th[data-left-border="none"] {
  border-left: 1px dashed #f8fafc40 !important;
}

.tiptap.table-border-none-active table td[data-right-border="none"], .tiptap.table-border-none-active table th[data-right-border="none"] {
  border-right: 1px dashed #f8fafc40 !important;
}

.ProseMirror table td[data-align="top-left"], .ProseMirror table th[data-align="top-left"] {
  vertical-align: top;
  text-align: left;
}

.ProseMirror table td[data-align="top-center"], .ProseMirror table th[data-align="top-center"] {
  vertical-align: top;
  text-align: center;
}

.ProseMirror table td[data-align="top-right"], .ProseMirror table th[data-align="top-right"] {
  vertical-align: top;
  text-align: right;
}

.ProseMirror table td[data-align="middle-left"], .ProseMirror table th[data-align="middle-left"] {
  vertical-align: middle;
  text-align: left;
}

.ProseMirror table td[data-align="middle-center"], .ProseMirror table th[data-align="middle-center"] {
  vertical-align: middle;
  text-align: center;
}

.ProseMirror table td[data-align="middle-right"], .ProseMirror table th[data-align="middle-right"] {
  vertical-align: middle;
  text-align: right;
}

.ProseMirror table td[data-align="bottom-left"], .ProseMirror table th[data-align="bottom-left"] {
  vertical-align: bottom;
  text-align: left;
}

.ProseMirror table td[data-align="bottom-center"], .ProseMirror table th[data-align="bottom-center"] {
  vertical-align: bottom;
  text-align: center;
}

.ProseMirror table td[data-align="bottom-right"], .ProseMirror table th[data-align="bottom-right"] {
  vertical-align: bottom;
  text-align: right;
}

.ProseMirror table td[data-text-direction="vertical-up"], .ProseMirror table th[data-text-direction="vertical-up"], .ProseMirror table td[data-text-direction="vertical-down"], .ProseMirror table th[data-text-direction="vertical-down"] {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.ProseMirror table td[data-text-direction="vertical-down"] > *, .ProseMirror table th[data-text-direction="vertical-down"] > * {
  transform: rotate(180deg);
}

.ProseMirror span.pe-image-wrapper {
  display: inline-block;
  position: relative;
}

.ProseMirror span.pe-image-wrapper.ProseMirror-selectednode {
  outline: 1px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.ProseMirror span.pe-image-wrapper.ProseMirror-selectednode:before {
  content: "";
  background-repeat: no-repeat;
  background-image: radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px),
    radial-gradient(circle, var(--color-focus) 0, var(--color-focus) 6px, transparent 6px);
  pointer-events: none;
  z-index: 1;
  background-position: 0 0, 50% 0, 100% 0, 0%, 100%, 0 100%, 50% 100%, 100% 100%;
  background-size: 12px 12px, 12px 12px, 12px 12px, 12px 12px, 12px 12px, 12px 12px, 12px 12px, 12px 12px;
  position: absolute;
  inset: -8px;
}

.ProseMirror span.pe-image-wrapper.ProseMirror-selectednode:after {
  content: "";
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  background: url("/icons/rotate_image_icon.webp") center / contain no-repeat;
  width: 30px;
  height: 30px;
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
}

.ProseMirror.image-resize-cursor-ns {
  cursor: ns-resize;
}

.ProseMirror.image-resize-cursor-ew {
  cursor: ew-resize;
}

.ProseMirror.image-resize-cursor-nesw {
  cursor: nesw-resize;
}

.ProseMirror.image-resize-cursor-nwse {
  cursor: nwse-resize;
}

.ProseMirror.image-resize-active {
  cursor: crosshair;
}

.ProseMirror.image-crop-active {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.ProseMirror span.pe-image-wrapper[data-wrap-mode="square"], .ProseMirror span.pe-image-wrapper[data-wrap-mode="tight"], .ProseMirror span.pe-image-wrapper[data-wrap-mode="through"] {
  float: left;
  margin: 0 12px 8px 0;
}

.ProseMirror span.pe-image-wrapper[data-wrap-mode="top-bottom"] {
  margin: 8px auto;
  display: block;
}

.ProseMirror span.pe-image-wrapper[data-wrap-mode="behind"] {
  z-index: -1;
  position: relative;
}

.ProseMirror span.pe-image-wrapper[data-wrap-mode="front"] {
  z-index: 10;
  position: relative;
}

.ProseMirror .find-highlight {
  background: color-mix(in srgb, var(--color-focus) 20%, transparent);
  outline: 1px solid var(--color-focus);
  outline-offset: 0;
}

.ProseMirror.show-paragraph-marks p:after, .ProseMirror.show-paragraph-marks h1:after, .ProseMirror.show-paragraph-marks h2:after, .ProseMirror.show-paragraph-marks h3:after, .ProseMirror.show-paragraph-marks li:after {
  content: "¶";
  color: var(--color-text-muted);
  font-size: var(--font-size-helper);
  vertical-align: middle;
  margin-left: 4px;
}

.react-colorful {
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  flex-direction: column;
  width: 200px;
  height: 200px;
  display: flex;
  position: relative;
}

.react-colorful__saturation {
  background-image: linear-gradient(0deg, #000, #0000), linear-gradient(90deg, #fff, #fff0);
  border-color: #0000 #0000 #000;
  border-bottom-style: solid;
  border-bottom-width: 12px;
  border-radius: 8px 8px 0 0;
  flex-grow: 1;
  position: relative;
  box-shadow: inset 0 0 0 1px #0000000d;
}

.react-colorful__hue {
  background: linear-gradient(90deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
  height: 24px;
  position: relative;
}

.react-colorful__last-control {
  border-radius: 0 0 8px 8px;
}

.react-colorful__interactive {
  border-radius: inherit;
  touch-action: none;
  outline: none;
  position: absolute;
  inset: 0;
}

.react-colorful__pointer {
  z-index: 1;
  box-sizing: border-box;
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px #0003;
}

.react-colorful__interactive:focus .react-colorful__pointer {
  transform: translate(-50%, -50%)scale(1.1);
}

.react-colorful__pointer-fill {
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.react-colorful__saturation-pointer {
  z-index: 3;
}

.react-colorful__hue-pointer {
  z-index: 2;
}

/* [project]/node_modules/@xyflow/react/dist/style.css [app-client] (css) */
.react-flow {
  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;
  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;
  --xy-attribution-background-color-default: #ffffff80;
  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: #f0f0f099;
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;
  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(--xy-background-color, var(--xy-background-color-default));
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: #f0f0f040;
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px #00000014;
  --xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;
  --xy-node-border-radius-default: 3px;
  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;
  --xy-selection-background-color-default: #0059dc14;
  --xy-selection-border-default: 1px dotted #0059dccc;
  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px #00000014;
  --xy-edge-label-background-color-default: #fff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
  direction: ltr;
}

.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;
  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;
  --xy-attribution-background-color-default: #96969640;
  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: #3c3c3c99;
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;
  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #777;
  --xy-background-pattern-lines-color-default: #777;
  --xy-background-pattern-cross-color-default: #777;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: #f0f0f040;
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px #ffffff14;
  --xy-node-boxshadow-selected-default: 0 0 0 .5px #999;
  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;
  --xy-selection-background-color-default: #c8c8dc14;
  --xy-selection-border-default: 1px dotted #c8c8dccc;
  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px #00000014;
  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}

.react-flow__background {
  background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));
  pointer-events: none;
  z-index: -1;
}

.react-flow__container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.react-flow__pane {
  z-index: 1;
}

.react-flow__pane.draggable {
  cursor: grab;
}

.react-flow__pane.dragging {
  cursor: grabbing;
}

.react-flow__pane.selection {
  cursor: pointer;
}

.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}

.react-flow__renderer {
  z-index: 4;
}

.react-flow__selection {
  z-index: 6;
}

.react-flow__nodesselection-rect:focus, .react-flow__nodesselection-rect:focus-visible {
  outline: none;
}

.react-flow__edge-path {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
  fill: none;
}

.react-flow__connection-path {
  stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
  stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
  fill: none;
}

.react-flow .react-flow__edges {
  position: absolute;
}

.react-flow .react-flow__edges svg {
  pointer-events: none;
  position: absolute;
  overflow: visible;
}

.react-flow__edge {
  pointer-events: visibleStroke;
}

.react-flow__edge.selectable {
  cursor: pointer;
}

.react-flow__edge.animated path {
  stroke-dasharray: 5;
  animation: .5s linear infinite dashdraw;
}

.react-flow__edge.animated path.react-flow__edge-interaction {
  stroke-dasharray: none;
  animation: none;
}

.react-flow__edge.inactive {
  pointer-events: none;
}

.react-flow__edge.selected, .react-flow__edge:focus, .react-flow__edge:focus-visible {
  outline: none;
}

.react-flow__edge.selected .react-flow__edge-path, .react-flow__edge.selectable:focus .react-flow__edge-path, .react-flow__edge.selectable:focus-visible .react-flow__edge-path {
  stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
}

.react-flow__edge-textwrapper {
  pointer-events: all;
}

.react-flow__edge .react-flow__edge-text {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.react-flow__arrowhead polyline {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}

.react-flow__arrowhead polyline.arrowclosed {
  fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}

.react-flow__connection {
  pointer-events: none;
}

.react-flow__connection .animated {
  stroke-dasharray: 5;
  animation: .5s linear infinite dashdraw;
}

svg.react-flow__connectionline {
  z-index: 1001;
  position: absolute;
  overflow: visible;
}

.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}

.react-flow__node {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
  position: absolute;
}

.react-flow__node.selectable {
  cursor: pointer;
}

.react-flow__node.draggable {
  cursor: grab;
  pointer-events: all;
}

.react-flow__node.draggable.dragging {
  cursor: grabbing;
}

.react-flow__nodesselection {
  z-index: 3;
  transform-origin: 0 0;
  pointer-events: none;
}

.react-flow__nodesselection-rect {
  pointer-events: all;
  cursor: grab;
  position: absolute;
}

.react-flow__handle {
  pointer-events: none;
  background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
  border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
  width: 6px;
  min-width: 5px;
  height: 6px;
  min-height: 5px;
  position: absolute;
}

.react-flow__handle.connectingfrom {
  pointer-events: all;
}

.react-flow__handle.connectionindicator {
  pointer-events: all;
  cursor: crosshair;
}

.react-flow__handle-bottom {
  top: auto;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.react-flow__handle-top {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.react-flow__handle-left {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.react-flow__handle-right {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}

.react-flow__pane.selection .react-flow__panel {
  pointer-events: none;
}

.react-flow__panel {
  z-index: 5;
  margin: 15px;
  position: absolute;
}

.react-flow__panel.top {
  top: 0;
}

.react-flow__panel.bottom {
  bottom: 0;
}

.react-flow__panel.top.center, .react-flow__panel.bottom.center {
  left: 50%;
  transform: translateX(-15px)translateX(-50%);
}

.react-flow__panel.left {
  left: 0;
}

.react-flow__panel.right {
  right: 0;
}

.react-flow__panel.left.center, .react-flow__panel.right.center {
  top: 50%;
  transform: translateY(-15px)translateY(-50%);
}

.react-flow__attribution {
  background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
  margin: 0;
  padding: 2px 3px;
  font-size: 10px;
}

.react-flow__attribution a {
  color: #999;
  text-decoration: none;
}

@keyframes dashdraw {
  from {
    stroke-dashoffset: 10px;
  }
}

.react-flow__edgelabel-renderer {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.react-flow__viewport-portal {
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.react-flow__minimap {
  background: var(--xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)));
}

.react-flow__minimap-svg {
  display: block;
}

.react-flow__minimap-mask {
  fill: var(--xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)));
  stroke: var(--xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)));
  stroke-width: var(--xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)));
}

.react-flow__minimap-node {
  fill: var(--xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)));
  stroke: var(--xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)));
  stroke-width: var(--xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)));
}

.react-flow__background-pattern.dots {
  fill: var(--xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)));
}

.react-flow__background-pattern.lines {
  stroke: var(--xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)));
}

.react-flow__background-pattern.cross {
  stroke: var(--xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)));
}

.react-flow__controls {
  box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
  flex-direction: column;
  display: flex;
}

.react-flow__controls.horizontal {
  flex-direction: row;
}

.react-flow__controls-button {
  background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));
  border: none;
  border-bottom: 1px solid
      var(--xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)));
  width: 26px;
  height: 26px;
  color: var(--xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)));
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  justify-content: center;
  align-items: center;
  padding: 4px;
  display: flex;
}

.react-flow__controls-button svg {
  fill: currentColor;
  width: 100%;
  max-width: 12px;
  max-height: 12px;
}

.react-flow__edge.updating .react-flow__edge-path {
  stroke: #777;
}

.react-flow__edge-text {
  font-size: 10px;
}

.react-flow__node.selectable:focus, .react-flow__node.selectable:focus-visible {
  outline: none;
}

.react-flow__node-input, .react-flow__node-default, .react-flow__node-output, .react-flow__node-group {
  border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));
  width: 150px;
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
  padding: 10px;
  font-size: 12px;
}

.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
  box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
}

.react-flow__node-input.selectable.selected, .react-flow__node-input.selectable:focus, .react-flow__node-input.selectable:focus-visible, .react-flow__node-default.selectable.selected, .react-flow__node-default.selectable:focus, .react-flow__node-default.selectable:focus-visible, .react-flow__node-output.selectable.selected, .react-flow__node-output.selectable:focus, .react-flow__node-output.selectable:focus-visible, .react-flow__node-group.selectable.selected, .react-flow__node-group.selectable:focus, .react-flow__node-group.selectable:focus-visible {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}

.react-flow__node-group {
  background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));
}

.react-flow__nodesselection-rect, .react-flow__selection {
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}

.react-flow__nodesselection-rect:focus, .react-flow__nodesselection-rect:focus-visible, .react-flow__selection:focus, .react-flow__selection:focus-visible {
  outline: none;
}

.react-flow__controls-button:hover {
  background: var(--xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)));
  color: var(--xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)));
}

.react-flow__controls-button:disabled {
  pointer-events: none;
}

.react-flow__controls-button:disabled svg {
  fill-opacity: .4;
}

.react-flow__controls-button:last-child {
  border-bottom: none;
}

.react-flow__controls.horizontal .react-flow__controls-button {
  border-bottom: none;
  border-right: 1px solid
      var(--xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)));
}

.react-flow__controls.horizontal .react-flow__controls-button:last-child {
  border-right: none;
}

.react-flow__resize-control {
  position: absolute;
}

.react-flow__resize-control.left, .react-flow__resize-control.right {
  cursor: ew-resize;
}

.react-flow__resize-control.top, .react-flow__resize-control.bottom {
  cursor: ns-resize;
}

.react-flow__resize-control.top.left, .react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}

.react-flow__resize-control.bottom.left, .react-flow__resize-control.top.right {
  cursor: nesw-resize;
}

.react-flow__resize-control.handle {
  background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border: 1px solid #fff;
  border-radius: 1px;
  width: 5px;
  height: 5px;
  translate: -50% -50%;
}

.react-flow__resize-control.handle.left {
  top: 50%;
  left: 0;
}

.react-flow__resize-control.handle.right {
  top: 50%;
  left: 100%;
}

.react-flow__resize-control.handle.top {
  top: 0;
  left: 50%;
}

.react-flow__resize-control.handle.bottom {
  top: 100%;
  left: 50%;
}

.react-flow__resize-control.handle.top.left, .react-flow__resize-control.handle.bottom.left {
  left: 0;
}

.react-flow__resize-control.handle.top.right, .react-flow__resize-control.handle.bottom.right {
  left: 100%;
}

.react-flow__resize-control.line {
  border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border-style: solid;
  border-width: 0;
}

.react-flow__resize-control.line.left, .react-flow__resize-control.line.right {
  width: 1px;
  height: 100%;
  top: 0;
  transform: translate(-50%);
}

.react-flow__resize-control.line.left {
  border-left-width: 1px;
  left: 0;
}

.react-flow__resize-control.line.right {
  border-right-width: 1px;
  left: 100%;
}

.react-flow__resize-control.line.top, .react-flow__resize-control.line.bottom {
  width: 100%;
  height: 1px;
  left: 0;
  transform: translate(0, -50%);
}

.react-flow__resize-control.line.top {
  border-top-width: 1px;
  top: 0;
}

.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}

.react-flow__edge-textbg {
  fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}

.react-flow__edge-text {
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/*# sourceMappingURL=_02tua75._.css.map*/