@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #171717;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --panel: #ffffff;
  --panel-alt: #fafafa;
  --surface: #fafafa;
  --dark: #1f1f1f;
  --teal: #0f766e;
  --teal-soft: #dff5f1;
  --blue: #316bff;
  --blue-soft: #e9f0ff;
  --amber: #a46313;
  --amber-soft: #fff3cf;
  --red: #b42318;
  --red-soft: #fee4e2;
  --violet: #6d28d9;
  --violet-soft: #efe8ff;
  --shadow: 0 16px 32px rgba(23, 23, 23, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

[hidden] {
  display: none !important;
}

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

html.boot-table-route #homeView {
  display: none;
}

button,
select,
input,
textarea {
  font: inherit;
  font-family: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: 56px minmax(0, 1fr) 48px;
  grid-template-areas:
    "topbar topbar"
    "workspace evidence"
    "tabletabs tabletabs";
  transition: grid-template-columns 220ms ease;
}

.app-shell.outreach-wide-panel {
  grid-template-columns: minmax(420px, 1fr) clamp(560px, 44vw, 760px);
}

.home-view {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
}

.home-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(300px, 24vw, 360px) minmax(0, 1fr);
  overflow: hidden;
  transition: grid-template-columns 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-layout > .home-main {
  grid-column: 2;
}

.home-view.worker-store-sidebar-collapsed .home-layout,
.boot-worker-store-collapsed .home-view .home-layout {
  grid-template-columns: 64px minmax(0, 1fr);
}

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.home-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-main {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px 18px 0;
  overflow: hidden;
}

.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 14px;
  padding-bottom: 16px;
}

.home-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: 0;
}

.home-create {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.home-search-wrap {
  width: min(360px, 42vw);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.03);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.home-search-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(49, 107, 255, 0.18);
}

.home-search-wrap svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex: 0 0 auto;
}

.home-new-wrap {
  flex: 0 0 auto;
}

#newTableSourceButton {
  font-size: 13px;
  font-weight: 800;
}

#newTableSourceButton svg {
  width: 15px;
  height: 15px;
}

.home-new-menu {
  min-width: 190px;
}

.home-new-menu .new-table-source-option {
  display: none;
}

.home-new-menu.table-source-mode [data-new-kind] {
  display: none;
}

.home-new-menu.table-source-mode .new-table-source-option {
  display: flex;
}

.new-table-source-option.is-coming-soon {
  opacity: 0.62;
  cursor: not-allowed;
}

.new-table-source-option .feature-status-badge {
  margin-left: auto;
}

.feature-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-status-badge.beta {
  border: 1px solid var(--line);
  background: var(--panel-alt);
  color: #404040;
}

.feature-status-badge.coming-soon {
  border: 1px solid #d8dee8;
  background: #f6f8fb;
  color: #667085;
}

.home-name-input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: 0;
}

.home-ask-panel {
  position: relative;
  z-index: 35;
  width: calc((100% - 28px) / 2 - 7px);
  height: 44px;
  margin: 10px 14px 0;
}

.home-ask-form {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.home-ask-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(49, 107, 255, 0.18);
}

.home-ask-form textarea {
  width: 100%;
  min-width: 0;
  height: 22px;
  padding: 1px 0;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.home-ask-form textarea::placeholder {
  color: var(--faint);
}

.home-ask-form button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(49, 107, 255, 0.12);
  transition: background 160ms ease;
}

.home-ask-form button:hover {
  background: #2558d9;
}

.home-ask-form button svg {
  width: 17px;
  height: 17px;
}

.home-ask-result {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(420px, calc(100vh - 220px));
  margin-top: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.home-ask-status,
.home-ask-preview {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 35, 40, 0.14);
}

.home-ask-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.home-ask-status.error {
  border-color: var(--red-soft);
  color: var(--red);
  background: #fffafa;
}

.home-ask-status svg {
  width: 16px;
  height: 16px;
}

.home-ask-status svg[data-lucide="loader-2"] {
  animation: spin 900ms linear infinite;
}

.home-ask-execution-feed {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.home-ask-execution-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.home-ask-execution-head > svg {
  color: #2563eb;
}

.home-ask-execution-head strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.home-ask-live-line {
  position: relative;
  height: 18px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.home-ask-live-line span {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: homeAskLiveLine 8.8s ease-in-out infinite;
  animation-delay: calc(var(--line-index) * 2.2s);
}

.home-ask-execution-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.home-ask-execution-details span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
}

.home-ask-execution-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.home-ask-execution-step {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11.5px;
  animation: homeAskStepPulse 3.6s ease-in-out infinite;
  animation-delay: calc(var(--step-index) * 700ms);
}

.home-ask-execution-step svg {
  width: 14px;
  height: 14px;
  color: #2563eb;
}

.home-ask-execution-step span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes homeAskLiveLine {
  0%,
  24% {
    opacity: 1;
    transform: translateY(0);
  }
  32%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes homeAskStepPulse {
  0%,
  100% {
    opacity: 0.58;
  }
  35%,
  70% {
    opacity: 1;
  }
}

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

.home-ask-preview {
  display: grid;
  gap: 8px;
}

.home-ask-preview-copy {
  display: grid;
  gap: 3px;
}

.home-ask-preview-copy strong {
  font-size: 13px;
}

.home-ask-preview-copy span,
.home-ask-preview li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.home-ask-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-ask-meta span {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-alt);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.home-ask-preview ul {
  margin: 0;
  padding-left: 18px;
}

.home-ask-section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-ask-reasoning,
.home-ask-field-map {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.home-ask-reasoning ol {
  margin: 0;
  padding-left: 18px;
}

.home-ask-field-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.home-ask-field-map-row span,
.home-ask-field-map-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-ask-field-map-row strong {
  color: var(--ink);
  font-weight: 700;
}

.home-ask-field-map-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.home-ask-field-map-row svg {
  width: 14px;
  height: 14px;
}

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

.home-ask-actions .button svg {
  width: 15px;
  height: 15px;
}

.home-source-panel {
  position: relative;
  margin: 27px 14px 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-source-panel h3 {
  display: none;
}

.home-source-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-source-card {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.home-source-card .feature-status-badge {
  margin-left: 6px;
  vertical-align: middle;
}

.home-source-card > span:last-child:not(.home-source-icon) {
  min-width: 0;
  display: block;
}

.home-source-card > span:last-child:not(.home-source-icon)::after {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
}

.home-source-card[data-home-source="companies"] > span:last-child:not(.home-source-icon)::after {
  content: "Built-in databases";
}

.home-source-card[data-home-source="csv"] > span:last-child:not(.home-source-icon)::after {
  content: "Import rows";
}

.home-source-card[data-home-source="form"] > span:last-child:not(.home-source-icon)::after {
  content: "Create a form";
}

.home-source-card[data-home-source="scratch"] > span:last-child:not(.home-source-icon)::after {
  content: "Start from scratch";
}

.home-source-card:hover {
  border-color: rgba(49, 107, 255, 0.42);
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.06);
  transform: translateY(-1px);
}

.home-source-card:focus-visible {
  outline: 3px solid rgba(49, 107, 255, 0.28);
  outline-offset: 2px;
}

.home-source-card:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.home-source-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  transition:
    color 160ms ease,
    background 160ms ease;
}

.home-source-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.home-source-card.hubspot .home-source-icon {
  background: transparent;
  color: var(--muted);
}

.home-source-card.csv .home-source-icon {
  background: transparent;
  color: var(--muted);
}

.home-source-card.form .home-source-icon {
  background: transparent;
  color: var(--muted);
}

.home-source-card.scratch .home-source-icon {
  background: transparent;
  color: var(--muted);
}

.home-source-card.companies .home-source-icon {
  background: transparent;
  color: var(--muted);
}

.home-source-card:hover .home-source-icon {
  color: var(--blue);
}

.home-worker-store-panel {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: 8px 0 24px rgba(23, 23, 23, 0.03);
}

.worker-store-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.worker-store-sidebar-chrome {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}

.worker-store-sidebar-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.worker-store-sidebar-title-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.worker-store-sidebar-title-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 650;
}

.worker-store-sidebar-title-copy span {
  min-width: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-store-collapse-button {
  flex: 0 0 auto;
}

.worker-store-sidebar-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  transition:
    opacity 160ms ease,
    transform 200ms ease,
    visibility 160ms ease;
}

.home-view.worker-store-sidebar-collapsed .worker-store-sidebar,
.boot-worker-store-collapsed .home-view .worker-store-sidebar {
  padding-inline: 14px;
}

.home-view.worker-store-sidebar-collapsed .worker-store-sidebar-chrome,
.boot-worker-store-collapsed .home-view .worker-store-sidebar-chrome {
  justify-content: center;
}

.home-view.worker-store-sidebar-collapsed .worker-store-sidebar-title,
.boot-worker-store-collapsed .home-view .worker-store-sidebar-title {
  grid-template-columns: 34px;
}

.home-view.worker-store-sidebar-collapsed .worker-store-sidebar-title-copy,
.boot-worker-store-collapsed .home-view .worker-store-sidebar-title-copy,
.home-view.worker-store-sidebar-collapsed .worker-store-sidebar-body,
.boot-worker-store-collapsed .home-view .worker-store-sidebar-body {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  visibility: hidden;
}

.home-view.worker-store-sidebar-collapsed .worker-store-collapse-button,
.boot-worker-store-collapsed .home-view .worker-store-collapse-button {
  position: absolute;
  top: 58px;
  left: 14px;
}

.home-worker-store-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
  align-items: center;
}

.home-worker-store-head h3 {
  margin: 0;
  color: #17191c;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 650;
}

.worker-store-search {
  min-width: 0;
  height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
  color: var(--muted);
}

.worker-store-search:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(49, 107, 255, 0.18);
}

.worker-store-search svg {
  width: 16px;
  height: 16px;
}

.worker-store-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.worker-store-categories {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.worker-store-categories button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #404040;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.worker-store-categories button small {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11px;
}

.worker-store-categories button.active {
  border-color: rgba(49, 107, 255, 0.4);
  background: #fff;
  color: var(--blue);
}

.worker-store-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.worker-store-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.worker-store-row.installed {
  border-color: rgba(49, 107, 255, 0.24);
  background: #fff;
}

.worker-store-row:hover {
  border-color: rgba(49, 107, 255, 0.36);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.06);
  transform: translateY(-1px);
}

.worker-store-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.worker-store-row-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-alt);
  color: var(--muted);
}

.worker-store-row-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.worker-store-row-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.worker-store-row-copy strong,
.worker-store-row-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-store-row-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
}

.worker-store-row-copy span,
.worker-store-row-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.worker-store-row-meta {
  display: none;
  white-space: nowrap;
}

.worker-store-toggle {
  width: 82px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.worker-store-toggle.installed {
  border-color: var(--line);
  background: var(--panel-alt);
  color: #404040;
}

.worker-store-toggle:disabled {
  cursor: progress;
  opacity: 0.7;
}

.worker-store-toggle svg {
  width: 15px;
  height: 15px;
}

.worker-store-empty {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #d7dce4;
  border-radius: 8px;
  color: #6c7380;
  font-size: 13px;
}

.worker-store-empty.danger {
  border-color: #f1b9b9;
  color: #b42318;
  background: #fff8f8;
}

.worker-store-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 24, 39, 0.28);
}

.worker-store-drawer-backdrop[hidden] {
  display: none;
}

.worker-store-drawer {
  width: min(420px, calc(100vw - 24px));
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-left: 1px solid #d8dee9;
  background: #fff;
  box-shadow: -18px 0 36px rgba(16, 24, 40, 0.16);
}

.worker-store-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.worker-store-drawer-title {
  display: grid;
  gap: 5px;
}

.worker-store-drawer-title h2 {
  margin: 0;
  color: #17191c;
  font-size: 22px;
  line-height: 1.18;
}

.worker-store-drawer-title span,
.worker-store-drawer p {
  margin: 0;
  color: #596170;
  font-size: 14px;
  line-height: 1.45;
}

.worker-store-drawer-facts {
  display: grid;
  gap: 8px;
}

.worker-store-drawer-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343942;
  font-size: 13px;
}

.worker-store-drawer-facts svg {
  width: 16px;
  height: 16px;
  color: #1f56d8;
}

.worker-store-output-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.worker-store-output-list span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #d7dce4;
  border-radius: 8px;
  background: #f8fafc;
  color: #343942;
  font-size: 12px;
}

.worker-store-drawer-actions {
  margin-top: auto;
}

.worker-store-drawer-actions .button {
  width: 100%;
  justify-content: center;
}

.home-view.company-search-mode .home-head,
.home-view.company-search-mode .home-ask-panel,
.home-view.company-search-mode .home-source-panel,
.home-view.company-search-mode .home-worker-store-panel {
  display: none;
}

.home-view.company-search-mode .home-main {
  width: 100%;
  padding: 0;
  grid-template-rows: minmax(0, 1fr);
}

.home-view.company-search-mode .home-layout {
  grid-template-columns: minmax(0, 1fr);
}

.home-view.company-search-mode .home-layout > .home-main {
  grid-column: 1;
}

.home-view.company-search-mode .table-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.company-search-workbench {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  background: #fff;
}

.company-search-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.company-search-title,
.company-search-toolbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-search-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 650;
}

.company-search-title span,
.company-search-panel-head span,
.company-search-assistant-head span,
.company-search-preview-head span,
.company-search-create-note,
.company-search-enrichment-option em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.company-search-layout {
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.company-search-layout.filters {
  grid-template-columns: 384px minmax(0, 1fr) 320px;
}

.company-search-layout.enrichments {
  grid-template-columns: minmax(300px, 600px) minmax(0, 1fr);
}

.company-search-panel,
.company-search-preview-panel,
.company-search-assistant {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow: auto;
}

.company-search-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 0;
}

.company-search-panel-head,
.company-search-preview-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-search-panel-head {
  position: relative;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.64);
}

.company-search-panel-head > div,
.company-search-preview-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.company-search-panel-head strong,
.company-search-preview-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-search-filter-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aaaaba;
}

.company-search-filter-count svg {
  width: 17px;
  height: 17px;
  color: #d0d0dc;
  fill: currentColor;
  stroke-width: 0;
}

.company-search-filter-count strong {
  color: #aaaaba;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-search-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.company-search-clear-button {
  height: 36px;
  border: 0;
  background: transparent;
  color: #705bff;
  font-size: 14px;
  font-weight: 600;
}

.company-search-clear-button:disabled {
  color: #c8c8d2;
  cursor: not-allowed;
}

.company-search-save-button,
.company-search-saved-button {
  height: 38px;
  border-radius: 12px;
  color: #363640;
}

.company-search-saved-button.icon-only {
  width: 42px;
  padding: 0;
  justify-content: center;
}

.company-search-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  z-index: 30;
  width: min(360px, calc(100vw - 48px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.12);
  backdrop-filter: blur(14px);
}

.company-search-popover-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #858596;
  font-size: 14px;
  font-weight: 600;
}

.company-search-popover-title svg {
  width: 16px;
  height: 16px;
  color: #d0d0dc;
}

.company-search-save-popover input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #363640;
  font-size: 14px;
  outline: 0;
}

.company-search-save-popover input:focus {
  border-color: rgba(112, 91, 255, 0.48);
  box-shadow: 0 0 0 2px rgba(112, 91, 255, 0.12);
}

.company-search-save-popover .button.primary {
  height: 42px;
  justify-content: center;
  border-radius: 12px;
  background: #705bff;
  color: #fff;
}

.company-search-saved-popover {
  width: min(420px, calc(100vw - 48px));
}

.company-search-panel .button svg,
.company-search-toolbar .button svg {
  width: 15px;
  height: 15px;
}

.company-search-panel .button svg[data-lucide="loader-2"],
.company-search-toolbar .button svg[data-lucide="loader-2"],
.company-search-preview-empty svg[data-lucide="loader-2"],
.company-search-saved-empty svg[data-lucide="loader-2"] {
  animation: spin 900ms linear infinite;
}

.company-search-field,
.company-search-range-grid > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.company-search-field.wide {
  grid-column: 1 / -1;
  padding: 0 16px;
}

.company-search-field.has-reference-search {
  grid-column: 1 / -1;
}

.company-search-reference-input {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.company-search-reference-input input {
  min-width: 0;
}

.company-search-reference-search {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.company-search-reference-search svg {
  width: 14px;
  height: 14px;
}

.company-search-reference-search:hover,
.company-search-reference-search:focus-visible {
  border-color: rgba(49, 107, 255, 0.34);
  background: #fff;
  color: var(--blue);
  outline: 0;
}

.company-search-filter-picker {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0;
}

.company-search-filter-list {
  display: grid;
  gap: 0;
  padding: 0 16px 16px;
}

.company-search-filter-toggle {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(229, 229, 229, 0.72);
  background: transparent;
  color: #6f6f7d;
  text-align: left;
}

.company-search-filter-toggle > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.company-search-filter-toggle strong {
  color: #666675;
  font-size: 15px;
  font-weight: 500;
}

.company-search-filter-toggle em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.company-search-filter-toggle svg {
  width: 22px;
  height: 22px;
  color: #c7c7d1;
  stroke-width: 2;
}

.company-search-filter-picker.open {
  gap: 10px;
  padding: 0 0 12px;
  border-radius: 14px;
  background: rgba(250, 250, 250, 0.42);
  box-shadow: 0 0 0 2px rgba(112, 91, 255, 0.28);
}

.company-search-filter-picker.open .company-search-filter-toggle {
  min-height: 58px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.company-search-filter-picker.open .company-search-filter-toggle strong {
  color: #404040;
  font-size: 15px;
}

.company-search-filter-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.company-search-filter-panel {
  margin-inline: 12px;
}

.company-search-filter-token {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(112, 91, 255, 0.18);
  border-radius: 999px;
  background: rgba(112, 91, 255, 0.08);
  color: #705bff;
  font-size: 13px;
  font-weight: 650;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.company-search-filter-token span {
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-search-filter-token.exclude {
  border-color: rgba(244, 63, 94, 0.18);
  background: rgba(244, 63, 94, 0.08);
  color: var(--red);
}

.company-search-filter-token svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: currentColor;
  pointer-events: none;
}

.company-search-filter-token svg:last-child {
  width: 14px;
  height: 14px;
  opacity: 0.86;
}

.company-search-filter-panel {
  display: grid;
  gap: 8px;
}

.company-search-filter-panel .company-search-filter-tokens {
  margin: 0 0 2px;
}

.company-search-filter-search {
  height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #b4b4bf;
}

.company-search-filter-search svg {
  width: 17px;
  height: 17px;
}

.company-search-filter-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #404040;
  font-size: 13px;
}

.company-search-filter-results {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.company-search-filter-hint {
  color: #9a9aa7;
  font-size: 12px;
  line-height: 1.35;
}

.company-search-filter-result {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 0;
  border-bottom: 1px solid rgba(229, 229, 229, 0.54);
}

.company-search-filter-result > span {
  min-width: 0;
  overflow: hidden;
  color: #404040;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-search-filter-result > div {
  display: inline-flex;
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.company-search-filter-result button {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #705bff;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.company-search-filter-result button:last-child {
  color: var(--red);
}

.company-search-filter-result button + button {
  border-left: 1px solid var(--line);
}

.company-search-filter-result button:hover,
.company-search-filter-result button:focus-visible {
  background: rgba(112, 91, 255, 0.10);
  outline: 0;
}

.company-search-filter-result button:last-child:hover,
.company-search-filter-result button:last-child:focus-visible {
  background: rgba(244, 63, 94, 0.10);
}

.company-search-filter-result button svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.company-search-manual-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-search-manual-actions button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.company-search-manual-actions button:last-child {
  color: var(--red);
}

.company-search-manual-actions svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.company-search-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-search-range-inputs label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.company-search-range-inputs span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.company-search-range-inputs input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #404040;
  font-size: 12px;
  outline: 0;
}

.company-search-field span,
.company-search-range-grid span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.company-search-field input,
.company-search-field textarea,
.company-search-range-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #404040;
  font-size: 12px;
  line-height: 1.35;
  outline: 0;
}

.company-search-field input,
.company-search-range-grid input {
  height: 38px;
  padding: 0 10px;
}

.company-search-field textarea {
  min-height: 76px;
  resize: vertical;
  padding: 10px;
}

.company-search-field input:focus,
.company-search-field textarea:focus,
.company-search-range-grid input:focus,
.company-search-range-inputs input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(49, 107, 255, 0.18);
}

.company-search-inline-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  padding: 0 16px;
  margin-top: -12px;
}

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

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

.company-search-range-grid > div > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-search-preview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--surface);
}

.company-search-preview-head {
  min-height: 40px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.company-search-table-wrap {
  min-height: 0;
  overflow: auto;
}

.company-search-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.company-search-table th,
.company-search-table td {
  height: 48px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-search-table th {
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.company-search-table th:first-child,
.company-search-table td:first-child {
  width: 48px;
  color: var(--muted);
  text-align: center;
}

.company-search-table th:nth-child(2),
.company-search-table td:nth-child(2) {
  width: 220px;
}

.company-search-table th:nth-child(3),
.company-search-table td:nth-child(3) {
  width: 320px;
}

.company-search-table th:nth-child(4),
.company-search-table td:nth-child(4) {
  width: 230px;
}

.company-search-table th:nth-child(5),
.company-search-table td:nth-child(5) {
  width: 150px;
}

.company-search-table th.company-search-worker-column {
  width: 220px;
  background: #dceeff;
  color: #1f2937;
  border-color: #89bfff;
}

.company-search-worker-column svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
}

.company-search-worker-cell {
  background: #fbfdff;
  border-left-color: #89bfff;
}

.company-search-table a {
  color: var(--blue);
  text-decoration: none;
}

.company-search-preview-empty {
  width: min(440px, calc(100% - 48px));
  min-height: 220px;
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
  color: var(--muted);
  text-align: center;
}

.company-search-preview-empty svg,
.company-search-preview-empty-icon {
  width: 24px;
  height: 24px;
}

.company-search-preview-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.company-search-preview-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.company-search-saved-view {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
}

.company-search-saved-card {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}

.company-search-saved-card-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.company-search-saved-card-head > div,
.company-search-saved-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.company-search-saved-card-head > div button,
.company-search-saved-tabs button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #858596;
  font-size: 13px;
  font-weight: 550;
}

.company-search-saved-card-head > div button.active,
.company-search-saved-tabs button.active {
  background: rgba(112, 91, 255, 0.08);
  color: #363640;
}

.company-search-saved-card-head > div button:disabled {
  opacity: 0.5;
}

.company-search-saved-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.company-search-saved-content.compact {
  padding: 0;
}

.company-search-saved-search {
  height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(246, 246, 249, 0.92);
  color: #b1b1be;
}

.company-search-saved-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #363640;
  font-size: 14px;
}

.company-search-saved-search svg {
  width: 18px;
  height: 18px;
}

.company-search-saved-list {
  display: grid;
  gap: 2px;
  min-height: 92px;
}

.company-search-saved-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(229, 229, 229, 0.72);
}

.company-search-saved-row:last-child {
  border-bottom: 0;
}

.company-search-saved-row > button:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #363640;
  text-align: left;
}

.company-search-saved-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-search-saved-row span {
  min-width: 0;
  overflow: hidden;
  color: #8c8c9c;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-search-saved-count {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #858596;
  font-size: 12px;
}

.company-search-saved-count svg {
  width: 13px;
  height: 13px;
  color: #aaaaba;
}

.company-search-saved-delete {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aaaaba;
}

.company-search-saved-delete:hover,
.company-search-saved-delete:focus-visible {
  background: rgba(244, 63, 94, 0.08);
  color: var(--red);
  outline: 0;
}

.company-search-saved-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #9a9aa7;
  font-size: 12px;
  text-align: center;
}

.company-search-saved-empty svg {
  width: 18px;
  height: 18px;
  color: #c7c7d1;
}

.company-search-assistant {
  border-right: 0;
  padding: 16px;
  background: #fff;
}

.company-search-assistant-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.company-search-assistant-head {
  display: flex;
  gap: 10px;
}

.company-search-assistant-head svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex: 0 0 auto;
}

.company-search-assistant-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.company-search-assistant-box ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-search-assistant-box li,
.company-search-assistant-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.company-search-assistant-limit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.company-search-assistant-limit strong {
  color: var(--ink);
  font-size: 12px;
}

.company-search-billing-note {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.42);
}

.company-search-billing-note strong {
  color: var(--ink);
  font-size: 12px;
}

.company-search-billing-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.company-search-error,
.company-search-warnings {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  background: #fff7f7;
  color: var(--red);
  font-size: 12px;
  line-height: 1.35;
}

.company-search-error {
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
}

.company-search-error svg {
  width: 15px;
  height: 15px;
}

.company-search-warnings {
  margin: 10px 14px;
}

.company-search-enrichments {
  position: relative;
  padding-bottom: 74px;
}

.company-search-enrichment-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.company-search-enrichment-option input {
  width: 18px;
  height: 18px;
}

.company-search-enrichment-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.company-search-enrichment-icon svg {
  width: 16px;
  height: 16px;
}

.company-search-enrichment-option > span:nth-child(3) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.company-search-enrichment-option strong {
  font-size: 13px;
}

.company-search-enrichment-option small {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.company-search-create-note {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.company-search-create-note svg {
  width: 15px;
  height: 15px;
}

.company-search-create-button {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  justify-content: center;
}

.table-list {
  min-height: 0;
  margin: 27px 14px 0;
  padding-bottom: 40px;
  overflow: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.table-list.is-scrolling,
.table-list:focus-within {
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 112, 120, 0.36) transparent;
}

.table-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-list::-webkit-scrollbar-track {
  background: transparent;
}

.table-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.table-list.is-scrolling::-webkit-scrollbar-thumb,
.table-list:focus-within::-webkit-scrollbar-thumb {
  background: rgba(104, 112, 120, 0.36);
}

.table-list-grid {
  height: 100%;
  min-height: 0;
  min-width: 640px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
  overflow: hidden;
}

.table-list-grid.is-empty {
  grid-template-rows: auto minmax(0, 1fr);
}

.home-folder-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.home-folder-path,
.home-folder-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-folder-path {
  flex: 1 1 0;
}

.home-folder-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.home-folder-actions .home-create {
  flex: 1 1 auto;
  min-width: 0;
}

.home-folder-actions .home-search-wrap {
  flex: 1 1 180px;
  width: auto;
  max-width: 360px;
  min-width: 0;
}

.home-folder-crumb {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #404040;
  font: inherit;
  cursor: pointer;
}

.home-folder-crumb:hover {
  background: var(--panel-alt);
}

.home-folder-crumb.current {
  color: var(--ink);
  font-weight: 650;
  cursor: default;
}

.home-folder-crumb.current:hover {
  background: transparent;
}

.home-folder-separator {
  color: #9aa2ad;
}

.table-list-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.table-list-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-list-body::-webkit-scrollbar-track {
  background: transparent;
}

.table-list-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(104, 112, 120, 0.24);
}

.table-list-header,
.table-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 230px) minmax(140px, 190px) 40px;
  align-items: center;
  column-gap: 18px;
}

.table-list-header {
  z-index: 2;
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.table-list-row {
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #404040;
  text-align: left;
}

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

.table-list-row:hover {
  background: rgba(250, 250, 250, 0.72);
}

.table-list-row[draggable="true"] {
  cursor: grab;
}

.table-list-row[draggable="true"]:active {
  cursor: grabbing;
}

.table-list-row.is-dragging {
  opacity: 0.48;
}

.table-list-row.folder-row.is-drop-target,
.home-folder-crumb.is-drop-target {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px rgba(49, 107, 255, 0.34);
}

.table-list-row.folder-row.is-drop-target .table-list-name svg {
  color: var(--blue);
  fill: rgba(49, 107, 255, 0.12);
}

.table-list-row:focus {
  outline: 0;
}

.table-list-row:has(.table-list-name:focus-visible) {
  outline: 2px solid rgba(49, 107, 255, 0.22);
  outline-offset: -2px;
}

.table-list-name-cell {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.table-list-name {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.table-list-name svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--muted);
  stroke-width: 2;
}

.table-list-row.folder-row .table-list-name svg {
  color: rgba(49, 107, 255, 0.76);
  fill: rgba(49, 107, 255, 0.08);
}

.table-list-folder-meta {
  color: var(--muted);
}

.table-list-title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-list-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-list-missing-description {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(229, 229, 229, 0.72);
  border-radius: 6px;
  background: rgba(250, 250, 250, 0.46);
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.table-list-missing-description svg {
  display: none;
}

.table-list-missing-description span {
  font-size: 0;
}

.table-list-missing-description span::after {
  content: "Desc";
  font-size: 12px;
}

.table-list-missing-description:hover {
  border-color: rgba(212, 212, 212, 0.9);
  background: rgba(250, 250, 250, 0.76);
  color: #737373;
}

.table-list-owner,
.table-list-modified {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.table-list-owner > span:last-child,
.table-list-modified {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-list-owner-avatar {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.home-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.home-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.app-shell.details-closed {
  grid-template-columns: minmax(0, 1fr) 0;
  grid-template-areas:
    "topbar topbar"
    "workspace evidence"
    "tabletabs tabletabs";
}

.app-shell.details-closed.outreach-wide-panel {
  grid-template-columns: minmax(0, 1fr) 0;
}

.app-shell.details-closed .evidence-panel {
  display: none;
}

.topbar {
  grid-area: topbar;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand-block,
.topbar-actions,
.table-toolbar,
.toolbar-left,
.metric-line,
.panel-header,
.cell-main,
.confidence-row,
.field-row,
.status-pill,
.worker-title,
.worker-state,
.mapping-state,
.config-overview,
.config-status,
.worker-actions,
.button,
.icon-button,
.menu button {
  display: flex;
  align-items: center;
}

.brand-block {
  min-width: 0;
  gap: 10px;
}

.topbar-brand {
  justify-self: start;
  gap: 12px;
}

.topbar-mode-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.topbar .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.brand-home-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-home-button:hover .brand-mark {
  opacity: 0.84;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.brand-block h1,
.panel-header h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.breadcrumb-button,
.table-title-button {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.table-title-button {
  max-width: min(760px, 54vw);
}

.breadcrumb-button:hover,
.table-title-button:hover,
.table-title-button.is-editing {
  background: var(--panel-alt);
  color: var(--ink);
}

.table-title-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.34);
  outline-offset: 2px;
}

.table-title-input {
  min-width: 120px;
  width: min(520px, 44vw);
  height: 26px;
  padding: 0 5px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  letter-spacing: 0;
  outline: none;
}

.table-title-input:focus {
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.breadcrumb-button svg:last-child {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.files-menu-wrap {
  position: relative;
}

.files-menu {
  left: 0;
  right: auto;
  width: min(380px, calc(100vw - 22px));
  max-height: min(420px, calc(100vh - 86px));
  overflow: hidden;
  padding: 7px;
  border-color: var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(31, 35, 40, 0.13);
}

.files-menu-search {
  height: 32px;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--faint);
}

.files-menu-search svg {
  width: 15px;
  height: 15px;
}

.files-menu-search input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.files-menu-search input::placeholder {
  color: #9aa3af;
}

.files-menu-list {
  max-height: min(348px, calc(100vh - 134px));
  margin-top: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}

.menu .files-menu-item {
  min-height: 36px;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 9px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 720;
  cursor: pointer;
}

.files-menu-item svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}

.files-menu-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-menu-item small {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.files-menu-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.files-menu-delete {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #9aa3af;
  opacity: 0;
}

.files-menu-item:hover .files-menu-delete,
.files-menu-item:focus-within .files-menu-delete {
  opacity: 1;
}

.files-menu-delete:hover,
.files-menu-delete:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
  outline: 0;
}

.files-menu-empty {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.breadcrumb-divider {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

#activeTableCrumb {
  min-width: 0;
  max-width: min(700px, 48vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-actions {
  justify-self: end;
  gap: 8px;
}

.auth-workspace-button {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.auth-workspace-button:hover {
  border-color: rgba(49, 107, 255, 0.32);
  background: var(--panel-alt);
}

.auth-workspace-button[data-auth-needs-sync="true"]::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f59e0b;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.auth-workspace-button[data-auth-provider="local"] .auth-avatar,
.auth-workspace-button[data-auth-signed-in="false"] .auth-avatar {
  border: 1px solid var(--line);
  background: #f4f7fb;
  color: #3b4656;
}

.credit-balance-button {
  --credit-fill: 0%;
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #404040;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.credit-balance-button:hover,
.credit-balance-button[aria-expanded="true"] {
  border-color: rgba(49, 107, 255, 0.32);
  background: var(--panel-alt);
  color: var(--ink);
}

.credit-balance-button[data-credit-state="empty"] {
  color: #8a5a00;
}

.credit-balance-button[data-credit-state="error"] {
  color: var(--red);
}

.credit-storage-icon {
  width: 19px;
  height: 19px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.credit-storage-fill {
  position: absolute;
  inset: 2px;
  overflow: hidden;
  border-radius: 4px;
  clip-path: inset(calc(100% - var(--credit-fill)) 0 0 0);
  background: rgba(13, 148, 97, 0.22);
}

.credit-storage-icon svg {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  color: currentColor;
  stroke-width: 2.3;
}

.credit-balance-button[data-credit-state="empty"] .credit-storage-icon {
  color: #b26a00;
}

.credit-balance-button[data-credit-state="error"] .credit-storage-icon {
  color: var(--red);
}

.save-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.save-status.saving,
.save-status.dirty {
  color: var(--amber);
}

.save-status.error {
  color: var(--red);
}

.button,
.icon-button,
select,
.menu button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
}

.button {
  min-height: 32px;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button svg,
.icon-button svg,
.menu button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(49, 107, 255, 0.12);
}

.button.primary:hover {
  border-color: #2558d9;
  background: #2558d9;
}

.button.dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button.danger:hover {
  background: #991b1b;
}

.button.secondary:hover,
.icon-button:hover {
  border-color: rgba(49, 107, 255, 0.28);
  background: var(--panel-alt);
}

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

.button.ghost:hover {
  border-color: var(--line);
  background: var(--panel-alt);
  color: var(--ink);
}

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

.button.full-width {
  width: 100%;
  justify-content: center;
}

#csvInput,
#newTableCsvInput {
  display: none;
}

.icon-button {
  width: 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
}

.icon-button.ghost {
  border-color: transparent;
  background: transparent;
}

.icon-button.table-list-delete,
.icon-button.table-list-delete:hover,
.icon-button.table-list-delete:focus,
.icon-button.table-list-delete:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.icon-button.table-list-delete {
  color: #1f2328;
  opacity: 1;
}

.icon-button.table-list-delete:hover {
  color: var(--ink);
}

.table-list-actions-menu {
  min-width: 148px;
}

.table-list-actions-menu button {
  min-height: 34px;
}

.table-list-actions-menu button:last-child {
  color: var(--red);
}

.menu-wrap {
  position: relative;
}

.menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 7px);
  left: 0;
  min-width: 210px;
  max-width: calc(100vw - 16px);
  padding: 5px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.12);
}

.menu.right {
  right: 0;
  left: auto;
}

.menu.open {
  display: block;
}

.menu button {
  width: 100%;
  min-height: 32px;
  gap: 8px;
  justify-content: flex-start;
  padding: 0 9px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.menu button:hover {
  background: var(--panel-alt);
  color: var(--blue);
}

.floating-menu-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.floating-menu-copy > span,
.floating-menu-copy > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-menu-copy > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.menu-file-action {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.menu-file-action:hover {
  background: var(--panel-alt);
}

.menu-file-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.menu-separator {
  height: 1px;
  margin: 5px 3px;
  background: var(--line);
}

.topbar-menu {
  min-width: 168px;
}

.topbar-menu-button,
.table-file-actions-button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.topbar-menu-button:hover,
.table-file-actions-button:hover,
.table-list-delete:hover {
  border-color: transparent;
}

.topbar-menu-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  width: min(306px, calc(100vw - 16px));
  overflow: hidden;
  padding: 0;
}

.account-menu-profile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
}

.account-menu-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #5865d8;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.account-menu-avatar.muted {
  border: 1px solid var(--line);
  background: #f4f7fb;
  color: #3b4656;
}

.account-menu-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-menu-identity strong,
.account-menu-identity span,
.account-workspace-row strong,
.account-workspace-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-identity strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.account-menu-identity span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.account-menu-body {
  display: grid;
  gap: 7px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.account-menu-section-title {
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.account-workspace-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fff;
}

.account-workspace-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e52e5d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.account-workspace-row svg {
  width: 15px;
  height: 15px;
  color: var(--ink);
}

.account-workspace-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.account-workspace-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.account-menu-status {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.account-menu-status.synced {
  color: #0f7a4f;
}

.account-menu-status.attention {
  color: #8a5a00;
  background: #fff8e6;
}

.account-menu-actions {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.account-menu-actions.compact {
  padding-top: 7px;
}

.menu .account-menu-action {
  min-height: 36px;
  justify-content: flex-start;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.menu .account-menu-action:hover {
  background: var(--panel-alt);
}

.menu .account-menu-action.primary {
  background: var(--ink);
  color: #fff;
}

.menu .account-menu-action.primary:hover {
  background: #2a2d34;
}

.menu .account-menu-action.danger:hover {
  background: #fff1f1;
  color: var(--red);
}

.account-menu-action svg {
  width: 15px;
  height: 15px;
}

.credit-balance-menu {
  width: min(360px, calc(100vw - 16px));
  overflow: hidden;
  padding: 0;
}

.credit-menu-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.credit-menu-head strong,
.credit-menu-head span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-menu-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.credit-menu-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.credit-menu-balance {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.credit-menu-balance strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.credit-menu-balance small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.credit-menu-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.credit-menu-facts span {
  min-width: 0;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  overflow: hidden;
  color: #4b5563;
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-menu-facts svg {
  width: 14px;
  height: 14px;
}

.credit-menu-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.credit-menu-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  max-width: 100%;
  border-radius: inherit;
  background: #0f7a4f;
}

.credit-menu-warning {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid #ffe1a6;
  border-radius: 7px;
  background: #fff8e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.credit-menu-warning svg {
  width: 16px;
  height: 16px;
}

.credit-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.menu .credit-menu-actions button {
  min-height: 34px;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.menu .credit-menu-actions button:hover {
  border-color: #9bb6ff;
  background: #f4f7ff;
}

.credit-menu-actions svg {
  width: 15px;
  height: 15px;
}

.billing-backdrop {
  z-index: 124;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(2px);
}

.billing-modal {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 22px 52px rgba(17, 24, 39, 0.18),
    0 4px 14px rgba(17, 24, 39, 0.08);
}

.billing-modal-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.billing-modal-header > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.billing-modal-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-modal-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

.billing-modal-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.billing-content {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 12px 18px 16px;
  overscroll-behavior: contain;
  font-size: 13px;
}

.billing-plan-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.billing-cycle-tabs {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f8fa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.billing-cycle-tabs button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.billing-cycle-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.billing-cycle-tabs button:focus-visible {
  outline: 2px solid rgba(49, 107, 255, 0.35);
  outline-offset: 2px;
}

.billing-cycle-tabs span {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2858d8;
  font-size: 11px;
  font-weight: 650;
}

.billing-current-chip {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 1px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.billing-current-chip strong,
.billing-current-chip span {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-current-chip strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

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

.billing-summary-card,
.billing-plan-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-summary-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.billing-summary-card span,
.billing-summary-card small,
.billing-plan-card small,
.billing-plan-head span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-summary-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
}

.billing-warning {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid #ffe1a6;
  border-radius: 7px;
  background: #fff8e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.billing-warning svg {
  width: 16px;
  height: 16px;
}

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

.billing-plan-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 13px;
}

.billing-plan-card.current {
  border-color: #8fb3ff;
  box-shadow: inset 0 0 0 1px rgba(49, 107, 255, 0.18);
}

.billing-plan-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.billing-plan-head strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-plan-head em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2858d8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.billing-plan-price {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.billing-plan-meta {
  display: grid;
  gap: 7px;
}

.billing-plan-meta span {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: #4b5563;
  font-size: 12px;
  font-weight: 750;
}

.billing-plan-meta svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.billing-plan-action {
  width: 100%;
  justify-content: center;
  min-height: 38px;
}

.billing-plan-note {
  color: #8a5a00;
}

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

.billing-manage-card {
  min-width: 0;
  min-height: 312px;
  display: grid;
  grid-template-rows: 58px 46px 94px 36px 36px 14px;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-manage-card.current {
  border-color: #9bb6ff;
  box-shadow: inset 0 0 0 1px rgba(49, 107, 255, 0.1);
}

.billing-manage-card-head {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.billing-manage-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0;
}

.billing-manage-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 450;
}

.billing-manage-price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 6px;
}

.billing-manage-price strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 650;
}

.billing-manage-price span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.billing-manage-price small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.billing-feature-list {
  display: grid;
  align-content: start;
  gap: 6px;
}

.billing-feature-list > strong {
  color: #3d4249;
  font-size: 11.5px;
  font-weight: 650;
}

.billing-feature-list span {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
}

.billing-feature-list svg {
  width: 15px;
  height: 15px;
  color: #2f9d69;
}

.billing-plan-select,
.billing-plan-static-select {
  min-height: 34px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.billing-plan-selector-slot {
  min-height: 36px;
  display: grid;
  align-items: center;
}

.billing-plan-select {
  position: relative;
}

.billing-plan-select select {
  width: 100%;
  min-height: 34px;
  padding: 0 32px 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  appearance: none;
  outline: 0;
}

.billing-plan-select svg {
  position: absolute;
  right: 11px;
  width: 16px;
  height: 16px;
  color: var(--ink);
  pointer-events: none;
}

.billing-plan-static-select {
  padding: 0 10px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  background: #fbfcfd;
}

.billing-manage-action {
  min-height: 36px;
  justify-content: center;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 650;
}

.billing-loading,
.billing-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.billing-loading svg {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.billing-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.billing-empty span {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.usage-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.usage-title-block {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.usage-title-block strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
}

.usage-title-block span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.usage-summary-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.usage-summary-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-summary-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
}

.usage-ledger {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.usage-ledger-head,
.usage-ledger-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 110px 120px;
  gap: 10px;
  align-items: center;
}

.usage-ledger-head {
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.usage-ledger-row {
  min-height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
}

.usage-ledger-row:last-child {
  border-bottom: 0;
}

.usage-ledger-row time,
.usage-ledger-balance {
  color: var(--muted);
  font-weight: 500;
}

.usage-ledger-source {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.usage-ledger-source strong,
.usage-ledger-source span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-ledger-source strong {
  font-weight: 600;
}

.usage-ledger-source span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.usage-ledger-amount {
  justify-self: end;
  font-weight: 650;
}

.usage-ledger-amount.credit {
  color: #0f7a4f;
}

.usage-ledger-amount.debit {
  color: #b42318;
}

.usage-ledger-balance {
  justify-self: end;
}

.usage-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.usage-empty svg {
  width: 24px;
  height: 24px;
}

.usage-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.usage-empty span {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.45;
}

.ai-template-list {
  display: grid;
  gap: 2px;
}

#addWorkerMenu {
  width: min(360px, calc(100vw - 16px));
  max-height: min(640px, calc(100vh - 16px));
  overflow: hidden;
}

.add-column-panel {
  display: grid;
  gap: 5px;
  padding: 5px;
}

.menu .add-column-agent-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  width: 100%;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  text-align: left;
}

.menu .add-column-agent-card.muted {
  grid-template-columns: 16px minmax(0, 1fr);
  color: var(--muted);
}

.menu .add-column-agent-card:hover {
  border-color: var(--line);
  background: var(--panel-alt);
}

.add-column-agent-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: transparent;
  color: var(--blue);
}

.add-column-search {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  height: 32px;
  margin: 7px 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
}

.add-column-search svg {
  width: 14px;
  height: 14px;
}

.add-column-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.add-column-search input::placeholder {
  color: #9ca3af;
}

.add-column-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 2px 4px;
  border-bottom: 1px solid var(--line);
}

.menu .add-column-tabs button {
  flex: 0 0 auto;
  width: auto;
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  justify-content: center;
}

.menu .add-column-tabs button:hover {
  background: var(--panel-alt);
  color: var(--ink);
}

.menu .add-column-tabs button.active {
  border-color: var(--line-strong);
  background: var(--panel-alt);
  color: var(--ink);
}

.add-column-question {
  display: none;
}

.add-column-list {
  display: grid;
  gap: 1px;
  max-height: calc((32px + 1px) * 9);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.add-column-list::-webkit-scrollbar {
  width: 8px;
}

.add-column-list::-webkit-scrollbar-track {
  background: transparent;
}

.add-column-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.38);
  background-clip: padding-box;
}

.add-column-list::-webkit-scrollbar-thumb:hover {
  background: rgba(75, 85, 99, 0.55);
  background-clip: padding-box;
}

.add-column-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
}

.add-column-action-row:has(.ai-template-action) {
  grid-template-columns: minmax(0, 1fr) 24px 24px;
  align-items: stretch;
}

.menu .add-column-action-main {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  width: 100%;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.menu .add-column-action-main:hover {
  border-color: var(--line);
  background: var(--panel-alt);
}

.menu .add-column-action-main:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 1;
}

.add-column-action-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #4b5563;
}

.add-column-action-icon svg {
  width: 11px;
  height: 11px;
}

.add-column-action-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.add-column-action-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.add-column-action-copy strong,
.add-column-action-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-column-action-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.add-column-action-title .feature-status-badge {
  min-height: 15px;
  padding: 1px 5px;
  font-size: 8.5px;
}

.add-column-action-copy small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.add-column-action-meta {
  display: none;
}

.add-column-action-meta em,
.add-column-soon {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.add-column-soon {
  border-color: #f2ddb6;
  background: #fff8ea;
  color: #8a5a12;
}

.ai-template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  gap: 2px;
  align-items: center;
}

.menu .ai-template-add {
  min-width: 0;
}

.menu .ai-template-add span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu .ai-template-action {
  justify-content: center;
  padding: 0;
}

.menu .ai-template-action.danger:hover {
  background: #fff1f1;
  color: var(--red);
}

.menu-title {
  padding: 7px 9px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-name-editor {
  display: grid;
  gap: 5px;
  min-width: 230px;
  margin: 0 0 3px;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line);
}

.menu-name-editor span {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 850;
}

.menu-name-editor input {
  width: 100%;
  height: 32px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 520;
  outline: none;
}

.menu-name-editor input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.worker-logs-menu {
  min-width: 260px;
}

.table-description-menu {
  width: min(380px, calc(100vw - 16px));
}

.table-description-form {
  display: grid;
  gap: 10px;
  padding: 0 5px 5px;
}

.table-description-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.table-description-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.table-description-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.table-description-suggestion {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 9px;
}

.table-description-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ai-settings-menu {
  width: min(380px, calc(100vw - 16px));
}

.ai-settings-form {
  display: grid;
  gap: 9px;
  padding: 0 5px 5px;
}

.ai-settings-form .setting-field {
  padding: 0 4px;
}

.ai-settings-form .button {
  justify-content: center;
}

.integrations-menu {
  width: min(360px, calc(100vw - 16px));
  max-height: min(620px, calc(100vh - 24px));
  overflow: hidden;
}

.integrations-menu.open {
  display: flex;
  flex-direction: column;
}

.integrations-form {
  display: grid;
  gap: 7px;
  width: 100%;
  max-height: inherit;
  min-height: 0;
  padding: 0 5px 5px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.integrations-form .setting-field {
  padding: 0;
}

.integration-provider-list {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}

.integration-provider {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.integration-provider[open] {
  background: var(--panel-alt);
}

.integration-provider summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 46px;
  padding: 4px 7px;
  cursor: pointer;
  list-style: none;
}

.integration-provider summary::-webkit-details-marker {
  display: none;
}

.integration-provider summary > i,
.integration-provider summary > svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.integration-provider[open] summary > i,
.integration-provider[open] summary > svg {
  transform: rotate(180deg);
}

.integration-provider-fields {
  display: grid;
  gap: 7px;
  padding: 0 8px 9px;
}

.integration-list-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 0;
}

.integration-list-row strong,
.integration-list-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-list-row strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 850;
}

.integration-list-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.integration-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-alt);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.integration-icon.lgm {
  border-color: #b9d8ff;
  background: #eef6ff;
  color: #0f61b9;
}

.integration-icon.hubspot {
  border-color: #ffc6b7;
  background: #fff3ef;
  color: #e4532c;
}

.integration-icon.auth {
  border-color: #c8d6e7;
  background: #f5f8fb;
  color: #354152;
}

.auth-provider-summary {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.clerk-auth-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7fa;
}

.clerk-auth-mode button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.clerk-auth-mode button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.clerk-inline-mount:empty,
.clerk-auth-mount:empty,
.clerk-sign-in-mount:empty {
  display: none;
}

.clerk-inline-mount {
  min-height: 32px;
}

.clerk-auth-mount,
.clerk-sign-in-mount {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.integration-icon.large {
  width: 44px;
  height: 44px;
  font-size: 12px;
}

.integration-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  position: sticky;
  bottom: -5px;
  z-index: 1;
  padding: 7px 2px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.integration-actions .button {
  justify-content: center;
  min-height: 31px;
  padding: 0 8px;
}

.integration-actions .button:first-child {
  grid-column: 1 / -1;
}

.worker-log-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-tag-menu {
  width: min(280px, calc(100vw - 20px));
  max-height: 280px;
  overflow: auto;
}

.column-tag-menu button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-slash-menu {
  width: min(440px, calc(100vw - 20px));
  max-height: min(480px, calc(100vh - 20px));
  overflow: auto;
  overscroll-behavior: contain;
}

.ask-slash-group {
  display: grid;
  gap: 2px;
  padding-bottom: 4px;
}

.ask-slash-category {
  padding: 6px 9px 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ask-slash-menu button {
  min-height: 46px;
  align-items: center;
}

.ask-slash-menu button span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ask-slash-menu button strong,
.ask-slash-menu button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-slash-menu button strong {
  color: var(--ink);
  font-size: 12px;
}

.ask-slash-menu button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.menu-note {
  padding: 8px 9px 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.menu-note.danger {
  color: var(--red);
}

.checklist-menu button {
  justify-content: flex-start;
}

.checklist-menu {
  width: min(300px, calc(100vw - 20px));
  max-height: min(420px, calc(100vh - 20px));
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.checklist-search-wrap {
  padding: 5px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.checklist-options {
  max-height: calc(min(420px, calc(100vh - 20px)) - 43px);
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.checklist-search {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.checklist-search:focus {
  border-color: var(--line-strong);
  background: #fff;
}

.checklist-menu button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-menu button small {
  min-width: 0;
  margin-left: auto;
  color: var(--faint);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dependency-lookup-menu {
  width: min(360px, calc(100vw - 20px));
}

.dependency-column-menu {
  width: min(380px, calc(100vw - 20px));
}

.workspace {
  grid-area: workspace;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--panel);
}

.table-toolbar {
  min-height: 44px;
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, clamp(220px, 32vw, 560px)) minmax(260px, 1fr);
  grid-template-rows: minmax(32px, auto) auto;
  align-items: center;
  gap: 0 10px;
  padding: 6px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  transition:
    grid-template-columns 220ms ease,
    gap 220ms ease;
}

.app-shell.ask-compact .table-toolbar {
  grid-template-columns: minmax(240px, 1.1fr) minmax(132px, clamp(132px, 14vw, 220px)) minmax(300px, 1.45fr);
  gap: 0 8px;
}

.toolbar-left {
  gap: 7px;
}

.toolbar-left {
  width: 100%;
  min-width: 0;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  padding-top: 0;
  justify-self: start;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.table-active-filters {
  grid-column: 1 / -1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  margin-top: 6px;
  scrollbar-width: thin;
}

.table-active-filters[hidden] {
  display: none;
}

.state-chip,
.state-chip-group {
  min-height: 28px;
  max-width: min(360px, 100%);
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.state-chip {
  gap: 6px;
  padding: 0 9px;
}

.state-chip svg,
.state-chip-group svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.state-chip-main,
.state-chip-remove {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.state-chip-main {
  min-width: 0;
  gap: 6px;
  padding: 0 4px 0 9px;
}

.state-chip-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-chip-main.passive {
  pointer-events: none;
}

.state-chip-remove {
  width: 26px;
  justify-content: center;
  padding: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 999px 999px 0;
  color: var(--muted);
}

.state-chip-remove:hover,
.clear-view-chip:hover {
  background: var(--panel-alt);
  color: var(--ink);
}

.filter-state-chip {
  border-color: #b9d8ff;
  background: #eef6ff;
  color: #0f61b9;
}

.sort-state-chip {
  border-color: #d8c7ff;
  background: #f5f0ff;
  color: #5b21b6;
}

.table-source-button {
  border-color: #bfe5d8;
  background: #effaf5;
  color: #0f6b4f;
  max-width: 180px;
}

.table-source-button:hover,
.table-source-button[aria-expanded="true"] {
  background: #e3f6ee;
}

.table-source-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-topbar .brand-block h1 {
  color: #17191c;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
}

.table-sources-menu {
  min-width: 260px;
}

.table-sources-menu button span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.table-sources-menu button strong,
.table-sources-menu button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-sources-menu button strong {
  font-size: 12px;
}

.table-sources-menu button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.table-sources-menu-actions {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.table-file-actions-button {
  background: #fff;
}

.table-file-actions-button[aria-expanded="true"] {
  background: var(--panel-alt);
}

.table-file-actions-menu {
  min-width: 220px;
}

.business-form-header-preview,
.business-form-header-copy {
  background: #fff;
}

.business-form-header-preview.active {
  border-color: #bfe5d8;
  background: #effaf5;
  color: #0f6b4f;
}

.table-columns-button {
  height: 30px;
  min-height: 30px;
  max-width: min(260px, 100%);
  justify-content: center;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 650;
}

.table-columns-button svg {
  width: 17px;
  height: 17px;
}

.table-view-button {
  height: 30px;
  min-height: 30px;
  max-width: min(170px, 100%);
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 650;
}

.table-view-button svg {
  width: 17px;
  height: 17px;
}

.table-filter-button,
.table-sort-button {
  width: 36px;
  padding: 0;
  gap: 0;
}

.table-filter-button.has-count,
.table-sort-button.has-count {
  width: 60px;
  gap: 7px;
}

.table-state-tray-button {
  width: 60px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  justify-content: center;
  gap: 7px;
  padding: 0;
  font-size: 13.5px;
  font-weight: 650;
}

.table-state-tray-button svg {
  width: 17px;
  height: 17px;
}

.linked-result-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.linked-result-tab {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.linked-result-tab:hover {
  background: var(--panel-alt);
}

.linked-result-tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.linked-result-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-tabs {
  grid-area: tabletabs;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 112, 120, 0.32) transparent;
}

.table-workspace-tabs[hidden] {
  display: none;
}

.table-workspace-tabs::-webkit-scrollbar {
  height: 8px;
}

.table-workspace-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.table-workspace-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(104, 112, 120, 0.32);
}

.table-workspace-tab {
  height: 38px;
  min-width: 0;
  max-width: 250px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.table-workspace-tab:first-child {
  border-left: 1px solid var(--line);
}

.table-workspace-tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.table-workspace-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-workspace-tab:hover {
  background: var(--panel-alt);
  color: var(--ink);
}

.table-workspace-tab.active {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.table-workspace-tab.attached {
  color: #334155;
}

.table-workspace-tab.attached.active {
  color: var(--blue);
}

.table-state-tray-button.has-count .table-view-count {
  display: inline-flex;
}

.table-columns-button,
.table-view-button,
.table-state-tray-button {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.table-columns-button:hover,
.table-columns-button[aria-expanded="true"],
.table-view-button.active,
.table-view-button:hover,
.table-view-button[aria-expanded="true"],
.table-state-tray-button.active,
.table-state-tray-button:hover,
.table-state-tray-button[aria-expanded="true"] {
  border-color: transparent;
  background: var(--panel-alt);
}

.table-view-button.active,
.table-view-button:hover {
  background: var(--panel-alt);
}

.table-view-count {
  min-width: 0;
  height: auto;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1;
}

.table-view-button.has-count .table-view-count {
  display: inline-flex;
}

.clear-view-chip {
  color: var(--muted);
}

.table-columns-menu {
  width: min(360px, calc(100vw - 16px));
  max-height: min(640px, calc(100vh - 16px));
  overflow: hidden;
}

.column-view-bulk-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--line);
}

.column-view-bulk-actions button {
  min-width: 0;
  min-height: 32px;
  gap: 10px;
  padding: 0 7px;
  font-size: 12.5px;
  font-weight: 500;
}

.column-view-bulk-actions button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-view-search-wrap {
  min-width: 0;
  height: 32px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 7px 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.column-view-search-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.column-view-search {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.column-view-list {
  max-height: min(470px, calc(100vh - 190px));
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.column-view-section {
  display: grid;
  gap: 2px;
}

.column-view-section + .column-view-section {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.column-view-section-title {
  padding: 4px 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.column-view-row {
  min-width: 0;
  min-height: 29px;
  display: grid;
  grid-template-columns: 16px 20px 20px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 3px;
  padding: 1px 3px;
  border-radius: 7px;
}

.column-view-row:hover {
  background: var(--panel-alt);
}

.table-columns-menu .column-view-grip {
  width: 16px;
  min-width: 16px;
  height: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa3ad;
  cursor: grab;
}

.table-columns-menu .column-view-grip:hover {
  background: transparent;
  color: #6b7280;
}

.table-columns-menu .column-view-grip:active {
  cursor: grabbing;
}

.column-view-grip svg,
.column-view-type svg {
  width: 12px;
  height: 12px;
}

.table-columns-menu .column-view-toggle,
.table-columns-menu .column-view-actions button {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
}

.table-columns-menu .column-view-toggle svg,
.table-columns-menu .column-view-actions button svg {
  width: 12px;
  height: 12px;
}

.table-columns-menu .column-view-toggle.active {
  background: var(--blue);
  color: #fff;
}

.column-view-type {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #4b5563;
}

.column-view-label {
  min-width: 0;
  max-width: 176px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-view-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
}

.column-view-actions button {
  color: #6b7280;
}

.column-view-actions button.active {
  color: var(--blue);
}

.column-view-actions button.danger {
  color: #9aa3af;
  opacity: 0;
}

.column-view-row:hover .column-view-actions button.danger,
.column-view-row:focus-within .column-view-actions button.danger {
  opacity: 1;
}

.column-view-actions button.danger:hover,
.column-view-actions button.danger:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
}

.column-view-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.column-view-dragging,
.column-view-dragging * {
  cursor: grabbing !important;
}

.column-view-drag-source {
  opacity: 0.58;
}

.column-view-drop-indicator {
  position: fixed;
  z-index: 1300;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
  pointer-events: none;
}

.table-sort-menu {
  width: min(340px, calc(100vw - 16px));
  max-height: min(520px, calc(100vh - 16px));
  overflow: hidden;
}

.table-views-menu {
  width: min(300px, calc(100vw - 16px));
  max-height: min(480px, calc(100vh - 16px));
  overflow: auto;
}

.active-sort-list {
  display: grid;
  gap: 1px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.active-sort-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.active-sort-heading .column-view-section-title {
  padding: 2px 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.menu .active-sort-heading button {
  min-height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.menu .active-sort-heading button:hover {
  background: var(--panel-alt);
  color: var(--ink);
}

.active-sort-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 1px 2px;
  border-radius: 6px;
}

.active-sort-row:hover {
  background: var(--panel-alt);
}

.active-sort-priority,
.sort-option-priority {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #5f6368;
  color: #fff;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1;
}

.active-sort-label {
  min-width: 0;
  display: grid;
  gap: 0;
  padding: 1px 3px;
}

.active-sort-row strong,
.active-sort-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-sort-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.active-sort-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.15;
}

.active-sort-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.menu .active-sort-actions button {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  color: var(--muted);
}

.menu .active-sort-actions button:hover {
  background: var(--panel-alt);
  color: var(--ink);
}

.menu .active-sort-actions button svg {
  width: 11px;
  height: 11px;
}

.sort-limit-note {
  padding: 2px 5px 0 21px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.selection-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.selection-actions-button {
  min-width: 86px;
  min-height: 30px;
  justify-content: center;
  border-color: #0f82ed;
  border-radius: 6px;
  background: #0f82ed;
  color: #fff;
  font-size: 13.5px;
  font-weight: 820;
}

.selection-actions-button:hover {
  border-color: #0b72d9;
  background: #0b72d9;
}

.selection-actions-button svg {
  width: 17px;
  height: 17px;
}

.selection-actions-menu {
  min-width: 224px;
  padding: 6px;
}

.selection-actions-menu .selection-action-row {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.selection-actions-menu .selection-action-row:hover {
  background: var(--panel-alt);
}

.selection-actions-menu .selection-action-row:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.selection-actions-menu .selection-action-row.danger {
  color: #e11d48;
}

.selection-action-main,
.selection-cost-pill {
  display: inline-flex;
  align-items: center;
}

.selection-action-main {
  min-width: 0;
  gap: 9px;
}

.selection-action-main svg {
  width: 18px;
  height: 18px;
}

.selection-cost-pill {
  min-width: 66px;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 750;
}

.selection-cost-pill.integration-pill {
  border-color: #b9d8ff;
  background: #eef6ff;
  color: #0f61b9;
}

.selection-cost-pill.credit-pill {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.selection-cost-pill svg {
  width: 14px;
  height: 14px;
  color: #047857;
}

.selection-action-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

.toolbar-right {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 0;
}

.app-shell.ask-compact .toolbar-right {
  flex-wrap: nowrap;
  overflow: hidden;
}

.ai-filter-slot {
  width: 100%;
  min-width: 0;
  max-width: min(560px, 32vw);
  min-height: 34px;
  position: relative;
  z-index: 110;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  transition:
    max-width 220ms ease,
    transform 220ms ease;
}

.app-shell.ask-compact .ai-filter-slot {
  max-width: min(220px, 14vw);
}

.ai-filter-bar {
  width: 100%;
  height: 34px;
  min-height: 34px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    padding 220ms ease,
    gap 220ms ease;
}

.app-shell.ask-compact .ai-filter-bar {
  gap: 5px;
  padding: 4px 5px 4px 8px;
}

.ai-filter-bar:focus-within {
  border-color: var(--ink);
  background: #fff;
}

.ai-filter-bar.active {
  border-color: var(--ink);
}

.ai-filter-bar > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
}

.ai-filter-bar input,
.ai-filter-bar textarea {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.ai-filter-bar textarea {
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  line-height: 18px;
  padding: 3px 0;
  resize: none;
  overflow-y: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ai-filter-bar input::placeholder,
.ai-filter-bar textarea::placeholder {
  color: var(--faint);
}

.ai-filter-ask-button {
  min-width: 44px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--dark);
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  transition:
    min-width 220ms ease,
    padding 220ms ease,
    background-color 160ms ease;
}

.ai-filter-ask-button:hover {
  background: var(--ink);
}

.ai-filter-worker-wrap {
  flex: 0 0 auto;
}

.ai-filter-worker-button {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 820;
}

.ai-filter-worker-button svg {
  width: 17px;
  height: 17px;
}

.ai-filter-ask-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ai-filter-bar .icon-button {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.ai-filter-bar .manual-filter-button {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.manual-filter-count {
  min-width: 10px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
  visibility: hidden;
}

.manual-filter-button.has-count .manual-filter-count {
  visibility: visible;
}

.manual-filter-button.active,
.manual-filter-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-alt);
  color: var(--ink);
}

#aiFilterClear,
#savedFilterButton,
#aiFilterModalName,
#aiFilterModalSave {
  display: none;
}

.saved-filter-wrap {
  flex: 0 0 auto;
}

.saved-filter-button {
  color: var(--muted);
}

.saved-filter-button.active {
  border-color: var(--line-strong);
  background: var(--panel-alt);
  color: var(--ink);
}

.saved-filter-menu {
  width: min(320px, calc(100vw - 16px));
  max-height: min(420px, calc(100vh - 16px));
  overflow: auto;
}

.saved-filter-list {
  display: grid;
  gap: 3px;
}

.menu button.saved-filter-save-current {
  min-height: 34px;
  margin-bottom: 5px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  font-weight: 800;
}

.saved-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
}

.saved-filter-row.active {
  background: var(--blue-soft);
}

.menu button.saved-filter-apply {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
}

.menu button.saved-filter-apply span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.menu button.saved-filter-apply strong,
.menu button.saved-filter-apply small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu button.saved-filter-apply small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.menu button.saved-filter-delete {
  width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  color: var(--red);
}

.menu button.saved-filter-delete:hover {
  background: var(--red-soft);
}

.ai-filter-bar.loading .ai-filter-ask-button {
  cursor: wait;
  opacity: 0.65;
}

.ai-filter-summary {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 6px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.app-shell.ask-compact .ai-filter-summary {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(21, 25, 31, 0.38);
}

.modal-backdrop[hidden] {
  display: none;
}

#aiFilterModalBackdrop {
  display: block;
  padding: 0;
  background: transparent;
}

#aiFilterModalBackdrop .ai-filter-modal {
  position: absolute;
  top: var(--ai-filter-modal-top, 104px);
  left: var(--ai-filter-modal-left, 14px);
  width: var(--ai-filter-modal-width, min(780px, calc(100vw - 28px)));
  max-height: min(560px, calc(100vh - var(--ai-filter-modal-top, 104px) - 14px));
  box-shadow:
    0 24px 58px rgba(31, 35, 40, 0.18),
    0 5px 16px rgba(31, 35, 40, 0.1);
}

.ai-filter-modal {
  width: min(780px, 100%);
  max-height: min(560px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.outreach-campaign-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.outreach-campaign-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  padding: 12px;
}

.outreach-campaign-upload,
.outreach-campaign-results {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.outreach-campaign-results {
  min-height: 0;
  overflow: auto;
}

.outreach-step-list {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.outreach-step-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.outreach-step-card.muted {
  opacity: 0.62;
}

.outreach-step-toggle {
  justify-content: flex-start;
  gap: 8px;
  font-weight: 850;
}

.outreach-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.55fr) minmax(110px, 0.55fr);
  gap: 8px;
}

.outreach-step-meta,
.outreach-cell-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.outreach-step-meta span,
.outreach-cell-badges span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.outreach-step-meta svg,
.outreach-cell-badges svg {
  width: 13px;
  height: 13px;
}

.outreach-template-hint,
.outreach-render-preview {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.outreach-template-hint strong,
.outreach-render-preview strong {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.outreach-render-preview p {
  margin: 0;
  white-space: pre-wrap;
}

.outreach-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
}

.sort-search-wrap {
  min-width: 0;
  height: 32px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 5px 0 7px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.sort-search-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.sort-search {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.sort-options {
  max-height: min(390px, calc(100vh - 142px));
  overflow: auto;
  overscroll-behavior: contain;
}

.sort-section {
  display: grid;
  gap: 2px;
}

.sort-section + .sort-section {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.sort-option-row {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 2px 8px;
  border-radius: 7px;
}

.sort-option-row:hover {
  background: var(--panel-alt);
}

.sort-option-label {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sort-option-label strong,
.sort-option-label small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-option-label strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.sort-option-label small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.sort-option-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sort-option-priority {
  width: 16px;
  height: 16px;
  font-size: 9px;
}

.table-sort-menu .sort-option-actions button {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  color: #6b7280;
}

.table-sort-menu .sort-option-actions button svg {
  width: 13px;
  height: 13px;
}

.table-sort-menu .sort-option-actions button.active {
  color: var(--blue);
}

.hubspot-import-backdrop {
  z-index: 112;
  background: rgba(21, 25, 31, 0.42);
}

.hubspot-import-modal {
  width: min(1040px, calc(100vw - 28px));
  height: min(720px, calc(100vh - 28px));
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hubspot-import-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
}

.hubspot-import-steps {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.hubspot-import-steps button {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.hubspot-import-steps button:hover,
.hubspot-import-steps button.active {
  border-color: #ffc6b7;
  background: #fff3ef;
  color: #2f3d4d;
}

.hubspot-import-steps button span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #e4532c;
  font-size: 11px;
  font-weight: 900;
}

.hubspot-import-steps button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubspot-import-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.hubspot-import-section {
  max-width: 680px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.hubspot-account-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.hubspot-account-card strong,
.hubspot-account-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubspot-account-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.hubspot-account-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hubspot-import-inline-actions,
.hubspot-import-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hubspot-import-check {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-alt);
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.hubspot-import-check input {
  width: 14px;
  height: 14px;
  accent-color: #e4532c;
}

.hubspot-import-preview {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.hubspot-import-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hubspot-import-empty svg {
  width: 24px;
  height: 24px;
}

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

.hubspot-preview-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.hubspot-preview-grid span,
.hubspot-preview-meta span,
.hubspot-preview-warnings span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hubspot-preview-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hubspot-preview-grid strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.hubspot-preview-meta,
.hubspot-preview-warnings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hubspot-preview-meta span,
.hubspot-preview-warnings span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.hubspot-preview-warnings span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.hubspot-import-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
}

.hubspot-import-actions .menu-note {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubspot-import-actions .menu-note.danger {
  color: var(--red);
}

.make-inbound-backdrop {
  z-index: 113;
  background: rgba(21, 25, 31, 0.42);
}

.make-inbound-modal {
  width: min(860px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 28px));
  min-height: 540px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.make-inbound-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px;
  background: #fbfcfd;
}

.make-inbound-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.make-inbound-card-header {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.make-inbound-card-header.compact {
  grid-template-columns: minmax(0, 1fr);
}

.make-inbound-card-header strong,
.make-inbound-card-header span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.make-inbound-card-header strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.make-inbound-card-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.make-inbound-url-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.make-inbound-url-row input {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.make-inbound-actions {
  display: flex;
  justify-content: flex-start;
}

.make-inbound-mapping {
  min-height: 136px;
  display: grid;
  gap: 6px;
}

.make-inbound-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.make-inbound-empty svg {
  width: 24px;
  height: 24px;
}

.make-inbound-mapping-head,
.make-inbound-mapping-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 120px minmax(230px, 1.2fr);
  gap: 8px;
  align-items: center;
}

.make-inbound-mapping-head {
  padding: 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.make-inbound-mapping-row {
  min-height: 60px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.make-inbound-mapping-row.ignored {
  opacity: 0.62;
}

.make-inbound-mapping-row strong,
.make-inbound-mapping-row span,
.make-inbound-mapping-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.make-inbound-mapping-row strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.app-shell.ask-compact .ai-filter-ask-button {
  min-width: 36px;
  padding: 0 8px;
}

.make-inbound-mapping-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.make-inbound-mapping-row code {
  display: block;
  padding: 6px 7px;
  border-radius: 6px;
  background: #f7fafc;
  color: #334155;
  font-size: 11px;
}

.make-inbound-mapping-row select,
.make-inbound-column-target input {
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.make-inbound-column-target {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(94px, 0.8fr) minmax(104px, 1fr);
  gap: 6px;
}

.make-inbound-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.make-inbound-footer .menu-note {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.make-inbound-footer .menu-note.danger {
  color: var(--red);
}

.business-form-backdrop {
  z-index: 114;
  background: rgba(21, 25, 31, 0.54);
}

.business-form-modal {
  --business-form-primary: #316bff;
  --business-form-primary-dark: #1f56d8;
  --business-form-surface: #eef2f6;
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.business-form-modal .ai-filter-modal-header {
  min-height: 70px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.business-form-modal .ai-filter-modal-meta h2 {
  font-size: 22px;
  line-height: 1.1;
}

#businessFormClose {
  width: 34px;
  height: 34px;
  margin-left: 0;
  justify-self: end;
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.03);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

#businessFormClose:hover,
#businessFormClose:focus-visible {
  border-color: rgba(49, 107, 255, 0.32);
  background: var(--panel-alt);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(49, 107, 255, 0.1);
  outline: 0;
}

#businessFormClose svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.business-form-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
  background: #f4f3fb;
}

.business-form-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.business-form-settings-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
}

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

.business-form-embed-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.business-form-embed-panel.tally-like {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  height: clamp(560px, calc(100vh - 180px), 980px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.business-form-embed-sidebar {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.business-form-embed-sidebar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.business-form-embed-sidebar-head h3 {
  margin: 0;
  color: #3f3f46;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.business-form-embed-sidebar-head span {
  color: #737373;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.business-form-embed-select {
  display: grid;
  gap: 7px;
}

.business-form-embed-select > span,
.business-form-embed-number-row > span {
  color: #3f3f46;
  font-size: 13px;
  font-weight: 750;
}

.business-form-embed-select select,
.business-form-embed-number-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 7px;
  background: #fff;
  color: #27272a;
  font: inherit;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.business-form-embed-primary-action,
.business-form-embed-link-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.business-form-embed-primary-action {
  border: 0;
  background: #050505;
  color: #fff;
}

.business-form-embed-primary-action.secondary {
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #737373;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.business-form-embed-link-action {
  border: 1px solid transparent;
  background: transparent;
  color: #737373;
}

.business-form-embed-primary-action:disabled,
.business-form-embed-link-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.business-form-embed-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
}

.business-form-embed-options-head strong {
  color: #3f3f46;
  font-size: 24px;
  font-weight: 850;
}

.business-form-embed-options-head span {
  color: #737373;
  font-size: 13px;
  font-weight: 800;
}

.business-form-embed-number-row {
  display: grid;
  gap: 7px;
}

.business-form-embed-number-row div {
  position: relative;
}

.business-form-embed-number-row input {
  padding-right: 42px;
}

.business-form-embed-number-row em {
  position: absolute;
  right: 12px;
  top: 50%;
  color: #737373;
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  transform: translateY(-50%);
}

.business-form-embed-toggle-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eeeeee;
  color: #3f3f46;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.business-form-embed-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-form-embed-toggle-row i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #bdbdbd;
  transition: background 160ms ease;
}

.business-form-embed-toggle-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.business-form-embed-toggle-row input:checked + i {
  background: #0077d9;
}

.business-form-embed-toggle-row input:checked + i::after {
  transform: translateX(16px);
}

.business-form-embed-main {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  background: #f4f4f5;
  color: #3f3f46;
}

.business-form-embed-main .business-form-embed-preview-head span,
.business-form-embed-main .business-form-embed-preview-head small {
  color: #3f3f46;
}

.business-form-embed-code-card {
  min-width: 0;
  flex: 0 0 auto;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #2b2d3b;
  color: #f8fafc;
}

.business-form-embed-code-card.detailed {
  min-height: 100%;
  align-content: start;
  gap: 24px;
  padding: 28px clamp(28px, 5vw, 84px) 42px;
}

.business-form-embed-code-head {
  min-width: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.business-form-embed-code-head > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.business-form-embed-code-head strong {
  color: #fff;
  font-size: 24px;
  font-weight: 850;
}

.business-form-embed-code-head span {
  color: #c7c9d1;
  font-size: 14px;
  line-height: 1.45;
}

.business-form-embed-code-card.detailed p {
  max-width: 1120px;
  margin: 0;
  color: #c7c9d1;
  font-size: 16px;
  line-height: 1.55;
}

.business-form-embed-code-card.detailed p code {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.business-form-embed-code-card textarea,
.business-form-embed-link-card {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: #252735;
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.business-form-embed-link-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.business-form-embed-link-card strong {
  color: #d6d8df;
  font-size: 13px;
  font-weight: 850;
}

.business-form-embed-link-card code {
  min-width: 0;
  overflow: auto;
  color: #fff;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: nowrap;
}

.business-form-embed-docs {
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.business-form-embed-docs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.business-form-embed-docs summary::-webkit-details-marker {
  display: none;
}

.business-form-embed-docs p {
  margin: 12px 0 0;
  color: #c7c9d1;
  font-size: 14px;
  line-height: 1.5;
}

.business-form-embed-snippet {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.business-form-embed-snippet > span {
  color: #d6d8df;
  font-size: 13px;
  font-weight: 850;
}

.business-form-embed-snippet pre {
  min-width: 0;
  max-width: 100%;
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 18px 20px;
  border-radius: 7px;
  background: #252735;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.business-form-embed-snippet code {
  color: #f8fafc;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

.business-form-embed-docs .business-form-embed-snippet {
  margin-top: 14px;
}

.business-form-embed-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-form-embed-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.business-form-embed-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.business-form-embed-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.business-form-embed-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, 140px) repeat(2, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
}

.business-form-embed-panel textarea {
  width: 100%;
  min-height: 136px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #111827;
  color: #f9fafb;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.business-form-embed-panel.tally-like textarea {
  min-height: 126px;
  border: 0;
  background: #252735;
  color: #f8fafc;
}

.business-form-embed-preview {
  min-width: 0;
  flex: 0 0 auto;
  display: grid;
  gap: 0;
  min-height: 0;
}

.business-form-embed-preview-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 24px 28px 14px;
}

.business-form-embed-preview-head span {
  color: #3f3f46;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
}

.business-form-embed-preview-head small {
  color: #737373;
  font-size: 12px;
  font-weight: 750;
}

.business-form-embed-browser {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.business-form-embed-browser-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.business-form-embed-browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d1d5db;
}

.business-form-embed-browser-page {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1.15fr);
  gap: 16px;
  padding: 18px;
  background: #fbfdff;
}

.business-form-embed-browser-page.transparent {
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.16) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.16) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.16) 75%),
    #f8fafc;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.business-form-embed-page-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.business-form-embed-page-copy b,
.business-form-embed-page-copy span {
  display: block;
  border-radius: 999px;
  background: #e5e7eb;
}

.business-form-embed-page-copy b {
  width: 62%;
  height: 13px;
  background: #cbd5e1;
}

.business-form-embed-page-copy span {
  height: 8px;
}

.business-form-embed-page-copy span:nth-child(3) {
  width: 72%;
}

.business-form-embed-page-copy.tail {
  grid-column: 1 / -1;
}

.business-form-embed-page-copy.tail span {
  width: 58%;
}

.business-form-embed-page-copy.tail span + span {
  width: 42%;
}

.business-form-embed-final-stage {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.business-form-embed-final-iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: transparent;
}

.business-form-embed-final-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.business-form-embed-final-placeholder svg {
  width: 24px;
  height: 24px;
}

.business-form-embed-preview.popup .business-form-embed-browser-page {
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
}

.business-form-embed-preview.popup .business-form-embed-final-stage {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
}

.business-form-embed-preview.popup .business-form-embed-page-copy {
  width: 60%;
}

.business-form-embed-preview.full_page .business-form-embed-browser-page {
  display: block;
  min-height: 360px;
  padding: 0;
}

.business-form-embed-preview.full_page .business-form-embed-page-copy {
  display: none;
}

.business-form-embed-preview.full_page .business-form-embed-final-stage {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.business-form-embed-host-preview {
  position: relative;
  min-height: 640px;
  margin: 0 28px 28px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f7f7f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.business-form-embed-host-preview.transparent {
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.16) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.16) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.16) 75%),
    #f8fafc;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.business-form-embed-host-scroll {
  position: relative;
  min-height: inherit;
  display: grid;
  gap: 30px;
  padding: 28px;
}

.business-form-embed-host-content,
.business-form-embed-live-slot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.business-form-embed-host-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.business-form-embed-host-content.muted {
  opacity: 0.72;
}

.business-form-embed-host-title {
  display: grid;
  gap: 16px;
}

.business-form-embed-host-title strong,
.business-form-embed-host-title span,
.business-form-embed-host-lines span,
.business-form-embed-host-grid i {
  display: block;
  border-radius: 5px;
  background: #dedede;
}

.business-form-embed-host-title strong {
  width: min(32%, 280px);
  height: 40px;
}

.business-form-embed-host-title span {
  width: min(72%, 820px);
  height: 38px;
}

.business-form-embed-host-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.55fr) minmax(160px, 0.75fr);
  gap: 24px;
}

.business-form-embed-host-grid i {
  min-height: 180px;
}

.business-form-embed-host-grid i:nth-child(2) {
  min-height: 220px;
}

.business-form-embed-host-lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
}

.business-form-embed-host-lines span {
  height: 6px;
  border-radius: 999px;
  background: #e2e2e2;
}

.business-form-embed-host-content.bottom {
  padding-bottom: 28px;
}

.business-form-embed-host-grid.bottom-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.business-form-embed-host-grid.bottom-grid i {
  min-height: 190px;
}

.business-form-embed-live-slot {
  min-width: 0;
}

.business-form-embed-host-preview.standard .business-form-embed-final-stage {
  width: 100%;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.business-form-embed-host-preview.standard .business-form-embed-final-iframe {
  min-height: 420px;
}

.business-form-embed-host-preview.popup {
  min-height: 720px;
  overflow: hidden;
}

.business-form-embed-host-preview.popup .business-form-embed-host-scroll {
  min-height: 720px;
}

.business-form-embed-host-preview.popup .business-form-embed-live-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: none;
  margin: 0;
  pointer-events: none;
}

.business-form-embed-host-preview.popup .business-form-embed-final-stage {
  position: absolute;
  width: min(var(--business-form-popup-width, 420px), calc(100% - 48px));
  max-height: calc(100% - 48px);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
  pointer-events: auto;
}

.business-form-embed-host-preview.popup.position-bottom_right .business-form-embed-final-stage {
  left: auto;
  right: 24px;
  bottom: 24px;
}

.business-form-embed-host-preview.popup.position-bottom_left .business-form-embed-final-stage {
  left: 24px;
  right: auto;
  bottom: 24px;
}

.business-form-embed-host-preview.popup.position-center .business-form-embed-final-stage {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.business-form-embed-host-preview.full_page {
  min-height: 720px;
}

.business-form-embed-host-preview.full_page .business-form-embed-host-scroll,
.business-form-embed-host-preview.full_page .business-form-embed-live-slot {
  min-height: inherit;
  padding: 0;
  max-width: none;
}

.business-form-embed-host-preview.full_page .business-form-embed-final-stage {
  width: 100%;
  min-height: inherit;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.business-form-embed-host-preview.full_page .business-form-embed-final-iframe {
  min-height: inherit;
}

.business-form-toggle-field.compact {
  min-height: 36px;
  align-self: end;
}

.business-form-mapping {
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.business-form-modal.settings-tab .business-form-mapping,
.business-form-modal.embed-tab .business-form-mapping,
.business-form-modal.preview-tab .business-form-mapping {
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
}

.business-form-modal.embed-tab .business-form-mapping {
  align-content: stretch;
  overflow: hidden;
}

.business-form-modal.preview-tab .business-form-mapping,
.business-form-modal.preview-tab .business-form-card {
  background: var(--business-form-surface, #eef2f6);
  transition: background 160ms ease;
}

.business-form-modal.settings-tab .business-form-card,
.business-form-modal.embed-tab .business-form-card,
.business-form-modal.preview-tab .business-form-card {
  overflow: hidden;
}

.business-form-modal.embed-tab .business-form-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.business-form-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.business-form-tab {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.business-form-tab.active {
  border-bottom-color: #4f46e5;
  color: #312e81;
}

.business-form-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.business-form-header-icon-group {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.business-form-header-icon-group > * {
  flex: 0 0 auto;
}

.business-form-header-icon-group > * + *:not([hidden]) {
  border-left: 1px solid var(--line);
}

.business-form-theme-wrap {
  display: inline-flex;
}

.business-form-header-icon-group .icon-button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.business-form-header-theme {
  position: relative;
}

.business-form-header-theme::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: var(--business-form-theme-button-color, #316bff);
  box-shadow: 0 0 0 1px rgba(31, 35, 40, 0.16);
}

.business-form-theme-menu {
  min-width: 330px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 0;
}

.business-form-theme-panel {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.business-form-theme-section {
  display: grid;
  gap: 12px;
}

.business-form-theme-section strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.business-form-theme-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.business-form-theme-swatches.compact {
  gap: 12px;
}

.menu .business-form-theme-swatch,
.business-form-theme-custom {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--swatch-color, #316bff);
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.menu .business-form-theme-swatch.background {
  color: var(--ink);
}

.menu .business-form-theme-swatch.empty {
  border: 1px solid var(--line-strong);
}

.menu .business-form-theme-swatch:hover,
.business-form-theme-custom:hover {
  background: var(--swatch-color, #316bff);
  transform: translateY(-1px);
}

.menu .business-form-theme-swatch.selected,
.business-form-theme-custom.selected {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(31, 35, 40, 0.2);
}

.menu .business-form-theme-swatch > i,
.menu .business-form-theme-swatch > svg,
.business-form-theme-custom > i,
.business-form-theme-custom > svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.business-form-theme-custom {
  position: relative;
  border: 1px solid var(--line);
  background: #f3f4f6;
  color: var(--muted);
  overflow: hidden;
}

.business-form-theme-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.business-form-header-actions .button.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #312e81;
}

.business-form-header-actions .button,
.business-form-card-toolbar,
.business-form-card-toolbar .icon-button,
.business-form-add-option,
.business-form-setting-row input,
.business-form-setting-row select,
.business-form-type-picker {
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.business-form-modal.questions-tab .business-form-card > .make-inbound-card-header,
.business-form-modal.settings-tab .business-form-card > .make-inbound-card-header,
.business-form-modal.embed-tab .business-form-card > .make-inbound-card-header,
.business-form-modal.preview-tab .business-form-card > .make-inbound-card-header {
  display: none;
}

.business-form-modal.start-step .business-form-tabs,
.business-form-modal.template-step .business-form-tabs,
.business-form-modal.start-step .business-form-header-actions,
.business-form-modal.template-step .business-form-header-actions {
  display: none;
}

.business-form-modal.start-step .ai-filter-modal-header,
.business-form-modal.template-step .ai-filter-modal-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.business-form-modal.start-step .ai-filter-modal-meta,
.business-form-modal.template-step .ai-filter-modal-meta {
  grid-column: 1;
}

.business-form-modal.start-step #businessFormClose,
.business-form-modal.template-step #businessFormClose {
  grid-column: 2;
}

.business-form-modal.start-step .business-form-body,
.business-form-modal.template-step .business-form-body {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: var(--surface);
}

.business-form-modal.start-step .business-form-footer,
.business-form-modal.template-step .business-form-footer {
  display: none;
}

.business-form-modal.start-step .business-form-card,
.business-form-modal.template-step .business-form-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.business-form-modal.start-step .business-form-mapping,
.business-form-modal.template-step .business-form-mapping {
  min-height: 0;
  height: 100%;
}

.business-form-start-screen,
.business-form-template-screen {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 34px;
}

.business-form-start-screen {
  display: grid;
  place-items: center;
}

.business-form-start-panel {
  width: min(600px, 100%);
  display: grid;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}

.business-form-start-head {
  display: grid;
  gap: 8px;
}

.business-form-start-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-form-start-panel h3,
.business-form-template-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

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

.business-form-start-choice {
  min-width: 0;
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, color 160ms ease;
}

.business-form-start-choice:hover,
.business-form-template-card:hover {
  border-color: rgba(49, 107, 255, 0.52);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.06);
  transform: translateY(-1px);
}

.business-form-start-choice:active,
.business-form-template-card:active {
  transform: translateY(0);
}

.business-form-start-choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-alt);
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.business-form-start-choice-icon i,
.business-form-start-choice-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.business-form-start-choice:hover .business-form-start-choice-icon {
  border-color: rgba(49, 107, 255, 0.18);
  background: color-mix(in srgb, var(--blue) 6%, #fff);
  color: var(--blue);
}

.business-form-start-choice:hover strong {
  color: var(--blue);
}

.business-form-start-choice span,
.business-form-template-card span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.business-form-start-choice strong,
.business-form-template-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease;
}

.business-form-start-choice small,
.business-form-template-card small,
.business-form-template-preview-title p,
.business-form-template-preview-field p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.business-form-template-screen {
  display: grid;
  gap: 16px;
}

.business-form-template-head {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.business-form-template-layout {
  width: min(1120px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
}

.business-form-template-list,
.business-form-template-preview-shell {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.business-form-template-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.business-form-template-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 107, 255, 0.12);
}

.business-form-template-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.business-form-template-preview {
  min-width: 0;
}

.business-form-template-preview-shell {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.business-form-template-preview-title {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-top: 6px solid var(--blue);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.08);
}

.business-form-template-preview-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.business-form-template-preview-title strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
}

.business-form-template-preview-fields {
  display: grid;
  gap: 9px;
}

.business-form-template-preview-field {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.business-form-template-preview-field strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.business-form-template-preview-field small {
  color: var(--muted);
  font-size: 13px;
}

.business-form-template-preview-options {
  display: grid;
  gap: 7px;
}

.business-form-template-preview-options span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.business-form-template-preview-options i,
.business-form-template-preview-options svg {
  width: 15px;
  height: 15px;
  color: #8b949e;
}

.business-form-google-builder {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 12px 72px 34px 12px;
  background: var(--business-form-surface, #eef2f6);
  transition: background 160ms ease;
}

.business-form-canvas {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.business-form-title-card,
.business-form-question-card {
  border: 1px solid #d6d9e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.business-form-title-card {
  display: grid;
  gap: 8px;
  padding: 20px 24px 18px;
  border-top: 6px solid var(--business-form-primary, #316bff);
}

.business-form-title-edit,
.business-form-description-edit,
.business-form-question-title-edit,
.business-form-section-title-edit,
.business-form-section-description-edit,
.business-form-help-edit,
.business-form-answer-placeholder,
.business-form-option-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.business-form-title-edit {
  min-height: 44px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.12;
}

.business-form-title-edit::placeholder {
  color: #a3a3a3;
}

.business-form-description-edit {
  min-height: 28px;
  color: var(--muted);
  font-size: 14px;
  resize: vertical;
}

.business-form-question-stack {
  display: grid;
  gap: 10px;
}

.business-form-question-card {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 8px 18px 10px;
  overflow: visible;
}

.business-form-question-card::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: transparent;
  transition: background 160ms ease;
}

.business-form-question-card.selected {
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.13);
}

.business-form-question-card.selected::before {
  background: var(--business-form-primary, #316bff);
}

.business-form-question-card.dragging {
  opacity: 0.56;
  transform: scale(0.995);
}

.business-form-question-card.drop-before::before,
.business-form-question-card.drop-after::after {
  content: "";
  position: absolute;
  left: -6px;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--business-form-primary, #316bff);
}

.business-form-question-card.drop-before::before {
  top: -8px;
}

.business-form-question-card.drop-after::after {
  bottom: -8px;
}

.business-form-drag-handle {
  height: 12px;
  display: grid;
  place-items: center;
  color: #b7b7b7;
  cursor: grab;
  transition: color 140ms ease, transform 140ms ease;
}

.business-form-question-card:hover .business-form-drag-handle {
  color: #6b7280;
}

.business-form-drag-handle:active {
  cursor: grabbing;
}

.business-form-drag-handle i {
  width: 16px;
  height: 16px;
}

.business-form-question-main {
  display: grid;
  gap: 9px;
}

.business-form-question-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 14px;
  align-items: center;
}

.business-form-question-title-edit,
.business-form-section-title-edit {
  min-height: 40px;
  padding: 0 10px;
  border-bottom: 1px solid #c7c9d1;
  background: #f8f9fa;
  font-size: 15px;
  font-weight: 650;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.business-form-question-card:not(.selected) .business-form-question-title-edit,
.business-form-question-card:not(.selected) .business-form-section-title-edit {
  background: transparent;
}

.business-form-type-picker {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.business-form-type-picker:hover,
.business-form-setting-row input:hover,
.business-form-setting-row select:hover {
  border-color: #c5cad3;
}

.business-form-type-picker:focus,
.business-form-setting-row input:focus,
.business-form-setting-row select:focus {
  border-color: var(--business-form-primary, #316bff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--business-form-primary, #316bff) 16%, transparent);
  outline: 0;
}

.business-form-help-edit,
.business-form-section-description-edit {
  min-height: 30px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  resize: vertical;
}

.business-form-help-edit:focus,
.business-form-section-description-edit:focus {
  border-bottom-color: #c7c9d1;
  outline: 0;
}

.business-form-answer-placeholder {
  min-height: 34px;
  border-bottom: 1px solid #c7c9d1;
  color: #7b818a;
  font-size: 13px;
}

.business-form-answer-placeholder.multiline {
  min-height: 58px;
  padding-top: 6px;
  resize: vertical;
}

.business-form-option-list {
  display: grid;
  gap: 7px;
}

.business-form-option-row {
  display: grid;
  grid-template-columns: 16px 20px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  position: relative;
}

.business-form-option-drag {
  width: 16px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #b8bcc4;
  cursor: grab;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease;
}

.business-form-option-row:hover .business-form-option-drag,
.business-form-option-drag:focus-visible {
  opacity: 1;
}

.business-form-option-drag:active {
  cursor: grabbing;
}

.business-form-option-drag i,
.business-form-option-icon {
  width: 16px;
  height: 16px;
  color: #a1a6ad;
}

.business-form-option-row input {
  min-height: 30px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  transition: border-color 140ms ease, background 140ms ease;
}

.business-form-option-row input:focus {
  border-bottom-color: #c7c9d1;
  outline: 0;
}

.business-form-option-row.option-dragging {
  opacity: 0.55;
}

.business-form-option-row.option-drop-before::before,
.business-form-option-row.option-drop-after::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 38px;
  height: 2px;
  border-radius: 999px;
  background: var(--business-form-primary, #316bff);
}

.business-form-option-row.option-drop-before::before {
  top: -4px;
}

.business-form-option-row.option-drop-after::after {
  bottom: -4px;
}

.business-form-add-option {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #316bff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.business-form-add-option i {
  width: 16px;
  height: 16px;
}

.business-form-option-summary {
  display: grid;
  gap: 7px;
}

.business-form-option-summary span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.business-form-option-summary i {
  width: 16px;
  height: 16px;
  color: #8b949e;
}

.business-form-answer-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px dotted #b8bcc4;
  color: #8b949e;
  font-size: 14px;
}

.business-form-card-actions {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.business-form-required-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.business-form-required-switch input {
  width: 18px;
  height: 18px;
}

.business-form-card-toolbar {
  position: absolute;
  top: 10px;
  right: -56px;
  width: 46px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 35, 40, 0.12);
  animation: business-form-toolbar-in 160ms ease both;
}

.business-form-card-toolbar .icon-button {
  width: 32px;
  height: 32px;
}

.business-form-settings-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 8px 0 28px;
}

.business-form-embed-tab-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.business-form-settings-card-clean {
  display: grid;
  gap: 0;
  padding: 24px 28px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.06);
  animation: business-form-panel-in 180ms ease both;
}

.business-form-settings-card-clean h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
}

.business-form-settings-divider {
  height: 1px;
  margin: 18px 0 0;
  background: var(--line);
}

.business-form-settings-details {
  border-bottom: 1px solid var(--line);
}

.business-form-settings-details:last-child {
  border-bottom: 0;
}

.business-form-settings-details summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  transition: background 150ms ease, color 150ms ease;
}

.business-form-settings-details summary:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.045), transparent 42%);
}

.business-form-settings-details summary::-webkit-details-marker {
  display: none;
}

.business-form-settings-details summary span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.business-form-settings-details summary strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.business-form-settings-details summary small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.business-form-settings-details summary i,
.business-form-settings-details summary svg {
  width: 20px;
  height: 20px;
  justify-self: center;
  color: var(--ink);
  transition: transform 180ms ease, color 150ms ease;
}

.business-form-settings-details[open] summary i,
.business-form-settings-details[open] summary svg {
  transform: rotate(180deg);
}

.business-form-settings-content {
  display: grid;
  gap: 14px;
  padding: 0 0 20px 38px;
  transition: height 190ms ease, opacity 160ms ease;
}

.business-form-setting-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: center;
}

.business-form-setting-row > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.business-form-setting-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.business-form-setting-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.business-form-setting-row input,
.business-form-setting-row select {
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.business-form-setting-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.business-form-data-map {
  display: grid;
  gap: 10px;
  padding: 0 0 20px 38px;
  transition: height 190ms ease, opacity 160ms ease;
}

@keyframes business-form-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes business-form-toolbar-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

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

.business-form-settings-field-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.business-form-settings-field-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.business-form-settings-field-row strong,
.business-form-settings-field-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-form-settings-field-row strong {
  font-size: 12px;
}

.business-form-settings-field-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.business-form-settings-field-row select,
.business-form-settings-field-row input {
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.business-form-builder {
  min-height: 0;
  display: grid;
  grid-template-columns: 238px minmax(360px, 1fr) minmax(310px, 420px);
  gap: 12px;
}

.business-form-question-rail,
.business-form-editor-panel,
.business-form-preview-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.business-form-question-rail,
.business-form-editor-panel {
  overflow: auto;
}

.business-form-preview-panel {
  overflow: auto;
  background: var(--business-form-surface, #eef2f6);
}

.business-form-rail-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-form-rail-actions,
.business-form-block-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.business-form-question-list {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.business-form-question-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.business-form-question-item:hover {
  background: #f6f8fa;
}

.business-form-question-item.selected {
  border-color: #9cc9c3;
  background: #eef7f5;
}

.business-form-question-item i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.business-form-question-item strong,
.business-form-question-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-form-question-item strong {
  font-size: 12px;
  line-height: 1.25;
}

.business-form-question-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.business-form-editor-panel {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.business-form-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
}

.business-form-editor-toolbar > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-form-editor-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.6fr);
  gap: 10px;
  align-items: end;
}

.business-form-toggle-field {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.business-form-toggle-field input {
  width: 16px;
  height: 16px;
}

.business-form-data-destination {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.business-form-data-destination > strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.business-form-empty-editor {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
}

.business-form-preview-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.business-form-preview-head {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-top: 7px solid var(--business-form-primary, #316bff);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.07);
}

.business-form-preview-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-form-preview-head strong {
  font-size: 24px;
  line-height: 1.12;
}

.business-form-preview-head p,
.business-form-preview-question p,
.business-form-preview-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.business-form-preview-fields {
  display: grid;
  gap: 10px;
}

.business-form-preview-question,
.business-form-preview-section {
  display: grid;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.business-form-preview-question label,
.business-form-preview-section strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.business-form-preview-question label span {
  color: var(--business-form-primary, #316bff);
}

.business-form-preview-input {
  width: min(420px, 100%);
  min-height: 36px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

.business-form-preview-input.multiline {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.business-form-preview-input:focus {
  border-bottom-color: var(--business-form-primary, #316bff);
  color: var(--ink);
  outline: 0;
}

.business-form-preview-choice-list {
  display: grid;
  gap: 13px;
}

.business-form-preview-question .business-form-preview-choice-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.business-form-preview-choice-list input {
  width: 22px;
  height: 22px;
  accent-color: var(--business-form-primary, #316bff);
  flex: 0 0 auto;
}

.business-form-preview-choice-list span {
  font-weight: 500;
}

.business-form-phone-control {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  max-width: 420px;
}

.business-form-phone-control .business-form-preview-input:last-child {
  width: 100%;
  min-width: 0;
}

.business-form-phone-country-picker {
  position: relative;
  min-width: 0;
}

.business-form-phone-country-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.business-form-phone-country-button span {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-form-phone-country-button svg {
  width: 16px;
  height: 16px;
}

.business-form-phone-country-flag {
  width: 24px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 2px;
  object-fit: cover;
  background: #fff;
}

.business-form-phone-country-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
}

.business-form-phone-country-picker.drop-up .business-form-phone-country-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.business-form-phone-country-search {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.business-form-phone-country-list {
  display: grid;
  gap: 2px;
  max-height: var(--business-form-country-list-max-height, 238px);
  margin-top: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.business-form-phone-country-option {
  display: grid;
  grid-template-columns: 24px 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.business-form-phone-country-option:hover,
.business-form-phone-country-option[aria-selected="true"] {
  background: #eef4ff;
}

.business-form-phone-country-option span {
  font-weight: 800;
  white-space: nowrap;
}

.business-form-phone-country-option small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-form-rating-control {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.business-form-rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aeb4bb;
  cursor: pointer;
}

.business-form-rating-star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-form-rating-star svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}

.business-form-rating-star:hover svg,
.business-form-rating-star:hover ~ .business-form-rating-star svg,
.business-form-rating-star:has(input:checked) svg,
.business-form-rating-star:has(input:checked) ~ .business-form-rating-star svg {
  color: var(--business-form-primary, #316bff);
  fill: color-mix(in srgb, var(--business-form-primary, #316bff) 22%, transparent);
}

.business-form-rating-star span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.business-form-linear-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.business-form-linear-scale label {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.business-form-linear-scale input {
  width: 22px;
  height: 22px;
  accent-color: var(--business-form-primary, #316bff);
}

.business-form-field-settings {
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 14px 0 0;
}

.business-form-field-settings.grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 150px));
  align-items: end;
}

.business-form-field-settings.phone {
  max-width: 280px;
}

.business-form-field-settings label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.business-form-field-settings input,
.business-form-field-settings select {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-transform: none;
}

.business-form-preview-submit {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--business-form-primary, #316bff);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.business-form-preview-submit:hover {
  background: var(--business-form-primary-dark, #0d675f);
}

.business-form-preview-submit:active {
  transform: translateY(1px);
}

.business-form-preview-success {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.business-form-preview-success > i,
.business-form-preview-success > svg {
  width: 24px;
  height: 24px;
  color: var(--business-form-primary, #316bff);
}

.business-form-preview-success strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.business-form-preview-success p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.business-form-url-row input {
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.business-form-url-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.business-form-url-row input {
  height: 38px;
  background: #f7fafc;
  font-size: 12px;
}

.business-form-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.business-form-footer .menu-note {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-form-footer .menu-note.danger {
  color: var(--red);
}

.connection-map-backdrop {
  z-index: 115;
  background: rgba(21, 25, 31, 0.44);
}

.connection-map-modal {
  width: min(1040px, calc(100vw - 28px));
  height: min(720px, calc(100vh - 28px));
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.connection-map-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.connection-map-title-block {
  min-width: 0;
}

.connection-map-title-block h2 {
  max-width: 520px;
  margin: 0;
  overflow: hidden;
  color: #17191c;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-map-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.connection-map-control {
  display: none;
}

.connection-map-control span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.connection-map-control select {
  width: 168px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.connection-map-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  background: #fff;
}

.connection-map-canvas {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: auto;
  background: #fbfcfd;
}

.connection-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.connection-map-edge {
  cursor: pointer;
  stroke: rgba(84, 98, 113, 0.28);
  stroke-linecap: round;
  transition: stroke 120ms ease, opacity 120ms ease;
}

.connection-map-edge:hover,
.connection-map-edge:focus-visible,
.connection-map-edge.related {
  stroke: rgba(37, 99, 235, 0.72);
  outline: none;
}

.connection-map-edge.selected {
  stroke: #111827;
}

.connection-map-node {
  cursor: pointer;
  outline: none;
}

.connection-map-node circle {
  fill: #fff;
  stroke: #cbd5e1;
  stroke-width: 1.4;
  filter: drop-shadow(0 8px 14px rgba(31, 35, 40, 0.12));
}

.connection-map-node.segment circle {
  fill: #dff5f1;
  stroke: #0f766e;
}

.connection-map-node.score circle {
  fill: #e3edff;
  stroke: #316bff;
}

.connection-map-node.signal circle {
  fill: #ecfdf3;
  stroke: #16a34a;
}

.connection-map-node.gap circle {
  fill: #fff3cf;
  stroke: #a46313;
}

.connection-map-node.action circle {
  fill: #efe8ff;
  stroke: #6d28d9;
}

.connection-map-node.status circle {
  fill: #eef2f7;
  stroke: #64748b;
}

.connection-map-node.tag circle {
  fill: #fef2f2;
  stroke: #b42318;
}

.connection-map-node.value circle {
  fill: #fff;
  stroke: #94a3b8;
}

.connection-map-node:hover circle,
.connection-map-node:focus-visible circle,
.connection-map-node.related circle {
  stroke-width: 2.2;
}

.connection-map-node.selected circle {
  stroke: #111827;
  stroke-width: 2.7;
}

.connection-map-node-label {
  pointer-events: none;
  fill: #1f2328;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0;
}

.connection-map-node-count {
  pointer-events: none;
  fill: #687078;
  font-size: 10px;
  font-weight: 800;
}

.connection-map-details {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.connection-map-detail-head {
  display: grid;
  gap: 4px;
}

.connection-map-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.connection-map-detail-head strong {
  min-width: 0;
  color: #17191c;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.connection-map-kicker {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.connection-map-stat-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-alt);
}

.connection-map-stat-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.connection-map-stat-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.connection-map-detail-actions {
  display: grid;
  gap: 8px;
}

.connection-map-detail-actions .button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.connection-map-detail-actions .button.compact {
  min-height: 30px;
}

.connection-map-pill-list {
  display: grid;
  gap: 7px;
}

.connection-map-pill-list > span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.connection-map-pill-list strong {
  min-width: 0;
  overflow: hidden;
  color: #2f353b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-map-pill-list small {
  flex: 0 0 auto;
  max-width: 145px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-map {
  min-height: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.lineage-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lineage-section.source-chain {
  background: #fcfdfd;
}

.lineage-section-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lineage-section-head span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lineage-section-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-chain,
.lineage-node-grid,
.lineage-output-strip {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineage-chain {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.lineage-node-wrap {
  min-width: 0;
  position: relative;
}

.lineage-chain .lineage-node-wrap:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

.lineage-chain .lineage-node-wrap:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  bottom: -17px;
  width: 8px;
  height: 8px;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  transform: rotate(45deg);
}

.lineage-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 8px;
}

.lineage-output-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.lineage-node {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.lineage-node:hover,
.lineage-node:focus-visible {
  border-color: #94a3b8;
  outline: none;
}

.lineage-node.selected {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.lineage-node svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #64748b;
}

.lineage-node.worker svg {
  color: #316bff;
}

.lineage-node.target-column {
  background: #f8fafc;
}

.lineage-node.target-column svg {
  color: #0f766e;
}

.lineage-node.dependent-column svg {
  color: #7c3aed;
}

.lineage-node span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lineage-node strong,
.lineage-node small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-node strong {
  font-size: 12px;
  font-weight: 850;
}

.lineage-node small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.lineage-node-wrap.chain {
  width: min(360px, 100%);
}

.lineage-node-wrap.chip {
  flex: 0 1 190px;
}

.lineage-node-wrap.chip .lineage-node {
  min-height: 34px;
  padding: 6px 8px;
}

.lineage-empty {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.lineage-impact-summary {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--line);
}

.lineage-impact-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lineage-impact-summary span:not(.lineage-impact-dot),
.lineage-detail-section > span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lineage-impact-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.lineage-impact-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: #64748b;
}

.lineage-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.lineage-detail-list div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.lineage-detail-list dt,
.lineage-detail-list dd {
  min-width: 0;
  margin: 0;
}

.lineage-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lineage-detail-list dd {
  max-width: 150px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-detail-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.lineage-detail-section ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineage-detail-section li {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.lineage-detail-section strong,
.lineage-detail-section small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-detail-section strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.lineage-detail-section small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.impact-low {
  color: #16a34a;
  background: #16a34a;
}

.impact-medium {
  color: #a46313;
  background: #a46313;
}

.impact-high {
  color: #b42318;
  background: #b42318;
}

.connection-map-row-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.connection-map-row-list span {
  min-width: 0;
  overflow: hidden;
  color: #47515c;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-map-empty {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
}

.connection-map-empty svg {
  width: 28px;
  height: 28px;
}

.delete-confirm-backdrop,
.table-rename-backdrop {
  z-index: 120;
  background: rgba(21, 25, 31, 0.42);
  backdrop-filter: blur(2px);
}

.delete-confirm-modal,
.table-rename-modal {
  width: min(430px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(17, 24, 39, 0.18);
}

.table-rename-form {
  min-height: 0;
  display: contents;
}

.delete-confirm-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.delete-confirm-copy h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
}

.delete-confirm-copy p {
  margin: 0;
  color: #5d6673;
  font-size: 13px;
  line-height: 1.45;
}

.table-rename-field {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.table-rename-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-rename-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  outline: 0;
}

.table-rename-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 107, 255, 0.16);
}

.folder-create-backdrop {
  z-index: 122;
  background: rgba(17, 24, 39, 0.36);
  backdrop-filter: blur(2px);
}

.folder-create-modal {
  width: min(460px, calc(100vw - 32px));
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 22px;
  border-color: #d8dee7;
  border-radius: 10px;
  box-shadow:
    0 22px 50px rgba(17, 24, 39, 0.22),
    0 2px 8px rgba(17, 24, 39, 0.08);
}

.folder-create-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.folder-create-copy h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.folder-create-error {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e11d48;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
}

.folder-create-error[hidden] {
  display: none;
}

.folder-create-error svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

.folder-create-field {
  min-width: 0;
  display: block;
}

.folder-create-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  outline: 0;
}

.folder-create-field input::placeholder {
  color: #9aa3af;
}

.folder-create-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.folder-create-field input[aria-invalid="true"] {
  border-color: #e11d48;
}

.folder-create-modal .table-rename-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.folder-create-modal .table-rename-actions .button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.delete-confirm-details {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.delete-impact-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #5d6673;
  font-size: 12px;
  line-height: 1.35;
}

.delete-impact-summary span {
  min-height: 46px;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.delete-impact-summary strong {
  color: #111827;
  font-size: 16px;
  font-weight: 850;
}

.json-import-field {
  display: grid;
  gap: 6px;
}

.json-import-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.json-import-field textarea {
  width: 100%;
  min-height: 220px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  line-height: 1.45;
  resize: vertical;
}

.delete-impact-list {
  display: grid;
  gap: 0;
}

.delete-impact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.delete-impact-item:first-child {
  border-top: 0;
}

.delete-impact-item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.delete-impact-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-impact-item strong {
  color: #111827;
  font-size: 12.5px;
  line-height: 1.25;
}

.delete-impact-item span {
  min-width: 0;
  white-space: normal;
}

.delete-impact-item span,
.delete-impact-item small,
.delete-impact-more,
.delete-impact-empty,
.delete-impact-confirmation {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.delete-impact-item small {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #596273;
  font-weight: 800;
  white-space: nowrap;
}

.delete-impact-item.warning small {
  background: #fff1f2;
  color: #be123c;
}

.delete-impact-more,
.delete-impact-empty {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.delete-impact-confirmation {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.delete-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.delete-confirm-actions .button {
  min-width: 78px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.delete-confirm-actions .button.danger {
  border-color: #e11d48;
  background: #e11d48;
}

.delete-confirm-actions .button.danger:hover {
  border-color: #be123c;
  background: #be123c;
}

.ai-filter-modal-header,
.ai-filter-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.ai-filter-modal-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.ai-filter-modal-header .icon-button {
  margin-left: auto;
}

.ai-filter-name-input {
  flex: 0 1 300px;
  width: min(300px, 40vw);
  min-width: 170px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 6px;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-filter-name-input:hover,
.ai-filter-name-input:focus {
  outline: none;
  border-color: var(--line);
  background: #fff;
}

.ai-filter-modal-body {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 10px;
}

.ai-filter-modal-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ai-filter-modal-field.compact {
  max-width: 360px;
}

.ai-filter-modal-field > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-filter-modal-field input,
.ai-filter-modal-field textarea,
.ai-filter-modal-field select,
.ai-filter-rule select,
.ai-filter-rule input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.ai-filter-modal-field input {
  min-height: 30px;
  padding: 0 8px;
}

.ai-filter-modal-field select {
  min-height: 30px;
  padding: 0 8px;
}

.ai-filter-modal-field textarea {
  padding: 9px;
  line-height: 1.45;
  resize: vertical;
}

.formula-column-modal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(760px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 8px;
}

.formula-column-backdrop {
  z-index: 1400;
  display: block;
  padding: 0;
  background: transparent;
}

.formula-column-body {
  gap: 0;
  overflow: auto;
  padding: 0;
}

.formula-notion-header {
  padding: 10px 16px 9px;
}

.formula-notion-header .ai-filter-modal-meta {
  gap: 8px;
}

.formula-notion-header h2 {
  font-size: 17px;
  line-height: 1.15;
}

.formula-reset-button {
  margin-left: auto;
  color: var(--ink);
  font-size: 15px;
}

.formula-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--panel-alt);
}

.formula-mode-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
}

.formula-mode-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.formula-create-panel {
  position: relative;
  display: grid;
  gap: 8px;
}

.formula-ai-bar {
  padding: 10px 16px 7px;
}

.formula-ai-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.formula-ai-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

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

.formula-ai-input-wrap input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
  background: transparent;
}

.formula-ai-input-wrap input::placeholder {
  color: #a09d98;
}

.formula-ai-input-wrap .icon-button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #d0ceca;
  color: #fff;
}

.formula-column-picker {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  max-height: 220px;
  overflow: auto;
  pointer-events: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.formula-column-picker[hidden] {
  display: none;
}

.formula-column-picker button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.formula-column-picker button:hover {
  background: var(--panel-alt);
}

.formula-column-picker span,
.formula-column-picker small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-column-picker span {
  font-size: 12px;
  font-weight: 850;
}

.formula-column-picker small {
  color: var(--muted);
  font-size: 11px;
}

.formula-prompt-field textarea {
  min-height: 118px;
  border-radius: 8px;
  padding: 12px;
  font-size: 13.5px;
  line-height: 1.35;
  resize: vertical;
}

.formula-prompt-field textarea::placeholder {
  color: #7a7f87;
}

.formula-manual-editor {
  padding: 6px 16px 10px;
}

.formula-manual-editor textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
}

.formula-manual-editor textarea::placeholder {
  color: #d0ceca;
  font-family: Inter, system-ui, sans-serif;
}

.formula-preview-panel {
  display: grid;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
}

.formula-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.formula-preview-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.formula-preview-title strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.formula-preview-title span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.formula-preview-row-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 46%;
  padding: 4px 6px 4px 10px;
  border: 1px solid #ddd8d1;
  border-radius: 999px;
  background: #fff;
  color: #77736d;
  font-size: 11px;
  font-weight: 800;
}

.formula-preview-row-control select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.formula-output {
  min-width: 0;
  max-height: 118px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid #e8e4dd;
  border-radius: 8px;
  background: #fff;
  color: #504b45;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.formula-reference-browser {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 280px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.formula-reference-list {
  display: block;
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  overflow: auto;
}

.formula-reference-title {
  padding: 8px 8px 5px;
  color: #77736d;
  font-size: 13px;
  font-weight: 850;
}

.formula-reference-title:first-child {
  padding-top: 0;
}

.formula-function-category {
  padding: 10px 8px 4px;
  color: #77736d;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.formula-family-strip {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 6px 6px;
}

.formula-family-strip span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f2ef;
  color: #77736d;
  font-size: 11px;
  font-weight: 800;
}

.formula-reference-items {
  display: grid;
  align-content: start;
  gap: 3px;
  overflow: visible;
  min-height: 0;
  padding-right: 4px;
}

.formula-reference-items button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 5px 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
}

.formula-reference-items button.active,
.formula-reference-items button:hover {
  background: #efeeeb;
}

.formula-reference-items button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-reference-items button svg {
  width: 18px;
  height: 18px;
  color: #8f8b85;
}

.formula-reference-items button svg:last-child {
  justify-self: end;
}

.formula-reference-detail {
  min-width: 0;
  overflow: auto;
  padding: 16px 18px;
}

.formula-reference-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.formula-reference-selected h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.formula-reference-selected svg {
  width: 22px;
  height: 22px;
  color: #7d7972;
}

.formula-reference-detail p {
  margin: 0 0 18px;
  color: #8f8b85;
  font-size: 13px;
}

.formula-example-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.formula-example-line:hover {
  background: var(--surface);
}

.formula-example-line code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #393733;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.formula-example-line code span {
  color: #e34e78;
}

.formula-example-line svg {
  width: 18px;
  height: 18px;
  color: #8f8b85;
}

.formula-function-doc {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: #77736d;
  font-size: 13px;
}

.formula-function-doc strong {
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 780px) {
  .formula-column-modal {
    right: 9px;
    bottom: 9px;
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .formula-notion-header,
  .formula-ai-bar,
  .formula-manual-editor,
  .formula-preview-panel,
  .formula-reference-detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .formula-notion-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .formula-reset-button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .formula-ai-input-wrap input,
  .formula-manual-editor textarea,
  .formula-output {
    font-size: 16px;
  }

  .formula-reference-browser {
    grid-template-columns: 1fr;
  }

  .formula-preview-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .formula-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .formula-preview-row-control {
    max-width: none;
    width: 100%;
  }

  .formula-reference-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
  }
}

.formula-helper-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
}

.formula-helper-row .icon-button {
  width: 28px;
  height: 28px;
}

.formula-help-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  width: min(340px, 100%);
  pointer-events: none;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.formula-help-panel strong {
  color: var(--ink);
  font-size: 12px;
}

.formula-help-panel p,
.formula-help-panel ul {
  margin: 0;
}

.formula-help-panel ul {
  padding-left: 16px;
}

.formula-internal-controls {
  display: none !important;
}

body.modal-open .ai-filter-bar.active,
body.modal-open .ai-filter-bar:focus-within {
  border-color: var(--line);
  box-shadow: none;
}

body.modal-open .ai-filter-slot {
  z-index: 1;
}

body.modal-open .group-head {
  border-top-color: transparent !important;
}

.formula-ask-result {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
}

.formula-ask-result strong,
.formula-ask-result span,
.formula-ask-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.formula-ask-result span,
.formula-ask-result small {
  color: var(--muted);
}

.formula-advanced-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.formula-advanced-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.formula-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.formula-advanced-panel summary span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.formula-advanced-panel summary small {
  color: var(--muted);
  font-size: 11px;
}

.formula-advanced-panel summary i,
.formula-advanced-panel summary svg {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.formula-advanced-panel[open] summary i,
.formula-advanced-panel[open] summary svg {
  transform: rotate(180deg);
}

.formula-advanced-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.formula-column-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.6fr);
  gap: 8px;
}

.formula-source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  max-height: 150px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  background: #fff;
}

.formula-source-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.formula-source-option:hover {
  background: var(--surface);
}

.formula-source-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-preview {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px;
}

.formula-preview-head {
  display: grid;
  gap: 2px;
}

.formula-preview-head strong {
  font-size: 12px;
}

.formula-preview-head small {
  color: var(--muted);
  font-size: 11px;
}

.formula-preview-list {
  display: grid;
  gap: 5px;
}

.formula-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
}

.formula-preview-row span,
.formula-preview-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-filter-prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.ai-filter-builder {
  display: grid;
  gap: 8px;
}

.ai-filter-rule-list {
  display: grid;
  gap: 6px;
}

.ai-filter-rule {
  display: grid;
  grid-template-columns: 54px minmax(160px, 1.2fr) minmax(132px, 0.8fr) minmax(130px, 1fr) 28px;
  gap: 6px;
  align-items: center;
}

.ai-filter-rule-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.ai-filter-rule select,
.ai-filter-rule input {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.ai-filter-rule-value[hidden] {
  display: none;
}

.ai-filter-builder-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 60px;
}

.danger-text {
  color: var(--red);
}

#aiFilterModalPreview {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.ai-filter-preview-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ai-filter-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.formula-column-modal .ai-filter-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #fff;
}

#selectionText {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.metric-line {
  flex: 0 0 auto;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.metric-line strong {
  color: var(--ink);
  font-weight: 800;
}

.run-progress {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--muted);
  font-weight: 750;
}

.run-progress[hidden] {
  display: none;
}

.run-progress-track {
  width: 86px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9ed;
}

.run-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 180ms ease;
}

.run-progress.stopping .run-progress-fill {
  background: var(--amber);
}

.run-stop-button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.run-stop-button svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.run-stop-button:hover {
  background: #eef1f4;
  color: var(--red);
}

.run-stop-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.run-stop-button:disabled:hover {
  background: transparent;
  color: var(--muted);
}

.table-frame {
  min-height: 0;
  overflow: auto;
  background: #fff;
  position: relative;
}

.table-mode-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f4f6f8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.table-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 74px;
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.table-mode-tab svg {
  width: 14px;
  height: 14px;
}

.table-mode-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.table-mode-tab:disabled,
.table-mode-tab[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.table-mode-tab.is-coming-soon {
  min-width: 150px;
}

.table-mode-tab .feature-status-badge {
  font-size: 9px;
  line-height: 1;
}

.insights-panel,
.analyst-panel {
  min-height: 0;
  overflow: auto;
  background: #fff;
  padding: 16px 18px;
}

.insights-panel-header,
.analyst-panel-header,
.insights-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.insights-panel-header h2,
.analyst-panel-header h2,
.insights-summary h3 {
  margin: 0;
  color: #151a20;
  font-size: 18px;
  line-height: 1.2;
}

.button-credit-note {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
}

.insights-content {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin-top: 12px;
}

.insights-empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #c8d1dc;
  border-radius: 8px;
  background: #fbfcfd;
  color: #59616a;
  text-align: center;
}

.insights-empty-state svg {
  width: 24px;
  height: 24px;
}

.insights-empty-state .lucide-loader-2 {
  animation: spin 1s linear infinite;
}

.insights-empty-state.error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.insights-summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.insights-summary span {
  color: #59616a;
  font-size: 12px;
  font-weight: 700;
}

.insights-summary-list,
.insight-card-list {
  display: grid;
  gap: 10px;
}

.insights-summary-list span {
  display: block;
  padding: 9px 12px;
  border-left: 3px solid #316bff;
  background: #f7faff;
  color: #303741;
  font-size: 13px;
  font-weight: 650;
}

.insight-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.insight-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.insight-card h3 {
  margin: 0 0 5px;
  color: #151a20;
  font-size: 15px;
  line-height: 1.25;
}

.insight-card p {
  margin: 0;
  color: #59616a;
  font-size: 13px;
  line-height: 1.45;
}

.insight-confidence {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
}

.insight-confidence.high {
  background: #ecfdf5;
  color: #047857;
}

.insight-confidence.low {
  background: #fff7ed;
  color: #9a3412;
}

.insight-metrics,
.insight-evidence-samples,
.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insight-metrics span,
.insight-evidence-samples span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.insight-method {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.insight-method summary {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.insight-method ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.analyst-suggestion-list {
  display: grid;
  max-width: 760px;
  gap: 8px;
  margin-top: 18px;
}

.analyst-suggestion-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #303741;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.analyst-suggestion-list button:hover {
  background: #f8fafc;
}

.analyst-suggestion-list svg {
  width: 15px;
  height: 15px;
  color: #316bff;
}

table {
  width: max-content;
  min-width: 1160px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

th,
td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

th {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 30px;
  color: #343941;
  font-weight: 650;
  text-align: left;
}

thead tr:first-child th {
  top: 0;
  z-index: 30;
  height: 30px;
  background: #f6f8fa;
  color: #59616a;
  font-size: 12px;
}

thead tr:nth-child(2) th {
  top: 30px;
  height: 30px;
  z-index: 29;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

thead tr:nth-child(3) th {
  top: 60px;
  height: 30px;
  z-index: 28;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
}

thead tr:first-child th.select-col {
  z-index: 70;
  height: 90px;
  background: #f6f8fa;
  box-shadow: 1px 0 0 var(--line);
}

thead tr:first-child th.select-all-col {
  padding: 0;
  vertical-align: middle;
}

td:first-child {
  background: #fbfcfd;
}

.select-col {
  width: var(--select-col-width, 72px);
  min-width: var(--select-col-width, 72px);
  max-width: var(--select-col-width, 72px);
  text-align: center;
}

td.select-col {
  z-index: 40;
  padding: 0 6px 0 8px;
  overflow: hidden;
  background: #fbfcfd;
  box-shadow: 1px 0 0 var(--line);
}

.select-all-stack {
  display: grid;
  grid-template-rows: 60px 30px;
  width: 100%;
  height: 100%;
}

.select-all-control {
  display: grid;
  width: 100%;
  height: 60px;
  place-items: center start;
  padding-left: 8px;
  padding-top: 2px;
  cursor: pointer;
}

.select-all-progress-label {
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #5d646b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

th.raw-pinned,
td.raw-pinned {
  position: sticky;
  left: var(--pin-left);
  z-index: 6;
  background: #fff;
  box-shadow:
    inset 1px 0 0 var(--line),
    1px 0 0 var(--line);
}

thead th.raw-pinned {
  z-index: 50;
}

thead tr:first-child th.raw-pinned-group {
  z-index: 60;
  overflow: hidden;
  background: #f6f8fa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

thead tr:first-child th.raw-pinned-group-segment:not(.raw-pinned-group-end) {
  border-right-color: transparent;
  box-shadow: none;
}

thead tr:first-child th.raw-pinned-group-middle {
  padding: 0;
}

thead tr:first-child th.raw-pinned-group-start .head-inner {
  justify-content: flex-start;
}

thead tr:first-child th.raw-pinned-group-end .head-inner {
  justify-content: flex-end;
}

thead tr:nth-child(2) th.raw-pinned {
  z-index: 50;
  box-shadow:
    inset 1px 0 0 var(--line),
    1px 0 0 var(--line),
    0 1px 0 var(--line);
}

thead tr:nth-child(3) th.raw-pinned {
  z-index: 49;
  box-shadow:
    inset 1px 0 0 var(--line),
    1px 0 0 var(--line),
    0 1px 0 var(--line);
}

tbody tr:hover td.raw-pinned {
  background: #fafbfc;
}

tbody tr.selected td.raw-pinned {
  background: #f2f7ff;
}

.group-head,
.column-head {
  padding: 0 9px;
}

.group-head {
  border-top: 2px solid transparent;
}

.group-head.website {
  border-top-color: var(--teal);
}

.group-head.steam {
  border-top-color: #64748b;
}

.group-head.contact {
  border-top-color: var(--blue);
}

.group-head.score {
  border-top-color: var(--violet);
}

.group-head.trading {
  border-top-color: #059669;
}

.group-head.ai {
  border-top-color: #7c3aed;
}

.group-head.preview,
.column-head.preview {
  border-top-color: var(--blue);
  background: #f8fbff;
}

.group-head.dependency,
.column-head.dependency,
.column-progress-head.dependency {
  border-color: #bdd7d2;
  background: #eef8f6;
  color: #075e57;
}

.group-head.dependency {
  border-top-color: var(--teal);
}

.group-head.incoming-dependency,
.column-head.incoming-dependency,
.column-progress-head.incoming-dependency {
  border-color: #d6c7ef;
  background: #f6f1ff;
  color: #5b21b6;
}

.group-head.incoming-dependency {
  border-top-color: #8b5cf6;
}

thead.linked-header-colors .group-head.raw,
thead.linked-header-colors .column-head.raw,
thead.linked-header-colors .column-progress-head.raw {
  border-color: #d8dde2;
  background: #f1f3f5;
  color: #47515c;
}

thead.linked-header-colors .group-head.raw {
  border-top-color: #9aa3ad;
}

thead.linked-header-colors .group-head.website,
thead.linked-header-colors .column-head.website,
thead.linked-header-colors .column-progress-head.website {
  border-color: #b7e5dc;
  background: var(--teal-soft);
  color: #075e57;
}

thead.linked-header-colors .group-head.steam,
thead.linked-header-colors .column-head.steam,
thead.linked-header-colors .column-progress-head.steam {
  border-color: #cbd5e1;
  background: #eef3f8;
  color: #334155;
}

thead.linked-header-colors .group-head.contact,
thead.linked-header-colors .column-head.contact,
thead.linked-header-colors .column-progress-head.contact {
  border-color: #bfd4ff;
  background: var(--blue-soft);
  color: #1d4ed8;
}

thead.linked-header-colors .group-head.score,
thead.linked-header-colors .column-head.score,
thead.linked-header-colors .column-progress-head.score {
  border-color: #d8c9ff;
  background: var(--violet-soft);
  color: #5b21b6;
}

thead.linked-header-colors .group-head.trading,
thead.linked-header-colors .column-head.trading,
thead.linked-header-colors .column-progress-head.trading {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

thead.linked-header-colors .group-head.ai,
thead.linked-header-colors .column-head.ai,
thead.linked-header-colors .column-progress-head.ai {
  border-color: #d8c9ff;
  background: #f3edff;
  color: #5b21b6;
}

thead.linked-header-colors .group-head.dependency,
thead.linked-header-colors .column-head.dependency,
thead.linked-header-colors .column-progress-head.dependency {
  border-color: #a7d8d1;
  background: #e9f8f5;
  color: #075e57;
}

thead.linked-header-colors .group-head.website {
  border-top-color: var(--teal);
}

thead.linked-header-colors .group-head.steam {
  border-top-color: #64748b;
}

thead.linked-header-colors .group-head.contact {
  border-top-color: var(--blue);
}

thead.linked-header-colors .group-head.trading {
  border-top-color: #059669;
}

thead.linked-header-colors .group-head.score,
thead.linked-header-colors .group-head.ai {
  border-top-color: var(--violet);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.head-main {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.head-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.head-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-head.blurred {
  color: #475569;
}

.column-head.blurred .head-label {
  font-style: italic;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  z-index: 85;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 3px;
  bottom: 6px;
  width: 1px;
  border-radius: 999px;
  background: transparent;
}

.column-head:hover .column-resize-handle::after,
.column-head.column-resize-source .column-resize-handle::after {
  background: var(--blue);
}

.column-resizing,
.column-resizing * {
  cursor: col-resize !important;
}

.raw-type-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #5f6873;
}

.linked-output-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--violet);
}

.dependency-head-icon,
.dependency-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #0f766e;
}

.sort-indicator-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--blue);
}

.sort-indicator {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.worker-title {
  min-width: 0;
  flex: 1 1 auto;
  gap: 7px;
}

.group-head[data-worker-group],
.group-head[data-relation-group],
.column-head[data-column-menu] {
  cursor: grab;
  user-select: none;
}

.group-head[data-worker-group]:active,
.group-head[data-relation-group]:active,
.column-head[data-column-menu]:active {
  cursor: grabbing;
}

.group-head[data-raw-menu] {
  cursor: pointer;
  user-select: none;
}

.column-dragging,
.column-dragging * {
  cursor: grabbing !important;
}

th.column-drag-source {
  opacity: 0.58;
}

.column-drop-indicator {
  position: fixed;
  width: 3px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
  pointer-events: none;
  z-index: 1000;
}

.worker-state {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  justify-content: center;
}

.worker-state.ready {
  color: #075e57;
}

.worker-state.blocked {
  color: #9f1239;
}

thead.linked-header-colors .worker-state.ready,
thead.linked-header-colors .worker-state.blocked {
  background: transparent;
}

.worker-state svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.state-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.column-progress-head {
  padding: 0 9px;
}

.raw-source-head {
  padding: 0 10px;
}

.raw-column-source {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #5f6873;
}

.raw-column-source svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.column-progress {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #47515c;
}

button.column-progress {
  cursor: pointer;
}

button.column-progress:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.34);
  outline-offset: 2px;
}

.column-progress-track {
  position: relative;
  min-width: 34px;
  height: 6px;
  flex: 1 1 auto;
  overflow: visible;
}

.column-progress-segments {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e7eb;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.04);
}

.column-progress-segment {
  height: 100%;
  min-width: 0;
}

.column-progress-segment.first {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.column-progress-segment.last {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.column-progress-segment.empty {
  background: #d8dee5;
}

.column-progress-segment.completed {
  background: var(--teal);
}

.column-progress-segment.failed {
  background: var(--red);
}

.column-progress-spinner {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: conic-gradient(from 0deg, var(--blue) 0 82deg, #d6dce2 82deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 3.4px, #000 3.8px);
  mask: radial-gradient(circle, transparent 0 3.4px, #000 3.8px);
  animation: filling-spinner-spin 760ms linear infinite;
}

.column-progress-percent {
  min-width: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #47515c;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.head-run-button,
.head-menu-button,
.head-brain-button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.head-run-button svg,
.head-menu-button svg,
.head-brain-button svg {
  width: 14px;
  height: 14px;
}

.head-run-button:hover,
.head-menu-button:hover,
.head-brain-button:hover {
  background: #eef1f4;
  color: var(--ink);
}

.head-run-button.active {
  background: #e0f2fe;
  color: #0369a1;
}

.head-brain-button {
  position: relative;
}

.head-brain-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.head-brain-button.active {
  color: #5b21b6;
  background: #f3edff;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.18), 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.head-brain-button.active span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

thead.linked-header-colors .head-run-button:hover,
thead.linked-header-colors .head-menu-button:hover,
thead.linked-header-colors .head-brain-button:hover {
  background: rgba(255, 255, 255, 0.68);
}

tbody tr:hover td {
  background: #fafbfc;
}

tbody tr.selected td {
  background: #f2f7ff;
}

td.column-blurred {
  background-image: linear-gradient(90deg, rgba(100, 116, 139, 0.045), rgba(37, 99, 235, 0.035));
}

tbody tr:hover td.column-blurred {
  background-image: linear-gradient(90deg, rgba(100, 116, 139, 0.07), rgba(37, 99, 235, 0.055));
}

td {
  height: 42px;
  max-width: 240px;
  padding: 0 9px;
  vertical-align: middle;
}

tfoot td {
  height: 64px;
  border-right: 0;
  background: #fff;
}

.table-add-rows-cell {
  max-width: none;
  padding: 10px 40px;
  overflow: visible;
}

.table-add-rows {
  position: sticky;
  left: 40px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: calc(100vw - 80px);
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 520;
}

.table-add-rows > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.table-add-rows-button {
  height: 34px;
  padding: 0 14px;
}

.table-add-rows-input {
  width: 92px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

tr.virtual-spacer td {
  height: auto;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: none !important;
  pointer-events: none;
  position: static !important;
}

td[data-grid-cell] {
  cursor: cell;
  user-select: none;
}

td.cell-range-selected {
  background: #eaf2ff !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.38);
}

td.cell-range-focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.cell {
  display: grid;
  gap: 2px;
}

.cell.raw {
  min-height: 18px;
  width: 100%;
  color: #343941;
}

.cell.insight-evidence-cell {
  background: #fff8cf;
  box-shadow: inset 0 0 0 2px #f4c430;
}

td.insight-evidence-td {
  background: #fff8cf;
}

.cell.image-cell {
  min-height: 46px;
  align-content: center;
}

.cell.raw.formula {
  color: #20324f;
}

.cell.raw.formula .value-text {
  font-weight: 650;
}

.cell.raw.dependency-cell {
  color: #075e57;
}

.cell.raw.incoming-dependency-cell {
  color: #5b21b6;
}

.relation-cell-button {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.relation-cell-button svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #0f766e;
}

.relation-cell-button:hover .value-text {
  text-decoration: underline;
}

.selection-cell-button {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font: inherit;
  text-align: left;
}

.selection-tag-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.selection-tag {
  max-width: 132px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--tag-bg, #eef2f7);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-tag.more {
  flex: 0 0 auto;
  background: #f8fafc;
  color: var(--ink);
}

.selection-empty {
  color: var(--faint);
}

.selection-cell-menu {
  width: min(380px, calc(100vw - 20px));
  max-height: min(430px, calc(100vh - 20px));
  overflow: hidden;
  padding: 0;
}

.selection-cell-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.selection-cell-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.selection-cell-search input {
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 14px;
}

.selection-cell-options {
  max-height: 360px;
  overflow: auto;
  padding: 8px;
}

.selection-cell-options .selection-option-row {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
}

.selection-cell-options .selection-option-row.clear,
.selection-cell-options .selection-option-row.create {
  grid-template-columns: 18px minmax(0, 1fr);
}

.selection-option-row.selected {
  background: #f1f5f9;
}

.selection-option-row .selection-option-drag svg,
.selection-option-row > svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.cell.raw.campaign-cell,
.cell.value-cell.campaign-cell {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
}

.campaign-cell-badge {
  min-width: 28px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafc;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.campaign-cell-badge.step {
  color: #0f766e;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.campaign-cell-badge.slot {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.raw-cell-editor {
  position: fixed;
  z-index: 1400;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.raw-cell-editor textarea {
  min-width: 0;
  min-height: 0;
  resize: none;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.raw-cell-editor textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.raw-cell-editor-expand {
  align-self: end;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.raw-cell-editor-expand:hover {
  background: var(--panel-alt);
}

.raw-cell-editor-expand svg {
  width: 16px;
  height: 16px;
}

.cell.value-cell {
  cursor: cell;
}

.cell.value-cell:hover .value-text {
  color: var(--blue);
}

.cell.value-cell.filling {
  position: relative;
  cursor: wait;
}

.run-preview-cell {
  gap: 1px;
  cursor: default;
}

.run-preview-cell .value-text {
  font-style: italic;
  font-weight: 650;
}

.run-preview-cell.will-run .value-text {
  color: var(--teal);
}

.run-preview-cell.skipped .value-text {
  color: var(--muted);
}

.run-preview-cell.blocked .value-text {
  color: var(--amber);
}

.filling-placeholder {
  visibility: hidden;
}

.cell-main {
  min-width: 0;
  gap: 7px;
}

.value-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 450;
}

.cell-link {
  color: var(--blue);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.cell-link:hover,
.cell-link:focus-visible {
  text-decoration: underline;
}

.cell-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.36);
  outline-offset: 2px;
  border-radius: 4px;
}

.image-cell-empty {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.image-cell-empty:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}

.image-cell-empty svg,
.image-cell-action svg,
.image-cell-thumb-missing svg {
  width: 13px;
  height: 13px;
}

.image-cell-value {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding-right: 24px;
}

.image-cell-value.compact {
  grid-template-columns: 46px;
  padding-right: 0;
}

.image-cell-thumb {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}

.image-cell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-cell-thumb-missing {
  color: #64748b;
}

.image-cell-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #343941;
  font-size: 12px;
  font-weight: 650;
}

.image-cell-actions {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.image-cell-value:hover .image-cell-actions,
.image-cell-value:focus-within .image-cell-actions,
td.cell-range-focus .image-cell-actions,
td.cell-range-selected .image-cell-actions {
  opacity: 1;
  pointer-events: auto;
}

.image-cell-action {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.image-cell-action:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}

.image-cell-action.danger:hover {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.image-cell-missing {
  color: #94a3b8;
}

.cell.blurred .value-text,
.cell.blurred .subtext,
.cell.blurred .status-pill,
.blurred-value {
  filter: blur(5px);
  opacity: 0.72;
  user-select: none;
  transition: filter 120ms ease, opacity 120ms ease;
}

.cell.blurred .value-text,
.blurred-value {
  text-shadow: 0 0 11px rgba(31, 41, 55, 0.34);
}

.cell.blurred .value-text::selection,
.cell.blurred .subtext::selection,
.blurred-value::selection {
  background: transparent;
}

td.raw-pinned .value-text {
  font-weight: 650;
}

.subtext {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confidence-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line);
}

.confidence-dot.verified {
  background: var(--teal);
}

.confidence-dot.needs_review,
.confidence-dot.low_confidence {
  background: var(--amber);
}

.confidence-dot.blocked {
  background: var(--amber);
}

.confidence-dot.failed {
  background: var(--red);
}

.filling-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: conic-gradient(from 0deg, var(--blue) 0 82deg, #d6dce2 82deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 4px, #000 4.5px);
  mask: radial-gradient(circle, transparent 0 4px, #000 4.5px);
  animation: filling-spinner-spin 760ms linear infinite;
}

.status-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  gap: 6px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
}

.status-pill.verified {
  background: var(--teal-soft);
  color: #075e57;
}

.status-pill.needs_review,
.status-pill.low_confidence {
  background: var(--amber-soft);
  color: #744607;
}

.status-pill.blocked {
  background: var(--amber-soft);
  color: #744607;
}

.status-pill.failed {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.empty {
  background: #edf0f3;
  color: #5d646b;
}

.checkbox {
  width: 17px;
  height: 17px;
}

.row-select {
  display: grid;
  grid-template-columns: 17px minmax(0, max-content);
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: center;
  justify-content: start;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.row-number {
  min-width: 0;
  color: #7a838d;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 17px;
  text-align: left;
  white-space: nowrap;
}

.row-select .checkbox {
  margin: 0;
}

.evidence-panel {
  grid-area: evidence;
  min-width: 0;
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--line);
}

.panel-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header > div {
  min-width: 0;
}

.panel-header .eyebrow {
  color: var(--faint);
}

.evidence-panel.data-out-view-panel {
  position: relative;
}

.evidence-panel.data-out-view-panel .panel-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 10px 14px 0;
  border-bottom: 0;
}

.evidence-panel.data-out-view-panel .panel-header > div {
  display: none;
}

.evidence-panel.data-out-view-panel .panel-header {
  justify-content: flex-end;
}

.evidence-content {
  padding: 14px;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 26px;
  height: 26px;
}

.evidence-value {
  margin: 0 0 12px;
  max-width: 72ch;
  color: #374151;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.evidence-document {
  max-width: 76ch;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.evidence-document h3 {
  margin: 6px 0 0;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.evidence-document p,
.evidence-document ul,
.evidence-document ol {
  margin: 0;
}

.evidence-document ul,
.evidence-document ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.evidence-document li {
  padding-left: 2px;
}

.evidence-document strong {
  color: #1f2937;
  font-weight: 800;
}

.evidence-document a {
  color: #0f61b9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.evidence-image {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.evidence-image a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.evidence-image img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

.evidence-image-empty {
  height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: #94a3b8;
  background: #f8fafc;
}

.evidence-image-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.evidence-image-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.evidence-image-meta span {
  color: var(--muted);
  font-size: 12px;
}

.confidence-row {
  gap: 10px;
  margin: 13px 0;
}

.confidence-bar {
  height: 7px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f3;
}

.confidence-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--dark);
}

.field-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.field-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.field-row span:first-child {
  flex: 0 0 88px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-row span:last-child,
.field-row a {
  min-width: 0;
  color: #2f353b;
  text-align: right;
  overflow-wrap: anywhere;
}

.field-row a {
  color: var(--blue);
  text-decoration: none;
}

.dependency-panel {
  display: grid;
  gap: 12px;
}

.dependency-summary-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #bdd7d2;
  border-radius: 8px;
  background: #eef8f6;
}

.dependency-summary-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #d9f2ee;
  color: #0f766e;
}

.dependency-summary-icon svg {
  width: 17px;
  height: 17px;
}

.dependency-summary-card strong,
.dependency-summary-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dependency-summary-card strong {
  color: #0f172a;
  font-size: 13px;
}

.dependency-summary-card span {
  color: #475569;
  font-size: 12px;
}

.outreach-cell-panel {
  display: grid;
  gap: 12px;
}

.app-shell.outreach-wide-panel .evidence-content {
  padding: 18px;
}

.app-shell.outreach-wide-panel .outreach-cell-panel,
.app-shell.outreach-wide-panel .custom-ai-editor {
  gap: 16px;
}

.app-shell.outreach-wide-panel .campaign-template-body textarea {
  min-height: 260px;
  font-size: 13px;
  line-height: 1.5;
}

.app-shell.outreach-wide-panel .campaign-template-preview-body {
  min-height: 260px;
  font-size: 13px;
  line-height: 1.5;
}

.app-shell.outreach-wide-panel .campaign-slot-placement-text,
.app-shell.outreach-wide-panel .outreach-render-preview p {
  font-size: 13px;
  line-height: 1.5;
}

.outreach-cell-summary {
  display: grid;
  gap: 9px;
}

.outreach-cell-summary .evidence-value {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
}

.outreach-cell-badges span.review {
  border-color: rgba(217, 119, 6, 0.32);
  background: #fffbeb;
  color: #b45309;
}

.outreach-cell-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worker-log-detail {
  display: grid;
  gap: 13px;
}

.log-actions {
  padding-top: 0;
}

.log-section {
  display: grid;
  gap: 8px;
}

.log-empty-note {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.log-issue-list {
  display: grid;
  gap: 7px;
}

.log-issue {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  background: var(--panel-alt);
}

.log-issue span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.log-issue p {
  margin: 0;
  color: #2f353b;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.log-issue.error {
  border-left-color: var(--red);
}

.log-issue.warning {
  border-left-color: var(--amber);
}

.log-issue.missing {
  border-left-color: var(--blue);
}

.log-attempt-list {
  display: grid;
  gap: 10px;
}

.log-attempt {
  display: grid;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.log-attempt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.log-command,
.log-snippet,
.log-json pre {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: #2f353b;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.log-command {
  display: block;
  padding: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-snippet-block {
  display: grid;
  gap: 5px;
}

.log-snippet,
.log-json pre {
  max-height: 280px;
  margin: 0;
  padding: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-json {
  display: grid;
  gap: 8px;
}

.log-json summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.worker-config {
  display: grid;
  gap: 13px;
}

.worker-summary {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.config-overview {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.config-overview > span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.config-overview > span:last-child {
  padding-right: 0;
  border-right: 0;
}

.config-status {
  gap: 6px;
  font-weight: 850;
}

.config-status.ready {
  color: var(--teal);
}

.config-status.blocked {
  color: var(--amber);
}

.worker-config-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.worker-config-tab {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.worker-config-tab:hover {
  color: var(--ink);
  background: #f6f8fb;
}

.worker-config-tab.active {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.worker-config-tab-panel {
  display: grid;
  gap: 13px;
}

.context-library-panel,
.worker-context-section {
  display: grid;
  gap: 11px;
}

.context-library-intro {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.context-library-intro strong {
  color: var(--ink);
  font-size: 13px;
}

.context-library-intro span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.context-library-toolbar,
.context-library-list,
.context-editor,
.context-attached-list,
.context-pack-preview {
  display: grid;
  gap: 9px;
}

.context-item-card,
.context-attached-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.context-item-card {
  cursor: pointer;
}

.context-item-card:hover,
.context-item-card.active {
  border-color: var(--line-strong);
  background: var(--panel-alt);
}

.context-item-card svg,
.context-attached-card > svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.context-item-card strong,
.context-attached-card strong {
  display: block;
  min-width: 0;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.context-item-card small,
.context-attached-card span,
.context-plain-note span,
.context-structured-list span,
.context-rule-card span,
.context-rule-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.context-attached-card {
  grid-template-columns: 22px minmax(0, 1fr) 30px 30px;
  align-items: center;
  padding: 8px;
}

.context-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.context-add-row select {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.context-plain-note {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.context-plain-note strong {
  font-size: 12.5px;
}

.context-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.context-editor-heading strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.context-preview-details {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.context-preview-details summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.context-preview-details[open] {
  gap: 11px;
}

.context-structured-list {
  display: grid;
  gap: 6px;
}

.context-structured-list div {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.context-structured-list strong {
  font-size: 12px;
}

.context-rule-list {
  display: grid;
  gap: 7px;
}

.context-rule-card {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.context-rule-card strong {
  font-size: 12.5px;
}

.worker-mapping-search {
  position: relative;
  display: flex;
  align-items: center;
}

.worker-mapping-search i {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.worker-mapping-search input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  outline: 0;
}

.worker-mapping-search input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.worker-input-section {
  display: grid;
  gap: 8px;
}

.section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.worker-input-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.worker-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.input-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.input-name {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 850;
}

.input-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  vertical-align: 1px;
}

.input-badge.required {
  background: transparent;
  color: var(--blue);
}

.input-badge.optional {
  background: transparent;
  color: var(--faint);
}

.mapping-select {
  width: 150px;
  flex: 0 0 150px;
  min-height: 32px;
  padding: 0 8px;
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.worker-settings-section {
  padding-top: 2px;
}

.campaign-brief-editor,
.campaign-output-config-list {
  gap: 10px;
}

.campaign-variable-section,
.campaign-output-config,
.campaign-column-config,
.campaign-slot-config-list,
.campaign-preview-slot-list,
.campaign-preview-warnings {
  display: grid;
  gap: 8px;
}

.campaign-variable-list {
  display: grid;
  gap: 7px;
}

.campaign-variable-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.7fr) minmax(90px, 1fr) minmax(110px, 1.1fr) 30px;
  gap: 6px;
  align-items: center;
}

.campaign-variable-row input {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.campaign-output-config {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.campaign-message-editor {
  gap: 0;
}

.campaign-message-step-list {
  display: grid;
  gap: 12px;
}

.campaign-message-step {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.campaign-message-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.campaign-message-step-head > div strong,
.campaign-message-step-head > div span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-message-step-head > div strong {
  color: var(--ink);
  font-size: 14px;
}

.campaign-message-step-head > div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.campaign-message-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.campaign-message-step-actions .button,
.campaign-message-step-actions .icon-button {
  min-height: 32px;
}

.campaign-message-step-actions .icon-button.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
  color: #1d4ed8;
}

.campaign-template-editor {
  display: grid;
  gap: 8px;
}

.campaign-template-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.campaign-template-body {
  display: grid;
  gap: 0;
}

.campaign-template-body > span {
  padding: 9px 9px 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.campaign-template-body textarea {
  width: 100%;
  min-height: 160px;
  padding: 6px 9px 9px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.campaign-template-editor.previewing .campaign-template-shell {
  background: #fff;
}

.campaign-template-preview-body {
  min-height: 190px;
  padding: 12px;
  color: #343941;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.campaign-template-token {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
  background: #fff1f2;
  color: #b91c1c;
  font: inherit;
  font-weight: inherit;
  line-height: 1.45;
}

.campaign-template-token.missing {
  background: #fff1f2;
  color: #b91c1c;
}

.campaign-template-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.campaign-template-toolbar .button {
  min-height: 30px;
}

.campaign-template-toolbar .button.active {
  border-color: rgba(124, 58, 237, 0.35);
  background: #f5efff;
  color: #6d28d9;
}

.campaign-template-toolbar-note {
  color: var(--muted);
  font-size: 12px;
}

.campaign-variable-picker {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.campaign-variable-group {
  display: grid;
  gap: 8px;
}

.campaign-variable-group-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-variable-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.campaign-variable-chip {
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.campaign-variable-chip.lead {
  background: #f0e4f8;
  color: #6b2a8f;
}

.campaign-variable-chip.identity {
  background: #fdebc0;
  color: #a35300;
}

.campaign-variable-chip.custom {
  background: #d9f0ea;
  color: #0f766e;
}

.campaign-variable-chip:hover {
  filter: brightness(0.97);
}

.campaign-attribute-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-attribute-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.campaign-attribute-chip.active {
  border-color: rgba(37, 99, 235, 0.5);
  background: #dbeafe;
  color: #1e40af;
}

.campaign-attribute-chip.unused {
  border-color: var(--line-strong);
  background: var(--panel-soft);
  color: var(--muted);
}

.campaign-attribute-chip small {
  color: inherit;
  font-size: 10px;
  font-weight: 850;
  opacity: 0.78;
}

.campaign-attribute-config {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 7px;
  background: #f8fbff;
}

.campaign-attribute-config-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: start;
}

.campaign-attribute-config-head strong,
.campaign-attribute-config-head span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-attribute-config-head strong {
  color: var(--ink);
  font-size: 13px;
}

.campaign-attribute-config-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.campaign-attribute-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(92px, 0.55fr) 72px;
  gap: 8px;
  align-items: end;
}

.campaign-column-config {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.campaign-slot-column-list {
  display: grid;
  gap: 10px;
}

.campaign-column-config-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.campaign-column-config-title strong,
.campaign-column-config-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-column-config-title strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.campaign-column-config-title > div > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.campaign-slot-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(100px, 0.55fr);
  gap: 8px;
  align-items: end;
}

.campaign-slot-placement {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-alt);
}

.campaign-slot-placement.compact {
  padding: 8px 9px;
}

.campaign-slot-placement-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.campaign-slot-placement-title small {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.campaign-slot-placement-text {
  margin: 0;
  color: #343941;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.campaign-slot-placement-text.missing {
  color: var(--muted);
}

.campaign-slot-highlight {
  padding: 0 2px;
  border-radius: 3px;
  background: #fff3bf;
  color: inherit;
  font: inherit;
}

.campaign-slot-highlight.editable {
  display: inline;
  min-width: 24px;
  cursor: text;
  outline: none;
}

.campaign-slot-highlight.editable:focus {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.campaign-slot-highlight.editable:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.campaign-slot-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
}

.campaign-output-config.focused,
.campaign-column-config.focused {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: inset 3px 0 0 var(--blue);
}

.campaign-output-config.compact {
  padding: 9px;
}

.campaign-output-config-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(96px, 0.55fr) minmax(96px, 0.55fr);
  gap: 8px;
}

.campaign-output-config.compact > .campaign-output-config-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.campaign-output-config.compact > .campaign-output-config-head strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.campaign-output-config.compact > .campaign-output-config-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.campaign-slot-output-meta {
  grid-template-columns: minmax(0, 1fr) 96px minmax(100px, 0.6fr);
  align-items: end;
}

.campaign-slot-config-list {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.campaign-slot-config-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.55fr) minmax(120px, 0.9fr) minmax(180px, 1.4fr) 72px minmax(96px, 0.55fr);
  gap: 8px;
  align-items: end;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.campaign-slot-config-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.campaign-slot-export {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.campaign-slot-export strong {
  color: var(--ink);
  font-size: 13px;
}

.campaign-slot-export span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-slot-required {
  align-self: end;
}

.campaign-preview-slot {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.campaign-preview-slot div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.campaign-preview-slot strong,
.campaign-preview-slot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-preview-slot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.campaign-preview-slot p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.campaign-preview-slot.compact {
  padding: 7px;
  background: var(--bg);
}

.campaign-preview-slot.compact p {
  color: var(--muted);
  font-size: 11px;
  white-space: normal;
}

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

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

.setting-field span,
.setting-toggle span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.setting-field input,
.setting-field select {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.worker-ai-model-note {
  margin-top: 8px;
}

.setting-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.setting-toggle input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.mapping-state {
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.worker-input-row.mapped .mapping-state {
  color: var(--teal);
}

.worker-input-row.missing .mapping-state,
.worker-input-row.inactive .mapping-state {
  color: var(--amber);
}

.worker-actions {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.worker-actions .button {
  justify-content: center;
  flex: 1 1 96px;
  min-width: 0;
}

.worker-actions .button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-brain {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.decision-brain-summary div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfc;
}

.decision-brain-summary strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.decision-brain-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.decision-brain-blockers,
.decision-brain-list {
  display: grid;
  gap: 8px;
}

.decision-brain-blocker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.decision-brain-blocker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-brain-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.decision-brain-card.create_worker {
  border-color: #d8c9ff;
}

.decision-brain-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.decision-action-type {
  color: #5b21b6;
  font-weight: 850;
}

.decision-brain-notice {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.decision-brain-notice div:first-child {
  display: grid;
  gap: 2px;
}

.decision-brain-notice > div:first-child > span {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.decision-brain-notice > div:first-child > strong {
  font-size: 13px;
}

.decision-brain-notice p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.decision-missing-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.decision-missing-line strong {
  color: var(--ink);
  font-size: inherit;
}

.decision-before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.decision-before-after div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbfc;
}

.decision-before-after span,
.decision-footnote {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.decision-before-after strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}

.decision-prompt-preview {
  max-height: 120px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbfc;
  color: #334155;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.decision-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.decision-card-actions .button {
  justify-content: center;
}

.decision-card-actions .button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-brain-card strong {
  font-size: 13px;
}

.decision-brain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ask-action-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ask-action-summary {
  display: grid;
  gap: 8px;
}

.ask-preview-summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ask-action-kicker {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ask-action-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.ask-conversation-panel {
  align-content: start;
}

.ask-action-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.ask-assistant-note {
  color: var(--muted) !important;
}

.ask-action-question {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 2px;
  color: var(--muted) !important;
}

.ask-action-question span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ask-action-summary blockquote {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--line-strong);
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.visual-analysis-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.visual-analysis-summary,
.visual-analysis-plan,
.visual-analysis-chart,
.visual-analysis-table {
  display: grid;
  gap: 10px;
}

.visual-analysis-summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.visual-analysis-kicker {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-analysis-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.visual-analysis-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.visual-analysis-question {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 2px;
}

.visual-analysis-question span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-analysis-plan {
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.visual-analysis-flow {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
}

.visual-analysis-flow span {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.visual-analysis-flow small {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-analysis-flow strong {
  min-width: 0;
  max-width: 210px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-analysis-flow i {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.visual-analysis-count-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.visual-analysis-count-line span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.visual-analysis-count-line strong {
  color: var(--ink);
  font-weight: 850;
}

.visual-analysis-chart {
  gap: 12px;
}

.visual-analysis-group {
  display: grid;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.visual-analysis-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.visual-analysis-group-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.visual-analysis-group-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-analysis-group-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.visual-analysis-bar-shell {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px rgba(221, 225, 229, 0.8);
}

.visual-analysis-bar {
  height: 100%;
  display: flex;
  min-width: 6%;
  overflow: hidden;
  border-radius: inherit;
}

.visual-analysis-segment {
  min-width: 3px;
  height: 100%;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.visual-analysis-segment:hover,
.visual-analysis-segment:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.visual-analysis-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.visual-analysis-legend-row span {
  min-width: 0;
  max-width: 140px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.visual-analysis-legend-row i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.visual-analysis-legend-row small {
  color: var(--faint);
  font-size: 10px;
}

.visual-analysis-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
}

.visual-analysis-list-head span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-analysis-list-head small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
}

.visual-analysis-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.visual-analysis-table article:last-of-type {
  border-bottom: 0;
}

.visual-analysis-table article > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.visual-analysis-table strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-analysis-table article > div:first-child span {
  color: var(--muted);
  font-size: 11px;
}

.visual-analysis-row-actions {
  display: flex;
  gap: 5px;
}

.visual-analysis-row-actions .button.compact {
  min-height: 24px;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.visual-analysis-row-actions .button.compact:hover {
  border-color: var(--line);
  background: var(--panel-alt);
  color: var(--ink);
}

.visual-analysis-row-actions .button.compact span {
  color: inherit;
  font-size: 11px;
}

.visual-analysis-clear {
  margin-top: 2px;
  justify-content: center;
}

.visual-analysis-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.data-out-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.data-out-summary {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.data-out-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.data-out-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.data-out-chart-shell {
  min-height: 240px;
  height: clamp(240px, 36vh, 360px);
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--line);
}

.data-out-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.data-out-builder-form {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.data-out-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.data-out-field.disabled {
  opacity: 0.62;
}

.data-out-field span,
.data-out-check span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-out-field input,
.data-out-field select {
  min-width: 0;
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.data-out-field input {
  padding: 0 9px;
}

.data-out-field select {
  padding: 0 7px;
}

.data-out-check {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-top: 14px;
}

.data-out-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.data-out-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.data-out-actions .button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.data-out-result-list {
  padding-bottom: 4px;
}

.run-dependency-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.run-dependency-summary,
.run-dependency-list {
  display: grid;
  gap: 10px;
}

.run-dependency-summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.run-dependency-kicker {
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.run-dependency-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.run-dependency-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.run-dependency-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.run-dependency-counts span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.run-dependency-counts strong {
  color: var(--ink);
  font-weight: 850;
}

.run-dependency-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.run-dependency-list-head span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.run-dependency-list-head small {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-dependency-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.run-dependency-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.run-dependency-item strong,
.run-dependency-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-dependency-item strong {
  color: var(--ink);
  font-size: 12px;
}

.run-dependency-item span,
.run-dependency-item small {
  color: var(--muted);
  font-size: 11px;
}

.run-dependency-item small {
  font-weight: 850;
  white-space: nowrap;
}

.run-dependency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.run-dependency-actions .button {
  min-height: 30px;
}

.ask-result-card,
.ask-next-panel {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ask-thinking-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 128, 121, 0.28);
  animation: ask-thinking-pulse 1.15s ease-out infinite;
}

.ask-reflection-card {
  gap: 13px;
  padding: 2px 0 8px;
  background: #fff;
}

.ask-reflection-label {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
}

.ask-reflection-dots {
  display: inline-block;
  width: 18px;
}

.ask-reflection-dots::after {
  content: "";
  animation: ask-reflection-dots 1.9s steps(4, end) infinite;
}

.ask-reflection-lead {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}

.ask-action-summary .ask-reflection-prompt {
  padding: 8px 10px;
  border-left-color: var(--line-strong);
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.ask-reflection-feed {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.ask-reflection-line {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(5px);
  animation: ask-reflection-line-in 720ms ease forwards;
  animation-delay: calc(900ms + var(--ask-step-index, 0) * 2600ms);
}

.ask-reflection-line:first-child {
  color: var(--ink);
}

.ask-applied-changes {
  display: grid;
  gap: 6px;
}

.ask-applied-changes div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ask-applied-changes svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.ask-next-panel {
  display: grid;
  gap: 8px;
}

.ask-next-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.ask-next-actions .button {
  min-width: 0;
}

.ask-brainstorm-panel {
  height: calc(100vh - 126px);
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.ask-chat-shell {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.ask-thread-context {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.ask-thread-context svg {
  width: 15px;
  height: 15px;
}

.ask-thread-options,
.ask-thread-composer {
  background: #fff;
}

.ask-thread-messages {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  overflow: auto;
}

.ask-thread-message {
  display: grid;
  gap: 5px;
  max-width: 94%;
}

.ask-thread-message.assistant {
  max-width: min(680px, 94%);
}

.ask-thread-message.user {
  justify-self: end;
}

.ask-thread-message > div {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}

.ask-thread-message.assistant > div {
  border-color: transparent;
  background: var(--panel-alt);
}

.ask-thread-message.user > div {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.ask-thread-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
}

.ask-thread-message ul,
.ask-thread-message ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.42;
}

.ask-thread-message li {
  margin: 0;
}

.ask-thread-message li + li {
  margin-top: 4px;
}

.ask-thread-message strong {
  font-weight: 850;
}

.ask-thread-message code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
  font: inherit;
}

.ask-thread-message.assistant p {
  color: var(--ink);
}

.ask-thread-message.user p {
  color: #fff;
}

.ask-thread-message.thinking .ask-thinking-pulse {
  display: inline-block;
  margin-right: 8px;
  vertical-align: -1px;
}

.ask-thread-bottom {
  display: grid;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.ask-thread-options {
  min-width: 0;
}

.ask-thread-options > div,
.ask-thread-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ask-thread-options .button {
  min-height: 30px;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  white-space: normal;
}

.ask-thread-action-chip {
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.ask-thread-action-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ask-thread-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.ask-thread-composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 8px 9px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.ask-thread-composer input:focus {
  outline: none;
}

.ask-thread-composer:focus-within {
  border-color: var(--ink);
}

.ask-thread-composer .icon-button {
  width: 32px;
  height: 32px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.ask-undo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.ask-undo-panel strong,
.ask-history-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.ask-undo-panel p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ask-history-panel {
  display: grid;
  gap: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.ask-history-panel summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.ask-history-panel summary::-webkit-details-marker {
  display: none;
}

.ask-history-panel summary span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ask-history-panel summary small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-history-list {
  display: grid;
  gap: 0;
  padding-bottom: 4px;
}

.ask-history-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.ask-history-item.active {
  background: transparent;
}

.ask-history-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel-alt);
}

.ask-history-icon svg {
  width: 15px;
  height: 15px;
}

.ask-history-item p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.ask-history-item span:not(.status-pill) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ask-history-item .status-pill {
  white-space: nowrap;
}

.ask-action-list {
  display: grid;
  gap: 0;
}

.ask-action-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
}

.ask-action-list-head span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ask-action-list-head small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
}

.ask-action-card {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.ask-action-card:last-child {
  padding-bottom: 0;
}

.ask-action-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ask-action-card-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.ask-action-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.ask-action-card p,
.ask-action-card li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ask-action-card p,
.ask-action-card ul {
  margin: 0;
}

.ask-action-change-list {
  display: grid;
  gap: 4px;
  padding-left: 16px;
}

.ask-action-card .decision-card-actions {
  justify-content: start;
}

.ask-action-card .decision-card-actions .button {
  min-height: 30px;
}

@keyframes ask-thinking-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 128, 121, 0.28);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(0, 128, 121, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 128, 121, 0);
  }
}

@keyframes ask-reflection-dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75% {
    content: "...";
  }

  100% {
    content: "";
  }
}

@keyframes ask-reflection-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ask-column-suggestion-list {
  display: grid;
  gap: 6px;
}

.ask-column-suggestion {
  display: grid;
  gap: 4px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.ask-column-suggestion.present {
  background: transparent;
}

.ask-column-suggestion div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ask-column-suggestion strong,
.ask-column-suggestion span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-column-suggestion span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ask-formula-preview {
  display: grid;
  gap: 7px;
  padding: 2px 0;
}

.ask-formula-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ask-formula-preview-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ask-formula-preview-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ask-formula-example-list {
  display: grid;
  gap: 0;
}

.ask-formula-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.ask-formula-example span,
.ask-formula-example strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.ask-formula-example span {
  color: var(--muted);
}

.ai-builder {
  display: grid;
  gap: 13px;
}

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

.ai-builder-steps span {
  min-width: 0;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.ai-builder-steps span.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.ai-builder-steps span.done {
  border-color: #b7e5dc;
  background: var(--teal-soft);
  color: var(--teal);
}

.ai-builder-section,
.ai-builder-mini-section {
  display: grid;
  gap: 10px;
}

.run-condition-editor {
  display: grid;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-builder-field {
  display: grid;
  gap: 6px;
}

.input-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.ai-builder-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-builder-field input,
.ai-builder-field select,
.ai-builder-field textarea,
.ai-output-row input,
.ai-output-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.ai-builder-field input,
.ai-builder-field select,
.ai-output-row input,
.ai-output-row select {
  min-height: 34px;
  padding: 0 9px;
}

.ai-builder-field textarea {
  min-height: 132px;
  padding: 9px;
  line-height: 1.45;
  resize: vertical;
}

.run-condition-editor .ai-builder-field textarea {
  min-height: 72px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
}

.run-condition-summary {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: #343941;
  font-size: 12px;
  line-height: 1.35;
}

.column-token-preview {
  display: grid;
  gap: 7px;
}

.column-token-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.column-token {
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.column-token svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.column-token span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-chip-list span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: #343941;
  font-size: 11.5px;
  font-weight: 750;
}

.ai-builder-output-list {
  display: grid;
  gap: 8px;
}

.ai-output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 32px;
  align-items: center;
  gap: 8px;
}

.linked-source-pill {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: #343941;
  font-size: 11.5px;
  font-weight: 760;
}

.linked-source-pill svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--violet);
}

.linked-source-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-worker-created {
  display: grid;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ai-worker-created strong {
  font-size: 14px;
  line-height: 1.2;
}

.ai-prompt-preview {
  max-height: 260px;
  overflow: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-alt);
  color: #2f353b;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.field-list.compact {
  margin-top: 2px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.delete-undo-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: max-content;
  max-width: min(520px, calc(100vw - 36px));
  min-height: 44px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: #e11d48;
  color: #fff;
  box-shadow: 0 14px 30px rgba(136, 19, 55, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.delete-undo-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.copy-notice {
  background: #0f766e;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.delete-undo-notice > span {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

.delete-undo-action,
.delete-undo-close {
  min-height: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.delete-undo-action {
  padding: 0 15px;
  font-size: 14px;
  font-weight: 850;
}

.delete-undo-close {
  width: 44px;
  display: grid;
  place-items: center;
}

.delete-undo-action:hover,
.delete-undo-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.delete-undo-close svg {
  width: 20px;
  height: 20px;
}

@keyframes filling-spinner-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .filling-spinner {
    animation: none;
  }

  .column-progress-spinner {
    animation: none;
  }

  .ask-thinking-pulse {
    animation: none;
  }

  .ask-reflection-dots::after,
  .ask-reflection-line {
    animation: none;
  }

  .ask-reflection-line {
    opacity: 1;
    transform: none;
  }

  .business-form-tab,
  .business-form-header-actions .button,
  .business-form-title-card,
  .business-form-question-card,
  .business-form-drag-handle,
  .business-form-question-title-edit,
  .business-form-section-title-edit,
  .business-form-type-picker,
  .business-form-option-row input,
  .business-form-option-drag,
  .business-form-card-toolbar,
  .business-form-card-toolbar .icon-button,
  .business-form-add-option,
  .business-form-settings-card-clean,
  .business-form-settings-details summary,
  .business-form-settings-details summary i,
  .business-form-settings-details summary svg,
  .business-form-settings-content,
  .business-form-data-map,
  .business-form-setting-row input,
  .business-form-setting-row select,
  .home-layout,
  .worker-store-sidebar-body,
  .worker-store-sidebar-title-copy,
  .worker-store-row {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px minmax(0, 1fr) auto 48px;
    grid-template-areas:
      "topbar"
      "workspace"
      "evidence"
      "tabletabs";
  }

  .app-shell.outreach-wide-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.details-closed {
    grid-template-rows: 56px minmax(0, 1fr) 48px;
    grid-template-areas:
      "topbar"
      "workspace"
      "tabletabs";
  }

  .evidence-panel {
    max-height: 340px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

  .billing-manage-card {
    min-height: 500px;
  }

  .company-search-layout.filters {
    grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
  }

  .company-search-assistant {
    display: none;
  }

  .home-layout {
    grid-template-columns: minmax(280px, 32vw) minmax(0, 1fr);
  }

  .home-view.worker-store-sidebar-collapsed .home-layout,
  .boot-worker-store-collapsed .home-view .home-layout {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .table-list-header,
  .table-list-row {
    grid-template-columns: minmax(180px, 1fr) minmax(130px, 190px) minmax(110px, 170px) 36px;
    column-gap: 12px;
  }

  .worker-store-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .worker-store-row-meta {
    display: none;
  }

  .worker-store-toggle {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .outreach-campaign-body,
  .outreach-step-grid,
  .campaign-message-step-head,
  .campaign-attribute-grid,
  .campaign-output-config-head,
  .campaign-slot-settings-grid,
  .campaign-slot-config-row,
  .campaign-variable-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .outreach-campaign-modal {
    max-height: calc(100vh - 20px);
  }

  .integrations-menu {
    width: calc(100vw - 20px);
  }

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

  .billing-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .billing-modal-header {
    align-items: flex-start;
    padding: 12px;
  }

  .billing-modal-header h2 {
    font-size: 18px;
  }

  .billing-content {
    padding: 12px;
  }

  .billing-plan-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-current-chip {
    justify-items: start;
  }

  .billing-summary-grid,
  .billing-plan-grid,
  .billing-manage-grid,
  .usage-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .billing-summary-card strong,
  .billing-plan-price {
    font-size: 18px;
  }

  .billing-manage-card {
    min-height: 0;
    padding: 12px;
  }

  .billing-manage-card h3 {
    font-size: 15px;
  }

  .billing-manage-card p,
  .billing-feature-list span {
    font-size: 14px;
  }

  .billing-manage-price strong {
    font-size: 26px;
  }

  .billing-plan-select select,
  .billing-plan-static-select {
    font-size: 17px;
  }

  .company-search-workbench {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .company-search-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .company-search-toolbar-actions {
    width: 100%;
  }

  .company-search-toolbar-actions .button {
    flex: 1;
    justify-content: center;
  }

  .company-search-layout.filters,
  .company-search-layout.enrichments {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .company-search-panel,
  .company-search-preview-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .company-search-preview-panel {
    min-height: 360px;
  }

  .company-search-field-grid,
  .company-search-range-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-search-create-button {
    position: static;
  }

  .company-search-enrichments {
    padding-bottom: 16px;
  }

  .company-search-enrichment-option {
    grid-template-columns: 20px 34px minmax(0, 1fr);
  }

  .company-search-enrichment-option small {
    grid-column: 3;
    justify-self: start;
  }

  .home-source-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-layout {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .home-view.worker-store-sidebar-collapsed .home-layout,
  .boot-worker-store-collapsed .home-view .home-layout {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .home-worker-store-panel {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(320px, calc(100vw - 48px));
    height: calc(100vh - 56px);
    padding-inline: 10px;
    box-shadow: 18px 0 36px rgba(16, 24, 40, 0.14);
    transition:
      width 240ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 180ms ease;
  }

  .home-view.worker-store-sidebar-collapsed .home-worker-store-panel,
  .boot-worker-store-collapsed .home-view .home-worker-store-panel {
    width: 58px;
    padding-inline: 8px;
    box-shadow: 8px 0 24px rgba(16, 24, 40, 0.06);
  }

  .home-main {
    padding: 18px 10px 0;
  }

  .home-head {
    align-items: stretch;
    flex-direction: column;
    margin-inline: 10px;
  }

  .home-create {
    justify-content: stretch;
  }

  .home-search-wrap {
    width: 100%;
  }

  .home-ask-panel {
    width: auto;
    margin-inline: 10px;
  }

  .home-source-panel {
    margin-inline: 10px;
    margin-top: 27px;
    padding: 0;
  }

  .worker-store-list {
    max-height: none;
  }

  .worker-store-sidebar-title {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .worker-store-row-icon {
    width: 32px;
    height: 32px;
  }

  .home-view.worker-store-sidebar-collapsed .worker-store-collapse-button,
  .boot-worker-store-collapsed .home-view .worker-store-collapse-button {
    left: 12px;
  }

  .usage-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .usage-actions {
    justify-content: space-between;
  }

  .usage-ledger-head {
    display: none;
  }

  .usage-ledger-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    align-items: start;
  }

  .usage-ledger-row time,
  .usage-ledger-source {
    grid-column: 1;
  }

  .usage-ledger-amount,
  .usage-ledger-balance {
    grid-column: 2;
  }

  .hubspot-import-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    min-height: 0;
  }

  .hubspot-import-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hubspot-import-steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 1fr);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hubspot-import-panel {
    padding: 10px;
  }

  .hubspot-preview-grid,
  .hubspot-import-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .make-inbound-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    min-height: 0;
  }

  .business-form-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    min-height: 0;
  }

  .business-form-embed-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-form-modal.embed-tab .business-form-mapping {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .business-form-embed-panel.tally-like {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .business-form-embed-sidebar {
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .business-form-embed-main {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .business-form-embed-browser-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-form-embed-preview-head {
    padding: 20px 18px 12px;
  }

  .business-form-embed-preview-head span {
    font-size: 24px;
  }

  .business-form-embed-host-preview {
    margin: 0 14px 18px;
    min-height: 560px;
  }

  .business-form-embed-host-scroll {
    gap: 22px;
    padding: 18px;
  }

  .business-form-embed-host-grid,
  .business-form-embed-host-grid.bottom-grid,
  .business-form-embed-host-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-form-embed-host-preview.popup,
  .business-form-embed-host-preview.popup .business-form-embed-host-scroll,
  .business-form-embed-host-preview.full_page {
    min-height: 620px;
  }

  .business-form-embed-host-preview.popup.position-bottom_right .business-form-embed-final-stage,
  .business-form-embed-host-preview.popup.position-bottom_left .business-form-embed-final-stage {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .business-form-embed-preview.popup .business-form-embed-page-copy {
    width: 100%;
  }

  .business-form-modal .ai-filter-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .business-form-tabs,
  .business-form-header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .business-form-body {
    overflow: auto;
  }

  .business-form-google-builder {
    padding: 10px;
  }

  .business-form-title-card,
  .business-form-question-card {
    padding-inline: 16px;
  }

  .business-form-title-edit {
    font-size: 28px;
  }

  .business-form-question-topline,
  .business-form-start-actions,
  .business-form-template-layout,
  .business-form-setting-row,
  .business-form-settings-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-form-start-screen,
  .business-form-template-screen {
    padding: 18px;
  }

  .business-form-start-panel {
    padding: 22px 18px;
  }

  .business-form-template-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-form-settings-card-clean {
    padding: 22px 18px 12px;
  }

  .business-form-settings-details summary {
    min-height: 92px;
  }

  .business-form-settings-details summary strong {
    font-size: 19px;
  }

  .business-form-settings-details summary small {
    font-size: 14px;
  }

  .business-form-settings-content,
  .business-form-data-map {
    padding-left: 0;
  }

  .business-form-card-toolbar {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, 34px);
    margin: 12px auto 0;
    justify-content: center;
  }

  .business-form-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-form-question-rail,
  .business-form-editor-panel,
  .business-form-preview-panel {
    min-height: 220px;
  }

  .business-form-grid,
  .business-form-editor-grid,
  .business-form-url-row,
  .business-form-footer,
  .make-inbound-url-row,
  .make-inbound-mapping-head,
  .make-inbound-mapping-row,
  .make-inbound-column-target,
  .make-inbound-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .make-inbound-mapping-head {
    display: none;
  }

  .campaign-message-step-actions {
    justify-content: flex-start;
  }

  .app-shell {
    grid-template-rows: auto minmax(0, 1fr) auto 48px;
  }

  .app-shell.details-closed {
    grid-template-rows: auto minmax(0, 1fr) 48px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    min-height: 104px;
    align-content: center;
    padding: 10px;
  }

  .topbar-brand {
    width: 100%;
  }

  .topbar-mode-slot {
    width: 100%;
    justify-content: flex-start;
    justify-self: stretch;
  }

  .breadcrumb {
    flex: 1 1 auto;
    font-size: 13px;
    gap: 6px;
  }

  .files-menu {
    width: calc(100vw - 20px);
    max-height: min(420px, calc(100vh - 96px));
  }

  .files-menu-list {
    max-height: min(348px, calc(100vh - 144px));
  }

  .menu .files-menu-item {
    min-height: 36px;
    font-size: 12.5px;
  }

  .breadcrumb-button,
  .table-title-button {
    min-height: 36px;
    gap: 7px;
    padding: 0 5px;
  }

  #activeTableCrumb {
    max-width: 46vw;
  }

  .topbar-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
  }

  .home-head {
    align-items: stretch;
    flex-direction: column;
    margin: 0;
  }

  .home-create {
    align-items: stretch;
    flex-direction: row;
    justify-content: flex-start;
  }

  .home-new-wrap,
  .home-new-wrap .button {
    width: auto;
  }

  .home-new-menu {
    right: auto;
    left: 0;
    width: calc(100vw - 36px);
  }

  .home-name-input {
    width: 100%;
  }

  .home-search-wrap {
    width: min(100%, 360px);
  }

  .home-folder-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .home-folder-actions,
  .home-folder-actions .home-create {
    width: 100%;
  }

  .home-folder-actions .home-search-wrap {
    flex: 1 1 auto;
    width: auto;
  }

  .home-ask-panel {
    width: auto;
    margin: 8px 0 0;
  }

  .home-ask-form {
    min-height: 44px;
    gap: 8px;
  }

  .home-ask-form textarea {
    font-size: 14px;
    line-height: 20px;
  }

  .home-ask-result {
    max-height: min(360px, calc(100vh - 190px));
  }

  .home-source-panel {
    margin: 27px 0 0;
    padding: 0;
    border-radius: 0;
  }

  .home-source-panel h3 {
    display: none;
  }

  .home-source-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-source-card {
    min-height: 58px;
    gap: 6px;
    font-size: 13px;
  }

  .home-worker-store-panel {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 12px;
  }

  .worker-store-drawer {
    width: min(100vw, 420px);
  }

  .table-list {
    margin: 27px 0 0;
    overflow-x: auto;
  }

  .table-list-grid {
    min-width: 0;
    padding: 0;
    border-radius: 12px;
  }

  .table-list-header {
    display: none;
  }

  .table-list-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    column-gap: 8px;
    min-height: 58px;
    padding: 6px 16px;
  }

  .table-list-name {
    grid-column: 1;
    min-height: 28px;
    gap: 10px;
    padding: 0 6px;
  }

  .table-list-owner,
  .table-list-modified {
    grid-column: 1;
    padding-left: 43px;
    font-size: 13px;
  }

  .table-list-owner-avatar {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  .table-list-delete {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .table-toolbar {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-left,
  .toolbar-right,
  .metric-line {
    flex-wrap: wrap;
  }

  .toolbar-left {
    width: 100%;
  }

  .table-active-filters,
  .table-columns-wrap,
  .table-sort-wrap {
    max-width: 100%;
  }

  .table-columns-menu {
    width: calc(100vw - 20px);
  }

  .column-view-row {
    grid-template-columns: 16px 20px 20px minmax(0, 1fr) 48px;
  }

  .state-chip,
  .state-chip-group {
    max-width: 100%;
  }

  .toolbar-right {
    min-width: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .ai-filter-slot {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .ai-filter-summary {
    display: none;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .ai-filter-modal-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ai-filter-name-input {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
  }

  .ai-filter-prompt-row,
  .ai-filter-rule {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-filter-rule-label {
    display: none;
  }

  .ai-filter-modal-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .connection-map-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    min-height: 0;
  }

  .connection-map-header {
    align-items: stretch;
    flex-direction: column;
  }

  .connection-map-title-block h2 {
    max-width: 100%;
  }

  .connection-map-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .connection-map-control {
    flex: 1 1 140px;
  }

  .connection-map-control select {
    width: 100%;
  }

  .connection-map-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(180px, 34vh);
  }

  .connection-map-details {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .delete-confirm-modal,
  .table-rename-modal {
    min-height: 0;
    gap: 18px;
    padding: 20px;
  }

  .delete-confirm-copy h2 {
    font-size: 16px;
  }

  .delete-confirm-copy p {
    font-size: 13px;
  }

  .delete-impact-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .delete-impact-item small {
    justify-self: start;
  }

  .delete-confirm-actions {
    justify-content: stretch;
    gap: 10px;
  }

  .delete-confirm-actions .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    font-size: 13px;
  }

  .delete-undo-notice {
    right: 12px;
    bottom: 14px;
    width: auto;
    max-width: calc(100vw - 24px);
    min-height: 42px;
  }

  .delete-undo-notice > span {
    flex: 1 1 auto;
    padding: 0 12px;
    font-size: 12.5px;
    white-space: normal;
  }

  .delete-undo-action {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .delete-undo-close {
    width: 42px;
    min-height: 42px;
  }

  .delete-undo-close svg {
    width: 18px;
    height: 18px;
  }

  .ai-filter-builder-actions {
    padding-left: 0;
  }

  .ask-next-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .ask-thread-composer {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .ask-thread-message {
    max-width: 100%;
  }

  .ask-undo-panel,
  .ask-history-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .ask-history-icon {
    display: none;
  }
}
