:root {
  --bg: #f3efe8;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(24, 33, 38, 0.09);
  --text: #182126;
  --muted: #66727b;
  --brand: #163c3a;
  --brand-soft: rgba(22, 60, 58, 0.08);
  --accent: #9c7d4f;
  --accent-soft: rgba(156, 125, 79, 0.12);
  --danger: #8b3e38;
  --danger-soft: rgba(139, 62, 56, 0.12);
  --shadow: 0 24px 70px rgba(20, 31, 36, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(156, 125, 79, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 70%);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  padding: 24px;
}

.hero,
.section,
.footer,
.workspace-hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 1200px;
  padding: 12px 18px;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar.private {
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
  border-radius: 16px;
}

.header-wrap {
  width: 100%;
  overflow: visible;
  padding: 12px 16px;
  box-sizing: border-box;
}

.header-card {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-card,
.topbar.private .header-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.topbar-left,
.topbar-center,
.topbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-left {
  flex: 0 1 auto;
}

.topbar-center {
  flex: 1 1 540px;
  justify-content: center;
}

.topbar.private .topbar-center {
  flex: 0 1 auto;
  justify-content: flex-start;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  padding: 8px 0;
}

.header-card .topbar-row,
.header-card .topbar-left,
.header-card .topbar-center,
.header-card .topbar-right,
.header-card .brand-lockup,
.header-card .header-actions {
  max-width: 100%;
  min-width: 0;
}

.header-card > *,
.header-card .topbar-row,
.header-card .main-nav {
  width: 100%;
}

.header-card .topbar-center {
  flex: 0 1 auto;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 8px 0;
}

.header-card .button {
  border-radius: 16px;
}

.topbar-right {
  flex: 0 0 auto;
  margin-left: auto;
}

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

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(24, 33, 38, 0.12);
}

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

.brand-service strong {
  font-size: 0.9rem;
}

.brand-service span,
.main-nav a,
.section-heading p,
.hero-text,
.hero-highlight p,
.info-card p,
.data-row span,
.footer p:last-child,
.workspace-hero p,
.form-card span,
.table-card span,
.empty-state span,
.nps-headline span {
  color: var(--muted);
}

.nav-scroll {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.topbar.private .main-nav,
.header-card .main-nav {
  font-size: 0.86rem;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--text);
}

.button.ghost {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
  color: var(--text);
}

.button.ghost.danger {
  color: var(--danger);
  border-color: rgba(139, 62, 56, 0.18);
}

.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
}

.ops-home,
.ops-hero,
.ops-section,
.ops-system-logic {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.ops-home {
  padding: 16px 0 10px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
  padding: 14px 0 12px;
}

.ops-hero h1,
.ops-section h2,
.ops-system-logic h2 {
  margin: 10px 0 12px;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
  line-height: 1.14;
}

.ops-hero h1 {
  max-width: 760px;
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
}

.ops-hero h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 800;
}

.ops-hero p,
.ops-section-head p,
.ops-module-card p,
.ops-reading p,
.ops-system-logic p {
  line-height: 1.65;
}

.ops-hero p {
  max-width: 820px;
  margin: 0 0 6px;
}

.ops-hero > div > p:nth-of-type(n + 3) {
  display: none;
}

.ops-summary-panel,
.ops-module-card,
.ops-example-panel,
.ops-system-logic {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(20, 31, 36, 0.06);
}

.ops-summary-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.ops-summary-panel div,
.ops-example-table div,
.ops-metrics-row div,
.final-score-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(22, 60, 58, 0.06);
}

.ops-summary-panel span,
.ops-example-table span,
.ops-metrics-row span,
.ops-reading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ops-summary-panel strong,
.ops-example-table strong,
.ops-metrics-row strong {
  color: var(--text);
  font-size: 1rem;
}

.ops-section {
  padding: 14px 0 8px;
}

.ops-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 10px;
}

.ops-section h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
}

.ops-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.ops-module-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 250px;
  padding: 14px;
}

.ops-module-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.ops-module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.ops-module-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ops-module-card dl div {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ops-module-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-module-card dd {
  margin: 0;
  font-weight: 800;
}

.ops-module-card a {
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  align-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.ops-example-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ops-example-table,
.ops-detail-grid,
.ops-metrics-row {
  display: grid;
  gap: 12px;
}

.ops-example-table {
  grid-template-columns: 180px 180px 180px minmax(0, 1fr);
}

.ops-example-table p {
  margin: 0;
  line-height: 1.55;
}

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

.ops-detail-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.ops-detail-grid article.wide {
  grid-column: 1 / -1;
}

.ops-detail-grid h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.ops-detail-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.ops-metrics-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-metrics-row strong {
  font-size: 1.35rem;
}

.ops-reading {
  padding: 12px;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: rgba(22, 60, 58, 0.06);
}

.ops-reading p {
  margin: 6px 0 0;
}

.ops-system-logic {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
}

.ops-system-logic h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.ops-system-logic p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.ops-home-v2 {
  padding-top: 10px;
}

.ops-top-panel,
.ops-action-card,
.ops-compact-example,
.ops-kpi-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(20, 31, 36, 0.05);
}

.ops-top-panel {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  padding: 16px;
}

.ops-top-copy h1,
.ops-top-copy h2 {
  margin: 6px 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
  line-height: 1.16;
}

.ops-top-copy h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
}

.ops-top-copy h2 {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
}

.ops-top-copy p {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.ops-kpi-panel .mini-label {
  grid-column: 1 / -1;
}

.ops-kpi-panel div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(22, 60, 58, 0.06);
}

.ops-kpi-panel span,
.ops-row-table span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-kpi-panel strong {
  font-size: 1rem;
}

.ops-section-tight {
  padding-top: 12px;
}

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

.ops-action-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ops-action-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.ops-action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ops-action-card strong {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.ops-action-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
  font-size: 0.86rem;
}

.ops-compact-example {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ops-row-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-row-table div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(22, 60, 58, 0.06);
}

.ops-row-table strong {
  font-size: 0.9rem;
}

.ops-reading-line {
  margin: 0;
  padding: 10px;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: rgba(22, 60, 58, 0.05);
  line-height: 1.5;
  color: var(--text);
}

.compact-access {
  padding-top: 10px;
}

.access-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 8px;
}

.access-head h2 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  line-height: 1.18;
}

.access-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.compact-access .access-grid {
  gap: 12px;
}

.compact-access .form-card {
  gap: 10px;
  padding: 12px;
}

.compact-access .form-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.form-helper {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.compact-access .form-section {
  gap: 8px;
}

.commercial-landing,
.commercial-section,
.commercial-hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.commercial-landing {
  padding-bottom: 18px;
}

.commercial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 28px;
  align-items: center;
  padding: 76px 0 42px;
}

.commercial-hero h1,
.commercial-hero h2,
.commercial-section h2,
.closing-section h2 {
  font-family: "Fraunces", serif;
  line-height: 1.03;
}

.commercial-hero h1 {
  margin: 12px 0;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.commercial-hero h2 {
  max-width: 16ch;
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
}

.commercial-copy {
  display: grid;
  gap: 12px;
  color: var(--text);
  line-height: 1.72;
}

.commercial-copy p {
  margin: 0;
}

.commercial-hero-board,
.commercial-method-card,
.answer-card,
.cycle-steps article,
.closing-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.commercial-hero-board {
  display: grid;
  gap: 16px;
  padding: 26px;
  align-self: stretch;
  align-content: center;
}

.commercial-hero-board > strong {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.commercial-hero-board div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.commercial-hero-board span {
  color: var(--muted);
  font-weight: 800;
}

.commercial-hero-board b {
  color: var(--brand);
  font-size: 1.6rem;
}

.commercial-section {
  padding: 34px 0 20px;
}

.commercial-intro,
.cycle-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.commercial-section h2 {
  max-width: 14ch;
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.commercial-card-grid,
.answer-grid,
.cycle-steps {
  display: grid;
  gap: 18px;
}

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

.commercial-method-card,
.answer-card {
  padding: 24px;
}

.commercial-card-head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.commercial-card-head h3,
.answer-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.commercial-card-head strong {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--brand);
  color: white;
  font-size: 1.05rem;
}

.card-examples {
  color: var(--brand);
  font-weight: 800;
}

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

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

.answer-card > span,
.cycle-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.answer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.cycle-steps article {
  display: grid;
  gap: 16px;
  min-height: 150px;
  padding: 22px;
}

.cycle-steps strong {
  align-self: end;
  font-size: 1.2rem;
}

.closing-section {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(22, 60, 58, 0.95), rgba(35, 76, 73, 0.94));
  color: white;
}

.closing-section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.closing-section p {
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.closing-section .button {
  justify-self: start;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 74px 0 34px;
}

.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-isotype {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.eyebrow,
.mini-label {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.workspace-hero h1 {
  font-family: "Fraunces", serif;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
  margin: 12px 0 16px;
}

.hero-subtitle {
  max-width: 18ch;
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 12px 0 12px;
  max-width: 14ch;
}

.workspace-hero h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin: 10px 0 12px;
}

.hero-text,
.section-heading p,
.workspace-hero p {
  line-height: 1.75;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel,
.panel {
  padding: 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-panel-logo {
  width: min(100%, 260px);
  display: block;
  margin-bottom: 20px;
}

.hero-panel-grid,
.metric-strip,
.workspace-chip-grid,
.marketing-grid,
.journey-grid,
.demo-grid,
.private-grid,
.metric-grid,
.dashboard-grid,
.field-grid,
.access-grid {
  display: grid;
  gap: 18px;
}

.hero-panel-grid,
.workspace-chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-panel-grid article,
.workspace-chip-grid article,
.metric-strip div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.hero-panel-grid strong,
.workspace-chip-grid strong,
.metric-strip strong,
.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.9rem;
}

.hero-highlight {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22, 60, 58, 0.94), rgba(35, 76, 73, 0.92));
  color: rgba(255, 255, 255, 0.9);
}

.hero-highlight strong {
  display: block;
}

.hero-highlight p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.landing-scorecard {
  align-self: center;
}

.method-card {
  gap: 14px;
}

.method-card-top,
.scoreboard-grid {
  display: grid;
  gap: 14px;
}

.method-card-top {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.method-card-top strong {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brand);
}

.method-card h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.method-card p,
.method-scoreboard p,
.golf-cycle p {
  line-height: 1.7;
}

.method-scoreboard {
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
}

.scenario-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scenario-tab {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 800;
}

.scenario-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.daily-play-card,
.behavior-demo-card,
.final-score-card {
  gap: 20px;
}

.daily-play-head,
.behavior-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.daily-play-head h3,
.behavior-head h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.daily-play-head strong,
.behavior-head strong,
.nps-demo-card > strong {
  color: var(--brand);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.daily-play-grid,
.demo-result-grid {
  display: grid;
  gap: 16px;
}

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

.daily-play-grid article,
.behavior-item,
.final-score-list div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(22, 60, 58, 0.06);
  border: 1px solid rgba(24, 33, 38, 0.06);
}

.daily-play-grid article.wide {
  grid-column: 1 / -1;
}

.daily-play-grid span,
.final-score-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.daily-play-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.behavior-checklist,
.final-score-list {
  display: grid;
  gap: 10px;
}

.behavior-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
}

.behavior-item span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.behavior-item.done span {
  background: var(--brand);
  color: white;
}

.behavior-item.missed span {
  background: rgba(139, 62, 56, 0.12);
  color: var(--danger);
}

.demo-result-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.nps-demo-card {
  justify-content: center;
  min-height: 100%;
}

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

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

.scoreboard-grid article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.scoreboard-grid span {
  color: var(--muted);
  font-weight: 700;
}

.scoreboard-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.golf-cycle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
}

.golf-cycle h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin: 12px 0 14px;
  max-width: 13ch;
}

.cycle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 14px 16px;
}

.cycle-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.cycle-card strong {
  align-self: center;
}

.legacy-public-flow {
  display: none;
}

.section {
  padding: 30px 0 18px;
}

.section-heading {
  margin-bottom: 22px;
}

.marketing-grid.three,
.journey-grid,
.private-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.private-grid.one {
  grid-template-columns: 1fr;
}

.demo-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.demo-card.wide {
  min-height: 100%;
}

.step-card strong {
  font-family: "Fraunces", serif;
  font-size: 3rem;
  color: rgba(22, 60, 58, 0.16);
}

.step-card h3,
.info-card h3,
.form-card h3,
.table-card h3,
.panel-head h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.cta-band,
.workspace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.workspace-hero {
  padding: 18px 0 12px;
}

.workspace-chip-grid article {
  min-width: 140px;
}

.form-card,
.table-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.field-grid > * {
  width: 100%;
}

.play-block,
.assignment-card,
.play-card,
.play-metric-card {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 38, 0.06);
}

.play-block strong,
.play-card strong,
.play-metric-card strong,
.play-structure-row strong {
  display: block;
  margin-bottom: 4px;
}

.play-structure-list,
.play-card-list,
.play-metric-list,
.position-incidents,
.assignments-block,
.usage-chart,
.question-list,
.extra-field-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.play-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.play-summary-grid article,
.question-card,
.extra-field-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 38, 0.06);
}

.question-builder {
  margin-top: 0;
}

.question-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.extra-field-card strong,
.question-card strong {
  display: block;
  margin-bottom: 4px;
}

.play-structure-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.play-structure-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.play-structure-row p,
.play-metric-card p,
.play-card p {
  margin: 6px 0;
  color: var(--text);
}

.play-structure-row small,
.play-card-top span,
.play-metric-foot span,
.assignments-head {
  color: var(--muted);
}

.assignments-head,
.play-card-top,
.play-metric-top,
.play-metric-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.play-metric-foot,
.assignments-head {
  flex-wrap: wrap;
}

.usage-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
}

label {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
  margin-bottom: 16px;
}

label > span {
  display: block;
  min-height: 20px;
  line-height: 1.25;
}

.form-card > label,
.form-card > div,
.table-card > div {
  margin-top: 0;
  margin-bottom: 16px;
}

.form-card > :first-child,
.table-card > :first-child {
  margin-top: 0;
}

.field-grid > label,
.field-grid > div,
.private-grid > .panel,
.dashboard-grid > .panel,
.play-summary-grid > article,
.question-list > article,
.data-list > article {
  margin-top: 0;
}

input,
select {
  height: 44px;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(24, 33, 38, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

select {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(24, 33, 38, 0.45) 50%),
    linear-gradient(135deg, rgba(24, 33, 38, 0.45) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  outline: 2px solid rgba(22, 60, 58, 0.12);
  border-color: rgba(22, 60, 58, 0.28);
}

input:disabled {
  color: var(--muted);
  background: rgba(246, 246, 246, 0.9);
}

select:disabled {
  color: var(--muted);
  background: rgba(246, 246, 246, 0.9);
}

.form-error {
  color: var(--danger);
  font-weight: 700;
  margin: 14px 0 0;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 33, 38, 0.06);
}

.form-card > .form-section + .form-section,
.form-card > .form-section + .assignments-block,
.form-card > .assignments-block + .assignments-block,
.form-card > .assignments-block + .form-section,
.form-card > .form-actions,
.table-card > .form-actions {
  margin-top: 24px;
}

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

.form-section-head .mini-label {
  margin: 0;
}

.form-actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 0;
  padding-bottom: 16px;
}

.form-actions .button.primary.full {
  min-height: 52px;
  box-shadow: 0 18px 32px rgba(22, 60, 58, 0.16);
}

.hint-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.exception-box {
  margin-top: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.hint-box,
.exception-box,
.nps-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exception-box strong {
  display: block;
  margin-bottom: 6px;
}

.hint-box strong {
  display: block;
  margin-bottom: 6px;
}

.data-list,
.metric-strip,
.bar-list,
.checklist {
  display: grid;
  gap: 12px;
}

.data-list.compact {
  gap: 10px;
}

.data-row,
.toggle-card,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 33, 38, 0.06);
}

.play-card,
.assignment-card,
.play-metric-card,
.question-card,
.extra-field-card,
.data-row,
.toggle-card,
.empty-state {
  width: 100%;
}

.data-row.compact {
  padding: 12px 14px;
}

.data-row > div,
.question-card > div,
.play-card-top > div,
.panel-head > div,
.assignments-head > div {
  min-width: 0;
}

.data-row strong,
.toggle-card strong,
.bar-copy strong,
.empty-state strong {
  display: block;
  margin-bottom: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.status-pill.inactive {
  background: rgba(24, 33, 38, 0.08);
  color: var(--muted);
}

.status-pill.alert {
  background: var(--danger-soft);
  color: var(--danger);
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 4px;
}

.inline-actions.right {
  justify-content: flex-end;
}

.tag-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.tag.subtle {
  background: rgba(24, 33, 38, 0.07);
  color: var(--text);
}

.mobile-first {
  padding-bottom: 26px;
}

.nps-headline {
  margin-bottom: 0;
  padding: 18px;
  border: 1px solid rgba(24, 33, 38, 0.06);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22, 60, 58, 0.08), rgba(22, 60, 58, 0.04));
}

.nps-headline strong {
  display: block;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 800;
}

.question-builder > .button.full,
.question-card .button,
.play-card-top .button,
.data-row .button {
  flex-shrink: 0;
}

.score-pill.selected {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  padding: 22px;
}

.metric-card small {
  color: var(--brand);
  font-weight: 700;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(22, 60, 58, 0.08);
}

.progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.progress.alt div {
  background: linear-gradient(90deg, #dec59c, var(--accent));
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 270px;
}

.trend-item {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.trend-bars {
  width: 100%;
  max-width: 70px;
  height: 210px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.trend-bar {
  flex: 1;
  border-radius: 14px 14px 5px 5px;
}

.trend-bar.execution {
  background: linear-gradient(180deg, #2d615e, var(--brand));
}

.trend-bar.nps {
  background: linear-gradient(180deg, #dfc59b, var(--accent));
}

.dashboard-grid .panel.wide {
  grid-column: span 2;
}

.lower-grid {
  margin-top: 18px;
}

.empty-state {
  flex-direction: column;
  align-items: flex-start;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 30px 0 40px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .ops-top-panel,
  .ops-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-top-copy {
    grid-column: 1 / -1;
  }

  .ops-kpi-panel {
    grid-column: 1 / -1;
  }

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

  .ops-hero,
  .ops-section-head,
  .ops-system-logic,
  .ops-example-table {
    grid-template-columns: 1fr;
  }

  .ops-section-head,
  .access-head,
  .ops-system-logic {
    display: grid;
    align-items: start;
  }

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

  .commercial-hero,
  .commercial-intro,
  .cycle-section,
  .commercial-card-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero,
  .golf-cycle,
  .demo-result-grid,
  .access-grid,
  .private-grid.two,
  .private-grid.three,
  .marketing-grid.three,
  .journey-grid,
  .demo-grid,
  .metric-grid,
  .dashboard-grid,
  .field-grid,
  .field-grid.triple,
  .workspace-chip-grid,
  .play-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .panel.wide {
    grid-column: span 1;
  }

  .topbar {
    position: static;
    border-radius: 16px;
  }

  .topbar,
  .main-nav,
  .cta-band,
  .workspace-hero {
    align-items: flex-start;
  }

  .brand-lockup {
    flex-wrap: wrap;
  }

  .topbar-center {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .brand-divider {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .trend-chart {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .trend-item {
    min-width: 72px;
  }

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

  .daily-play-head,
  .behavior-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px;
  }

  .ops-home {
    padding-top: 12px;
  }

  .ops-hero {
    padding-top: 24px;
  }

  .access-head {
    gap: 8px;
  }

  .ops-module-grid,
  .ops-detail-grid,
  .ops-metrics-row {
    grid-template-columns: 1fr;
  }

  .ops-module-card {
    min-height: auto;
  }

  .ops-summary-panel,
  .ops-module-card,
  .ops-example-panel,
  .ops-system-logic {
    padding: 16px;
  }

  .commercial-hero {
    padding: 44px 0 26px;
  }

  .commercial-hero-board,
  .commercial-method-card,
  .answer-card,
  .closing-section {
    padding: 20px;
  }

  .cycle-steps {
    grid-template-columns: 1fr;
  }

  .commercial-hero h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero,
  .golf-cycle,
  .daily-play-grid,
  .demo-result-grid,
  .final-score-list,
  .access-grid,
  .private-grid.two,
  .private-grid.three,
  .marketing-grid.three,
  .journey-grid,
  .demo-grid,
  .metric-grid,
  .dashboard-grid,
  .workspace-chip-grid,
  .play-summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-panel,
  .panel,
  .metric-card {
    padding: 20px;
  }

  .brand-logo {
    height: 34px;
  }

  .hero-actions,
  .header-actions {
    gap: 10px;
  }

  .hero-actions,
  .header-actions,
  .cta-band,
  .workspace-hero {
    width: 100%;
  }

  .hero-actions .button,
  .header-actions .button,
  .cta-band .button,
  .workspace-hero .button,
  .form-card > .button,
  .form-card .button.full {
    width: 100%;
  }

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

  .scenario-tabs {
    display: grid;
  }

  .scenario-tab {
    width: 100%;
  }

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

  .field-grid,
  .field-grid.triple {
    grid-template-columns: 1fr;
  }

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

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

  .question-card,
  .data-row,
  .play-card-top,
  .panel-head {
    align-items: flex-start;
  }

  .inline-actions,
  .inline-actions.right {
    justify-content: flex-start;
  }

  .topbar-right {
    margin-left: 0;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
  .ops-top-panel,
  .ops-action-grid,
  .ops-row-table {
    grid-template-columns: 1fr;
  }

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

  .ops-top-panel {
    padding: 12px;
  }

/* VET Golf CRM operativo */
.crm-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f5f4ef;
  color: #20231f;
}

.crm-login-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  justify-items: center;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(42, 87, 62, 0.08), transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(188, 176, 135, 0.12), transparent 38%),
    linear-gradient(180deg, #f7f6f0 0%, #efeee6 100%);
  color: #20231f;
  padding: 36px 18px;
  box-sizing: border-box;
}

.crm-login-head {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
}

.crm-login-head img {
  width: min(170px, 48vw);
  max-width: 170px;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.crm-login-head span {
  color: #6e746b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crm-login-head h1 {
  position: relative;
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
  color: #17251d;
}

.crm-login-head h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #2f5b45;
}

.crm-login-head p {
  margin: 4px 0 0;
  color: #6a6d65;
}

.crm-login-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.crm-login-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  border: 1px solid rgba(65, 83, 70, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 252, 0.92);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(37, 48, 38, 0.065);
}

.crm-login-card h2 {
  margin: 0;
  color: #1d2b22;
  font-size: 21px;
  line-height: 1.2;
}

.crm-login-card p {
  margin: 0 0 4px;
  color: #687067;
  font-size: 13px;
  line-height: 1.45;
}

.crm-login-card small {
  color: #788077;
  font-size: 12px;
}

.crm-login-grid label,
.crm-login-card > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #555a51;
  font-size: 12px;
  font-weight: 700;
}

.crm-login-grid input,
.crm-login-card > label input,
.crm-login-card > label select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7d4ca;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  box-sizing: border-box;
  color: #1f241f;
  font: inherit;
  font-size: 14px;
}

.crm-login-grid input:focus {
  border-color: #2f5b45;
  box-shadow: 0 0 0 3px rgba(47, 91, 69, 0.12);
  outline: none;
}

.crm-login-card > label select:focus {
  border-color: #2f5b45;
  box-shadow: 0 0 0 3px rgba(47, 91, 69, 0.12);
  outline: none;
}

.crm-login-card .button.primary {
  border-color: #1f3d32;
  border-radius: 10px;
  background: #1f3d32;
  color: #fff;
  justify-self: start;
  padding: 10px 18px;
  font-weight: 800;
}

.crm-login-card .button.primary:hover {
  background: #244c3c;
}

.crm-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid #dedbd0;
  background: linear-gradient(180deg, #fbfaf6 0%, #f7f5ee 100%);
  box-sizing: border-box;
  overflow: hidden;
}

.crm-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.crm-sidebar-logout {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e2d8;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0) 0%, #f7f5ee 26%);
}

.crm-sidebar-logout button {
  width: 100%;
  border-color: #d2cec1;
}

.crm-brand,
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid #e5e2d8;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.crm-brand::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -1px;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: #FDD31A;
}

.crm-brand img,
.sidebar-logo {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.sidebar-logo-wrap {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.crm-brand-copy,
.sidebar-brand-copy {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  width: 100%;
}

.crm-brand strong,
.sidebar-title {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #151916;
  font-weight: 800;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crm-brand span,
.crm-brand-club,
.sidebar-subtitle {
  display: block;
  margin-top: 1px;
  color: #5f645c;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crm-session-card {
  display: grid;
  gap: 4px;
  margin: 12px 0 2px;
  padding: 10px;
  border: 1px solid #e1ded4;
  border-radius: 10px;
  background: #fff;
  border-top: 3px solid #FDD31A;
  color: #26302a;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(31, 39, 33, 0.05);
}

.crm-session-card strong,
.crm-session-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.crm-session-card button {
    margin-top: 4px;
    width: 100%;
    text-align: center;
  }

.crm-session-card label {
    display: grid;
    gap: 4px;
    margin-top: 6px;
  }

.crm-session-card select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8d3c5;
    border-radius: 8px;
    background: #fbfaf6;
    color: #26302a;
    padding: 8px 9px;
    font: inherit;
  }

.crm-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1f3d32;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.crm-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.crm-brand p,
.crm-page-head p,
.crm-section-title p,
.crm-card p,
.crm-muted {
  margin: 0;
  color: #6a6d65;
  font-size: 13px;
  line-height: 1.45;
}

.crm-sidebar nav {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 6px;
}

.crm-nav-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2f332c;
  padding: 10px 11px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.crm-sidebar nav button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2f332c;
  padding: 10px 11px 10px 14px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.crm-nav-button:hover,
.crm-nav-button.is-active,
.crm-sidebar nav button:hover,
.crm-sidebar nav button.active {
  background: #eef2ea;
  color: #173c2f;
}

.crm-sidebar nav button.active::before,
.crm-sidebar nav button:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #FDD31A;
}

.crm-main {
  min-width: 0;
  padding: 22px;
}

.crm-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.crm-page-head h1,
.crm-page-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.crm-toolbar,
.crm-actions,
.crm-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.crm-button {
  border: 1px solid #cfd4c9;
  border-radius: 8px;
  background: #fff;
  color: #223127;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.crm-shell button,
.crm-shell .button {
  border: 1px solid #cfd4c9;
  border-radius: 8px;
  background: #fff;
  color: #223127;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.crm-actions-compact {
  display: grid;
  gap: 5px;
  align-items: start;
  min-width: 0;
}

.crm-actions-compact-primary,
.crm-actions-compact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.crm-actions-compact button {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.15;
}

.crm-actions-compact-secondary button {
  color: #5c6158;
  border-color: #dbd7cb;
  background: #fbfaf6;
}

.crm-actions-compact button.is-subtle:hover {
  border-color: #b9b39f;
  color: #31362f;
}

.crm-actions-compact button.is-danger-subtle {
  color: #8a4d4d;
  border-color: #e3d5d5;
  background: #fff8f8;
}

.crm-actions-compact button.is-danger-subtle:hover {
  border-color: #cfb3b3;
  color: #713535;
}

.crm-journey-row td {
  vertical-align: middle;
}

.crm-date-cell {
  min-width: 96px;
  white-space: nowrap;
 }

.crm-journey-actions-row td {
  padding-top: 6px;
  padding-bottom: 10px;
  background: #fcfbf7;
  border-top: 0;
}

.crm-journey-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
  border-top: 1px solid #ece8dc;
}

.crm-journey-actions-bar button {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.15;
}

.crm-journey-actions-bar button.is-subtle {
  color: #5c6158;
  border-color: #dbd7cb;
  background: #fbfaf6;
}

.crm-journey-actions-bar button.is-subtle:hover {
  border-color: #b9b39f;
  color: #31362f;
}

.crm-journey-actions-bar button.is-danger-subtle {
  color: #8a4d4d;
  border-color: #e3d5d5;
  background: #fff8f8;
}

.crm-journey-actions-bar button.is-danger-subtle:hover {
  border-color: #cfb3b3;
  color: #713535;
}

.crm-button.primary {
  border-color: #1f3d32;
  background: #1f3d32;
  color: #fff;
}

.crm-shell .button.primary,
.crm-shell button.primary {
  border-color: #1f3d32;
  background: #1f3d32;
  color: #fff;
}

.crm-shell button:hover,
.crm-shell .button:hover {
  border-color: #FDD31A;
  box-shadow: 0 0 0 3px rgba(253, 211, 26, 0.16);
}

.crm-shell .button.primary:hover,
.crm-shell button.primary:hover {
  border-color: #FDD31A;
  box-shadow: 0 0 0 3px rgba(253, 211, 26, 0.18);
}

.crm-shell .crm-sidebar nav button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.crm-shell .crm-sidebar nav button:hover,
.crm-shell .crm-sidebar nav button.active {
  background: #e9eee6;
  color: #173c2f;
}

.crm-button.danger {
  border-color: #d8c7c1;
  color: #913525;
}

.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

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

.crm-card,
.crm-form-section,
.crm-table-wrap,
.crm-detail-panel {
  border: 1px solid #dfddd3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(42, 48, 38, 0.05);
}

.crm-card {
  padding: 14px;
}

.crm-kpi-grid article {
  border: 1px solid #dfddd3;
  border-radius: 12px;
  background: #fff;
  padding: 13px;
  box-shadow: 0 8px 22px rgba(42, 48, 38, 0.05);
}

.crm-kpi-grid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 0;
}

.crm-kpi-grid article span {
  display: block;
  color: #696d64;
  font-size: 12px;
}

.crm-kpi-grid article strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  color: #1f2a23;
}

.crm-kpi-sustain {
  background: linear-gradient(180deg, #fcfbf6 0%, #f6f1e5 100%);
  border-color: #d8cebb;
}

.crm-kpi-foot {
  display: block;
  margin-top: 8px;
  color: #4f6155;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.crm-kpi-card-details {
  margin-top: 10px;
  border-top: 1px solid #ece8dc;
  padding-top: 10px;
}

.crm-kpi-card-details summary {
  cursor: pointer;
  color: #365348;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

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

.crm-kpi-card-details ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.crm-kpi-card-details li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: #1f2a23;
  font-size: 13px;
}

.crm-kpi-card-details li span,
.crm-kpi-card-details li strong {
  margin: 0;
  font-size: 13px;
}

.crm-patterns-section {
  margin-bottom: 16px;
  border-top: 3px solid #FDD31A;
}

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

.crm-pattern-card,
.crm-pattern-recommendation {
  border: 1px solid #dfddd3;
  border-radius: 12px;
  background: #fcfbf6;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(42, 48, 38, 0.05);
}

.crm-pattern-card span,
.crm-pattern-recommendation span {
  display: block;
  color: #696d64;
  font-size: 12px;
}

.crm-pattern-card strong,
.crm-pattern-recommendation strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  color: #1f2a23;
}

.crm-pattern-card em,
.crm-pattern-recommendation em {
  display: block;
  margin-top: 8px;
  color: #365348;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.crm-pattern-state {
  background: linear-gradient(180deg, #fcfbf6 0%, #f6f1e5 100%);
  border-color: #d8cebb;
}

.crm-pattern-recommendation {
  margin-top: 14px;
  background: linear-gradient(180deg, #fcfbf6 0%, #f0f6ef 100%);
  border-color: #cad8cc;
  border-top: 3px solid #FDD31A;
}

.crm-pattern-recommendation p {
  margin: 10px 0 0;
  color: #4f6155;
  font-size: 13px;
}

.crm-kpi-label {
  display: block;
  color: #696d64;
  font-size: 12px;
}

.crm-kpi-value {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: #1f2a23;
}

.crm-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.crm-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin: 18px 0 10px;
}

.crm-section-title h3,
.crm-card h3,
.crm-form-section h3,
.crm-detail-panel h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.crm-card-data {
  margin: 10px 0;
  padding: 9px;
  border-radius: 8px;
  background: #f7f6f1;
  color: #31352f;
  font-size: 13px;
}

.crm-filter-grid,
.crm-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.crm-field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-field {
  display: grid;
  gap: 5px;
}

.crm-field label {
  color: #555a51;
  font-size: 12px;
  font-weight: 700;
}

.crm-field-grid label,
.crm-list-editor label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #555a51;
  font-size: 12px;
  font-weight: 700;
}

.crm-field-grid label.wide {
  grid-column: 1 / -1;
}

.crm-field input,
.crm-field select,
.crm-field textarea,
.crm-field-grid input,
.crm-field-grid select,
.crm-field-grid textarea,
.crm-filter-grid input,
.crm-filter-grid select,
.crm-list-editor input,
.crm-list-editor select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7d4ca;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  box-sizing: border-box;
  color: #1f241f;
  font: inherit;
  font-size: 14px;
}

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

.crm-field-grid textarea {
  min-height: 76px;
  resize: vertical;
}

.crm-list-editor input:disabled,
.crm-list-editor select:disabled {
  background: #f1f0ea;
  color: #5f645c;
  cursor: default;
}

.journey-planning-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  border: 1px solid #dedacb;
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.journey-planning-toggle:hover {
  border-color: #bdb7a8;
}

.journey-planning-toggle.is-selected {
  border-color: #87aa93;
  background: #eef6ef;
  box-shadow: 0 0 0 3px rgba(135, 170, 147, 0.12);
}

.journey-planning-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #1f3d32;
}

.journey-planning-toggle span {
  color: #2b302a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.crm-table tr.is-planning-inactive select,
.crm-table tr.is-planning-inactive input[type="text"],
.crm-table tr.is-planning-inactive input:not([type="checkbox"]) {
  background: #f1f0ea;
  color: #5f645c;
  cursor: default;
}

.crm-table tr.is-planning-inactive td {
  color: #6b6f68;
}

.crm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.crm-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
}

.crm-table th,
.crm-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #ece9df;
  text-align: left;
  vertical-align: top;
}

.crm-table th {
  color: #5a6058;
  background: #faf9f4;
  font-size: 12px;
  font-weight: 800;
}

.crm-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef4e8;
  color: #284f35;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.crm-form {
  display: grid;
  gap: 12px;
}

.crm-form-head,
.crm-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.crm-form-section {
  padding: 14px;
}

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

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

.crm-check-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fbfaf6;
  padding: 10px;
  color: #2b302a;
  font-size: 13px;
  line-height: 1.35;
}

.crm-check-grid input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.crm-behaviour-groups,
.crm-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.crm-behaviour-groups.selectable {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 8px;
}

.crm-behaviour-card,
.crm-mini-grid article {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fbfaf6;
  padding: 12px;
  overflow: visible;
}

.crm-behaviour-groups.selectable .crm-behaviour-card {
  padding: 9px 10px;
}

.crm-behaviour-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.crm-behaviour-groups.selectable .crm-behaviour-card h3 {
  margin-bottom: 5px;
  font-size: 14px;
}

.crm-behaviour-card article,
.crm-behaviour-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 0;
  border-top: 1px solid #eeeae0;
  white-space: normal;
}

.crm-behaviour-groups.selectable .crm-behaviour-option {
  gap: 7px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.25;
}

.crm-behaviour-groups.selectable .crm-behaviour-option {
  border: 1px solid #e2dfd4;
  border-radius: 8px;
  margin: 4px 0;
  padding: 7px 8px;
  background: #fff;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.crm-behaviour-groups.selectable .crm-behaviour-option.is-selected {
  border-color: #87aa93;
  background: #eef6ef;
  color: #173c2f;
}

.crm-behaviour-groups.selectable .crm-behaviour-option input {
  width: 16px;
  height: 16px;
  accent-color: #1f3d32;
}

.crm-counter {
  margin: 6px 0 0;
  color: #1f3d32;
  font-size: 12px;
  font-weight: 800;
}

.crm-behaviour-card article > .crm-actions {
  justify-content: flex-start;
}

.crm-behaviour-card article:first-of-type,
.crm-behaviour-option:first-of-type {
  border-top: 0;
}

.crm-behaviour-card strong,
.crm-behaviour-card p,
.crm-behaviour-card span,
.crm-behaviour-option span,
.crm-mini-grid strong,
.crm-mini-grid span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.crm-behaviour-card p {
  margin: 3px 0 0;
  color: #6a6d65;
  font-size: 12px;
}

.crm-behaviour-option {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: pointer;
}

.crm-behaviour-option input {
  margin: 2px 0 0;
}

.crm-mini-grid article {
  display: grid;
  gap: 5px;
}

.crm-mini-grid span {
  color: #565c54;
  font-size: 13px;
  line-height: 1.45;
}

.crm-mini-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0;
}

.crm-mini-grid.compact article {
  padding: 9px;
}

.crm-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
}

.crm-board-block {
  min-width: 0;
}

.crm-board-block h4 {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.25;
}

.crm-board-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fbfaf6;
}

.crm-board-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0;
  min-width: 620px;
  border-top: 1px solid #ece9df;
}

.crm-board-row:first-child {
  border-top: 0;
}

.crm-board-row.head {
  background: #f2f1ea;
  color: #565c54;
  font-size: 12px;
  font-weight: 800;
}

.crm-board-row span {
  min-width: 0;
  padding: 8px 9px;
  border-left: 1px solid #ece9df;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.crm-board-row span:first-child {
  border-left: 0;
}

.crm-board-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7d4ca;
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
}

.crm-board-block:nth-child(4) .crm-board-row {
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(90px, 0.6fr);
}

.crm-warning {
    margin: 10px 0 0;
    border: 1px solid #ead8b8;
  border-radius: 8px;
  background: #fff8ea;
  color: #76501e;
  padding: 9px 10px;
    font-size: 13px;
  }

.crm-code-block {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid #ddd7ca;
  border-radius: 12px;
  background: #f7f4ed;
  color: #1f2a23;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.crm-empty-state {
    margin-bottom: 16px;
    border: 1px dashed #cfd4c9;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    color: #343b35;
  }

.crm-empty-state h2 {
    margin: 0 0 6px;
    font-size: 20px;
  }

.crm-empty-state p {
    margin: 0;
    color: #666d64;
  }

.nps-selector {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.nps-selector-head {
  display: grid;
  gap: 2px;
}

.nps-selector-head strong {
  color: #1f2a23;
  font-size: 15px;
}

.nps-selector-head span {
  color: #687066;
  font-size: 13px;
}

.nps-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.nps-button-grid button {
  min-height: 56px;
  border: 1px solid #cfd4c9;
  border-radius: 12px;
  background: #fff;
  color: #29332d;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 1px 2px rgba(31, 61, 50, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.nps-button-grid button.selected {
  border-color: #1f3d32;
  background: #1f3d32;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(31, 61, 50, 0.18);
  transform: translateY(-1px);
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  min-height: 180px;
  align-items: end;
}

.trend-chart article {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trend-chart article div {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 150px;
  border-bottom: 1px solid #d9d5c9;
}

.trend-chart i,
.trend-chart b,
.trend-chart em,
.trend-chart .trend-empty {
  flex: 1;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
}

.trend-chart i { background: #2f6f4f; }
.trend-chart b { background: #9aa49a; }
.trend-chart em { background: #1f2a23; }
.trend-chart .trend-empty {
  background: repeating-linear-gradient(
    45deg,
    #e6e2d7,
    #e6e2d7 4px,
    #f4f1ea 4px,
    #f4f1ea 8px
  );
  opacity: 0.7;
}

.trend-chart small {
  color: #687066;
  font-size: 12px;
  line-height: 1.25;
}

.trend-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.trend-insight-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.trend-insight-card {
  border: 1px solid #dfddd3;
  border-radius: 12px;
  background: #fcfbf6;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(42, 48, 38, 0.05);
}

.trend-insight-card > span {
  display: block;
  color: #696d64;
  font-size: 12px;
  margin-bottom: 10px;
}

.trend-prediction-card {
  margin-top: 16px;
}

.crm-print-sheet .printable-area {
  background: #fff;
}

@media print {
  .crm-sidebar,
  .no-print,
  .crm-actions,
  button {
    display: none !important;
  }

  .crm-shell {
    display: block;
  }

  .crm-main {
    padding: 0;
  }

  .printable-area {
    border: 0;
    box-shadow: none;
  }
}

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

.crm-result-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.4fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fbfaf6;
  padding: 10px;
  box-sizing: border-box;
}

.crm-result-list article > *,
.crm-result-list strong,
.crm-result-list p {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crm-result-list p {
  margin: 3px 0 0;
  color: #6a6d65;
  font-size: 12px;
}

.crm-result-list label,
.crm-behaviour-card label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #555a51;
  font-size: 12px;
  font-weight: 700;
}

.crm-result-list select,
.crm-result-list input,
.crm-behaviour-card select,
.crm-behaviour-card input[type="text"],
.crm-behaviour-card input:not([type]) {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7d4ca;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  box-sizing: border-box;
  color: #1f241f;
  font: inherit;
  font-size: 14px;
}

.crm-list-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fbfaf6;
}

.crm-list-editor article {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fbfaf6;
}

.crm-list-editor article:has(label:nth-of-type(5)) {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.crm-detail-panel {
  padding: 14px;
  align-self: start;
}

.crm-detail-panel dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 12px 0;
  font-size: 13px;
}

.crm-detail-panel dt {
  color: #686d65;
  font-weight: 700;
}

.crm-detail-panel dd {
  margin: 0;
}

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

  .crm-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .crm-sidebar-scroll {
    overflow: visible;
  }

  .crm-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .crm-nav-button,
  .crm-shell .crm-sidebar nav button {
    width: auto;
    white-space: nowrap;
  }

  .crm-main {
    padding: 14px;
  }

  .crm-kpi-grid,
  .crm-module-grid,
  .crm-pattern-grid,
  .trend-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .crm-shell {
    gap: 0;
  }

  .crm-login-shell {
    align-content: start;
    padding: 24px 14px;
  }

  .crm-login-head img {
    width: min(150px, 58vw);
  }

  .crm-login-card {
    padding: 18px;
  }

  .crm-login-card .button.primary {
    justify-self: stretch;
    width: 100%;
  }

  .crm-brand {
    align-items: flex-start;
  }

  .crm-brand img,
  .sidebar-logo {
    max-width: 132px;
  }

  .crm-sidebar {
    padding: 10px;
  }

  .crm-sidebar-logout {
    margin-top: 10px;
    padding-top: 10px;
  }

  .crm-session-card {
    padding: 12px;
  }

  .crm-page-head,
  .crm-section-title,
  .crm-form-head,
  .crm-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .crm-page-head h1,
  .crm-page-head h2 {
    font-size: 22px;
  }

  .crm-main {
    padding: 12px;
  }

  .crm-kpi-grid,
  .crm-module-grid,
  .crm-pattern-grid,
  .crm-login-grid,
  .crm-filter-grid,
  .trend-filter-grid,
  .trend-insight-grid,
  .crm-field-grid,
  .crm-field-grid.three,
  .crm-check-grid,
  .crm-behaviour-groups,
  .crm-behaviour-groups.selectable,
  .crm-mini-grid,
  .crm-mini-grid.compact,
  .crm-result-list article,
  .crm-list-row,
  .crm-list-editor article,
  .crm-list-editor article:has(label:nth-of-type(5)) {
    grid-template-columns: 1fr;
  }

  .crm-detail-panel dl {
    grid-template-columns: 1fr;
  }

  .crm-kpi-grid article,
  .crm-card,
  .crm-form-section,
  .crm-detail-panel {
    padding: 12px;
  }

  .crm-kpi-grid article span,
  .crm-kpi-label,
  .crm-muted,
  .trend-insight-card > span {
    font-size: 13px;
  }

  .crm-kpi-grid article strong,
  .crm-kpi-value {
    font-size: 24px;
  }

  .crm-table {
    min-width: 760px;
  }

  .crm-journey-actions-row td {
    padding-top: 5px;
    padding-bottom: 8px;
  }

  .crm-journey-actions-bar {
    gap: 7px;
  }

  .crm-journey-actions-bar button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .nps-button-grid {
    grid-template-columns: repeat(6, minmax(44px, 1fr));
    gap: 8px;
  }

  .nps-button-grid button {
    min-height: 52px;
    font-size: 15px;
  }

  .trend-chart {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .crm-sidebar nav {
    gap: 5px;
    padding-top: 10px;
  }

  .crm-shell .crm-sidebar nav button,
  .crm-sidebar-logout button,
  .crm-session-card button {
    min-height: 40px;
  }

  .crm-page-head h1,
  .crm-page-head h2 {
    font-size: 20px;
  }

  .crm-main {
    padding: 10px;
  }

  .crm-table {
    min-width: 700px;
  }

  .nps-selector-head strong {
    font-size: 16px;
  }

  .nps-selector-head span {
    font-size: 12px;
  }

  .nps-button-grid {
    gap: 7px;
  }

  .nps-button-grid button {
    min-height: 50px;
    border-radius: 10px;
    font-size: 14px;
  }

  .trend-chart small {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    position: relative;
  }

  .crm-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .crm-sidebar,
  .crm-sidebar-scroll,
  .crm-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .crm-sidebar nav {
    width: 100%;
    max-width: 100%;
  }

  .crm-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}
