:root {
  --bg: #f7f8fa;
  --bg-2: #f7f8fa;
  --ink: #1f2937;
  --ink-soft: #6b7280;
  --panel: #ffffff;
  --line: #e5e7eb;
  --hover-bg: #eef3f8;
  --accent: #6dc1f6;
  --accent-dark: #c9e265;
  --g: #c9e265;
  --b: #6dc1f6;
  --brand-gradient: linear-gradient(135deg, #c9e265, #6dc1f6);
  --brand-gradient-hover: linear-gradient(135deg, #b5d94f, #4fb0f2);
  --ok: #0f766e;
  --bad: #be123c;
  --warn: #b45309;
  --radius: 16px;
}

html[data-theme="dark"] {
  --bg: #040914;
  --bg-2: #091225;
  --ink: #eaf1ff;
  --ink-soft: #9aa9c2;
  --panel: #0d1628;
  --line: #20304b;
  --hover-bg: #13223a;
  --accent: #71b8ff;
  --accent-dark: #b3ea68;
  --g: #a6dd5e;
  --b: #63bfff;
  --brand-gradient: linear-gradient(135deg, #9ad24f, #56b6f5);
  --brand-gradient-hover: linear-gradient(135deg, #84c63a, #45a8ee);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body.public-form-page {
  background: var(--public-form-page-bg, var(--bg));
  background-color: var(--public-form-page-bg, var(--bg));
}
html[data-public-form-page="1"] {
  color-scheme: light;
}
body.public-form-page .background-orb {
  display: none;
}
body.public-form-page .gate-card:not(.public-form-card) {
  display: none;
}
body.app-viewport-lock {
  overflow: hidden;
}
html[data-theme="dark"] body.public-form-page {
  background: var(--public-form-page-bg, #ffffff) !important;
  color: var(--ink);
}
html[data-theme="dark"] body.public-form-page .public-form-shell,
html[data-theme="dark"] body.public-form-page .public-form-hero,
html[data-theme="dark"] body.public-form-page .public-form-form-card,
html[data-theme="dark"] body.public-form-page .public-form-thanks-card,
html[data-theme="dark"] body.public-form-page .public-form-result {
  color: var(--ink);
}
html[data-theme="dark"] body.public-form-page .gate-card.public-form-card {
  background: transparent;
}
body.public-form-page .public-form-status-shell {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: start center;
  padding: 24px 16px 32px;
}
body.public-form-page .public-form-status-panel {
  width: min(980px, 100%);
  min-height: auto;
  border-radius: 24px;
  border: 1px solid rgba(112, 145, 190, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 251, 255, 0.95));
  box-shadow:
    0 26px 70px rgba(20, 42, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(320px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 24px 28px;
  overflow: hidden;
  position: relative;
}
body.public-form-page .public-form-status-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(201, 226, 101, 0.14);
  pointer-events: none;
}
body.public-form-page .public-form-status-art {
  display: grid;
  place-items: center;
  min-height: 240px;
}
body.public-form-page .public-form-status-art svg {
  width: min(100%, 320px);
  height: auto;
  overflow: visible;
}
body.public-form-page .public-form-status-copy {
  padding: 10px 10px 10px 6px;
}
body.public-form-page .public-form-status-copy .eyebrow {
  margin-bottom: 12px;
}
body.public-form-page .public-form-status-copy h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
  color: #1f2937;
}
body.public-form-page .public-form-status-copy .subhead {
  max-width: 34rem;
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
}
@media (max-width: 920px) {
  body.public-form-page .public-form-status-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px 18px 18px;
  }
  body.public-form-page .public-form-status-art {
    min-height: 230px;
  }
  body.public-form-page .public-form-status-copy h1 {
    font-size: clamp(36px, 11vw, 52px);
  }
}
html[data-theme="dark"] body {
  background:
    radial-gradient(920px 520px at 10% -10%, rgba(78, 132, 255, 0.15), transparent 60%),
    radial-gradient(780px 520px at 92% 92%, rgba(163, 230, 53, 0.12), transparent 62%),
    linear-gradient(180deg, #040914, #071224 58%, #091325);
}

.theme-mode-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(109, 193, 246, 0.08);
}
.theme-mode-btn[data-mode="dark"],
html[data-theme="dark"] .theme-mode-btn {
  background: rgba(10, 18, 31, 0.82);
}
.theme-mode-btn:hover {
  background: var(--hover-bg);
}
.header-theme-btn span {
  font-size: 19px;
  line-height: 1;
}
.header-theme-btn {
  flex: 0 0 auto;
}
.copilot-launcher-btn {
  width: auto;
  min-width: 94px;
  padding: 0 14px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.24), rgba(109, 193, 246, 0.22)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(109, 193, 246, 0.12),
    0 10px 20px rgba(16, 42, 67, 0.08);
}
.copilot-launcher-btn:hover {
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.34), rgba(109, 193, 246, 0.3)),
    rgba(255, 255, 255, 0.98);
}
.copilot-launcher-btn span {
  font-size: 13px;
  line-height: 1;
}
.header-wallet-btn {
  width: auto;
  min-width: 0;
  padding: 0 10px;
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.18), rgba(109, 193, 246, 0.18)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(109, 193, 246, 0.1),
    0 10px 20px rgba(16, 42, 67, 0.07);
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}
.header-wallet-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, transparent 60%),
    linear-gradient(135deg, rgba(201, 226, 101, 0.08), rgba(109, 193, 246, 0.08));
  transform: translateX(-22%);
}
.header-wallet-btn.is-ready {
  animation: headerWalletIdlePulse 6.5s ease-in-out infinite;
}
.header-wallet-btn.is-ready::before {
  opacity: 1;
  animation: headerWalletSheen 9s linear infinite;
}
.header-wallet-btn.is-low {
  box-shadow:
    inset 0 0 0 1px rgba(251, 191, 36, 0.22),
    0 0 0 1px rgba(251, 191, 36, 0.08),
    0 12px 22px rgba(251, 191, 36, 0.14);
  animation: headerWalletWarnPulse 1.7s ease-in-out infinite;
}
.header-wallet-btn.is-low::before {
  opacity: 1;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 237, 160, 0.22) 45%, transparent 60%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08));
  animation: headerWalletWarnSheen 2.4s ease-in-out infinite;
}
.header-wallet-btn.is-empty {
  box-shadow:
    inset 0 0 0 1px rgba(239, 68, 68, 0.22),
    0 0 0 1px rgba(239, 68, 68, 0.08),
    0 14px 24px rgba(239, 68, 68, 0.16);
  animation: headerWalletEmptyPulse 1.05s ease-in-out infinite;
}
.header-wallet-btn.is-empty::before {
  opacity: 1;
  background:
    linear-gradient(120deg, transparent 0%, rgba(254, 202, 202, 0.28) 45%, transparent 60%),
    linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(251, 146, 60, 0.08));
  animation: headerWalletCriticalSheen 1.4s ease-in-out infinite;
}
.header-wallet-btn:hover {
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.28), rgba(109, 193, 246, 0.24)),
    rgba(255, 255, 255, 0.98);
}
.header-wallet-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 86px;
  min-height: 26px;
  padding: 2px 0;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.header-wallet-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4f5f74;
  white-space: nowrap;
  opacity: 0.9;
  transform: none;
  transition: color 220ms ease;
}
.header-wallet-balance {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #26374d;
  opacity: 1;
  transform: none;
  transition: color 220ms ease;
}
@media (max-width: 920px) {
  .header-wallet-label {
    font-size: 9px;
  }
  .header-wallet-copy {
    min-width: 76px;
  }
  .header-wallet-balance {
    font-size: 10px;
  }
}
@keyframes headerWalletIdlePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      inset 0 0 0 1px rgba(109, 193, 246, 0.1),
      0 10px 20px rgba(16, 42, 67, 0.07);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      inset 0 0 0 1px rgba(109, 193, 246, 0.16),
      0 12px 22px rgba(16, 42, 67, 0.09);
  }
}
@keyframes headerWalletSheen {
  0% {
    transform: translateX(-24%);
  }
  70%,
  100% {
    transform: translateX(24%);
  }
}
@keyframes headerWalletWarnPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}
@keyframes headerWalletWarnSheen {
  0%,
  100% {
    transform: translateX(-18%);
  }
  50% {
    transform: translateX(18%);
  }
}
@keyframes headerWalletEmptyPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.01);
  }
}
@keyframes headerWalletCriticalSheen {
  0%,
  100% {
    transform: translateX(-14%);
  }
  50% {
    transform: translateX(14%);
  }
}
.left-nav .theme-mode-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}
.app-grid.flow-focus .left-nav .theme-mode-btn,
.app-grid.nav-collapsed .left-nav .theme-mode-btn {
  padding-left: 0;
  padding-right: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 42, 67, 0.28) transparent;
}

*::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(16, 42, 67, 0.25);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 42, 67, 0.4);
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(84px);
  pointer-events: none;
  opacity: 0.32;
}
.orb-a {
  width: 340px;
  height: 340px;
  background: #6dc1f6;
  left: -120px;
  top: -80px;
}
.orb-b {
  width: 400px;
  height: 400px;
  background: #c9e265;
  right: -140px;
  bottom: -100px;
}
html[data-theme="dark"] .background-orb {
  opacity: 0.2;
}

.shell {
  width: min(1380px, 96vw);
  margin: 20px auto 40px;
  position: relative;
}
.shell.app-shell {
  margin: 12px auto;
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

body.hub-embed-mode .shell {
  width: 100%;
  margin: 0;
}

body.hub-embed-mode .shell.app-shell {
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  gap: 4px;
  background: transparent;
}

body.hub-embed-mode .shell.app-shell .crm {
  margin-top: 0;
}

body.hub-embed-mode .shell.app-shell .crm-header,
body.hub-embed-mode .shell.app-shell .board-toolbar,
body.hub-embed-mode .shell.app-shell .sidebar,
body.hub-embed-mode .shell.app-shell .panel {
  border-radius: 12px;
}

.gate-card, .panel, .crm-header, .board-toolbar, .column {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.gate-card {
  padding: 24px;
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.12);
}
.gate-card.public-form-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.gate-card.authenticated {
  display: none;
}
.gate-card.compact {
  padding: 14px 16px;
}
.gate-card.compact h1 {
  font-size: 24px;
}
.gate-card.compact .subhead,
.gate-card.compact .hint {
  display: none;
}
.gate-card.compact .gate-form {
  margin-top: 10px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  margin: 0 0 8px;
  font-size: 12px;
}
.crm-header .eyebrow {
  display: block;
  min-height: 14px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: min(72vw, 820px);
}
h1, h2, h3, p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}
h2 {
  font-size: 30px;
}
.subhead {
  margin-top: 10px;
  color: var(--ink-soft);
}
.public-form-shell {
  display: grid;
  gap: 18px;
  width: min(100%, 1000px);
  margin: 24px auto 56px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 32px;
  overflow: hidden;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 12%, rgba(153, 177, 214, 0.12));
  box-shadow:
    0 24px 60px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  backdrop-filter: blur(14px) saturate(130%);
}
.public-form-shell .public-form-hero h1,
.public-form-shell .public-form-hero .subhead,
.public-form-shell .public-form-hero .eyebrow {
  color: var(--form-title-color, var(--ink));
}
.public-form-shell .public-form-hero .subhead {
  color: var(--form-description-color, var(--ink-soft));
}
.public-form-shell input,
.public-form-shell textarea,
.public-form-shell select {
  width: 100%;
}
.public-form-shell.layout-modern {
  gap: 16px;
}
.public-form-shell.layout-modern .public-form-hero,
.public-form-shell.layout-modern .public-form-form-card {
  position: relative;
  overflow: hidden;
}
.public-form-shell.layout-modern .public-form-form-card {
  gap: 12px;
  padding: clamp(14px, 2vw, 18px);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--form-brand-bg, #ffffff) 90%, #f8fbff));
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 14%, rgba(153, 177, 214, 0.16));
  box-shadow:
    0 18px 36px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  backdrop-filter: blur(16px) saturate(140%);
}
.public-form-shell.layout-modern .public-form-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}
.public-form-shell.layout-modern .public-form-form-card > * {
  position: relative;
  z-index: 1;
}
.public-form-shell.layout-classic {
  width: min(100%, 860px);
  gap: 0;
  padding: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--form-brand-bg, #ffffff) 98%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 18%, rgba(153, 177, 214, 0.22));
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.07);
}
.gate-card.public-form-card {
  background: transparent;
}
.public-form-hero {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 18px 22px 16px;
  border-radius: 22px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  background:
    radial-gradient(110% 130% at 0% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 6%, transparent), transparent 42%),
    radial-gradient(110% 130% at 100% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--form-brand-bg, #ffffff) 92%, #f8fbff));
  box-shadow: none;
}
.public-form-hero.cover-enabled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.22)),
    var(--cover-image, none) var(--cover-image-position, center) / cover no-repeat;
}
.public-form-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.66) 72%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}
.public-form-hero.cover-enabled::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.24) 72%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}
.public-form-hero > *,
.public-form-hero.cover-enabled > * {
  position: relative;
  z-index: 1;
}
.public-form-hero-copy {
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.public-form-header-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(16, 42, 67, 0.12);
}
.public-form-hero .public-form-meta {
  margin-top: 6px;
}
.public-form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}
.public-form-form-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--form-brand-bg, #ffffff) 92%, #f8fbff));
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 10%, rgba(153, 177, 214, 0.16));
  box-shadow:
    0 12px 26px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}
.public-form-actions button {
  background: var(--form-submit-color, var(--accent));
  color: var(--form-submit-text-color, #ffffff);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--form-submit-color, var(--accent)) 28%, transparent);
}
.public-form-actions button:hover,
.public-form-actions button:focus-visible {
  background: color-mix(in srgb, var(--form-submit-color, var(--accent)) 90%, #ffffff);
}
.public-form-shell.layout-classic .public-form-hero {
  min-height: 118px;
  padding: 22px 24px;
  border-width: 0 0 1px;
  border-radius: 0;
  border-color: color-mix(in srgb, var(--accent, #6dc1f6) 16%, rgba(153, 177, 214, 0.18));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, #6dc1f6) 8%, rgba(255, 255, 255, 0.98)), rgba(255, 255, 255, 0.94)),
    color-mix(in srgb, var(--form-brand-bg, #ffffff) 96%, #ffffff);
  box-shadow: none;
}
.public-form-shell.layout-classic .public-form-hero.cover-enabled {
  min-height: 156px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.34)),
    var(--cover-image, none) var(--cover-image-position, center) / cover no-repeat;
}
.public-form-shell.layout-classic .public-form-hero::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22));
}
.public-form-shell.layout-classic .public-form-hero-copy {
  gap: 6px;
  max-width: 560px;
}
.public-form-shell.layout-classic .public-form-header-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.public-form-shell.layout-classic .public-form-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
}
.public-form-shell.layout-classic .public-form-hero .subhead {
  margin-top: 2px;
  font-size: 14px;
}
.public-form-cover-badge,
.forms-preview-cover-badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #6dc1f6) 18%, rgba(255, 255, 255, 0.92));
  color: #17324d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.public-form-shell.layout-classic .public-form-form-card {
  gap: 12px;
  padding: 22px 24px 24px;
  border-width: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}
.public-form-shell.layout-classic .public-form-card-grid#public-form-submit-form {
  gap: 12px 14px;
}
.public-form-shell.layout-classic .public-form-text-block.heading h2 {
  font-size: 24px;
}
.public-form-shell.layout-classic .public-form-text-block.body p {
  font-size: 14px;
}
.public-form-card-grid {
  display: grid;
  gap: 12px;
}
.public-form-card-grid#public-form-submit-form,
.forms-preview-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.public-form-card-grid#public-form-submit-form > *,
.forms-preview-fields > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.public-form-card-grid#public-form-submit-form > .half,
.forms-preview-fields > .half {
  grid-column: span 1;
}
.public-form-card-grid#public-form-submit-form > .stack-form,
.forms-preview-fields > .forms-preview-field,
.forms-preview-fields > .forms-preview-toggle,
.forms-preview-fields > .forms-preview-hidden,
.public-form-card-grid#public-form-submit-form > .forms-choice-group {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 90%, #ffffff), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 84%, #f8fbff));
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 12%, rgba(153, 177, 214, 0.16));
  border-radius: 18px;
  padding: 12px 12px 10px;
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}
.public-form-card-grid#public-form-submit-form > .forms-checkbox-field {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-self: start;
}
.public-form-card-grid#public-form-submit-form > .forms-checkbox-field strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.public-form-card-grid#public-form-submit-form > .forms-checkbox-field .forms-checkbox-input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.public-form-card-grid#public-form-submit-form > .forms-checkbox-field .forms-checkbox-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .stack-form,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-checkbox-field,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .public-form-text-block {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 14%, rgba(153, 177, 214, 0.16));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--form-brand-bg, #ffffff) 90%, #f8fbff));
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .stack-form::before,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group::before,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-checkbox-field::before,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .public-form-text-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 38%);
  pointer-events: none;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .stack-form > *,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group > *,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-checkbox-field > *,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .public-form-text-block > * {
  position: relative;
  z-index: 1;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group {
  display: grid;
  gap: 10px;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .stack-form span,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group .forms-choice-group-title,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-checkbox-field strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group .forms-choice-group-title {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group .forms-choice-options {
  margin-top: 0;
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form input,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form textarea,
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(16, 42, 67, 0.06);
}
.public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form textarea {
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.public-form-input-frame {
  position: relative;
  min-width: 0;
}
.public-form-placeholder-marquee {
  display: none;
}
.public-form-input-frame.has-marquee-placeholder .public-form-placeholder-marquee {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  padding: 0 14px;
  color: rgba(115, 126, 141, 0.92);
  font: inherit;
  letter-spacing: 0.01em;
}
.public-form-input-frame.has-marquee-placeholder .public-form-placeholder-track {
  position: absolute;
  top: 50%;
  left: 100%;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: public-form-placeholder-marquee 9.5s linear infinite;
}
.public-form-input-frame.has-marquee-placeholder input::placeholder {
  color: transparent;
}
.public-form-input-frame.has-marquee-placeholder input:not(:placeholder-shown) ~ .public-form-placeholder-marquee,
.public-form-input-frame.has-marquee-placeholder:focus-within .public-form-placeholder-marquee {
  opacity: 0;
}
@keyframes public-form-placeholder-marquee {
  from {
    transform: translateY(-50%);
    left: 100%;
  }
  to {
    transform: translateY(-50%);
    left: -130%;
  }
}
.public-form-card-grid#public-form-submit-form > .forms-choice-group,
.forms-preview-fields > .forms-choice-group {
  padding: 14px 14px 12px;
}
.public-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.public-form-actions button {
  min-width: min(100%, 260px);
}
.public-form-result {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(109, 193, 246, 0.16);
  background: rgba(109, 193, 246, 0.08);
}
.public-form-card-grid#public-form-submit-form input.is-invalid,
.public-form-card-grid#public-form-submit-form textarea.is-invalid,
.public-form-card-grid#public-form-submit-form select.is-invalid {
  border-color: rgba(190, 24, 93, 0.55);
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.08);
}
.public-form-validation {
  display: block;
  margin-top: 6px;
  color: #be123c;
  font-size: 12px;
  line-height: 1.35;
}
.public-form-thanks-hero {
  min-height: 190px;
}
.public-form-thanks-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 14%, rgba(153, 177, 214, 0.16));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--form-brand-bg, #ffffff) 91%, #f8fbff));
  box-shadow:
    0 18px 36px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  text-align: center;
  justify-items: center;
}
.public-form-thanks-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.26), rgba(109, 193, 246, 0.2));
  color: #17324d;
  font-size: 28px;
  font-weight: 800;
  box-shadow:
    0 12px 24px rgba(16, 42, 67, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform-origin: center;
  animation: public-form-thanks-icon-pop 720ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.public-form-thanks-copy {
  display: grid;
  gap: 8px;
  max-width: 520px;
}
.public-form-thanks-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}
.public-form-thanks-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
  max-width: 420px;
}
.public-form-thanks-button {
  min-width: min(100%, 260px);
  background: var(--form-submit-color, var(--accent));
  color: var(--form-submit-text-color, #ffffff);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--form-submit-color, var(--accent)) 28%, transparent);
}
@keyframes public-form-thanks-icon-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (min-width: 1080px) {
  .public-form-shell {
    width: min(100%, 1024px);
  }
  .public-form-shell.layout-modern .public-form-hero {
    min-height: 200px;
  }
}
@media (max-width: 760px) {
  .public-form-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 8px auto 20px;
    padding: 10px;
    border-radius: 22px;
  }
  .public-form-card-grid#public-form-submit-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form,
  .public-form-shell.layout-classic .public-form-card-grid#public-form-submit-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .half,
  .public-form-shell.layout-classic .public-form-card-grid#public-form-submit-form > .half,
  .public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .stack-form,
  .public-form-shell.layout-classic .public-form-card-grid#public-form-submit-form > .stack-form,
  .public-form-shell.layout-modern .public-form-card-grid#public-form-submit-form > .forms-choice-group,
  .public-form-shell.layout-classic .public-form-card-grid#public-form-submit-form > .forms-choice-group {
    grid-column: 1 / -1;
  }
  .public-form-shell .public-form-hero {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }
  .public-form-hero-copy {
    max-width: none;
  }
  .public-form-thanks-card {
    padding: 16px;
  }
  .public-form-thanks-icon {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }
  .public-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .public-form-actions button {
    width: 100%;
  }
  .public-form-thanks-button {
    width: 100%;
    min-width: 0;
  }
  .public-form-input-frame.has-marquee-placeholder .public-form-placeholder-marquee {
    display: flex;
  }
}
code {
  font-family: "IBM Plex Mono", monospace;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  padding: 1px 6px;
}

.gate-form {
  margin-top: 20px;
}
.gate-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.otp-panel {
  margin-top: 12px;
}
input, textarea, select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 11px;
  font-size: 14px;
  font-family: "IBM Plex Mono", monospace;
  background: rgba(255, 255, 255, 0.9);
}
textarea {
  min-height: auto;
  padding: 10px;
  resize: vertical;
}

button {
  min-height: 42px;
  border-radius: 10px;
  border: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--g), var(--b));
  color: #1f2d3d;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
button:hover {
  transform: translateY(-1px);
}
button:not(.ghost-btn):hover {
  background: linear-gradient(90deg, #b5d94f, #4fb0f2);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  color: rgba(31, 45, 61, 0.72);
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.96), rgba(191, 219, 254, 0.86));
  box-shadow: none;
  transform: none;
}
button:disabled:hover {
  transform: none;
}
button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.75;
  pointer-events: none;
  box-shadow: none;
}
button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}
.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ghost-btn:hover {
  background: var(--hover-bg);
}
.small-btn {
  min-height: 34px;
  padding: 0 10px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--hover-bg);
}
.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;
}
.hint {
  margin-top: 10px;
  color: var(--ink-soft);
}

.result {
  margin-top: 16px;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    max-height 240ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    margin 240ms ease,
    padding 240ms ease,
    border-width 240ms ease;
}
.result.ok {
  color: #065f46;
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
}
.result.bad {
  color: var(--bad);
  border-color: rgba(190, 18, 60, 0.35);
  background: rgba(190, 18, 60, 0.08);
}
.result.result-exit {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.result-head {
  display: flex;
  gap: 8px;
  align-items: center;
}
.result-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}
.result-message {
  margin-top: 7px;
}
.result-details {
  margin-top: 7px;
  font-size: 13px;
  opacity: 0.84;
}
.result-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.result-actions button {
  min-width: 120px;
}
.result-actions .result-link-btn {
  min-width: 120px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  background: linear-gradient(90deg, var(--g), var(--b));
  color: #1f2d3d;
}
.result-actions .result-link-btn:hover {
  transform: translateY(-1px);
}
.result-actions .result-link-btn.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.result-actions .result-link-btn.ghost-btn:hover {
  background: var(--hover-bg);
}

.crm {
  margin-top: 14px;
}
.shell.app-shell .crm {
  margin-top: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

body.hub-embed-mode .shell.app-shell .crm {
  grid-template-rows: auto 1fr;
}
.crm-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 70;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-menu-wrap {
  position: relative;
}
.profile-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(109, 193, 246, 0.08);
  transition:
    padding 220ms ease,
    gap 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
  cursor: pointer;
}
.header-gear-trigger {
  min-height: 44px;
  width: 44px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 12px;
}
.header-gear-gif {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}
.header-gear-trigger:hover .header-gear-gif,
.header-gear-trigger:focus-visible .header-gear-gif {
  opacity: 1;
  transform: scale(1.04);
}
.profile-chip:hover {
  border-color: rgba(96, 165, 250, 0.38);
}
.profile-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16), inset 0 0 0 1px rgba(109, 193, 246, 0.08);
}
.profile-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  color: #102a43;
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.9), rgba(109, 193, 246, 0.95));
}
.profile-chip-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  transition: max-width 220ms ease, opacity 180ms ease;
}
.profile-chip.collapsed {
  padding-right: 5px;
  gap: 0;
}
.profile-chip.collapsed .profile-chip-name {
  max-width: 0;
  opacity: 0;
}
.profile-chip.collapsed:hover,
.profile-chip.collapsed:focus-within,
.profile-chip.collapsed:focus {
  padding-right: 10px;
  gap: 8px;
}
.header-gear-trigger.collapsed,
.header-gear-trigger.collapsed:hover,
.header-gear-trigger.collapsed:focus-within,
.header-gear-trigger.collapsed:focus {
  width: 44px;
  padding: 0;
  gap: 0;
}
.profile-chip.collapsed:hover .profile-chip-name,
.profile-chip.collapsed:focus-within .profile-chip-name,
.profile-chip.collapsed:focus .profile-chip-name {
  max-width: 160px;
  opacity: 1;
}
.profile-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: min(78vh, calc(100vh - 88px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(16, 42, 67, 0.16);
  display: grid;
  gap: 6px;
  z-index: 95;
}
.profile-menu-section {
  display: grid;
  gap: 2px;
}
.profile-menu-user {
  padding: 4px 4px 2px;
}
.profile-menu-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.profile-menu-user-meta {
  font-size: 12px;
  color: var(--ink-soft);
}
.profile-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}
.profile-menu-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  box-shadow: none;
}
.profile-menu-link-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.profile-menu-settings-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.profile-menu-settings-body {
  display: grid;
  gap: 8px;
}
.profile-menu-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--ink-soft);
}
.profile-menu-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.profile-menu-accordion {
  gap: 0;
}
.profile-menu-accordion-head {
  list-style: none;
  cursor: pointer;
}
.profile-menu-accordion-head::-webkit-details-marker {
  display: none;
}
.profile-menu-accordion-head::after {
  content: "▾";
  font-size: 12px;
  color: var(--ink-soft);
  transition: transform 120ms ease;
}
.profile-menu-accordion:not([open]) .profile-menu-settings-body {
  display: none;
}
.profile-menu-accordion[open] .profile-menu-accordion-head {
  margin-bottom: 8px;
}
.profile-menu-accordion[open] .profile-menu-accordion-head::after {
  transform: rotate(180deg);
}
.profile-menu-settings-head strong {
  font-size: 12px;
  line-height: 1.1;
  color: var(--ink);
}
.profile-menu-settings-head small {
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink-soft);
}
.profile-menu-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.profile-menu-input::placeholder {
  color: var(--ink-soft);
}
.profile-menu-btn[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}
.profile-menu-token-row {
  padding-top: 4px;
}
.profile-menu-advanced {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.44);
}
.profile-menu-advanced-summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.profile-menu-advanced-summary::-webkit-details-marker {
  display: none;
}
.profile-menu-advanced-summary::after {
  content: " ▾";
  color: var(--ink-soft);
}
.profile-menu-advanced:not([open]) > :not(summary) {
  display: none;
}
.profile-menu-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.settings-toggle-card .profile-menu-toggle {
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.profile-menu-toggle-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.profile-menu-toggle-text strong {
  font-size: 12px;
  line-height: 1.1;
  color: var(--ink);
}
.profile-menu-toggle-text small {
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink-soft);
}
.profile-menu-toggle-switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.profile-menu-toggle-switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.profile-menu-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.38);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.profile-menu-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 42, 67, 0.2);
  transition: transform 120ms ease;
}
.profile-menu-toggle-switch input[type="checkbox"]:checked + .profile-menu-toggle-slider {
  background: linear-gradient(120deg, #60a5fa, #22d3ee);
  border-color: rgba(96, 165, 250, 0.65);
}
.profile-menu-toggle-switch input[type="checkbox"]:checked + .profile-menu-toggle-slider::after {
  transform: translateX(14px);
}
.profile-menu-toggle-switch input[type="checkbox"]:focus-visible + .profile-menu-toggle-slider {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}
.profile-menu-toggle-switch input[type="checkbox"]:disabled + .profile-menu-toggle-slider {
  opacity: 0.55;
  cursor: not-allowed;
}
.crm > .result {
  margin-top: 10px;
}
.app-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 10px;
}
.shell.app-shell .app-grid {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

body.hub-embed-mode .shell.app-shell .app-grid {
  margin-top: 0;
  gap: 8px;
}
.app-grid.flow-focus {
  grid-template-columns: 72px 1fr;
}
.app-grid.nav-collapsed {
  grid-template-columns: 72px 1fr;
}
.left-nav {
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.shell.app-shell .left-nav {
  min-height: 0;
  overflow: auto;
}
.app-grid.flow-focus .left-nav {
  padding: 6px;
}
.app-grid.nav-collapsed .left-nav {
  padding: 6px;
}
.app-grid.flow-focus .left-nav .nav-item {
  padding-left: 0;
  justify-content: center;
  min-height: 40px;
}
.app-grid.nav-collapsed .left-nav .nav-item {
  padding-left: 0;
  justify-content: center;
  min-height: 40px;
}
.nav-item {
  width: 100%;
  min-height: 42px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
  padding: 0 10px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.nav-item-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.nav-item-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}
.nav-item-label {
  line-height: 1;
  font-weight: 700;
}
.left-nav .nav-item .nav-item-icon {
  display: none;
}
.left-nav .nav-item .nav-item-label {
  display: inline;
}
.app-grid.flow-focus .left-nav .nav-item .nav-item-label,
.app-grid.nav-collapsed .left-nav .nav-item .nav-item-label {
  display: none;
}
.app-grid.flow-focus .left-nav .nav-item .nav-item-icon,
.app-grid.nav-collapsed .left-nav .nav-item .nav-item-icon {
  display: block;
}
.nav-item.active {
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.2), rgba(201, 226, 101, 0.24));
  border-color: #8dd4ea;
  box-shadow: 0 0 0 1px rgba(109, 193, 246, 0.22);
}
.main-area {
  min-width: 0;
}
.shell.app-shell .main-area {
  min-height: 0;
  overflow: hidden;
  padding: 0 0 0 6px;
  box-sizing: border-box;
}

body.hub-embed-mode .shell.app-shell .main-area {
  padding: 0 8px 0 0;
}
.tab-page {
  display: none;
}
.tab-page.active {
  display: block;
}
.tab-page#tab-activities.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}
.shell.app-shell .tab-page.active {
  height: 100%;
  min-height: 0;
  width: 100%;
  overflow: auto;
  padding: 0 0 16px 8px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

body.hub-embed-mode .shell.app-shell .tab-page.active {
  padding: 0 8px 8px 0;
}
.shell.app-shell .tab-page#tab-activities.active {
  padding: 0;
}

html[data-theme="dark"] code {
  background: rgba(148, 163, 184, 0.12);
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: rgba(15, 23, 42, 0.72);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #8ea0b7;
}
html[data-theme="dark"] .gate-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .crm-header,
html[data-theme="dark"] .board-toolbar,
html[data-theme="dark"] .column {
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.96), rgba(10, 18, 33, 0.94));
  border-color: rgba(54, 79, 118, 0.45);
  box-shadow: 0 16px 38px rgba(1, 5, 14, 0.34), inset 0 1px 0 rgba(154, 169, 194, 0.04);
}
html[data-theme="dark"] .ghost-btn {
  background: rgba(15, 23, 42, 0.36);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .ghost-btn:hover {
  background: rgba(96, 165, 250, 0.12);
}
html[data-theme="dark"] .chat-drawer-frame {
  border-color: rgba(63, 91, 131, 0.42);
  background: rgba(12, 20, 35, 0.92);
}
html[data-theme="dark"] .profile-chip {
  background: rgba(8, 15, 29, 0.82);
  border-color: rgba(73, 103, 147, 0.35);
}
html[data-theme="dark"] .profile-menu-popover {
  background: rgba(10, 18, 32, 0.98);
  border-color: rgba(58, 84, 123, 0.42);
  box-shadow: 0 16px 34px rgba(2, 8, 22, 0.42);
}
html[data-theme="dark"] .profile-menu-user-name {
  color: #eaf1ff;
}
html[data-theme="dark"] .profile-menu-user-meta {
  color: #9fb3d1;
}
html[data-theme="dark"] .activity-summary-card,
html[data-theme="dark"] .activity-day-cell {
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.96), rgba(9, 18, 33, 0.9));
  border-color: rgba(54, 79, 118, 0.45);
  box-shadow: 0 12px 28px rgba(1, 6, 16, 0.28);
}
html[data-theme="dark"] .profile-menu-settings-card {
  background: rgba(15, 23, 42, 0.36);
  border-color: var(--line);
}
html[data-theme="dark"] .profile-menu-settings-head strong {
  color: #eaf1ff;
}
html[data-theme="dark"] .profile-menu-settings-head small {
  color: #9fb3d1;
}
html[data-theme="dark"] .profile-menu-input {
  background: rgba(10, 18, 32, 0.96);
  border-color: rgba(58, 84, 123, 0.34);
  color: #eaf1ff;
}
html[data-theme="dark"] .profile-menu-input::placeholder {
  color: #9fb3d1;
}
html[data-theme="dark"] .profile-menu-divider {
  background: rgba(58, 84, 123, 0.34);
}
html[data-theme="dark"] .profile-menu-toggle {
  background: rgba(15, 23, 42, 0.36);
  border-color: var(--line);
}
html[data-theme="dark"] .profile-menu-toggle-text strong {
  color: #eaf1ff;
}
html[data-theme="dark"] .profile-menu-toggle-text small {
  color: #9fb3d1;
}
html[data-theme="dark"] .profile-menu-toggle-slider {
  background: rgba(71, 85, 105, 0.4);
  border-color: rgba(100, 116, 139, 0.5);
}
html[data-theme="dark"] .profile-menu-toggle-slider::after {
  background: #eaf1ff;
  box-shadow: 0 1px 4px rgba(2, 8, 22, 0.35);
}
html[data-theme="dark"] .list li,
html[data-theme="dark"] .template-item,
html[data-theme="dark"] #template-section .list.compact li {
  background: rgba(15, 23, 42, 0.48);
  border-color: var(--line);
}
html[data-theme="dark"] .template-action,
html[data-theme="dark"] .template-group-toggle {
  background: rgba(15, 23, 42, 0.32);
  border-color: var(--line);
}
html[data-theme="dark"] .template-group-toggle.active,
html[data-theme="dark"] .template-item.active .template-action {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.22), rgba(163, 230, 53, 0.14));
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.12),
    0 0 0 1px rgba(125, 211, 252, 0.1);
}
html[data-theme="dark"] .template-preview {
  background: linear-gradient(180deg, rgba(17, 27, 45, 0.98), rgba(13, 21, 36, 0.96));
  border-color: rgba(63, 91, 131, 0.42);
  box-shadow: 0 10px 22px rgba(2, 8, 22, 0.28);
}
html[data-theme="dark"] .template-preview h4 {
  color: #eef4ff;
}
html[data-theme="dark"] .template-preview .muted,
html[data-theme="dark"] #template-preview-description,
html[data-theme="dark"] #template-preview-stages {
  color: #b4c5de;
}
html[data-theme="dark"] #use-template-btn {
  color: #062238;
  border-color: rgba(132, 204, 255, 0.45);
  box-shadow: 0 8px 18px rgba(96, 165, 250, 0.18);
}
html[data-theme="dark"] .view-toggle-label {
  color: #9fb3d1;
}
html[data-theme="dark"] .view-toggle {
  background: rgba(12, 21, 36, 0.86);
  border-color: rgba(58, 84, 123, 0.42);
  box-shadow: inset 0 1px 0 rgba(168, 191, 226, 0.03);
}
html[data-theme="dark"] .view-toggle button {
  color: #a8b8d1;
  border-right-color: rgba(58, 84, 123, 0.3);
}
html[data-theme="dark"] .view-toggle button:hover:not(.active-view) {
  background: rgba(96, 165, 250, 0.08);
  color: #eaf1ff;
}
html[data-theme="dark"] .view-toggle button.active-view {
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.14), rgba(163, 230, 53, 0.24));
  color: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.15);
}
html[data-theme="dark"] table {
  color: var(--ink);
}
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .list-stage-pill {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.14);
  color: #cbe3ff;
}
html[data-theme="dark"] .list-priority-pill.priority-none {
  color: #9fb0c5;
  background: rgba(148, 163, 184, 0.12);
}
html[data-theme="dark"] .deal-card,
html[data-theme="dark"] .flow-chip,
html[data-theme="dark"] .flow-stage-node,
html[data-theme="dark"] .flow-canvas-deal {
  background-color: rgba(13, 22, 38, 0.88);
  border-color: var(--line);
}
html[data-theme="dark"] .deal-card {
  background: linear-gradient(180deg, rgba(16, 25, 41, 0.96), rgba(14, 22, 36, 0.95));
}
html[data-theme="dark"] .deal-card:hover {
  z-index: 4;
  border-color: rgba(109, 193, 246, 0.42);
  background: linear-gradient(180deg, rgba(21, 33, 54, 0.98), rgba(16, 26, 42, 0.97));
}
html[data-theme="dark"] .deal-card::before {
  background:
    radial-gradient(
      circle at var(--deal-hover-origin-x, 50%) var(--deal-hover-origin-y, 50%),
      rgba(109, 193, 246, 0.18) 0%,
      rgba(125, 211, 252, 0.1) 24%,
      rgba(255, 255, 255, 0.03) 42%,
      transparent 70%
    );
}
html[data-theme="dark"] .deal-card-title,
html[data-theme="dark"] .flow-canvas-deal .title,
html[data-theme="dark"] .flow-stage-node .stage-name {
  color: #eaf1ff;
}
html[data-theme="dark"] .deal-card-meta,
html[data-theme="dark"] .flow-canvas-deal .meta,
html[data-theme="dark"] .flow-stage-node .column-meta,
html[data-theme="dark"] .flow-chip {
  color: #9aa9c2;
}
html[data-theme="dark"] .flow-canvas-area {
  border-color: rgba(54, 79, 118, 0.42);
  background:
    linear-gradient(rgba(145, 170, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 170, 210, 0.055) 1px, transparent 1px),
    radial-gradient(1200px 480px at 8% 0%, rgba(78, 124, 220, 0.22), rgba(8, 14, 26, 0.7));
  background-size: 24px 24px, 24px 24px, cover;
  box-shadow: inset 0 1px 0 rgba(168, 191, 226, 0.04);
}
html[data-theme="dark"] .flow-canvas-lines {
  opacity: 0.95;
}
html[data-theme="dark"] .flow-deal-link {
  stroke: rgba(122, 158, 210, 0.34);
  stroke-width: 1.5;
  opacity: 0.82;
}
html[data-theme="dark"] .flow-deal-link.active {
  stroke: rgba(124, 190, 255, 0.72);
  stroke-width: 2.2;
  opacity: 0.98;
}
html[data-theme="dark"] .flow-deal-link.option {
  stroke: var(--path-color, #60a5fa);
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.25));
}
html[data-theme="dark"] .flow-deal-link.ghost {
  stroke: rgba(122, 158, 210, 0.26);
  opacity: 0.72;
}
html[data-theme="dark"] .flow-canvas-target {
  background: rgba(12, 21, 36, 0.92);
  border-color: rgba(63, 91, 131, 0.4);
}
html[data-theme="dark"] .flow-canvas-target .title {
  color: #eaf1ff;
}
html[data-theme="dark"] .flow-canvas-target .meta {
  color: #9fb3d1;
}
html[data-theme="dark"] .stage-port {
  border-color: rgba(125, 165, 224, 0.55);
  background: rgba(23, 39, 65, 0.92);
  box-shadow: 0 0 0 2px rgba(6, 12, 22, 0.9);
  opacity: 0.45;
}
html[data-theme="dark"] .flow-node:hover .stage-port,
html[data-theme="dark"] .flow-node.flow-drop-ready .stage-port,
html[data-theme="dark"] .flow-node.flow-drop-hover .stage-port,
html[data-theme="dark"] .flow-stage-node:hover .stage-port,
html[data-theme="dark"] .flow-stage-node.flow-drop-hover .stage-port {
  opacity: 0.95;
}
html[data-theme="dark"] .flow-canvas-hint {
  color: #9fb3d1;
}
html[data-theme="dark"] .flow-chip.active {
  border-color: rgba(179, 234, 104, 0.62);
  background: linear-gradient(120deg, rgba(179, 234, 104, 0.16), rgba(99, 191, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(179, 234, 104, 0.2), inset 0 1px 0 rgba(179, 234, 104, 0.08);
}
html[data-theme="dark"] .flow-chip.active .flow-chip-label {
  color: #ecf7d4;
}
html[data-theme="dark"] .flow-panel-link {
  stroke: rgba(132, 189, 255, 0.62);
  stroke-width: 1.9;
  stroke-dasharray: 5 5;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.14));
}
html[data-theme="dark"] .flow-panel-link-secondary {
  stroke: rgba(179, 234, 104, 0.62);
  stroke-dasharray: 5 5;
  filter: drop-shadow(0 0 4px rgba(179, 234, 104, 0.14));
}
html[data-theme="dark"] .flow-stage-node {
  background: linear-gradient(180deg, rgba(13, 22, 39, 0.95), rgba(10, 18, 31, 0.95));
  border-color: rgba(63, 90, 132, 0.36);
  box-shadow: 0 6px 16px rgba(2, 8, 22, 0.34);
}
html[data-theme="dark"] .flow-stage-node.current-stage-node {
  border-color: rgba(163, 230, 53, 0.72);
  box-shadow:
    0 0 0 1px rgba(163, 230, 53, 0.28),
    0 0 0 3px rgba(163, 230, 53, 0.09),
    0 8px 18px rgba(2, 8, 22, 0.38);
  animation: darkBrandHaloPulse 1.9s ease-in-out infinite;
}
html[data-theme="dark"] .flow-canvas-deal {
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.98), rgba(12, 20, 34, 0.96));
  box-shadow: 0 10px 22px rgba(2, 8, 20, 0.36);
}
html[data-theme="dark"] .flow-chip::before,
html[data-theme="dark"] .flow-canvas-deal::before {
  background:
    radial-gradient(
      circle at var(--flow-hover-origin-x, 50%) var(--flow-hover-origin-y, 50%),
      rgba(109, 193, 246, 0.16) 0%,
      rgba(125, 211, 252, 0.08) 24%,
      rgba(255, 255, 255, 0.02) 42%,
      transparent 70%
    );
}
html[data-theme="dark"] .flow-chip:hover {
  border-color: rgba(109, 193, 246, 0.4);
  background: rgba(19, 31, 50, 0.94);
}
html[data-theme="dark"] .flow-canvas-deal:hover {
  border-color: rgba(109, 193, 246, 0.4);
  background: linear-gradient(180deg, rgba(19, 31, 50, 0.98), rgba(14, 24, 40, 0.97));
}
html[data-theme="dark"] .flow-canvas-deal.selected:not(.focus-target),
html[data-theme="dark"] .flow-canvas-deal.selected-preview:not(.focus-target) {
  border-color: rgba(163, 230, 53, 0.64);
  box-shadow:
    0 0 0 1px rgba(163, 230, 53, 0.22),
    0 0 0 3px rgba(163, 230, 53, 0.07),
    0 12px 24px rgba(2, 8, 22, 0.4);
  animation: darkBrandHaloPulse 2.1s ease-in-out infinite;
}
html[data-theme="dark"] .flow-sound-toggle {
  background: rgba(13, 22, 38, 0.86);
  border-color: rgba(63, 90, 132, 0.36);
}
html[data-theme="dark"] #crm-layout[data-theme-vibe="sales"] .column,
html[data-theme="dark"] #crm-layout[data-theme-vibe="real_estate"] .column,
html[data-theme="dark"] #crm-layout[data-theme-vibe="support"] .column,
html[data-theme="dark"] #crm-layout[data-theme-vibe="onboarding"] .column,
html[data-theme="dark"] #crm-layout[data-theme-vibe="project"] .column,
html[data-theme="dark"] #crm-layout[data-theme-vibe="recruitment"] .column,
html[data-theme="dark"] #crm-layout[data-theme-vibe="agency"] .column {
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.96), rgba(10, 17, 30, 0.95));
}
html[data-theme="dark"] .app-toast {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .app-loader {
  background: rgba(3, 8, 18, 0.38);
}
html[data-theme="dark"] .loader-card {
  background: rgba(10, 18, 32, 0.96);
  border-color: rgba(63, 91, 131, 0.42);
  box-shadow: 0 18px 35px rgba(2, 8, 22, 0.46);
  color: #eef4ff;
}
html[data-theme="dark"] .loader-copy {
  color: #eef4ff;
}
html[data-theme="dark"] .loader-progress-track {
  background: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] .loader-progress-text {
  color: #b4c5de;
}
html[data-theme="dark"] .modal-card {
  background: #101827;
  border-color: var(--line);
}
html[data-theme="dark"] .confirm-card-hero {
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.12), rgba(109, 193, 246, 0.1)),
    rgba(13, 22, 40, 0.98);
  border-bottom-color: rgba(58, 84, 123, 0.32);
}
html[data-theme="dark"] .confirm-card-body {
  background: rgba(13, 22, 40, 0.98);
}
html[data-theme="dark"] .confirm-warning-box {
  border-color: rgba(190, 24, 93, 0.26);
  background: rgba(190, 24, 93, 0.12);
}
html[data-theme="dark"] .confirm-warning-box strong {
  color: #fda4af;
}
html[data-theme="dark"] .confirm-card #confirm-input-wrap {
  border-color: rgba(109, 193, 246, 0.22);
  background: linear-gradient(180deg, rgba(18, 31, 54, 0.98), rgba(13, 22, 40, 0.98));
}
html[data-theme="dark"] .confirm-card #confirm-input {
  background: rgba(10, 18, 31, 0.9);
}
html[data-theme="dark"] .confirm-card #confirm-input-help {
  color: #9fb3d1;
}
html[data-theme="dark"] .metric-card {
  background: linear-gradient(180deg, rgba(17, 28, 46, 0.94), rgba(13, 21, 37, 0.92));
  border-color: rgba(58, 84, 123, 0.42);
}
html[data-theme="dark"] .analytics-toolbar {
  background:
    radial-gradient(1000px 240px at 0% 0%, rgba(163, 230, 53, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(15, 24, 40, 0.98), rgba(10, 18, 32, 0.96));
  border-color: rgba(58, 84, 123, 0.42);
}
html[data-theme="dark"] .analytics-toolbar-copy h3 {
  color: #edf4ff;
}
html[data-theme="dark"] .analytics-toolbar-copy p {
  color: #9fb3d1;
}
html[data-theme="dark"] .analytics-toolbar-controls select {
  background: rgba(12, 21, 36, 0.92);
  border-color: rgba(96, 165, 250, 0.24);
  color: #ecf3ff;
  box-shadow: 0 10px 22px rgba(2, 8, 22, 0.24);
}
html[data-theme="dark"] .analytics-loading::after {
  background: linear-gradient(
    110deg,
    rgba(9, 16, 28, 0) 0%,
    rgba(96, 165, 250, 0.16) 46%,
    rgba(9, 16, 28, 0) 100%
  );
}
html[data-theme="dark"] .metric-card .label {
  color: #9fb3d1;
}
html[data-theme="dark"] .metric-card .value {
  color: #ecf3ff;
}
html[data-theme="dark"] .task-badge {
  color: #9fb3d1;
  border-color: rgba(58, 84, 123, 0.42);
  background: rgba(12, 20, 35, 0.45);
}
html[data-theme="dark"] .task-item {
  background: linear-gradient(180deg, rgba(12, 21, 36, 0.86), rgba(9, 17, 30, 0.78));
  border-radius: 12px;
  border: 1px solid rgba(45, 68, 102, 0.35);
  padding: 10px 12px 10px 14px;
}
html[data-theme="dark"] .flow-inline-panel,
html[data-theme="dark"] .flow-inline-tags-node {
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.98), rgba(13, 21, 36, 0.97));
  border-color: rgba(64, 92, 134, 0.42);
  box-shadow: 0 18px 36px rgba(2, 8, 22, 0.42);
  color: #eaf1ff;
}
html[data-theme="dark"] .flow-inline-body,
html[data-theme="dark"] .flow-inline-body p,
html[data-theme="dark"] .flow-inline-body strong {
  color: #dce8fb;
}
html[data-theme="dark"] .flow-inline-panel .muted,
html[data-theme="dark"] .flow-inline-panel .deal-card-meta {
  color: #9fb3d1;
}
html[data-theme="dark"] .flow-inline-tag-chip {
  border-color: rgba(63, 91, 131, 0.42);
  background: rgba(20, 33, 54, 0.88);
  color: #9fb3d1;
}
html[data-theme="dark"] .flow-inline-tag-chip.active {
  border-color: rgba(170, 234, 99, 0.62);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.22), rgba(201, 226, 101, 0.32));
  color: #ecf7d4;
  box-shadow: 0 0 0 1px rgba(170, 234, 99, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .flow-inline-form input,
html[data-theme="dark"] .flow-inline-form textarea,
html[data-theme="dark"] .flow-inline-form select {
  background: rgba(27, 39, 61, 0.94);
  border-color: rgba(63, 91, 131, 0.46);
  color: #eef4ff;
}
html[data-theme="dark"] .flow-inline-form input::placeholder,
html[data-theme="dark"] .flow-inline-form textarea::placeholder {
  color: #94aac9;
}
html[data-theme="dark"] .flow-card-action,
html[data-theme="dark"] .flow-tags-launch-btn {
  background: rgba(24, 35, 55, 0.9);
  border-color: rgba(63, 91, 131, 0.42);
  color: #c7d6ee;
}
html[data-theme="dark"] .flow-card-action:hover,
html[data-theme="dark"] .flow-tags-launch-btn:hover {
  background: rgba(35, 53, 82, 0.95);
  color: #eef4ff;
}
html[data-theme="dark"] .flow-card-action.flow-card-action-chat {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(30, 64, 175, 0.28);
}
html[data-theme="dark"] .flow-card-action.flow-card-action-chat:hover {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.56);
  background: rgba(30, 64, 175, 0.4);
}
html[data-theme="dark"] .flow-card-action.flow-card-action-whatsapp {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(20, 83, 45, 0.38);
}
html[data-theme="dark"] .flow-card-action.flow-card-action-whatsapp:hover {
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.56);
  background: rgba(21, 128, 61, 0.42);
}
html[data-theme="dark"] .flow-inline-link-btn {
  color: #93c5fd;
}
html[data-theme="dark"] .flow-inline-link-btn:hover {
  color: #bfdbfe;
}
html[data-theme="dark"] .flow-inline-tags-panel {
  background: rgba(12, 20, 35, 0.7);
  border-color: rgba(63, 91, 131, 0.36);
}

.crm-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 14px;
}
.shell.app-shell .crm-layout {
  height: 100%;
  min-height: 0;
}

body.hub-embed-mode .shell.app-shell .crm-layout {
  gap: 8px;
}

body.hub-embed-mode .shell.app-shell .crm-header {
  padding: 10px 12px;
}

body.hub-embed-mode .shell.app-shell .app-grid {
  margin-top: 6px;
}

body.hub-embed-mode .shell.app-shell .main-area {
  padding: 0 4px 0 0;
}

body.hub-embed-mode .shell.app-shell .board-toolbar,
body.hub-embed-mode .shell.app-shell .sidebar {
  box-shadow: none;
}

.crm-layout.flow-focus {
  grid-template-columns: 1fr;
}
.crm-layout.flow-focus .sidebar {
  display: none;
}
.crm-layout.sidebar-collapsed {
  grid-template-columns: 1fr;
}
.crm-layout.sidebar-collapsed .sidebar {
  display: none;
}
.sidebar {
  padding: 10px;
  display: grid;
  gap: 12px;
  max-height: 78vh;
  overflow: auto;
  align-content: start;
  grid-auto-rows: max-content;
}
.shell.app-shell .sidebar {
  max-height: none;
  min-height: 0;
}

body.hub-embed-mode .shell.app-shell .sidebar {
  padding: 8px;
}
.sidebar,
.left-nav {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.sidebar:hover,
.sidebar:focus-within,
.left-nav:hover,
.left-nav:focus-within {
  scrollbar-color: rgba(96, 165, 250, 0.34) transparent;
}
.sidebar::-webkit-scrollbar,
.left-nav::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.sidebar::-webkit-scrollbar-thumb,
.left-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.sidebar:hover::-webkit-scrollbar-thumb,
.sidebar:focus-within::-webkit-scrollbar-thumb,
.left-nav:hover::-webkit-scrollbar-thumb,
.left-nav:focus-within::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.32);
}
.sidebar::-webkit-scrollbar-thumb:hover,
.left-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.44);
}
.side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.side-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.side-section h3 {
  margin-bottom: 8px;
}
.side-label {
  margin: 8px 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
}
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
}
.compact li {
  padding: 7px;
}
.pipeline-item {
  cursor: pointer;
}
.pipeline-item.active {
  border-color: #8dd4ea;
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.16), rgba(201, 226, 101, 0.2));
}
html[data-theme="dark"] .pipeline-item {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(63, 91, 131, 0.42);
}
html[data-theme="dark"] .pipeline-item:hover {
  background: rgba(18, 30, 50, 0.9);
  border-color: rgba(109, 193, 246, 0.38);
}
html[data-theme="dark"] .pipeline-item.active {
  position: relative;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.28), rgba(163, 230, 53, 0.16));
  border-color: rgba(125, 211, 252, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.2),
    0 0 0 1px rgba(125, 211, 252, 0.18),
    0 10px 20px rgba(2, 8, 22, 0.24);
}
html[data-theme="dark"] .pipeline-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3fc, #c9e265);
}
html[data-theme="dark"] .pipeline-item.active strong {
  color: #f2f8ff;
}
html[data-theme="dark"] .pipeline-item.active .deal-card-meta {
  color: #c4d2e7;
}
.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pipeline-menu-btn {
  min-height: 26px;
  width: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.pipeline-menu {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}
.pipeline-edit-btn {
  width: 100%;
  min-height: 30px;
  border-radius: 8px;
  background: rgba(147, 197, 253, 0.16);
  color: #1e3a8a;
  border: 1px solid rgba(96, 165, 250, 0.34);
}
.pipeline-duplicate-btn {
  width: 100%;
  min-height: 30px;
  border-radius: 8px;
  background: rgba(134, 239, 172, 0.22);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.34);
}
.pipeline-delete-btn {
  width: 100%;
  min-height: 30px;
  border-radius: 8px;
  background: rgba(190, 18, 60, 0.12);
  color: #9f1239;
  border: 1px solid rgba(190, 18, 60, 0.25);
}
html[data-theme="dark"] .pipeline-menu-btn {
  border-color: rgba(63, 91, 131, 0.42);
  background: rgba(12, 21, 36, 0.72);
  color: #d8e5fb;
}
html[data-theme="dark"] .pipeline-menu-btn:hover {
  background: rgba(22, 36, 58, 0.92);
  color: #eef4ff;
}
html[data-theme="dark"] .pipeline-edit-btn {
  background: rgba(59, 130, 246, 0.18);
  color: #bfddff;
  border-color: rgba(96, 165, 250, 0.48);
}
html[data-theme="dark"] .pipeline-edit-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #eaf4ff;
}
html[data-theme="dark"] .pipeline-duplicate-btn {
  background: rgba(34, 197, 94, 0.16);
  color: #b8f7cc;
  border-color: rgba(74, 222, 128, 0.42);
}
html[data-theme="dark"] .pipeline-duplicate-btn:hover {
  background: rgba(34, 197, 94, 0.24);
  color: #e8fff0;
}
html[data-theme="dark"] .pipeline-delete-btn {
  background: rgba(244, 63, 94, 0.16);
  color: #ffb7c6;
  border-color: rgba(251, 113, 133, 0.42);
}
html[data-theme="dark"] .pipeline-delete-btn:hover {
  background: rgba(244, 63, 94, 0.24);
  color: #ffe6ec;
}
.template-action {
  width: 100%;
  text-align: left;
  min-height: 34px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink);
}
.template-action {
  box-shadow: none;
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 44px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
}
.template-action:hover {
  transform: none;
  background: rgba(109, 193, 246, 0.08);
}
.template-action-title {
  display: block;
  font-weight: 700;
  line-height: 1.2;
}
.template-action-meta {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.2;
}
.template-item.active .template-action {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(147, 197, 253, 0.16);
}
.template-section-intro {
  margin: -2px 0 8px;
  line-height: 1.35;
}
.template-group-toggle {
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: none;
  border-radius: 10px;
}
.template-group-label-wrap {
  display: grid;
  gap: 1px;
}
.template-group-label {
  font-weight: 700;
  line-height: 1.1;
}
.template-group-meta {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.1;
}
.template-group-toggle:hover {
  transform: none;
  background: rgba(15, 23, 42, 0.04);
}
.template-group-toggle.active {
  background: rgba(109, 193, 246, 0.12);
  border-color: rgba(109, 193, 246, 0.5);
  box-shadow: inset 0 0 0 1px rgba(109, 193, 246, 0.14);
}
#template-section .template-group-toggle:first-of-type {
  margin-top: 2px;
}
#template-section .list.compact {
  margin-top: 6px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}
#template-section .list.compact::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background:
    linear-gradient(180deg, rgba(109, 193, 246, 0.18), rgba(109, 193, 246, 0.1)),
    linear-gradient(
    180deg,
    rgba(201, 226, 101, 0.34),
    rgba(163, 230, 53, 0.28),
    rgba(201, 226, 101, 0.2)
  );
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(201, 226, 101, 0.04);
}
#template-section .list.compact li {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
}
#template-section .list.compact li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(109, 193, 246, 0.2), rgba(201, 226, 101, 0.3));
  transform: translateY(-50%);
}
#template-section .list.compact li.active::before {
  background: rgba(59, 130, 246, 0.5);
  height: 2px;
}
#template-section .list.compact li:first-child::after {
  content: "";
  position: absolute;
  left: -10px;
  top: -6px;
  width: 10px;
  height: calc(50% + 6px);
  background: rgba(255, 255, 255, 0.92);
}
#template-section .list.compact li:last-child::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -6px;
  width: 10px;
  height: calc(50% + 6px);
  background: rgba(255, 255, 255, 0.92);
}
.toggle-arrow {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}
.toggle-arrow.expanded {
  transform: rotate(90deg);
}
.template-preview {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 8px;
}
.template-item .template-preview {
  margin-top: 10px;
}

.board-wrap {
  min-width: 0;
  position: relative;
}
.shell.app-shell .board-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

body.hub-embed-mode .shell.app-shell .board-wrap {
  padding-right: 0;
}
.board-shell {
  margin-top: 10px;
}

body.hub-embed-mode .shell.app-shell .board-shell {
  margin-top: 6px;
}
.shell.app-shell .board-shell {
  min-height: 0;
  overflow: hidden;
}
.shell.app-shell .board-shell.flow-view-active {
  overflow: visible;
}
.flow-header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.board-search-controls {
  display: inline-flex;
  align-items: center;
}
.board-search-controls input[type="search"] {
  min-height: 34px;
  min-width: min(280px, 32vw);
}
.flow-header-controls select {
  min-height: 34px;
  min-width: 210px;
}
.collapsed-pipeline-switcher {
  display: inline-flex;
  align-items: center;
}
.collapsed-pipeline-switcher select {
  min-height: 34px;
  min-width: 220px;
  max-width: min(42vw, 320px);
}
.board-toolbar {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.board.template-preview-board {
  padding-top: 2px;
}
.board.template-preview-board .column {
  border-color: rgba(141, 212, 234, 0.45);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
}
.board.template-preview-board .column-body {
  cursor: default;
}
.title-action-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.title-action-group h3,
.title-action-group p {
  margin-top: 0;
}
.board-preview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(109, 193, 246, 0.35);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.16), rgba(201, 226, 101, 0.14));
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
html[data-theme="dark"] .board-preview-pill {
  border-color: rgba(125, 211, 252, 0.5);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.22), rgba(163, 230, 53, 0.16));
  color: #eef4ff;
}
.reload-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 12px;
  min-width: auto;
  white-space: nowrap;
}
.expand-sidebar-btn,
#expand-sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  padding-inline: 14px;
  line-height: 1.1;
}
.reload-action-btn::before {
  content: "⟳";
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform-origin: center;
}
.reload-action-btn.is-loading::before {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  animation: reloadSpin 0.8s linear infinite;
}
.muted {
  color: var(--ink-soft);
  font-size: 13px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-toggle-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.view-toggle button {
  min-height: 34px;
  min-width: 66px;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: 0 12px;
  font-weight: 700;
}
.view-toggle button:last-child {
  border-right: none;
}
.view-toggle button.active-view {
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.22), rgba(201, 226, 101, 0.3));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(109, 193, 246, 0.18);
}
.view-toggle button:hover:not(.active-view) {
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}
.toolbar-actions.right {
  margin-left: auto;
  gap: 12px;
}
.board {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  align-items: flex-start;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  overscroll-behavior-x: contain;
}
.board:hover,
.board:focus-within {
  scrollbar-color: rgba(58, 134, 246, 0.32) transparent;
}
.board::-webkit-scrollbar {
  height: 10px;
}
.board::-webkit-scrollbar-track {
  background: transparent;
}
.board::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.board:hover::-webkit-scrollbar-thumb,
.board:focus-within::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(124, 198, 255, 0.8), rgba(58, 134, 246, 0.86));
}
.board-empty-state {
  width: min(560px, 100%);
  border: 1px dashed rgba(16, 42, 67, 0.22);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 245, 255, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.board-empty-state h3 {
  margin: 0;
  font-size: 22px;
}
.board-empty-state p {
  margin-top: 8px;
  color: var(--ink-soft);
}
.board-loading-state {
  display: grid;
  place-items: start;
  gap: 8px;
}
.board-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(109, 193, 246, 0.14);
  border-top-color: var(--accent);
  animation: boardLoadingSpin 900ms linear infinite;
}
.pipeline-item-loading {
  pointer-events: none;
}
.pipeline-loading-line {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 193, 246, 0.12), rgba(201, 226, 101, 0.22), rgba(109, 193, 246, 0.12));
  background-size: 200% 100%;
  animation: boardLoadingShimmer 1.35s ease-in-out infinite;
}
.pipeline-loading-line-title {
  width: 58%;
  height: 14px;
}
.pipeline-loading-line-meta {
  width: 76%;
  height: 10px;
}
.pipeline-loading-dot {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(109, 193, 246, 0.18);
  background: rgba(255, 255, 255, 0.72);
}
.pipeline-loading-dot::before {
  display: none;
}
@keyframes boardLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes boardLoadingShimmer {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.board-empty-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(109, 193, 246, 0.14);
}
.dashboard-pagination-meta {
  min-width: 88px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.column-footer-preview {
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.deal-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(201, 226, 101, 0.18), rgba(109, 193, 246, 0.14));
  border: 1px solid rgba(109, 193, 246, 0.22);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.preview-hint {
  border: 1px dashed rgba(109, 193, 246, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  background: rgba(109, 193, 246, 0.05);
}
.list-main-view {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.automation-main-view {
  margin-top: 10px;
  min-height: 0;
  max-height: min(72vh, 820px);
  overflow: auto;
  padding-right: 4px;
}
.automation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.3fr);
  gap: 10px;
  align-items: start;
  min-height: 0;
}
.automation-list-panel,
.automation-editor-panel {
  padding: 12px;
  display: grid;
  gap: 12px;
  min-height: 0;
}
.automation-editor-panel {
  max-height: min(72vh, 820px);
  overflow: auto;
  padding-right: 8px;
}
.automation-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.automation-panel-head.mini h4 {
  margin: 0;
}
.automation-head-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.automation-list {
  display: grid;
  gap: 10px;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 4px;
}
.automation-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 8px;
}
.automation-card.active {
  box-shadow: inset 0 0 0 1px rgba(109, 193, 246, 0.28);
  border-color: rgba(109, 193, 246, 0.4);
}
.automation-card-head,
.automation-card-meta,
.automation-card-actions,
.automation-editor-actions,
.automation-check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.automation-card-head-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.automation-panel-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.automation-logs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.automation-logs-count-badge {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #fb7185);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.automation-status-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.85);
}
.automation-status-badge.active {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(220, 252, 231, 0.95);
}
.automation-status-badge.paused {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(254, 243, 199, 0.95);
}
.automation-status-badge.draft {
  color: #1d4ed8;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(219, 234, 254, 0.95);
}
.automation-quota-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.automation-card-quota {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(59, 130, 246, 0.05);
}
.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.automation-form {
  display: grid;
  gap: 12px;
}
.automation-action-section {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.92)),
    radial-gradient(circle at top right, rgba(109, 193, 246, 0.16), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 30px rgba(15, 23, 42, 0.04);
}
.automation-search-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.automation-search-shell:focus-within {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 14px 28px rgba(59, 130, 246, 0.12);
}
.automation-search-icon {
  color: #2563eb;
  font-size: 14px;
  line-height: 1;
}
.automation-search-shell input {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.automation-search-shell input:focus {
  box-shadow: none;
}
.automation-search-shell input::placeholder {
  color: rgba(100, 116, 139, 0.92);
}
.automation-search-shell input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.automation-picker-meta {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.automation-picker-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.automation-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
}
.automation-editor-actions {
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 26%);
}
.automation-helper-note {
  margin-top: 4px;
  min-height: 20px;
  transition: opacity 160ms ease, transform 160ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.automation-helper-note.is-fading {
  opacity: 0;
  transform: translateY(-1px);
}
.automation-helper-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(201, 226, 101, 0.18);
  border: 1px solid rgba(201, 226, 101, 0.28);
  color: #6d7c1d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: automationBadgeFloat 6s ease-in-out infinite;
}
.automation-helper-note #automation-helper-text {
  display: inline-block;
  min-height: 20px;
  font-variation-settings: "wght" 500;
}
@keyframes automationBadgeFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(201, 226, 101, 0);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(201, 226, 101, 0.18);
  }
}
.automation-list-count {
  min-height: 18px;
  color: var(--ink-soft);
}
html[data-theme="dark"] .automation-action-section {
  background:
    linear-gradient(180deg, rgba(12, 20, 34, 0.9), rgba(16, 25, 40, 0.94)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 42%);
  border-color: rgba(63, 91, 131, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 32px rgba(2, 6, 23, 0.32);
}
html[data-theme="dark"] .automation-search-shell {
  border-color: rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(9, 15, 26, 0.92), rgba(13, 20, 34, 0.94));
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.3);
}
html[data-theme="dark"] .automation-search-shell:focus-within {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 18px 32px rgba(2, 6, 23, 0.34);
}
html[data-theme="dark"] .automation-search-icon {
  color: #8ec5ff;
}
html[data-theme="dark"] .automation-search-shell input {
  color: #edf4ff;
}
html[data-theme="dark"] .automation-search-shell input::placeholder {
  color: rgba(191, 219, 254, 0.7);
}
html[data-theme="dark"] .automation-picker-meta {
  color: rgba(191, 219, 254, 0.78);
}
html[data-theme="dark"] .automation-picker-badge {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.26);
  color: #bdddff;
}
html[data-theme="dark"] .automation-quota-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.16));
  border-color: rgba(96, 165, 250, 0.24);
  color: #d8ebff;
}
html[data-theme="dark"] .automation-card-quota {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(30, 64, 175, 0.12);
  color: rgba(219, 234, 254, 0.86);
}
@media (max-width: 980px) {
  .automation-layout {
    grid-template-columns: 1fr;
  }
  .automation-grid {
    grid-template-columns: 1fr;
  }
}
.list-toolbar {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(150px, 190px));
  gap: 8px;
  align-items: center;
}
.list-toolbar input,
.list-toolbar select {
  min-height: 34px;
}
.list-filter-count {
  font-size: 12px;
}
.list-toolbar-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.list-pagination-top {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
  position: static;
  background: transparent;
}
.list-table-wrap {
  margin-top: 0;
  padding: 8px 10px;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  max-height: min(72vh, 760px);
  overflow: hidden;
}
.list-table-scroll {
  overflow: auto;
  min-height: 0;
  padding-bottom: 64px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.list-table-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.list-table-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.list-table-scroll:hover,
.list-table-scroll:focus-within {
  scrollbar-color: rgba(96, 165, 250, 0.42) transparent;
}
.list-table-scroll:hover::-webkit-scrollbar-thumb,
.list-table-scroll:focus-within::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.35), rgba(196, 181, 253, 0.3));
}
.list-table-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.55), rgba(167, 139, 250, 0.5));
}
.list-pagination {
  margin-top: 10px;
  padding-top: 8px;
  padding-bottom: 4px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: var(--panel);
  z-index: 2;
}
.list-pagination select {
  min-height: 30px;
}
#pipeline-list-table td {
  vertical-align: top;
}
#pipeline-list-body tr.focus-target td {
  background: rgba(111, 216, 241, 0.08);
  animation: listRowFocusPulse 1.1s ease-in-out infinite;
}
#pipeline-list-body tr.focus-target td:first-child {
  box-shadow: inset 3px 0 0 rgba(14, 116, 144, 0.48);
}
#pipeline-list-body tr.focus-muted {
  opacity: 0.55;
}
.list-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #cfe2f1;
  background: #ebf6ff;
  color: #274f70;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}
.list-priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.list-priority-pill.priority-high {
  color: #9f1239;
  border-color: rgba(190, 24, 93, 0.35);
  background: rgba(251, 113, 133, 0.12);
}
.list-priority-pill.priority-medium {
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(251, 146, 60, 0.12);
}
.list-priority-pill.priority-low {
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(134, 239, 172, 0.12);
}
.list-priority-pill.priority-none {
  color: var(--ink-soft);
  background: rgba(226, 232, 240, 0.55);
}
.list-actions {
  white-space: nowrap;
  position: relative;
}
.list-actions > button {
  margin-right: 6px;
}
.list-actions > button:last-child {
  margin-right: 0;
}
.list-action-chat {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(239, 246, 255, 0.96);
  font-weight: 700;
}
.list-action-chat:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: #1e3a8a;
  background: rgba(219, 234, 254, 1);
}
.list-action-whatsapp {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.96);
  font-weight: 700;
}
.list-action-whatsapp:hover {
  border-color: rgba(34, 197, 94, 0.5);
  color: #14532d;
  background: rgba(220, 252, 231, 1);
}
html[data-theme="dark"] .list-action-chat {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(30, 64, 175, 0.28);
}
html[data-theme="dark"] .list-action-chat:hover {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.56);
  background: rgba(30, 64, 175, 0.4);
}
html[data-theme="dark"] .list-action-whatsapp {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(20, 83, 45, 0.38);
}
html[data-theme="dark"] .list-action-whatsapp:hover {
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.56);
  background: rgba(21, 128, 61, 0.42);
}
.inline-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.inline-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 112px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(16, 42, 67, 0.12);
  display: grid;
  gap: 4px;
  z-index: 25;
}
.inline-action-menu.open-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.inline-action-menu.open-left {
  right: auto;
  left: 0;
}
.inline-action-menu .ghost-btn {
  justify-content: flex-start;
  text-align: left;
  box-shadow: none;
}
.list-inline-action-wrap .inline-action-menu {
  z-index: 35;
}
.board.flow-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  align-items: start;
  gap: 26px;
  overflow-x: auto;
  padding: 18px 12px 10px;
  margin-top: 0;
  position: relative;
}
.flow-graph-lines {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.flow-stage-edge {
  display: none;
}
.flow-stage-edge.active {
  display: none;
}
.flow-stage-rail {
  stroke: rgba(16, 42, 67, 0.18);
  stroke-width: 2.2;
}
.flow-stage-rail.active {
  stroke: rgba(15, 118, 110, 0.5);
  stroke-width: 2.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: flowRailGrow 560ms ease forwards;
}
.flow-stage-dot {
  display: none;
}
.flow-stage-dot.active {
  display: none;
}
.column {
  min-width: 270px;
  width: 270px;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  grid-template-rows: auto 1fr auto;
  min-height: 420px;
  transition: width 220ms ease, min-width 220ms ease, transform 180ms ease;
  position: relative;
}
#board .column {
  max-height: min(72vh, 760px);
  overflow: hidden;
}
.flow-node {
  position: relative;
  min-height: 130px;
  min-width: 220px;
  width: 220px;
  cursor: pointer;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 1;
}
.flow-node::after {
  display: none;
}
.flow-node::before {
  display: none;
}
.flow-node:last-child::after {
  display: none;
}
.flow-node:last-child::before {
  display: none;
}
.flow-node.active {
  border-color: #6dc1f6;
  box-shadow: 0 0 0 2px rgba(109, 193, 246, 0.25);
  transform: translateY(-1px);
}
.flow-node.current-stage-node {
  border-color: rgba(201, 226, 101, 0.82);
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.28);
}
.flow-stage-node.current-stage-node {
  border-color: rgba(201, 226, 101, 0.82);
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.28);
}
.flow-node.flow-path-node:not(.current-stage-node) {
  border-color: rgba(109, 193, 246, 0.42);
  box-shadow: 0 0 0 1px rgba(109, 193, 246, 0.2);
}
.flow-stage-node.flow-path-node:not(.current-stage-node) {
  border-color: rgba(109, 193, 246, 0.42);
  box-shadow: 0 0 0 1px rgba(109, 193, 246, 0.2);
}
.flow-node.expanded-stage-node {
  box-shadow: 0 0 0 2px rgba(109, 193, 246, 0.24);
}
.stage-port {
  position: absolute;
  top: 96px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 67, 0.34);
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  opacity: 0.24;
  transition: opacity 0.2s ease;
}
.stage-port-in {
  left: -5px;
}
.stage-port-out {
  right: -5px;
}
.flow-node.current-stage-node .stage-port {
  border-color: rgba(15, 118, 110, 0.55);
  background: rgba(209, 250, 229, 0.92);
  opacity: 0.95;
}
.flow-node:hover .stage-port,
.flow-node.flow-drop-ready .stage-port,
.flow-node.flow-drop-hover .stage-port {
  opacity: 0.85;
}
.flow-stage-node:hover .stage-port,
.flow-stage-node.flow-drop-hover .stage-port {
  opacity: 0.85;
}
.flow-node .column-body {
  min-height: 10px;
}
.flow-node .deal-card {
  cursor: default;
}
.flow-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}
.flow-chip-list {
  display: grid;
  gap: 6px;
  max-height: 88px;
  overflow: hidden;
  margin-top: 6px;
}
.flow-chip-list.expanded {
  max-height: 248px;
  overflow-y: auto;
  padding-right: 2px;
}
.flow-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 0;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.flow-chip::before,
.flow-canvas-deal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--flow-hover-origin-x, 50%) var(--flow-hover-origin-y, 50%),
      rgba(109, 193, 246, 0.18) 0%,
      rgba(201, 226, 101, 0.08) 24%,
      rgba(255, 255, 255, 0.03) 42%,
      transparent 70%
    );
  transition: opacity 160ms ease;
}
.flow-chip:hover {
  z-index: 4;
  border-color: rgba(109, 193, 246, 0.34);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px) scale(1.012);
}
.flow-chip.lead-hot {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 3px 0 rgba(34, 197, 94, 0.34);
}
.flow-chip.lead-warm {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 3px 0 rgba(245, 158, 11, 0.34);
}
.flow-chip.lead-cold {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 3px 0 rgba(148, 163, 184, 0.3);
}
.flow-chip.lead-unknown {
  border-color: rgba(153, 177, 214, 0.18);
  background: rgba(255, 255, 255, 0.86);
}
.flow-chip:hover::before,
.flow-canvas-deal:hover::before {
  opacity: 1;
}
.flow-chip.lead-hot:hover,
.flow-chip.lead-warm:hover,
.flow-chip.lead-cold:hover,
.flow-chip.lead-unknown:hover {
  background: rgba(255, 255, 255, 0.95);
}
.flow-chip.focus-muted {
  opacity: 0.28;
  filter: grayscale(0.45);
}
.flow-chip.focus-target {
  border-color: rgba(201, 226, 101, 0.8);
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.45), 0 6px 14px rgba(79, 176, 242, 0.2);
  animation: focusWarmPulse 1.1s ease-in-out infinite;
}
.flow-chip.more {
  border-style: dashed;
}
.flow-chip-open-list {
  min-height: 28px;
  width: 100%;
  text-align: left;
  border: 1px dashed rgba(16, 42, 67, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  box-shadow: none;
}
.flow-stage-list-hint {
  margin-top: 4px;
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(109, 193, 246, 0.26);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(109, 193, 246, 0.05);
}
.flow-stage-list-hint-label {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.flow-stage-list-hint-btn {
  width: 100%;
  margin-top: 0;
}
button.flow-chip-open-list:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(239, 246, 255, 0.92);
  transform: none;
}
.flow-chip-connector {
  min-height: 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 67, 0.35);
  background: rgba(147, 197, 253, 0.35);
  padding: 0;
  flex: 0 0 auto;
  cursor: grab;
}
.flow-chip-connector:active {
  cursor: grabbing;
}
.flow-chip-label {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-chip-score {
  grid-column: 2;
  width: fit-content;
  margin-top: -1px;
}
.flow-chip-score-badge,
.flow-canvas-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  background: rgba(248, 251, 255, 0.92);
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.flow-chip-score-badge {
  justify-self: end;
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
  cursor: pointer;
}
.flow-canvas-score-badge {
  min-height: 24px;
  padding: 0 10px;
  font-size: 11px;
}
.flow-chip-score-badge:hover,
.flow-canvas-score-badge:hover {
  transform: translateY(-1px);
}
.flow-score-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  flex: 0 0 auto;
}
.flow-chip-score-value {
  font-variant-numeric: tabular-nums;
}
.flow-canvas-score-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.flow-canvas-score-kicker {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.flow-canvas-score-value {
  font-variant-numeric: tabular-nums;
}
.flow-canvas-score-suffix {
  color: inherit;
  opacity: 0.82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.flow-chip-score-badge.hot,
.flow-canvas-score-badge.hot {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.flow-chip-score-badge.warm,
.flow-canvas-score-badge.warm {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.flow-chip-score-badge.cold,
.flow-canvas-score-badge.cold {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}
.flow-chip-score-badge.unknown,
.flow-canvas-score-badge.unknown {
  border-color: rgba(153, 177, 214, 0.2);
  background: rgba(248, 251, 255, 0.92);
  color: var(--ink-soft);
}
.flow-chip-origin {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #bfdcf0;
  font-size: 11px;
  line-height: 1;
}
.flow-chip-origin-icon {
  width: 13px;
  height: 13px;
  fill: #3c5877;
}
.flow-chip-chat-link {
  grid-column: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid #b7dfb7;
  background: #effbef;
  color: #236423;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.flow-chip-chat-link:hover {
  background: #e1f5e1;
}
.flow-inline-link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.flow-inline-link-btn:hover {
  color: #1d4ed8;
}
.flow-chip-channel {
  grid-column: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid #d5dee9;
  background: #f5f8fb;
  color: #3f5166;
  font-size: 10px;
  font-weight: 700;
}
.flow-chip-channel-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flow-channel-icon-svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  display: block;
}
.flow-chip-channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}
.flow-chip-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.flow-chip-tag {
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid #dbe5ef;
  background: #eef4fa;
  color: #334155;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.flow-chip-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.flow-chip-action {
  min-height: 18px;
  width: 18px;
  border-radius: 6px;
  border: 1px solid rgba(16, 42, 67, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-size: 10px;
  padding: 0;
}
.flow-chip-action:hover {
  border-color: rgba(96, 165, 250, 0.55);
  color: var(--ink);
}
.flow-chip-action.danger:hover {
  border-color: rgba(190, 24, 93, 0.45);
  color: #9f1239;
}
.flow-chip-stage-select {
  position: absolute;
  left: 8px;
  top: 24px;
  z-index: 8;
  min-height: 30px;
  min-width: 190px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.98);
}
.flow-node.flow-drop-ready {
  border-color: rgba(109, 193, 246, 0.65);
}
.flow-node.flow-drop-hover {
  border-color: #6dc1f6;
  box-shadow: 0 0 0 3px rgba(109, 193, 246, 0.28), 0 10px 20px rgba(16, 42, 67, 0.12);
  transform: translateY(-1px);
}
.flow-stage-node.flow-drop-hover {
  border-color: #6dc1f6;
  box-shadow: 0 0 0 2px rgba(109, 193, 246, 0.22), 0 8px 14px rgba(16, 42, 67, 0.08);
  transform: translateY(-1px);
}
.flow-stage-node.flow-path-source {
  border-color: rgba(14, 116, 144, 0.56);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22), 0 8px 14px rgba(16, 42, 67, 0.08);
}
.flow-stage-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 42, 67, 0.08);
}
.flow-main-canvas {
  margin-top: 10px;
}
.shell.app-shell .flow-main-canvas {
  min-height: 0;
  height: 100%;
}
/* In flow mode, keep scrolling inside the canvas instead of the full page. */
.crm-layout.flow-focus .flow-main-canvas {
  margin-top: 0;
}
.crm-layout.flow-focus .flow-canvas-area {
  height: calc(100vh - 210px);
  min-height: 560px;
}
.shell.app-shell .board-shell.flow-view-active .flow-canvas-area {
  margin-bottom: 18px;
}
.flow-canvas-area {
  position: relative;
  min-height: 760px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(rgba(16, 42, 67, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.025) 1px, transparent 1px),
    radial-gradient(1200px 420px at 15% 0%, rgba(255, 255, 255, 0.8), rgba(231, 243, 255, 0.32));
  background-size: 24px 24px, 24px 24px, cover;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}
.flow-canvas-area:hover,
.flow-canvas-area:focus-within {
  scrollbar-color: rgba(16, 42, 67, 0.24) transparent;
}
.flow-canvas-area::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.flow-canvas-area::-webkit-scrollbar-track {
  background: rgba(16, 42, 67, 0.06);
  border-radius: 999px;
}
.flow-canvas-area::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.flow-canvas-area:hover::-webkit-scrollbar-thumb,
.flow-canvas-area:focus-within::-webkit-scrollbar-thumb {
  background: rgba(16, 42, 67, 0.2);
}
.flow-react-root {
  position: relative;
  min-width: max-content;
  min-height: 760px;
  padding: 14px 14px 16px;
}
.flow-graph-canvas {
  position: relative;
  min-width: 0;
  min-height: 700px;
}
.flow-stage-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.flow-stage-node {
  min-height: 124px;
  min-width: 190px;
  width: 190px;
  padding: 8px;
  cursor: default;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(250, 252, 255, 0.95));
  border: 1px solid rgba(16, 42, 67, 0.13);
  box-shadow: 0 2px 7px rgba(16, 42, 67, 0.04);
  transition:
    max-height 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
  overflow: hidden;
  animation: flowStageEnter 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.flow-stage-node.focus-muted {
  opacity: 0.34;
}
.flow-stage-node.focus-target-stage {
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.5), 0 10px 20px rgba(79, 176, 242, 0.2);
}
.flow-stage-move-glow {
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
  animation: flowStagePulse 640ms ease;
}
.flow-stage-node .column-head {
  border-bottom: 1px solid rgba(16, 42, 67, 0.12);
  padding: 0 0 6px;
}
.flow-stage-node .column-title {
  font-size: 13px;
  line-height: 1.2;
}
.flow-stage-node .column-meta {
  font-size: 11px;
}
.flow-stage-node .stage-name {
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.flow-stage-node .stage-count {
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 67, 0.16);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 18px;
}
.flow-stage-node .stage-amount {
  min-height: 15px;
}
.flow-stage-node.expanded {
  max-height: 360px;
}
.flow-stage-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 190px;
  z-index: 1;
  pointer-events: none;
}
.flow-canvas-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  overflow: visible;
}
.flow-deal-link {
  stroke: rgba(16, 42, 67, 0.2);
  stroke-width: 1.3;
  stroke-dasharray: 5 7;
  stroke-dashoffset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.flow-deal-link.active {
  stroke: rgba(16, 42, 67, 0.46);
  stroke-width: 2;
  stroke-dasharray: none;
  opacity: 0.92;
}
.flow-deal-link.option {
  stroke: var(--path-color, #38bdf8);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  opacity: 0.95;
  animation: flowOptionPath 1000ms linear infinite;
  will-change: stroke-dashoffset;
  pointer-events: none;
}
.flow-deal-link.option-hit {
  stroke: transparent;
  stroke-width: 14;
  pointer-events: stroke;
  cursor: pointer;
}
.flow-deal-link.ghost {
  stroke: rgba(16, 42, 67, 0.2);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
  opacity: 0.52;
}
.flow-drag-link {
  animation: flowDragDash 700ms linear infinite;
}
.flow-canvas-hint {
  position: absolute;
  left: 22px;
  top: 230px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 520px;
}
.flow-chip-list.expanded::-webkit-scrollbar {
  width: 6px;
}
.flow-chip-list.expanded::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.flow-chip-list.expanded {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.flow-chip-list.expanded:hover,
.flow-chip-list.expanded:focus-within {
  scrollbar-color: rgba(96, 165, 250, 0.34) transparent;
}
.flow-chip-list.expanded:hover::-webkit-scrollbar-thumb,
.flow-chip-list.expanded:focus-within::-webkit-scrollbar-thumb {
  background: rgba(16, 42, 67, 0.18);
}
.flow-canvas-target {
  position: absolute;
  min-width: 150px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.flow-canvas-target.active {
  border-color: #6dc1f6;
  box-shadow: 0 0 0 2px rgba(109, 193, 246, 0.2);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.16), rgba(201, 226, 101, 0.16));
}
.flow-canvas-target .title {
  font-weight: 700;
  font-size: 14px;
}
.flow-canvas-target .meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-soft);
}
.flow-canvas-target.current-stage {
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
  background: rgba(236, 253, 245, 0.78);
}
.flow-canvas-deal {
  position: absolute;
  width: 260px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #ffffff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  z-index: 3;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.flow-canvas-deal:hover {
  z-index: 5;
  border-color: rgba(109, 193, 246, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 255, 0.98));
  transform: translateY(-2px) scale(1.012);
}
.flow-deal-canvas {
  position: static;
  margin-top: 16px;
  min-height: 520px;
  border-top: 1px dashed rgba(16, 42, 67, 0.12);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 12px;
  background: transparent;
}
.flow-canvas-deal.dragging {
  cursor: grabbing;
}
.flow-canvas-deal.stage-expanded {
  cursor: grab;
}
.flow-canvas-deal.muted {
  opacity: 0.35;
}
.flow-canvas-deal.selected {
  box-shadow: 0 10px 20px rgba(16, 42, 67, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.35);
}
.flow-canvas-deal.selected-preview {
  z-index: 4;
  cursor: grab;
  box-shadow: 0 12px 22px rgba(16, 42, 67, 0.14), 0 0 0 1px rgba(59, 130, 246, 0.35);
}
.flow-canvas-deal.focus-target {
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.55), 0 12px 24px rgba(79, 176, 242, 0.25);
  animation: focusWarmPulse 1.1s ease-in-out infinite;
}
.flow-sound-toggle {
  position: absolute;
  right: 16px;
  top: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 67, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  z-index: 6;
}
.flow-sound-toggle.on {
  border-color: rgba(15, 118, 110, 0.5);
  color: #065f46;
  background: rgba(236, 253, 245, 0.95);
}
.flow-canvas-deal .title {
  font-weight: 700;
}
.flow-canvas-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.flow-canvas-card-head .flow-canvas-connector {
  margin-left: auto;
}
.flow-canvas-deal .meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}
.flow-canvas-score-row + .meta {
  margin-top: 4px;
}
.flow-canvas-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.flow-path-hint {
  margin-top: 6px;
  color: #0c4a6e;
  font-weight: 700;
}
.flow-canvas-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flow-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}
.flow-card-action:hover {
  border-color: #60a5fa;
  color: var(--ink);
}
.flow-card-action.flow-card-action-chat {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
  font-weight: 700;
}
.flow-card-action.flow-card-action-chat:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(219, 234, 254, 1);
  color: #1e3a8a;
}
.flow-card-action.flow-card-action-whatsapp {
  border-color: #b7dfb7;
  background: #effbef;
  color: #236423;
  font-weight: 700;
}
.flow-card-action.flow-card-action-whatsapp:hover {
  border-color: #8acb8a;
  background: #dcf5dc;
  color: #1d5a1d;
}
.flow-card-action.danger:hover {
  border-color: rgba(190, 24, 93, 0.45);
  color: #9f1239;
}
.flow-inline-panel {
  position: absolute;
  width: 300px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.16);
  padding: 10px;
  z-index: 5;
}
.flow-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.flow-inline-head:active {
  cursor: grabbing;
}
.flow-inline-head.flow-inline-head-static {
  cursor: default;
}
.flow-inline-head.flow-inline-head-static:active {
  cursor: default;
}
.flow-inline-body {
  display: grid;
  gap: 4px;
}
.flow-inline-form {
  display: grid;
  gap: 6px;
}
.flow-inline-form input,
.flow-inline-form textarea,
.flow-inline-form select {
  min-height: 34px;
  font-size: 12px;
}
.flow-inline-form button[type="submit"] {
  min-height: 34px;
}
.flow-tags-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.flow-tags-launch-btn {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
}
.flow-tags-launch-btn:hover {
  border-color: rgba(109, 193, 246, 0.55);
  color: var(--ink);
}
.flow-inline-tags-panel {
  border: 1px dashed rgba(16, 42, 67, 0.2);
  border-radius: 10px;
  background: rgba(244, 250, 255, 0.78);
  padding: 8px;
  display: grid;
  gap: 8px;
}
.flow-inline-tags-node {
  position: absolute;
  width: 270px;
  border-radius: 12px;
  border: 1px solid rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.16);
  padding: 10px;
  z-index: 6;
}
.flow-inline-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 122px;
  overflow: auto;
  padding-right: 2px;
}
.flow-inline-tag-chip {
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #d5dee9;
  background: #eef3f8;
  color: #52657b;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}
.flow-inline-tag-chip.active {
  border-color: rgba(109, 193, 246, 0.45);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.2), rgba(201, 226, 101, 0.26));
  color: #1f2d3d;
}
.flow-inline-tag-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}
.flow-inline-tag-add-row input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.flow-inline-tag-add-row button {
  min-height: 34px;
  height: 34px;
  min-width: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  justify-self: end;
}
.flow-panel-link {
  stroke: rgba(16, 42, 67, 0.45);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
  animation: flowOptionPath 1200ms linear infinite;
}
.flow-panel-link-secondary {
  stroke: rgba(109, 193, 246, 0.58);
}
.flow-chip {
  cursor: pointer;
}
.flow-chip.active {
  border-color: #6dc1f6;
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.18), rgba(201, 226, 101, 0.2));
}
.flow-chip:hover {
  transform: translateX(1px);
  border-color: rgba(109, 193, 246, 0.45);
}

@keyframes flowStageEnter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flowRailGrow {
  from {
    stroke-dashoffset: 1;
    opacity: 0.35;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes flowDragDash {
  to {
    stroke-dashoffset: -22;
  }
}
@keyframes flowOptionPath {
  to {
    stroke-dashoffset: -36;
  }
}
@keyframes flowStagePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.38);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}
@keyframes focusWarmPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes darkBrandHaloPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(163, 230, 53, 0.18),
      0 0 0 0 rgba(163, 230, 53, 0.12),
      0 10px 20px rgba(2, 8, 22, 0.36);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(163, 230, 53, 0.3),
      0 0 0 5px rgba(163, 230, 53, 0.07),
      0 12px 24px rgba(2, 8, 22, 0.42);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(163, 230, 53, 0.18),
      0 0 0 0 rgba(163, 230, 53, 0.12),
      0 10px 20px rgba(2, 8, 22, 0.36);
  }
}
@keyframes listRowFocusPulse {
  0% {
    background: rgba(111, 216, 241, 0.06);
  }
  50% {
    background: rgba(111, 216, 241, 0.16);
  }
  100% {
    background: rgba(111, 216, 241, 0.06);
  }
}
.flow-focus .board {
  min-height: auto;
}
.column-current-stage {
  margin-top: 6px;
  font-size: 11px;
  color: #065f46;
  font-weight: 700;
  min-height: 14px;
}
.flow-stage-search-shell {
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 149, 178, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 6px 14px rgba(16, 42, 67, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.flow-stage-search-shell:focus-within {
  border-color: rgba(109, 193, 246, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 3px rgba(109, 193, 246, 0.12),
    0 10px 20px rgba(16, 42, 67, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 251, 255, 0.99));
}
.flow-stage-search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  opacity: 0.9;
}
.flow-stage-search-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.6px solid #56708e;
  border-radius: 999px;
}
.flow-stage-search-icon::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 6px;
  height: 1.6px;
  border-radius: 999px;
  background: #56708e;
  transform: rotate(45deg);
  transform-origin: right center;
}
.flow-stage-search {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
  appearance: none;
  -webkit-appearance: none;
}
.flow-stage-search::-webkit-search-decoration,
.flow-stage-search::-webkit-search-cancel-button,
.flow-stage-search::-webkit-search-results-button,
.flow-stage-search::-webkit-search-results-decoration {
  display: none;
}
.flow-stage-search::placeholder {
  color: rgba(72, 91, 117, 0.82);
}
.flow-stage-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(153, 177, 214, 0.32);
  background: rgba(255, 255, 255, 0.96);
  color: #50647f;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.flow-stage-search-clear:hover {
  border-color: rgba(109, 193, 246, 0.45);
  background: rgba(255, 255, 255, 0.98);
  color: #1d4ed8;
  transform: translateY(-1px);
}
.column-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.column-head {
  position: relative;
  padding-top: 8px;
}
.column-head::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--stage-accent, #6dc1f6);
}
.column[data-stage-tone="in-progress"] {
  --stage-accent: #8dd4ea;
}
.column[data-stage-tone="new"] {
  --stage-accent: #8dd4ea;
}
.column[data-stage-tone="deferred"] {
  --stage-accent: #d5dbe3;
}
.column[data-stage-tone="closed"] {
  --stage-accent: #c9e265;
}
.column[data-stage-accent="0"] {
  --stage-accent: #6dc1f6;
}
.column[data-stage-accent="1"] {
  --stage-accent: #f4b8c8;
}
.column[data-stage-accent="2"] {
  --stage-accent: #9fd8c7;
}
.column[data-stage-accent="3"] {
  --stage-accent: #f0cf86;
}
.column[data-stage-accent="4"] {
  --stage-accent: #c8b8f8;
}
.column[data-stage-accent="5"] {
  --stage-accent: #8cc7ef;
}
.column[data-stage-accent="6"] {
  --stage-accent: #d0e27a;
}
.column[data-stage-accent="7"] {
  --stage-accent: #f2b1a0;
}
.flow-stage-node[data-stage-accent="0"] {
  --stage-accent: #6dc1f6;
}
.flow-stage-node[data-stage-accent="1"] {
  --stage-accent: #f4b8c8;
}
.flow-stage-node[data-stage-accent="2"] {
  --stage-accent: #9fd8c7;
}
.flow-stage-node[data-stage-accent="3"] {
  --stage-accent: #f0cf86;
}
.flow-stage-node[data-stage-accent="4"] {
  --stage-accent: #c8b8f8;
}
.flow-stage-node[data-stage-accent="5"] {
  --stage-accent: #8cc7ef;
}
.flow-stage-node[data-stage-accent="6"] {
  --stage-accent: #d0e27a;
}
.flow-stage-node[data-stage-accent="7"] {
  --stage-accent: #f2b1a0;
}
.column-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
}
.column-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.column-body {
  min-height: 280px;
  display: grid;
  gap: 8px;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
}
#board .column-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
  overscroll-behavior: contain;
}
#board .column-body::-webkit-scrollbar {
  width: 5px;
}
#board .column-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
#board .column-body:hover::-webkit-scrollbar-thumb,
#board .column-body:focus-within::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.35), rgba(196, 181, 253, 0.3));
}
#board .column-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.55), rgba(167, 139, 250, 0.5));
}
#board .column-body {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
#board .column-body:hover,
#board .column-body:focus-within {
  scrollbar-color: rgba(96, 165, 250, 0.42) transparent;
}
.column.drag-over {
  border-color: #8dd4ea;
  box-shadow: inset 0 0 0 2px rgba(109, 193, 246, 0.25), 0 0 0 2px rgba(201, 226, 101, 0.22);
}
.column.focus-muted {
  opacity: 0.42;
}
.column.focus-target-stage {
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.45), 0 8px 20px rgba(16, 24, 40, 0.08);
}
.column-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.column:hover .column-footer,
.column:focus-within .column-footer,
.column.minimized .column-footer {
  opacity: 1;
  transform: translateY(0);
}
.column-inline-add {
  min-height: 28px;
  border: 1px solid #8dd4ea;
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.14), rgba(201, 226, 101, 0.18));
  color: #254056;
  border-radius: 8px;
  font-size: 13px;
  padding: 0 10px;
}
html[data-theme="dark"] .column-inline-add {
  border-color: rgba(109, 193, 246, 0.55);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.14), rgba(201, 226, 101, 0.14));
  color: #bfe8ff;
}
html[data-theme="dark"] .column-inline-add:hover {
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.24), rgba(201, 226, 101, 0.2));
  color: #eaf7ff;
}
.column-inline-toggle {
  min-height: 28px;
  width: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  padding: 0;
}
.column-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
}
.column-load-more-btn {
  width: 100%;
}
.column-load-more-meta {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.column.minimized {
  min-width: 54px;
  width: 54px;
  flex: 0 0 54px;
  padding: 8px 6px;
  overflow: hidden;
  align-content: stretch;
}
.column.minimized .column-head {
  border-bottom: none;
  padding-bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 240px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.column.minimized .column-title {
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
}
.column.minimized .column-title span:first-child {
  font-size: 14px;
  font-weight: 700;
}
.column.minimized .column-title span:last-child {
  font-size: 12px;
}
.column.minimized .column-meta {
  margin-top: 10px;
  font-size: 11px;
}
.column.minimized .column-body {
  min-height: 0;
  display: none;
}
.column.minimized .column-footer {
  border-top: none;
  padding-top: 0;
  justify-content: center;
}
.column.minimized .column-inline-add {
  display: none;
}
.deal-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  cursor: grab;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transform-origin: var(--deal-hover-origin-x, 50%) var(--deal-hover-origin-y, 50%);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.deal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--deal-hover-origin-x, 50%) var(--deal-hover-origin-y, 50%),
      rgba(109, 193, 246, 0.22) 0%,
      rgba(201, 226, 101, 0.12) 20%,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 68%
    );
  transition: opacity 160ms ease;
}
.deal-card:hover {
  z-index: 4;
  border-color: rgba(109, 193, 246, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 255, 0.98));
  transform: translateY(-2px) scale(1.014);
}
.deal-card:hover::before {
  opacity: 1;
}
.deal-card:active {
  cursor: grabbing;
  transform: translateY(0) scale(0.998);
}
.deal-card.focus-muted {
  opacity: 0.28;
  filter: grayscale(0.4);
}
.deal-card.focus-target {
  position: relative;
  z-index: 3;
  box-shadow: 0 0 0 2px rgba(201, 226, 101, 0.55), 0 10px 22px rgba(79, 176, 242, 0.24);
  animation: focusWarmPulse 1.1s ease-in-out infinite;
}
.deal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.deal-card-title {
  font-weight: 700;
  line-height: 1.15;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.deal-card-meta {
  color: var(--ink-soft);
  margin-top: 4px;
  font-size: 12px;
}
.deal-card-score-row {
  margin-top: 5px;
}
.deal-score-pill,
.flow-chip-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  background: rgba(248, 251, 255, 0.92);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.deal-score-pill.hot,
.flow-chip-score.hot {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.deal-score-pill.warm,
.flow-chip-score.warm {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.deal-score-pill.cold,
.flow-chip-score.cold {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}
.deal-score-pill.unknown,
.flow-chip-score.unknown {
  border-color: rgba(153, 177, 214, 0.2);
  background: rgba(248, 251, 255, 0.92);
  color: var(--ink-soft);
}
.deal-chat-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.deal-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #c8d7ea;
  background: #f2f7fc;
  color: #3a4c63;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}
.deal-chat-badge-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.deal-chat-badge-icon svg {
  width: 14px;
  height: 14px;
  fill: #3c5877;
  display: block;
}
.deal-chat-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #b7dfb7;
  background: #effbef;
  color: #236423;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.deal-chat-link:hover {
  background: #e1f5e1;
}
.deal-chat-link.compact {
  padding: 1px 7px;
}
.deal-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #d5dee9;
  background: #f5f8fb;
  color: #3f5166;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.deal-channel-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.deal-channel-icon-svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}
.deal-channel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}
.deal-channel-badge.whatsapp,
.flow-chip-channel.whatsapp {
  border-color: #b7e4c7;
  background: #edf9f1;
  color: #1f7a45;
}
.deal-channel-badge.instagram,
.flow-chip-channel.instagram {
  border-color: #efd0ea;
  background: #fff0fb;
  color: #9b2f75;
}
.deal-channel-badge.messenger,
.flow-chip-channel.messenger {
  border-color: #cbdfff;
  background: #edf3ff;
  color: #2d5fb8;
}
.deal-channel-badge.telegram,
.flow-chip-channel.telegram {
  border-color: #c9e8f6;
  background: #eef9ff;
  color: #1e6d8f;
}
.deal-channel-badge.webchat,
.flow-chip-channel.webchat {
  border-color: #d8e0b8;
  background: #f4f8e7;
  color: #54661d;
}
.deal-channel-badge.tiktok,
.flow-chip-channel.tiktok {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #2a2a2e;
}
.deal-channel-badge.applemessages,
.flow-chip-channel.applemessages {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}
.deal-channel-badge.line,
.flow-chip-channel.line {
  border-color: #bfeac9;
  background: #ecfbf0;
  color: #218d45;
}
.deal-channel-badge.viber,
.flow-chip-channel.viber {
  border-color: #ddcff4;
  background: #f7f2ff;
  color: #6d3fb0;
}
.deal-card-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.deal-tag {
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.deal-tag.brand {
  border-color: rgba(109, 193, 246, 0.36);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.22), rgba(201, 226, 101, 0.34));
  color: #1f2d3d;
}
html[data-theme="dark"] .deal-tag.brand {
  border-color: rgba(146, 219, 255, 0.55);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.24), rgba(201, 226, 101, 0.3));
  color: #dff7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(109, 193, 246, 0.08);
}
.deal-tag.priority-high {
  border-color: #f4b8c8;
  background: #ffe3eb;
  color: #8a1f40;
}
.deal-tag.priority-medium {
  border-color: #c7c5ff;
  background: #e7e7ff;
  color: #3f3d85;
}
.deal-tag.priority-low {
  border-color: #9ecaf3;
  background: #e7f4ff;
  color: #235a83;
}
.deal-tag.warning {
  border-color: #e9d5a6;
  background: #fff3d6;
  color: #7a5a18;
}
.deal-tag.customer {
  border-color: #dfce73;
  background: #fff3a7;
  color: #5f5115;
}
.deal-tag.contact {
  border-color: #bfdcf0;
  background: #ebf7ff;
  color: #2b5f85;
}
.deal-tag.neutral {
  border-color: #d5dee9;
  background: #eef3f8;
  color: #52657b;
}
.deal-tag.custom {
  border-color: #bad8ef;
  background: #eaf5ff;
  color: #274f70;
}
.deal-tag.custom-tone-0, .flow-chip-tag.tone-0 {
  border-color: #c9d9fa;
  background: #e8efff;
  color: #2c4b8b;
}
.deal-tag.custom-tone-1, .flow-chip-tag.tone-1 {
  border-color: #f1cfe3;
  background: #fdeaf5;
  color: #8b2858;
}
.deal-tag.custom-tone-2, .flow-chip-tag.tone-2 {
  border-color: #bfe5db;
  background: #e6f8f2;
  color: #1f6a58;
}
.deal-tag.custom-tone-3, .flow-chip-tag.tone-3 {
  border-color: #f3ddb3;
  background: #fff4dc;
  color: #815714;
}
.deal-tag.custom-tone-4, .flow-chip-tag.tone-4 {
  border-color: #d7cdf7;
  background: #f1edff;
  color: #4a2f86;
}
.deal-tag.custom-tone-5, .flow-chip-tag.tone-5 {
  border-color: #c3e7f3;
  background: #e8f8ff;
  color: #1d5f78;
}
.deal-tag.custom-tone-6, .flow-chip-tag.tone-6 {
  border-color: #d9e4c1;
  background: #f2f9e4;
  color: #47641e;
}
.deal-tag.custom-tone-7, .flow-chip-tag.tone-7 {
  border-color: #f0cfd0;
  background: #feecec;
  color: #8a2b2f;
}
.deal-card-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  position: relative;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.deal-tool-btn {
  min-height: 22px;
  width: 22px;
  border-radius: 7px;
  border: 1px solid rgba(16, 42, 67, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  font-size: 11px;
  padding: 0;
}
.deal-tool-btn:hover {
  border-color: rgba(96, 165, 250, 0.55);
  color: var(--ink);
}
.deal-tool-btn.whatsapp {
  width: 28px;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.96);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.deal-tool-btn.chat {
  min-width: 38px;
  width: auto;
  padding: 0 8px;
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(239, 246, 255, 0.96);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.deal-tool-btn.chat:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: #1e3a8a;
  background: rgba(219, 234, 254, 1);
}
.deal-tool-btn.whatsapp:hover {
  border-color: rgba(34, 197, 94, 0.5);
  color: #14532d;
  background: rgba(220, 252, 231, 1);
}
.deal-tool-btn.danger:hover {
  border-color: rgba(190, 24, 93, 0.45);
  color: #9f1239;
}
html[data-theme="dark"] .deal-tool-btn.whatsapp {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(20, 83, 45, 0.38);
}
html[data-theme="dark"] .deal-tool-btn.chat {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(30, 64, 175, 0.28);
}
html[data-theme="dark"] .deal-tool-btn.chat:hover {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.56);
  background: rgba(30, 64, 175, 0.4);
}
html[data-theme="dark"] .deal-tool-btn.whatsapp:hover {
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.56);
  background: rgba(21, 128, 61, 0.42);
}
html[data-theme="dark"] .inline-action-menu {
  background: rgba(12, 21, 36, 0.98);
  border-color: rgba(58, 84, 123, 0.42);
  box-shadow: 0 14px 28px rgba(2, 8, 22, 0.36);
}
.deal-assign-row {
  margin-top: 8px;
  display: block;
}
.deal-assign-row .deal-assign-select {
  min-height: 30px;
  width: 100%;
  max-width: 100%;
  padding: 0 8px;
  font-size: 12px;
}

.contacts-toolbar-panel {
  padding: 12px;
  position: relative;
  overflow: visible;
  z-index: 40;
  isolation: isolate;
}
.contacts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.contacts-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.contacts-toolbar-controls input[type="search"] {
  min-width: 260px;
}
.contacts-menu-wrap {
  position: relative;
  z-index: 24;
}
.contacts-menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 210px;
  max-width: min(78vw, 240px);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.16);
  display: grid;
  gap: 5px;
  z-index: 2000;
  animation: menuDrop 170ms ease;
}
.contacts-menu-popover.contacts-menu-popover-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 2600;
}
.contacts-menu-popover .ghost-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}
@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes reloadSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.contacts-panel {
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 100%;
}
.stack-form {
  display: grid;
  gap: 8px;
}
.row-inline {
  display: grid;
  grid-template-columns: 80px auto;
  gap: 8px;
}
.contact-address-details {
  border: 1px dashed rgba(16, 42, 67, 0.22);
  border-radius: 10px;
  background: rgba(240, 249, 255, 0.35);
  padding: 8px 10px;
}
.contact-address-details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-address-details > summary::-webkit-details-marker {
  display: none;
}
.contact-address-details > summary::before {
  content: "📍";
  font-size: 14px;
  opacity: 0.85;
}
.contact-address-details > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--ink-soft);
  transition: transform 200ms ease;
}
.contact-address-details[open] > summary::after {
  transform: rotate(180deg);
}
.contact-address-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}
.contact-address-details[open] .contact-address-grid {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}
.contact-address-grid > div:last-child {
  grid-column: span 2;
}
.contacts-table-panel {
  margin-top: 10px;
  padding: 12px;
  position: relative;
  z-index: 1;
}
.contacts-pagination {
  justify-content: flex-end;
}
.contacts-pagination #contacts-count-meta {
  margin-right: auto;
}
.file-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
}
.sr-only-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-name {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-wrap {
  overflow: auto;
  margin-top: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
#contacts-table tbody td {
  border-bottom: none;
}
#companies-table tbody td {
  border-bottom: none;
}
#contacts-table tbody tr,
#companies-table tbody tr {
  box-shadow: inset 0 -1px 0 var(--line);
}
.company-metric-pill {
  min-width: 44px;
  padding: 0 8px;
  pointer-events: none;
}
.company-preview-card {
  max-width: min(720px, calc(100vw - 32px));
}
.company-preview-grid {
  margin-bottom: 14px;
}
.company-preview-section {
  display: grid;
  gap: 10px;
}
.company-preview-contact-list {
  display: grid;
  gap: 8px;
}
.company-preview-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.company-preview-contact span {
  color: var(--ink-soft);
  font-size: 13px;
}
.contact-channel-cell .deal-channel-badge {
  min-height: 24px;
}
tr.attention {
  background: rgba(251, 191, 36, 0.2);
}
tr.attention td:last-child {
  color: var(--warn);
  font-weight: 700;
}
.contact-link-btn {
  min-height: 28px;
}
.contact-metric-btn {
  min-width: 44px;
  padding: 0 8px;
}
.contact-actions .contact-link-btn {
  box-shadow: none;
}
.contact-actions .contact-link-btn:hover {
  transform: none;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
}
.contact-inline-action-wrap .inline-action-menu {
  z-index: 42;
  min-width: 164px;
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
}
.contact-row-menu-popover {
  position: fixed;
  z-index: 1200;
  display: grid;
  gap: 6px;
  padding: 8px;
  min-width: 188px;
  max-width: min(240px, calc(100vw - 16px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(16, 42, 67, 0.2);
}
.contact-row-menu-popover .ghost-btn {
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
  box-shadow: none;
}
.attention-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.attention-badge.high {
  color: #9f1239;
  border-color: rgba(190, 24, 93, 0.35);
  background: rgba(251, 113, 133, 0.12);
}
.attention-badge.medium {
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(251, 146, 60, 0.12);
}
.attention-badge.low {
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(134, 239, 172, 0.12);
}
.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.inline-checkbox input {
  width: 16px;
  height: 16px;
}
#contact-route-section {
  padding: 10px;
  border: 1px dashed rgba(16, 42, 67, 0.2);
  border-radius: 10px;
  background: rgba(240, 249, 255, 0.45);
}
#import-report {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.86);
}
.import-report-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.import-report-pill {
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}
.import-report-pill.ok {
  color: #065f46;
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(209, 250, 229, 0.65);
}
.import-report-pill.warn {
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(254, 215, 170, 0.6);
}
.import-report-pill.bad {
  color: #9f1239;
  border-color: rgba(190, 24, 93, 0.35);
  background: rgba(251, 207, 232, 0.55);
}
.import-report-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ink-soft);
  display: grid;
  gap: 4px;
}
#contact-readonly-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}
.contact-whatsapp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.contact-whatsapp-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 8px;
}
.contact-whatsapp-preview-section {
  display: grid;
  gap: 4px;
}
.contact-whatsapp-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-whatsapp-preview-copy {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--ink);
}
.contact-whatsapp-param-hint {
  margin-top: -4px;
  font-size: 12px;
}
.contact-whatsapp-required {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
}
#contact-whatsapp-param-fields input.is-invalid {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 3px rgba(254, 202, 202, 0.55);
}
.contact-summary-details {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.contact-summary-row {
  font-size: 13px;
  color: var(--ink-soft);
}
.contact-summary-row strong {
  color: var(--ink);
  margin-right: 6px;
}
.danger-btn {
  border-color: rgba(190, 24, 93, 0.28);
  color: #9f1239;
}
.danger-btn:hover {
  border-color: rgba(190, 24, 93, 0.45);
  background: rgba(190, 24, 93, 0.08);
}
.danger-btn:disabled,
.danger-btn:disabled:hover {
  border-color: rgba(148, 163, 184, 0.32);
  color: rgba(71, 85, 105, 0.62);
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.96), rgba(226, 232, 240, 0.78));
}

.analytics-grid {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.analytics-toolbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(1200px 200px at 0% 0%, rgba(34, 197, 94, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.86));
}
.analytics-toolbar-copy h3 {
  margin: 0;
  font-size: 16px;
}
.analytics-toolbar-copy p {
  margin: 4px 0 0;
}
.analytics-toolbar-controls {
  display: grid;
  gap: 6px;
  min-width: 240px;
}
.analytics-toolbar-controls label {
  font-size: 12px;
  font-weight: 700;
}
.analytics-toolbar-controls select {
  min-height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.12);
}
.analytics-toolbar,
.analytics-grid,
.analytics-visuals,
.insights-panel {
  position: relative;
}
.analytics-visuals,
.reports-layout {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.reports-settings-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.reports-settings-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(140px, 0.7fr));
  gap: 12px;
  align-items: end;
}
.reports-settings-grid label {
  display: grid;
  gap: 6px;
}
.reports-settings-grid label.is-disabled {
  opacity: 0.58;
}
.reports-settings-grid span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.reports-settings-grid input,
.reports-settings-grid select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}
.reports-toggle {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.reports-toggle span {
  display: grid;
  gap: 2px;
}
.reports-toggle strong {
  color: var(--ink);
}
.reports-toggle small {
  color: var(--ink-soft);
}
.reports-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reports-settings-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reports-settings-inline .muted {
  margin: 0;
}
@media (max-width: 860px) {
  .reports-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .reports-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reports-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(900px 220px at 100% 0%, rgba(109, 193, 246, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.94));
}
.forms-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 12px;
  align-items: start;
}
.forms-layout.forms-layout-single {
  grid-template-columns: minmax(0, 1fr);
}
.forms-layout.forms-layout-single .forms-preview-panel {
  display: none;
}
.forms-layout.forms-layout-single .forms-editor-panel {
  min-width: 0;
}
.forms-builder-view {
  display: block;
}
.forms-overview-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(900px 220px at 100% 0%, rgba(109, 193, 246, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
}
.forms-overview-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.forms-overview-stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.05);
}
.forms-overview-stat strong {
  font-size: 18px;
}
.forms-draft-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(109, 193, 246, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(201, 226, 101, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.07);
}
.forms-draft-resume strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.forms-draft-resume .muted {
  display: block;
  margin-top: 4px;
}
.forms-draft-resume-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.forms-draft-resume-actions button {
  min-width: 140px;
}
.forms-overview-table {
  display: grid;
  gap: 0;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}
.forms-overview-table-head,
.forms-overview-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.8fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) minmax(180px, 0.9fr);
  gap: 12px;
  align-items: center;
}
.forms-overview-table-head {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(250, 214, 107, 0.12), rgba(248, 251, 255, 0.9));
  border-bottom: 1px solid rgba(153, 177, 214, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.forms-overview-row {
  padding: 16px;
  border-top: 1px solid rgba(153, 177, 214, 0.12);
}
.forms-overview-row:first-child {
  border-top: 0;
}
.forms-overview-name strong {
  display: block;
  font-size: 15px;
}
.forms-overview-name small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.forms-overview-cell {
  min-width: 0;
}
.forms-overview-pill,
.forms-overview-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}
.forms-overview-status {
  background: rgba(109, 193, 246, 0.12);
  color: #1265a3;
}
.forms-overview-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.forms-overview-empty {
  padding: 20px;
}
.forms-builder-choice {
  display: grid;
  gap: 14px;
  padding: 2px;
}
.forms-builder-choice-head h4 {
  margin: 0;
  font-size: 18px;
}
.forms-builder-choice-head p {
  margin: 4px 0 0;
}
.forms-builder-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.forms-builder-choice-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
  min-height: 132px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.07);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.forms-builder-choice-card:hover,
.forms-builder-choice-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 193, 246, 0.36);
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.1);
}
.forms-builder-choice-card strong {
  font-size: 16px;
  color: var(--ink);
}
.forms-builder-choice-card span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.forms-builder-pane {
  display: grid;
  gap: 12px;
}
.forms-library-panel,
.forms-editor-panel,
.forms-preview-panel,
.forms-submissions-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  box-shadow:
    0 18px 44px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.forms-library-panel {
  background:
    radial-gradient(900px 220px at 100% 0%, rgba(109, 193, 246, 0.1), transparent 42%),
    radial-gradient(120% 100% at 0% 0%, rgba(201, 226, 101, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}
.forms-editor-panel {
  position: relative;
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(201, 226, 101, 0.1), transparent 42%),
    radial-gradient(120% 100% at 100% 0%, rgba(109, 193, 246, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
}
.forms-submissions-panel {
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(109, 193, 246, 0.1), transparent 42%),
    radial-gradient(120% 100% at 100% 0%, rgba(201, 226, 101, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  grid-column: 1 / -1;
}
.forms-preview-panel {
  background:
    radial-gradient(900px 220px at 50% 0%, rgba(250, 214, 107, 0.18), transparent 36%),
    radial-gradient(120% 100% at 0% 0%, rgba(109, 193, 246, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  position: sticky;
  top: 12px;
  align-self: start;
}
.forms-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.forms-panel-head h3,
.forms-panel-head h4 {
  margin: 0;
}
.forms-panel-head .muted {
  margin-top: 4px;
}
.forms-panel-head.mini {
  align-items: center;
}
.forms-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.forms-preview-badge {
  min-width: 78px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(250, 214, 107, 0.28);
  color: #8a6516;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.forms-preview-frame {
  max-width: 430px;
  margin-left: auto;
  border-radius: 32px;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 12%, transparent), transparent 32%),
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 10%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(250, 214, 107, 0.16), rgba(109, 193, 246, 0.06)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(153, 177, 214, 0.14),
    0 22px 52px rgba(16, 42, 67, 0.1);
}
.forms-preview-screen {
  min-height: 620px;
  height: min(700px, calc(100vh - 240px));
  border-radius: 30px;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 10%, transparent), transparent 42%),
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 7%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 92%, #ffffff), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 85%, #f8fbff));
  border: 1px solid rgba(153, 177, 214, 0.15);
  box-shadow:
    0 22px 56px rgba(16, 42, 67, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.forms-preview-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(153, 177, 214, 0.12);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, rgba(250, 214, 107, 0.18)), color-mix(in srgb, var(--accent) 10%, rgba(250, 214, 107, 0.08)));
}
.forms-preview-back {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  padding: 0;
  min-height: 0;
}
.forms-preview-name {
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.forms-preview-content {
  padding: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 96%, #ffffff), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 90%, #f8fbff));
  overflow: auto;
}
.forms-preview-body {
  display: grid;
  gap: 16px;
  min-height: 100%;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 10%, transparent), transparent 38%),
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 18%, color-mix(in srgb, var(--accent, #6dc1f6) 10%, #ffffff)), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 96%, #ffffff), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 90%, #f8fbff));
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.forms-preview-body .forms-preview-hero h4,
.forms-preview-body .forms-preview-hero .forms-preview-kicker {
  color: var(--form-title-color, var(--ink));
}
.forms-preview-body .forms-preview-hero .muted {
  color: var(--form-description-color, var(--ink-soft));
}
.forms-preview-body.classic {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 18%, rgba(153, 177, 214, 0.2));
  background: color-mix(in srgb, var(--forms-preview-bg, #ffffff) 98%, #ffffff);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
}
.forms-preview-hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  background:
    radial-gradient(110% 130% at 0% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 5%, transparent), transparent 42%),
    radial-gradient(110% 130% at 100% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 92%, #f8fbff));
  box-shadow: none;
}
.forms-preview-hero[data-cover-editable="1"] {
  cursor: grab;
}
.forms-preview-hero.is-dragging-cover {
  cursor: grabbing;
}
.forms-preview-hero.is-cover-uploading {
  cursor: wait;
}
.forms-preview-body.classic .forms-preview-hero {
  min-height: 110px;
  padding: 16px 18px;
  border-width: 0 0 1px;
  border-radius: 0;
  border-color: color-mix(in srgb, var(--accent, #6dc1f6) 14%, rgba(153, 177, 214, 0.18));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, #6dc1f6) 8%, rgba(255, 255, 255, 0.98)), rgba(255, 255, 255, 0.94)),
    color-mix(in srgb, var(--forms-preview-bg, #ffffff) 96%, #ffffff);
  box-shadow: none;
}
.forms-preview-body.classic .forms-preview-hero.cover-enabled {
  min-height: 142px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.34)),
    var(--cover-image, none) var(--cover-image-position, center) / cover no-repeat;
}
.forms-preview-body.classic .forms-preview-hero::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22));
}
.forms-preview-hero.cover-enabled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.58)),
    var(--cover-image, none) var(--cover-image-position, center) / cover no-repeat;
}
.forms-preview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.66) 72%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}
.forms-preview-hero.cover-enabled::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.52) 72%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06));
}
.forms-preview-hero > *,
.forms-preview-hero.cover-enabled > * {
  position: relative;
  z-index: 1;
}
.forms-cover-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    rgba(248, 251, 255, 0.72);
  background-size: 220% 100%, auto;
  backdrop-filter: blur(8px) saturate(130%);
  animation: formsCoverUploadSheen 1.3s ease-in-out infinite;
}
.forms-cover-upload-overlay strong {
  font-size: 13px;
  line-height: 1.2;
}
.forms-cover-upload-overlay small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}
.forms-cover-upload-overlay .loader-ring {
  width: 24px;
  height: 24px;
  border-color: rgba(109, 193, 246, 0.28);
  border-top-color: var(--accent, #6dc1f6);
}
.forms-cover-drag-handle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(153, 177, 214, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow:
    0 8px 18px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(12px) saturate(140%);
  cursor: grab;
  font-size: 0;
}
.forms-cover-drag-handle:active {
  cursor: grabbing;
}
.forms-cover-drag-handle span:first-child {
  font-size: 16px;
  line-height: 1;
}
.forms-preview-hero-copy {
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.forms-preview-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(16, 42, 67, 0.12);
}
.forms-preview-body.classic .forms-preview-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.forms-preview-body.classic .forms-preview-hero-copy {
  gap: 5px;
  max-width: 520px;
}
.forms-preview-body.classic .forms-preview-card h4 {
  font-size: 21px;
  line-height: 1.12;
}
.forms-preview-kicker {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.forms-preview-card h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}
.forms-preview-form-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 16%, rgba(153, 177, 214, 0.2));
  box-shadow:
    0 18px 34px rgba(16, 42, 67, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
}
.forms-preview-body.classic .forms-preview-form-card {
  gap: 12px;
  padding: 16px 18px 18px;
  border-width: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  backdrop-filter: none;
}
.forms-preview-body:not(.classic) .forms-preview-form-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}
.forms-preview-body:not(.classic) .forms-preview-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}
.forms-preview-body:not(.classic) .forms-preview-form-card > * {
  position: relative;
  z-index: 1;
}
.forms-preview-body:not(.classic) {
  border-radius: 30px;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--accent, #6dc1f6) 12%, transparent), transparent 40%),
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 24%, color-mix(in srgb, var(--accent, #6dc1f6) 18%, #ffffff)), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--forms-preview-bg, #ffffff) 88%, #ffffff), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 82%, #f8fbff));
}
.forms-preview-body:not(.classic) .forms-preview-hero {
  border-radius: 24px;
  border-color: rgba(109, 193, 246, 0.16);
  box-shadow:
    0 16px 30px rgba(16, 42, 67, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.68) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px) saturate(140%);
}
.forms-preview-body:not(.classic) .forms-preview-hero.cover-enabled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.2)),
    var(--cover-image, none) var(--cover-image-position, center) / cover no-repeat;
}
.forms-preview-body.classic .forms-preview-form-card {
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(153, 177, 214, 0.14);
  box-shadow:
    0 4px 10px rgba(16, 42, 67, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}
.forms-preview-body.classic .forms-preview-fields {
  gap: 10px;
}
.forms-preview-body.classic .forms-preview-text-block.heading h2 {
  font-size: 24px;
}
.forms-preview-body.classic .forms-preview-text-block.body p {
  font-size: 14px;
}
.forms-preview-fields {
  display: grid;
  gap: 12px;
}
.forms-preview-field,
.forms-preview-toggle,
.forms-preview-checkbox,
.forms-preview-hidden {
  display: grid;
  gap: 6px;
}
.forms-choice-group {
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.forms-choice-group-title {
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.forms-choice-options {
  display: grid;
  gap: 14px;
  padding: 0;
  justify-items: start;
}
.forms-choice-options.horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: start;
}
.forms-choice-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.forms-choice-option input {
  margin: 0;
  width: 15px;
  height: 15px;
  min-height: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.forms-choice-option-radio input {
  transform: translateY(-0.5px);
}
.forms-choice-option span {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.forms-choice-option:has(input:checked) span {
  color: var(--accent);
  font-weight: 700;
}
.forms-choice-options.horizontal .forms-choice-option {
  width: auto;
  white-space: nowrap;
}
.forms-preview-field {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 90%, #f8fbff));
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 14%, rgba(153, 177, 214, 0.18));
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}
.forms-choice-group.half {
  width: auto;
}
.public-form-card-grid.half,
.forms-preview-field.half {
  width: auto;
}
.forms-preview-field span,
.forms-preview-toggle strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.forms-preview-field input,
.forms-preview-field textarea,
.forms-preview-field select {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}
.forms-preview-field input.is-invalid,
.forms-preview-field textarea.is-invalid,
.forms-preview-field select.is-invalid {
  border-color: rgba(190, 24, 93, 0.55);
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.08);
}
.forms-preview-field textarea {
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.forms-preview-toggle {
  align-items: center;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--accent, #6dc1f6) 14%, rgba(153, 177, 214, 0.18));
  border-radius: 16px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--forms-preview-bg, #ffffff) 90%, #f8fbff));
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}
.forms-preview-checkbox {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-self: start;
}
.forms-preview-checkbox input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.forms-preview-checkbox-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.forms-preview-checkbox-copy strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.forms-preview-hidden {
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #6dc1f6) 12%, rgba(255, 255, 255, 0.94));
}

.forms-preview-body.classic .forms-preview-field,
.forms-preview-body.classic .forms-preview-toggle,
.forms-preview-body.classic .forms-preview-hidden,
.forms-preview-body.classic .forms-choice-group {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(153, 177, 214, 0.16);
  box-shadow:
    0 4px 10px rgba(16, 42, 67, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.forms-preview-body.classic .forms-preview-field,
.forms-preview-body.classic .forms-preview-toggle,
.forms-preview-body.classic .forms-preview-hidden {
  padding: 10px 12px;
}
.forms-preview-body.classic .forms-choice-group {
  padding: 12px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
}
.forms-preview-body:not(.classic) .forms-preview-hero {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.28)),
    color-mix(in srgb, var(--forms-preview-bg, #ffffff) 52%, rgba(255, 255, 255, 0.28));
}
.forms-preview-body:not(.classic) .forms-preview-field,
.forms-preview-body:not(.classic) .forms-preview-toggle,
.forms-preview-body:not(.classic) .forms-preview-hidden,
.forms-preview-body:not(.classic) .forms-choice-group {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56)),
    color-mix(in srgb, var(--forms-preview-bg, #ffffff) 82%, rgba(255, 255, 255, 0.16));
  border-color: rgba(109, 193, 246, 0.24);
  box-shadow:
    0 18px 36px rgba(16, 42, 67, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 24px rgba(109, 193, 246, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(155%);
}
.forms-preview-body:not(.classic) .forms-preview-field::before,
.forms-preview-body:not(.classic) .forms-preview-toggle::before,
.forms-preview-body:not(.classic) .forms-preview-hidden::before,
.forms-preview-body:not(.classic) .forms-choice-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
  pointer-events: none;
}
.forms-preview-body:not(.classic) .forms-preview-field > *,
.forms-preview-body:not(.classic) .forms-preview-toggle > *,
.forms-preview-body:not(.classic) .forms-preview-hidden > *,
.forms-preview-body:not(.classic) .forms-choice-group > * {
  position: relative;
  z-index: 1;
}
.forms-preview-body:not(.classic) .forms-preview-field input,
.forms-preview-body:not(.classic) .forms-preview-field textarea,
.forms-preview-body:not(.classic) .forms-preview-field select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 10px rgba(109, 193, 246, 0.06),
    0 6px 14px rgba(16, 42, 67, 0.06);
}
.forms-preview-body:not(.classic) .forms-preview-field,
.forms-preview-body:not(.classic) .forms-preview-toggle,
.forms-preview-body:not(.classic) .forms-preview-hidden {
  border-radius: 22px;
}
.forms-preview-body:not(.classic) .forms-choice-group {
  display: grid;
  gap: 10px;
  border-radius: 24px;
  padding: 14px 14px 13px;
  margin-top: 6px;
}
.forms-preview-body:not(.classic) .forms-choice-group .forms-choice-group-title {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.forms-preview-body:not(.classic) .forms-choice-options {
  gap: 12px;
  margin-top: 0;
}
.forms-preview-validation {
  display: block;
  margin-top: 6px;
  color: #be123c;
  font-size: 12px;
  line-height: 1.35;
}
.forms-required {
  color: #be123c;
  margin-left: 4px;
}
.forms-preview-footer-inline {
  display: flex;
  justify-content: flex-end;
}
.forms-preview-footer-inline-note {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}
.forms-preview-thanks-state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 18px;
}
.forms-preview-thanks-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 193, 246, 0.94), rgba(201, 226, 101, 0.9));
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(109, 193, 246, 0.22);
}
.forms-preview-thanks-copy {
  display: grid;
  gap: 4px;
}
.forms-preview-thanks-copy h4 {
  margin: 0;
}
.forms-preview-thanks-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}
.forms-preview-submit-btn,
.forms-preview-footer button {
  min-width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: var(--form-submit-color, var(--accent));
  color: var(--form-submit-text-color, #ffffff);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--form-submit-color, var(--accent)) 28%, transparent);
}
.forms-preview-submit-btn {
  width: 100%;
  display: block;
}
.forms-preview-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(153, 177, 214, 0.12);
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.8), rgba(248, 250, 255, 0.96));
  display: flex;
  justify-content: center;
}
.forms-components-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.forms-component-tile {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
  padding: 14px;
  min-height: 118px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.forms-component-tile:hover,
.forms-component-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(109, 193, 246, 0.4);
  box-shadow:
    0 14px 28px rgba(109, 193, 246, 0.12),
    0 0 0 1px rgba(109, 193, 246, 0.12) inset;
}
.forms-component-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 193, 246, 0.94), rgba(201, 226, 101, 0.9));
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(109, 193, 246, 0.18);
}
.forms-component-tile strong {
  font-size: 14px;
}
.forms-component-tile small {
  color: var(--ink-soft);
  line-height: 1.35;
}
.forms-preview-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.forms-subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.forms-template-stack,
.forms-form-stack {
  display: grid;
  gap: 10px;
}
.forms-preview-edit-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(201, 226, 101, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.07);
}
.forms-preview-edit-cta h4 {
  margin: 0;
  font-size: 18px;
}
.forms-preview-edit-cta p {
  margin: 4px 0 0;
}
.forms-preview-edit-cta button {
  min-width: 120px;
}
.forms-template-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.forms-template-category-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 12px;
}
.forms-template-category-pill.active {
  border-color: rgba(109, 193, 246, 0.44);
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.88), rgba(109, 193, 246, 0.88));
  color: #17324d;
  box-shadow: 0 8px 20px rgba(109, 193, 246, 0.12);
}
.forms-template-stack-footer {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.forms-template-stack-footer .ghost-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.forms-template-list,
.forms-list,
.forms-submissions-list,
.forms-links-list {
  display: grid;
  gap: 10px;
}
.forms-overview-list {
  gap: 0;
}
.forms-template-card,
.forms-form-card,
.forms-link-card,
.forms-submission-card,
.forms-empty-state,
.forms-field-card {
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.06);
}
.forms-link-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.forms-template-card,
.forms-form-card {
  display: grid;
  gap: 8px;
  cursor: pointer;
}
.forms-template-card.active,
.forms-form-card.active {
  border-color: rgba(109, 193, 246, 0.46);
  box-shadow:
    0 12px 28px rgba(109, 193, 246, 0.12),
    0 0 0 1px rgba(109, 193, 246, 0.16) inset;
}
.forms-template-card strong,
.forms-form-card strong,
.forms-submission-card strong {
  display: block;
}
.forms-empty-state {
  display: grid;
  gap: 8px;
}
.forms-builder-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.82)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 28px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.forms-builder-tabs .forms-builder-tab {
  position: relative;
  overflow: hidden;
}
.forms-builder-tabs .forms-builder-tab.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, rgba(201, 226, 101, 0.86), rgba(109, 193, 246, 0.86));
  z-index: -1;
}
.forms-builder-tab {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
}
.forms-builder-tab.active {
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.92), rgba(109, 193, 246, 0.92));
  color: #17324d;
  box-shadow:
    0 10px 24px rgba(109, 193, 246, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.58) inset;
}
.forms-editor-form {
  display: grid;
  gap: 14px;
}
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.forms-grid.forms-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.forms-grid .stack-form {
  gap: 6px;
  min-width: 0;
}
.forms-grid .stack-form select {
  width: 100%;
  min-width: 0;
}
.forms-builder-section {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}
.forms-form-meta {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 226, 101, 0.11), transparent 42%),
    radial-gradient(120% 140% at 100% 0%, rgba(109, 193, 246, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.92));
  box-shadow:
    0 14px 34px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.forms-share-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 226, 101, 0.1), transparent 42%),
    radial-gradient(120% 140% at 100% 0%, rgba(109, 193, 246, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.93));
  box-shadow:
    0 14px 34px rgba(16, 42, 67, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.forms-share-block-body {
  display: grid;
  gap: 12px;
}
.forms-share-block-body.hidden {
  display: none;
}
.forms-share-block .forms-panel-head.mini {
  margin-bottom: -2px;
}
.forms-form-meta-body.hidden {
  display: none;
}
.forms-fields-list {
  display: grid;
  gap: 12px;
}
.forms-fields-collection {
  display: grid;
  gap: 10px;
}
.forms-field-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(201, 226, 101, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  box-shadow:
    0 14px 34px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.forms-field-card.active {
  border-color: rgba(109, 193, 246, 0.42);
  box-shadow:
    0 12px 28px rgba(109, 193, 246, 0.12),
    0 0 0 1px rgba(109, 193, 246, 0.15) inset;
}
.forms-field-card-add {
  align-items: center;
  grid-template-columns: auto 1fr;
  cursor: pointer;
}
.forms-field-card-add .forms-field-card-select {
  cursor: pointer;
}
.forms-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.82));
  box-shadow:
    0 8px 20px rgba(16, 42, 67, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.68) inset;
}
.forms-toggle span {
  display: grid;
  gap: 2px;
}
.forms-toggle strong {
  color: var(--ink);
}
.forms-toggle small {
  color: var(--ink-soft);
}
.forms-field-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.forms-field-card-select {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.forms-field-card-select:hover,
.forms-field-card-select:focus-visible {
  transform: none;
  box-shadow: none;
}
.forms-field-card-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 193, 246, 0.94), rgba(201, 226, 101, 0.88));
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}
.forms-field-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.forms-field-card-head strong {
  display: block;
}
.forms-field-card-copy small {
  color: var(--ink-soft);
}
.forms-field-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: start;
}
.forms-field-card.active .forms-field-card-actions {
  justify-content: flex-end;
}
.forms-field-card-body {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.forms-field-card-body.hidden {
  display: none;
}
.forms-field-grid-basic {
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr) minmax(0, 1fr);
}
.forms-field-grid-basic-two {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.forms-field-card-quick-row {
  display: grid;
  gap: 10px;
}
.forms-field-advanced {
  display: grid;
  gap: 10px;
}
.forms-field-advanced-btn {
  align-self: start;
  justify-self: start;
}
.forms-field-advanced-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 193, 246, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.76));
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.05);
}
.forms-field-advanced-body.hidden {
  display: none;
}
.forms-field-advanced-body .forms-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.forms-field-detail-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(109, 193, 246, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(201, 226, 101, 0.09), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.92));
  box-shadow:
    0 18px 42px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
}
.forms-field-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.forms-field-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.forms-field-detail-title .forms-field-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.forms-field-detail-title strong {
  display: block;
}
.forms-field-detail-title small {
  color: var(--ink-soft);
}
.forms-field-detail-body {
  display: grid;
  gap: 12px;
}
.forms-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.forms-field-grid .stack-form {
  gap: 6px;
}
.forms-option-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 193, 246, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow:
    0 12px 28px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
}
.forms-option-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.forms-option-panel-head strong {
  display: block;
  font-size: 14px;
}
.forms-option-panel-head small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.forms-option-list {
  display: grid;
  gap: 8px;
}
.forms-option-card-shell {
  position: relative;
}
.forms-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(153, 177, 214, 0.15);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
  box-shadow:
    0 10px 24px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  text-align: left;
}
.forms-option-card:hover,
.forms-option-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 193, 246, 0.34);
  box-shadow: 0 12px 26px rgba(109, 193, 246, 0.1);
}
.forms-option-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.forms-option-card-main strong {
  font-size: 14px;
  color: var(--ink);
}
.forms-option-card-main small,
.forms-option-card-main span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}
.forms-option-card-menu-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(16, 42, 67, 0.06);
}
.forms-option-card-menu-btn:hover,
.forms-option-card-menu-btn:focus-visible {
  border-color: rgba(109, 193, 246, 0.38);
  color: var(--accent);
}
.forms-option-card-menu-popover {
  position: absolute;
  top: calc(100% - 2px);
  right: 8px;
  z-index: 6;
  min-width: 136px;
  padding: 8px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(16, 42, 67, 0.14);
  display: grid;
  gap: 4px;
}
.forms-option-card-menu-popover.hidden {
  display: none;
}
.forms-option-card-menu-popover button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  font: inherit;
}
.forms-option-card-menu-popover button:hover,
.forms-option-card-menu-popover button:focus-visible {
  background: rgba(109, 193, 246, 0.1);
}
.forms-option-card-menu-popover button.danger {
  color: var(--danger);
}
.forms-option-card-menu-popover button.danger:hover,
.forms-option-card-menu-popover button.danger:focus-visible {
  background: rgba(245, 113, 113, 0.1);
}
.forms-option-empty {
  margin: 0;
}
.forms-option-editor {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.42);
  backdrop-filter: blur(12px);
}
.forms-option-editor.hidden {
  display: none;
}
.forms-option-editor-backdrop {
  position: absolute;
  inset: 0;
}
.forms-option-editor-dialog {
  position: relative;
  z-index: 1;
  width: min(424px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.99));
  box-shadow:
    0 28px 72px rgba(16, 42, 67, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
}
.forms-option-editor-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, rgba(201, 226, 101, 0.9), rgba(109, 193, 246, 0.9));
}
.forms-option-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.forms-option-editor-head h4 {
  margin: 0;
  font-size: 19px;
}
.forms-option-editor-head p {
  margin: 4px 0 0;
}
.forms-option-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 10px;
}
.forms-option-editor-grid .stack-form {
  width: 100%;
}
.forms-option-editor-grid .stack-form {
  gap: 7px;
}
.forms-option-editor-grid .stack-form > span {
  font-weight: 700;
  color: var(--ink);
}
.forms-option-editor-grid input,
.forms-option-editor-grid textarea {
  border: 1px solid rgba(153, 177, 214, 0.22);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 16px rgba(16, 42, 67, 0.04);
}
.forms-option-editor-grid input:focus,
.forms-option-editor-grid textarea:focus {
  border-color: rgba(109, 193, 246, 0.48);
  box-shadow:
    0 0 0 4px rgba(109, 193, 246, 0.12),
    0 10px 20px rgba(16, 42, 67, 0.07);
}
.forms-option-editor-full {
  grid-column: 1 / -1;
}
.forms-option-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
}
.forms-option-editor-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.forms-option-editor-actions button {
  min-width: 92px;
}
.forms-option-editor-actions .danger-btn {
  border-color: rgba(190, 24, 93, 0.2);
  background: rgba(255, 243, 247, 0.96);
  color: #b42318;
}
.forms-option-editor-actions .danger-btn:hover,
.forms-option-editor-actions .danger-btn:focus-visible {
  background: rgba(255, 235, 241, 0.98);
  box-shadow: 0 12px 20px rgba(190, 24, 93, 0.08);
}
.forms-option-editor-actions #forms-option-save-btn {
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.95), rgba(109, 193, 246, 0.95));
  color: #17324d;
  box-shadow: 0 12px 22px rgba(109, 193, 246, 0.16);
}
.forms-option-editor-actions #forms-option-save-btn:hover,
.forms-option-editor-actions #forms-option-save-btn:focus-visible {
  box-shadow:
    0 16px 26px rgba(109, 193, 246, 0.2),
    0 0 0 1px rgba(109, 193, 246, 0.14) inset;
}
.forms-field-readonly {
  display: grid;
  gap: 7px;
}
.forms-field-readonly-value {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.forms-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}
.forms-link-row input {
  min-width: 0;
}
.forms-branding-upload-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.forms-size-note {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.forms-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 16px;
  line-height: 1;
  text-align: center;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 226, 101, 0.34), transparent 42%),
    radial-gradient(140% 120% at 100% 0%, rgba(109, 193, 246, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.9));
  box-shadow:
    0 12px 24px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.forms-upload-btn:hover,
.forms-upload-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 193, 246, 0.38);
  box-shadow:
    0 16px 28px rgba(109, 193, 246, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}
.forms-inline-advanced {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 193, 246, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
  box-shadow:
    0 10px 24px rgba(16, 42, 67, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.forms-inline-advanced > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  box-shadow:
    0 8px 18px rgba(16, 42, 67, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.forms-inline-advanced > summary::-webkit-details-marker {
  display: none;
}
.forms-inline-advanced > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(109, 193, 246, 0.12);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}
.forms-inline-advanced[open] > summary {
  color: var(--ink);
}
.forms-inline-advanced[open] > summary::after {
  content: "−";
  background: rgba(201, 226, 101, 0.18);
  color: var(--ink);
}
.forms-cover-options {
  display: grid;
  gap: 12px;
}
.forms-cover-options.hidden {
  display: none;
}
.forms-cover-options .forms-inline-advanced {
  margin-top: 2px;
}
.forms-cover-options .stack-form {
  margin-top: 0;
}
.forms-cover-options .ghost-btn.forms-upload-btn,
.forms-inline-advanced .stack-form input {
  width: 100%;
}
.forms-cover-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.12), transparent 38%),
    radial-gradient(120% 120% at 100% 0%, rgba(109, 193, 246, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  box-shadow:
    0 16px 34px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}
.forms-cover-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
  box-shadow:
    0 8px 20px rgba(16, 42, 67, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.forms-cover-toggle-row strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.forms-cover-toggle-row small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
}
.forms-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9));
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.forms-switch-btn[aria-pressed="true"] {
  border-color: rgba(109, 193, 246, 0.38);
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.3), rgba(109, 193, 246, 0.24));
}
.forms-switch-track {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: rgba(153, 177, 214, 0.22);
  box-shadow: inset 0 0 0 1px rgba(153, 177, 214, 0.18);
}
.forms-switch-btn[aria-pressed="true"] .forms-switch-track {
  background: linear-gradient(135deg, rgba(201, 226, 101, 0.9), rgba(109, 193, 246, 0.9));
}
.forms-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(16, 42, 67, 0.18);
  transition: transform 160ms ease;
}
.forms-switch-btn[aria-pressed="true"] .forms-switch-thumb {
  transform: translateX(16px);
}
.forms-switch-label {
  min-width: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.forms-cover-options.hidden {
  display: none;
}
.forms-cover-card h5 {
  margin: 0 0 4px;
  font-size: 15px;
}
.forms-cover-card .muted {
  margin: 0;
}
.forms-cover-toggle {
  align-items: center;
}
.forms-color-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.1), transparent 38%),
    radial-gradient(120% 120% at 100% 0%, rgba(109, 193, 246, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  box-shadow:
    0 14px 32px rgba(16, 42, 67, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}
.forms-color-field input[type="color"] {
  width: 86px;
  min-height: 56px;
  padding: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  cursor: pointer;
  justify-self: start;
}
.forms-color-field input[type="color"]:hover,
.forms-color-field input[type="color"]:focus-visible {
  border-color: rgba(109, 193, 246, 0.42);
  box-shadow:
    0 14px 28px rgba(109, 193, 246, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.forms-color-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.forms-color-field input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 8px 18px rgba(16, 42, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.forms-color-field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 8px 18px rgba(16, 42, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.forms-share-panel input[type="color"] {
  width: 100%;
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  box-shadow:
    0 10px 22px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.forms-share-panel input[type="color"]:hover,
.forms-share-panel input[type="color"]:focus-visible {
  box-shadow:
    0 14px 28px rgba(109, 193, 246, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}
.forms-share-panel input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.forms-share-panel input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 8px 18px rgba(16, 42, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.forms-share-panel input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 8px 18px rgba(16, 42, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.forms-share-url-link {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(153, 177, 214, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forms-share-url-link:hover,
.forms-share-url-link:focus-visible {
  border-color: rgba(109, 193, 246, 0.44);
  box-shadow: 0 0 0 3px rgba(109, 193, 246, 0.1);
}
.forms-share-url-link[aria-disabled="true"] {
  color: var(--ink-soft);
  cursor: default;
  pointer-events: none;
}
.forms-link-card-url {
  display: inline-block;
  max-width: 100%;
  color: var(--accent);
  word-break: break-all;
  text-decoration: none;
}
.forms-link-card-url:hover,
.forms-link-card-url:focus-visible {
  text-decoration: underline;
}
.forms-component-picker {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start start;
  padding: 18px;
  background: rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(8px);
}
.forms-component-picker.hidden {
  display: none;
}
.forms-component-picker-backdrop {
  position: absolute;
  inset: 0;
}
.forms-component-picker-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100% - 0px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 22px 60px rgba(16, 42, 67, 0.22);
}
.forms-component-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.forms-component-picker-head h4 {
  margin: 0;
}
.forms-component-picker-head p {
  margin: 4px 0 0;
}
.forms-component-picker .forms-components-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1120px) {
  .forms-component-picker {
    padding: 14px;
  }
  .forms-component-picker-dialog {
    width: min(100%, 560px);
    max-height: 100%;
  }
}
@media (max-width: 900px) {
  .forms-component-picker .forms-components-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .forms-component-picker .forms-components-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.forms-share-panel.hidden {
  display: none;
}
.forms-component-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 226, 101, 0.12), transparent 32%),
    radial-gradient(120% 120% at 100% 0%, rgba(109, 193, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  box-shadow:
    0 12px 28px rgba(16, 42, 67, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}
.forms-component-card:hover,
.forms-component-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(109, 193, 246, 0.36);
  box-shadow:
    0 18px 34px rgba(109, 193, 246, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.forms-component-card strong {
  font-size: 14px;
}
.forms-component-card small {
  color: var(--ink-soft);
  line-height: 1.35;
}
.forms-preview-text-block,
.public-form-text-block {
  display: grid;
  gap: 8px;
  padding: 4px 2px;
}
.forms-preview-text-block.heading h2,
.public-form-text-block.heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.forms-preview-text-block.body p,
.public-form-text-block.body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.forms-link-meta {
  line-height: 1.4;
}
.forms-routing-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 193, 246, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.9));
}
.forms-routing-summary .forms-overview-pill {
  width: fit-content;
}
.forms-routing-block .forms-grid {
  margin-bottom: 12px;
}
.forms-routing-tutorial {
  display: grid;
  gap: 12px;
  margin: 2px 0 14px;
  padding: 16px;
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 193, 246, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}
.forms-routing-tutorial-head h5 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.forms-routing-tutorial-head .muted {
  margin-top: 4px;
}
.forms-routing-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.forms-routing-tutorial-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(153, 177, 214, 0.12);
}
.forms-routing-tutorial-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}
.forms-routing-tutorial-card .muted {
  margin: 0;
  line-height: 1.45;
}
.forms-routing-tutorial-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}
.forms-routing-tutorial-foot strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(109, 193, 246, 0.12);
  color: var(--ink);
  font-size: 12px;
}
.forms-routing-block select[disabled] {
  opacity: 0.66;
}
.forms-submission-card {
  display: grid;
  gap: 8px;
}
.forms-submission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}
.forms-submission-health {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(109, 193, 246, 0.1);
  color: var(--ink);
  font-weight: 600;
}
.forms-submission-health.hot {
  background: rgba(34, 197, 94, 0.14);
}
.forms-submission-health.warm {
  background: rgba(245, 158, 11, 0.14);
}
.forms-submission-health.cold {
  background: rgba(148, 163, 184, 0.18);
}
.forms-submission-routing {
  padding: 10px 12px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}
.forms-submission-values {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.forms-submission-values code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.forms-submissions-panel .forms-submissions-list:empty::before {
  content: "No submissions yet.";
  color: var(--ink-soft);
  padding: 10px 0;
}
.forms-submissions-table-wrap {
  margin-top: 8px;
  border: 1px solid rgba(153, 177, 214, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}
.forms-submissions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(153, 177, 214, 0.12);
}
.forms-submissions-search {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
}
.forms-submissions-search span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.forms-submissions-search input {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(153, 177, 214, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
}
.forms-submissions-search input:focus {
  outline: none;
  border-color: rgba(109, 193, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(109, 193, 246, 0.16);
}
.forms-submissions-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  flex-wrap: wrap;
}
.forms-submissions-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(153, 177, 214, 0.12);
}
.forms-submissions-pagination-meta {
  color: var(--ink-soft);
  font-size: 12px;
}
.forms-submissions-pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.forms-submissions-pagination-page {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.forms-submissions-table {
  min-width: 1120px;
}
.forms-submissions-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250, 214, 107, 0.12), rgba(248, 251, 255, 0.96));
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.forms-submissions-table tbody td {
  vertical-align: top;
  white-space: normal;
}
.forms-submissions-table tbody td strong {
  display: block;
  white-space: nowrap;
}
.forms-submissions-table tbody tr:hover {
  background: rgba(108, 173, 235, 0.05);
}
.forms-submissions-empty-row {
  padding: 18px 16px;
  text-align: center;
}
.forms-submission-actions-cell {
  text-align: right;
  white-space: nowrap;
}
.forms-submission-delete-btn {
  width: 34px;
  height: 34px;
  padding: 0;
}
.forms-submission-delete-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1280px) {
  .forms-overview-toolbar,
  .forms-overview-table-head,
  .forms-overview-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .forms-overview-table-head {
    display: none;
  }
  .forms-overview-actions {
    justify-content: flex-start;
  }
  .forms-layout {
    grid-template-columns: minmax(280px, 1fr);
  }
  .forms-preview-panel {
    position: static;
  }
  .forms-preview-frame {
    max-width: none;
    margin-left: 0;
  }
  .forms-submissions-panel {
    grid-column: auto;
  }
  .forms-submissions-table {
    min-width: 980px;
  }
  .forms-preview-screen {
    min-height: 580px;
  }
  .forms-components-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .forms-grid.forms-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .forms-preview-frame {
    max-width: 100%;
  }
  .forms-grid.forms-grid-three {
    grid-template-columns: minmax(0, 1fr);
  }
  .forms-routing-tutorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .forms-submissions-toolbar,
  .forms-submissions-pagination {
    align-items: stretch;
  }
  .forms-submissions-search {
    min-width: 0;
    width: 100%;
  }
  .forms-submissions-toolbar-meta,
  .forms-submissions-pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 860px) {
  .forms-overview-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .forms-draft-resume {
    flex-direction: column;
    align-items: stretch;
  }
  .forms-draft-resume-actions {
    justify-content: stretch;
  }
  .forms-draft-resume-actions button {
    width: 100%;
  }
  .forms-grid,
  .forms-field-grid,
  .forms-link-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .forms-option-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .forms-option-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .forms-option-editor-actions-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .forms-option-editor-actions-right button,
  .forms-option-editor-actions > button {
    width: 100%;
  }
  .forms-preview-topbar {
    flex-wrap: wrap;
  }
  .forms-preview-name {
    margin: 0;
  }
  .forms-components-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reports-history-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(900px 220px at 100% 0%, rgba(201, 226, 101, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.94));
}
.reports-history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.report-history-card,
.report-history-empty {
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
.report-history-empty {
  grid-column: 1 / -1;
}
.report-history-empty p {
  margin: 6px 0 0;
}
.report-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.report-history-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.report-history-new-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.98), rgba(255, 249, 249, 0.94));
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.report-history-new-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow:
    0 0 0 3px rgba(254, 226, 226, 0.95),
    0 0 0 0 rgba(239, 68, 68, 0.42);
  animation: reportNewPulse 1.4s ease-in-out infinite;
}
.report-history-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.report-history-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}
.report-history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.96), rgba(241, 255, 226, 0.9));
  color: #24476a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.report-history-summary {
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.reports-history-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-preview-modal-card {
  width: min(880px, 94vw);
  height: min(84vh, 840px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.report-preview-modal-top,
.report-preview-actions {
  flex: 0 0 auto;
}
.report-preview-scroll {
  flex: 1 1 auto;
  overflow: hidden;
}
.report-preview-content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 12px;
  padding-right: 2px;
}
.report-preview-card {
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
}
.report-preview-card .report-sections {
  margin-top: 12px;
}
@media (max-width: 1040px) {
  .reports-history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .reports-history-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reports-list {
  display: grid;
  gap: 12px;
}
.report-card {
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.06);
}
.report-card-compact {
  background:
    radial-gradient(720px 180px at 100% 0%, rgba(109, 193, 246, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  padding: 20px;
}
.report-card-compact .report-card-head {
  margin-bottom: 14px;
}
.report-card-compact .report-summary {
  margin: 0 0 16px;
  line-height: 1.7;
}
.report-card-compact .reports-history-actions {
  padding-top: 4px;
}
.report-card-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background:
    radial-gradient(700px 180px at 100% 0%, rgba(201, 226, 101, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(245, 249, 255, 0.94));
}
.report-card-empty .muted {
  max-width: 520px;
}
.report-state-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(109, 193, 246, 0.22);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.96), rgba(241, 255, 226, 0.9));
  color: #24476a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-card-error {
  border-color: rgba(239, 68, 68, 0.2);
  background:
    radial-gradient(700px 180px at 100% 0%, rgba(254, 202, 202, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(255, 249, 249, 0.98), rgba(255, 244, 244, 0.94));
}
.report-card-error .report-state-icon {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(255, 236, 236, 0.98), rgba(255, 244, 244, 0.94));
  color: #b42318;
}
.report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.report-generated-at {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}
.report-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.report-card h4 {
  margin: 6px 0 0;
}
.report-summary {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 600;
}
@keyframes reportNewPulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.42);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
.report-sections {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.report-section {
  border: 1px solid rgba(153, 177, 214, 0.16);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}
.report-section h5 {
  margin: 0;
  font-size: 13px;
}
.report-section p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}
.report-reference-actions {
  margin-top: 12px;
}
@media (max-width: 620px) {
  .reports-settings-inline,
  .report-history-head,
  .report-preview-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .report-card-head {
    flex-direction: column;
  }
  .report-generated-at {
    text-align: left;
    white-space: normal;
  }
}
.analytics-loading {
  overflow: hidden;
}
.analytics-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 46%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: analyticsShimmer 1.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.analytics-loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 36%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #22c55e, #06b6d4);
  animation: analyticsProgress 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
.analytics-loading > * {
  opacity: 0.7;
}
.metric-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}
.metric-card .label {
  color: var(--ink-soft);
  font-size: 12px;
}
.metric-card .value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
}
.analytics-visuals {
  margin-top: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.chart-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 255, 0.72));
}
.chart-card.wide {
  grid-column: span 2;
}
.chart-title {
  font-size: 14px;
  margin: 0;
}
.chart-subtitle {
  margin: 3px 0 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.analytics-controls-row {
  display: grid;
  grid-template-columns: auto minmax(140px, 220px) 1fr;
  gap: 8px;
  align-items: center;
}
.chart-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.chart-head-inline-copy {
  min-width: 0;
}
.chart-head-inline-controls {
  display: grid;
  grid-template-columns: auto minmax(120px, 160px);
  grid-template-areas:
    "label select"
    "hint hint";
  align-items: center;
  gap: 4px 8px;
  min-width: 250px;
}
.chart-head-inline-controls label {
  grid-area: label;
  font-size: 12px;
  font-weight: 700;
}
.chart-head-inline-controls select {
  grid-area: select;
  min-height: 34px;
}
.chart-head-inline-controls .analytics-controls-hint {
  grid-area: hint;
}
.analytics-controls-row label {
  font-size: 12px;
  font-weight: 700;
}
.analytics-controls-row select {
  min-height: 34px;
}
.analytics-controls-hint {
  font-size: 12px;
}
.chart-bars {
  display: grid;
  gap: 8px;
}
.chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2.8fr) auto;
  align-items: center;
  gap: 8px;
}
.chart-row-label {
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-row-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.chart-row-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.chart-row-value {
  font-size: 12px;
  font-weight: 600;
}
.chart-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 190px;
}
.chart-column {
  display: grid;
  gap: 6px;
  justify-items: center;
}
.chart-column-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}
.chart-column-track {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.chart-column-fill {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  min-height: 8px;
}
.chart-column-stack {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  min-height: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
}
.chart-column-segment {
  width: 100%;
  display: block;
}
.chart-column-label {
  width: 100%;
  font-size: 11px;
  text-align: center;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-pipeline-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.chart-pipeline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
}
.chart-pipeline-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.chart-pipeline-legend-label {
  font-size: 11px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-donut-wrap {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.chart-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.chart-donut-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}
.chart-donut-core span {
  font-size: 11px;
  color: var(--ink-soft);
}
.chart-donut-core strong {
  font-size: 20px;
}
.chart-legend {
  display: grid;
  gap: 6px;
}
.chart-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chart-legend-label {
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-legend-value {
  font-size: 12px;
  font-weight: 600;
}
.chart-inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.chart-inline-metrics.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chart-inline-metrics .metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.74);
}
.chart-inline-metrics .metric .k {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
}
.chart-inline-metrics .metric .v {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}
.chart-empty {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.insights-panel {
  margin-top: 10px;
  padding: 12px;
}
.dashboard-ai-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}
.dashboard-ai-grid > .insights-panel {
  margin-top: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.dashboard-ai-grid > .insights-panel > ul.list,
.dashboard-ai-grid > .agent-hub-panel > ul.agent-stream-list {
  flex: 1 1 auto;
  min-height: 0;
}
.agent-hub-panel {
  padding: 14px;
  background:
    radial-gradient(1000px 220px at 100% 0%, rgba(109, 193, 246, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.94));
}
.agent-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.agent-hub-head h3 {
  margin: 0;
}
.agent-actions-bar {
  margin-top: 14px;
  padding: 6px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}
.agent-actions-bar .ghost-btn {
  min-height: 38px;
  border-radius: 12px;
}
.agent-actions-bar .ghost-btn.active-view {
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(226, 255, 239, 0.9));
  color: #1f3d68;
  box-shadow: 0 10px 20px rgba(109, 193, 246, 0.12);
}
.agent-hub-panel.is-running {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 18px 34px rgba(109, 193, 246, 0.12);
}
.agent-run-status {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  color: #40566f;
  font-size: 14px;
  font-weight: 600;
}
.agent-run-status::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-top-color: rgba(109, 193, 246, 0.95);
  flex: 0 0 auto;
}
.agent-run-status[data-state="running"]::before {
  animation: spin 0.8s linear infinite;
}
.agent-run-status[data-state="success"] {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98));
  color: #16624a;
}
.agent-run-status[data-state="success"]::before {
  border-color: rgba(16, 185, 129, 0.2);
  border-top-color: rgba(16, 185, 129, 0.9);
}
.agent-run-status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.22);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.98));
  color: #a53d3d;
}
.agent-run-status[data-state="error"]::before {
  border-color: rgba(248, 113, 113, 0.2);
  border-top-color: rgba(248, 113, 113, 0.88);
}
.agent-stream-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.logs-hub-panel {
  padding: 14px;
  border: 1px solid rgba(120, 145, 178, 0.2);
  background:
    radial-gradient(760px 220px at 100% 0%, rgba(148, 163, 184, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(243, 247, 252, 0.96));
}
.logs-hub-head {
  align-items: flex-start;
}
.logs-hub-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(120, 145, 178, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4f5f74;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ai-credits-panel {
  padding: 14px;
  border: 1px solid rgba(109, 193, 246, 0.22);
  background:
    radial-gradient(780px 220px at 100% 0%, rgba(109, 193, 246, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.99), rgba(244, 250, 255, 0.95));
}
.ai-credits-summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.ai-credits-summary strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #16324a;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.settings-card,
.settings-hero-panel {
  border: 1px solid rgba(109, 193, 246, 0.18);
  background:
    radial-gradient(circle at top right, rgba(201, 226, 101, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.99), rgba(244, 250, 255, 0.95));
}
.settings-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}
.settings-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.settings-card {
  padding: 16px;
}
.settings-wallet-summary {
  margin-top: 12px;
}
.settings-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.settings-menu-panel {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}
.settings-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-menu-column {
  display: grid;
  gap: 14px;
  align-content: start;
}
.settings-mini-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(109, 193, 246, 0.16);
  background:
  radial-gradient(circle at top right, rgba(201, 226, 101, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.74);
}
.settings-toggle-card {
  align-self: start;
}
.settings-mini-card .profile-menu-settings-head {
  margin-bottom: 2px;
}
.settings-mini-card .settings-card-actions {
  margin-top: 2px;
}
.settings-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(109, 193, 246, 0.12);
  background: rgba(255, 255, 255, 0.7);
}
.settings-doc-row p {
  margin: 0;
  line-height: 1.4;
  flex: 1 1 auto;
}
.settings-doc-link-btn {
  flex: 0 0 auto;
  align-self: start;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(109, 193, 246, 0.22);
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.18), rgba(109, 193, 246, 0.16)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 10px 20px rgba(16, 42, 67, 0.06);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1f2b3d;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}
.settings-doc-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 193, 246, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 14px 26px rgba(16, 42, 67, 0.08);
}
.settings-doc-link-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(109, 193, 246, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 14px 26px rgba(16, 42, 67, 0.08);
}
.settings-menu-panel .profile-menu-token-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.settings-shortcuts-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #41556d;
}
.settings-shortcuts-note {
  margin-top: 12px;
}
.ai-credits-panel p {
  margin: 12px 0 0;
  color: #52657d;
}
.dodo-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.dodo-wallet-grid .field {
  display: grid;
  gap: 6px;
}
.dodo-wallet-grid .field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #36506a;
}
.dodo-wallet-grid .field input {
  width: 100%;
  border: 1px solid rgba(120, 145, 178, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #16324a;
}
.dodo-wallet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.dodo-wallet-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #36506a;
}
.dodo-wallet-summary p {
  margin: 0;
}
.dodo-wallet-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}
.dodo-wallet-actions .ghost-btn {
  border-color: rgba(120, 145, 178, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.94));
  color: #24364a;
}
.dodo-wallet-actions .ghost-btn:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.96), rgba(245, 252, 255, 0.94));
}
.credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.billing-email-row {
  margin-top: 14px;
}
.billing-email-field {
  display: grid;
  gap: 6px;
}
.billing-email-note {
  margin-top: 10px !important;
}
.billing-email-field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #36506a;
}
.billing-email-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(120, 145, 178, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #16324a;
}
html[data-theme="dark"] .billing-email-field span {
  color: #9aa9c2;
}
html[data-theme="dark"] .billing-email-field input {
  border-color: rgba(120, 145, 178, 0.2);
  background: rgba(18, 30, 50, 0.96);
  color: #eaf1ff;
}
.credit-pack-btn {
  min-height: 46px;
  justify-content: center;
  font-weight: 700;
  border-color: rgba(120, 145, 178, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.94));
  color: #24364a;
}
.credit-pack-btn:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.96), rgba(245, 252, 255, 0.94));
}
.credit-pack-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}
.ai-credits-note {
  margin-top: 12px !important;
}
.logs-hub-kicker.is-warning {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 247, 237, 0.96);
  color: #9a5b00;
}
.logs-actions-bar {
  margin-top: 16px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
}
.logs-actions-bar .ghost-btn {
  border-color: rgba(120, 145, 178, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.94));
  color: #24364a;
}
.logs-actions-bar .ghost-btn:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.96), rgba(245, 252, 255, 0.94));
}
.log-stream-panel {
  padding: 14px;
  background:
    radial-gradient(900px 220px at 100% 0%, rgba(201, 226, 101, 0.09), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.94));
}
.log-stream-head {
  align-items: flex-start;
}
.log-stream-list {
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.24) transparent;
}
.log-stream-list::-webkit-scrollbar {
  width: 7px;
}
.log-stream-list::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.22);
  border-radius: 999px;
}
.ai-credit-logs-modal-card {
  width: min(980px, 95vw);
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}
.ai-credit-logs-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(150px, 0.6fr);
  gap: 10px;
  align-items: center;
}
.ai-credit-logs-search,
.ai-credit-logs-select {
  min-width: 0;
  width: 100%;
}
.ai-credit-logs-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.24) transparent;
}
.ai-credit-logs-modal-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-right: 4px;
}
.ai-credit-logs-scroll::-webkit-scrollbar {
  width: 7px;
}
.ai-credit-logs-scroll::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.22);
  border-radius: 999px;
}
.dashboard-logs-modal-card {
  width: min(1080px, 95vw);
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
}
.dashboard-logs-modal-scroll {
  min-height: 0;
  overflow: auto;
}
.dashboard-logs-modal-list {
  display: grid;
  gap: 10px;
  padding-right: 4px;
  min-height: 0;
}
.ai-credit-logs-actions {
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ai-credit-logs-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai-credit-logs-pagination .muted {
  min-width: 88px;
  text-align: center;
  font-weight: 700;
}
.ai-credit-log-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}
.ai-credit-log-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(156px, auto);
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
}
.ai-credit-log-main {
  min-width: 0;
}
.ai-credit-log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-credit-log-head strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.ai-credit-log-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(109, 193, 246, 0.08);
  color: #36516f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ai-credit-log-note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}
.ai-credit-log-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
  min-width: 156px;
}
.ai-credit-log-amount {
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ai-credit-log-item.is-addition .ai-credit-log-amount {
  color: #0f7a45;
}
.ai-credit-log-item.is-deduction .ai-credit-log-amount {
  color: #b42318;
}
.ai-credit-log-empty {
  grid-template-columns: 1fr;
}
.ai-credits-logs-btn {
  min-width: 72px;
}

.error-logs-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(150px, 0.7fr)) minmax(120px, 0.55fr);
  gap: 12px;
  margin-top: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(109, 193, 246, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(201, 226, 101, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 26px rgba(15, 23, 42, 0.04);
}

.error-logs-toolbar .search-input,
.error-logs-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.error-logs-toolbar .search-input::placeholder {
  color: rgba(71, 85, 105, 0.72);
}

.error-logs-stats-panel {
  background:
    linear-gradient(135deg, rgba(220, 255, 238, 0.92), rgba(255, 255, 255, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 252, 0.82));
}

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

.error-log-stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.error-log-stat strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

.error-logs-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
}

.error-log-item .ai-credit-log-amount {
  color: #1d4ed8;
}

.error-log-item .ai-credit-log-pill {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.14);
  color: #1e3a8a;
}

@media (max-width: 1180px) {
  .error-logs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .error-logs-toolbar {
    grid-template-columns: 1fr;
    margin-top: 10px;
    padding: 12px;
  }

  .error-log-stats {
    grid-template-columns: 1fr;
  }

  .error-logs-list li {
    grid-template-columns: 1fr;
  }

  .list-footer {
    align-items: flex-start;
  }
}

@media (max-width: 1180px) {
  .dashboard-ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-credit-logs-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .ai-credit-logs-actions {
    justify-content: center;
  }
  .ai-credit-log-list li,
  .ai-credit-logs-modal-list li {
    grid-template-columns: 1fr;
  }
  .ai-credit-log-meta {
    justify-items: start;
    text-align: left;
    min-width: 0;
  }
}
@media (max-width: 720px) {
  .ai-credit-logs-toolbar {
    grid-template-columns: 1fr;
  }
  .ai-credit-logs-pagination {
    width: 100%;
    justify-content: space-between;
  }
}
.copilot-quick-prompts,
.copilot-suggestions,
.copilot-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.copilot-modal-top,
.copilot-modal-bottom {
  position: relative;
  z-index: 1;
}
.copilot-modal-top {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(153, 177, 214, 0.18);
}
.copilot-modal-bottom {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(153, 177, 214, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.98));
}
.copilot-modal-scroll {
  min-height: 0;
  overflow: hidden;
}
.copilot-widget-cta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(153, 177, 214, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(241, 255, 226, 0.72));
}
.copilot-widget-copy {
  display: grid;
  gap: 6px;
}
.copilot-quick-prompts {
  margin-top: 0;
}
.copilot-chat-list {
  margin-top: 0;
  display: grid;
  gap: 10px;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-gutter: stable;
}
.copilot-empty-state,
.copilot-message {
  border: 1px solid rgba(153, 177, 214, 0.22);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.06);
}
.copilot-empty-state {
  background: linear-gradient(180deg, rgba(241, 255, 226, 0.82), rgba(248, 252, 255, 0.96));
}
.copilot-empty-state strong,
.copilot-message-role {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.copilot-empty-state p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}
.copilot-message.user {
  background: linear-gradient(180deg, rgba(226, 242, 255, 0.9), rgba(244, 249, 255, 0.96));
}
.copilot-message.assistant {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}
.copilot-message-body {
  margin-top: 8px;
  line-height: 1.55;
  color: var(--ink);
}
.copilot-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.copilot-suggestions {
  margin-top: 0;
}
.copilot-reference-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.copilot-reference-actions .ghost-btn {
  flex: 1 1 210px;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.copilot-proposal-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(171, 206, 91, 0.34);
  background: linear-gradient(180deg, rgba(247, 252, 240, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.copilot-proposal-card.is-approved {
  border-color: rgba(109, 193, 246, 0.36);
  background: linear-gradient(180deg, rgba(238, 248, 255, 0.98), rgba(255, 255, 255, 0.96));
}
.copilot-proposal-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.copilot-proposal-summary {
  margin-top: 8px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.copilot-proposal-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.copilot-proposal-row {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(153, 177, 214, 0.16);
}
.copilot-proposal-row span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.copilot-proposal-row strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.copilot-proposal-row input,
.copilot-proposal-row select {
  width: 100%;
  border: 1px solid rgba(153, 177, 214, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}
.copilot-proposal-row input:focus,
.copilot-proposal-row select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.copilot-proposal-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(255, 248, 235, 0.96);
  color: #8a5a12;
  line-height: 1.5;
}
.copilot-proposal-description,
.copilot-proposal-reason {
  margin-top: 10px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.copilot-proposal-reason strong {
  color: var(--ink);
}
.copilot-proposal-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.copilot-compose {
  margin-top: 0;
  display: grid;
  gap: 10px;
}
.copilot-compose textarea {
  width: 100%;
  min-height: 76px;
  max-height: 140px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px rgba(16, 42, 67, 0.05);
  padding: 12px 14px;
  color: var(--ink);
  resize: none;
}
.copilot-compose textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.copilot-compose-actions {
  justify-content: flex-end;
}
.copilot-modal-card {
  width: min(980px, 95vw);
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 16px;
}
.copilot-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 184, 108, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(201, 226, 101, 0.12),
    0 0 0 0 rgba(255, 184, 108, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.copilot-modal-card.is-thinking::before {
  opacity: 1;
  animation: copilotBorderGlow 1.8s ease-in-out infinite;
}
.copilot-modal-card.is-thinking {
  box-shadow:
    0 22px 46px rgba(16, 42, 67, 0.22),
    0 0 0 1px rgba(255, 184, 108, 0.16),
    0 0 28px rgba(255, 184, 108, 0.1),
    0 0 56px rgba(201, 226, 101, 0.08);
}
.copilot-modal-card.is-ready {
  animation: copilotReadyPulse 1.25s ease;
}
@media (max-width: 760px) {
  .copilot-widget-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .dodo-wallet-grid,
  .dodo-wallet-summary {
    grid-template-columns: 1fr;
  }
  .copilot-widget-cta .ghost-btn {
    width: 100%;
  }
  .dodo-wallet-actions .ghost-btn {
    width: 100%;
  }
  .copilot-modal-card {
    width: min(96vw, 96vw);
    max-height: min(92vh, 92vh);
    padding: 14px;
  }
}
.copilot-message.is-thinking {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96));
}
.copilot-thinking-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.copilot-thinking-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6dc1f6, #c9e265);
  opacity: 0.35;
  animation: copilotDotPulse 1.1s ease-in-out infinite;
}
.copilot-thinking-indicator span:nth-child(2) {
  animation-delay: 0.16s;
}
.copilot-thinking-indicator span:nth-child(3) {
  animation-delay: 0.32s;
}
.copilot-thinking-lines {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.copilot-thinking-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(109, 193, 246, 0.12), rgba(201, 226, 101, 0.32), rgba(109, 193, 246, 0.12));
  background-size: 200% 100%;
  animation: copilotLineSweep 1.4s linear infinite;
}
.copilot-thinking-lines span:first-child {
  width: 78%;
}
.copilot-thinking-lines span:last-child {
  width: 52%;
}
@keyframes copilotDotPulse {
  0%, 100% {
    transform: translateY(0) scale(0.92);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-2px) scale(1.06);
    opacity: 1;
  }
}
@keyframes copilotLineSweep {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes copilotBorderGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(201, 226, 101, 0.1),
      0 0 0 0 rgba(255, 184, 108, 0.06);
    border-color: rgba(255, 184, 108, 0.16);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(201, 226, 101, 0.22),
      0 0 24px rgba(255, 184, 108, 0.18);
    border-color: rgba(255, 184, 108, 0.34);
  }
}
@keyframes copilotReadyPulse {
  0% {
    box-shadow:
      0 24px 48px rgba(16, 42, 67, 0.25),
      0 0 0 0 rgba(109, 193, 246, 0.22);
  }
  35% {
    box-shadow:
      0 24px 48px rgba(16, 42, 67, 0.25),
      0 0 0 10px rgba(109, 193, 246, 0.08),
      0 0 32px rgba(201, 226, 101, 0.12);
  }
  100% {
    box-shadow: 0 24px 48px rgba(16, 42, 67, 0.25);
  }
}
.activity-hero-panel,
.activity-controls-panel,
.activity-calendar-panel,
.activity-feed-panel,
.activity-agenda-panel,
.activity-upcoming-panel {
  padding: 16px;
  border: 1px solid rgba(153, 177, 214, 0.22);
  background:
    radial-gradient(circle at top right, rgba(201, 226, 101, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.92));
  box-shadow: 0 16px 38px rgba(16, 42, 67, 0.08);
}
.activity-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.activity-hero-actions,
.activity-filter-row,
.activity-month-nav,
.activity-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.activity-controls-row {
  justify-content: space-between;
  flex-wrap: wrap;
}
.activity-controls-panel {
  position: relative;
  z-index: 8;
  overflow: visible;
}
.activity-month-nav h3 {
  margin-bottom: 4px;
}
.activity-month-picker-wrap {
  position: relative;
  z-index: 12;
}
.activity-month-popover.hidden {
  display: none !important;
}
.activity-month-trigger {
  min-height: 40px;
  min-width: 172px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(153, 177, 214, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(16, 42, 67, 0.08);
  font: inherit;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.activity-month-trigger:hover {
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 32px rgba(16, 42, 67, 0.1);
}
.activity-month-trigger:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.14),
    0 12px 28px rgba(16, 42, 67, 0.08);
}
.activity-month-trigger-icon {
  color: var(--ink-soft);
  font-size: 12px;
}
.activity-month-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(153, 177, 214, 0.26);
  background:
    radial-gradient(circle at top right, rgba(201, 226, 101, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
  box-shadow: 0 24px 50px rgba(16, 42, 67, 0.16);
  z-index: 90;
}
.activity-month-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.activity-month-popover-head strong {
  font-size: 16px;
}
.activity-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.activity-month-chip {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(153, 177, 214, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.activity-month-chip:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(239, 246, 255, 0.96);
}
.activity-month-chip.is-active {
  border-color: rgba(59, 130, 246, 0.42);
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.88));
  color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(96, 165, 250, 0.18);
}
.activity-month-chip.is-current {
  position: relative;
}
.activity-month-chip.is-current::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.activity-month-popover-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.activity-shell {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: visible;
}
.activity-main-stack,
.activity-side-stack {
  display: grid;
  gap: 14px;
  min-height: 0;
}
.activity-main-stack {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: visible;
}
.activity-side-stack {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  height: 100%;
  position: sticky;
  top: 12px;
}
.activity-calendar-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.activity-side-switcher-panel {
  padding: 10px;
}
.activity-side-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.82);
  border: 1px solid rgba(153, 177, 214, 0.18);
}
.activity-side-switch-btn {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6b7c93;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}
.activity-side-switch-btn:hover {
  color: #1f2d3d;
  background: rgba(255, 255, 255, 0.72);
}
.activity-side-switch-btn.active-view {
  background: linear-gradient(135deg, rgba(109, 193, 246, 0.18), rgba(201, 226, 101, 0.28));
  color: #17324d;
  box-shadow: 0 10px 20px rgba(109, 193, 246, 0.16);
  transform: translateY(-1px);
}
.activity-side-stack .activity-agenda-panel,
.activity-side-stack .activity-upcoming-panel,
.activity-side-stack .activity-feed-panel {
  display: none;
  min-height: 0;
}
.activity-side-stack[data-active-panel="day"] .activity-agenda-panel,
.activity-side-stack[data-active-panel="upcoming"] .activity-upcoming-panel,
.activity-side-stack[data-active-panel="feed"] .activity-feed-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.activity-side-stack.panel-switch-animate .activity-agenda-panel,
.activity-side-stack.panel-switch-animate .activity-upcoming-panel,
.activity-side-stack.panel-switch-animate .activity-feed-panel {
  animation: activityPanelSwitch 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes activityPanelSwitch {
  0% {
    opacity: 0;
    transform: translateX(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.activity-summary-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}
.activity-summary-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.92));
  border: 1px solid rgba(153, 177, 214, 0.24);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.08);
}
.activity-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #6dc1f6, #c9e265);
}
.activity-summary-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c93;
  margin-bottom: 8px;
}
.activity-summary-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.activity-summary-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.activity-weekdays,
.activity-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.activity-weekdays {
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.activity-calendar-grid {
  gap: 8px;
  min-height: 0;
  overflow: auto;
  align-content: start;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.24) transparent;
}
.activity-calendar-grid::-webkit-scrollbar {
  width: 7px;
}
.activity-calendar-grid::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.22);
  border-radius: 999px;
}
.activity-day-cell {
  min-height: 126px;
  border: 1px solid rgba(153, 177, 214, 0.2);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.activity-day-cell.is-outside {
  opacity: 0.48;
}
.activity-day-cell.is-today {
  border-color: rgba(109, 193, 246, 0.7);
  box-shadow: 0 10px 24px rgba(109, 193, 246, 0.16);
}
.activity-day-cell.is-selected {
  border-color: rgba(90, 168, 235, 0.85);
  box-shadow: 0 14px 28px rgba(109, 193, 246, 0.2);
  transform: translateY(-1px);
}
.activity-day-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.activity-day-number {
  font-size: 18px;
  font-weight: 700;
}
.activity-day-count {
  font-size: 11px;
  color: var(--ink-soft);
}
.activity-day-events {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.activity-dot-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6dc1f6;
}
.activity-dot.task {
  background: #f59e0b;
}
.activity-dot.reminder {
  background: #fb7185;
}
.activity-dot.pipeline {
  background: #38bdf8;
}
.activity-dot.automation {
  background: #8b5cf6;
}
.activity-dot.done {
  background: #22c55e;
}
.activity-day-preview {
  font-size: 12px;
  color: var(--ink-soft);
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  word-break: break-word;
}
.activity-feed-panel .side-head,
.activity-agenda-panel .side-head,
.activity-upcoming-panel .side-head {
  margin-bottom: 10px;
  align-items: center;
  gap: 10px;
}

#activity-selected-date-meta,
#activity-upcoming-meta,
#activity-feed-meta {
  flex-shrink: 0;
}

#activity-selected-date-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 193, 246, 0.24);
  background: rgba(248, 251, 255, 0.94);
  color: #6b7c93;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.activity-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-left: 4px solid #6dc1f6;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 26px rgba(16, 42, 67, 0.06);
}
.activity-item.task {
  border-left-color: #f59e0b;
}
.activity-item.reminder {
  border-left-color: #fb7185;
}
.activity-item.pipeline {
  border-left-color: #38bdf8;
}
.activity-item.automation {
  border-left-color: #8b5cf6;
}
.activity-item.done {
  border-left-color: #22c55e;
}
.activity-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.activity-item-title {
  font-weight: 800;
  line-height: 1.25;
}
.activity-item-time {
  font-size: 12px;
  color: #6b7c93;
  white-space: nowrap;
}
.activity-item-message {
  font-size: 13px;
  line-height: 1.55;
  color: #425466;
}
.activity-item-meta {
  font-size: 12px;
  color: var(--ink-soft);
}
.activity-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.activity-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.activity-badge {
  font-size: 11px;
  border: 1px solid rgba(153, 177, 214, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--ink-soft);
  background: rgba(248, 251, 255, 0.9);
}
.activity-badge.task {
  background: rgba(245, 158, 11, 0.1);
}
.activity-badge.reminder {
  background: rgba(251, 113, 133, 0.12);
  color: #be123c;
}
.activity-badge.pipeline {
  background: rgba(56, 189, 248, 0.1);
}
.activity-badge.automation {
  background: rgba(139, 92, 246, 0.12);
}
.activity-badge.overdue {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.activity-feed-panel .list,
.activity-agenda-panel .list,
.activity-upcoming-panel .list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}
.insight-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  min-height: 112px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(16, 42, 67, 0.05);
  position: relative;
  overflow: hidden;
  border-left: 4px solid #6dc1f6;
}
.insight-item.high {
  border-left-color: #ef4444;
}
.insight-item.medium {
  border-left-color: #f59e0b;
}
.insight-item.low {
  border-left-color: #22c55e;
}
.insight-item .task-actions {
  margin-top: 2px;
}
.insight-open-btn {
  margin-top: 2px;
}

.activity-feed-panel .list > li,
.activity-agenda-panel .list > li,
.activity-upcoming-panel .list > li {
  list-style: none;
}

.agent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.agent-actions > button.active-view {
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.24), rgba(201, 226, 101, 0.26));
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--ink);
}
.agent-auto-run-control {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  user-select: none;
}
.agent-auto-run-control input {
  width: 15px;
  height: 15px;
}

.task-item {
  display: grid;
  gap: 6px;
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: #6dc1f6;
  padding-left: 10px;
}
.task-card {
  padding: 12px 14px;
  border-left-width: 0;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(16, 42, 67, 0.06);
  position: relative;
  overflow: hidden;
}
.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6dc1f6, rgba(109, 193, 246, 0.2));
}
.task-item.high {
  border-left-color: #ef4444;
}
.task-item.medium {
  border-left-color: #f59e0b;
}
.task-item.low {
  border-left-color: #22c55e;
}
.task-card.high::before {
  background: linear-gradient(180deg, #ef4444, rgba(239, 68, 68, 0.16));
}
.task-card.medium::before {
  background: linear-gradient(180deg, #f59e0b, rgba(245, 158, 11, 0.16));
}
.task-card.low::before {
  background: linear-gradient(180deg, #22c55e, rgba(34, 197, 94, 0.16));
}
.log-card::before {
  background: linear-gradient(180deg, #94a3b8, rgba(148, 163, 184, 0.16));
}
.automation-log-card::before {
  background: linear-gradient(180deg, #60a5fa, rgba(96, 165, 250, 0.18));
}

.task-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.task-item-header strong {
  font-size: 15px;
}
.task-item-summary {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.task-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.88);
  border: 1px solid rgba(153, 177, 214, 0.16);
  color: #58708f;
  font-size: 11px;
  font-weight: 600;
}
.task-meta-pill.subtle {
  background: rgba(248, 250, 252, 0.92);
}

.task-badge {
  font-size: 11px;
  border: 1px solid rgba(153, 177, 214, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  color: #61748b;
  background: rgba(248, 250, 252, 0.88);
  white-space: nowrap;
}

.task-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.task-actions .ghost-btn,
.task-done-btn,
.task-reopen-btn {
  min-height: 30px;
  border-radius: 10px;
}

.task-done-btn {
  min-height: 28px;
  padding: 0 8px;
  background: rgba(15, 118, 110, 0.13);
  color: #065f46;
  border: 1px solid rgba(15, 118, 110, 0.25);
}

.task-reopen-btn {
  min-height: 28px;
  padding: 0 8px;
  background: rgba(180, 83, 9, 0.12);
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.24);
}

.app-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  max-width: 360px;
  border: 1px solid rgba(124, 177, 243, 0.45);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(235, 245, 255, 0.93));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  padding: 12px 40px 12px 14px;
  z-index: 3200;
}

.app-toast.bad {
  border-color: rgba(190, 18, 60, 0.35);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(254, 226, 226, 0.85));
}

.app-toast-title {
  font-size: 14px;
  font-weight: 700;
}

.app-toast-message {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.app-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.app-toast-close:hover {
  background: rgba(148, 163, 184, 0.16);
  color: var(--ink);
}

.app-loader {
  position: fixed;
  inset: 0;
  background: rgba(14, 25, 40, 0.2);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 180;
}

html[data-boot-workspace="1"] .gate-card:not(.authenticated) {
  opacity: 0;
  pointer-events: none;
}

html[data-boot-workspace="1"] .gate-card:not(.authenticated) * {
  pointer-events: none;
}

html[data-boot-workspace="1"] #app-loader.hidden {
  display: grid;
}
html[data-boot-workspace="1"] #app-loader .loader-card {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.loader-card {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 18px 35px rgba(16, 42, 67, 0.2);
}
.loader-copy {
  display: grid;
  gap: 6px;
}
.loader-progress-shell {
  display: grid;
  gap: 4px;
}
.loader-progress-track {
  width: min(240px, 55vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.12);
  overflow: hidden;
}
.loader-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6dc1f6, #c9e265);
  transition: width 180ms ease;
}
.loader-progress-bar.is-active {
  background:
    linear-gradient(90deg, #6dc1f6, #c9e265),
    repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.22) 0 10px,
    rgba(255, 255, 255, 0.08) 10px 20px
  );
  background-size: 100% 100%, 36px 36px;
  animation: loaderBarShift 1.1s linear infinite;
}
.loader-progress-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
}

@keyframes loaderBarShift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 36px 0;
  }
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 36, 0.35);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 140;
}

#record-form-result {
  margin-bottom: 8px;
}

.modal-card {
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(16, 42, 67, 0.25);
  padding: 14px;
}
.preview-card {
  width: min(720px, 92vw);
}
.chat-drawer-card {
  width: min(1100px, 94vw);
  height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-drawer-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(244, 247, 251, 0.9);
}
.preview-body {
  display: grid;
  gap: 10px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.preview-grid p {
  margin-top: 4px;
  color: var(--ink-soft);
}
.confirm-card {
  width: min(560px, 92vw);
  padding: 0;
  overflow: hidden;
}
.pipeline-modal-card {
  width: min(560px, 92vw);
}
.move-deal-card {
  width: min(520px, 92vw);
}
#move-deal-current-meta {
  margin: 2px 0 0;
}

.confirm-card-shell {
  display: grid;
}

.confirm-card-hero {
  display: grid;
  gap: 10px;
  padding: 18px 18px 14px;
  background:
    linear-gradient(135deg, rgba(201, 226, 101, 0.16), rgba(109, 193, 246, 0.14)),
    rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.confirm-card-badge {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(190, 24, 93, 0.12);
  border: 1px solid rgba(190, 24, 93, 0.2);
  color: #9f1239;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-card-copy {
  display: grid;
  gap: 6px;
}

.confirm-card-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.confirm-card-copy p {
  margin: 0;
}

.confirm-card-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.98);
}

.confirm-warning-box {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(190, 24, 93, 0.16);
  background: rgba(190, 24, 93, 0.06);
  color: var(--ink);
}

.confirm-warning-box strong {
  color: #9f1239;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.confirm-warning-box span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.confirm-card #confirm-input-wrap {
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(109, 193, 246, 0.18);
  background: linear-gradient(180deg, rgba(244, 249, 254, 0.9), rgba(255, 255, 255, 0.96));
}

.confirm-card #confirm-input-wrap label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.confirm-card #confirm-input {
  min-height: 42px;
  border-color: rgba(109, 193, 246, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.confirm-card #confirm-input:focus {
  border-color: rgba(109, 193, 246, 0.54);
  box-shadow: 0 0 0 3px rgba(109, 193, 246, 0.12);
}

.confirm-card #confirm-input-help {
  font-size: 12px;
  line-height: 1.4;
}

.confirm-card .modal-actions {
  padding: 0 18px 18px;
  margin-top: 0;
}

.confirm-card #confirm-ok-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.confirm-card #confirm-ok-btn:not(:disabled) {
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.16);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pipeline-modal-card .modal-head {
  margin-bottom: 12px;
}
.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.import-minimized-chip {
  position: fixed;
  right: 18px;
  top: 86px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 16px 28px rgba(16, 42, 67, 0.18);
}
.import-minimized-chip:hover {
  transform: translateY(-1px);
}
.import-minimized-chip-label {
  font-weight: 700;
}
.import-minimized-chip-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

#new-pipeline-minimized-chip {
  top: 86px;
}

#import-minimized-chip {
  top: 138px;
}

.record-form {
  display: grid;
  gap: 8px;
}
.record-inline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.record-inline-row > div {
  min-width: 0;
}

.record-form label {
  font-size: 13px;
  font-weight: 700;
}
#record-currency-group {
  display: grid;
  gap: 6px;
}
#record-currency-input {
  text-transform: uppercase;
}
.record-tags-group {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.record-tag-presets,
.record-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.record-tag-btn {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #cfe2f1;
  background: #f4f8fc;
  color: #4f6074;
  font-size: 12px;
  font-weight: 600;
}
.record-tag-btn:hover {
  background: #eef5fb;
}
.record-tag-btn.active {
  border-color: rgba(109, 193, 246, 0.45);
  background: linear-gradient(120deg, rgba(109, 193, 246, 0.2), rgba(201, 226, 101, 0.26));
  color: #1f2d3d;
}
.record-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #cfe2f1;
  background: #eaf5ff;
  color: #274f70;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}
.record-tag-chip-remove {
  min-height: 16px;
  width: 16px;
  border-radius: 999px;
  border: 1px solid #b7d2e8;
  background: #ffffff;
  color: #4f6074;
  padding: 0;
  font-size: 10px;
  line-height: 1;
}

#crm-layout[data-theme-vibe="sales"] .column,
#crm-layout[data-theme-vibe="real_estate"] .column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 232, 0.92));
}
#crm-layout[data-theme-vibe="support"] .column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 252, 0.92));
}
#crm-layout[data-theme-vibe="onboarding"] .column,
#crm-layout[data-theme-vibe="project"] .column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 250, 0.92));
}
#crm-layout[data-theme-vibe="recruitment"] .column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 252, 0.9));
}
#crm-layout[data-theme-vibe="agency"] .column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 244, 238, 0.92));
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
#record-form .modal-actions {
  position: sticky;
  bottom: -14px;
  margin-top: 10px;
  margin-left: -14px;
  margin-right: -14px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(16, 42, 67, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.98) 32%);
  z-index: 2;
}
#record-form .modal-actions .ghost-btn {
  margin-right: auto;
}

.loader-ring {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(16, 42, 67, 0.22);
  border-top-color: #2563eb;
  animation: spin 0.8s linear infinite;
}

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

@keyframes formsCoverUploadSheen {
  0% {
    background-position: 120% 0, 0 0;
  }
  100% {
    background-position: -120% 0, 0 0;
  }
}

.hidden {
  display: none;
}
.reveal {
  animation: rise 300ms ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: auto;
}
.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 28, 0.28);
  backdrop-filter: blur(2px);
}
.tour-tooltip {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(16, 42, 67, 0.18);
  padding: 12px;
  z-index: 2;
}
.tour-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}
.tour-tooltip h3 {
  font-size: 20px;
  margin: 0 0 6px;
}
.tour-tooltip p {
  margin: 0;
  line-height: 1.35;
}
.tour-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tour-actions-right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.tour-target-highlight {
  position: relative !important;
  z-index: 131 !important;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(109, 193, 246, 0.28),
    0 0 0 6px rgba(201, 226, 101, 0.12),
    0 12px 28px rgba(16, 42, 67, 0.12);
  animation: tourGlowPulse 1.6s ease-in-out infinite;
}
@keyframes tourGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(109, 193, 246, 0.24),
      0 0 0 5px rgba(201, 226, 101, 0.1),
      0 10px 22px rgba(16, 42, 67, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(109, 193, 246, 0.34),
      0 0 0 8px rgba(201, 226, 101, 0.14),
      0 14px 30px rgba(16, 42, 67, 0.14);
  }
}
html[data-theme="dark"] .tour-backdrop {
  background: rgba(3, 8, 18, 0.42);
}
html[data-theme="dark"] .tour-tooltip {
  background: rgba(10, 18, 32, 0.98);
  border-color: rgba(58, 84, 123, 0.42);
  box-shadow: 0 20px 42px rgba(2, 8, 22, 0.48);
}
html[data-theme="dark"] .tour-step-meta {
  color: #9fb3d1;
}
html[data-theme="dark"] .tour-tooltip h3 {
  color: #edf5ff;
}
html[data-theme="dark"] .tour-target-highlight {
  box-shadow:
    0 0 0 2px rgba(109, 193, 246, 0.22),
    0 0 0 6px rgba(163, 230, 53, 0.1),
    0 14px 30px rgba(2, 8, 22, 0.36);
}

@keyframes analyticsShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes analyticsProgress {
  0% {
    left: -18%;
    width: 20%;
    opacity: 0.72;
  }
  50% {
    left: 34%;
    width: 38%;
    opacity: 1;
  }
  100% {
    left: 100%;
    width: 24%;
    opacity: 0.72;
  }
}

@media (max-width: 1150px) {
  body.app-viewport-lock {
    overflow-y: auto;
  }
  .shell.app-shell {
    height: auto;
    max-height: none;
    display: block;
    margin: 10px auto 22px;
  }
  .shell.app-shell .crm,
  .shell.app-shell .app-grid,
  .shell.app-shell .main-area,
  .shell.app-shell .tab-page.active,
  .shell.app-shell .crm-layout,
  .shell.app-shell .board-wrap,
  .shell.app-shell .board-shell {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  .crm-layout, .contacts-layout, .analytics-grid, .analytics-visuals {
    grid-template-columns: 1fr;
  }
  .activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell.app-shell .tab-page#tab-activities.active {
    overflow: auto;
    padding-right: 2px;
  }
  .activity-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .activity-side-stack {
    grid-template-rows: none;
    height: auto;
    position: static;
  }
  .activity-calendar-panel,
  .activity-calendar-grid {
    overflow: visible;
  }
  .analytics-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .analytics-toolbar-controls {
    min-width: 0;
  }
  .chart-card.wide {
    grid-column: span 1;
  }
  .chart-inline-metrics {
    grid-template-columns: 1fr;
  }
  .analytics-controls-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .chart-head-inline {
    flex-direction: column;
  }
  .chart-head-inline-controls {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "select"
      "hint";
  }
  .chart-row {
    grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr) auto;
  }
  .chart-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 150px;
  }
  .chart-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .chart-legend {
    width: 100%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-menu-grid {
    grid-template-columns: 1fr;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-grid.flow-focus,
  .app-grid.nav-collapsed {
    grid-template-columns: 1fr;
  }
  .left-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shell.app-shell .left-nav {
    overflow: visible;
  }
  .app-grid.flow-focus .left-nav .nav-item,
  .app-grid.nav-collapsed .left-nav .nav-item {
    padding-left: 10px;
    justify-content: flex-start;
    min-height: 42px;
  }
  .app-grid.flow-focus .left-nav .nav-item .nav-item-label,
  .app-grid.nav-collapsed .left-nav .nav-item .nav-item-label {
    display: inline;
  }
  .app-grid.flow-focus .left-nav .nav-item .nav-item-icon,
  .app-grid.nav-collapsed .left-nav .nav-item .nav-item-icon {
    display: none;
  }
  .crm-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .board-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .board-toolbar > :first-child {
    min-width: min(100%, 420px);
  }
  .flow-header-controls {
    order: 3;
    width: 100%;
  }
  .board-search-controls {
    order: 1;
    width: 100%;
  }
  .collapsed-pipeline-switcher {
    order: 2;
    width: 100%;
  }
  .board-search-controls input[type="search"] {
    width: 100%;
    min-width: 0;
  }
  .collapsed-pipeline-switcher select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .flow-header-controls select {
    width: 100%;
    min-width: 0;
  }
  .toolbar-actions.right {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .view-toggle-group {
    min-width: 0;
  }
  .list-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contacts-toolbar-controls {
    width: 100%;
  }
  .contacts-toolbar-controls > * {
    flex: 1 1 180px;
  }
  .title-action-group {
    width: 100%;
  }
  .contacts-toolbar-controls input[type="search"] {
    min-width: 0;
  }
  .flow-canvas-area {
    min-height: 320px;
  }
  .crm-layout.flow-focus .flow-canvas-area {
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 8px, 100%);
    margin: 8px auto 18px;
  }
  .crm-header {
    padding: 12px;
    gap: 8px;
  }
  .crm-header h2 {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.05;
  }
  .crm-header .eyebrow {
    max-width: calc(100vw - 32px);
  }
  .header-actions {
    gap: 6px;
  }
  .header-wallet-btn {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
  .header-wallet-label {
    font-size: 7px;
  }
  .header-wallet-balance {
    font-size: 9px;
  }
  .left-nav {
    gap: 6px;
    padding: 6px;
  }
  .nav-item {
    min-height: 40px;
    padding: 0 8px;
    font-size: 14px;
  }
  .activity-summary-grid {
    grid-template-columns: 1fr;
  }
  .activity-day-cell {
    min-height: 108px;
  }
  .activity-weekdays {
    gap: 4px;
    padding: 0;
    font-size: 10px;
  }
  .activity-calendar-grid {
    gap: 6px;
  }
  .activity-day-number {
    font-size: 16px;
  }
  .activity-hero-panel,
  .activity-controls-row,
  .activity-month-nav,
  .activity-filter-row {
    align-items: stretch;
    flex-direction: column;
  }
  .title-action-group {
    align-items: stretch;
  }
  .reload-action-btn {
    align-self: flex-start;
  }
  .activity-side-switcher {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    margin-top: 12px;
  }
  .settings-hero-panel,
  .settings-card-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-hero-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .settings-hero-actions > .ghost-btn {
    width: 100%;
  }
  .settings-menu-grid {
    grid-template-columns: 1fr;
  }
  .settings-menu-column {
    gap: 14px;
  }
  .crm-layout,
  .crm-layout.flow-focus,
  .crm-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .sidebar {
    max-height: none;
    overflow: visible;
  }
  .board-toolbar {
    padding: 8px;
  }
  .toolbar-actions.right {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .view-toggle-group {
    width: 100%;
    justify-content: space-between;
  }
  .view-toggle {
    min-width: 0;
    flex: 1 1 auto;
  }
  .view-toggle button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 10px;
  }
  #open-record-modal-btn {
    margin-left: auto;
  }
  .column {
    min-width: min(84vw, 360px);
    width: min(84vw, 360px);
  }
  #board .column {
    max-height: none;
  }
  .table-wrap,
  .list-table-wrap {
    overflow: visible;
  }
  .list-table-scroll {
    max-height: none;
  }
  .list-pagination {
    padding-bottom: 4px;
  }
  .contacts-toolbar {
    align-items: stretch;
  }
  .contacts-toolbar-controls {
    width: 100%;
  }
  .contacts-toolbar-controls > * {
    flex: 1 1 100%;
  }
  .contacts-toolbar-controls .contacts-menu-wrap {
    flex: 0 0 auto;
  }
  .contacts-table-panel .table-wrap {
    overflow-x: auto;
  }
  #contacts-table,
  #companies-table {
    min-width: 760px;
  }
  #companies-table {
    min-width: 1080px;
  }
  .flow-main-canvas {
    margin-top: 8px;
  }
  .flow-canvas-area {
    min-height: 420px;
  }
  .input-row, .row-inline {
    grid-template-columns: 1fr;
  }
  .record-inline-row {
    grid-template-columns: 1fr;
  }
  .list-toolbar {
    grid-template-columns: 1fr;
  }
  .contact-address-grid {
    grid-template-columns: 1fr;
  }
  .contact-address-grid > div:last-child {
    grid-column: auto;
  }
}

@media (hover: none) {
  .deal-card:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.96);
    transform: none;
  }
  .deal-card::before,
  .deal-card:hover::before {
    opacity: 0;
  }
  html[data-theme="dark"] .deal-card:hover {
    border-color: var(--line);
    background: linear-gradient(180deg, rgba(16, 25, 41, 0.96), rgba(14, 22, 36, 0.95));
  }
  .flow-chip:hover,
  .flow-canvas-deal:hover {
    border-color: var(--line);
    transform: none;
  }
  .flow-chip::before,
  .flow-chip:hover::before,
  .flow-canvas-deal::before,
  .flow-canvas-deal:hover::before {
    opacity: 0;
  }
  html[data-theme="dark"] .flow-chip:hover {
    background: rgba(13, 22, 38, 0.88);
  }
  html[data-theme="dark"] .flow-canvas-deal:hover {
    background: linear-gradient(180deg, rgba(15, 24, 40, 0.98), rgba(12, 20, 34, 0.96));
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-chip,
  .profile-chip-name,
  .deal-card,
  .flow-chip,
  .flow-canvas-deal {
    transition: none;
  }
  .deal-card:hover,
  .deal-card:active,
  .flow-chip:hover,
  .flow-canvas-deal:hover {
    transform: none;
  }
}
