/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  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 rgb(0 0 0 / 0.22);
  --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 {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

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 {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

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 {
  border: 2px solid #0b0e12;
  border-radius: 10px;
  background: #333d49;
}

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

/* CRM application shell */

.crm-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgb(143 175 255 / 0.08),
      transparent 34rem
    ),
    var(--canvas);
}

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

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

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

.crm-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  background: rgb(8 10 13 / 0.92);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

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

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

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

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

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

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

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

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

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

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

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

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

.crm-navbar__search-results,
.crm-navbar__account-menu {
  position: absolute;
  top: calc(100% + 12px);
  z-index: 120;
  overflow: hidden;
  border: 1px solid #262d37;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 30%), #17191d;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.42);
}

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

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

.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 {
  display: block;
  padding: 15px 12px;
  color: var(--text-faint);
  font-size: 12px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.crm-navbar__account {
  position: relative;
  flex: 0 0 auto;
}

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

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

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

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

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

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

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

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

.crm-navbar__mega {
  --crm-navbar-mega-max-height: min(75vh, calc(100vh - 112px));

  position: absolute;
  top: calc(100% + 14px);
  left: 128px;
  z-index: 110;
  display: grid;
  width: min(1120px, calc(100vw - 176px));
  height: var(--crm-navbar-mega-max-height);
  box-sizing: border-box;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: stretch;
  max-height: 75vh;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #24282f;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 35% 100%,
      rgb(49 75 130 / 0.2),
      transparent 30rem
    ),
    linear-gradient(180deg, #1c1e22, #181a1e);
  box-shadow: 0 34px 90px rgb(0 0 0 / 0.48);
  animation: crm-menu-reveal 130ms ease-out;
}

.crm-navbar__mega::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(255 255 255 / 0.04), transparent 35%);
  content: "";
  pointer-events: none;
}

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

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

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

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

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

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

/* .crm-navbar__mega-category:hover,
.crm-navbar__mega-category.is-active {
  border-color: rgb(72 145 236 / 0.28);
  background: #24282b;
} */

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

.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: #eeeeee;
}

.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 {
  display: block;
  min-width: 0;
}

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

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

.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 {
  align-self: stretch;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

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

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

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

.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 {
  width: 14px;
  height: 14px;
  color: #696f78;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.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 {
  position: absolute;
  top: calc(100% + 10px);
  right: 16px;
  left: 16px;
  z-index: 110;
  display: none;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #262d37;
  border-radius: 16px;
  background: #17191d;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.42);
}

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

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

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

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

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

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

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

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

@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 {
    left: 22px;
    width: calc(100vw - 44px);
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }
}

@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, calc(100vw - 190px));
    min-width: 160px;
  }

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

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

  .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 {
    width: auto;
    min-width: 0;
    flex: 1 1;
  }

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

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

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

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

  .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 {
    right: 10px;
    left: 10px;
    padding: 14px;
  }

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

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

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

/* Database studio shell */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.schema-tree__overview {
  height: 38px;
  gap: 9px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  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 {
  border-color: #33425e;
  background: var(--accent-surface);
  color: var(--accent-strong);
}

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

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

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

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

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

.schema-tree__toggle svg {
  width: 13px;
  height: 13px;
  transition: transform 130ms ease;
}

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

.schema-tree__schema-row > a {
  height: 34px;
  gap: 8px;
  padding: 0 8px;
  border-radius: 6px;
  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 {
  width: 14px;
  height: 14px;
  color: #7f8d9e;
}

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

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

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

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

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

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

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

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

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

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

.schema-tree__view {
  opacity: 0.72;
}

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

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

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

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

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

.studio-topbar__left {
  gap: 11px;
}

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

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

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

.studio-topbar__right {
  gap: 8px;
}

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

.connection-chip > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--text-faint);
  box-shadow: 0 0 0 4px rgb(111 123 137 / 0.1);
}

.connection-chip.is-online > span {
  background: var(--positive);
  box-shadow: 0 0 0 4px rgb(112 215 173 / 0.1);
}

.connection-chip.is-offline > span {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgb(231 189 118 / 0.1);
}

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

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

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

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

.studio-overlay {
  display: none;
}

/* Reusable controls */

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

.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 {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

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

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

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

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

.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 {
  border-color: #3c4c6b;
  color: var(--accent-strong);
}

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

.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 {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.08);
  font-size: 9px;
}

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

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

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

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

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

.is-spinning {
  animation: spin 800ms linear infinite;
}

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

/* Page primitives */

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

.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 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.panel--data {
  overflow: visible;
}

/* Overview cards */

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

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

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

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

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

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

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

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

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

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

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

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

.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 {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border-soft);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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 {
  margin: 0;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* Metadata and object tables */

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

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

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

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

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

.metadata-table tbody tr:hover td {
  background: rgb(255 255 255 / 0.015);
}

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

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

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

.metadata-table--columns th:nth-child(1),
.metadata-table--columns td:nth-child(1) {
  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 {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

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

.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 {
  display: -webkit-box;
  max-width: 580px;
  overflow: hidden;
  color: var(--text-faint);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

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

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

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

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

.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 {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

/* Object tabs and details */

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

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

.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 {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.055);
  color: var(--text-faint);
  font-size: 8px;
}

.tab-panel {
  animation: reveal-panel 160ms ease-out;
}

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

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

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

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

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

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

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

.relationship-list {
  padding: 12px;
}

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

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

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

.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 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

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

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

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

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

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

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

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

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

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

.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 {
  max-width: 100%;
  overflow-x: auto;
  color: #b8c4d2;
  font-size: 9px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

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

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

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

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

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

.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 {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

/* Account security */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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 {
  display: flex;
  justify-content: flex-end;
}

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

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

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

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

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

.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 rgb(143 175 255 / 0.12);
}

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

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

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

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

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

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

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

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

.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 {
  display: grid;
  gap: 14px;
}

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

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

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

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

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

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

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

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

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

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

.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 {
  display: grid;
  gap: 18px;
  padding: 20px;
}

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

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

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

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

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

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

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

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

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

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

.totp-meta div {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  background: var(--canvas-raised);
  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 {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.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(calc(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 {
    grid-template-columns: 1fr;
  }

  .totp-meta {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

.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 {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.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 {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

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

/* Code block */

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

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

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

/* Data explorer */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.filter-row textarea {
  resize: vertical;
}

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

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

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

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

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

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

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

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

.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 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 9px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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 {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgb(10 13 17 / 0.72);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

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

.data-grid__loading span:nth-child(2),
.page-loading span:nth-child(2) {
  animation-delay: 140ms;
}
.data-grid__loading span:nth-child(3),
.page-loading span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes loading-dot {
  from {
    opacity: 0.28;
    transform: translateY(1px);
  }
  to {
    opacity: 1;
    transform: translateY(-3px);
  }
}

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

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

.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 {
  margin-right: 10px;
  color: #39434f;
  content: "·";
}

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

/* Modal */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(3 5 7 / 0.76);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

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

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

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

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

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

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

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

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

.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 {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 8px;
}

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

/* Empty states */

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

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

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

.empty-state h3 {
  margin: 0;
  color: var(--text);
  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 {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

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

/* Login and global states */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Responsive */

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

  .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, 0.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, 0.8fr) minmax(170px, 0.9fr) minmax(180px, 1.5fr)
      36px;
  }
}

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

  .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 {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    border: 0;
    background: rgb(2 3 5 / 0.7);
    -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
  }

  .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 {
    align-items: flex-start;
    flex-direction: column;
  }

  .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 {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .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;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* EMJ spec component shell system */

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

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

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

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

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

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

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

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

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

.emj-shell-badge.is-success,
.emj-shell-metric.is-success {
  border-color: rgb(112 215 173 / 0.28);
  background: var(--positive-surface);
  color: var(--positive);
}

.emj-shell-badge.is-danger,
.emj-shell-metric.is-danger {
  border-color: rgb(239 141 145 / 0.28);
  background: var(--danger-surface);
  color: var(--danger);
}

.emj-shell-badge.is-workflow,
.emj-shell-metric.is-workflow,
.emj-shell-badge.is-governance,
.emj-shell-metric.is-governance {
  border-color: rgb(231 189 118 / 0.28);
  background: var(--warning-surface);
  color: var(--warning);
}

.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 {
  border-color: rgb(143 175 255 / 0.28);
  background: var(--accent-surface);
  color: var(--accent);
}

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

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

.emj-shell-action.is-primary {
  border-color: rgb(143 175 255 / 0.42);
  background: linear-gradient(180deg, #263657, #1a2540);
  color: var(--text);
}

.emj-shell-action.is-danger {
  border-color: rgb(239 141 145 / 0.35);
  background: var(--danger-surface);
  color: var(--danger);
}

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

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

.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);
  font-size: 24px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.03em;
}

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

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

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

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

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

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

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

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

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

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

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

@media (min-width: 1920px) {
  .emj-page-shell__body.has-aside {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.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 {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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 {
  border-color: rgb(143 175 255 / 0.52);
  background: var(--accent-surface);
  color: var(--accent);
}

.emj-shell-stepper li.is-complete span {
  border-color: rgb(112 215 173 / 0.35);
  background: var(--positive-surface);
  color: var(--positive);
}

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

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

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

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

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

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

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

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

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

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

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

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

.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 {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px),
    #0b0f15;
  background-size: 34px 34px;
}

.emj-chart-placeholder::before,
.emj-graph-canvas::before,
.emj-document-preview::before,
.emj-calendar-grid::before,
.emj-thread-view::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(143 175 255 / 0.16);
  border-radius: var(--radius-sm);
  background: radial-gradient(
    circle at 24% 34%,
    rgb(143 175 255 / 0.18),
    transparent 12rem
  );
}

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

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

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

.emj-node:nth-child(1) {
  left: 10%;
  top: 20%;
}

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

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

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

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

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

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

.emj-message-bubble:nth-child(2) {
  justify-self: end;
  border-color: rgb(143 175 255 / 0.26);
  background: var(--accent-surface);
}

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

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

@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;
  }
}

/* Segmented route workspace components */

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

.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 {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emj-segmented-shell__header h1,
.emj-segmented-sidebar header h2 {
  margin: 4px 0;
  color: var(--text);
  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 {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

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

.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 {
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
}

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

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

.emj-segmented-sidebar a:hover,
.emj-segmented-sidebar a.is-active {
  border-color: rgb(143 175 255 / 0.22);
  background: var(--accent-surface);
  color: var(--text);
}

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

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

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

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

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

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

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

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

.emj-segmented-tabs a {
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--text-faint);
  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 {
  display: none;
  padding: 10px 12px;
}

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

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

.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;
  }
}

/* Runtime-rendered frontend page wiring (Stages 1-14 applied to visible routes). */
.emj-runtime-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(213, 221, 234, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

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

.emj-runtime-breadcrumbs a {
  color: rgba(231, 236, 246, 0.84);
  text-decoration: none;
}

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

.emj-runtime-breadcrumbs em {
  color: rgba(148, 163, 184, 0.42);
  font-style: normal;
}

.emj-runtime-route-chip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.42);
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.78rem;
}

.emj-runtime-route-chip strong {
  color: rgba(148, 163, 184, 0.92);
  font-weight: 600;
}

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

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

.emj-runtime-link-card {
  display: grid;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 48%),
    rgba(15, 23, 42, 0.44);
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.emj-runtime-link-card:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), transparent 48%),
    rgba(15, 23, 42, 0.58);
  transform: translateY(-1px);
}

.emj-runtime-link-card span {
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.emj-runtime-link-card em {
  align-self: end;
  color: rgba(125, 211, 252, 0.82);
  font-size: 0.76rem;
  font-style: normal;
}

/* Runtime-configured frontend page implementation layer */

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

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

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

.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);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.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: rgb(143 175 255 / 0.42);
}

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

.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 {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.025);
  padding: 12px;
}

.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);
  font-size: 13px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.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 {
  border-color: rgb(231 189 118 / 0.26);
  background: var(--warning-surface);
}

.emj-runtime-field-card.is-success,
.emj-runtime-kpi-card.is-success {
  border-color: rgb(112 215 173 / 0.26);
  background: var(--positive-surface);
}

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

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

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

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

.emj-runtime-status-cluster {
  display: grid;
  gap: 4px;
  min-width: 120px;
  border: 1px solid rgb(112 215 173 / 0.25);
  border-radius: var(--radius-sm);
  background: var(--positive-surface);
  padding: 10px;
}

.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 {
  display: grid;
  gap: 10px;
}

.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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

.emj-runtime-form-field.is-readonly {
  opacity: 0.78;
}

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

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

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

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

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

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

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

.emj-runtime-submit-bar button,
.emj-runtime-comparison-grid button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  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 {
  border-color: rgb(143 175 255 / 0.42);
  background: linear-gradient(180deg, #263657, #1a2540);
  color: var(--text);
}

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

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

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

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

.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 {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 780;
}

.emj-runtime-pill.is-workflow {
  border-color: rgb(143 175 255 / 0.3);
  color: var(--accent);
  background: var(--accent-surface);
}

.emj-runtime-pill.is-danger {
  border-color: rgb(239 141 145 / 0.3);
  color: var(--danger);
  background: var(--danger-surface);
}

.emj-runtime-kpi-card {
  min-height: 130px;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgb(143 175 255 / 0.08), transparent 50%), #0d1117;
}

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

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

.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 {
  display: grid;
  gap: 8px;
}

.emj-calendar-days em {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--accent);
  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);
  border-radius: 999px;
  color: var(--text-muted);
  padding: 7px 10px;
  font-size: 10px;
}

.emj-runtime-conversation-layout,
.emj-runtime-document-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
}

.emj-runtime-conversation-layout aside {
  display: grid;
  align-content: start;
  gap: 8px;
}

.emj-runtime-conversation-layout button {
  min-height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0d1117;
  color: var(--text-muted);
  padding: 0 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 720;
}

.emj-runtime-composer {
  position: relative;
  z-index: 1;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.035);
  color: var(--text-faint);
  padding: 11px;
  font-size: 12px;
}

.emj-runtime-file-list {
  align-content: start;
}

.emj-document-preview span {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--text-faint);
}

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

.emj-runtime-comparison-grid article em {
  width: fit-content;
  border-radius: 999px;
  background: var(--warning-surface);
  color: var(--warning);
  padding: 4px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.emj-runtime-import-dropzone {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.02);
}

.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;
  }
}

/* Frontend page implementation pass: route-aware actions and operational side navigation. */
.emj-shell-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.emj-shell-action.is-disabled,
.emj-shell-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.emj-runtime-side-link-list {
  display: grid;
  gap: 8px;
}

.emj-runtime-side-link-list a {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.025);
  color: var(--text-muted);
  padding: 10px;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.emj-runtime-side-link-list a:hover {
  border-color: rgb(143 175 255 / 0.38);
  background: var(--accent-surface);
  transform: translateY(-1px);
}

.emj-runtime-side-link-list span {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.emj-runtime-side-link-list strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.emj-runtime-search-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.emj-runtime-search-command input {
  min-height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0c1016;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.emj-runtime-search-command input:focus {
  border-color: rgb(143 175 255 / 0.42);
}

.emj-runtime-search-command button {
  min-height: 40px;
  border: 1px solid rgb(143 175 255 / 0.42);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #263657, #1a2540);
  color: var(--text);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 740;
}

/* Frontend functionality pass: live runtime list, record, mutation, and workflow controls. */
.emj-live-panel,
.emj-live-form {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.045),
    rgb(255 255 255 / 0.018)
  );
  padding: 14px;
}

.emj-live-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.emj-live-toolbar label,
.emj-runtime-form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emj-live-toolbar input,
.emj-runtime-form-field input,
.emj-runtime-form-field select,
.emj-runtime-form-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0c1016;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}

.emj-runtime-form-field textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.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: rgb(143 175 255 / 0.48);
  box-shadow: 0 0 0 3px rgb(143 175 255 / 0.08);
}

.emj-runtime-form-field small {
  color: var(--muted-subtle);
  font-size: 11px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

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

.emj-runtime-form-field.is-readonly {
  opacity: 0.68;
}

.emj-live-toolbar button,
.emj-live-panel > button,
.emj-runtime-submit-bar button {
  min-height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #111722;
  color: var(--text);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.emj-live-toolbar button:hover,
.emj-live-panel > button:hover,
.emj-runtime-submit-bar button:hover {
  border-color: rgb(143 175 255 / 0.38);
  background: #151d2b;
}

.emj-live-toolbar button:disabled,
.emj-live-panel > button:disabled,
.emj-runtime-submit-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.emj-runtime-submit-bar button.is-primary {
  border-color: rgb(143 175 255 / 0.46);
  background: linear-gradient(180deg, #29395b, #1b2844);
}

.emj-live-status,
.emj-live-form__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.emj-live-status strong,
.emj-live-form__status strong {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emj-live-row-list,
.emj-live-field-grid {
  display: grid;
  gap: 8px;
}

.emj-live-row-list article,
.emj-live-field-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.025);
  padding: 10px;
}

.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 {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.emj-live-form__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.emj-live-form__section header {
  display: grid;
  gap: 4px;
}

.emj-live-form__section h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.emj-live-form__section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.emj-live-validation {
  display: grid;
  gap: 6px;
  border: 1px solid rgb(255 183 77 / 0.32);
  border-radius: var(--radius-sm);
  background: rgb(255 183 77 / 0.075);
  color: #ffd28a;
  padding: 10px;
  font-size: 12px;
}

.emj-live-error,
.emj-live-success {
  margin: 0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.emj-live-error {
  border: 1px solid rgb(255 107 107 / 0.34);
  background: rgb(255 107 107 / 0.08);
  color: #ffb3b3;
}

.emj-live-success {
  border: 1px solid rgb(67 214 146 / 0.34);
  background: rgb(67 214 146 / 0.08);
  color: #a7f2ce;
}

.emj-live-json {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #080b10;
  color: var(--muted);
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .emj-live-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Frontend page functionality pass: richer runtime tables and inline record workspaces. */
.emj-live-toolbar {
  grid-template-columns:
    minmax(220px, 1.4fr) minmax(110px, 0.45fr) minmax(160px, 0.8fr)
    minmax(110px, 0.45fr) auto auto;
}

.emj-live-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0c1016;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  outline: none;
}

.emj-live-column-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.emj-live-column-picker label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.025);
  color: var(--muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 680;
}

.emj-live-column-picker input,
.emj-live-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #8fafff;
}

.emj-live-backend-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgb(143 175 255 / 0.035);
  padding: 12px;
}

.emj-live-backend-toolbar label {
  display: grid;
  gap: 6px;
}

.emj-live-backend-toolbar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emj-live-backend-toolbar input,
.emj-live-backend-toolbar select {
  min-height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #0d121a;
  color: var(--text);
  padding: 0 11px;
  font: inherit;
}

.emj-live-backend-toolbar button,
.emj-live-backend-toolbar a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #111722;
  color: var(--text);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.emj-live-backend-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.emj-live-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

.emj-live-bulk-bar span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.emj-live-bulk-bar button {
  min-height: 34px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #111722;
  color: var(--text);
  padding: 0 11px;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emj-live-bulk-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.emj-live-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgb(8 11 16 / 0.72);
}

.emj-live-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.emj-live-table th,
.emj-live-table td {
  border-bottom: 1px solid rgb(255 255 255 / 0.055);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.emj-live-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #10151f;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emj-live-table td {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.emj-live-table tbody tr:hover td {
  background: rgb(143 175 255 / 0.045);
}

.emj-record-workspace-client,
.emj-live-record-edit-shell {
  display: grid;
  gap: 14px;
}

.emj-record-workspace-client {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.04),
    rgb(255 255 255 / 0.015)
  );
  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: 1 1 auto;
  }
}

@media (max-width: 880px) {
  .emj-live-backend-toolbar {
    grid-template-columns: 1fr;
  }
}

.emj-live-bulk-bar button.is-danger {
  border-color: rgb(255 92 92 / 0.42);
  background: rgb(104 28 34 / 0.48);
  color: #ffd7d7;
}

.emj-live-bulk-bar button.is-danger:not(:disabled):hover {
  border-color: rgb(255 118 118 / 0.72);
  background: rgb(129 34 42 / 0.68);
}

.emj-runtime-action-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.045),
    rgb(255 255 255 / 0.018)
  );
  padding: 12px;
}

.emj-runtime-action-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.emj-runtime-action-panel header span,
.emj-runtime-action-panel label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emj-runtime-action-panel header strong {
  color: var(--text);
  font-size: 11px;
}

.emj-runtime-action-panel label {
  display: grid;
  gap: 5px;
}

.emj-runtime-action-panel select,
.emj-runtime-action-panel input,
.emj-runtime-action-panel textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgb(5 9 14 / 0.74);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
  padding: 8px 9px;
}

.emj-runtime-action-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.emj-runtime-action-panel button {
  border: 1px solid rgb(143 175 255 / 0.28);
  border-radius: var(--radius-sm);
  background: rgb(91 119 255 / 0.16);
  color: #dfe6ff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.emj-runtime-action-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.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);
  display: grid;
  font-size: 11px;
  gap: 6px;
  padding-top: 8px;
}

.emj-runtime-action-panel__blocked summary {
  cursor: pointer;
  font-weight: 700;
}

.emj-runtime-action-panel__blocked span {
  display: block;
  overflow-wrap: anywhere;
}

.emj-related-records-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgb(4 8 13 / 0.72);
  padding: 14px;
}

.emj-related-records-panel header,
.emj-related-records-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.emj-related-records-panel header div {
  display: grid;
  gap: 2px;
}

.emj-related-records-panel header span,
.emj-related-records-panel__toolbar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emj-related-records-panel header strong {
  color: var(--text);
  font-size: 14px;
}

.emj-related-records-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.emj-related-records-panel select {
  max-width: 320px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgb(5 9 14 / 0.82);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
  padding: 8px 9px;
}

.emj-related-records-panel__toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.emj-related-records-panel__toolbar button {
  border: 1px solid rgb(143 175 255 / 0.28);
  border-radius: var(--radius-sm);
  background: rgb(91 119 255 / 0.16);
  color: #dfe6ff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.emj-related-records-panel__toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./packages/data/datatable/styles.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/*
 * Self-contained styles for the transferred datatable package.
 *
 * CRM-New-Features does not run Tailwind for package code, while the origin
 * datatable components rely on Tailwind utility class names and HSL theme
 * tokens. This stylesheet vendors the required utility rules and scopes the
 * origin HSL token contract to datatable roots so the rest of the CRM app can
 * keep its existing hex-based CSS variables.
 */

.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 {
  display: block;
  flex: 0 0 auto;
}

.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) / 0.7);
  color: hsl(var(--copy));
}

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

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

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

.left-0 {
  left: 0px;
}

.left-12 {
  left: 3rem;
}

.left-3 {
  left: 0.75rem;
}

.left-\[calc\(50\%\+2\.25rem\)\] {
  left: calc(50% + 2.25rem);
}

.right-0 {
  right: 0px;
}

.right-2 {
  right: 0.5rem;
}

.top-0 {
  top: 0px;
}

.top-1\/2 {
  top: 50%;
}

.top-\[calc\(100\%\+0\.45rem\)\] {
  top: calc(100% + 0.45rem);
}

.top-\[calc\(100\%\+0\.5rem\)\] {
  top: calc(100% + 0.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: 0px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.ml-auto {
  margin-left: auto;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.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: 0.375rem;
  height: 0.375rem;
}

.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}

.size-12 {
  width: 3rem;
  height: 3rem;
}

.size-3 {
  width: 0.75rem;
  height: 0.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: 0.375rem;
}

.h-3 {
  height: 0.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.666667%;
}

.w-24 {
  width: 6rem;
}

.w-36 {
  width: 9rem;
}

.w-5\/6 {
  width: 83.333333%;
}

.w-\[min\(22rem\2c calc\(100vw-2rem\)\)\] {
  width: min(22rem, calc(100vw - 2rem));
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.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 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: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.dt-loading-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  opacity: 0.75;
  animation: dt-spin 700ms linear infinite;
}

@keyframes select-pop {
  0% {
    opacity: 0;
    transform: translateY(-0.28rem) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-select-pop {
  animation: select-pop 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style-type: none;
}

.grid-cols-\[1\.9rem_minmax\(0\2c 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: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.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 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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: 0.875rem;
}

.rounded-card {
  border-radius: 0.95rem;
}

.rounded-lg {
  border-radius: 0.625rem;
}

.rounded-md {
  border-radius: 0.5rem;
}

.rounded-pill {
  border-radius: 999px;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0px;
}

.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) / 0.24);
}

.border-brand\/30 {
  border-color: hsl(var(--brand) / 0.3);
}

.border-brand\/35 {
  border-color: hsl(var(--brand) / 0.35);
}

.border-brand\/40 {
  border-color: hsl(var(--brand) / 0.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) / 0.7);
}

.border-line-soft\/75 {
  border-color: hsl(var(--line-soft) / 0.75);
}

.border-line-soft\/80 {
  border-color: hsl(var(--line-soft) / 0.8);
}

.border-line-strong\/80 {
  border-color: hsl(var(--line-strong) / 0.8);
}

.border-state-danger\/35 {
  border-color: hsl(var(--state-danger) / 0.35);
}

.border-state-danger\/40 {
  border-color: hsl(var(--state-danger) / 0.4);
}

.border-state-danger\/45 {
  border-color: hsl(var(--state-danger) / 0.45);
}

.border-state-info\/35 {
  border-color: hsl(var(--state-info) / 0.35);
}

.border-state-info\/45 {
  border-color: hsl(var(--state-info) / 0.45);
}

.border-state-success\/35 {
  border-color: hsl(var(--state-success) / 0.35);
}

.border-state-success\/45 {
  border-color: hsl(var(--state-success) / 0.45);
}

.border-state-warning\/35 {
  border-color: hsl(var(--state-warning) / 0.35);
}

.border-state-warning\/45 {
  border-color: hsl(var(--state-warning) / 0.45);
}

.border-transparent {
  border-color: transparent;
}

.bg-black\/35 {
  background-color: rgb(0 0 0 / 0.35);
}

.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) / 0.28);
}

.bg-brand-faint\/45 {
  background-color: hsl(var(--brand-faint) / 0.45);
}

.bg-brand-faint\/50 {
  background-color: hsl(var(--brand-faint) / 0.5);
}

.bg-brand-faint\/70 {
  background-color: hsl(var(--brand-faint) / 0.7);
}

.bg-brand\/20 {
  background-color: hsl(var(--brand) / 0.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) / 0.1);
}

.bg-state-danger\/12 {
  background-color: hsl(var(--state-danger) / 0.12);
}

.bg-state-danger\/8 {
  background-color: hsl(var(--state-danger) / 0.08);
}

.bg-state-info\/10 {
  background-color: hsl(var(--state-info) / 0.1);
}

.bg-state-info\/12 {
  background-color: hsl(var(--state-info) / 0.12);
}

.bg-state-success\/10 {
  background-color: hsl(var(--state-success) / 0.1);
}

.bg-state-success\/12 {
  background-color: hsl(var(--state-success) / 0.12);
}

.bg-state-warning\/12 {
  background-color: hsl(var(--state-warning) / 0.12);
}

.bg-state-warning\/8 {
  background-color: hsl(var(--state-warning) / 0.08);
}

.bg-surface-card\/64 {
  background-color: hsl(var(--surface-card) / 0.64);
}

.bg-surface-card\/72 {
  background-color: hsl(var(--surface-card) / 0.72);
}

.bg-surface-card\/80 {
  background-color: hsl(var(--surface-card) / 0.8);
}

.bg-surface-card\/95 {
  background-color: hsl(var(--surface-card) / 0.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) / 0.28);
}

.bg-surface-field\/36 {
  background-color: hsl(var(--surface-field) / 0.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) / 0.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) / 0.12);
}

.bg-surface-raised\/24 {
  background-color: hsl(var(--surface-raised) / 0.24);
}

.bg-surface-raised\/30 {
  background-color: hsl(var(--surface-raised) / 0.3);
}

.bg-surface-raised\/35 {
  background-color: hsl(var(--surface-raised) / 0.35);
}

.bg-surface-raised\/38 {
  background-color: hsl(var(--surface-raised) / 0.38);
}

.bg-surface-raised\/40 {
  background-color: hsl(var(--surface-raised) / 0.4);
}

.bg-surface-raised\/44 {
  background-color: hsl(var(--surface-raised) / 0.44);
}

.bg-surface-raised\/62 {
  background-color: hsl(var(--surface-raised) / 0.62);
}

.bg-surface-raised\/70 {
  background-color: hsl(var(--surface-raised) / 0.7);
}

.bg-surface-raised\/95 {
  background-color: hsl(var(--surface-raised) / 0.95);
}

.bg-surface\/70 {
  background-color: hsl(var(--surface) / 0.7);
}

.bg-transparent {
  background-color: transparent;
}

.bg-field-sheen {
  background-image: linear-gradient(
    180deg,
    hsl(var(--surface-field) / 0.94),
    hsl(var(--app-bg-elevated) / 0.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) / 0.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) / 0.8)
    var(--tw-gradient-to-position);
}

.p-0 {
  padding: 0px;
}

.p-1 {
  padding: 0.25rem;
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-card {
  padding: 1.15rem;
}

.px-0 {
  padding-left: 0px;
  padding-right: 0px;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.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: 0.68rem;
}

.text-\[0\.8125rem\] {
  font-size: 0.8125rem;
}

.text-\[0\.84rem\] {
  font-size: 0.84rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-body {
  font-size: 0.875rem;
  line-height: 1.35rem;
  letter-spacing: -0.01em;
}

.text-body-sm {
  font-size: 0.8125rem;
  line-height: 1.2rem;
  letter-spacing: -0.01em;
}

.text-caption {
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.01em;
}

.text-h2 {
  font-size: 2rem;
  line-height: 2.35rem;
  letter-spacing: -0.06em;
}

.text-h5 {
  font-size: 1.0625rem;
  line-height: 1.45rem;
  letter-spacing: -0.025em;
}

.text-heading-sm {
  font-size: 1.125rem;
  line-height: 1.5rem;
  letter-spacing: -0.035em;
}

.text-lead {
  font-size: 1rem;
  line-height: 1.55rem;
  letter-spacing: -0.015em;
}

.text-micro {
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 0.09em;
}

.text-title {
  font-size: 1rem;
  line-height: 1.35rem;
  letter-spacing: -0.025em;
}

.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: -0.065em;
}

.tracking-label {
  letter-spacing: 0.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: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-82 {
  opacity: 0.82;
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --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) / 0.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 rgb(102 112 255 / 0.14);
  --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 rgb(0 0 0 / 0.18);
  --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) / 0.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 rgb(0 0 0 / 0.28), inset 0 1px 0 hsl(var(--line-soft) / 0.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) / 0.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 rgb(0 0 0 / 0.48);
  --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: 2px solid transparent;
  outline-offset: 2px;
}

.\!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-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-150 {
  transition-duration: 150ms;
}

.ease-luxury {
  transition-timing-function: cubic-bezier(0.22, 1, 0.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) / 0.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) / 0.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) / 0.48);
}

.hover\:bg-surface-hover\/54:hover {
  background-color: hsl(var(--surface-hover) / 0.54);
}

.hover\:bg-surface-hover\/80:hover {
  background-color: hsl(var(--surface-hover) / 0.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: 2px solid transparent;
  outline-offset: 2px;
}

.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) / 0.4);
}

.focus-visible\:ring-brand\/45:focus-visible {
  --tw-ring-color: hsl(var(--brand) / 0.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\2c 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\2c 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 {
    position: relative;
    isolation: isolate;
  }

  .dt-frame-stage7::before {
    content: "";
    position: absolute;
    inset: -0.85rem -0.65rem auto -0.65rem;
    height: 16rem;
    pointer-events: none;
    z-index: -1;
    background:
      radial-gradient(
        circle at 14% 12%,
        hsl(var(--brand) / 0.11),
        transparent 20rem
      ),
      radial-gradient(
        circle at 92% 0%,
        hsl(var(--brand-soft) / 0.08),
        transparent 18rem
      );
    opacity: 0.9;
  }

  .dt-header-strip-stage7 {
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(var(--line-soft) / 0.82);
    background:
      radial-gradient(
        circle at 7% 0%,
        hsl(var(--brand) / 0.12),
        transparent 18rem
      ),
      linear-gradient(
        180deg,
        hsl(var(--surface-card) / 0.78),
        hsl(var(--surface) / 0.48)
      );
    box-shadow:
      inset 0 1px 0 hsl(var(--line-soft) / 0.62),
      0 18px 52px rgb(0 0 0 / 0.2);
  }

  .dt-premium-card-stage7 {
    position: relative;
    overflow: visible;
    border: 1px solid hsl(var(--line-soft) / 0.92);
    background:
      radial-gradient(
        circle at 18% 0%,
        hsl(var(--brand) / 0.08),
        transparent 22rem
      ),
      linear-gradient(
        180deg,
        hsl(var(--surface-card) / 0.98),
        hsl(var(--surface) / 0.94)
      );
    box-shadow:
      0 26px 80px rgb(0 0 0 / 0.38),
      inset 0 1px 0 hsl(var(--line-soft) / 0.74);
  }

  .dt-toolbar-stage7 {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card) / 0.86),
      hsl(var(--surface-raised) / 0.48)
    );
    box-shadow: inset 0 -1px 0 hsl(var(--line-soft) / 0.72);
  }

  .dt-toolbar-button-stage7 {
    min-height: 2.25rem;
    border-color: hsl(var(--line-soft) / 0.88);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-raised) / 0.72),
      hsl(var(--surface-field) / 0.52)
    );
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / 0.55);
  }

  .dt-toolbar-button-stage7:hover {
    border-color: hsl(var(--brand) / 0.36);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-hover) / 0.72),
      hsl(var(--surface-raised) / 0.58)
    );
  }

  .data-table-search-icon {
    top: 50%;
    left: 0.95rem;
    width: 1rem;
    height: 1rem;
    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 {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    transform: translateY(-50%);
  }

  .data-table-search-loading {
    color: hsl(var(--copy-faint));
    pointer-events: none;
  }

  .data-table-search-clear {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: hsl(var(--copy-faint));
    line-height: 1;
    transition:
      background 160ms cubic-bezier(0.22, 1, 0.36, 1),
      color 160ms cubic-bezier(0.22, 1, 0.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 {
    position: relative;
    display: block;
    width: 0.72rem;
    height: 0.72rem;
  }

  .data-table-search-clear-icon::before,
  .data-table-search-clear-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.72rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
  }

  .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) / 0.065),
        transparent 18rem
      ),
      linear-gradient(
        180deg,
        hsl(var(--surface-raised) / 0.38),
        hsl(var(--surface-field) / 0.22)
      );
  }

  .dt-chip-stage7 {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 1.9rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--line-soft) / 0.84);
    background: hsl(var(--surface-field) / 0.46);
    color: hsl(var(--copy-muted));
    padding-inline: 0.72rem;
    font-size: 0.72rem;
    line-height: 1rem;
    font-weight: 760;
    letter-spacing: -0.01em;
  }

  .dt-chip-stage7.is-active {
    border-color: hsl(var(--brand) / 0.38);
    background: hsl(var(--brand-faint) / 0.46);
    color: hsl(var(--copy-soft));
    box-shadow: inset 0 1px 0 hsl(var(--brand-hover) / 0.12);
  }

  .dt-chip-stage7.is-empty {
    border-style: dashed;
    background: hsl(var(--surface-field) / 0.26);
    color: hsl(var(--copy-faint));
    font-weight: 650;
  }

  .dt-popover-stage7,
  .dt-drawer-stage7 {
    background:
      radial-gradient(
        circle at 18% 0%,
        hsl(var(--brand) / 0.11),
        transparent 18rem
      ),
      linear-gradient(180deg, hsl(var(--surface-card)), hsl(var(--surface)));
    box-shadow:
      0 28px 90px rgb(0 0 0 / 0.52),
      inset 0 1px 0 hsl(var(--line-soft) / 0.72);
  }

  .dt-builder-panel-stage7 {
    border-color: hsl(var(--line-soft) / 0.78);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-raised) / 0.6),
      hsl(var(--surface-field) / 0.34)
    );
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / 0.48);
  }

  .dt-column-option-stage7 {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-field) / 0.4),
      hsl(var(--surface) / 0.28)
    );
  }

  .dt-column-option-stage7:hover {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-hover) / 0.56),
      hsl(var(--surface-raised) / 0.42)
    );
  }

  .dt-bulk-bar-stage7 {
    background: linear-gradient(
      90deg,
      hsl(var(--brand-faint) / 0.58),
      hsl(var(--surface-raised) / 0.22)
    );
    box-shadow:
      inset 0 1px 0 hsl(var(--brand-hover) / 0.1),
      inset 0 -1px 0 hsl(var(--brand) / 0.18);
  }

  .dt-table-shell-stage7 {
    background: hsl(var(--surface-card) / 0.8);
  }

  .dt-scroll-viewport-stage7 {
    overscroll-behavior-x: contain;
    overflow-anchor: none;
    scrollbar-gutter: stable;
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar {
    height: 0.72rem;
    width: 0.72rem;
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar-track {
    background: hsl(var(--surface-field) / 0.52);
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar-thumb {
    border: 3px solid hsl(var(--surface-field) / 0.52);
    border-radius: 999px;
    background: hsl(var(--line-strong) / 0.78);
  }

  .dt-scroll-viewport-stage7::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--brand) / 0.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) / 0.96)
    );
  }

  .dt-th-stage7 {
    border-bottom: 1px solid hsl(var(--line-soft) / 0.72);
    color: hsl(var(--copy-faint));
    font-size: 0.64rem;
    line-height: 0.9rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .dt-row-stage7 {
    background: hsl(var(--surface) / 0.38);
    transition:
      background 140ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .dt-row-stage7:hover {
    background: hsl(var(--surface-hover) / 0.44);
  }

  .dt-row-stage7[aria-selected="true"] {
    background: linear-gradient(
      90deg,
      hsl(var(--brand-faint) / 0.44),
      hsl(var(--surface) / 0.44)
    );
    box-shadow: inset 3px 0 0 hsl(var(--brand) / 0.74);
  }

  .dt-cell-stage7 {
    border-bottom: 1px solid hsl(var(--line-soft) / 0.62);
  }

  .dt-sticky-select-stage7,
  .dt-sticky-primary-stage7,
  .dt-sticky-actions-stage7 {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card) / 0.995),
      hsl(var(--surface) / 0.985)
    );
  }

  .dt-sticky-primary-stage7::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: -1px;
    width: 1px;
    pointer-events: none;
    background: hsl(var(--line-soft) / 0.58);
    box-shadow: 12px 0 26px rgb(0 0 0 / 0.22);
  }

  .dt-sticky-select-stage7::after {
    content: "";
    position: absolute;
    top: 0;
    right: -2px;
    bottom: -1px;
    width: 4px;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / 0.985)
    );
  }

  thead .dt-sticky-select-stage7,
  thead .dt-sticky-primary-stage7,
  thead .dt-sticky-actions-stage7 {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised))
    );
  }

  thead .dt-sticky-select-stage7::after {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised))
    );
  }

  .dt-checkbox-stage7 {
    appearance: none;
    display: grid;
    place-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border-radius: 0.32rem;
    border: 1px solid hsl(var(--line-strong) / 0.86);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-field) / 0.96),
      hsl(var(--app-bg-elevated) / 0.92)
    );
    color: hsl(var(--copy));
    cursor: pointer;
    box-shadow:
      inset 0 1px 0 hsl(var(--line-soft) / 0.72),
      0 0 0 1px hsl(var(--app-bg) / 0.18);
    transition:
      border-color 160ms cubic-bezier(0.22, 1, 0.36, 1),
      background 160ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .dt-checkbox-stage7::before {
    content: "";
    width: 0.56rem;
    height: 0.56rem;
    transform: scale(0);
    transform-origin: center;
    background: hsl(var(--copy));
    clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 18%, 82% 0, 36% 66%);
    transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .dt-checkbox-stage7:hover {
    border-color: hsl(var(--brand-hover) / 0.58);
    transform: translateY(-1px);
  }

  .dt-checkbox-stage7:focus-visible {
    outline: none;
    border-color: hsl(var(--brand) / 0.72);
    box-shadow:
      0 0 0 4px hsl(var(--brand) / 0.16),
      inset 0 1px 0 hsl(var(--line-soft) / 0.72);
  }

  .dt-checkbox-stage7:checked,
  .dt-checkbox-stage7:indeterminate {
    border-color: hsl(var(--brand-hover) / 0.74);
    background:
      radial-gradient(
        circle at 35% 12%,
        hsl(var(--copy) / 0.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) / 0.24),
      inset 0 1px 0 hsl(var(--copy) / 0.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) / 0.42),
      hsl(var(--surface-field) / 0.24)
    );
  }

  @media (max-width: 780px) {
    .dt-scroll-viewport-stage7 {
      scrollbar-gutter: auto;
    }
  }
}

@layer components {
  .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) / 0.92),
      hsl(var(--surface-raised) / 0.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) / 0.58),
      hsl(var(--surface-raised) / 0.86)
    );
  }
}

@layer components {
  .dt-frame-stage7 {
    gap: 0.9rem;
    min-width: 0;
    max-width: 100%;
  }

  .dt-header-strip-stage7 {
    border-radius: 0.95rem;
    border: 1px solid hsl(var(--line-soft) / 0.92);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card) / 0.96),
      hsl(var(--surface) / 0.88)
    );
    box-shadow:
      0 18px 55px rgb(0 0 0 / 0.32),
      inset 0 1px 0 hsl(var(--line-soft) / 0.72);
    padding: 1.05rem;
  }

  .dt-header-strip-stage7 h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.075em;
  }

  .dt-header-strip-stage7 p:not([class*="dt-chip"]) {
    max-width: 46rem;
  }

  .dt-premium-card-stage7 {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    border-radius: 0.95rem;
  }

  .dt-toolbar-stage7.table-toolbar {
    grid-template-columns: minmax(18rem, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem;
    background: transparent;
    box-shadow: none;
  }

  .dt-toolbar-button-stage7,
  .dt-export-control > summary {
    min-height: 2.5rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1rem;
    font-weight: 760;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  .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 {
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
  }

  .saved-view-control {
    position: relative;
    z-index: 20;
  }

  .saved-view-trigger {
    min-width: 12.5rem;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .saved-view-trigger strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .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-radius: 0.85rem;
    border: 1px solid hsl(var(--line-strong) / 0.82);
    background:
      radial-gradient(
        circle at 20% 0%,
        hsl(var(--brand) / 0.11),
        transparent 13rem
      ),
      linear-gradient(180deg, hsl(var(--surface-card)), hsl(var(--surface)));
    box-shadow:
      0 24px 70px rgb(0 0 0 / 0.48),
      inset 0 1px 0 hsl(var(--line-soft) / 0.72);
  }

  .saved-view-option {
    grid-template-columns: 1.9rem minmax(0, 1fr) auto;
    gap: 0.62rem;
    border-radius: 0.65rem;
    padding: 0.6rem;
  }

  .saved-view-option:hover {
    border-color: hsl(var(--line-soft) / 0.82);
    background-color: hsl(var(--surface-hover) / 0.54);
    color: hsl(var(--copy-soft));
  }

  .saved-view-option.active {
    border-color: hsl(var(--brand) / 0.36);
    background: linear-gradient(
      180deg,
      hsl(var(--brand-faint) / 0.62),
      hsl(var(--surface-raised) / 0.48)
    );
    color: hsl(var(--copy));
  }

  .view-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.58rem;
    border: 1px solid hsl(var(--line-soft) / 0.75);
    background-color: hsl(var(--surface-field) / 0.58);
    color: hsl(var(--copy-faint));
    font-size: 0.78rem;
    font-weight: 850;
  }

  .saved-view-option.active .view-icon {
    border-color: hsl(var(--brand) / 0.38);
    background-color: hsl(var(--brand) / 0.16);
    color: hsl(var(--brand-hover));
  }

  .view-name strong {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: -0.02em;
  }

  .view-name span {
    color: hsl(var(--copy-faint));
    font-size: 0.66rem;
    line-height: 0.95rem;
  }

  .view-count {
    color: hsl(var(--copy-faint));
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 760;
  }

  .saved-view-delete {
    color: hsl(var(--copy-faint));
  }

  .column-builder-menu {
    border-radius: 0.85rem;
  }

  .dt-toolbar-inline-panels {
    min-width: 0;
    width: 100%;
  }

  .filter-builder,
  .column-builder {
    margin: 0.15rem -0.85rem -0.85rem;
    border-top: 1px solid hsl(var(--line-soft) / 0.72);
    border-bottom: 1px solid hsl(var(--line-soft) / 0.72);
    background:
      radial-gradient(
        circle at 16% 0%,
        hsl(var(--brand) / 0.11),
        transparent 18rem
      ),
      linear-gradient(
        180deg,
        hsl(var(--surface-card) / 0.82),
        hsl(var(--surface-raised) / 0.36)
      );
    animation: dt-builder-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .column-builder {
    background:
      radial-gradient(
        circle at 86% 0%,
        hsl(var(--brand) / 0.105),
        transparent 18rem
      ),
      linear-gradient(
        180deg,
        hsl(var(--surface-card) / 0.84),
        hsl(var(--surface-raised) / 0.34)
      );
  }

  @keyframes dt-builder-in {
    0% {
      opacity: 0;
      transform: translateY(-0.35rem);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .filter-builder-inner,
  .column-builder-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    padding: 1rem;
  }

  .filter-builder-main,
  .filter-query-preview,
  .column-builder-main,
  .column-view-preview {
    min-width: 0;
    border-radius: 0.85rem;
    border: 1px solid hsl(var(--line-soft) / 0.78);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-raised) / 0.58),
      hsl(var(--surface-field) / 0.34)
    );
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / 0.48);
  }

  .filter-builder-main,
  .filter-query-preview,
  .column-builder-main,
  .column-view-preview {
    padding: 0.9rem;
  }

  .filter-query-preview,
  .column-view-preview {
    align-self: start;
    position: sticky;
    top: 1rem;
  }

  .filter-builder-header,
  .column-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
  }

  .filter-builder-title,
  .query-preview-title,
  .column-builder-title,
  .column-preview-title {
    display: grid;
    gap: 0.25rem;
  }

  .filter-builder-title h3,
  .query-preview-title h3,
  .column-builder-title h3,
  .column-preview-title h3 {
    margin: 0;
    color: hsl(var(--copy));
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.04em;
  }

  .filter-builder-title p,
  .query-preview-title p,
  .column-builder-title p,
  .column-preview-title p {
    margin: 0;
    color: hsl(var(--copy-faint));
    font-size: 0.73rem;
    line-height: 1.1rem;
  }

  .builder-mode-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    color: hsl(var(--copy-muted));
    font-size: 0.76rem;
    font-weight: 650;
  }

  .builder-select,
  .builder-input {
    min-height: 2.35rem;
    min-width: 0;
    border-radius: 0.58rem;
    border: 1px solid hsl(var(--line-soft) / 0.9);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-field) / 0.94),
      hsl(var(--app-bg-elevated) / 0.88)
    );
    color: hsl(var(--copy));
    outline: none;
    padding: 0 0.68rem;
    font-size: 0.78rem;
    transition:
      border-color 160ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .builder-input::placeholder {
    color: hsl(var(--copy-faint));
  }

  .builder-select:focus,
  .builder-input:focus {
    border-color: hsl(var(--brand) / 0.72);
    box-shadow: 0 0 0 4px hsl(var(--brand) / 0.13);
  }

  .builder-groups,
  .column-group-stack {
    display: grid;
    gap: 0.8rem;
  }

  .builder-group,
  .column-group {
    border-radius: 0.78rem;
    border: 1px solid hsl(var(--line-soft) / 0.72);
    background: hsl(var(--surface-raised) / 0.32);
    overflow: hidden;
  }

  .builder-group-header,
  .column-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem;
    border-bottom: 1px solid hsl(var(--line-soft) / 0.62);
    background: hsl(var(--surface-field) / 0.28);
  }

  .builder-group-header strong,
  .column-group-head strong {
    color: hsl(var(--copy-soft));
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: -0.02em;
  }

  .column-group-head span,
  .group-actions {
    color: hsl(var(--copy-faint));
    font-size: 0.68rem;
    font-weight: 650;
  }

  .group-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

  .condition-list {
    display: grid;
    gap: 0.55rem;
    padding: 0.72rem;
  }

  .condition-row {
    display: grid;
    grid-template-columns:
      minmax(9rem, 1.25fr) minmax(8rem, 0.8fr) minmax(10rem, 1fr)
      auto;
    gap: 0.5rem;
    align-items: center;
  }

  .remove-condition {
    width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    color: hsl(var(--copy-faint));
  }

  .builder-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
  }

  .builder-left-actions,
  .builder-right-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .query-preview-title {
    margin-bottom: 0.85rem;
  }

  .query-stat-grid,
  .column-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
  }

  .column-stat-grid {
    margin-top: 0.85rem;
  }

  .query-stat {
    border-radius: 0.62rem;
    border: 1px solid hsl(var(--line-soft) / 0.64);
    background: hsl(var(--surface-field) / 0.34);
    padding: 0.65rem;
  }

  .query-stat span {
    display: block;
    color: hsl(var(--copy-faint));
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.075em;
    text-transform: uppercase;
  }

  .query-stat strong {
    display: block;
    margin-top: 0.28rem;
    color: hsl(var(--copy));
    font-size: 1.05rem;
    line-height: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.04em;
  }

  .query-block {
    border-radius: 0.68rem;
    border: 1px solid hsl(var(--line-soft) / 0.68);
    background: hsl(var(--app-bg-elevated) / 0.74);
    padding: 0.78rem;
    color: hsl(var(--copy-muted));
    font-family: var(--font-mono);
    font-size: 0.69rem;
    line-height: 1.15rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .filter-builder-trigger.is-active,
  .column-builder-trigger.is-active {
    border-color: hsl(var(--brand) / 0.48);
    background: hsl(var(--brand-faint) / 0.56);
    color: hsl(var(--copy));
  }

  .column-control-row {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
  }

  .column-search-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    border-radius: 0.68rem;
    border: 1px solid hsl(var(--line-soft) / 0.86);
    background: linear-gradient(
      180deg,
      hsl(var(--surface-field) / 0.94),
      hsl(var(--app-bg-elevated) / 0.88)
    );
    padding-inline: 0.72rem;
  }

  .column-search-box svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: hsl(var(--copy-faint));
  }

  .column-search-box .builder-input {
    min-height: 2.4rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-inline: 0;
  }

  .column-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .column-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.72rem;
  }

  .column-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.62rem;
    align-items: start;
    min-width: 0;
    border-radius: 0.72rem;
    border: 1px solid hsl(var(--line-soft) / 0.68);
    background: hsl(var(--surface-field) / 0.26);
    padding: 0.7rem;
    color: hsl(var(--copy-muted));
    cursor: pointer;
    text-align: left;
    transition:
      border-color 160ms cubic-bezier(0.22, 1, 0.36, 1),
      background 160ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
      color 160ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .column-option:hover {
    transform: translateY(-1px);
    border-color: hsl(var(--line-strong) / 0.78);
    background: hsl(var(--surface-hover) / 0.42);
    color: hsl(var(--copy-soft));
  }

  .column-option.is-enabled {
    border-color: hsl(var(--brand) / 0.34);
    background: linear-gradient(
      180deg,
      hsl(var(--brand-faint) / 0.42),
      hsl(var(--surface-field) / 0.3)
    );
    color: hsl(var(--copy));
  }

  .column-check {
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    border-radius: 0.36rem;
    border: 1px solid hsl(var(--line-strong) / 0.76);
    background: hsl(var(--surface-field) / 0.72);
    box-shadow: inset 0 1px 0 hsl(var(--line-soft) / 0.48);
  }

  .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: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: hsl(var(--copy-inverse));
    font-size: 0.68rem;
    font-weight: 850;
  }

  .column-option-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
  }

  .column-option-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: 0.8rem;
    line-height: 1.05rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .column-option-copy span {
    color: hsl(var(--copy-faint));
    font-size: 0.68rem;
    line-height: 1rem;
  }

  .column-density-card {
    border-radius: 0.72rem;
    border: 1px solid hsl(var(--line-soft) / 0.68);
    background: hsl(var(--surface-field) / 0.26);
    padding: 0.72rem;
    margin-bottom: 0.8rem;
  }

  .column-density-label {
    display: block;
    margin-bottom: 0.48rem;
    color: hsl(var(--copy-faint));
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.075em;
    text-transform: uppercase;
  }

  .density-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .density-option {
    min-height: 2.05rem;
    border-radius: 0.52rem;
    border: 1px solid hsl(var(--line-soft) / 0.7);
    background: transparent;
    color: hsl(var(--copy-muted));
    font-size: 0.72rem;
    font-weight: 760;
  }

  .density-option.active {
    border-color: hsl(var(--brand) / 0.46);
    background: hsl(var(--brand-faint) / 0.56);
    color: hsl(var(--copy));
  }

  .visible-column-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.85rem;
  }

  .column-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid hsl(var(--line-soft) / 0.72);
    background: hsl(var(--surface-field) / 0.34);
    color: hsl(var(--copy-muted));
    padding: 0.32rem 0.52rem;
    font-size: 0.66rem;
    font-weight: 650;
  }

  .column-builder-note {
    border-radius: 0.68rem;
    border: 1px dashed hsl(var(--line-strong) / 0.66);
    background: hsl(var(--surface-field) / 0.22);
    color: hsl(var(--copy-faint));
    padding: 0.72rem;
    font-size: 0.72rem;
    line-height: 1.1rem;
    margin-bottom: 0.85rem;
  }

  .dt-filter-strip-stage7 {
    padding: 0.75rem 0.85rem;
  }

  .dt-chip-stage7 {
    min-height: 2rem;
    font-size: 0.72rem;
    font-weight: 760;
  }

  .dt-bulk-bar-stage7 {
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.65rem 0.85rem;
  }

  .table-scroll.dt-scroll-viewport-stage7 {
    --select-col-width: 3.18rem;
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-gutter: auto;
  }

  .people-table {
    width: 100%;
    min-width: 1220px;
    border-collapse: separate;
    border-spacing: 0;
  }

  .dt-table-shell-stage7 {
    min-width: 0;
    max-width: 100%;
  }

  .people-table th,
  .people-table td {
    border-bottom: 1px solid hsl(var(--line-soft) / 0.62);
    padding: 0.74rem 0.72rem;
    vertical-align: middle;
  }

  .people-table[data-density="comfortable"] th,
  .people-table[data-density="comfortable"] td {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .people-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card) / 0.98),
      hsl(var(--surface-raised) / 0.94)
    );
    color: hsl(var(--copy-faint));
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .people-table tbody tr {
    background-color: hsl(var(--surface) / 0.4);
    transition:
      background 140ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .people-table tbody tr:hover {
    background-color: hsl(var(--surface-hover) / 0.42);
  }

  .people-table th.sticky-select,
  .people-table td.sticky-select {
    left: 0;
    width: var(--select-col-width);
    min-width: var(--select-col-width);
    max-width: var(--select-col-width);
    z-index: 7;
    overflow: visible;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / 0.995)
    );
  }

  .people-table th.sticky-person,
  .people-table td.sticky-person {
    left: calc(var(--select-col-width) - 1px);
    z-index: 6;
    min-width: 19.25rem;
    padding-right: 1.45rem;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / 0.995)
    );
  }

  .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: "";
    position: absolute;
    top: 0;
    right: -2px;
    bottom: -1px;
    width: 4px;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / 0.995)
    );
  }

  thead .sticky-select::after,
  thead .sticky-person::before {
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface-raised))
    );
  }

  .sticky-person::before {
    content: "";
    position: absolute;
    top: 0;
    left: -3px;
    bottom: -1px;
    width: 5px;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-card)),
      hsl(var(--surface) / 0.995)
    );
  }

  .sticky-person::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: -1px;
    width: 1px;
    pointer-events: none;
    background: hsl(var(--line-soft) / 0.55);
    box-shadow: 12px 0 26px rgb(0 0 0 / 0.2);
  }

  .sort-header {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.38rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    white-space: nowrap;
  }

  .sort-header:hover {
    color: hsl(var(--copy-soft));
  }

  .sort-icon {
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    color: hsl(var(--copy-faint));
    font-size: 0.68rem;
    line-height: 1;
    transition:
      color 160ms cubic-bezier(0.22, 1, 0.36, 1),
      background 160ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  th.is-sorted .sort-icon {
    background-color: hsl(var(--brand) / 0.18);
    color: hsl(var(--brand-hover));
    box-shadow: 0 0 18px hsl(var(--brand) / 0.16);
  }

  th.is-sorted .sort-header {
    color: hsl(var(--copy));
  }

  .person-cell {
    gap: 0.72rem;
    min-width: 0;
  }

  .avatar {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--line-soft) / 0.8);
    background: linear-gradient(
      135deg,
      hsl(var(--brand-faint) / 0.72),
      hsl(var(--surface-field) / 0.72)
    );
    color: hsl(var(--copy));
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: -0.04em;
  }

  .status-dot {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 2px solid hsl(var(--surface));
    background-color: hsl(var(--state-success));
  }

  .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));
    font-size: 0.86rem;
    font-weight: 760;
    letter-spacing: -0.025em;
  }

  .person-sub {
    margin-top: 0.14rem;
    color: hsl(var(--copy-faint));
    font-size: 0.72rem;
    line-height: 1rem;
  }

  .chip-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    max-width: 18rem;
  }

  .role-chip,
  .status-chip,
  .owner-chip,
  .score-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--line-soft) / 0.82);
    background-color: hsl(var(--surface-field) / 0.46);
    color: hsl(var(--copy-muted));
    padding: 0.28rem 0.52rem;
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .role-chip.customer {
    border-color: hsl(var(--brand) / 0.34);
    background-color: hsl(var(--brand-faint) / 0.42);
    color: hsl(var(--copy-soft));
  }
  .role-chip.supplier {
    border-color: hsl(var(--state-info) / 0.34);
    background-color: hsl(var(--state-info) / 0.1);
    color: hsl(var(--state-info));
  }
  .role-chip.introducer {
    border-color: hsl(var(--state-warning) / 0.34);
    background-color: hsl(var(--state-warning) / 0.1);
    color: hsl(var(--state-warning));
  }
  .role-chip.prospect {
    border-color: hsl(var(--line-strong) / 0.8);
  }
  .role-chip.more {
    color: hsl(var(--copy-faint));
  }

  .dt-cell-value {
    color: hsl(var(--copy-soft));
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .dt-cell-value .crm-value-renderer > span {
    color: inherit;
  }

  .action-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 0.58rem;
    border: 1px solid hsl(var(--line-soft) / 0.78);
    background-color: hsl(var(--surface-field) / 0.42);
    color: hsl(var(--copy-faint));
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
  }

  .action-dot:hover {
    border-color: hsl(var(--brand) / 0.36);
    background-color: hsl(var(--surface-hover) / 0.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 {
    padding: 0.85rem;
    background: linear-gradient(
      180deg,
      hsl(var(--surface-raised) / 0.42),
      hsl(var(--surface-field) / 0.24)
    );
    color: hsl(var(--copy-faint));
    font-size: 0.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 {
      align-items: stretch;
      flex-direction: column;
    }

    .builder-left-actions,
    .builder-right-actions {
      width: 100%;
    }
  }

  @media (max-width: 780px) {
    .dt-header-strip-stage7 > div {
      display: grid;
    }

    .dt-filter-strip-stage7 {
      overflow: auto;
      flex-wrap: nowrap;
    }

    .dt-footer-stage7 {
      display: grid;
    }
  }
}

.dt-frame-stage7 .data-table-search-box {
  position: relative;
}

.dt-frame-stage7 .data-table-search-icon {
  top: 50%;
  left: 0.95rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  z-index: 1;
}

.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 {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  z-index: 2;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  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 {
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: hsl(var(--copy-faint));
  line-height: 1;
}

