/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --canvas: #080a0d;
  --canvas-raised: #0c0f14;
  --surface: #11151b;
  --surface-raised: #151a22;
  --surface-hover: #1a2029;
  --surface-strong: #202731;
  --border: #252d38;
  --border-strong: #35404e;
  --border-soft: #1b222b;
  --text: #f1f4f7;
  --text-muted: #98a3b1;
  --text-faint: #6f7b89;
  --accent: #8fafff;
  --accent-strong: #4c68e3;
  --accent-surface: #18223a;
  --positive: #70d7ad;
  --positive-surface: #122a24;
  --warning: #e7bd76;
  --warning-surface: #2c2416;
  --danger: #ef8d91;
  --danger-surface: #321a1d;
  --sidebar-width: 288px;
  --topbar-height: 68px;
  --crm-shell-max-width: clamp(1760px, 92vw, 3200px);
  --crm-page-max-width: clamp(1480px, 88vw, 3000px);
  --crm-form-page-max-width: clamp(1480px, 78vw, 2200px);
  --crm-shell-inline-padding: clamp(20px, 2vw, 56px);
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 15px;
  --shadow-panel: 0 18px 48px #00000038;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  min-width: 320px;
}

body {
  background: var(--canvas);
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

button, input, select, textarea {
  color: inherit;
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

input, select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0d1117;
  outline: none;
}

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 2px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  padding-right: 30px !important;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  flex: none;
  width: 18px;
  height: 18px;
  display: block;
}

code, pre, kbd {
  font-family: var(--font-mono);
}

code {
  overflow-wrap: anywhere;
}

::selection {
  background: var(--accent-surface);
  color: var(--accent-strong);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0e12;
}

::-webkit-scrollbar-thumb {
  background: #333d49;
  border: 2px solid #0b0e12;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #465364;
}

.crm-shell {
  background: radial-gradient(circle at top left,
      #8fafff14,
      transparent 34rem),
    var(--canvas);
  min-height: 100vh;
}

.crm-shell--bare {
  background: var(--canvas);
}

.crm-main {
  width: 100%;
  max-width: var(--crm-shell-max-width);
  min-height: calc(100vh - 76px);
  padding: 28px var(--crm-shell-inline-padding) 72px;
  margin: 0 auto;
}

.crm-main--bare {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.crm-navbar {
  z-index: 90;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #080a0deb;
  border-bottom: 1px solid #ffffff12;
  position: sticky;
  top: 0;
}

.crm-navbar__inner {
  width: 100%;
  max-width: var(--crm-shell-max-width);
  height: 76px;
  padding: 0 var(--crm-shell-inline-padding);
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  display: flex;
  position: relative;
}

.crm-navbar__brand {
  flex: none;
  align-items: center;
  width: 92px;
  height: 52px;
  display: inline-flex;
}

.crm-navbar__brand img {
  object-fit: contain;
  width: 92px;
  height: auto;
}

.crm-navbar__nav {
  align-items: center;
  gap: 8px;
  display: flex;
}

.crm-navbar__nav-button {
  color: #828a96;
  letter-spacing: 0;
  background: none;
  border: 1px solid #0000;
  border-radius: 13px;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 660;
  transition: background .14s, border-color .14s, color .14s;
  display: inline-flex;
}

.crm-navbar__nav-button:hover, .crm-navbar__nav-button.is-active {
  color: var(--text);
  background: #1a1c20;
  border-color: #ffffff0a;
}

.crm-navbar__actions {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
  position: relative;
}

.crm-navbar__search {
  width: min(320px, 28vw);
  min-width: 220px;
  position: relative;
}

.crm-navbar__search > svg {
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
}

.crm-navbar__search input {
  width: 100%;
  height: 42px;
  color: var(--text);
  background: #0f1318;
  border: 1px solid #222a34;
  border-radius: 12px;
  padding: 0 14px 0 39px;
  font-size: 13px;
}

.crm-navbar__search input::placeholder {
  color: #697482;
}

.crm-navbar__search input:focus {
  background: #111720;
  border-color: #3c4c6b;
}

.crm-navbar__search-results, .crm-navbar__account-menu {
  z-index: 120;
  background: linear-gradient(#ffffff09, #0000 30%), #17191d;
  border: 1px solid #262d37;
  border-radius: 14px;
  position: absolute;
  top: calc(100% + 12px);
  overflow: hidden;
  box-shadow: 0 24px 70px #0000006b;
}

.crm-navbar__search-results {
  width: min(420px, 100vw - 36px);
  padding: 7px;
  right: 0;
}

.crm-navbar__search-result {
  min-height: 54px;
  color: var(--text);
  border-radius: 9px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 11px;
  display: flex;
}

.crm-navbar__search-result:hover {
  background: #22262b;
}

.crm-navbar__search-result span {
  font-size: 13px;
  font-weight: 650;
}

.crm-navbar__search-result small {
  color: var(--text-faint);
  font-size: 10px;
}

.crm-navbar__search-empty {
  color: var(--text-faint);
  padding: 15px 12px;
  font-size: 12px;
  display: block;
}

.crm-navbar__admin-scope {
  background: #0f1318;
  border: 1px solid #242b35;
  border-radius: 12px;
  flex: 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(430px, 32vw);
  padding: 3px;
  display: flex;
  position: relative;
}

.crm-navbar__admin-scope--mobile {
  display: none;
}

.crm-navbar__admin-scope select {
  width: 138px;
  min-width: 0;
  height: 34px;
  color: var(--text);
  text-overflow: ellipsis;
  background: #151a21;
  border: 1px solid #0000;
  border-radius: 8px;
  padding: 0 26px 0 9px;
  font-size: 12px;
  font-weight: 620;
}

.crm-navbar__admin-scope select:focus {
  border-color: #3c4c6b;
}

.crm-navbar__admin-scope button {
  height: 34px;
  color: var(--text);
  letter-spacing: 0;
  background: #1b222c;
  border: 1px solid #2d3541;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 680;
  display: inline-flex;
}

.crm-navbar__admin-scope button:hover:not(:disabled) {
  background: #243042;
  border-color: #445167;
}

.crm-navbar__admin-scope button:disabled {
  color: #687280;
  cursor: not-allowed;
}

.crm-navbar__admin-scope-panel {
  z-index: 125;
  width: min(430px, 100vw - 32px);
  box-shadow: var(--shadow-panel);
  background: #10151c;
  border: 1px solid #2b3441;
  border-radius: 10px;
  gap: 8px;
  padding: 10px;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.crm-navbar__admin-scope-message {
  color: var(--warning);
  margin: 0;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.crm-navbar__admin-scope-proof {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  display: grid;
}

.crm-navbar__admin-scope-proof input {
  width: 100%;
  min-width: 0;
  height: 34px;
  color: var(--text);
  background: #151a21;
  border-color: #293340;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 580;
}

.crm-navbar__admin-scope-proof input::placeholder {
  color: var(--text-faint);
}

.crm-navbar__account {
  flex: none;
  position: relative;
}

.crm-navbar__account-button, .crm-navbar__mobile-toggle {
  width: 42px;
  height: 42px;
  color: var(--text-muted);
  background: #11151b;
  border: 1px solid #242b35;
  border-radius: 12px;
  place-items: center;
  transition: background .14s, border-color .14s, color .14s;
  display: inline-grid;
}

.crm-navbar__account-button:hover, .crm-navbar__account-button.is-active, .crm-navbar__mobile-toggle:hover {
  color: var(--text);
  background: #1a2029;
  border-color: #3a4655;
}

.crm-navbar__account-button svg, .crm-navbar__mobile-toggle svg {
  width: 18px;
  height: 18px;
}

.crm-navbar__account-menu {
  gap: 4px;
  width: 210px;
  padding: 7px;
  display: grid;
  right: 0;
}

.crm-navbar__account-link {
  min-height: 44px;
  color: var(--text-muted);
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 640;
  display: flex;
}

.crm-navbar__account-link:hover, .crm-navbar__account-link.is-active {
  color: var(--text);
  background: #22262b;
}

.crm-navbar__account-link svg {
  color: #8694a6;
  width: 16px;
  height: 16px;
}

.crm-navbar__mobile-toggle {
  display: none;
}

.crm-navbar__mega {
  --crm-navbar-mega-max-height: min(75vh, calc(100vh - 112px));
  z-index: 110;
  width: min(1120px, 100vw - 176px);
  height: var(--crm-navbar-mega-max-height);
  box-sizing: border-box;
  background: radial-gradient(circle at 35% 100%, #314b8233, #0000 30rem), linear-gradient(#1c1e22, #181a1e);
  border: 1px solid #24282f;
  border-radius: 16px;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: 28px;
  max-height: 75vh;
  padding: 26px;
  animation: .13s ease-out crm-menu-reveal;
  display: grid;
  position: absolute;
  top: calc(100% + 14px);
  left: 128px;
  overflow: hidden;
  box-shadow: 0 34px 90px #0000007a;
}

.crm-navbar__mega:before {
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, #ffffff0a, #0000 35%);
  position: absolute;
  inset: 0;
}

.crm-navbar__mega-feature, .crm-navbar__mega-subcategories {
  z-index: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.crm-navbar__mega-feature {
  border-right: 1px solid #30343b;
  flex-direction: column;
  max-height: 100%;
  padding-right: 24px;
  display: flex;
  overflow: hidden;
}

.crm-navbar__mega-feature > strong, .crm-navbar__mobile-panel h2 {
  color: #888f9a;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 760;
}

.crm-navbar__mega-feature > p {
  max-width: 410px;
  color: var(--text-muted);
  flex: none;
  margin: 8px 0 20px;
  font-size: 14px;
  line-height: 1.55;
}

.crm-navbar__mega-categories {
  overscroll-behavior: contain;
  vertical-align: top;
  flex: 0 auto;
  align-items: start;
  gap: 8px;
  min-height: 0;
  padding-right: 3px;
  display: grid;
  overflow-y: auto;
}

.crm-navbar__mega-category {
  appearance: none;
  width: 100%;
  min-height: 78px;
  max-height: 96px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  transition: background .14s, border-color .14s;
  display: grid;
}

.crm-navbar__mega-category-icon {
  color: #aab4c2;
  background: #252a2f;
  border-radius: 8px;
  place-items: center;
  width: 44px;
  height: 44px;
  transition: background .14s, color .14s;
  display: grid;
}

.crm-navbar__mega-category:hover .crm-navbar__mega-category-icon, .crm-navbar__mega-category.is-active .crm-navbar__mega-category-icon {
  background: var(--accent-strong);
  color: #eee;
}

.crm-navbar__mega-category-icon svg {
  width: 21px;
  height: 21px;
}

.crm-navbar__mega-category-copy, .crm-navbar__mega-category-copy strong, .crm-navbar__mega-category-copy small {
  min-width: 0;
  display: block;
}

.crm-navbar__mega-category-copy strong {
  overflow-wrap: anywhere;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 690;
  transition: color .14s;
}

.crm-navbar__mega-category-copy small {
  color: #8d949d;
  max-width: 320px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  transition: color .14s;
}

.crm-navbar__mega-category:hover .crm-navbar__mega-category-copy strong, .crm-navbar__mega-category.is-active .crm-navbar__mega-category-copy strong {
  color: #b2beff;
}

.crm-navbar__mega-subcategories {
  overscroll-behavior: contain;
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}

.crm-navbar__mega-subcategory-list {
  grid-auto-columns: minmax(238px, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--crm-navbar-subcategory-rows, 10),
    minmax(36px, auto));
  align-content: start;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.crm-navbar__mega-subcategory-list li {
  min-width: 0;
}

.crm-navbar__mega-subcategory-list a {
  color: #f0f2f4;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 640;
  display: flex;
}

.crm-navbar__mega-subcategory-list a:hover, .crm-navbar__mega-subcategory-list a.is-active {
  color: var(--accent-strong);
}

.crm-navbar__mega-subcategory-list a svg {
  color: #696f78;
  opacity: 0;
  width: 14px;
  height: 14px;
  transition: opacity .12s, transform .12s;
  transform: translateX(-4px);
}

.crm-navbar__mega-subcategory-list a:hover svg, .crm-navbar__mega-subcategory-list a.is-active svg {
  color: var(--accent-strong);
  opacity: 1;
  transform: translateX(0);
}

.crm-navbar__mobile-panel {
  z-index: 110;
  background: #17191d;
  border: 1px solid #262d37;
  border-radius: 16px;
  max-height: calc(100vh - 104px);
  padding: 18px;
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  overflow-y: auto;
  box-shadow: 0 24px 70px #0000006b;
}

.crm-navbar__mobile-panel section + section {
  border-top: 1px solid #2c3138;
  margin-top: 22px;
  padding-top: 18px;
}

.crm-navbar__mobile-panel h2 {
  margin: 0 0 13px;
}

.crm-navbar__mobile-group {
  padding: 12px 0;
}

.crm-navbar__mobile-group h3 {
  color: var(--text);
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 14px;
  display: flex;
}

.crm-navbar__mobile-group h3 svg {
  color: #8d9aae;
  width: 16px;
  height: 16px;
}

.crm-navbar__mobile-group div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  display: grid;
}

.crm-navbar__mobile-group a {
  min-height: 38px;
  color: var(--text-muted);
  background: #11151b;
  border-radius: 8px;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 620;
  display: flex;
}

.crm-navbar__mobile-group a:hover, .crm-navbar__mobile-group a.is-active {
  color: var(--text);
  background: #22262b;
}

@media (max-width: 1180px) {
  .crm-navbar__inner {
    gap: 18px;
    padding: 0 22px;
  }

  .crm-navbar__nav {
    gap: 4px;
  }

  .crm-navbar__nav-button {
    padding: 0 13px;
    font-size: 14px;
  }

  .crm-navbar__admin-scope {
    max-width: 330px;
  }

  .crm-navbar__admin-scope select {
    width: 108px;
  }

  .crm-navbar__mega {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    width: calc(100vw - 44px);
    left: 22px;
  }
}

@media (max-width: 980px) {
  .crm-navbar__inner {
    min-height: 76px;
  }

  .crm-navbar__nav, .crm-navbar__mega {
    display: none;
  }

  .crm-navbar__mobile-toggle {
    display: inline-grid;
  }

  .crm-navbar__search {
    width: min(340px, 100vw - 190px);
    min-width: 160px;
  }

  .crm-navbar__admin-scope {
    flex: auto;
    max-width: min(360px, 100vw - 300px);
  }

  .crm-navbar__admin-scope select {
    flex: 1 1 0;
    width: 0;
    min-width: 86px;
  }

  .crm-navbar__mobile-panel {
    display: block;
  }
}

@media (max-width: 720px) {
  .crm-main {
    padding: 22px 16px 56px;
  }

  .crm-main--bare {
    padding: 0;
  }

  .crm-navbar__inner {
    gap: 12px;
    padding: 0 14px;
  }

  .crm-navbar__brand {
    width: 74px;
    height: 44px;
  }

  .crm-navbar__brand img {
    width: 74px;
  }

  .crm-navbar__search {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .crm-navbar__actions > .crm-navbar__admin-scope {
    display: none;
  }

  .crm-navbar__mobile-panel .crm-navbar__admin-scope--mobile {
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    display: flex;
  }

  .crm-navbar__mobile-panel .crm-navbar__admin-scope--mobile select {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
  }

  .crm-navbar__mobile-panel .crm-navbar__admin-scope-panel {
    width: 100%;
    left: 0;
    right: auto;
  }

  .crm-navbar__mobile-panel .crm-navbar__admin-scope-proof {
    grid-template-columns: 1fr;
  }

  .crm-navbar__actions {
    gap: 8px;
  }

  .crm-navbar__account-button, .crm-navbar__mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .crm-navbar__mobile-panel {
    padding: 14px;
    left: 10px;
    right: 10px;
  }

  .crm-navbar__mobile-group div {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

@keyframes crm-menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.studio-root {
  min-height: 100vh;
}

.studio-sidebar {
  z-index: 50;
  width: var(--sidebar-width);
  border-right: 1px solid var(--border-soft);
  background: #0b0e12;
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.studio-sidebar__brand {
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  display: flex;
}

.studio-sidebar__brand-mark {
  background: var(--accent-surface);
  width: 38px;
  height: 38px;
  color: var(--accent-strong);
  border: 1px solid #344158;
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.studio-sidebar__brand-mark svg {
  width: 20px;
  height: 20px;
}

.studio-sidebar__brand > span:nth-child(2) {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.studio-sidebar__brand strong {
  letter-spacing: -.01em;
  font-size: 14px;
}

.studio-sidebar__brand small {
  color: var(--text-faint);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.studio-sidebar__close, .studio-topbar__menu {
  display: none !important;
}

.sidebar-search {
  align-items: center;
  margin: 14px 12px 10px;
  display: flex;
  position: relative;
}

.sidebar-search > svg {
  z-index: 1;
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  pointer-events: none;
  position: absolute;
  left: 11px;
}

.sidebar-search input {
  border-color: var(--border-soft);
  width: 100%;
  height: 38px;
  color: var(--text);
  background: #10141a;
  padding: 0 48px 0 34px;
  font-size: 12px;
}

.sidebar-search input::placeholder {
  color: #626e7b;
}

.sidebar-search kbd {
  color: var(--text-faint);
  background: #171c23;
  border: 1px solid #2e3742;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9px;
  position: absolute;
  right: 8px;
}

.schema-tree {
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 5px 9px 20px;
  overflow-y: auto;
}

.schema-tree__overview, .schema-tree__schema-row > a, .schema-tree__objects > a, .schema-tree__view {
  min-width: 0;
  color: var(--text-muted);
  align-items: center;
  transition: border-color .12s, background .12s, color .12s;
  display: flex;
}

.schema-tree__overview {
  border-radius: var(--radius-sm);
  border: 1px solid #0000;
  gap: 9px;
  height: 38px;
  margin-bottom: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 620;
}

.schema-tree__overview:hover, .schema-tree__overview.is-active {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text);
}

.schema-tree__overview.is-active {
  background: var(--accent-surface);
  color: var(--accent-strong);
  border-color: #33425e;
}

.schema-tree__overview svg {
  width: 15px;
  height: 15px;
}

.schema-tree__group {
  margin: 2px 0;
}

.schema-tree__schema-row {
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  display: grid;
}

.schema-tree__toggle {
  width: 25px;
  height: 34px;
  color: var(--text-faint);
  background: none;
  border: 0;
  place-items: center;
  display: grid;
}

.schema-tree__toggle:hover {
  color: var(--text);
}

.schema-tree__toggle svg {
  width: 13px;
  height: 13px;
  transition: transform .13s;
}

.schema-tree__toggle svg.is-rotated {
  transform: rotate(-90deg);
}

.schema-tree__schema-row > a {
  border-radius: 6px;
  gap: 8px;
  height: 34px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 630;
}

.schema-tree__schema-row > a:hover, .schema-tree__schema-row > a.is-active {
  background: var(--surface-raised);
  color: var(--text);
}

.schema-tree__schema-row > a svg {
  color: #7f8d9e;
  width: 14px;
  height: 14px;
}

.schema-tree__schema-row > a span {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.schema-tree__schema-row > a small {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 500;
}

.schema-tree__objects {
  margin: 0 0 4px 36px;
  padding: 1px 0 3px 9px;
  position: relative;
}

.schema-tree__objects:before {
  content: "";
  background: #222a34;
  width: 1px;
  position: absolute;
  inset: 0 auto 0 0;
}

.schema-tree__objects > a, .schema-tree__view {
  border-radius: 5px;
  gap: 7px;
  height: 29px;
  padding: 0 7px;
  font-size: 11px;
}

.schema-tree__objects > a:hover, .schema-tree__objects > a.is-active {
  color: var(--text);
  background: #151a21;
}

.schema-tree__objects > a.is-active {
  color: var(--accent-strong);
}

.schema-tree__objects svg {
  color: #677483;
  width: 12px;
  height: 12px;
}

.schema-tree__objects span {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.schema-tree__objects i {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  border: 1px solid #303a46;
  border-radius: 4px;
  place-items: center;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  display: grid;
}

.schema-tree__view {
  opacity: .72;
}

.schema-tree__empty {
  color: var(--text-faint);
  text-align: center;
  padding: 20px 10px;
  font-size: 12px;
}

.studio-sidebar__footer {
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 10px;
  display: flex;
}

.studio-workspace {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.studio-topbar {
  z-index: 40;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: #0a0d11f0;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  display: flex;
  position: sticky;
  top: 0;
}

.studio-topbar__left, .studio-topbar__right {
  align-items: center;
  display: flex;
}

.studio-topbar__left {
  gap: 11px;
}

.studio-topbar__left > div:last-child {
  flex-direction: column;
  display: flex;
}

.studio-topbar__left strong {
  letter-spacing: -.01em;
  font-size: 13px;
}

.studio-topbar__left span {
  color: var(--text-faint);
  font-size: 10px;
}

.studio-topbar__right {
  gap: 8px;
}

.connection-chip {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0f1318;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 7px 10px;
  display: flex;
}

.connection-chip > span {
  background: var(--text-faint);
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #6f7b891a;
}

.connection-chip.is-online > span {
  background: var(--positive);
  box-shadow: 0 0 0 4px #70d7ad1a;
}

.connection-chip.is-offline > span {
  background: var(--warning);
  box-shadow: 0 0 0 4px #e7bd761a;
}

.connection-chip > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.connection-chip strong {
  font-size: 10px;
  font-weight: 650;
}

.connection-chip small {
  max-width: 210px;
  color: var(--text-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.studio-main {
  width: 100%;
  max-width: var(--crm-shell-max-width);
  padding: 27px var(--crm-shell-inline-padding) 72px;
  margin: 0 auto;
}

.studio-overlay {
  display: none;
}

.icon-button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  flex: none;
  place-items: center;
  transition: background .12s, border-color .12s, color .12s;
  display: inline-grid;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

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

.button {
  border-radius: var(--radius-sm);
  letter-spacing: .01em;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 650;
  transition: background .12s, border-color .12s, color .12s, transform .12s;
  display: inline-flex;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button svg {
  width: 15px;
  height: 15px;
}

.button--primary {
  color: #fff;
  background: #314b82;
  border-color: #526da9;
}

.button--primary:hover:not(:disabled) {
  background: #3c5994;
  border-color: #6f8ac7;
}

.button--secondary {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text-muted);
}

.button--secondary:hover:not(:disabled), .button--secondary.is-active {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.button--secondary.is-active {
  color: var(--accent-strong);
  border-color: #3c4c6b;
}

.button--ghost {
  color: var(--text-muted);
  background: none;
}

.button--ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.button--small {
  min-height: 30px;
  padding: 0 9px;
  font-size: 10px;
}

.button--wide {
  width: 100%;
  min-height: 43px;
}

.button-count {
  background: #ffffff14;
  border-radius: 9px;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 9px;
  display: inline-grid;
}

.status-badge {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  min-height: 21px;
  color: var(--text-muted);
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.status-badge--positive {
  background: var(--positive-surface);
  color: var(--positive);
  border-color: #295547;
}

.status-badge--warning {
  background: var(--warning-surface);
  color: var(--warning);
  border-color: #544326;
}

.status-badge--danger {
  background: var(--danger-surface);
  color: var(--danger);
  border-color: #623138;
}

.status-badge--accent {
  background: var(--accent-surface);
  color: var(--accent-strong);
  border-color: #394c75;
}

.is-spinning {
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-stack, .tab-stack {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.page-stack {
  gap: 22px;
}

.crm-fluid-page, .crm-fluid-form-page {
  width: 100%;
  margin-inline: auto;
}

.crm-fluid-page {
  max-width: var(--crm-page-max-width);
}

.crm-fluid-form-page {
  max-width: var(--crm-form-page-max-width);
}

.tab-stack {
  gap: 18px;
}

.page-heading, .object-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  display: flex;
}

.page-heading--hero {
  align-items: center;
  min-height: 120px;
  padding: 7px 3px;
}

.page-heading h1, .object-heading h1 {
  color: var(--text);
  letter-spacing: -.04em;
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.08;
}

.page-heading p, .object-heading p {
  max-width: 790px;
  color: var(--text-muted);
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 750;
  display: block;
}

.page-heading__actions, .object-heading__badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  display: flex;
}

.source-hash {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-faint);
  padding: 7px 9px;
  font-size: 9px;
}

.breadcrumbs ol {
  color: var(--text-faint);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 10px;
  list-style: none;
  display: flex;
}

.breadcrumbs li {
  align-items: center;
  gap: 6px;
  display: flex;
}

.breadcrumbs li:not(:last-child):after {
  color: #46515f;
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--text);
}

.object-heading {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--canvas-raised);
  align-items: center;
  min-height: 112px;
  padding: 18px 20px;
}

.object-heading__icon {
  background: var(--accent-surface);
  width: 50px;
  height: 50px;
  color: var(--accent-strong);
  border: 1px solid #344158;
  border-radius: 12px;
  flex: none;
  place-items: center;
  display: grid;
}

.object-heading__icon svg {
  width: 24px;
  height: 24px;
}

.object-heading__content {
  flex: 1;
  min-width: 0;
}

.object-heading__title > span {
  color: var(--text-faint);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.object-heading__title h1 {
  font-family: var(--font-mono);
  letter-spacing: -.04em;
  font-size: clamp(23px, 2.5vw, 32px);
}

.object-heading__content p {
  margin-top: 7px;
  font-size: 12px;
}

.object-heading__meta {
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 9px;
  display: flex;
}

.object-heading__meta code {
  color: var(--accent-strong);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.metric-grid--overview, .metric-grid--table {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
  padding: 15px 16px;
}

.metric-card__header {
  color: var(--text-faint);
  letter-spacing: .09em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
}

.metric-card__icon {
  color: #77869a;
}

.metric-card__icon svg {
  width: 15px;
  height: 15px;
}

.metric-card__value {
  color: var(--text);
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 12px;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 640;
  line-height: 1;
  overflow: hidden;
}

.metric-card__detail {
  min-height: 16px;
  color: var(--text-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 8px;
  font-size: 9px;
  overflow: hidden;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  display: grid;
}

.content-grid--wide-left {
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, .9fr);
}

.panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.panel__header {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 14px 17px;
  display: flex;
}

.panel__header > div:first-child {
  min-width: 0;
}

.panel__header .eyebrow {
  margin-bottom: 2px;
}

.panel__header h2 {
  letter-spacing: -.015em;
  margin: 0;
  font-size: 14px;
  font-weight: 640;
}

.panel__header > span, .panel__header > svg {
  color: var(--text-faint);
  white-space: nowrap;
  font-size: 9px;
}

.panel__header > svg {
  width: 17px;
  height: 17px;
}

.panel__footnote {
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  margin: 0;
  padding: 13px 17px;
  font-size: 10px;
}

.panel--compact {
  box-shadow: none;
}

.panel--data {
  overflow: visible;
}

.schema-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.schema-card {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  min-width: 0;
  padding: 15px 16px;
  transition: background .13s;
  display: grid;
}

.schema-card:nth-child(2n) {
  border-right: 0;
}

.schema-card:hover {
  background: var(--surface-hover);
}

.schema-card__icon {
  border: 1px solid var(--border);
  background: var(--canvas-raised);
  color: #8998aa;
  border-radius: 8px;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.schema-card__icon svg {
  width: 15px;
  height: 15px;
}

.schema-card__content {
  min-width: 0;
}

.schema-card__content strong, .schema-card__content code {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.schema-card__content strong {
  font-size: 12px;
}

.schema-card__content code {
  color: var(--accent);
  margin-top: 1px;
  font-size: 9px;
}

.schema-card__content p {
  color: var(--text-faint);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 7px 0 0;
  font-size: 9px;
  display: -webkit-box;
  overflow: hidden;
}

.schema-card__counts {
  color: var(--text-faint);
  text-align: right;
  flex-direction: column;
  gap: 4px;
  font-size: 8px;
  display: flex;
}

.schema-card__counts strong {
  color: var(--text-muted);
  font-size: 10px;
}

.detail-list, .property-grid {
  margin: 0;
}

.detail-list {
  padding: 6px 16px 10px;
}

.detail-list > div {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 41px;
  display: flex;
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--text-faint);
  font-size: 10px;
}

.detail-list dd {
  max-width: 60%;
  color: var(--text-muted);
  text-align: right;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  font-size: 10px;
  display: flex;
}

.detail-list code {
  color: var(--accent-strong);
  font-size: 9px;
}

.configuration-note {
  border-radius: var(--radius-sm);
  background: #201c14;
  border: 1px solid #3d3524;
  flex-direction: column;
  gap: 3px;
  margin: 4px 12px 13px;
  padding: 10px 11px;
  display: flex;
}

.configuration-note strong {
  color: var(--warning);
  font-size: 10px;
}

.configuration-note span {
  color: #b3a891;
  font-size: 9px;
}

.object-list__row {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 34px minmax(130px, .8fr) minmax(240px, 2fr) 80px 80px auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 9px 16px;
  transition: background .12s;
  display: grid;
}

.object-list__row:last-child {
  border-bottom: 0;
}

.object-list__row:hover {
  background: var(--surface-hover);
}

.object-list__icon {
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  color: var(--text-faint);
  border-radius: 7px;
  place-items: center;
  display: grid;
}

.object-list__icon svg {
  width: 14px;
  height: 14px;
}

.object-list__row > div {
  min-width: 0;
}

.object-list__row strong, .object-list__row small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.object-list__row strong {
  font-family: var(--font-mono);
  font-size: 10px;
}

.object-list__row small {
  color: var(--text-faint);
  font-size: 8px;
}

.object-list__row p {
  color: var(--text-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 9px;
  overflow: hidden;
}

.object-list__row > span:not(.object-list__icon):not(.status-badge) {
  color: var(--text-muted);
  text-align: right;
  font-size: 9px;
}

.metadata-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.metadata-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
}

.metadata-table th {
  border-bottom: 1px solid var(--border);
  height: 39px;
  color: var(--text-faint);
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  background: #0e1217;
  padding: 0 13px;
  font-size: 8px;
  font-weight: 730;
}

.metadata-table td {
  border-bottom: 1px solid var(--border-soft);
  min-height: 48px;
  color: var(--text-muted);
  vertical-align: middle;
  padding: 10px 13px;
}

.metadata-table tr:last-child td {
  border-bottom: 0;
}

.metadata-table tbody tr:hover td {
  background: #ffffff04;
}

.metadata-table code {
  color: #b6c3d3;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 360px;
  font-size: 9px;
  display: inline-block;
  overflow: hidden;
}

.metadata-table--objects {
  min-width: 900px;
}

.metadata-table--columns {
  min-width: 1100px;
}

.metadata-table--columns th:first-child, .metadata-table--columns td:first-child {
  width: 46px;
  color: var(--text-faint);
  text-align: right;
}

.metadata-table--columns td:nth-child(2) {
  min-width: 210px;
}

.metadata-table--columns td:nth-child(3) {
  min-width: 160px;
}

.metadata-table--columns td:nth-child(5) {
  min-width: 220px;
}

.object-link {
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: inline-flex;
}

.object-link > svg {
  color: #718096;
  width: 15px;
  height: 15px;
}

.object-link > span {
  min-width: 0;
}

.object-link strong, .object-link small {
  display: block;
}

.object-link strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
}

.object-link small {
  color: var(--text-faint);
  font-size: 8px;
}

.object-link:hover strong {
  color: var(--accent-strong);
}

.table-description {
  max-width: 580px;
  color: var(--text-faint);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.metadata-table__empty {
  text-align: center;
  height: 100px;
  color: var(--text-faint) !important;
}

.column-name {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.column-name strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
}

.column-name > span {
  gap: 4px;
  display: flex;
}

.compact-object-list {
  padding: 5px 14px 10px;
}

.compact-object-list > div {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  display: grid;
}

.compact-object-list > div:last-child {
  border-bottom: 0;
}

.compact-object-list > div > svg {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
}

.compact-object-list strong, .compact-object-list small {
  display: block;
}

.compact-object-list strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
}

.compact-object-list small {
  color: var(--text-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 9px;
  overflow: hidden;
}

.compact-object-list code {
  color: var(--text-faint);
  font-size: 8px;
}

.compact-object-list > p {
  color: var(--text-faint);
  text-align: center;
  margin: 0;
  padding: 24px 6px;
  font-size: 10px;
}

.compact-object-list--partitions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  display: grid;
}

.object-tabs {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0d1015;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  display: flex;
  overflow-x: auto;
}

.object-tabs a {
  min-height: 34px;
  color: var(--text-faint);
  border: 1px solid #0000;
  border-radius: 6px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 630;
  display: inline-flex;
}

.object-tabs a:hover {
  background: var(--surface-raised);
  color: var(--text-muted);
}

.object-tabs a.is-active {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.object-tabs small {
  min-width: 17px;
  height: 17px;
  color: var(--text-faint);
  background: #ffffff0e;
  border-radius: 8px;
  place-items: center;
  padding: 0 4px;
  font-size: 8px;
  display: inline-grid;
}

.tab-panel {
  animation: .16s ease-out reveal-panel;
}

@keyframes reveal-panel {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.property-grid > div {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 60px;
  padding: 11px 16px;
  display: flex;
}

.property-grid > div:nth-child(2n) {
  border-right: 0;
}

.property-grid dt {
  color: var(--text-faint);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
}

.property-grid dd {
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  font-size: 10px;
  display: flex;
}

.property-grid code {
  border: 1px solid var(--border-soft);
  background: var(--canvas-raised);
  color: #bcc9d9;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9px;
}

.relationship-list {
  padding: 12px;
}

.relationship-list article {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--canvas-raised);
  margin-bottom: 9px;
  padding: 12px;
}

.relationship-list article:last-child {
  margin-bottom: 0;
}

.relationship-list article > div:nth-child(2) {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  display: flex;
}

.relationship-list article > div:nth-child(2) strong {
  font-size: 9px;
}

.relationship-list article > div:nth-child(2) a, .relationship-list article > div:nth-child(2) code {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 9px;
}

.relationship-list article > div:nth-child(2) a:hover {
  text-decoration: underline;
}

.relationship-list__direction {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  display: grid;
}

.relationship-list__direction span {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 8px;
  overflow: hidden;
}

.relationship-list__direction i {
  color: var(--text-faint);
  font-style: normal;
}

.relationship-list article footer {
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  font-size: 8px;
  display: flex;
}

.definition-card-list {
  padding: 12px;
}

.definition-card-list > article {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--canvas-raised);
  margin-bottom: 11px;
  overflow: hidden;
}

.definition-card-list > article:last-child {
  margin-bottom: 0;
}

.definition-card-list article > header {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 55px;
  padding: 10px 13px;
  display: flex;
}

.definition-card-list article > header > div {
  align-items: center;
  gap: 9px;
  display: flex;
}

.definition-card-list article > header > div:first-child > svg {
  color: #8493a6;
  width: 16px;
  height: 16px;
}

.definition-card-list article > header strong, .definition-card-list article > header small {
  display: block;
}

.definition-card-list article > header strong {
  font-family: var(--font-mono);
  font-size: 10px;
}

.definition-card-list article > header small {
  color: var(--text-faint);
  font-size: 8px;
}

.definition-card-list article > pre, .definition-card-list article > footer {
  margin: 0;
  padding: 12px 13px;
}

.definition-card-list article > pre {
  color: #b8c4d2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 9px;
  line-height: 1.65;
  overflow-x: auto;
}

.definition-card-list article > footer {
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 8px;
  display: flex;
}

.definition-card-list article > footer > div {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  display: flex;
}

.definition-card-list article > footer code {
  color: var(--accent-strong);
  font-size: 8px;
}

.security-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  display: flex;
}

.security-banner.is-enabled {
  background: var(--positive-surface);
  border-color: #2a5148;
}

.security-banner.is-disabled {
  background: var(--warning-surface);
  border-color: #594729;
}

.security-banner > svg {
  width: 21px;
  height: 21px;
  color: var(--positive);
}

.security-banner.is-disabled > svg {
  color: var(--warning);
}

.security-banner strong, .security-banner span {
  display: block;
}

.security-banner strong {
  font-size: 11px;
}

.security-banner span {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 9px;
}

.security-enrollment-shell {
  min-height: 100vh;
}

.security-enrollment-topbar {
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 3vw, 34px);
  display: flex;
}

.security-enrollment-logo {
  object-fit: contain;
  width: 92px;
  height: auto;
  display: block;
}

.account-security-page {
  gap: 18px;
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
}

.account-security-page--enrollment {
  align-content: start;
  width: min(100% - 40px, 920px);
  padding-top: 32px;
  padding-bottom: 64px;
}

.page-header {
  gap: 8px;
  padding: 6px 0 8px;
  display: grid;
}

.page-header h1 {
  color: var(--text);
  letter-spacing: 0;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 28px;
  font-weight: 720;
  line-height: 1.15;
  display: flex;
}

.page-header h1 svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.page-header p {
  max-width: 720px;
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.security-enrollment-header {
  padding-top: 12px;
}

.security-eyebrow {
  width: fit-content;
  color: var(--accent-strong);
  letter-spacing: 0;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  display: inline-flex;
}

.security-eyebrow svg {
  width: 15px;
  height: 15px;
}

.security-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #121821, var(--surface));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.security-section > h2 {
  border-bottom: 1px solid var(--border-soft);
  min-height: 56px;
  color: var(--text);
  letter-spacing: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  display: flex;
}

.security-section > h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.security-section > p, .security-section .mfa-setup, .security-section > .form-stack, .security-section > .button-primary, .security-section > .button-secondary, .security-section > .section-actions, .security-section > .recovery-codes, .security-section > .form-message, .security-section > .sessions-table {
  margin: 18px;
}

.section-actions {
  justify-content: flex-end;
  display: flex;
}

.form-stack {
  gap: 14px;
  display: grid;
}

.field {
  gap: 7px;
  min-width: 0;
  display: grid;
}

.field-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 680;
  line-height: 16px;
}

.control-wrap {
  display: block;
  position: relative;
}

.field-control {
  border-color: var(--border);
  background: var(--canvas-raised);
  width: 100%;
  min-height: 44px;
  color: var(--text);
  letter-spacing: 0;
  padding: 0 12px;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field-control::placeholder {
  color: var(--text-faint);
}

.field-control:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
  background: #10151d;
  box-shadow: 0 0 0 4px #8fafff1f;
}

.code-entry {
  max-width: 180px;
  font-family: var(--font-mono);
  text-align: center;
  font-size: 20px;
  font-weight: 720;
}

.password-toggle {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  min-height: 30px;
  color: var(--text-muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 7px;
  right: 7px;
}

.form-message {
  border-radius: var(--radius-sm);
  background: var(--danger-surface);
  color: var(--danger);
  border: 1px solid #613039;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 17px;
  display: none;
}

.form-message.is-visible {
  display: flex;
}

.form-message.is-success {
  background: var(--positive-surface);
  color: var(--positive);
  border-color: #2a5148;
}

.form-message svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.button-primary, .button-secondary {
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 760;
  line-height: 16px;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  display: inline-flex;
}

.button-primary {
  border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--border));
  color: #f8fbff;
  background: #26395f;
}

.button-primary:hover:not(:disabled) {
  background: #2d4370;
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--canvas-raised);
  color: var(--text-muted);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.button-primary svg, .button-secondary svg {
  width: 16px;
  height: 16px;
}

.mfa-setup, .recovery-codes, .recovery-ack {
  gap: 14px;
  display: grid;
}

.mfa-setup p, .security-section > p, .form-description, .security-muted {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.secret-box, .manual-key-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--canvas-raised);
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  display: flex;
}

.secret-box code, .manual-key-box code, .recovery-code-grid code, .recovery-codes code {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.manual-key-box > svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 2px;
}

.manual-key-box strong, .manual-key-box code {
  display: block;
}

.manual-key-box strong {
  color: var(--text);
  margin-bottom: 4px;
  font-size: 12px;
}

.recovery-codes ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.recovery-codes li {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  background: var(--canvas-raised);
  padding: 9px 10px;
}

.sessions-table {
  border-collapse: collapse;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  width: calc(100% - 36px);
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
}

.sessions-table th, .sessions-table td {
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
  padding: 11px 12px;
}

.sessions-table th {
  background: var(--canvas-raised);
  color: var(--text);
  font-weight: 720;
}

.sessions-table tr:last-child td {
  border-bottom: 0;
}

.session-revoked {
  color: var(--text-faint);
}

.enrollment-panel {
  gap: 18px;
  padding: 20px;
  display: grid;
}

.enrollment-panel__status {
  align-items: flex-start;
  gap: 13px;
  display: flex;
}

.enrollment-panel__status > span {
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--accent-surface);
  width: 42px;
  height: 42px;
  color: var(--accent-strong);
  flex: none;
  place-items: center;
  display: grid;
}

.enrollment-panel__status strong, .enrollment-panel__status p {
  margin: 0;
  display: block;
}

.enrollment-panel__status strong {
  color: var(--text);
  font-size: 15px;
}

.enrollment-panel__status p {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 12px;
}

.enrollment-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.totp-setup-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  display: grid;
}

.totp-qr-frame {
  justify-items: center;
  gap: 10px;
  display: grid;
}

.totp-qr-frame canvas {
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 10px solid #f8fafc;
  width: 232px;
  height: 232px;
}

.totp-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  display: grid;
}

.totp-meta div {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  background: var(--canvas-raised);
  min-width: 0;
  padding: 8px 9px;
}

.totp-meta dt, .totp-meta dd {
  margin: 0;
}

.totp-meta dt {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 720;
}

.totp-meta dd {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
}

.recovery-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.recovery-code-grid code {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  background: var(--canvas-raised);
  padding: 10px;
}

.acknowledgement-control {
  color: var(--text-muted);
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.acknowledgement-control input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

@media (max-width: 760px) {
  .security-enrollment-topbar {
    min-height: 64px;
  }

  .security-enrollment-logo {
    width: 76px;
  }

  .account-security-page {
    gap: 14px;
  }

  .account-security-page--enrollment {
    width: min(100% - 28px, 920px);
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .page-header h1 {
    font-size: 23px;
  }

  .security-section > p, .security-section .mfa-setup, .security-section > .form-stack, .security-section > .button-primary, .security-section > .button-secondary, .security-section > .section-actions, .security-section > .recovery-codes, .security-section > .form-message, .security-section > .sessions-table {
    margin: 14px;
  }

  .totp-setup-grid, .recovery-code-grid, .recovery-codes ul, .totp-meta {
    grid-template-columns: 1fr;
  }

  .sessions-table {
    width: calc(100% - 28px);
    display: block;
    overflow-x: auto;
  }
}

.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  display: grid;
}

.policy-grid > article {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--canvas-raised);
  overflow: hidden;
}

.policy-grid article > header {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 10px 12px;
  display: flex;
}

.policy-grid article > header > div {
  align-items: center;
  gap: 9px;
  display: flex;
}

.policy-grid article > header svg {
  width: 15px;
  height: 15px;
  color: var(--positive);
}

.policy-grid article > header strong, .policy-grid article > header small {
  display: block;
}

.policy-grid article > header strong {
  font-family: var(--font-mono);
  font-size: 9px;
}

.policy-grid article > header small {
  color: var(--text-faint);
  font-size: 8px;
}

.policy-grid dl {
  margin: 0;
}

.policy-grid dl > div {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  display: grid;
}

.policy-grid dl > div:last-child {
  border-bottom: 0;
}

.policy-grid dt {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 700;
}

.policy-grid dd {
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  margin: 0;
  display: flex;
}

.policy-grid code, .policy-grid pre {
  color: #b6c4d5;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 8px;
  line-height: 1.55;
}

.code-block {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  background: #0a0d11;
  overflow: hidden;
}

.code-block__toolbar {
  border-bottom: 1px solid var(--border-soft);
  min-height: 48px;
  color: var(--text-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #10141a;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
}

.code-block__pre {
  color: #bec9d8;
  tab-size: 2;
  max-height: 72vh;
  margin: 0;
  padding: 20px;
  font-size: 10px;
  line-height: 1.65;
  overflow: auto;
}

.data-explorer {
  min-width: 0;
}

.data-explorer__toolbar {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
}

.toolbar-group {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.toolbar-group--right {
  justify-content: flex-end;
}

.switch-control {
  color: var(--text-faint);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  display: inline-flex;
}

.switch-control input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.switch-control > span {
  border: 1px solid var(--border-strong);
  background: var(--canvas-raised);
  border-radius: 9px;
  width: 28px;
  height: 16px;
  transition: background .12s, border-color .12s;
  position: relative;
}

.switch-control > span:after {
  content: "";
  background: #75808d;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: transform .12s, background .12s;
  position: absolute;
  top: 2px;
  left: 2px;
}

.switch-control input:checked + span {
  background: #24365d;
  border-color: #4c6595;
}

.switch-control input:checked + span:after {
  background: var(--accent-strong);
  transform: translateX(12px);
}

.page-size-control {
  color: var(--text-faint);
  align-items: center;
  gap: 7px;
  font-size: 9px;
  display: inline-flex;
}

.page-size-control select {
  border-color: var(--border);
  background-color: var(--surface-raised);
  height: 32px;
  color: var(--text-muted);
  padding: 0 27px 0 9px;
  font-size: 10px;
}

.query-panel {
  border-bottom: 1px solid var(--border-soft);
  background: #0e1217;
  padding: 13px;
}

.query-panel__header {
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  display: flex;
}

.query-panel__header strong, .query-panel__header span {
  display: block;
}

.query-panel__header strong {
  font-size: 11px;
}

.query-panel__header span {
  color: var(--text-faint);
  margin-top: 2px;
  font-size: 9px;
}

.segmented-control {
  border: 1px solid var(--border);
  background: var(--canvas);
  border-radius: 7px;
  padding: 3px;
  display: inline-flex;
}

.segmented-control button {
  height: 26px;
  color: var(--text-faint);
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 0 9px;
  font-size: 9px;
}

.segmented-control button.is-active {
  background: var(--surface-strong);
  color: var(--text);
}

.filter-list {
  flex-direction: column;
  gap: 7px;
  margin-bottom: 9px;
  display: flex;
}

.filter-row {
  grid-template-columns: minmax(150px, .8fr) minmax(180px, .9fr) minmax(220px, 2fr) 36px;
  align-items: center;
  gap: 7px;
  display: grid;
}

.filter-row select, .filter-row input, .filter-row textarea, .filter-row__no-value {
  border-color: var(--border);
  background-color: var(--surface);
  width: 100%;
  min-height: 36px;
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 10px;
}

.filter-row textarea {
  resize: vertical;
}

.filter-row__no-value {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  align-items: center;
  display: flex;
}

.query-panel__empty {
  color: var(--text-faint);
  margin: 0;
  padding: 8px 2px;
  font-size: 9px;
}

.column-picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-height: 330px;
  padding-right: 3px;
  display: grid;
  overflow-y: auto;
}

.column-picker-option {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: pointer;
  border-radius: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  display: grid;
}

.column-picker-option:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.column-picker-option input {
  accent-color: #6587d2;
  width: 14px;
  height: 14px;
}

.column-picker-option > span {
  min-width: 0;
}

.column-picker-option strong, .column-picker-option small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.column-picker-option strong {
  font-family: var(--font-mono);
  font-size: 9px;
}

.column-picker-option small {
  color: var(--text-faint);
  font-size: 8px;
}

.column-picker-option i {
  color: var(--accent);
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
}

.inline-alert {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  font-size: 9px;
  display: flex;
}

.inline-alert--error {
  background: var(--danger-surface);
  color: var(--danger);
  border-color: #5e3035;
}

.inline-alert code {
  color: #ba8589;
  margin-left: auto;
  font-size: 8px;
}

.data-grid-shell {
  border-bottom: 1px solid var(--border-soft);
  background: #0c0f13;
  min-height: 250px;
  position: relative;
}

.data-grid-scroll {
  max-width: 100%;
  max-height: min(64vh, 720px);
  overflow: auto;
}

.data-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-family: var(--font-mono);
  font-size: 9px;
}

.data-grid th {
  z-index: 4;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: #10141a;
  min-width: 160px;
  height: 48px;
  padding: 0;
  position: sticky;
  top: 0;
}

.data-grid th > button {
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  text-align: left;
  background: none;
  border: 0;
  grid-template-rows: auto auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 1px 8px;
  padding: 0 11px;
  display: grid;
}

.data-grid th > button:not(:disabled):hover, .data-grid th > button.is-sorted {
  color: var(--text);
  background: #171d25;
}

.data-grid th > button span {
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 1;
  font-size: 9px;
  font-weight: 700;
  overflow: hidden;
}

.data-grid th > button small {
  color: var(--text-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 1;
  font-size: 7px;
  font-weight: 400;
  overflow: hidden;
}

.data-grid th > button i {
  color: var(--accent-strong);
  grid-area: 1 / 2 / span 2;
  align-self: center;
  font-size: 12px;
  font-style: normal;
}

.data-grid td {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: #aeb9c7;
  white-space: nowrap;
  max-width: 360px;
  height: 37px;
  padding: 0 11px;
}

.data-grid tbody tr:hover td {
  background: #11161c;
}

.data-grid td > span {
  text-overflow: ellipsis;
  max-width: 340px;
  display: block;
  overflow: hidden;
}

.data-grid td.is-null > span {
  color: #5e6976;
  font-style: italic;
}

.data-grid td.is-structured > span {
  color: #aebde0;
}

.data-grid__row-number {
  left: 0;
  z-index: 5 !important;
  border-right-color: var(--border) !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  color: var(--text-faint) !important;
  text-align: right !important;
  background: #0e1217 !important;
  position: sticky !important;
}

.data-grid thead .data-grid__row-number {
  z-index: 7 !important;
}

.data-grid__row-number button {
  width: 100%;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-align: right;
  background: none;
  border: 0;
  padding: 5px;
  font-size: 8px;
}

.data-grid__row-number button:hover {
  color: var(--accent-strong);
}

.data-grid__empty {
  height: 150px !important;
  color: var(--text-faint) !important;
  text-align: center !important;
}

.data-grid__loading {
  z-index: 9;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0a0d11b8;
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: flex;
  position: absolute;
  inset: 0;
}

.data-grid__loading span, .page-loading span {
  background: var(--accent);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: .9s ease-in-out infinite alternate loading-dot;
}

.data-grid__loading span:nth-child(2), .page-loading span:nth-child(2) {
  animation-delay: .14s;
}

.data-grid__loading span:nth-child(3), .page-loading span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes loading-dot {
  from {
    opacity: .28;
    transform: translateY(1px);
  }

  to {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.data-explorer__footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 9px 12px;
  display: flex;
}

.query-metrics, .pagination-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.query-metrics {
  color: var(--text-faint);
  font-size: 8px;
}

.query-metrics strong {
  color: var(--text-muted);
  font-size: 9px;
}

.query-metrics span:not(:first-child):before {
  color: #39434f;
  content: "·";
  margin-right: 10px;
}

.pagination-controls > span {
  min-width: 55px;
  color: var(--text-faint);
  text-align: center;
  font-size: 9px;
}

.modal-layer {
  z-index: 100;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #030507c2;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.row-inspector {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0f1318;
  flex-direction: column;
  width: min(850px, 100%);
  max-height: min(840px, 100vh - 40px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 30px 100px #0009;
}

.row-inspector > header, .row-inspector > footer {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.row-inspector > footer {
  border-top: 1px solid var(--border-soft);
  border-bottom: 0;
  justify-content: flex-end;
}

.row-inspector > header strong, .row-inspector > header span {
  display: block;
}

.row-inspector > header strong {
  font-size: 12px;
}

.row-inspector > header span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: 2px;
  font-size: 8px;
}

.row-inspector__body {
  min-height: 0;
  padding: 8px 14px 14px;
  overflow-y: auto;
}

.row-inspector__field {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1.65fr);
  gap: 14px;
  padding: 10px 0;
  display: grid;
}

.row-inspector__field > div strong, .row-inspector__field > div small {
  display: block;
}

.row-inspector__field > div strong {
  font-family: var(--font-mono);
  font-size: 9px;
}

.row-inspector__field > div small {
  color: var(--text-faint);
  margin-top: 2px;
  font-size: 8px;
}

.row-inspector__field pre {
  color: #bdc8d6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
  overflow: auto;
}

.empty-state {
  min-height: 240px;
  color: var(--text-faint);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  display: flex;
}

.empty-state__icon, .empty-state > svg {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: #7a899b;
  border-radius: 10px;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  display: grid;
}

.empty-state__icon svg, .empty-state > svg {
  width: 19px;
  height: 19px;
}

.empty-state h3 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.empty-state p {
  max-width: 600px;
  margin: 7px 0;
  font-size: 10px;
}

.empty-state--small {
  min-height: 150px;
  padding: 22px;
}

.empty-state--small > svg {
  padding: 10px;
}

.configuration-list {
  flex-direction: column;
  gap: 5px;
  max-width: 760px;
  margin-top: 10px;
  display: flex;
}

.configuration-list code {
  border: 1px solid var(--border-soft);
  background: var(--canvas-raised);
  color: #aeb9c6;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 8px;
}

.login-page {
  background: #090b0e;
  grid-template-columns: minmax(420px, .8fr) minmax(440px, 1.2fr);
  min-height: 100vh;
  display: grid;
}

.login-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  flex-direction: column;
  place-self: center;
  width: min(470px, 100% - 48px);
  padding: 34px;
  display: flex;
  box-shadow: 0 34px 90px #00000057;
}

.login-card__brand {
  background: var(--accent-surface);
  width: 46px;
  height: 46px;
  color: var(--accent-strong);
  border: 1px solid #3c4c6f;
  border-radius: 12px;
  place-items: center;
  display: grid;
}

.login-card__brand svg {
  width: 23px;
  height: 23px;
}

.login-card__heading {
  margin: 27px 0;
}

.login-card__heading > span {
  color: var(--accent);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.login-card__heading h1 {
  letter-spacing: -.04em;
  margin: 5px 0 0;
  font-size: 30px;
  font-weight: 650;
}

.login-card__heading p {
  color: var(--text-muted);
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.65;
}

.login-form label {
  color: var(--text-muted);
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 650;
  display: block;
}

.login-form__input {
  margin-bottom: 11px;
  position: relative;
}

.login-form__input svg {
  z-index: 1;
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
}

.login-form__input input {
  background: var(--canvas-raised);
  width: 100%;
  height: 43px;
  padding: 0 13px 0 39px;
  font-size: 11px;
}

.form-error {
  background: var(--danger-surface);
  color: var(--danger);
  border: 1px solid #613039;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 8px 10px;
  font-size: 9px;
}

.login-card__security {
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 8px;
  line-height: 1.5;
  display: flex;
}

.login-card__security svg {
  width: 14px;
  height: 14px;
  color: var(--positive);
}

.login-context {
  border-left: 1px solid var(--border-soft);
  background: #0c1015;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 54px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-context:before, .login-context:after {
  content: "";
  border: 1px solid #1d2632;
  position: absolute;
  transform: rotate(12deg);
}

.login-context:before {
  width: 72%;
  height: 45%;
  top: 15%;
  right: -12%;
}

.login-context:after {
  width: 58%;
  height: 35%;
  top: 24%;
  right: 4%;
}

.login-context > div {
  z-index: 1;
  flex-direction: column;
  align-self: flex-start;
  gap: 7px;
  max-width: 360px;
  margin-top: auto;
  display: flex;
  position: relative;
}

.login-context > div svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 7px;
}

.login-context strong {
  letter-spacing: -.03em;
  font-size: 20px;
}

.login-context span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.login-context small {
  z-index: 1;
  color: var(--text-faint);
  font-size: 9px;
  position: relative;
}

.standalone-state {
  background: var(--canvas);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px;
  display: flex;
}

.standalone-state > span {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 52px;
  height: 52px;
  color: var(--accent);
  border-radius: 13px;
  place-items: center;
  display: grid;
}

.standalone-state h1 {
  letter-spacing: -.03em;
  margin: 18px 0 0;
  font-size: 24px;
}

.standalone-state p {
  max-width: 600px;
  color: var(--text-muted);
  margin: 8px 0 18px;
  font-size: 11px;
}

.standalone-state code {
  color: var(--text-faint);
  margin-bottom: 15px;
  font-size: 9px;
}

.page-loading {
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 65vh;
  display: flex;
}

@media (max-width: 1450px) {
  .metric-grid--overview, .metric-grid--table, .column-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 260px;
  }

  .studio-main {
    padding-inline: 22px;
  }

  .content-grid--wide-left {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .85fr);
  }

  .object-list__row {
    grid-template-columns: 34px minmax(130px, 1fr) minmax(220px, 1.7fr) 74px auto;
  }

  .object-list__row > span:nth-last-child(2) {
    display: none;
  }

  .filter-row {
    grid-template-columns: minmax(140px, .8fr) minmax(170px, .9fr) minmax(180px, 1.5fr) 36px;
  }
}

@media (max-width: 980px) {
  .studio-sidebar {
    transition: transform .18s;
    transform: translateX(-100%);
  }

  .studio-root.is-navigation-open .studio-sidebar {
    transform: translateX(0);
  }

  .studio-sidebar__close, .studio-topbar__menu {
    display: inline-grid !important;
  }

  .studio-sidebar__close {
    margin-left: auto;
  }

  .studio-workspace {
    margin-left: 0;
  }

  .studio-overlay {
    z-index: 45;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    background: #020305b3;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .content-grid, .content-grid--wide-left {
    grid-template-columns: 1fr;
  }

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

  .policy-grid {
    grid-template-columns: 1fr;
  }

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

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-context {
    display: none;
  }
}

@media (max-width: 720px) {
  .studio-topbar {
    padding-inline: 13px;
  }

  .studio-topbar__left > div:last-child span, .connection-chip small {
    display: none;
  }

  .connection-chip {
    min-width: 0;
    padding: 8px;
  }

  .connection-chip > div {
    display: none;
  }

  .studio-main {
    padding: 19px 13px 54px;
  }

  .page-stack {
    gap: 16px;
  }

  .page-heading, .object-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-heading--hero {
    padding: 4px 2px;
  }

  .page-heading__actions, .object-heading__badges {
    justify-content: flex-start;
  }

  .object-heading {
    padding: 15px;
  }

  .object-heading__icon {
    width: 43px;
    height: 43px;
  }

  .metric-grid, .metric-grid--overview, .metric-grid--table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schema-card-grid {
    grid-template-columns: 1fr;
  }

  .schema-card {
    border-right: 0;
  }

  .object-list__row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .object-list__row p, .object-list__row > span:not(.object-list__icon):not(.status-badge) {
    display: none;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .property-grid > div {
    border-right: 0;
  }

  .compact-object-list--partitions {
    grid-template-columns: 1fr;
  }

  .data-explorer__toolbar, .data-explorer__footer, .query-panel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-group--right {
    justify-content: flex-start;
  }

  .filter-row {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .filter-row > .icon-button {
    justify-self: end;
  }

  .column-picker-grid {
    grid-template-columns: 1fr;
  }

  .data-explorer__footer {
    gap: 10px;
  }

  .pagination-controls {
    justify-content: space-between;
  }

  .row-inspector__field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .login-card {
    width: min(100% - 26px, 470px);
    padding: 24px;
  }
}

@media (max-width: 440px) {
  .metric-grid, .metric-grid--overview, .metric-grid--table {
    grid-template-columns: 1fr;
  }

  .studio-topbar__right .icon-button:not(:last-child) {
    display: none;
  }

  .object-heading__title h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.emj-page-shell {
  color: var(--text);
  gap: 18px;
  display: grid;
}

.emj-page-shell__header {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #8fafff17, transparent 42%),
    linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: var(--shadow-panel);
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  display: flex;
}

.emj-page-shell__title-block {
  gap: 9px;
  min-width: 0;
  display: grid;
}

.emj-page-shell__eyebrow, .emj-shell-panel__header p {
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.emj-page-shell__title-block h1 {
  color: var(--text);
  letter-spacing: -.03em;
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 780;
  line-height: 1.05;
}

.emj-page-shell__title-block > p:not(.emj-page-shell__eyebrow) {
  max-width: 860px;
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.emj-page-shell__badges, .emj-page-shell__actions, .emj-shell-toolbar, .emj-shell-toolbar__filters {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.emj-page-shell__actions {
  justify-content: flex-end;
}

.emj-shell-badge, .emj-shell-toolbar__filters span {
  border: 1px solid var(--border);
  min-height: 26px;
  color: var(--text-muted);
  background: #ffffff09;
  border-radius: 999px;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 680;
  line-height: 1;
  display: inline-flex;
}

.emj-shell-badge.is-success, .emj-shell-metric.is-success {
  background: var(--positive-surface);
  color: var(--positive);
  border-color: #70d7ad47;
}

.emj-shell-badge.is-danger, .emj-shell-metric.is-danger {
  background: var(--danger-surface);
  color: var(--danger);
  border-color: #ef8d9147;
}

.emj-shell-badge.is-workflow, .emj-shell-metric.is-workflow, .emj-shell-badge.is-governance, .emj-shell-metric.is-governance {
  background: var(--warning-surface);
  color: var(--warning);
  border-color: #e7bd7647;
}

.emj-shell-badge.is-analytics, .emj-shell-metric.is-analytics, .emj-shell-badge.is-document, .emj-shell-metric.is-document, .emj-shell-badge.is-messaging, .emj-shell-metric.is-messaging, .emj-shell-badge.is-commercial, .emj-shell-metric.is-commercial {
  background: var(--accent-surface);
  color: var(--accent);
  border-color: #8fafff47;
}

.emj-shell-action {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  min-height: 36px;
  color: var(--text-muted);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 720;
  transition: border-color .14s, background .14s, color .14s, transform .14s;
}

.emj-shell-action:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.emj-shell-action.is-primary {
  color: var(--text);
  background: linear-gradient(#263657, #1a2540);
  border-color: #8fafff6b;
}

.emj-shell-action.is-danger {
  background: var(--danger-surface);
  color: var(--danger);
  border-color: #ef8d9159;
}

.emj-shell-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.emj-shell-metric {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(#111821, #0f1319);
  align-content: center;
  gap: 6px;
  min-height: 104px;
  padding: 15px;
  display: grid;
}

.emj-shell-metric span, .emj-shell-metric small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 640;
}

.emj-shell-metric strong {
  color: var(--text);
  letter-spacing: -.03em;
  font-size: 24px;
  font-weight: 780;
  line-height: 1;
}

.emj-page-shell__body {
  gap: 18px;
  display: grid;
}

.emj-page-shell__body.has-aside {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr);
}

.emj-page-shell__main, .emj-page-shell__aside {
  align-content: start;
  gap: 14px;
  min-width: 0;
  display: grid;
}

.emj-shell-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.emj-shell-split {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .36fr);
  gap: 14px;
  display: grid;
}

.emj-shell-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  overflow: hidden;
  box-shadow: 0 14px 36px #00000029;
}

.emj-shell-panel.is-compact .emj-shell-panel__content {
  padding: 12px;
}

.emj-shell-panel__header {
  border-bottom: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  display: flex;
}

.emj-shell-panel__header h2 {
  color: var(--text);
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.emj-shell-panel__header span {
  color: var(--text-faint);
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  display: block;
}

.emj-shell-panel__content {
  padding: 16px;
}

@media (min-width: 1920px) {
  .emj-page-shell__body.has-aside {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .28fr);
  }

  .emj-shell-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  }

  .emj-shell-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.emj-shell-list {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.emj-shell-list li {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff06;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px;
  display: grid;
}

.emj-shell-list li > span {
  border: 1px solid var(--border);
  background: var(--canvas-raised);
  width: 22px;
  height: 22px;
  color: var(--accent);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 760;
  display: inline-flex;
}

.emj-shell-list.is-check li > span:before {
  content: "✓";
}

.emj-shell-list.is-dot li > span:before {
  content: "";
  background: var(--accent);
  border-radius: 999px;
  width: 6px;
  height: 6px;
}

.emj-shell-list p {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.emj-shell-table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: auto;
}

.emj-shell-table {
  border-collapse: collapse;
  background: #0d1117;
  width: 100%;
  min-width: 560px;
}

.emj-shell-table th, .emj-shell-table td {
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
}

.emj-shell-table th {
  color: var(--text-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 780;
}

.emj-shell-table td {
  color: var(--text-muted);
  font-size: 12px;
}

.emj-shell-table tr:last-child td {
  border-bottom: 0;
}

.emj-shell-stepper {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.emj-shell-stepper li {
  color: var(--text-faint);
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  display: grid;
}

.emj-shell-stepper span {
  border: 1px solid var(--border);
  background: var(--canvas-raised);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 760;
  display: inline-flex;
}

.emj-shell-stepper p {
  margin: 0;
  font-size: 12px;
}

.emj-shell-stepper li.is-active, .emj-shell-stepper li.is-complete {
  color: var(--text);
}

.emj-shell-stepper li.is-active span {
  background: var(--accent-surface);
  color: var(--accent);
  border-color: #8fafff85;
}

.emj-shell-stepper li.is-complete span {
  background: var(--positive-surface);
  color: var(--positive);
  border-color: #70d7ad59;
}

.emj-shell-toolbar {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  justify-content: space-between;
  padding: 10px;
}

.emj-shell-empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  background: #ffffff05;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 140px;
  padding: 24px;
  display: grid;
}

.emj-shell-empty-state strong {
  color: var(--text);
  font-size: 14px;
}

.emj-shell-empty-state p {
  max-width: 520px;
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.emj-flow-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.emj-flow-field {
  gap: 6px;
  display: grid;
}

.emj-flow-field label {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 720;
}

.emj-flow-field div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 38px;
  color: var(--text-muted);
  background: #0d1117;
  padding: 9px 11px;
  font-size: 12px;
}

.emj-board-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 10px;
  display: grid;
  overflow-x: auto;
}

.emj-board-lane {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0c1016;
  align-content: start;
  gap: 9px;
  min-height: 360px;
  padding: 10px;
  display: grid;
}

.emj-board-lane header {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 760;
  display: flex;
}

.emj-board-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  gap: 7px;
  padding: 11px;
  display: grid;
}

.emj-board-card strong {
  font-size: 12px;
}

.emj-board-card span {
  color: var(--text-faint);
  font-size: 10px;
}

.emj-chart-placeholder, .emj-graph-canvas, .emj-document-preview, .emj-calendar-grid, .emj-thread-view {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background-color: #0b0f15;
  background-image: linear-gradient(#ffffff08 1px, #0000 1px), linear-gradient(90deg, #ffffff08 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 34px 34px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.emj-chart-placeholder:before, .emj-graph-canvas:before, .emj-document-preview:before, .emj-calendar-grid:before, .emj-thread-view:before {
  content: "";
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 24% 34%, #8fafff2e, #0000 12rem);
  border: 1px solid #8fafff29;
  position: absolute;
  inset: 18px;
}

.emj-chart-bars {
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  height: 62%;
  display: grid;
  position: absolute;
  inset: auto 28px 28px;
}

.emj-chart-bars span {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  opacity: .76;
  border-radius: 8px 8px 0 0;
}

.emj-node {
  background: var(--accent-surface);
  min-width: 82px;
  min-height: 38px;
  color: var(--text);
  border: 1px solid #8fafff6b;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 760;
  display: inline-flex;
  position: absolute;
}

.emj-node:first-child {
  top: 20%;
  left: 10%;
}

.emj-node:nth-child(2) {
  top: 26%;
  right: 12%;
}

.emj-node:nth-child(3) {
  bottom: 18%;
  left: 38%;
}

.emj-calendar-days {
  z-index: 1;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 18px;
  display: grid;
  position: relative;
}

.emj-calendar-days span {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 58px;
  color: var(--text-faint);
  background: #ffffff08;
  padding: 8px;
  font-size: 10px;
}

.emj-thread-view {
  align-content: end;
  gap: 10px;
  padding: 18px;
  display: grid;
}

.emj-message-bubble {
  z-index: 1;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  width: min(78%, 520px);
  color: var(--text-muted);
  padding: 12px;
  font-size: 12px;
  position: relative;
}

.emj-message-bubble:nth-child(2) {
  background: var(--accent-surface);
  border-color: #8fafff42;
  justify-self: end;
}

.emj-document-preview {
  color: var(--text-muted);
  align-content: center;
  justify-items: center;
  font-size: 12px;
  display: grid;
}

.emj-document-preview strong {
  z-index: 1;
  color: var(--text);
  position: relative;
}

@media (max-width: 1100px) {
  .emj-page-shell__header, .emj-page-shell__body.has-aside, .emj-shell-split {
    grid-template-columns: 1fr;
  }

  .emj-page-shell__header {
    display: grid;
  }

  .emj-page-shell__actions {
    justify-content: flex-start;
  }

  .emj-shell-metric-grid, .emj-shell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .emj-shell-metric-grid, .emj-shell-grid, .emj-flow-form-grid {
    grid-template-columns: 1fr;
  }

  .emj-page-shell__header {
    padding: 18px;
  }
}

.emj-segmented-shell {
  gap: 14px;
  display: grid;
}

.emj-segmented-shell__header {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  padding: 20px;
}

.emj-segmented-shell__header p, .emj-segmented-sidebar header p {
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  font-size: 10px;
  font-weight: 760;
}

.emj-segmented-shell__header h1, .emj-segmented-sidebar header h2 {
  color: var(--text);
  margin: 4px 0;
  font-size: 22px;
  line-height: 1.1;
}

.emj-segmented-shell__header span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.emj-segmented-shell__layout {
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  align-items: start;
  gap: 14px;
  display: grid;
}

.emj-segmented-shell__layout > main, .emj-segmented-outlet {
  gap: 12px;
  min-width: 0;
  display: grid;
}

.emj-segmented-sidebar, .emj-segmented-mobile-nav, .emj-segmented-toolbar, .emj-segmented-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
}

.emj-segmented-sidebar {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.emj-segmented-sidebar header {
  border-bottom: 1px solid var(--border-soft);
  padding: 14px;
}

.emj-segmented-sidebar > div {
  gap: 6px;
  padding: 8px;
  display: grid;
}

.emj-segmented-sidebar a {
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid #0000;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  display: flex;
}

.emj-segmented-sidebar a:hover, .emj-segmented-sidebar a.is-active {
  background: var(--accent-surface);
  color: var(--text);
  border-color: #8fafff38;
}

.emj-segmented-sidebar strong, .emj-segmented-sidebar small {
  display: block;
}

.emj-segmented-sidebar strong {
  font-size: 12px;
}

.emj-segmented-sidebar small {
  color: var(--text-faint);
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.45;
}

.emj-segmented-sidebar em {
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 999px;
  flex: none;
  padding: 3px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

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

.emj-segmented-toolbar__filters, .emj-segmented-toolbar__actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.emj-segmented-toolbar__filters span {
  border: 1px solid var(--border);
  background: var(--canvas-raised);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
}

.emj-segmented-tabs {
  padding: 5px;
  display: flex;
  overflow-x: auto;
}

.emj-segmented-tabs a {
  color: var(--text-faint);
  border-radius: 8px;
  flex: none;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 720;
}

.emj-segmented-tabs a:hover, .emj-segmented-tabs a.is-active {
  background: var(--surface-strong);
  color: var(--text);
}

.emj-segmented-mobile-nav {
  padding: 10px 12px;
  display: none;
}

.emj-segmented-mobile-nav summary {
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 740;
}

.emj-segmented-mobile-nav div {
  gap: 8px;
  padding-top: 10px;
  display: grid;
}

.emj-segmented-mobile-nav a {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 1280px) {
  .emj-segmented-shell__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .emj-segmented-shell__layout > .emj-shell-panel {
    display: none;
  }
}

@media (max-width: 900px) {
  .emj-segmented-shell__layout {
    grid-template-columns: 1fr;
  }

  .emj-segmented-sidebar {
    display: none;
  }

  .emj-segmented-mobile-nav {
    display: block;
  }
}

.emj-runtime-breadcrumbs {
  color: #d5ddeaa3;
  letter-spacing: .02em;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  display: flex;
}

.emj-runtime-breadcrumbs span {
  align-items: center;
  gap: .45rem;
  display: inline-flex;
}

.emj-runtime-breadcrumbs a {
  color: #e7ecf6d6;
  text-decoration: none;
}

.emj-runtime-breadcrumbs a:hover {
  color: #fff;
}

.emj-runtime-breadcrumbs em {
  color: #94a3b86b;
  font-style: normal;
}

.emj-runtime-route-chip {
  color: #e2e8f0db;
  background: #0f172a6b;
  border: 1px solid #94a3b829;
  border-radius: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .75rem .9rem;
  font-size: .78rem;
  display: flex;
}

.emj-runtime-route-chip strong {
  color: #94a3b8eb;
  font-weight: 600;
}

.emj-runtime-aside-stack {
  gap: 1rem;
  display: grid;
}

.emj-runtime-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .8rem;
  display: grid;
}

.emj-runtime-link-card {
  color: #e2e8f0eb;
  background: linear-gradient(135deg, #3b82f614, #0000 48%), #0f172a70;
  border: 1px solid #94a3b829;
  border-radius: 1rem;
  gap: .35rem;
  min-height: 8.5rem;
  padding: 1rem;
  text-decoration: none;
  transition: border-color .14s, background .14s, transform .14s;
  display: grid;
}

.emj-runtime-link-card:hover {
  background: linear-gradient(135deg, #3b82f624, #0000 48%), #0f172a94;
  border-color: #60a5fa6b;
  transform: translateY(-1px);
}

.emj-runtime-link-card span {
  color: #94a3b8d1;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
}

.emj-runtime-link-card strong {
  font-size: .98rem;
  line-height: 1.25;
}

.emj-runtime-link-card em {
  color: #7dd3fcd1;
  align-self: end;
  font-size: .76rem;
  font-style: normal;
}

.emj-runtime-stack, .emj-runtime-aside-stack {
  align-content: start;
  gap: 14px;
  min-width: 0;
  display: grid;
}

.emj-runtime-control-bar {
  grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  display: grid;
}

.emj-runtime-search-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  gap: 6px;
  padding: 10px;
  display: grid;
}

.emj-runtime-search-box span, .emj-runtime-form-field span, .emj-runtime-resolution-form span, .emj-runtime-field-card span, .emj-runtime-kpi-card span, .emj-runtime-calendar-toolbar span, .emj-runtime-status-cluster span {
  color: var(--text-faint);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 760;
}

.emj-runtime-search-box input, .emj-runtime-form-field input, .emj-runtime-form-field textarea, .emj-runtime-resolution-form input {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 38px;
  color: var(--text-muted);
  font: inherit;
  background: #0c1016;
  outline: none;
  padding: 9px 11px;
  font-size: 12px;
}

.emj-runtime-search-box input:focus, .emj-runtime-form-field input:focus, .emj-runtime-form-field textarea:focus, .emj-runtime-resolution-form input:focus {
  border-color: #8fafff6b;
}

.emj-runtime-field-grid, .emj-runtime-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.emj-runtime-field-card, .emj-runtime-kpi-card, .emj-runtime-linked-card, .emj-runtime-search-results article, .emj-runtime-file-list article, .emj-runtime-comparison-grid article {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff06;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.emj-runtime-field-card strong, .emj-runtime-kpi-card strong, .emj-runtime-linked-card strong, .emj-runtime-search-results strong, .emj-runtime-file-list strong, .emj-runtime-comparison-grid strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 760;
}

.emj-runtime-field-card small, .emj-runtime-kpi-card small, .emj-runtime-linked-card small, .emj-runtime-search-results small, .emj-runtime-comparison-grid small, .emj-board-card small {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.5;
}

.emj-runtime-field-card.is-governance, .emj-runtime-field-card.is-danger {
  background: var(--warning-surface);
  border-color: #e7bd7642;
}

.emj-runtime-field-card.is-success, .emj-runtime-kpi-card.is-success {
  background: var(--positive-surface);
  border-color: #70d7ad42;
}

.emj-runtime-record-hero {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #8fafff14, #0000 42%), #0d1117;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  display: flex;
}

.emj-runtime-record-hero > div:first-child {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.emj-runtime-record-hero span, .emj-runtime-record-hero p, .emj-runtime-status-cluster span {
  color: var(--text-faint);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.emj-runtime-record-hero strong {
  color: var(--text);
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.emj-runtime-status-cluster {
  border-radius: var(--radius-sm);
  background: var(--positive-surface);
  border: 1px solid #70d7ad40;
  gap: 4px;
  min-width: 120px;
  padding: 10px;
  display: grid;
}

.emj-runtime-status-cluster strong {
  color: var(--positive);
  font-size: 13px;
}

.emj-runtime-card-list, .emj-runtime-search-results, .emj-runtime-file-list, .emj-runtime-queue-list, .emj-runtime-edge-list {
  gap: 10px;
  display: grid;
}

.emj-runtime-linked-card span, .emj-runtime-search-results span, .emj-runtime-file-list span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.emj-runtime-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.emj-runtime-form-field, .emj-runtime-resolution-form label {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.emj-runtime-form-field.is-required > span:after {
  content: " *";
  color: var(--danger);
}

.emj-runtime-form-field textarea {
  resize: vertical;
  min-height: 88px;
}

.emj-runtime-form-field small {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
}

.emj-runtime-switch {
  border: 1px solid var(--border-soft);
  width: fit-content;
  min-height: 38px;
  color: var(--text-muted);
  background: #0c1016;
  border-radius: 999px;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 5px;
  font-size: 12px;
  display: inline-flex;
}

.emj-runtime-switch span {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 24px;
  height: 24px;
}

.emj-runtime-switch strong {
  color: var(--text-muted);
  font-size: 12px;
}

.emj-runtime-submit-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: flex;
}

.emj-runtime-submit-bar span {
  color: var(--text-faint);
  margin-right: auto;
  font-size: 11px;
}

.emj-runtime-submit-bar button, .emj-runtime-comparison-grid button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  min-height: 34px;
  color: var(--text-muted);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 740;
}

.emj-runtime-submit-bar button.is-primary, .emj-runtime-comparison-grid button {
  color: var(--text);
  background: linear-gradient(#263657, #1a2540);
  border-color: #8fafff6b;
}

.emj-runtime-resolution-form {
  gap: 10px;
  display: grid;
}

.emj-runtime-resolution-form p {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
}

.emj-runtime-queue-row {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0d1117;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.emj-runtime-queue-row div {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.emj-runtime-queue-row strong {
  color: var(--text);
  font-size: 13px;
}

.emj-runtime-queue-row span:not(.emj-runtime-pill) {
  color: var(--text-faint);
  font-size: 11px;
}

.emj-runtime-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 780;
  display: inline-flex;
}

.emj-runtime-pill.is-workflow {
  color: var(--accent);
  background: var(--accent-surface);
  border-color: #8fafff4d;
}

.emj-runtime-pill.is-danger {
  color: var(--danger);
  background: var(--danger-surface);
  border-color: #ef8d914d;
}

.emj-runtime-kpi-card {
  background: linear-gradient(135deg, #8fafff14, #0000 50%), #0d1117;
  align-content: space-between;
  min-height: 130px;
}

.emj-runtime-kpi-card strong {
  letter-spacing: -.04em;
  font-size: 30px;
}

.emj-runtime-calendar-toolbar {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0d1117;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  display: flex;
}

.emj-runtime-calendar-toolbar strong {
  color: var(--text);
  font-size: 12px;
}

.emj-runtime-calendar-toolbar small {
  color: var(--text-faint);
  font-size: 11px;
}

.emj-calendar-days span {
  gap: 8px;
  display: grid;
}

.emj-calendar-days em {
  background: var(--accent-surface);
  width: fit-content;
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.emj-runtime-edge-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.emj-runtime-edge-list span {
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
}

.emj-runtime-conversation-layout, .emj-runtime-document-layout {
  grid-template-columns: minmax(170px, .28fr) minmax(0, 1fr);
  gap: 12px;
  display: grid;
}

.emj-runtime-conversation-layout aside {
  align-content: start;
  gap: 8px;
  display: grid;
}

.emj-runtime-conversation-layout button {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 38px;
  color: var(--text-muted);
  text-align: left;
  background: #0d1117;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 720;
}

.emj-runtime-composer {
  z-index: 1;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  background: #ffffff09;
  padding: 11px;
  font-size: 12px;
  position: relative;
}

.emj-runtime-file-list {
  align-content: start;
}

.emj-document-preview span {
  z-index: 1;
  color: var(--text-faint);
  margin-top: 6px;
  position: relative;
}

.emj-runtime-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.emj-runtime-comparison-grid article em {
  background: var(--warning-surface);
  width: fit-content;
  color: var(--warning);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.emj-runtime-import-dropzone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: #ffffff05;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 180px;
  margin-bottom: 14px;
  display: grid;
}

.emj-runtime-import-dropzone strong {
  color: var(--text);
  font-size: 15px;
}

.emj-runtime-import-dropzone span {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .emj-runtime-control-bar, .emj-runtime-conversation-layout, .emj-runtime-document-layout {
    grid-template-columns: 1fr;
  }

  .emj-runtime-field-grid, .emj-runtime-kpi-grid, .emj-runtime-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .emj-runtime-field-grid, .emj-runtime-kpi-grid, .emj-runtime-form-grid, .emj-runtime-edge-list, .emj-runtime-comparison-grid {
    grid-template-columns: 1fr;
  }

  .emj-runtime-record-hero, .emj-runtime-submit-bar, .emj-runtime-queue-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .emj-runtime-submit-bar span {
    margin-right: 0;
  }
}

.emj-shell-action {
  justify-content: center;
  align-items: center;
  text-decoration: none;
  display: inline-flex;
}

.emj-shell-action.is-disabled, .emj-shell-action:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.emj-runtime-side-link-list {
  gap: 8px;
  display: grid;
}

.emj-runtime-side-link-list a {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-width: 0;
  color: var(--text-muted);
  background: #ffffff06;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
  transition: border-color .14s, background .14s, transform .14s;
  display: grid;
}

.emj-runtime-side-link-list a:hover {
  background: var(--accent-surface);
  border-color: #8fafff61;
  transform: translateY(-1px);
}

.emj-runtime-side-link-list span {
  color: var(--text-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 780;
}

.emj-runtime-side-link-list strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

.emj-runtime-search-command {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
  display: grid;
}

.emj-runtime-search-command input {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 40px;
  color: var(--text);
  font: inherit;
  background: #0c1016;
  outline: none;
  padding: 0 12px;
  font-size: 12px;
}

.emj-runtime-search-command input:focus {
  border-color: #8fafff6b;
}

.emj-runtime-search-command button {
  border-radius: var(--radius-sm);
  min-height: 40px;
  color: var(--text);
  background: linear-gradient(#263657, #1a2540);
  border: 1px solid #8fafff6b;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 740;
}

.emj-live-panel, .emj-live-form {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(#ffffff0b, #ffffff05);
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  display: grid;
}

.emj-live-toolbar {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.emj-live-toolbar label, .emj-runtime-form-field {
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.emj-live-toolbar input, .emj-runtime-form-field input, .emj-runtime-form-field select, .emj-runtime-form-field textarea {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  background: #0c1016;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 560;
}

.emj-runtime-form-field textarea {
  resize: vertical;
  min-height: 96px;
  padding: 10px 12px;
}

.emj-live-toolbar input:focus, .emj-runtime-form-field input:focus, .emj-runtime-form-field select:focus, .emj-runtime-form-field textarea:focus {
  border-color: #8fafff7a;
  box-shadow: 0 0 0 3px #8fafff14;
}

.emj-runtime-form-field small {
  color: var(--muted-subtle);
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
  font-weight: 520;
  line-height: 1.35;
}

.emj-runtime-form-field.is-required > span:after {
  color: var(--danger);
  content: " *";
}

.emj-runtime-form-field.is-readonly {
  opacity: .68;
}

.emj-live-toolbar button, .emj-live-panel > button, .emj-runtime-submit-bar button {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 40px;
  color: var(--text);
  letter-spacing: .035em;
  text-transform: uppercase;
  background: #111722;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 760;
}

.emj-live-toolbar button:hover, .emj-live-panel > button:hover, .emj-runtime-submit-bar button:hover {
  background: #151d2b;
  border-color: #8fafff61;
}

.emj-live-toolbar button:disabled, .emj-live-panel > button:disabled, .emj-runtime-submit-bar button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.emj-runtime-submit-bar button.is-primary {
  background: linear-gradient(#29395b, #1b2844);
  border-color: #8fafff75;
}

.emj-live-status, .emj-live-form__status {
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.emj-live-status strong, .emj-live-form__status strong {
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
}

.emj-live-row-list, .emj-live-field-grid {
  gap: 8px;
  display: grid;
}

.emj-live-row-list article, .emj-live-field-grid article {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff06;
  gap: 5px;
  padding: 10px;
  display: grid;
}

.emj-live-row-list strong, .emj-live-field-grid strong {
  color: var(--text);
  font-size: 13px;
}

.emj-live-row-list span, .emj-live-field-grid span, .emj-live-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.emj-live-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.emj-live-form__section {
  border-top: 1px solid var(--border-soft);
  gap: 12px;
  padding-top: 14px;
  display: grid;
}

.emj-live-form__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.emj-live-form__section header {
  gap: 4px;
  display: grid;
}

.emj-live-form__section h3 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.emj-live-form__section p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.emj-live-validation {
  border-radius: var(--radius-sm);
  color: #ffd28a;
  background: #ffb74d13;
  border: 1px solid #ffb74d52;
  gap: 6px;
  padding: 10px;
  font-size: 12px;
  display: grid;
}

.emj-live-error, .emj-live-success {
  border-radius: var(--radius-sm);
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.emj-live-error {
  color: #ffb3b3;
  background: #ff6b6b14;
  border: 1px solid #ff6b6b57;
}

.emj-live-success {
  color: #a7f2ce;
  background: #43d69214;
  border: 1px solid #43d69257;
}

.emj-live-json {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  max-height: 280px;
  color: var(--muted);
  background: #080b10;
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
  overflow: auto;
}

@media (max-width: 860px) {
  .emj-live-toolbar {
    grid-template-columns: 1fr;
  }
}

.emj-live-toolbar {
  grid-template-columns: minmax(220px, 1.4fr) minmax(110px, .45fr) minmax(160px, .8fr) minmax(110px, .45fr) auto auto;
}

.emj-live-toolbar select {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  font: inherit;
  background: #0c1016;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 560;
}

.emj-live-column-picker {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.emj-live-column-picker label {
  border: 1px solid var(--border-soft);
  min-height: 30px;
  color: var(--muted);
  background: #ffffff06;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 680;
  display: inline-flex;
}

.emj-live-column-picker input, .emj-live-table input[type="checkbox"] {
  accent-color: #8fafff;
  width: 14px;
  height: 14px;
}

.emj-live-backend-toolbar {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #8fafff09;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.emj-live-backend-toolbar label {
  gap: 6px;
  display: grid;
}

.emj-live-backend-toolbar span {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 780;
}

.emj-live-backend-toolbar input, .emj-live-backend-toolbar select {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 36px;
  color: var(--text);
  font: inherit;
  background: #0d121a;
  padding: 0 11px;
}

.emj-live-backend-toolbar button, .emj-live-backend-toolbar a {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 36px;
  color: var(--text);
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #111722;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.emj-live-backend-toolbar button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.emj-live-bulk-bar {
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  display: flex;
}

.emj-live-bulk-bar span {
  color: var(--muted);
  margin-right: auto;
  font-size: 12px;
}

.emj-live-bulk-bar button {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 34px;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #111722;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 780;
}

.emj-live-bulk-bar button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.emj-live-table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #080b10b8;
  max-height: 560px;
  overflow: auto;
}

.emj-live-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 760px;
}

.emj-live-table th, .emj-live-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ffffff0e;
  padding: 10px 12px;
}

.emj-live-table th {
  z-index: 1;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #10151f;
  font-size: 10px;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.emj-live-table td {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.emj-live-table tbody tr:hover td {
  background: #8fafff0b;
}

.emj-record-workspace-client, .emj-live-record-edit-shell {
  gap: 14px;
  display: grid;
}

.emj-record-workspace-client {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(#ffffff0a, #ffffff04);
  padding: 14px;
}

.emj-live-record-edit-shell {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

@media (max-width: 1180px) {
  .emj-live-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .emj-live-toolbar {
    grid-template-columns: 1fr;
  }

  .emj-live-bulk-bar {
    justify-content: stretch;
  }

  .emj-live-bulk-bar button {
    flex: auto;
  }
}

@media (max-width: 880px) {
  .emj-live-backend-toolbar {
    grid-template-columns: 1fr;
  }
}

.emj-live-bulk-bar button.is-danger {
  color: #ffd7d7;
  background: #681c227a;
  border-color: #ff5c5c6b;
}

.emj-live-bulk-bar button.is-danger:not(:disabled):hover {
  background: #81222aad;
  border-color: #ff7676b8;
}

.emj-runtime-action-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(#ffffff0b, #ffffff05);
  gap: 10px;
  padding: 12px;
  display: grid;
}

.emj-runtime-action-panel header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.emj-runtime-action-panel header span, .emj-runtime-action-panel label span {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.emj-runtime-action-panel header strong {
  color: var(--text);
  font-size: 11px;
}

.emj-runtime-action-panel label {
  gap: 5px;
  display: grid;
}

.emj-runtime-action-panel select, .emj-runtime-action-panel input, .emj-runtime-action-panel textarea {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text);
  font: inherit;
  background: #05090ebd;
  outline: none;
  padding: 8px 9px;
  font-size: 12px;
}

.emj-runtime-action-panel textarea {
  resize: vertical;
  min-height: 92px;
}

.emj-runtime-action-panel button {
  border-radius: var(--radius-sm);
  color: #dfe6ff;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #5b77ff29;
  border: 1px solid #8fafff47;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
}

.emj-runtime-action-panel button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.emj-runtime-action-panel__meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.emj-runtime-action-panel__blocked {
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  gap: 6px;
  padding-top: 8px;
  font-size: 11px;
  display: grid;
}

.emj-runtime-action-panel__blocked summary {
  cursor: pointer;
  font-weight: 700;
}

.emj-runtime-action-panel__blocked span {
  overflow-wrap: anywhere;
  display: block;
}

.emj-related-records-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #04080db8;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  display: grid;
}

.emj-related-records-panel header, .emj-related-records-panel__toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.emj-related-records-panel header div {
  gap: 2px;
  display: grid;
}

.emj-related-records-panel header span, .emj-related-records-panel__toolbar span {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.emj-related-records-panel header strong {
  color: var(--text);
  font-size: 14px;
}

.emj-related-records-panel p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.emj-related-records-panel select {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  max-width: 320px;
  color: var(--text);
  font: inherit;
  background: #05090ed1;
  outline: none;
  padding: 8px 9px;
  font-size: 12px;
}

.emj-related-records-panel__toolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.emj-related-records-panel__toolbar button {
  border-radius: var(--radius-sm);
  color: #dfe6ff;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #5b77ff29;
  border: 1px solid #8fafff47;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
}

.emj-related-records-panel__toolbar button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* [project]/packages/data/datatable/styles.css [app-client] (css) */
.dt-frame-stage7, .dt-frame-stage7 .dt-popover-stage7, .dt-frame-stage7 .dt-drawer-stage7, .dt-frame-stage7 .validation-modal {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    monospace;
  --app-bg: 224 43% 3%;
  --app-bg-subtle: 222 35% 5%;
  --app-bg-elevated: 222 31% 7%;
  --surface: 222 28% 7%;
  --surface-raised: 221 25% 9%;
  --surface-card: 220 24% 10%;
  --surface-hover: 220 23% 13%;
  --surface-field: 224 33% 5%;
  --line: 219 22% 20%;
  --line-soft: 219 18% 17%;
  --line-strong: 218 22% 29%;
  --copy: 218 34% 96%;
  --copy-soft: 219 18% 79%;
  --copy-muted: 219 12% 61%;
  --copy-faint: 220 10% 47%;
  --copy-inverse: 224 43% 3%;
  --brand: 233 100% 68%;
  --brand-hover: 238 100% 72%;
  --brand-active: 229 91% 61%;
  --brand-soft: 241 79% 64%;
  --brand-faint: 232 72% 18%;
  --state-success: 158 50% 55%;
  --state-warning: 43 92% 62%;
  --state-danger: 3 76% 68%;
  --state-info: 211 95% 70%;
  color: hsl(var(--copy));
  font-family: var(--font-sans);
}

.dt-frame-stage7 *, .dt-frame-stage7 :before, .dt-frame-stage7 :after {
  box-sizing: border-box;
}

.dt-frame-stage7 [hidden] {
  display: none !important;
}

.dt-frame-stage7 button, .dt-frame-stage7 input, .dt-frame-stage7 textarea, .dt-frame-stage7 select {
  font: inherit;
}

.dt-frame-stage7 button {
  cursor: pointer;
}

.dt-frame-stage7 button:disabled, .dt-frame-stage7 input:disabled, .dt-frame-stage7 select:disabled, .dt-frame-stage7 textarea:disabled {
  cursor: not-allowed;
}

.dt-frame-stage7 svg {
  flex: none;
  display: block;
}

.dt-frame-stage7 code, .dt-frame-stage7 pre, .dt-frame-stage7 kbd {
  font-family: var(--font-mono);
}

.dt-frame-stage7 ::selection {
  background: hsl(var(--brand-faint) / .7);
  color: hsl(var(--copy));
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

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

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0;
}

.left-0 {
  left: 0;
}

.left-12 {
  left: 3rem;
}

.left-3 {
  left: .75rem;
}

.left-\[calc\(50\%\+2\.25rem\)\] {
  left: calc(50% + 2.25rem);
}

.right-0 {
  right: 0;
}

.right-2 {
  right: .5rem;
}

.top-0 {
  top: 0;
}

.top-1\/2 {
  top: 50%;
}

.top-\[calc\(100\%\+0\.45rem\)\] {
  top: calc(100% + .45rem);
}

.top-\[calc\(100\%\+0\.5rem\)\] {
  top: calc(100% + .5rem);
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.m-0 {
  margin: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-3 {
  margin-bottom: .75rem;
}

.ml-auto {
  margin-left: auto;
}

.mt-0\.5 {
  margin-top: .125rem;
}

.mt-1 {
  margin-top: .25rem;
}

.mt-2 {
  margin-top: .5rem;
}

.mt-3 {
  margin-top: .75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.size-1\.5 {
  width: .375rem;
  height: .375rem;
}

.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}

.size-12 {
  width: 3rem;
  height: 3rem;
}

.size-3 {
  width: .75rem;
  height: .75rem;
}

.size-4 {
  width: 1rem;
  height: 1rem;
}

.size-7 {
  width: 1.75rem;
  height: 1.75rem;
}

.size-8 {
  width: 2rem;
  height: 2rem;
}

.size-9 {
  width: 2.25rem;
  height: 2.25rem;
}

.h-1\.5 {
  height: .375rem;
}

.h-3 {
  height: .75rem;
}

.h-full {
  height: 100%;
}

.h-px {
  height: 1px;
}

.max-h-28 {
  max-height: 7rem;
}

.max-h-48 {
  max-height: 12rem;
}

.max-h-\[21rem\] {
  max-height: 21rem;
}

.min-h-10 {
  min-height: 2.5rem;
}

.min-h-12 {
  min-height: 3rem;
}

.min-h-5 {
  min-height: 1.25rem;
}

.min-h-6 {
  min-height: 1.5rem;
}

.min-h-7 {
  min-height: 1.75rem;
}

.min-h-8 {
  min-height: 2rem;
}

.min-h-9 {
  min-height: 2.25rem;
}

.min-h-\[2\.55rem\] {
  min-height: 2.55rem;
}

.min-h-\[2\.5rem\] {
  min-height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-2\/3 {
  width: 66.6667%;
}

.w-24 {
  width: 6rem;
}

.w-36 {
  width: 9rem;
}

.w-5\/6 {
  width: 83.3333%;
}

.w-\[min\(22rem\,calc\(100vw-2rem\)\)\] {
  width: min(22rem, 100vw - 2rem);
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0;
}

.min-w-12 {
  min-width: 3rem;
}

.min-w-14 {
  min-width: 3.5rem;
}

.min-w-20 {
  min-width: 5rem;
}

.min-w-36 {
  min-width: 9rem;
}

.min-w-\[12\.5rem\] {
  min-width: 12.5rem;
}

.min-w-\[1220px\] {
  min-width: 1220px;
}

.min-w-\[12rem\] {
  min-width: 12rem;
}

.min-w-\[15rem\] {
  min-width: 15rem;
}

.min-w-\[18rem\] {
  min-width: 18rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-\[13rem\] {
  max-width: 13rem;
}

.max-w-\[16rem\] {
  max-width: 16rem;
}

.max-w-\[22rem\] {
  max-width: 22rem;
}

.max-w-\[28rem\] {
  max-width: 28rem;
}

.max-w-\[64rem\] {
  max-width: 64rem;
}

.max-w-full {
  max-width: 100%;
}

.max-w-xl {
  max-width: 36rem;
}

.flex-1 {
  flex: 1;
}

.shrink-0 {
  flex-shrink: 0;
}

.border-separate {
  border-collapse: separate;
}

.border-spacing-0 {
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 0px;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: 2s cubic-bezier(.4, 0, .6, 1) infinite pulse;
}

@keyframes dt-spin {
  to {
    transform: rotate(360deg);
  }
}

.dt-loading-spinner {
  opacity: .75;
  border: 2px solid;
  border-right-color: #0000;
  border-radius: 999px;
  flex: none;
  width: .875rem;
  height: .875rem;
  animation: .7s linear infinite dt-spin;
  display: inline-block;
}

@keyframes select-pop {
  0% {
    opacity: 0;
    transform: translateY(-.28rem)scale(.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.animate-select-pop {
  animation: .18s cubic-bezier(.22, 1, .36, 1) both select-pop;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style-type: none;
}

.grid-cols-\[1\.9rem_minmax\(0\,1fr\)_auto\] {
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.place-items-center {
  place-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: .25rem;
}

.gap-1\.5 {
  gap: .375rem;
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: .75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-section {
  gap: 2.25rem;
}

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-visible {
  overflow: visible;
}

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

.overflow-y-auto {
  overflow-y: auto;
}

.overscroll-x-contain {
  overscroll-behavior-x: contain;
}

.truncate {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.text-ellipsis {
  text-overflow: ellipsis;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.break-words {
  overflow-wrap: break-word;
}

.rounded-2xl {
  border-radius: .875rem;
}

.rounded-card {
  border-radius: .95rem;
}

.rounded-lg {
  border-radius: .625rem;
}

.rounded-md {
  border-radius: .5rem;
}

.rounded-pill {
  border-radius: 999px;
}

.rounded-xl {
  border-radius: .75rem;
}

.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l {
  border-left-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-dashed {
  border-style: dashed;
}

.border-brand\/24 {
  border-color: hsl(var(--brand) / .24);
}

.border-brand\/30 {
  border-color: hsl(var(--brand) / .3);
}

.border-brand\/35 {
  border-color: hsl(var(--brand) / .35);
}

.border-brand\/40 {
  border-color: hsl(var(--brand) / .4);
}

.border-line-soft {
  --tw-border-opacity: 1;
  border-color: hsl(var(--line-soft) / var(--tw-border-opacity, 1));
}

.border-line-soft\/70 {
  border-color: hsl(var(--line-soft) / .7);
}

.border-line-soft\/75 {
  border-color: hsl(var(--line-soft) / .75);
}

.border-line-soft\/80 {
  border-color: hsl(var(--line-soft) / .8);
}

.border-line-strong\/80 {
  border-color: hsl(var(--line-strong) / .8);
}

.border-state-danger\/35 {
  border-color: hsl(var(--state-danger) / .35);
}

.border-state-danger\/40 {
  border-color: hsl(var(--state-danger) / .4);
}

.border-state-danger\/45 {
  border-color: hsl(var(--state-danger) / .45);
}

.border-state-info\/35 {
  border-color: hsl(var(--state-info) / .35);
}

.border-state-info\/45 {
  border-color: hsl(var(--state-info) / .45);
}

.border-state-success\/35 {
  border-color: hsl(var(--state-success) / .35);
}

.border-state-success\/45 {
  border-color: hsl(var(--state-success) / .45);
}

.border-state-warning\/35 {
  border-color: hsl(var(--state-warning) / .35);
}

.border-state-warning\/45 {
  border-color: hsl(var(--state-warning) / .45);
}

.border-transparent {
  border-color: #0000;
}

.bg-black\/35 {
  background-color: #00000059;
}

.bg-brand {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--brand) / var(--tw-bg-opacity, 1));
}

.bg-brand-faint\/28 {
  background-color: hsl(var(--brand-faint) / .28);
}

.bg-brand-faint\/45 {
  background-color: hsl(var(--brand-faint) / .45);
}

.bg-brand-faint\/50 {
  background-color: hsl(var(--brand-faint) / .5);
}

.bg-brand-faint\/70 {
  background-color: hsl(var(--brand-faint) / .7);
}

.bg-brand\/20 {
  background-color: hsl(var(--brand) / .2);
}

.bg-current {
  background-color: currentColor;
}

.bg-field-sheen {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--surface-field) / var(--tw-bg-opacity, 1));
}

.bg-state-danger\/10 {
  background-color: hsl(var(--state-danger) / .1);
}

.bg-state-danger\/12 {
  background-color: hsl(var(--state-danger) / .12);
}

.bg-state-danger\/8 {
  background-color: hsl(var(--state-danger) / .08);
}

.bg-state-info\/10 {
  background-color: hsl(var(--state-info) / .1);
}

.bg-state-info\/12 {
  background-color: hsl(var(--state-info) / .12);
}

.bg-state-success\/10 {
  background-color: hsl(var(--state-success) / .1);
}

.bg-state-success\/12 {
  background-color: hsl(var(--state-success) / .12);
}

.bg-state-warning\/12 {
  background-color: hsl(var(--state-warning) / .12);
}

.bg-state-warning\/8 {
  background-color: hsl(var(--state-warning) / .08);
}

.bg-surface-card\/64 {
  background-color: hsl(var(--surface-card) / .64);
}

.bg-surface-card\/72 {
  background-color: hsl(var(--surface-card) / .72);
}

.bg-surface-card\/80 {
  background-color: hsl(var(--surface-card) / .8);
}

.bg-surface-card\/95 {
  background-color: hsl(var(--surface-card) / .95);
}

.bg-surface-field {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--surface-field) / var(--tw-bg-opacity, 1));
}

.bg-surface-field\/0 {
  background-color: hsl(var(--surface-field) / 0);
}

.bg-surface-field\/28 {
  background-color: hsl(var(--surface-field) / .28);
}

.bg-surface-field\/36 {
  background-color: hsl(var(--surface-field) / .36);
}

.bg-surface-hover {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--surface-hover) / var(--tw-bg-opacity, 1));
}

.bg-surface-hover\/70 {
  background-color: hsl(var(--surface-hover) / .7);
}

.bg-surface-raised {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--surface-raised) / var(--tw-bg-opacity, 1));
}

.bg-surface-raised\/12 {
  background-color: hsl(var(--surface-raised) / .12);
}

.bg-surface-raised\/24 {
  background-color: hsl(var(--surface-raised) / .24);
}

.bg-surface-raised\/30 {
  background-color: hsl(var(--surface-raised) / .3);
}

.bg-surface-raised\/35 {
  background-color: hsl(var(--surface-raised) / .35);
}

.bg-surface-raised\/38 {
  background-color: hsl(var(--surface-raised) / .38);
}

.bg-surface-raised\/40 {
  background-color: hsl(var(--surface-raised) / .4);
}

.bg-surface-raised\/44 {
  background-color: hsl(var(--surface-raised) / .44);
}

.bg-surface-raised\/62 {
  background-color: hsl(var(--surface-raised) / .62);
}

.bg-surface-raised\/70 {
  background-color: hsl(var(--surface-raised) / .7);
}

.bg-surface-raised\/95 {
  background-color: hsl(var(--surface-raised) / .95);
}

.bg-surface\/70 {
  background-color: hsl(var(--surface) / .7);
}

.bg-transparent {
  background-color: #0000;
}

.bg-field-sheen {
  background-image: linear-gradient(180deg,
    hsl(var(--surface-field) / .94),
    hsl(var(--app-bg-elevated) / .88));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-brand-faint\/80 {
  --tw-gradient-from: hsl(var(--brand-faint) / .8)
    var(--tw-gradient-from-position);
  --tw-gradient-to: hsl(var(--brand-faint) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-surface-field\/80 {
  --tw-gradient-to: hsl(var(--surface-field) / .8)
    var(--tw-gradient-to-position);
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: .25rem;
}

.p-1\.5 {
  padding: .375rem;
}

.p-2 {
  padding: .5rem;
}

.p-3 {
  padding: .75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-card {
  padding: 1.15rem;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.px-1 {
  padding-left: .25rem;
  padding-right: .25rem;
}

.px-1\.5 {
  padding-left: .375rem;
  padding-right: .375rem;
}

.px-2 {
  padding-left: .5rem;
  padding-right: .5rem;
}

.px-2\.5 {
  padding-left: .625rem;
  padding-right: .625rem;
}

.px-3 {
  padding-left: .75rem;
  padding-right: .75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-0\.5 {
  padding-top: .125rem;
  padding-bottom: .125rem;
}

.py-1 {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.py-3 {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pb-1 {
  padding-bottom: .25rem;
}

.pb-2 {
  padding-bottom: .5rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pr-1 {
  padding-right: .25rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

.pt-1 {
  padding-top: .25rem;
}

.pt-2 {
  padding-top: .5rem;
}

.text-left {
  text-align: left;
}

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

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

.align-top {
  vertical-align: top;
}

.font-mono {
  font-family: var(--font-mono),
    JetBrains Mono,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}

.text-\[0\.68rem\] {
  font-size: .68rem;
}

.text-\[0\.8125rem\] {
  font-size: .8125rem;
}

.text-\[0\.84rem\] {
  font-size: .84rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-body {
  letter-spacing: -.01em;
  font-size: .875rem;
  line-height: 1.35rem;
}

.text-body-sm {
  letter-spacing: -.01em;
  font-size: .8125rem;
  line-height: 1.2rem;
}

.text-caption {
  letter-spacing: .01em;
  font-size: .75rem;
  line-height: 1rem;
}

.text-h2 {
  letter-spacing: -.06em;
  font-size: 2rem;
  line-height: 2.35rem;
}

.text-h5 {
  letter-spacing: -.025em;
  font-size: 1.0625rem;
  line-height: 1.45rem;
}

.text-heading-sm {
  letter-spacing: -.035em;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.text-lead {
  letter-spacing: -.015em;
  font-size: 1rem;
  line-height: 1.55rem;
}

.text-micro {
  letter-spacing: .09em;
  font-size: .6875rem;
  line-height: .875rem;
}

.text-title {
  letter-spacing: -.025em;
  font-size: 1rem;
  line-height: 1.35rem;
}

.font-bold {
  font-weight: 760;
}

.font-heavy {
  font-weight: 850;
}

.font-semibold {
  font-weight: 650;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.leading-5 {
  line-height: 1.25rem;
}

.leading-6 {
  line-height: 1.5rem;
}

.leading-none {
  line-height: 1;
}

.tracking-display {
  letter-spacing: -.065em;
}

.tracking-label {
  letter-spacing: .075em;
}

.text-brand-hover {
  --tw-text-opacity: 1;
  color: hsl(var(--brand-hover) / var(--tw-text-opacity, 1));
}

.text-copy {
  --tw-text-opacity: 1;
  color: hsl(var(--copy) / var(--tw-text-opacity, 1));
}

.text-copy-faint {
  --tw-text-opacity: 1;
  color: hsl(var(--copy-faint) / var(--tw-text-opacity, 1));
}

.text-copy-muted {
  --tw-text-opacity: 1;
  color: hsl(var(--copy-muted) / var(--tw-text-opacity, 1));
}

.text-copy-soft {
  --tw-text-opacity: 1;
  color: hsl(var(--copy-soft) / var(--tw-text-opacity, 1));
}

.text-inherit {
  color: inherit;
}

.text-state-danger {
  --tw-text-opacity: 1;
  color: hsl(var(--state-danger) / var(--tw-text-opacity, 1));
}

.text-state-info {
  --tw-text-opacity: 1;
  color: hsl(var(--state-info) / var(--tw-text-opacity, 1));
}

.text-state-success {
  --tw-text-opacity: 1;
  color: hsl(var(--state-success) / var(--tw-text-opacity, 1));
}

.text-state-warning {
  --tw-text-opacity: 1;
  color: hsl(var(--state-warning) / var(--tw-text-opacity, 1));
}

.no-underline {
  text-decoration-line: none;
}

.opacity-60 {
  opacity: .6;
}

.opacity-70 {
  opacity: .7;
}

.opacity-80 {
  opacity: .8;
}

.opacity-82 {
  opacity: .82;
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px #00000040;
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-\[0_0_18px_hsl\(var\(--brand\)_\/_0\.55\)\] {
  --tw-shadow: 0 0 18px hsl(var(--brand) / .55);
  --tw-shadow-colored: 0 0 18px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-\[0_0_18px_rgb\(102_112_255_\/_0\.14\)\] {
  --tw-shadow: 0 0 18px #6670ff24;
  --tw-shadow-colored: 0 0 18px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-\[12px_0_26px_rgb\(0_0_0_\/_0\.18\)\] {
  --tw-shadow: 12px 0 26px #0000002e;
  --tw-shadow-colored: 12px 0 26px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-button {
  --tw-shadow: 0 14px 34px hsl(var(--brand) / .22);
  --tw-shadow-colored: 0 14px 34px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-card-soft {
  --tw-shadow: 0 18px 55px #00000047, inset 0 1px 0 hsl(var(--line-soft) / .68);
  --tw-shadow-colored: 0 18px 55px var(--tw-shadow-color), inset 0 1px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-inset {
  --tw-shadow: inset 0 1px 0 hsl(var(--line-soft) / .65);
  --tw-shadow-colored: inset 0 1px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.shadow-panel {
  --tw-shadow: 0 28px 90px #0000007a;
  --tw-shadow-colored: 0 28px 90px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.outline-none {
  outline-offset: 2px;
  outline: 2px solid #0000;
}

.\!filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
    var(--tw-sepia) var(--tw-drop-shadow) !important;
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
    var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-blur-\[2px\] {
  --tw-backdrop-blur: blur(2px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
}

.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
}

.transition-all {
  transition-property: all;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.transition-transform {
  transition-property: transform;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.duration-150 {
  transition-duration: .15s;
}

.ease-luxury {
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.marker\:text-copy-faint ::marker {
  color: hsl(var(--copy-faint));
}

.marker\:text-copy-faint::marker {
  color: hsl(var(--copy-faint));
}

.hover\:border-line-soft\/80:hover {
  border-color: hsl(var(--line-soft) / .8);
}

.hover\:bg-brand-faint:hover {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--brand-faint) / var(--tw-bg-opacity, 1));
}

.hover\:bg-state-danger\/18:hover {
  background-color: hsl(var(--state-danger) / .18);
}

.hover\:bg-surface-hover:hover {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--surface-hover) / var(--tw-bg-opacity, 1));
}

.hover\:bg-surface-hover\/48:hover {
  background-color: hsl(var(--surface-hover) / .48);
}

.hover\:bg-surface-hover\/54:hover {
  background-color: hsl(var(--surface-hover) / .54);
}

.hover\:bg-surface-hover\/80:hover {
  background-color: hsl(var(--surface-hover) / .8);
}

.hover\:text-brand:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--brand) / var(--tw-text-opacity, 1));
}

.hover\:text-brand-hover:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--brand-hover) / var(--tw-text-opacity, 1));
}

.hover\:text-copy:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--copy) / var(--tw-text-opacity, 1));
}

.hover\:text-copy-soft:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--copy-soft) / var(--tw-text-opacity, 1));
}

.hover\:text-state-danger:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--state-danger) / var(--tw-text-opacity, 1));
}

.hover\:text-state-success:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--state-success) / var(--tw-text-opacity, 1));
}

.hover\:text-state-warning:hover {
  --tw-text-opacity: 1;
  color: hsl(var(--state-warning) / var(--tw-text-opacity, 1));
}

.focus-visible\:outline-none:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #0000;
}

.focus-visible\:outline:focus-visible {
  outline-style: solid;
}

.focus-visible\:outline-2:focus-visible {
  outline-width: 2px;
}

.focus-visible\:outline-brand:focus-visible {
  outline-color: hsl(var(--brand) / 1);
}

.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
    var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
    calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
    var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-brand\/40:focus-visible {
  --tw-ring-color: hsl(var(--brand) / .4);
}

.focus-visible\:ring-brand\/45:focus-visible {
  --tw-ring-color: hsl(var(--brand) / .45);
}

.group\/primary-cell:hover .group-hover\/primary-cell\:text-brand-hover {
  --tw-text-opacity: 1;
  color: hsl(var(--brand-hover) / var(--tw-text-opacity, 1));
}

.group\/sort:hover .group-hover\/sort\:text-copy-soft {
  --tw-text-opacity: 1;
  color: hsl(var(--copy-soft) / var(--tw-text-opacity, 1));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .md\:grid-cols-\[minmax\(12rem\,1fr\)_2fr\] {
    grid-template-columns: minmax(12rem, 1fr) 2fr;
  }

  .md\:p-4\.5 {
    padding: 1.125rem;
  }

  .md\:text-\[2\.55rem\] {
    font-size: 2.55rem;
  }

  .md\:leading-\[2\.7rem\] {
    line-height: 2.7rem;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:grid-cols-\[minmax\(18rem\,1fr\)_auto\] {
    grid-template-columns: minmax(18rem, 1fr) auto;
  }

  .lg\:items-center {
    align-items: center;
  }

  .lg\:justify-end {
    justify-content: flex-end;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker {
  display: none;
}

@layer components {
  .dt-frame-stage7 {
    isolation: isolate;
    position: relative;
  }

  .dt-frame-stage7:before {
    content: "";
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 14% 12%,
        hsl(var(--brand) / .11),
        transparent 20rem),
      radial-gradient(circle at 92% 0%,
        hsl(var(--brand-soft) / .08),
        transparent 18rem);
    opacity: .9;
    height: 16rem;
    position: absolute;
    inset: -.85rem -.65rem auto;
  }

  .dt-header-strip-stage7 {
    border: 1px solid hsl(var(--line-soft) / .82);
    background: radial-gradient(circle at 7% 0%,
        hsl(var(--brand) / .12),
        transparent 18rem),
      linear-gradient(180deg,
        hsl(var(--surface-card) / .78),
        hsl(var(--surface) / .48));
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / .62),
      0 18px 52px #0003;
    position: relative;
    overflow: hidden;
  }

  .dt-premium-card-stage7 {
    border: 1px solid hsl(var(--line-soft) / .92);
    background: radial-gradient(circle at 18% 0%,
        hsl(var(--brand) / .08),
        transparent 22rem),
      linear-gradient(180deg,
        hsl(var(--surface-card) / .98),
        hsl(var(--surface) / .94));
    box-shadow: 0 26px 80px #00000061,
      inset 0 1px 0 hsl(var(--line-soft) / .74);
    position: relative;
    overflow: visible;
  }

  .dt-toolbar-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-card) / .86),
      hsl(var(--surface-raised) / .48));
    box-shadow: inset 0 -1px 0 hsl(var(--line-soft) / .72);
  }

  .dt-toolbar-button-stage7 {
    border-color: hsl(var(--line-soft) / .88);
    background: linear-gradient(180deg,
      hsl(var(--surface-raised) / .72),
      hsl(var(--surface-field) / .52));
    min-height: 2.25rem;
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / .55);
  }

  .dt-toolbar-button-stage7:hover {
    border-color: hsl(var(--brand) / .36);
    background: linear-gradient(180deg,
      hsl(var(--surface-hover) / .72),
      hsl(var(--surface-raised) / .58));
  }

  .data-table-search-icon {
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: .95rem;
    transform: translateY(-50%);
  }

  .dt-frame-stage7 .data-table-search-input.field-control {
    padding-left: 3rem;
    padding-right: 1rem;
  }

  .dt-frame-stage7 .data-table-search-input--with-action.field-control {
    padding-right: 3.25rem;
  }

  .data-table-search-loading, .data-table-search-clear {
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
  }

  .data-table-search-loading {
    color: hsl(var(--copy-faint));
    pointer-events: none;
  }

  .data-table-search-clear {
    color: hsl(var(--copy-faint));
    background: none;
    border: 0;
    border-radius: 999px;
    line-height: 1;
    transition: background .16s cubic-bezier(.22, 1, .36, 1), color .16s cubic-bezier(.22, 1, .36, 1);
  }

  .data-table-search-clear:hover {
    background: hsl(var(--surface-hover));
    color: hsl(var(--copy));
  }

  .data-table-search-clear:focus-visible {
    outline: 2px solid hsl(var(--brand));
    outline-offset: 2px;
  }

  .data-table-search-clear-icon {
    width: .72rem;
    height: .72rem;
    display: block;
    position: relative;
  }

  .data-table-search-clear-icon:before, .data-table-search-clear-icon:after {
    content: "";
    transform-origin: center;
    background: currentColor;
    border-radius: 999px;
    width: .72rem;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
  }

  .data-table-search-clear-icon:before {
    transform: translate(-50%, -50%)rotate(45deg);
  }

  .data-table-search-clear-icon:after {
    transform: translate(-50%, -50%)rotate(-45deg);
  }

  .dt-filter-strip-stage7 {
    background: radial-gradient(circle at 14% 0%,
        hsl(var(--brand) / .065),
        transparent 18rem),
      linear-gradient(180deg,
        hsl(var(--surface-raised) / .38),
        hsl(var(--surface-field) / .22));
  }

  .dt-chip-stage7 {
    border: 1px solid hsl(var(--line-soft) / .84);
    background: hsl(var(--surface-field) / .46);
    min-height: 1.9rem;
    color: hsl(var(--copy-muted));
    letter-spacing: -.01em;
    border-radius: 999px;
    align-items: center;
    gap: .42rem;
    padding-inline: .72rem;
    font-size: .72rem;
    font-weight: 760;
    line-height: 1rem;
    display: inline-flex;
  }

  .dt-chip-stage7.is-active {
    border-color: hsl(var(--brand) / .38);
    background: hsl(var(--brand-faint) / .46);
    color: hsl(var(--copy-soft));
    box-shadow: inset 0 1px 0 hsl(var(--brand-hover) / .12);
  }

  .dt-chip-stage7.is-empty {
    background: hsl(var(--surface-field) / .26);
    color: hsl(var(--copy-faint));
    border-style: dashed;
    font-weight: 650;
  }

  .dt-popover-stage7, .dt-drawer-stage7 {
    background: radial-gradient(circle at 18% 0%,
        hsl(var(--brand) / .11),
        transparent 18rem),
      linear-gradient(180deg, hsl(var(--surface-card)), hsl(var(--surface)));
    box-shadow: 0 28px 90px #00000085,
      inset 0 1px 0 hsl(var(--line-soft) / .72);
  }

  .dt-builder-panel-stage7 {
    border-color: hsl(var(--line-soft) / .78);
    background: linear-gradient(180deg,
      hsl(var(--surface-raised) / .6),
      hsl(var(--surface-field) / .34));
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / .48);
  }

  .dt-column-option-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-field) / .4),
      hsl(var(--surface) / .28));
  }

  .dt-column-option-stage7:hover {
    background: linear-gradient(180deg,
      hsl(var(--surface-hover) / .56),
      hsl(var(--surface-raised) / .42));
  }

  .dt-bulk-bar-stage7 {
    background: linear-gradient(90deg,
      hsl(var(--brand-faint) / .58),
      hsl(var(--surface-raised) / .22));
    box-shadow: inset 0 1px 0 hsl(var(--brand-hover) / .1),
      inset 0 -1px 0 hsl(var(--brand) / .18);
  }

  .dt-table-shell-stage7 {
    background: hsl(var(--surface-card) / .8);
  }

  .dt-scroll-viewport-stage7 {
    overscroll-behavior-x: contain;
    overflow-anchor: none;
    scrollbar-gutter: stable;
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar {
    width: .72rem;
    height: .72rem;
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar-track {
    background: hsl(var(--surface-field) / .52);
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar-thumb {
    border: 3px solid hsl(var(--surface-field) / .52);
    background: hsl(var(--line-strong) / .78);
    border-radius: 999px;
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--brand) / .55);
  }

  .dt-table-stage7 {
    border-collapse: separate;
    border-spacing: 0;
  }

  .dt-head-row-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised) / .96));
  }

  .dt-th-stage7 {
    border-bottom: 1px solid hsl(var(--line-soft) / .72);
    color: hsl(var(--copy-faint));
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .64rem;
    font-weight: 850;
    line-height: .9rem;
  }

  .dt-row-stage7 {
    background: hsl(var(--surface) / .38);
    transition: background .14s cubic-bezier(.22, 1, .36, 1), box-shadow .14s cubic-bezier(.22, 1, .36, 1);
  }

  .dt-row-stage7:hover {
    background: hsl(var(--surface-hover) / .44);
  }

  .dt-row-stage7[aria-selected="true"] {
    background: linear-gradient(90deg,
      hsl(var(--brand-faint) / .44),
      hsl(var(--surface) / .44));
    box-shadow: inset 3px 0 0 hsl(var(--brand) / .74);
  }

  .dt-cell-stage7 {
    border-bottom: 1px solid hsl(var(--line-soft) / .62);
  }

  .dt-sticky-select-stage7, .dt-sticky-primary-stage7, .dt-sticky-actions-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-card) / .995),
      hsl(var(--surface) / .985));
  }

  .dt-sticky-primary-stage7:after {
    content: "";
    pointer-events: none;
    background: hsl(var(--line-soft) / .58);
    width: 1px;
    position: absolute;
    top: 0;
    bottom: -1px;
    right: -1px;
    box-shadow: 12px 0 26px #00000038;
  }

  .dt-sticky-select-stage7:after {
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / .985));
    width: 4px;
    position: absolute;
    top: 0;
    bottom: -1px;
    right: -2px;
  }

  thead .dt-sticky-select-stage7, thead .dt-sticky-primary-stage7, thead .dt-sticky-actions-stage7, thead .dt-sticky-select-stage7:after {
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised)));
  }

  .dt-checkbox-stage7 {
    appearance: none;
    border: 1px solid hsl(var(--line-strong) / .86);
    background: linear-gradient(180deg,
      hsl(var(--surface-field) / .96),
      hsl(var(--app-bg-elevated) / .92));
    width: 1.05rem;
    height: 1.05rem;
    color: hsl(var(--copy));
    cursor: pointer;
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / .72),
      0 0 0 1px hsl(var(--app-bg) / .18);
    border-radius: .32rem;
    place-content: center;
    margin: 0;
    transition: border-color .16s cubic-bezier(.22, 1, .36, 1), background .16s cubic-bezier(.22, 1, .36, 1), box-shadow .16s cubic-bezier(.22, 1, .36, 1), transform .16s cubic-bezier(.22, 1, .36, 1);
    display: grid;
  }

  .dt-checkbox-stage7:before {
    content: "";
    transform-origin: center;
    background: hsl(var(--copy));
    clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 18%, 82% 0, 36% 66%);
    width: .56rem;
    height: .56rem;
    transition: transform .14s cubic-bezier(.22, 1, .36, 1);
    transform: scale(0);
  }

  .dt-checkbox-stage7:hover {
    border-color: hsl(var(--brand-hover) / .58);
    transform: translateY(-1px);
  }

  .dt-checkbox-stage7:focus-visible {
    border-color: hsl(var(--brand) / .72);
    box-shadow: 0 0 0 4px hsl(var(--brand) / .16),
      inset 0 1px 0 hsl(var(--line-soft) / .72);
    outline: none;
  }

  .dt-checkbox-stage7:checked, .dt-checkbox-stage7:indeterminate {
    border-color: hsl(var(--brand-hover) / .74);
    background: radial-gradient(circle at 35% 12%,
        hsl(var(--copy) / .26),
        transparent 42%),
      linear-gradient(135deg,
        hsl(var(--brand-active)),
        hsl(var(--brand)) 58%,
        hsl(var(--brand-hover)));
    box-shadow: 0 0 20px hsl(var(--brand) / .24),
      inset 0 1px 0 hsl(var(--copy) / .18);
  }

  .dt-checkbox-stage7:checked:before, .dt-checkbox-stage7:indeterminate:before {
    transform: scale(1);
  }

  .dt-footer-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-raised) / .42),
      hsl(var(--surface-field) / .24));
  }

  @media (max-width: 780px) {
    .dt-scroll-viewport-stage7 {
      scrollbar-gutter: auto;
    }
  }

  .dt-row-stage7:hover .dt-sticky-select-stage7, .dt-row-stage7:hover .dt-sticky-primary-stage7, .dt-row-stage7:hover .dt-sticky-actions-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-hover) / .92),
      hsl(var(--surface-raised) / .86));
  }

  .dt-row-stage7[aria-selected="true"] .dt-sticky-select-stage7, .dt-row-stage7[aria-selected="true"] .dt-sticky-primary-stage7, .dt-row-stage7[aria-selected="true"] .dt-sticky-actions-stage7 {
    background: linear-gradient(90deg,
      hsl(var(--brand-faint) / .58),
      hsl(var(--surface-raised) / .86));
  }

  .dt-frame-stage7 {
    gap: .9rem;
    min-width: 0;
    max-width: 100%;
  }

  .dt-header-strip-stage7 {
    border: 1px solid hsl(var(--line-soft) / .92);
    background: linear-gradient(180deg,
      hsl(var(--surface-card) / .96),
      hsl(var(--surface) / .88));
    box-shadow: 0 18px 55px #00000052,
      inset 0 1px 0 hsl(var(--line-soft) / .72);
    border-radius: .95rem;
    padding: 1.05rem;
  }

  .dt-header-strip-stage7 h1 {
    letter-spacing: -.075em;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 850;
    line-height: 1;
  }

  .dt-header-strip-stage7 p:not([class*="dt-chip"]) {
    max-width: 46rem;
  }

  .dt-premium-card-stage7 {
    border-radius: .95rem;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .dt-toolbar-stage7.table-toolbar {
    box-shadow: none;
    background: none;
    grid-template-columns: minmax(18rem, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .85rem;
  }

  .dt-toolbar-button-stage7, .dt-export-control > summary {
    letter-spacing: -.01em;
    text-transform: none;
    border-radius: .625rem;
    min-height: 2.5rem;
    font-size: .8125rem;
    font-weight: 760;
    line-height: 1rem;
  }

  .dt-toolbar-button-stage7.btn-icon {
    width: 2.5rem;
    padding-inline: 0;
  }

  .dt-toolbar-button-stage7:hover, .dt-export-control > summary:hover {
    transform: translateY(-1px);
  }

  .field-control:disabled {
    opacity: 1;
  }

  .toolbar-actions {
    justify-content: flex-end;
    align-items: center;
    gap: .55rem;
  }

  .saved-view-control {
    z-index: 20;
    position: relative;
  }

  .saved-view-trigger {
    justify-content: space-between;
    gap: .5rem;
    min-width: 12.5rem;
  }

  .saved-view-trigger strong {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .saved-view-control.is-open .chevron, .dt-export-control[open] > summary span[aria-hidden="true"] {
    transform: rotate(180deg);
  }

  .saved-view-menu, .dt-export-menu, .dt-row-actions-popover {
    border: 1px solid hsl(var(--line-strong) / .82);
    background: radial-gradient(circle at 20% 0%,
        hsl(var(--brand) / .11),
        transparent 13rem),
      linear-gradient(180deg, hsl(var(--surface-card)), hsl(var(--surface)));
    box-shadow: 0 24px 70px #0000007a,
      inset 0 1px 0 hsl(var(--line-soft) / .72);
    border-radius: .85rem;
  }

  .saved-view-option {
    border-radius: .65rem;
    grid-template-columns: 1.9rem minmax(0, 1fr) auto;
    gap: .62rem;
    padding: .6rem;
  }

  .saved-view-option:hover {
    border-color: hsl(var(--line-soft) / .82);
    background-color: hsl(var(--surface-hover) / .54);
    color: hsl(var(--copy-soft));
  }

  .saved-view-option.active {
    border-color: hsl(var(--brand) / .36);
    background: linear-gradient(180deg,
      hsl(var(--brand-faint) / .62),
      hsl(var(--surface-raised) / .48));
    color: hsl(var(--copy));
  }

  .view-icon {
    border: 1px solid hsl(var(--line-soft) / .75);
    background-color: hsl(var(--surface-field) / .58);
    width: 1.9rem;
    height: 1.9rem;
    color: hsl(var(--copy-faint));
    border-radius: .58rem;
    font-size: .78rem;
    font-weight: 850;
  }

  .saved-view-option.active .view-icon {
    border-color: hsl(var(--brand) / .38);
    background-color: hsl(var(--brand) / .16);
    color: hsl(var(--brand-hover));
  }

  .view-name strong {
    color: inherit;
    letter-spacing: -.02em;
    font-size: .78rem;
    font-weight: 760;
  }

  .view-name span {
    color: hsl(var(--copy-faint));
    font-size: .66rem;
    line-height: .95rem;
  }

  .view-count {
    color: hsl(var(--copy-faint));
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 760;
  }

  .saved-view-delete {
    color: hsl(var(--copy-faint));
  }

  .column-builder-menu {
    border-radius: .85rem;
  }

  .dt-toolbar-inline-panels {
    width: 100%;
    min-width: 0;
  }

  .filter-builder, .column-builder {
    border-top: 1px solid hsl(var(--line-soft) / .72);
    border-bottom: 1px solid hsl(var(--line-soft) / .72);
    background: radial-gradient(circle at 16% 0%,
        hsl(var(--brand) / .11),
        transparent 18rem),
      linear-gradient(180deg,
        hsl(var(--surface-card) / .82),
        hsl(var(--surface-raised) / .36));
    margin: .15rem -.85rem -.85rem;
    animation: .22s cubic-bezier(.22, 1, .36, 1) both dt-builder-in;
  }

  .column-builder {
    background: radial-gradient(circle at 86% 0%,
        hsl(var(--brand) / .105),
        transparent 18rem),
      linear-gradient(180deg,
        hsl(var(--surface-card) / .84),
        hsl(var(--surface-raised) / .34));
  }

  @keyframes dt-builder-in {
    0% {
      opacity: 0;
      transform: translateY(-.35rem);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .filter-builder-inner, .column-builder-inner {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    padding: 1rem;
    display: grid;
  }

  .filter-builder-main, .filter-query-preview, .column-builder-main, .column-view-preview {
    border: 1px solid hsl(var(--line-soft) / .78);
    background: linear-gradient(180deg,
      hsl(var(--surface-raised) / .58),
      hsl(var(--surface-field) / .34));
    min-width: 0;
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / .48);
    border-radius: .85rem;
    padding: .9rem;
  }

  .filter-query-preview, .column-view-preview {
    align-self: start;
    position: sticky;
    top: 1rem;
  }

  .filter-builder-header, .column-builder-header {
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .9rem;
    display: flex;
  }

  .filter-builder-title, .query-preview-title, .column-builder-title, .column-preview-title {
    gap: .25rem;
    display: grid;
  }

  .filter-builder-title h3, .query-preview-title h3, .column-builder-title h3, .column-preview-title h3 {
    color: hsl(var(--copy));
    letter-spacing: -.04em;
    margin: 0;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25rem;
  }

  .filter-builder-title p, .query-preview-title p, .column-builder-title p, .column-preview-title p {
    color: hsl(var(--copy-faint));
    margin: 0;
    font-size: .73rem;
    line-height: 1.1rem;
  }

  .builder-mode-row {
    color: hsl(var(--copy-muted));
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    font-size: .76rem;
    font-weight: 650;
    display: flex;
  }

  .builder-select, .builder-input {
    border: 1px solid hsl(var(--line-soft) / .9);
    background: linear-gradient(180deg,
      hsl(var(--surface-field) / .94),
      hsl(var(--app-bg-elevated) / .88));
    min-width: 0;
    min-height: 2.35rem;
    color: hsl(var(--copy));
    border-radius: .58rem;
    outline: none;
    padding: 0 .68rem;
    font-size: .78rem;
    transition: border-color .16s cubic-bezier(.22, 1, .36, 1), box-shadow .16s cubic-bezier(.22, 1, .36, 1);
  }

  .builder-input::placeholder {
    color: hsl(var(--copy-faint));
  }

  .builder-select:focus, .builder-input:focus {
    border-color: hsl(var(--brand) / .72);
    box-shadow: 0 0 0 4px hsl(var(--brand) / .13);
  }

  .builder-groups, .column-group-stack {
    gap: .8rem;
    display: grid;
  }

  .builder-group, .column-group {
    border: 1px solid hsl(var(--line-soft) / .72);
    background: hsl(var(--surface-raised) / .32);
    border-radius: .78rem;
    overflow: hidden;
  }

  .builder-group-header, .column-group-head {
    border-bottom: 1px solid hsl(var(--line-soft) / .62);
    background: hsl(var(--surface-field) / .28);
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .72rem;
    display: flex;
  }

  .builder-group-header strong, .column-group-head strong {
    color: hsl(var(--copy-soft));
    letter-spacing: -.02em;
    font-size: .78rem;
    font-weight: 760;
  }

  .column-group-head span, .group-actions {
    color: hsl(var(--copy-faint));
    font-size: .68rem;
    font-weight: 650;
  }

  .group-actions {
    align-items: center;
    gap: .45rem;
    display: inline-flex;
  }

  .condition-list {
    gap: .55rem;
    padding: .72rem;
    display: grid;
  }

  .condition-row {
    grid-template-columns: minmax(9rem, 1.25fr) minmax(8rem, .8fr) minmax(10rem, 1fr) auto;
    align-items: center;
    gap: .5rem;
    display: grid;
  }

  .remove-condition {
    width: 2.35rem;
    min-height: 2.35rem;
    color: hsl(var(--copy-faint));
    padding: 0;
  }

  .builder-footer-actions {
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-top: .9rem;
    display: flex;
  }

  .builder-left-actions, .builder-right-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    display: flex;
  }

  .query-preview-title {
    margin-bottom: .85rem;
  }

  .query-stat-grid, .column-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .85rem;
    display: grid;
  }

  .column-stat-grid {
    margin-top: .85rem;
  }

  .query-stat {
    border: 1px solid hsl(var(--line-soft) / .64);
    background: hsl(var(--surface-field) / .34);
    border-radius: .62rem;
    padding: .65rem;
  }

  .query-stat span {
    color: hsl(var(--copy-faint));
    letter-spacing: .075em;
    text-transform: uppercase;
    font-size: .62rem;
    font-weight: 760;
    display: block;
  }

  .query-stat strong {
    color: hsl(var(--copy));
    letter-spacing: -.04em;
    margin-top: .28rem;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.15rem;
    display: block;
  }

  .query-block {
    border: 1px solid hsl(var(--line-soft) / .68);
    background: hsl(var(--app-bg-elevated) / .74);
    color: hsl(var(--copy-muted));
    font-family: var(--font-mono);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-radius: .68rem;
    padding: .78rem;
    font-size: .69rem;
    line-height: 1.15rem;
  }

  .filter-builder-trigger.is-active, .column-builder-trigger.is-active {
    border-color: hsl(var(--brand) / .48);
    background: hsl(var(--brand-faint) / .56);
    color: hsl(var(--copy));
  }

  .column-control-row {
    grid-template-columns: minmax(18rem, 1fr) auto;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
    display: grid;
  }

  .column-search-box {
    border: 1px solid hsl(var(--line-soft) / .86);
    background: linear-gradient(180deg,
      hsl(var(--surface-field) / .94),
      hsl(var(--app-bg-elevated) / .88));
    border-radius: .68rem;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    padding-inline: .72rem;
    display: flex;
  }

  .column-search-box svg {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--copy-faint));
    flex: none;
  }

  .column-search-box .builder-input {
    min-height: 2.4rem;
    box-shadow: none;
    background: none;
    border: 0;
    padding-inline: 0;
  }

  .column-quick-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    display: flex;
  }

  .column-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    padding: .72rem;
    display: grid;
  }

  .column-option {
    border: 1px solid hsl(var(--line-soft) / .68);
    background: hsl(var(--surface-field) / .26);
    min-width: 0;
    color: hsl(var(--copy-muted));
    cursor: pointer;
    text-align: left;
    border-radius: .72rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: .62rem;
    padding: .7rem;
    transition: border-color .16s cubic-bezier(.22, 1, .36, 1), background .16s cubic-bezier(.22, 1, .36, 1), transform .16s cubic-bezier(.22, 1, .36, 1), color .16s cubic-bezier(.22, 1, .36, 1);
    display: grid;
  }

  .column-option:hover {
    border-color: hsl(var(--line-strong) / .78);
    background: hsl(var(--surface-hover) / .42);
    color: hsl(var(--copy-soft));
    transform: translateY(-1px);
  }

  .column-option.is-enabled {
    border-color: hsl(var(--brand) / .34);
    background: linear-gradient(180deg,
      hsl(var(--brand-faint) / .42),
      hsl(var(--surface-field) / .3));
    color: hsl(var(--copy));
  }

  .column-check {
    border: 1px solid hsl(var(--line-strong) / .76);
    background: hsl(var(--surface-field) / .72);
    width: 1.1rem;
    height: 1.1rem;
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / .48);
    border-radius: .36rem;
    margin-top: .1rem;
    position: relative;
  }

  .column-option.is-enabled .column-check {
    border-color: hsl(var(--state-success));
    background: hsl(var(--state-success));
  }

  .column-option.is-enabled .column-check:after {
    content: "✓";
    color: hsl(var(--copy-inverse));
    place-items: center;
    font-size: .68rem;
    font-weight: 850;
    display: grid;
    position: absolute;
    inset: 0;
  }

  .column-option-copy {
    gap: .18rem;
    min-width: 0;
    display: grid;
  }

  .column-option-copy strong {
    color: inherit;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 760;
    line-height: 1.05rem;
    overflow: hidden;
  }

  .column-option-copy span {
    color: hsl(var(--copy-faint));
    font-size: .68rem;
    line-height: 1rem;
  }

  .column-density-card {
    border: 1px solid hsl(var(--line-soft) / .68);
    background: hsl(var(--surface-field) / .26);
    border-radius: .72rem;
    margin-bottom: .8rem;
    padding: .72rem;
  }

  .column-density-label {
    color: hsl(var(--copy-faint));
    letter-spacing: .075em;
    text-transform: uppercase;
    margin-bottom: .48rem;
    font-size: .62rem;
    font-weight: 760;
    display: block;
  }

  .density-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    display: grid;
  }

  .density-option {
    border: 1px solid hsl(var(--line-soft) / .7);
    min-height: 2.05rem;
    color: hsl(var(--copy-muted));
    background: none;
    border-radius: .52rem;
    font-size: .72rem;
    font-weight: 760;
  }

  .density-option.active {
    border-color: hsl(var(--brand) / .46);
    background: hsl(var(--brand-faint) / .56);
    color: hsl(var(--copy));
  }

  .visible-column-pills {
    flex-wrap: wrap;
    gap: .42rem;
    margin-bottom: .85rem;
    display: flex;
  }

  .column-pill {
    border: 1px solid hsl(var(--line-soft) / .72);
    background: hsl(var(--surface-field) / .34);
    color: hsl(var(--copy-muted));
    border-radius: 999px;
    align-items: center;
    padding: .32rem .52rem;
    font-size: .66rem;
    font-weight: 650;
    display: inline-flex;
  }

  .column-builder-note {
    border: 1px dashed hsl(var(--line-strong) / .66);
    background: hsl(var(--surface-field) / .22);
    color: hsl(var(--copy-faint));
    border-radius: .68rem;
    margin-bottom: .85rem;
    padding: .72rem;
    font-size: .72rem;
    line-height: 1.1rem;
  }

  .dt-filter-strip-stage7 {
    padding: .75rem .85rem;
  }

  .dt-chip-stage7 {
    min-height: 2rem;
    font-size: .72rem;
    font-weight: 760;
  }

  .dt-bulk-bar-stage7 {
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    padding: .65rem .85rem;
  }

  .table-scroll.dt-scroll-viewport-stage7 {
    --select-col-width: 3.18rem;
    overscroll-behavior-x: contain;
    scrollbar-gutter: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    display: block;
    overflow: auto hidden;
  }

  .people-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1220px;
  }

  .dt-table-shell-stage7 {
    min-width: 0;
    max-width: 100%;
  }

  .people-table th, .people-table td {
    border-bottom: 1px solid hsl(var(--line-soft) / .62);
    vertical-align: middle;
    padding: .74rem .72rem;
  }

  .people-table[data-density="comfortable"] th, .people-table[data-density="comfortable"] td {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .people-table th {
    z-index: 3;
    background: linear-gradient(180deg,
      hsl(var(--surface-card) / .98),
      hsl(var(--surface-raised) / .94));
    color: hsl(var(--copy-faint));
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: .64rem;
    font-weight: 850;
    position: sticky;
    top: 0;
  }

  .people-table tbody tr {
    background-color: hsl(var(--surface) / .4);
    transition: background .14s cubic-bezier(.22, 1, .36, 1), transform .14s cubic-bezier(.22, 1, .36, 1);
  }

  .people-table tbody tr:hover {
    background-color: hsl(var(--surface-hover) / .42);
  }

  .people-table th.sticky-select, .people-table td.sticky-select {
    width: var(--select-col-width);
    min-width: var(--select-col-width);
    max-width: var(--select-col-width);
    z-index: 7;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / .995));
    left: 0;
    overflow: visible;
  }

  .people-table th.sticky-person, .people-table td.sticky-person {
    left: calc(var(--select-col-width) - 1px);
    z-index: 6;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / .995));
    min-width: 19.25rem;
    padding-right: 1.45rem;
  }

  .people-table th.sticky-person + th, .people-table td.sticky-person + td {
    padding-left: 1.2rem;
  }

  .people-table thead th.sticky-select {
    z-index: 12;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised)));
  }

  .people-table thead th.sticky-person {
    z-index: 11;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised)));
  }

  .sticky-select:after {
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / .995));
    width: 4px;
    position: absolute;
    top: 0;
    bottom: -1px;
    right: -2px;
  }

  thead .sticky-select:after, thead .sticky-person:before {
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised)));
  }

  .sticky-person:before {
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / .995));
    width: 5px;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -3px;
  }

  .sticky-person:after {
    content: "";
    pointer-events: none;
    background: hsl(var(--line-soft) / .55);
    width: 1px;
    position: absolute;
    top: 0;
    bottom: -1px;
    right: -1px;
    box-shadow: 12px 0 26px #0003;
  }

  .sort-header {
    width: 100%;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    white-space: nowrap;
    background: none;
    border: 0;
    justify-content: flex-start;
    align-items: center;
    gap: .38rem;
    padding: 0;
    display: inline-flex;
  }

  .sort-header:hover {
    color: hsl(var(--copy-soft));
  }

  .sort-icon {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--copy-faint));
    border-radius: 999px;
    place-items: center;
    font-size: .68rem;
    line-height: 1;
    transition: color .16s cubic-bezier(.22, 1, .36, 1), background .16s cubic-bezier(.22, 1, .36, 1), transform .16s cubic-bezier(.22, 1, .36, 1);
    display: inline-grid;
  }

  th.is-sorted .sort-icon {
    background-color: hsl(var(--brand) / .18);
    color: hsl(var(--brand-hover));
    box-shadow: 0 0 18px hsl(var(--brand) / .16);
  }

  th.is-sorted .sort-header {
    color: hsl(var(--copy));
  }

  .person-cell {
    gap: .72rem;
    min-width: 0;
  }

  .avatar {
    border: 1px solid hsl(var(--line-soft) / .8);
    background: linear-gradient(135deg,
      hsl(var(--brand-faint) / .72),
      hsl(var(--surface-field) / .72));
    width: 2.35rem;
    height: 2.35rem;
    color: hsl(var(--copy));
    letter-spacing: -.04em;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 850;
    position: relative;
  }

  .status-dot {
    border: 2px solid hsl(var(--surface));
    background-color: hsl(var(--state-success));
    border-radius: 999px;
    width: .72rem;
    height: .72rem;
    position: absolute;
    bottom: -.1rem;
    right: -.1rem;
  }

  .status-dot.warn {
    background-color: hsl(var(--state-warning));
  }

  .status-dot.danger {
    background-color: hsl(var(--state-danger));
  }

  .status-dot.muted {
    background-color: hsl(var(--copy-faint));
  }

  .person-meta {
    min-width: 0;
  }

  .person-name {
    color: hsl(var(--copy));
    letter-spacing: -.025em;
    font-size: .86rem;
    font-weight: 760;
  }

  .person-sub {
    color: hsl(var(--copy-faint));
    margin-top: .14rem;
    font-size: .72rem;
    line-height: 1rem;
  }

  .chip-stack {
    flex-wrap: wrap;
    gap: .32rem;
    max-width: 18rem;
    display: flex;
  }

  .role-chip, .status-chip, .owner-chip, .score-chip {
    border: 1px solid hsl(var(--line-soft) / .82);
    background-color: hsl(var(--surface-field) / .46);
    color: hsl(var(--copy-muted));
    letter-spacing: -.01em;
    white-space: nowrap;
    border-radius: 999px;
    align-items: center;
    gap: .34rem;
    padding: .28rem .52rem;
    font-size: .68rem;
    font-weight: 760;
    display: inline-flex;
  }

  .role-chip.customer {
    border-color: hsl(var(--brand) / .34);
    background-color: hsl(var(--brand-faint) / .42);
    color: hsl(var(--copy-soft));
  }

  .role-chip.supplier {
    border-color: hsl(var(--state-info) / .34);
    background-color: hsl(var(--state-info) / .1);
    color: hsl(var(--state-info));
  }

  .role-chip.introducer {
    border-color: hsl(var(--state-warning) / .34);
    background-color: hsl(var(--state-warning) / .1);
    color: hsl(var(--state-warning));
  }

  .role-chip.prospect {
    border-color: hsl(var(--line-strong) / .8);
  }

  .role-chip.more {
    color: hsl(var(--copy-faint));
  }

  .dt-cell-value {
    color: hsl(var(--copy-soft));
    white-space: nowrap;
    font-size: .78rem;
  }

  .dt-cell-value .crm-value-renderer > span {
    color: inherit;
  }

  .action-dot {
    border: 1px solid hsl(var(--line-soft) / .78);
    background-color: hsl(var(--surface-field) / .42);
    width: 2rem;
    height: 2rem;
    color: hsl(var(--copy-faint));
    cursor: pointer;
    border-radius: .58rem;
    font-size: .9rem;
    line-height: 1;
  }

  .action-dot:hover {
    border-color: hsl(var(--brand) / .36);
    background-color: hsl(var(--surface-hover) / .62);
    color: hsl(var(--copy-soft));
  }

  .dt-row-actions-menu[open] {
    z-index: 70;
  }

  .row-action-option {
    color: hsl(var(--copy-muted));
  }

  .dt-export-menu button {
    width: 100%;
  }

  .dt-footer-stage7 {
    background: linear-gradient(180deg,
      hsl(var(--surface-raised) / .42),
      hsl(var(--surface-field) / .24));
    color: hsl(var(--copy-faint));
    padding: .85rem;
    font-size: .75rem;
  }

  @media (max-width: 1180px) {
    .dt-toolbar-stage7.table-toolbar {
      grid-template-columns: 1fr;
    }

    .toolbar-actions {
      justify-content: flex-start;
    }

    .filter-builder-inner, .column-builder-inner {
      grid-template-columns: 1fr;
    }

    .filter-query-preview, .column-view-preview {
      position: relative;
      top: auto;
    }

    .column-control-row {
      grid-template-columns: 1fr;
    }

    .column-quick-actions {
      justify-content: flex-start;
    }

    .condition-row, .column-option-grid {
      grid-template-columns: 1fr;
    }

    .builder-footer-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .builder-left-actions, .builder-right-actions {
      width: 100%;
    }
  }

  @media (max-width: 780px) {
    .dt-header-strip-stage7 > div {
      display: grid;
    }

    .dt-filter-strip-stage7 {
      flex-wrap: nowrap;
      overflow: auto;
    }

    .dt-footer-stage7 {
      display: grid;
    }
  }
}

.dt-frame-stage7 .data-table-search-box {
  position: relative;
}

.dt-frame-stage7 .data-table-search-icon {
  z-index: 1;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: .95rem;
  transform: translateY(-50%);
}

.dt-frame-stage7 .data-table-search-input.field-control {
  box-sizing: border-box;
  width: 100%;
  padding-left: 3rem;
  padding-right: 1rem;
}

.dt-frame-stage7 .data-table-search-input--with-action.field-control {
  padding-right: 3.25rem;
}

.dt-frame-stage7 .data-table-search-loading, .dt-frame-stage7 .data-table-search-clear {
  z-index: 2;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
}

.dt-frame-stage7 .data-table-search-loading {
  color: hsl(var(--copy-faint));
  pointer-events: none;
}

.dt-frame-stage7 .data-table-search-clear {
  color: hsl(var(--copy-faint));
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0;
  line-height: 1;
}

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