:root {
  --bg: #05101d;
  --bg-soft: #0a1730;
  --bg-deep: #030913;
  --panel: rgba(7, 18, 36, 0.88);
  --panel-strong: rgba(9, 19, 38, 0.96);
  --panel-soft: rgba(13, 25, 49, 0.92);
  --line: rgba(86, 139, 255, 0.16);
  --line-strong: rgba(86, 139, 255, 0.3);
  --text: #eef5ff;
  --muted: #89a8cf;
  --brand: #4b8fff;
  --accent: #17c4ff;
  --accent-alt: #4b8fff;
  --accent-soft: rgba(23, 196, 255, 0.16);
  --success: #3ad29f;
  --danger: #ff6f8c;
  --surface-subtle: rgba(255, 255, 255, 0.03);
  --surface-elevated: rgba(255, 255, 255, 0.05);
  --input-bg: rgba(5, 12, 22, 0.72);
  --overlay-bg: rgba(10, 18, 33, 0.92);
  --bg-orb-a: rgba(23, 196, 255, 0.1);
  --bg-orb-b: rgba(75, 143, 255, 0.14);
  --ambient-a-color: rgba(17, 196, 255, 0.18);
  --ambient-b-color: rgba(75, 143, 255, 0.14);
  --button-primary-start: #2f73eb;
  --button-primary-end: #4b8fff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --site-gutter: clamp(14px, 1.8vw, 30px);
  --marketing-shell-max: 1180px;
  --app-shell-max: 1920px;
}

body.theme-light {
  --bg: #eef5ff;
  --bg-soft: #f7fbff;
  --bg-deep: #dde8f6;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(242, 248, 255, 0.94);
  --line: rgba(32, 73, 122, 0.12);
  --line-strong: rgba(37, 99, 235, 0.24);
  --text: #0d1b2f;
  --muted: #587191;
  --brand: #2f73eb;
  --accent: #0ea5e9;
  --accent-alt: #2f73eb;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --success: #16a34a;
  --danger: #dc2626;
  --surface-subtle: rgba(255, 255, 255, 0.72);
  --surface-elevated: rgba(244, 249, 255, 0.96);
  --input-bg: rgba(255, 255, 255, 0.9);
  --overlay-bg: rgba(255, 255, 255, 0.94);
  --bg-orb-a: rgba(14, 165, 233, 0.12);
  --bg-orb-b: rgba(47, 115, 235, 0.12);
  --ambient-a-color: rgba(14, 165, 233, 0.14);
  --ambient-b-color: rgba(47, 115, 235, 0.12);
  --button-primary-start: #2f73eb;
  --button-primary-end: #4b8fff;
  --shadow: 0 24px 60px rgba(36, 69, 112, 0.14);
}

body.theme-light .app-header {
  background: rgba(28, 38, 52, 0.88);
  border-bottom-color: rgba(120, 160, 222, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.theme-light .main-nav a {
  color: rgba(226, 236, 248, 0.8);
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  font-weight: 600;
}

body.theme-light .main-nav a:hover {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(147, 197, 253, 0.18);
}

body.theme-light .main-nav a.active {
  color: #183153;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(189, 214, 247, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

body.theme-light .main-nav a.has-alert {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(47, 115, 235, 0.84), rgba(14, 165, 233, 0.78));
  border-color: rgba(186, 230, 253, 0.2);
}

body.theme-light .sub-panel,
body.theme-light .integration-overview-card,
body.theme-light .integration-card,
body.theme-light .integration-mini-card,
body.theme-light .info-strip {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.96), rgba(235, 243, 253, 0.96));
  border-color: rgba(108, 145, 198, 0.18);
}

body.theme-light .integration-overview-card:hover,
body.theme-light .integration-card:hover,
body.theme-light .integration-mini-card:hover {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(239, 246, 255, 0.98));
  border-color: rgba(91, 143, 224, 0.26);
}

body.theme-light .field input,
body.theme-light .field select,
body.theme-light .field textarea {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(109, 145, 198, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.theme-light .field input:focus,
body.theme-light .field select:focus,
body.theme-light .field textarea:focus {
  background: #ffffff;
}

body.theme-light {
  --muted: #42556f;
  --surface-subtle: rgba(248, 251, 255, 0.96);
  --surface-elevated: rgba(255, 255, 255, 0.98);
}

body.theme-light .main-nav a {
  color: rgba(241, 246, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light .main-nav a:hover {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.18);
}

body.theme-light .panel,
body.theme-light .metric-card,
body.theme-light .list-card,
body.theme-light .pipeline-column,
body.theme-light .prospect-card,
body.theme-light .task-card,
body.theme-light .resource-card,
body.theme-light .template-editor-panel,
body.theme-light .approved-whatsapp-card,
body.theme-light .channel-tile-body {
  color: var(--text);
  border-color: rgba(108, 145, 198, 0.18);
}

body.theme-light .pipeline-column,
body.theme-light .prospect-card,
body.theme-light .task-card,
body.theme-light .resource-card,
body.theme-light .template-editor-panel,
body.theme-light .approved-whatsapp-card,
body.theme-light .channel-tile-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  box-shadow: 0 16px 38px rgba(36, 69, 112, 0.08);
}

body.theme-light .task-card-body {
  border-top-color: rgba(108, 145, 198, 0.16);
}

body.theme-light .approved-whatsapp-preview {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(108, 145, 198, 0.18);
  color: var(--text);
}

body.theme-light .task-template-preview-card,
body.theme-light .template-preview-frame-shell {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(108, 145, 198, 0.18);
}

body.theme-light .approved-whatsapp-chip,
body.theme-light .scope-chip,
body.theme-light .settings-subnav a {
  background: rgba(246, 250, 255, 0.98);
  border-color: rgba(108, 145, 198, 0.2);
  color: #1e3a5f;
}

body.theme-light .approved-whatsapp-chip:hover,
body.theme-light .approved-whatsapp-chip.active,
body.theme-light .scope-chip:hover,
body.theme-light .scope-chip.active,
body.theme-light .settings-subnav a:hover,
body.theme-light .settings-subnav a.active {
  background: rgba(221, 236, 255, 0.92);
  border-color: rgba(47, 115, 235, 0.34);
  color: #0f172a;
}

body.theme-light .approved-whatsapp-note,
body.theme-light .approved-whatsapp-meta-right,
body.theme-light .pipeline-automation,
body.theme-light .task-card-summary-template,
body.theme-light .task-card-summary-timing,
body.theme-light .table-subtext,
body.theme-light .data-table th,
body.theme-light .empty-state,
body.theme-light .empty-table {
  color: var(--muted);
}

body.theme-light .data-table th,
body.theme-light .data-table td {
  border-bottom-color: rgba(108, 145, 198, 0.16);
}

body.theme-light .status-pill {
  color: #0f172a;
  background: rgba(233, 241, 252, 0.95);
  border-color: rgba(108, 145, 198, 0.22);
  font-weight: 700;
}

body.theme-light .status-pill.success,
body.theme-light .status-pill.paid,
body.theme-light .status-pill.connected,
body.theme-light .status-pill.active,
body.theme-light .status-pill.approved {
  color: #166534;
  background: rgba(187, 247, 208, 0.7);
  border-color: rgba(34, 197, 94, 0.28);
}

body.theme-light .status-pill.warning,
body.theme-light .status-pill.partial,
body.theme-light .status-pill.pending {
  color: #92400e;
  background: rgba(254, 243, 199, 0.82);
  border-color: rgba(245, 158, 11, 0.3);
}

body.theme-light .status-pill.danger,
body.theme-light .status-pill.cancelled,
body.theme-light .status-pill.refunded,
body.theme-light .status-pill.error,
body.theme-light .status-pill.disconnected,
body.theme-light .status-pill.needs-config {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.88);
  border-color: rgba(239, 68, 68, 0.28);
}

body.theme-light .status-pill.due {
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
  border-color: rgba(249, 115, 22, 0.28);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 15% 20%, var(--bg-orb-a), transparent 28%),
    radial-gradient(circle at 85% 15%, var(--bg-orb-b), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 60%, var(--bg-deep));
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(23, 196, 255, 0), var(--accent), var(--accent-alt));
  transform: translateX(-45%) scaleX(0.18);
  transform-origin: left center;
  opacity: 0;
  z-index: 999;
  pointer-events: none;
}

body.is-page-loading {
  cursor: progress;
}

body.is-page-loading::before {
  opacity: 1;
  animation: page-loading-bar 1.1s ease-in-out infinite;
}

body.app-mode {
  font-family: "Segoe UI", Arial, sans-serif;
}

body.marketing-mode {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

body.marketing-mode h1,
body.marketing-mode h2,
body.marketing-mode h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); line-height: 1.6; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
input, select, textarea, button {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.ambient-a { top: -10vw; right: -10vw; background: var(--ambient-a-color); }
.ambient-b { bottom: -14vw; left: -12vw; background: var(--ambient-b-color); }

.marketing-main,
.app-main {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 0 auto;
}

body.is-page-loading .app-header,
body.is-page-loading .app-main,
body.is-page-loading .marketing-main {
  opacity: 0.86;
}

.marketing-main {
  max-width: calc(var(--marketing-shell-max) + (var(--site-gutter) * 2));
  margin: 0 auto;
  padding: 48px var(--site-gutter) 72px;
}

.site-legal-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--site-gutter) * 2)), calc(var(--marketing-shell-max) + (var(--site-gutter) * 2)));
  margin: 0 auto 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

body.app-mode .site-legal-footer {
  width: min(calc(100% - (var(--site-gutter) * 2)), calc(var(--app-shell-max) + (var(--site-gutter) * 2)));
}

.site-legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-legal-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}

.site-legal-footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-legal-footer-nav a:hover,
.site-legal-footer-nav a:focus-visible {
  color: var(--brand);
}

.hero-shell,
.feature-grid,
.auth-card,
.panel {
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(6, 17, 34, 0.9));
}

body.theme-light .hero-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.98));
}

.hero-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  max-width: 9ch;
  margin-bottom: 18px;
}

.lead {
  max-width: 58ch;
  font-size: 1.04rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

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

.stat-tile,
.metric-card,
.feature-card,
.list-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-subtle);
}

.stat-tile {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.stat-tile span,
.metric-card span,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-tile strong,
.metric-card strong {
  font-size: 1.6rem;
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.auth-card {
  max-width: 720px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.auth-card.wide {
  max-width: 860px;
}

.card-head {
  margin-bottom: 24px;
}

.card-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0 12px;
}

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

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.86rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap input {
  padding-right: 104px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.password-toggle:hover {
  transform: translateY(calc(-50% - 1px));
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.password-toggle.is-active {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--text);
}

.password-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--button-primary-start), var(--button-primary-end));
  color: #f7fbff;
  font-weight: 700;
}

.ghost-btn {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--line);
}

.ghost-btn.large { padding-inline: 24px; }
.primary-btn:hover,
.ghost-btn:hover { transform: translateY(-1px); }

@keyframes page-loading-bar {
  0% {
    transform: translateX(-45%) scaleX(0.18);
  }

  52% {
    transform: translateX(6%) scaleX(0.62);
  }

  100% {
    transform: translateX(96%) scaleX(0.22);
  }
}

.auth-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.auth-foot a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.landing-secondary-link-row {
  margin-top: 14px;
}

.landing-secondary-link-row a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.workspace-mode-banner {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 163, 67, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-mode-banner.demo {
  border-color: rgba(255, 171, 88, 0.38);
  background: rgba(255, 171, 88, 0.12);
}

.workspace-mode-banner.activation {
  border-color: rgba(96, 203, 255, 0.34);
  background: rgba(96, 203, 255, 0.12);
}

.workspace-mode-banner strong {
  display: block;
  font-size: 1rem;
}

.workspace-mode-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

body.is-support-modal-open {
  overflow: hidden;
}

.support-fab,
.swiss-trust-badge {
  position: fixed;
  right: 20px;
  z-index: 120;
  width: 248px;
}

.support-fab {
  top: 92px;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 226px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--overlay-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.support-fab:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.support-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--button-primary-end), var(--button-primary-start));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 1.15rem;
}

.support-fab-copy,
.swiss-trust-badge-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.support-fab-copy strong,
.swiss-trust-badge-copy strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.support-fab-copy small,
.swiss-trust-badge-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.support-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.support-modal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 72px auto 24px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.42);
}

.support-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.support-modal-copy {
  margin: 14px 0 0;
}

.demo-hint-strip {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 171, 88, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 171, 88, 0.12), rgba(255, 171, 88, 0.04)),
    rgba(255, 255, 255, 0.02);
}

.demo-hint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.demo-hint-head h3 {
  font-size: 1.25rem;
}

.demo-hint-head p {
  margin-top: 6px;
}

.demo-hint-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.demo-hint-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-elevated);
}

.demo-hint-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.swiss-trust-badge {
  top: 164px;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 226px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--overlay-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.swiss-trust-badge:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.swiss-trust-badge-icon,
.landing-trust-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ef4d4d, #c82b2b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.swiss-trust-badge-icon span,
.landing-trust-icon span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.swiss-trust-badge-icon span::before,
.swiss-trust-badge-icon span::after,
.landing-trust-icon span::before,
.landing-trust-icon span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffffff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.swiss-trust-badge-icon span::before,
.landing-trust-icon span::before {
  width: 18px;
  height: 5px;
}

.swiss-trust-badge-icon span::after,
.landing-trust-icon span::after {
  width: 5px;
  height: 18px;
}

.legal-link-strip {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.legal-link-strip.compact {
  margin-top: 18px;
}

.legal-link-intro {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.legal-link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legal-link-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.legal-link-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.legal-link-card.active {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.legal-link-mark {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #f7fbff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.legal-link-body {
  display: grid;
  gap: 6px;
}

.legal-link-body strong {
  font-size: 1rem;
}

.legal-link-body small {
  color: var(--muted);
  line-height: 1.45;
}

.error-text {
  color: #ffb7bf;
  font-size: 0.8rem;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

.app-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 0 auto;
}

.app-header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 143, 61, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line);
  font-weight: 800;
}

.brand-lockup h1 {
  font-size: 1.1rem;
}

.brand-lockup > div {
  min-width: 0;
}

.app-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.app-nav-toggle-box {
  display: grid;
  gap: 4px;
}

.app-nav-toggle-box span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.app-nav-toggle-label {
  font-size: 0.86rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.main-nav a.active {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-elevated);
}

.main-nav a.has-alert {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.nav-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #f7fbff;
  font-size: 0.78rem;
  font-weight: 800;
}

.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.settings-subnav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  background: var(--surface-subtle);
}

.settings-subnav a.active {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-elevated);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-utility-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-utility-link {
  position: static;
  right: auto;
  top: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 10px 14px;
  border-radius: 999px;
}

.header-utility-link .support-fab-icon,
.header-utility-link .swiss-trust-badge-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 12px;
}

.header-utility-link .swiss-trust-badge-icon span,
.header-utility-link .landing-trust-icon span {
  width: 15px;
  height: 15px;
}

.header-utility-link .swiss-trust-badge-icon span::before,
.header-utility-link .landing-trust-icon span::before {
  width: 15px;
  height: 4px;
}

.header-utility-link .swiss-trust-badge-icon span::after,
.header-utility-link .landing-trust-icon span::after {
  width: 4px;
  height: 15px;
}

.admin-view-switch {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.admin-view-switch-field {
  display: grid;
  gap: 4px;
  min-width: 230px;
  font-size: 13px;
  color: var(--muted);
}

.admin-view-switch-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-view-switch-field select {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  color: var(--text);
}

.admin-view-switch .ghost-btn {
  flex: 0 0 auto;
}

.user-chip {
  display: grid;
  gap: 2px;
  text-align: right;
}

.user-chip small {
  color: var(--muted);
}

.app-main {
  max-width: calc(var(--app-shell-max) + (var(--site-gutter) * 2));
  margin: 0 auto;
  padding: 24px var(--site-gutter) 48px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-success { background: rgba(58, 210, 159, 0.12); }
.flash-error { background: rgba(255, 111, 125, 0.12); }
.flash-info { background: rgba(255, 255, 255, 0.04); }

.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  background: var(--panel-strong);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-head h3 {
  font-size: 1.25rem;
}

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

.metric-card {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.two-column {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.dashboard-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.dashboard-filter-bar label {
  display: grid;
  gap: 8px;
}

.dashboard-filter-bar label span {
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-filter-bar input,
.dashboard-filter-bar select {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
}

.dashboard-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

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

.closer-metric-stack {
  display: grid;
  gap: 10px;
}

.closer-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-subtle);
}

.closer-metric-row span {
  color: var(--muted);
}

.closer-metric-row strong {
  font-size: 1rem;
  text-align: right;
}

.import-grid {
  align-items: start;
}

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

.list-card {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.unassigned-closer-card {
  border: 1px solid rgba(255, 111, 125, 0.35);
  background: rgba(255, 111, 125, 0.08);
}

.list-card strong {
  display: block;
  margin-bottom: 4px;
}

.list-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.list-meta a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.table-row-alert td {
  background: rgba(255, 111, 125, 0.045);
  border-bottom-color: rgba(255, 111, 125, 0.14);
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state,
.empty-table {
  color: var(--muted);
  padding: 8px 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar input,
.toolbar select {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
}

.pipeline-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(clamp(300px, 20vw, 380px), 1fr);
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-gutter: stable both-edges;
}

.kanban-wrapper {
  display: flex;
  flex-direction: column;
}

.pipeline-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  background-clip: padding-box;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.78) rgba(148, 163, 184, 0.14);
}

.kanban-wrapper .pipeline-scroll-top {
  background-color: color-mix(in srgb, var(--panel, #0b1120) 84%, transparent);
  backdrop-filter: blur(8px);
}

.pipeline-scroll-top.is-hidden {
  display: none;
}

.pipeline-scroll-top::-webkit-scrollbar {
  height: 12px;
}

.pipeline-scroll-top::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.pipeline-scroll-top::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(11, 17, 32, 0.84);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.82), rgba(56, 189, 248, 0.82));
}

.pipeline-scroll-top::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.pipeline-scroll-inner {
  height: 1px;
}

body.theme-light .pipeline-scroll-top {
  background: rgba(148, 163, 184, 0.18);
  scrollbar-color: rgba(37, 99, 235, 0.72) rgba(203, 213, 225, 0.78);
}

body.theme-light .pipeline-scroll-top::-webkit-scrollbar-track {
  background: rgba(203, 213, 225, 0.78);
}

body.theme-light .pipeline-scroll-top::-webkit-scrollbar-thumb {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.82), rgba(14, 165, 233, 0.82));
}

.pipeline-board.with-top-scroll {
  padding-bottom: 0;
  scrollbar-width: none;
}

.pipeline-board.with-top-scroll::-webkit-scrollbar {
  height: 0;
}

.pipeline-board.is-loading {
  opacity: 0.68;
  pointer-events: none;
}

.pipeline-column {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  min-height: 520px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.pipeline-column.is-over {
  border-color: rgba(255, 143, 61, 0.5);
  background: rgba(255, 143, 61, 0.08);
}

.pipeline-column-head {
  display: grid;
  gap: 8px;
}

.pipeline-column-head strong {
  font-size: 1.1rem;
}

.pipeline-automation {
  color: var(--muted);
  font-size: 0.82rem;
}

.pipeline-column-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.prospect-card {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 26, 0.88);
  cursor: grab;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.prospect-card.is-dragging {
  opacity: 0.45;
}

.prospect-card.due {
  border-color: rgba(255, 143, 61, 0.45);
  box-shadow: 0 14px 34px rgba(255, 143, 61, 0.08);
}

.prospect-card.needs-config {
  border-color: rgba(255, 111, 125, 0.48);
  background: rgba(255, 111, 125, 0.08);
  box-shadow: 0 14px 34px rgba(255, 111, 125, 0.12);
}

.prospect-card.unassigned-closer {
  border-color: rgba(255, 111, 125, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 111, 125, 0.12), rgba(255, 111, 125, 0.06)),
    rgba(6, 14, 26, 0.9);
  box-shadow: 0 14px 34px rgba(255, 111, 125, 0.14);
}

.prospect-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.prospect-card-head strong {
  font-size: 0.98rem;
}

.prospect-core {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pipeline-empty {
  padding: 18px 14px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.cell-stack {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.top-gap {
  margin-top: 16px;
}

.top-gap-lg {
  margin-top: 24px;
}

.ghost-btn.slim {
  padding: 10px 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.status-pill.due {
  border-color: rgba(255, 143, 61, 0.45);
  background: rgba(255, 143, 61, 0.12);
}

.status-pill.needs-config {
  border-color: rgba(255, 111, 125, 0.42);
  background: rgba(255, 111, 125, 0.14);
  color: #ffdbe0;
}

.status-pill.success,
.status-pill.paid {
  border-color: rgba(58, 210, 159, 0.45);
  background: rgba(58, 210, 159, 0.12);
}

.status-pill.warning,
.status-pill.partial {
  border-color: rgba(255, 205, 86, 0.42);
  background: rgba(255, 205, 86, 0.12);
}

.status-pill.danger,
.status-pill.cancelled,
.status-pill.refunded {
  border-color: rgba(255, 111, 125, 0.42);
  background: rgba(255, 111, 125, 0.12);
}

.status-pill.pending {
  border-color: rgba(255, 143, 61, 0.45);
  background: rgba(255, 143, 61, 0.12);
}

.info-strip {
  display: inline-grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.danger-strip {
  border-color: rgba(255, 111, 125, 0.3);
  background: rgba(255, 111, 125, 0.12);
}

.context-help-card {
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.context-help-card[open] {
  border-color: rgba(255, 143, 61, 0.35);
  background: rgba(255, 143, 61, 0.07);
}

.context-help-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
}

.context-help-summary::-webkit-details-marker {
  display: none;
}

.help-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 143, 61, 0.16);
  border: 1px solid rgba(255, 143, 61, 0.35);
  color: #ffd8bd;
  font-size: 0.86rem;
  font-weight: 700;
}

.context-help-body {
  display: grid;
  gap: 10px;
  padding: 0 15px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.context-help-body p {
  font-size: 0.92rem;
}

.context-help-card.compact {
  margin: 0;
  align-self: end;
}

.context-help-card.compact .context-help-summary {
  padding: 12px 14px;
  font-size: 0.92rem;
}

.context-help-card.compact .context-help-body p {
  font-size: 0.88rem;
}

.table-subtext {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.scope-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.scope-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.scope-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 143, 61, 0.35);
  background: rgba(255, 143, 61, 0.08);
}

.scope-chip.active {
  border-color: rgba(255, 143, 61, 0.55);
  background: rgba(255, 143, 61, 0.16);
  color: #fff4ea;
}

.danger-text {
  color: #ffb8c0;
}

.prospect-alert-text {
  color: #ffd2d8;
  font-size: 0.82rem;
  line-height: 1.4;
}

.prospect-config-alert {
  border-color: rgba(255, 111, 125, 0.35);
  background: rgba(255, 111, 125, 0.08);
}

.sale-row-incomplete td {
  background: rgba(255, 111, 125, 0.05);
  border-bottom-color: rgba(255, 111, 125, 0.14);
}

.checkbox-field {
  align-content: start;
}

.checkbox-field input {
  width: auto;
  min-width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.sub-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: var(--surface-subtle);
}

.field-helper {
  color: var(--muted);
}

.eod-layout {
  align-items: start;
}

.eod-side-stack {
  display: grid;
  gap: 18px;
}

.eod-comparison-list {
  display: grid;
  gap: 12px;
}

.eod-comparison-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.eod-comparison-card.is-shifted {
  border-color: rgba(255, 205, 86, 0.38);
  background: rgba(255, 205, 86, 0.08);
}

.eod-comparison-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.eod-comparison-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  white-space: nowrap;
}

.eod-delta {
  font-weight: 700;
}

.eod-delta.is-neutral {
  color: var(--muted);
}

.eod-delta.is-up {
  color: #ffd36f;
}

.eod-delta.is-down {
  color: #ff9aa8;
}

.eod-report-textarea {
  min-height: 360px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.action-section-grid {
  display: grid;
  gap: 16px;
}

.action-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.action-card-head,
.timeline-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.action-card-head h3 {
  margin-top: 6px;
  font-size: 1.08rem;
}

.action-card-list {
  display: grid;
  gap: 12px;
}

.action-item,
.timeline-card {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--input-bg);
}

.action-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.action-item strong,
.timeline-card strong {
  display: block;
  margin-bottom: 4px;
}

.action-item span,
.timeline-card span,
.action-item small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.action-remaining {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-date {
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.timeline-card p {
  font-size: 0.92rem;
}

.timeline-empty {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: center;
}

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

.data-table input,
.data-table select {
  width: 100%;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
}

.kpi-inline-table td {
  vertical-align: middle;
}

.kpi-inline-input {
  min-width: 88px;
  text-align: center;
}

.kpi-row-form {
  display: none;
}

.kpi-inline-action-cell {
  min-width: 140px;
}

.kpi-inline-state {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.kpi-inline-table tr.is-manual td {
  background: rgba(255, 205, 86, 0.06);
}

.kpi-inline-action-cell .inline-actions {
  gap: 8px;
}

.kpi-inline-action-cell .inline-actions form {
  margin: 0;
}

body.theme-light .kpi-inline-table tr.is-manual td {
  background: rgba(245, 158, 11, 0.08);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.workspace-registration-row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 240px) minmax(0, 360px);
  align-items: start;
}

.workspace-type-field {
  max-width: 240px;
}

.workspace-registration-field {
  max-width: 360px;
}

.workspace-registration-field input[readonly],
.workspace-registration-field input:disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

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

.resource-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.resource-link-list {
  display: grid;
  gap: 14px;
}

.resource-link-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.55);
}

.invoice-card {
  display: grid;
  gap: 18px;
}

.invoice-party-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.invoice-party-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.45);
}

.invoice-lines {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.invoice-adjustment-list {
  display: grid;
  gap: 16px;
}

.invoice-adjustment-row {
  padding: 18px;
  border: 1px dashed rgba(142, 166, 194, 0.24);
  border-radius: 20px;
  background: rgba(5, 12, 22, 0.28);
}

.invoice-line {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 84px 160px;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-top: 1px solid rgba(142, 166, 194, 0.1);
}

.invoice-line:first-child {
  border-top: 0;
}

.invoice-line.invoice-line-head {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.invoice-totals {
  margin-left: auto;
  width: min(100%, 340px);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid rgba(142, 166, 194, 0.1);
}

.invoice-total-row:first-child {
  border-top: 0;
}

.invoice-total-row.total {
  background: rgba(255, 132, 69, 0.14);
}

.invoice-document-shell {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(239, 245, 252, 0.86));
}

.invoice-document-sheet {
  display: grid;
  gap: 24px;
  width: min(210mm, 100%);
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(213, 223, 235, 0.9);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
  color: #102033;
}

.invoice-document-head,
.invoice-document-summary,
.invoice-document-parties,
.invoice-document-notes {
  display: grid;
  gap: 18px;
}

.invoice-document-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5edf6;
}

.invoice-document-kicker,
.invoice-document-section-label {
  margin: 0 0 8px;
  color: #d97706;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.invoice-document-brand h3,
.invoice-document-party h4,
.invoice-document-summary-card strong,
.invoice-document-line strong,
.invoice-document-total-row strong {
  margin: 0;
  color: #0f172a;
}

.invoice-document-brand h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
  margin-bottom: 10px;
}

.invoice-document-subtitle,
.invoice-document-muted {
  margin: 0;
  color: #5c7088;
  line-height: 1.6;
}

.invoice-document-status {
  display: flex;
  justify-content: flex-end;
}

.invoice-document-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.invoice-document-summary-card,
.invoice-document-party,
.invoice-document-note-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #dde6f0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.invoice-document-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.invoice-document-summary-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.invoice-document-summary-card.is-total {
  background: linear-gradient(180deg, #fff5eb, #ffedd5);
  border-color: #fed7aa;
}

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

.invoice-document-party h4 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.invoice-document-party p {
  margin: 0;
  line-height: 1.55;
}

.invoice-document-lines {
  border: 1px solid #dde6f0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.invoice-document-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.invoice-document-table th,
.invoice-document-table td {
  padding: 18px 20px;
  border-top: 1px solid #e8eef6;
  vertical-align: top;
  text-align: left;
  word-break: break-word;
}

.invoice-document-table thead th {
  background: #f7fafc;
  color: #5f7085;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  border-top: 0;
}

.invoice-document-table td strong {
  color: #0f172a;
}

.invoice-document-table td p {
  margin: 6px 0 0;
}

.invoice-document-cell-qty {
  width: 88px;
  text-align: center;
  white-space: nowrap;
}

.invoice-document-cell-total {
  width: 170px;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
}

.invoice-document-empty-row td {
  color: #5c7088;
  font-style: italic;
}

.invoice-document-totals-wrap {
  display: flex;
  justify-content: flex-end;
}

.invoice-document-totals {
  width: min(100%, 360px);
  border: 1px solid #dde6f0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.invoice-document-total-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid #e8eef6;
  color: #1e293b;
}

.invoice-document-total-row:first-child {
  border-top: 0;
}

.invoice-document-total-row.is-grand-total {
  background: #102033;
  color: #ffffff;
}

.invoice-document-total-row.is-grand-total strong {
  color: #ffffff;
}

.invoice-document-notes {
  grid-template-columns: 1fr;
}

.invoice-document-note-card p:last-child {
  margin: 0;
}

.invoice-history-card {
  gap: 10px;
}

.resource-link-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-link-head strong {
  font-size: 1rem;
}

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

.billing-plan-grid,
.billing-history-list {
  display: grid;
  gap: 14px;
}

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

.billing-usage-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.42);
}

.billing-usage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.billing-usage-head strong {
  display: block;
}

.billing-usage-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.billing-usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(105, 163, 255, 0.95), rgba(255, 143, 61, 0.95));
}

.billing-alert {
  width: 100%;
  margin-bottom: 0;
}

.billing-alert.warning {
  border-color: rgba(255, 205, 86, 0.35);
  background: rgba(255, 205, 86, 0.08);
}

.billing-alert.success {
  border-color: rgba(58, 210, 159, 0.35);
  background: rgba(58, 210, 159, 0.08);
}

.billing-alert.danger {
  border-color: rgba(255, 111, 125, 0.35);
  background: rgba(255, 111, 125, 0.08);
}

.billing-alert.due {
  border-color: rgba(255, 143, 61, 0.35);
  background: rgba(255, 143, 61, 0.08);
}

.billing-history-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.billing-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-license-card {
  min-height: 100%;
}

.soft-separator {
  width: 100%;
  height: 1px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.payment-plan-list {
  display: grid;
  gap: 14px;
}

.payment-plan-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.55);
}

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

.payment-plan-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-plan-summary strong {
  font-size: 0.98rem;
}

.sale-plan-preview {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pipeline-config-grid {
  display: grid;
  gap: 18px;
  width: 100%;
}

.pipeline-config-board {
  margin-top: 18px;
}

.config-card {
  min-height: 0;
}

.config-card.is-dragging {
  opacity: 0.45;
}

.config-card.is-over {
  border-color: rgba(255, 143, 61, 0.5);
  background: rgba(255, 143, 61, 0.08);
}

.config-column-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.drag-handle {
  cursor: grab;
}

.config-step-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.task-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 26, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.task-card[open] {
  border-color: rgba(255, 143, 61, 0.4);
  box-shadow: 0 14px 34px rgba(255, 143, 61, 0.08);
}

.task-card summary {
  list-style: none;
  cursor: pointer;
}

.task-card summary::-webkit-details-marker {
  display: none;
}

.task-card-summary {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
}

.task-card-summary-head {
  display: grid;
  gap: 4px;
}

.task-card-summary-head strong {
  font-size: 0.98rem;
}

.task-card-summary-template,
.task-card-summary-timing {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.task-card-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.task-card-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.task-card-body .config-step-head {
  padding-top: 14px;
}

.task-template-preview-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.task-template-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.task-template-preview-head strong {
  font-size: 0.92rem;
}

.task-template-preview-body {
  min-height: 68px;
}

.config-step {
  display: grid;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 12, 22, 0.55);
}

.config-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.config-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.config-card-actions {
  margin-top: 14px;
}

.danger-outline {
  border-color: rgba(255, 111, 125, 0.35);
  color: #ffd6db;
}

.quick-pay-btn {
  border-color: rgba(58, 210, 159, 0.38);
  background: rgba(58, 210, 159, 0.14);
  color: #d9fff0;
  font-weight: 700;
}

body.theme-light .quick-pay-btn {
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
}

.icon-btn {
  min-width: 40px;
  padding-inline: 10px;
  justify-content: center;
  font-size: 1rem;
}

.ghost-btn:disabled,
.ghost-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-pill.waiting_response {
  background: rgba(120, 142, 255, 0.18);
  border-color: rgba(120, 142, 255, 0.32);
  color: #d6deff;
}

.status-pill.deposit {
  background: rgba(255, 180, 95, 0.18);
  border-color: rgba(255, 180, 95, 0.36);
  color: #ffe2b8;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.25);
  opacity: 0.9;
  cursor: pointer;
}

body.theme-light input[type="date"]::-webkit-calendar-picker-indicator,
body.theme-light input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(31%) sepia(51%) saturate(1458%) hue-rotate(189deg) brightness(96%) contrast(94%);
  opacity: 1;
}

.muted-note {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.integration-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.integration-overview-card,
.integration-card,
.integration-mini-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.integration-overview-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.integration-overview-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.integration-overview-card-shell {
  align-content: start;
  min-height: 210px;
}

.integration-overview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.integration-overview-card-disabled {
  opacity: 0.82;
  border-style: dashed;
}

.integration-overview-card-disabled:hover {
  transform: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.integration-overview-head,
.integration-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.integration-overview-head strong {
  font-size: 1rem;
}

.integration-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.gmail-feedback {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 143, 61, 0.24);
  background: rgba(255, 143, 61, 0.1);
  color: var(--text);
}

.gmail-feedback.is-success {
  border-color: rgba(58, 210, 159, 0.35);
  background: rgba(58, 210, 159, 0.12);
}

.gmail-feedback.is-error {
  border-color: rgba(255, 111, 125, 0.35);
  background: rgba(255, 111, 125, 0.12);
}

.gmail-log-list {
  gap: 12px;
}

.gmail-log-card {
  gap: 8px;
}

.legal-document {
  max-width: 980px;
}

.legal-block {
  display: grid;
  gap: 12px;
}

.legal-block h3,
.legal-block h4 {
  margin: 0;
}

.legal-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.integration-checks {
  display: grid;
  gap: 10px;
}

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

.integration-mini-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.integration-mini-card strong {
  font-size: 1rem;
}

.inline-field {
  min-width: 280px;
  flex: 1 1 320px;
}

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

.template-editor-grid.template-editor-grid-with-help {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.admin-license-top-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
}

.admin-license-action-grid,
.admin-license-automation-grid {
  display: grid;
  gap: 16px;
}

.admin-license-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.admin-action-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.template-editor-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.template-editor-panel.is-muted {
  opacity: 0.7;
}

.approved-whatsapp-toolbar,
.approved-whatsapp-grid,
.approved-whatsapp-chip-row,
.approved-whatsapp-meta {
  display: grid;
  gap: 12px;
}

.approved-whatsapp-toolbar {
  grid-template-columns: minmax(0, 1.2fr) 220px max-content;
  align-items: end;
}

.approved-whatsapp-toolbar.board-toolbar {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.approved-whatsapp-highlight-toggle {
  min-height: 48px;
}

.approved-whatsapp-chip-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
}

.approved-whatsapp-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(143, 180, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.approved-whatsapp-chip.active,
.approved-whatsapp-chip:hover {
  border-color: rgba(60, 128, 255, 0.45);
  background: rgba(60, 128, 255, 0.14);
  color: var(--text);
}

.approved-whatsapp-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.approved-whatsapp-grid.template-selection-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
}

.approved-whatsapp-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.approved-whatsapp-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.approved-whatsapp-card.template-selection-card {
  min-height: 320px;
}

.approved-whatsapp-card.compact {
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
}

.approved-whatsapp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.approved-whatsapp-card.compact strong {
  font-size: 0.95rem;
}

.approved-whatsapp-meta {
  grid-template-columns: repeat(auto-fit, minmax(94px, max-content));
}

.approved-whatsapp-meta.compact {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(72px, max-content));
}

.approved-whatsapp-meta-right {
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 0.84rem;
}

.approved-whatsapp-meta-right.compact {
  font-size: 0.76rem;
}

.approved-whatsapp-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.approved-whatsapp-preview {
  min-height: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(143, 180, 255, 0.1);
  background: rgba(5, 12, 22, 0.48);
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.approved-whatsapp-preview.compact {
  min-height: 88px;
  max-height: 112px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.approved-whatsapp-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.approved-whatsapp-card.template-selection-card .approved-whatsapp-scope-tags {
  margin-top: auto;
}

.approved-whatsapp-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.approved-whatsapp-scope-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.approved-whatsapp-scope-card input {
  margin-top: 2px;
}

.approved-whatsapp-scope-card span {
  display: grid;
  gap: 4px;
}

.approved-whatsapp-scope-card small {
  color: var(--muted);
  line-height: 1.4;
}

.approved-whatsapp-board {
  align-items: stretch;
}

.template-board-column {
  min-height: 540px;
}

.template-board-card {
  gap: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  cursor: default;
  position: relative;
  z-index: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.template-board-card:hover {
  transform: translateY(-1px);
  z-index: 2;
}

.template-board-card.is-selected {
  border-color: rgba(75, 143, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(75, 143, 255, 0.2),
    0 14px 34px rgba(75, 143, 255, 0.12);
}

.template-card-pill-row {
  width: auto;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.template-card-pill-row .status-pill,
.template-board-card .approved-whatsapp-scope-tags .status-pill {
  padding: 6px 10px;
  font-size: 0.74rem;
}

.template-card-core {
  gap: 3px;
  font-size: 0.8rem;
}

.template-board-card .approved-whatsapp-preview.compact {
  min-height: 78px;
  max-height: 104px;
  margin-top: 2px;
}

.template-board-card:hover .approved-whatsapp-preview.compact,
.template-board-card:focus-within .approved-whatsapp-preview.compact {
  max-height: none;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}

.template-board-card .approved-whatsapp-scope-tags.compact {
  gap: 5px;
}

.template-card-actions {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
}

.template-card-actions form {
  width: auto;
}

.template-preview-frame-shell {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  min-height: 540px;
}

.template-preview-frame {
  width: 100%;
  min-height: 540px;
  border: 0;
  background: #ffffff;
}

.template-assignment-modal-shell {
  z-index: 220;
}

.template-assignment-modal {
  max-width: 980px;
}

.ghost-btn.active-like {
  border-color: rgba(60, 128, 255, 0.45);
  background: rgba(60, 128, 255, 0.14);
  color: var(--text);
}

.status-pill.highlight-new-message {
  border-color: rgba(74, 163, 255, 0.42);
  background: rgba(74, 163, 255, 0.16);
  color: #d6edff;
}

.status-pill.highlight-new-strategy {
  border-color: rgba(99, 228, 207, 0.38);
  background: rgba(99, 228, 207, 0.14);
  color: #c9fff4;
}

.template-helper {
  color: var(--muted);
  font-size: 0.92rem;
}

.template-variable-panel {
  align-content: start;
}

.template-variable-help {
  width: 100%;
}

.template-variable-body {
  gap: 14px;
}

.template-variable-note {
  font-size: 0.88rem;
}

.template-variable-group {
  display: grid;
  gap: 10px;
}

.template-variable-group strong {
  font-size: 0.98rem;
}

.template-variable-list {
  display: grid;
  gap: 0;
}

.template-variable-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.template-variable-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.template-variable-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.7);
  color: #fff4ea;
  font-size: 0.82rem;
  white-space: normal;
  word-break: break-word;
}

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

.channel-tile {
  position: relative;
  display: block;
}

.channel-tile-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.channel-tile-body {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.7);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.channel-tile-body strong {
  color: var(--text);
  font-size: 0.98rem;
}

.channel-tile-body small {
  color: var(--muted);
  line-height: 1.45;
}

.channel-tile-input:checked + .channel-tile-body {
  border-color: rgba(255, 143, 61, 0.48);
  background: rgba(255, 143, 61, 0.12);
  box-shadow: 0 14px 34px rgba(255, 143, 61, 0.08);
  transform: translateY(-1px);
}

.channel-tile-input:focus + .channel-tile-body {
  box-shadow: 0 0 0 4px rgba(255, 143, 61, 0.12);
}

.channel-check-grid {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.7);
}

.check-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.check-row span {
  color: var(--muted);
}

.channel-pill {
  border-color: rgba(80, 154, 255, 0.32);
  background: rgba(80, 154, 255, 0.12);
}

.stats-chart-shell {
  display: grid;
  gap: 12px;
}

.stats-line-chart {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 18, 31, 0.96), rgba(5, 11, 21, 0.88));
  border: 1px solid var(--line);
}

.stats-line-chart line {
  stroke: rgba(166, 185, 207, 0.14);
  stroke-width: 1;
}

.stats-line-path {
  fill: none;
  stroke: #ff8f3d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-line-point {
  fill: #f5fbff;
  stroke: #ff8f3d;
  stroke-width: 2;
}

.stats-line-point-label {
  fill: #a7d3ff;
  font-size: 11px;
  font-weight: 700;
}

.stats-line-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.stats-line-labels span {
  text-align: center;
}

.stats-chart-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.stats-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 14px;
  align-items: end;
}

.stats-bar-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.stats-bar-card strong {
  font-size: 0.92rem;
}

.stats-bar-card span,
.stats-bar-card small {
  color: var(--muted);
}

.stats-bar-track {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.94), rgba(5, 10, 18, 0.88));
}

.stats-bar-fill {
  width: 100%;
  max-width: 48px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, rgba(255, 143, 61, 0.96), rgba(255, 104, 60, 0.72));
  box-shadow: 0 16px 34px rgba(255, 143, 61, 0.16);
}

.stats-list-chart {
  display: grid;
  gap: 12px;
}

.stats-list-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 27, 0.78);
}

.stats-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.stats-list-head span,
.stats-list-row small {
  color: var(--muted);
}

.stats-progress {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.stats-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(80, 154, 255, 0.92), rgba(255, 143, 61, 0.92));
}

body.theme-light .stats-line-chart {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  border-color: rgba(108, 145, 198, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 16px 32px rgba(36, 69, 112, 0.08);
}

body.theme-light .stats-line-chart line {
  stroke: rgba(85, 108, 141, 0.18);
}

body.theme-light .stats-line-path {
  stroke: #ea580c;
}

body.theme-light .stats-line-point {
  fill: #ffffff;
  stroke: #ea580c;
}

body.theme-light .stats-line-point-label {
  fill: #0f172a;
}

body.theme-light .stats-line-labels,
body.theme-light .stats-chart-caption,
body.theme-light .stats-bar-card span,
body.theme-light .stats-bar-card small,
body.theme-light .stats-list-head span,
body.theme-light .stats-list-row small {
  color: #51647d;
}

body.theme-light .stats-bar-card strong,
body.theme-light .stats-list-head strong {
  color: var(--text);
}

body.theme-light .stats-bar-track {
  border-color: rgba(108, 145, 198, 0.18);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(238, 245, 255, 0.98));
}

body.theme-light .stats-bar-fill {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.96), rgba(234, 88, 12, 0.82));
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.14);
}

body.theme-light .stats-list-row {
  border-color: rgba(108, 145, 198, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 14px 28px rgba(36, 69, 112, 0.06);
}

body.theme-light .stats-progress {
  background: rgba(203, 213, 225, 0.5);
}

.landing-page {
  display: grid;
  gap: 28px;
}

.landing-topbar {
  position: sticky;
  top: 18px;
  z-index: 6;
}

.landing-topbar-inner,
.landing-panel,
.landing-strip article,
.landing-photo-card,
.landing-story-card,
.landing-benefit-card,
.landing-screen-card,
.landing-banner {
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.landing-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 29, 0.78);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.landing-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffb267, #ff7b45);
  color: #07111d;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.landing-brand-copy {
  display: grid;
  gap: 2px;
}

.landing-brand-copy strong {
  font-size: 1rem;
}

.landing-brand-copy small,
.landing-nav a {
  color: var(--muted);
}

.landing-nav,
.landing-top-actions,
.landing-mini-points {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-nav a {
  font-size: 0.92rem;
}

.landing-hero,
.landing-story-grid,
.landing-screens-grid,
.landing-final-cta {
  display: grid;
  gap: 20px;
}

.landing-hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: start;
}

.landing-panel,
.landing-photo-card,
.landing-story-card,
.landing-benefit-card,
.landing-screen-card,
.landing-banner,
.landing-strip article {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 18, 33, 0.94), rgba(7, 14, 26, 0.9));
}

.landing-panel {
  padding: 34px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.landing-title {
  margin-top: 18px;
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.landing-title span {
  color: #ffb267;
}

.landing-title em {
  color: #89bbff;
  font-style: normal;
}

.landing-subtitle {
  margin-top: 20px;
  max-width: 57ch;
  color: #d7e1ef;
  font-size: 1.08rem;
}

.landing-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.landing-proof-list span,
.landing-mini-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 180, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #d6e4f9;
  font-size: 0.88rem;
}

.landing-proof-list.compact {
  margin-top: 6px;
}

.landing-trust-card {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.landing-trust-copy {
  display: grid;
  gap: 4px;
}

.landing-trust-copy strong {
  font-size: 1rem;
}

.landing-trust-copy small {
  color: var(--muted);
  line-height: 1.5;
}

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

.detail-list-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.detail-list-item strong {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compact-form {
  min-width: 0;
}

.landing-metric-row,
.landing-benefit-grid,
.pipeline-preview-grid,
.kpi-preview-grid,
.landing-strip {
  display: grid;
  gap: 14px;
}

.landing-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.landing-metric {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.landing-metric span,
.kpi-preview-tile span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
}

.landing-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.3rem;
}

.landing-metric p {
  margin-top: 6px;
  font-size: 0.9rem;
}

.landing-hero-stage {
  display: grid;
  gap: 18px;
}

.preview-window {
  padding: 22px;
}

.preview-window-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d5e2f6;
}

.preview-dots {
  display: inline-flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.preview-window-head strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.preview-window-head small {
  margin-left: auto;
  color: var(--muted);
}

.preview-window-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.pipeline-preview-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
}

.pipeline-preview-search,
.pipeline-preview-filter {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(4, 10, 19, 0.76);
}

.pipeline-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.pipeline-preview-column {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 255, 0.14);
  background: rgba(255, 255, 255, 0.026);
}

.pipeline-preview-column.accent {
  border-color: rgba(255, 143, 61, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 143, 61, 0.12);
}

.pipeline-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.pipeline-preview-head strong,
.pipeline-preview-card strong,
.landing-strip strong,
.landing-story-copy strong,
.landing-benefit-card strong,
.landing-action-card strong {
  color: var(--text);
}

.pipeline-preview-head strong {
  font-size: 0.96rem;
}

.pipeline-preview-head span,
.pipeline-preview-card span,
.pipeline-preview-card small {
  color: var(--muted);
}

.pipeline-preview-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(5, 10, 18, 0.86);
}

.pipeline-preview-card + .pipeline-preview-card {
  margin-top: 10px;
}

.pipeline-preview-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.pipeline-preview-card small {
  font-size: 0.8rem;
}

.landing-stage-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

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

.kpi-preview-tile {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(143, 180, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.kpi-preview-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.36rem;
  line-height: 1;
}

.landing-photo-card {
  overflow: hidden;
}

.landing-photo-card img,
.landing-story-media img,
.landing-banner-media img,
.landing-screen-media img {
  display: block;
  width: 100%;
}

.landing-photo-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.landing-banner-media img {
  height: 100%;
  object-fit: cover;
}

.landing-photo-caption,
.landing-story-copy {
  padding: 22px 24px 24px;
}

.landing-photo-caption strong,
.landing-story-copy strong,
.landing-benefit-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.landing-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-strip article {
  padding: 18px 20px;
}

.landing-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.landing-section {
  display: grid;
  gap: 24px;
}

.landing-section-head {
  max-width: 62ch;
}

.landing-section-head.narrow {
  max-width: 54ch;
}

.landing-section-head h2,
.landing-final-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.landing-section-head p:last-child,
.landing-final-copy p:last-child {
  margin-top: 12px;
}

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

.landing-story-card {
  overflow: hidden;
}

.landing-story-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(143, 180, 255, 0.14);
}

.landing-benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-benefit-card,
.landing-screen-card {
  padding: 22px;
}

.landing-screen-card {
  display: grid;
  gap: 18px;
}

.landing-screen-copy h3 {
  margin: 10px 0 12px;
  font-size: 1.55rem;
}

.landing-screen-media {
  overflow: hidden;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(4, 10, 18, 0.64);
}

.landing-screen-media img {
  border-radius: 14px;
  border: 1px solid rgba(143, 180, 255, 0.1);
}

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

.landing-screen-card-wide {
  grid-column: 1 / -1;
}

.landing-shot {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(143, 180, 255, 0.16);
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.98), rgba(8, 15, 27, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.landing-shot-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-shot-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.landing-shot-head strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.landing-shot-head small {
  margin-left: auto;
  color: var(--muted);
}

.landing-shot-toolbar,
.landing-shot-chip-row,
.landing-shot-summary-grid,
.landing-shot-metric-grid,
.landing-shot-board,
.landing-shot-bars {
  display: grid;
  gap: 12px;
}

.landing-shot-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.landing-shot-toolbar.stack-mobile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-shot-field,
.landing-shot-chip,
.shot-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

.landing-shot-field.wide {
  justify-content: flex-start;
}

.landing-shot-chip-row {
  grid-template-columns: repeat(3, max-content);
}

.landing-shot-chip.active {
  border-color: rgba(255, 143, 61, 0.42);
  background: rgba(255, 143, 61, 0.12);
  color: var(--text);
}

.landing-shot-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-shot-board.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-shot-column {
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.landing-shot-column.is-accent {
  border-color: rgba(255, 143, 61, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 143, 61, 0.08);
}

.landing-shot-column-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}

.landing-shot-column-head strong,
.landing-shot-card strong,
.landing-shot-bar-row strong {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.landing-shot-column-head span,
.landing-shot-card span,
.landing-shot-card small,
.landing-shot-bar-row span,
.landing-shot-bar-row small {
  color: var(--muted);
}

.landing-shot-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(143, 180, 255, 0.1);
  background: rgba(3, 8, 16, 0.7);
}

.landing-shot-card + .landing-shot-card {
  margin-top: 10px;
}

.landing-shot-card strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.landing-shot-card span,
.landing-shot-card small {
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.landing-shot-metric-card,
.landing-shot-summary-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.landing-shot-metric-card span,
.landing-shot-summary-card span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 800;
}

.landing-shot-metric-card strong,
.landing-shot-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
  line-height: 1.05;
}

.landing-shot-chart {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(143, 180, 255, 0.12);
  background:
    linear-gradient(rgba(143, 180, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 10, 18, 0.92), rgba(6, 13, 24, 0.88));
  background-size: 100% 44px, auto;
}

.landing-shot-chart-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 22%;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 143, 61, 0.92), rgba(255, 143, 61, 0.72));
  border-radius: 999px;
}

.landing-shot-chart-point {
  position: absolute;
  top: calc(22% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f7fbff;
  border: 3px solid #ff8f3d;
}

.landing-shot-chart-point.p1 { left: 9%; }
.landing-shot-chart-point.p2 { left: 27%; }
.landing-shot-chart-point.p3 { left: 45%; }
.landing-shot-chart-point.p4 { left: 63%; }
.landing-shot-chart-point.p5 { left: 81%; }
.landing-shot-chart-point.p6 { left: 93%; }

.landing-shot-bar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.landing-shot-bar-row div {
  display: grid;
  gap: 4px;
}

.landing-shot-bar-row strong {
  font-size: 0.92rem;
}

.landing-shot-bar-row span,
.landing-shot-bar-row small {
  font-size: 0.8rem;
}

.landing-shot-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.landing-shot-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(120, 166, 255, 0.94), rgba(255, 143, 61, 0.94));
}

.landing-shot-bar.dual span {
  background: linear-gradient(90deg, rgba(120, 166, 255, 0.84), rgba(255, 143, 61, 0.82));
}

.landing-shot-table-head,
.landing-shot-table-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
}

.landing-shot-table-head {
  border: 1px solid rgba(143, 180, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-shot-table-row {
  border: 1px solid rgba(143, 180, 255, 0.08);
  background: rgba(3, 8, 16, 0.6);
}

.landing-shot-table-row strong {
  font-size: 0.92rem;
}

.landing-shot-table-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.landing-shot-table-head.five,
.landing-shot-table-row.five {
  grid-template-columns: 1.3fr 1.25fr .7fr .75fr .85fr;
}

.landing-shot-table-head.six,
.landing-shot-table-row.six {
  grid-template-columns: 1.25fr .65fr .85fr .55fr .75fr .7fr;
}

.shot-status {
  width: fit-content;
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.78rem;
}

.shot-status.warn {
  border-color: rgba(255, 143, 61, 0.4);
  background: rgba(255, 143, 61, 0.12);
  color: var(--text);
}

.shot-status.soft {
  border-color: rgba(255, 207, 90, 0.36);
  background: rgba(255, 207, 90, 0.1);
  color: var(--text);
}

.shot-status.ok {
  border-color: rgba(58, 210, 159, 0.4);
  background: rgba(58, 210, 159, 0.12);
  color: var(--text);
}

.landing-shot-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-banner {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.landing-banner-copy {
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.landing-final-cta {
  grid-template-columns: minmax(0, 1.08fr) 360px;
}

.landing-action-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

@media (max-width: 1480px) and (min-width: 1081px) {
  .app-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .app-header-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-utility-links {
    flex-wrap: wrap;
  }

  .user-chip {
    text-align: left;
  }
}

@media (max-width: 1080px) {
  .landing-hero,
  .landing-hero-stage,
  .landing-story-grid,
  .landing-benefit-grid,
  .landing-screens-grid,
  .landing-banner,
  .landing-final-cta {
    grid-template-columns: 1fr;
  }

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

  .landing-shot-board,
  .landing-shot-board.compact,
  .landing-shot-metric-grid,
  .landing-shot-summary-grid,
  .landing-shot-toolbar.stack-mobile,
  .landing-shot-table-head.five,
  .landing-shot-table-row.five,
  .landing-shot-table-head.six,
  .landing-shot-table-row.six {
    grid-template-columns: 1fr;
  }

  .landing-shot-toolbar {
    grid-template-columns: 1fr;
  }

  .landing-topbar-inner {
    flex-wrap: wrap;
  }

  .hero-shell,
  .two-column,
  .closer-dashboard-grid,
  .resource-grid,
  .admin-license-top-grid,
  .admin-license-action-grid,
  .admin-license-automation-grid,
  .template-editor-grid,
  .billing-plan-grid,
  .payment-plan-grid,
  .settings-overview-grid,
  .integration-roadmap-grid {
    grid-template-columns: 1fr;
  }

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

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

  .approved-whatsapp-toolbar,
  .approved-whatsapp-chip-row {
    grid-template-columns: 1fr;
  }

  .approved-whatsapp-card-head,
  .approved-whatsapp-meta-right {
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .dashboard-filter-actions {
    justify-content: stretch;
  }

  .dashboard-filter-actions .primary-btn {
    width: 100%;
  }

  .app-header {
    display: grid;
    gap: 0;
    padding: 14px 16px;
  }

  .app-header-top {
    justify-content: space-between;
  }

  .app-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .app-header-panel {
    display: grid;
    gap: 14px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.16s ease, margin-top 0.16s ease, padding-top 0.16s ease;
  }

  .app-header.is-open .app-header-panel {
    margin-top: 14px;
    padding-top: 14px;
    max-height: 75vh;
    opacity: 1;
    overflow: auto;
    pointer-events: auto;
    border-top: 1px solid var(--line);
  }

  .app-header.is-open .app-nav-toggle-box span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .app-header.is-open .app-nav-toggle-box span:nth-child(2) {
    opacity: 0;
  }

  .app-header.is-open .app-nav-toggle-box span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .brand-lockup h1 {
    max-width: min(52vw, 240px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 8px;
  }

  .main-nav a {
    width: 100%;
    justify-content: space-between;
    padding: 13px 15px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
  }

  .header-actions {
    display: grid;
    gap: 12px;
    align-items: stretch;
  }

  .header-utility-links {
    display: grid;
    gap: 10px;
  }

  .admin-view-switch {
    display: grid;
    align-items: stretch;
  }

  .admin-view-switch-field {
    min-width: 0;
  }

  .header-actions form,
  .header-actions .ghost-btn {
    width: 100%;
  }

  .user-chip {
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
  }

  .header-utility-link {
    width: 100%;
    justify-content: flex-start;
  }

  .settings-subnav,
  .scope-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .settings-subnav::-webkit-scrollbar,
  .scope-switcher::-webkit-scrollbar {
    display: none;
  }

  .settings-subnav a,
  .scope-chip {
    white-space: nowrap;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-date {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .landing-topbar {
    position: static;
  }

  .site-legal-footer {
    width: calc(100% - 24px);
    margin-bottom: 16px;
    padding: 14px 16px;
  }

  .site-legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-legal-footer-nav {
    justify-content: flex-start;
  }

  .landing-topbar-inner,
  .landing-top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-link-grid {
    grid-template-columns: 1fr;
  }

  .landing-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .landing-panel,
  .landing-screen-card,
  .landing-benefit-card,
  .landing-strip article {
    padding: 20px;
    border-radius: 24px;
  }

  .landing-metric-row,
  .landing-strip,
  .landing-benefit-grid,
  .pipeline-preview-grid,
  .kpi-preview-grid,
  .landing-shot-chip-row {
    grid-template-columns: 1fr;
  }

  .pipeline-preview-toolbar {
    grid-template-columns: 1fr;
  }

  .landing-shot,
  .landing-screen-card {
    padding: 18px;
    border-radius: 22px;
  }

  .landing-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .marketing-main,
  .app-main {
    width: 100%;
    padding-inline: 14px;
  }

  .section-head,
  .section-head.compact {
    align-items: stretch;
  }

  .section-head > .primary-btn,
  .section-head > .ghost-btn,
  .section-head .inline-actions,
  .section-head .inline-actions .ghost-btn,
  .section-head .inline-actions .primary-btn {
    width: 100%;
  }

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

  .dashboard-filter-bar {
    grid-template-columns: 1fr;
  }

  .metric-card {
    padding: 18px;
  }

  .hero-shell,
  .panel,
  .auth-card {
    padding: 20px;
    border-radius: 24px;
  }

  .workspace-mode-banner {
    margin-top: 14px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .support-fab:not(.header-utility-link),
  .swiss-trust-badge:not(.header-utility-link) {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .swiss-trust-badge:not(.header-utility-link) {
    top: 128px;
    bottom: auto;
  }

  .support-fab:not(.header-utility-link) {
    top: 68px;
    bottom: auto;
  }

  .support-modal {
    margin: 16px;
    padding: 20px;
  }

  .support-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-hint-head {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .workspace-registration-row {
    grid-template-columns: 1fr;
  }

  .workspace-type-field,
  .workspace-registration-field {
    max-width: none;
  }

  .resource-link-grid {
    grid-template-columns: 1fr;
  }

  .channel-tile-grid {
    grid-template-columns: 1fr;
  }

  .invoice-line,
  .invoice-line.invoice-line-head {
    grid-template-columns: 1fr;
  }

  .invoice-totals {
    width: 100%;
  }

  .invoice-document-shell {
    padding: 12px;
    border-radius: 22px;
  }

  .invoice-document-sheet {
    padding: 20px;
    border-radius: 20px;
  }

  .invoice-document-head,
  .invoice-document-summary,
  .invoice-document-parties {
    grid-template-columns: 1fr;
  }

  .invoice-document-table,
  .invoice-document-table thead,
  .invoice-document-table tbody,
  .invoice-document-table tr,
  .invoice-document-table th,
  .invoice-document-table td {
    display: block;
    width: 100%;
  }

  .invoice-document-table thead {
    display: none;
  }

  .invoice-document-table td {
    border-top: 1px solid #e8eef6;
    padding: 14px 16px;
  }

  .invoice-document-table tbody tr:first-child td:first-child {
    border-top: 0;
  }

  .invoice-document-cell-qty,
  .invoice-document-cell-total {
    width: auto;
    text-align: left;
  }

  .invoice-document-totals {
    width: 100%;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar input,
  .toolbar select,
  .toolbar .field,
  .toolbar .ghost-btn,
  .toolbar .primary-btn {
    width: 100%;
    min-width: 0;
  }

  .list-card,
  .list-meta,
  .prospect-card-head {
    grid-template-columns: 1fr;
  }

  .list-card {
    display: grid;
    align-items: start;
  }

  .eod-comparison-card {
    display: grid;
  }

  .eod-comparison-meta {
    justify-items: start;
    text-align: left;
    white-space: normal;
  }

  .list-meta {
    justify-items: start;
  }

  .pipeline-board {
    grid-auto-columns: 86vw;
    gap: 12px;
    padding-inline: 4px;
    scroll-snap-type: x proximity;
  }

  .pipeline-column {
    min-height: auto;
    scroll-snap-align: start;
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions .ghost-btn,
  .inline-actions .primary-btn,
  .inline-actions form,
  .inline-actions form button {
    width: 100%;
  }

  .data-table.responsive-table {
    min-width: 0;
  }

  .data-table.responsive-table thead {
    display: none;
  }

  .data-table.responsive-table,
  .data-table.responsive-table tbody,
  .data-table.responsive-table tr,
  .data-table.responsive-table td {
    display: block;
    width: 100%;
  }

  .data-table.responsive-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  .data-table.responsive-table tr.table-row-alert,
  .data-table.responsive-table tr.sale-row-incomplete {
    border-color: rgba(255, 111, 125, 0.22);
    background: rgba(255, 111, 125, 0.06);
  }

  .data-table.responsive-table td {
    padding: 0;
    border-bottom: 0;
  }

  .data-table.responsive-table td + td {
    margin-top: 10px;
  }

  .data-table.responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .data-table.responsive-table td.empty-table::before {
    content: none;
  }

  .cta-row,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-page-loading::before {
    animation: none;
    opacity: 1;
    transform: translateX(0) scaleX(0.42);
  }

  body.is-page-loading .app-header,
  body.is-page-loading .app-main,
  body.is-page-loading .marketing-main {
    opacity: 1;
  }
}
