/* [project]/apps/frontend/app/globals.css [app-client] (css) */
:root {
  color: #17212b;
  background: #eef2f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

button:disabled, input:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.prototype-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  color: #f8fafc;
  background: #111827;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  display: flex;
}

.workspace-mark {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.nav-item {
  color: #cbd5e1;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.nav-item.active, .nav-item:focus, .nav-item:hover {
  color: #fff;
  background: #1f2937;
}

.workspace {
  gap: 18px;
  padding: 24px;
  display: grid;
}

.workspace-view {
  gap: 16px;
  display: grid;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}

.eyebrow {
  color: #0f766e;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, p {
  margin: 0;
}

h1 {
  letter-spacing: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  letter-spacing: 0;
  font-size: 15px;
  line-height: 1.3;
}

.tenant-context {
  color: #475569;
  justify-items: end;
  gap: 3px;
  font-size: 13px;
  display: grid;
}

.tenant-context strong {
  color: #17212b;
}

.notice {
  background: #fff;
  border: 1px solid #d8dee6;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 12px;
  display: flex;
}

.notice.success {
  border-left-color: #0f766e;
}

.notice.error {
  border-left-color: #dc2626;
}

.notice span {
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

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

.dashboard-grid {
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
  display: grid;
}

.journey-panel, .wizard-shell, .advanced-panel, .onboarding-page {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
}

.onboarding-page {
  gap: 16px;
  padding: 16px;
  display: grid;
}

.journey-panel {
  align-content: start;
  gap: 16px;
  padding: 18px;
  display: grid;
}

.journey-panel h2 {
  font-size: 24px;
}

.progress-wrap {
  gap: 8px;
  display: grid;
}

.progress-wrap span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-track div {
  background: #0f766e;
  height: 100%;
}

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

.setup-card {
  color: #17212b;
  text-align: left;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  align-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  display: grid;
}

.setup-card.active {
  border-color: #0f766e;
  box-shadow: inset 3px 0 #0f766e;
}

.setup-card.complete {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.setup-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.setup-card strong {
  font-size: 15px;
}

.metric-card, .surface {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
}

.metric-card {
  gap: 8px;
  min-height: 108px;
  padding: 16px;
  display: grid;
}

.metric-card span, .surface-heading span, .metric-card small {
  color: #64748b;
  font-size: 13px;
}

.metric-card strong {
  letter-spacing: 0;
  font-size: 28px;
  line-height: 1;
}

.metric-card small {
  color: #0f766e;
  font-weight: 700;
}

.access-grid, .data-grid, .work-grid {
  gap: 16px;
  display: grid;
}

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

.access-grid.single {
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
}

.auth-only {
  grid-template-columns: 1fr;
}

.auth-only .workspace {
  align-items: center;
  min-height: 100vh;
  display: grid;
}

.confirmation-surface {
  width: min(560px, 100%);
}

.button-link {
  color: #fff;
  background: #0f766e;
  border: 1px solid #0f766e;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.button-link.secondary {
  color: #0f766e;
  background: #fff;
}

.password-strength {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.password-strength-heading {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.password-strength-heading span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.password-strength ul {
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  display: grid;
}

.password-strength li {
  color: #64748b;
  font-size: 12px;
}

.password-strength li.met {
  color: #0f766e;
  font-weight: 800;
}

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

.strength-meter span {
  background: #d8dee6;
  border-radius: 999px;
  height: 8px;
}

.password-strength[data-score="1"] .strength-meter span.active, .password-strength[data-score="2"] .strength-meter span.active {
  background: #b45309;
}

.password-strength[data-score="3"] .strength-meter span.active {
  background: #0e7490;
}

.password-strength[data-score="4"] .strength-meter span.active {
  background: #0f766e;
}

.data-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.work-grid {
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1fr) minmax(260px, .85fr);
}

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

.wizard-shell {
  gap: 16px;
  padding: 16px;
  display: grid;
}

.step-tabs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  display: grid;
}

.step-tabs button {
  color: #475569;
  background: none;
  border-color: #0000;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  display: flex;
}

.step-tabs button.active, .step-tabs button:hover, .step-tabs button:focus {
  color: #17212b;
  background: #fff;
  border-color: #cbd5e1;
}

.step-tabs button.complete {
  color: #0f766e;
}

.step-tabs button span {
  background: #e2e8f0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: inline-flex;
}

.step-tabs button.active span, .step-tabs button.complete span {
  color: #fff;
  background: #0f766e;
}

.wizard-grid, .advanced-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.wizard-grid.two, .advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.advanced-panel {
  padding: 0;
}

.advanced-panel summary {
  color: #17212b;
  cursor: pointer;
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
}

.advanced-grid {
  border-top: 1px solid #e2e8f0;
  padding: 16px;
}

.span-2 {
  grid-column: span 2;
}

.span-full {
  grid-column: 1 / -1;
}

.full-width-action {
  width: 100%;
}

.surface {
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  display: grid;
}

.surface-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

label {
  gap: 6px;
  display: grid;
}

label span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

input, select, textarea {
  color: #17212b;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.45;
}

button {
  color: #fff;
  background: #0f766e;
  border: 1px solid #0f766e;
  border-radius: 6px;
  min-height: 40px;
  padding: 0 13px;
  font-weight: 800;
}

.button-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.button-row.align-end {
  align-items: end;
}

.button-row button[type="button"], .notice button, .select-row {
  color: #17212b;
  background: #fff;
  border-color: #cbd5e1;
}

.button-row button[type="button"]:hover, .notice button:hover, .select-row:hover, .select-row:focus {
  border-color: #0f766e;
}

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

.static-field {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 5px;
  padding: 10px 12px;
  display: grid;
}

.static-field > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.static-field > strong {
  color: #17212b;
  font-size: 14px;
}

.static-field > small {
  color: #64748b;
  line-height: 1.35;
}

.custom-field-editor {
  border-top: 1px solid #e2e8f0;
  gap: 12px;
  padding-top: 14px;
  display: grid;
}

.custom-field-create {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 12px;
  padding: 12px;
  display: grid;
}

.custom-field-list {
  gap: 12px;
  display: grid;
}

.custom-field-config {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 12px;
  padding: 12px;
  display: grid;
}

.compact-heading h3 {
  margin: 0;
  font-size: 17px;
}

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

.custom-field-grid small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.inline-check {
  align-items: center;
  gap: 8px;
  min-height: 40px;
  display: flex;
}

.inline-check input {
  width: 16px;
  min-height: auto;
}

.option-stack {
  gap: 8px;
  display: grid;
}

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

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

.check-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  display: flex;
}

.check-row input {
  flex: none;
  width: 16px;
  min-height: auto;
}

.check-row span {
  color: #334155;
  gap: 2px;
  font-size: 13px;
  display: grid;
}

.check-row small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.check-row strong {
  color: #17212b;
  font-size: 14px;
}

.checkbox-row {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.checkbox-row input[type="checkbox"] {
  flex: none;
  width: 16px;
  min-height: auto;
  margin-top: 3px;
}

.checkbox-row span {
  color: #334155;
  gap: 2px;
  font-size: 13px;
  line-height: 1.35;
  display: grid;
}

.checkbox-row small {
  color: #64748b;
}

.list-stack, .thread-list {
  gap: 10px;
  display: grid;
}

.empty-state, .result-note {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.workspace-placeholder {
  max-width: 920px;
  margin: 0;
}

.workspace-page-state {
  color: #334155;
  background: #fff;
  border: 1px solid #d8dee6;
  border-left: 4px solid #64748b;
  border-radius: 8px;
  align-items: start;
  gap: 4px;
  padding: 12px;
  line-height: 1.4;
  display: grid;
}

.workspace-page-state strong {
  color: #17212b;
  font-size: 14px;
}

.workspace-page-state span {
  color: #64748b;
  font-size: 13px;
}

.workspace-page-state.loading, .workspace-page-state.action {
  border-left-color: #2563eb;
}

.workspace-page-state.blocked, .workspace-page-state.error {
  border-left-color: #dc2626;
}

.workspace-page-state.success {
  border-left-color: #0f766e;
}

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

.placeholder-checklist span {
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.drop-zone {
  color: #475569;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  display: grid;
}

.drop-zone.active {
  background: #ecfdf5;
  border-color: #0f766e;
}

.drop-zone input {
  max-width: 360px;
  margin-top: 10px;
}

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

.import-preview-grid span {
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.macro-preview-box {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.macro-preview-box p {
  overflow-wrap: anywhere;
  margin: 0;
}

.merge-options-grid {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  display: grid;
}

.compact-check {
  align-content: center;
}

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

.choice-card {
  color: #1e293b;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  align-items: start;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  display: grid;
}

.choice-card.active {
  background: #f0fdfa;
  border-color: #0f766e;
  box-shadow: inset 3px 0 #0f766e;
}

.choice-card strong {
  font-size: 15px;
}

.choice-card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.mapping-grid {
  gap: 10px;
  display: grid;
}

.mapping-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 220px) minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.mapping-row small {
  color: #64748b;
  grid-column: 1 / -1;
  font-size: 12px;
}

.mapping-row strong, .mapping-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}

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

.mapping-custom-config textarea {
  min-height: 72px;
}

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

.metric-grid article {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 4px;
  padding: 14px;
  display: grid;
}

.metric-grid strong {
  color: #17212b;
  font-size: 24px;
}

.metric-grid span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.modal-backdrop {
  z-index: 30;
  background: #0f172a6b;
  place-items: start center;
  padding: 32px 18px;
  display: grid;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.modal-panel {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 16px;
  width: min(100%, 1040px);
  max-width: 1040px;
  padding: 18px;
  display: grid;
  box-shadow: 0 18px 48px #0f172a2e;
}

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

.table-wrap {
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 880px;
}

.data-table th, .data-table td {
  color: #334155;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 10px;
  font-size: 13px;
}

.data-table th {
  color: #475569;
  text-transform: uppercase;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.data-table td small {
  color: #64748b;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  display: block;
}

.data-table tr.clickable-row {
  cursor: pointer;
}

.data-table tr.clickable-row:hover td, .data-table tr.clickable-row:focus td {
  background: #f0fdfa;
}

.data-table tr.clickable-row:focus {
  outline-offset: -2px;
  outline: 2px solid #0f766e;
}

.link-button, .table-sort-button, .table-action {
  color: #0f766e;
  text-align: left;
  background: none;
  border: 0;
  min-height: auto;
  padding: 0;
}

.link-button {
  font-size: 14px;
}

.table-sort-button {
  color: #475569;
  text-transform: uppercase;
  font-size: 12px;
}

.table-action {
  border: 1px solid #99f6e4;
  border-radius: 6px;
  padding: 7px 10px;
}

.table-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.table-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.session-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.session-quick-filters {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}

.session-quick-filters button.active {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.session-table {
  min-width: 1080px;
}

.session-detail-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  display: grid;
}

.session-summary-panel, .session-progress-panel, .session-timeline-panel, .session-inspector-panel {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.session-summary-panel, .session-timeline-panel {
  align-content: start;
}

.session-progress-list, .session-event-list, .session-inspector-stack {
  gap: 10px;
  display: grid;
}

.session-progress-node {
  color: #17212b;
  text-align: left;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  display: grid;
}

.session-progress-node.completed, .session-progress-node.succeeded, .session-progress-node.success {
  border-left-color: #0f766e;
}

.session-progress-node.current, .session-progress-node.running, .session-progress-node.scheduled, .session-progress-node.waiting {
  border-left-color: #ca8a04;
}

.session-progress-node.failed, .session-progress-node.error, .session-progress-node.expired, .session-progress-node.cancelled {
  border-left-color: #dc2626;
}

.session-progress-node.selected {
  box-shadow: 0 0 0 3px #0f766e33;
}

.session-progress-node span, .session-progress-node small, .session-event-list span, .session-event-list small, .session-node-event-card small, .session-wait-card span, .session-wait-card small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.session-event-list article, .session-node-event-card, .session-wait-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.json-block {
  color: #e2e8f0;
  white-space: pre-wrap;
  background: #0f172a;
  border-radius: 8px;
  max-height: 260px;
  margin: 8px 0 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.json-snippet {
  color: #e2e8f0;
  white-space: pre-wrap;
  background: #0f172a;
  border-radius: 8px;
  max-height: 180px;
  margin: 0;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  overflow: auto;
}

.sender-strategy {
  color: #134e4a;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  gap: 6px;
  padding: 12px;
  line-height: 1.45;
  display: grid;
}

.sender-strategy span {
  color: #475569;
  font-size: 13px;
}

.wizard-stage-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.wizard-stage-list.compact-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-stage-list button, .wizard-stage-list span {
  color: #475569;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 58px;
  padding: 9px 10px;
  font-weight: 800;
}

.wizard-stage-list button {
  cursor: pointer;
  gap: 4px;
  display: grid;
}

.wizard-stage-list button.active {
  color: #134e4a;
  background: #f0fdfa;
  border-color: #0f766e;
  box-shadow: inset 3px 0 #0f766e;
}

.wizard-stage-list button.complete:not(.active) {
  background: #ecfdf5;
  border-color: #99f6e4;
}

.wizard-stage-list button.locked {
  color: #94a3b8;
  background: #f1f5f9;
}

.wizard-stage-list strong {
  font-size: 12px;
}

.wizard-stage-list button span {
  color: #64748b;
  background: none;
  border: 0;
  min-height: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
}

.campaign-stage-panel {
  gap: 14px;
  display: grid;
}

.campaign-stage-panel.full-bleed {
  margin-left: -2px;
  margin-right: -2px;
}

.funnel-builder-panel {
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 14px;
  padding: 14px;
  display: grid;
}

.funnel-builder-panel h3 {
  letter-spacing: 0;
  margin: 0;
  font-size: 15px;
}

.mini-canvas {
  background-color: #f8fafc;
  background-image: linear-gradient(#e2e8f0 1px, #0000 1px), linear-gradient(90deg, #e2e8f0 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 24px 24px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  min-height: 142px;
  padding: 16px;
  display: flex;
  overflow-x: auto;
}

.mini-node {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  flex: 0 0 170px;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
  display: grid;
}

.mini-node.agent {
  border-left-color: #2563eb;
}

.mini-node span {
  color: #64748b;
  text-transform: capitalize;
  font-size: 12px;
}

.node-palette-strip {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.node-palette-strip span {
  color: #334155;
  background: #eef2f5;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.funnel-workspace {
  grid-template-columns: var(--funnel-left-width, 240px) 8px minmax(0, 1fr) 8px
    var(--funnel-right-width, 300px);
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  gap: 0;
  min-height: 680px;
  display: grid;
  overflow: hidden;
}

.funnel-workspace.embedded {
  border-color: #dbe3ed;
  grid-column: 1 / -1;
  min-height: 620px;
}

.funnel-side-panel, .funnel-main-panel, .funnel-inspector {
  min-width: 0;
  padding: 14px;
}

.funnel-side-panel, .funnel-inspector {
  background: #f8fafc;
  align-content: start;
  gap: 14px;
  display: grid;
}

.funnel-side-panel {
  border-right: 1px solid #dbe3ed;
}

.funnel-inspector {
  border-left: 1px solid #dbe3ed;
  overflow-y: auto;
}

.funnel-resize-handle {
  cursor: col-resize;
  background: #edf2f7;
  border: 0;
  border-left: 1px solid #dbe3ed;
  border-right: 1px solid #dbe3ed;
  align-self: stretch;
  width: 8px;
  min-height: 100%;
  padding: 0;
  position: relative;
}

.funnel-resize-handle:after {
  content: "";
  opacity: 0;
  background: #94a3b8;
  border-radius: 999px;
  width: 2px;
  height: 36px;
  transition: opacity .12s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.funnel-resize-handle:hover, .funnel-resize-handle:focus-visible, .funnel-resize-handle.active {
  background: #dbeafe;
  outline: none;
}

.funnel-resize-handle:hover:after, .funnel-resize-handle:focus-visible:after, .funnel-resize-handle.active:after {
  opacity: 1;
}

.funnel-panel-resizing {
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
}

.funnel-main-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  display: grid;
}

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

.funnel-toolbar span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.funnel-list {
  gap: 8px;
  max-height: 330px;
  display: grid;
  overflow-y: auto;
}

.node-palette {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
  display: grid;
  overflow-x: auto;
}

.node-palette button {
  color: #17212b;
  text-align: left;
  background: #fff;
  border-color: #cbd5e1;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px;
  display: grid;
}

.node-palette button:hover, .node-palette button:focus {
  border-color: #0f766e;
}

.node-palette button.disabled {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.node-palette button span {
  color: #64748b;
  text-transform: capitalize;
  font-size: 11px;
}

.funnel-canvas {
  background-color: #f8fafc;
  background-image: linear-gradient(#e2e8f0 1px, #0000 1px), linear-gradient(90deg, #e2e8f0 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 24px 24px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  min-height: 460px;
  position: relative;
  overflow: auto;
}

.funnel-canvas-inner {
  min-height: 460px;
  position: relative;
}

.funnel-edge-layer {
  pointer-events: none;
  z-index: 1;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.funnel-edge-layer path {
  fill: none;
  pointer-events: stroke;
  stroke: #64748b;
  stroke-width: 2.5px;
}

.funnel-edge-layer path.selected {
  stroke: #0f766e;
  stroke-width: 4px;
}

.funnel-edge-layer text {
  fill: #475569;
  pointer-events: none;
  font-size: 11px;
  font-weight: 800;
}

.funnel-node {
  z-index: 2;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  gap: 8px;
  width: 190px;
  min-height: 96px;
  padding: 10px;
  display: grid;
  position: absolute;
  box-shadow: 0 8px 24px #0f172a14;
}

.funnel-node.agent {
  border-left-color: #2563eb;
}

.funnel-node.invalid {
  border-color: #dc2626;
}

.funnel-node.selected {
  box-shadow: 0 0 0 3px #0f766e38, 0 8px 24px #0f172a14;
}

.funnel-node header {
  align-items: start;
  gap: 3px;
  display: grid;
}

.funnel-node header span, .funnel-node small {
  color: #64748b;
  text-transform: capitalize;
  font-size: 11px;
  line-height: 1.35;
}

.node-port-row {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.node-port-row button {
  color: #334155;
  background: #eef2f5;
  border-color: #d8dee6;
  min-height: 28px;
  padding: 0 7px;
  font-size: 11px;
}

.config-stack, .validation-stack, .external-route-list, .effective-context, .funnel-session-list {
  gap: 10px;
  display: grid;
}

.condition-row {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.condition-row-title {
  color: #334155;
  font-size: 12px;
  line-height: 1.3;
}

.condition-row label {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.condition-row label span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.condition-row button {
  justify-self: stretch;
  width: 100%;
  min-height: 38px;
}

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

.config-field > span, .config-stack summary {
  color: #475569;
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 800;
}

.validation-note {
  color: #334155;
  border: 1px solid #dbe3ed;
  border-left: 4px solid #64748b;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.validation-note.error {
  border-left-color: #dc2626;
}

.validation-note.warning {
  border-left-color: #d97706;
}

.validation-note.success {
  border-left-color: #0f766e;
}

.field-error {
  color: #b91c1c;
  font-size: .82rem;
  line-height: 1.35;
}

.status-pill {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  margin-left: .4rem;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.status-pill.warning {
  color: #92400e;
  background: #f59e0b21;
  border-color: #d9770659;
}

.status-pill.success {
  color: #115e59;
  background: #ccfbf1;
  border-color: #5eead4;
}

.status-pill.error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.lock-detail-list {
  gap: .25rem;
  margin-top: .5rem;
  display: grid;
}

.external-route-list code {
  color: #e5e7eb;
  overflow-wrap: anywhere;
  background: #111827;
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  line-height: 1.4;
  display: block;
}

.effective-context {
  color: #134e4a;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.effective-context span {
  color: #475569;
}

.compact-dl.single {
  grid-template-columns: 1fr;
}

.compact-dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.compact-dl div {
  border-top: 1px solid #e2e8f0;
  gap: 4px;
  padding-top: 10px;
  display: grid;
}

dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 0;
  font-size: 14px;
}

.select-row, .thread-row, .inventory-card {
  text-align: left;
  border-radius: 8px;
  gap: 6px;
  padding: 12px;
  display: grid;
}

.select-row {
  width: 100%;
  min-height: 92px;
}

.select-row.selected {
  border-color: #0f766e;
  box-shadow: inset 3px 0 #0f766e;
}

.select-row span, .select-row small, .thread-row small, .thread-row time, .thread-row em, .inventory-card span, .inventory-card small {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.thread-row, .inventory-card {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
}

.thread-row {
  cursor: pointer;
}

.thread-row.selected, .thread-row:hover, .thread-row:focus {
  border-color: #0f766e;
  box-shadow: inset 3px 0 #0f766e;
}

.thread-row em {
  color: #0f766e;
  font-weight: 800;
}

.channel-pill {
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  justify-self: start;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.inbox-detail {
  align-content: start;
}

.timeline-list {
  gap: 10px;
  display: grid;
}

.memory-summary-grid, .filter-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  display: grid;
}

.memory-summary-grid {
  align-items: start;
}

.pill-row {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  display: flex;
}

.pill-row .status-pill {
  margin-left: 0;
}

.memory-summary-list, .manual-note-form {
  gap: 10px;
  margin-bottom: 14px;
  display: grid;
}

.manual-note-form button {
  justify-self: start;
}

.contact-memory-list {
  margin-top: 8px;
}

.timeline-message {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  gap: 7px;
  padding: 12px;
  display: grid;
}

.timeline-message.outbound {
  background: #ecfdf5;
  border-color: #99f6e4;
}

.timeline-message > div {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.timeline-message span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.timeline-message p {
  color: #17212b;
  font-size: 14px;
  line-height: 1.45;
}

.timeline-message small, .developer-disclosure summary {
  color: #64748b;
  font-size: 12px;
}

.developer-disclosure summary {
  cursor: pointer;
  font-weight: 800;
}

.developer-disclosure form {
  margin-top: 12px;
}

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

.inventory-grid.compact {
  grid-template-columns: 1fr;
}

.path-list {
  counter-reset: path;
  gap: 10px;
  margin: 0;
  padding: 0;
  display: grid;
}

.path-list li {
  background: #f8fafc;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
}

.path-list li:before {
  color: #fff;
  content: counter(path);
  counter-increment: path;
  background: #0f766e;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: inline-flex;
}

.tracking-domain-card {
  align-items: stretch;
}

.tracking-domain-card label {
  gap: 6px;
  display: grid;
}

.tracking-domain-card textarea {
  min-height: 64px;
}

.data-table td strong, .data-table td small {
  overflow-wrap: anywhere;
}

@media (max-width: 1220px) {
  .metrics, .metric-grid, .work-grid, .inventory-grid, .overview-grid, .wizard-stage-list, .wizard-grid, .advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid, .funnel-workspace {
    grid-template-columns: 1fr;
  }

  .funnel-resize-handle {
    display: none;
  }

  .funnel-side-panel, .funnel-inspector {
    border-left: 0;
    border-right: 0;
  }

  .node-palette {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .prototype-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    padding: 14px;
    overflow-x: auto;
  }

  .workspace-mark {
    margin: 0 10px 0 0;
  }

  .workspace {
    padding: 18px;
  }

  .topbar, .surface-heading, .notice {
    place-items: flex-start start;
    display: grid;
  }

  .tenant-context {
    justify-items: start;
  }

  .access-grid, .data-grid, .metrics, .metric-grid, .work-grid, .overview-grid, .import-preview-grid, .merge-options-grid, .placeholder-checklist, .choice-grid, .funnel-workspace, .setup-strip, .step-tabs, .wizard-grid, .wizard-grid.two, .advanced-grid, .two-column, .three-column, .check-grid, .compact-dl, .custom-field-grid, .wizard-stage-list, .inventory-grid, .table-toolbar, .session-filter-grid, .session-detail-grid, .mapping-row, .mapping-custom-config {
    grid-template-columns: 1fr;
  }

  .node-palette {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .span-2, .span-full {
    grid-column: auto;
  }
}

/*# sourceMappingURL=apps_frontend_app_globals_0k46f6n.css.map*/