﻿/*
  SINGLE STYLE PATH (READ BEFORE EDITING)
  ---------------------------------------
  This file is the canonical stylesheet for app + marketing UI.
  Do NOT create parallel style paths.

  Hard rules:
  1) REUSE existing components first.
  2) EXTEND existing components second (only reusable variants).
  3) COMPOSE from existing primitives third.
  4) NEW styles/components only as last resort, and must be reusable.

  Forbidden:
  - Adding new global/broad selectors for page fixes.
  - Adding one-off button/card/header/CTA styles in templates.
  - Reintroducing legacy stylesheets or duplicate component paths.
  - Patching structural issues with random page-level overrides.

  If touching a section:
  - Remove dead/duplicate rules in the same change.
  - Prefer deleting old paths over keeping coexistence.
  - Keep the system simpler than before.
*/
:root {
  --space-1: 8px;
  --space-2: 16px;
  --ui-radius-sm: 8px;
  --ui-radius-md: 10px;
  --ui-radius-lg: 12px;
  --ui-border: #e6ebf2;
  --ui-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --ui-surface-bg: #ffffff;
  --ui-surface-bg-soft: #fcfcfd;
  --ui-surface-bg-muted: #f8fafc;
  --ui-surface-bg-info: #f8fbff;
  --ui-surface-bg-good: #f3fbf6;
  --ui-surface-bg-watch: #fffaf0;
  --ui-surface-bg-danger: #fff5f5;
  --ui-surface-bg-neutral: #f8fafc;
  --doc-accent: #1f4e79;
  --doc-on-accent: #ffffff;
  --doc-font: "Noto Sans", sans-serif;
  --template-accent: #1f4e79;
  /* Nav tokens (light default). */
  --ui-nav-bg: #ffffff;
  --ui-nav-fg: #0f172a;
  --ui-nav-muted: #64748b;
  --ui-nav-link-fg: #0f172a;
  --ui-nav-link-hover-bg: #e2e8f0;
  --ui-nav-link-hover-fg: #0f172a;
  --ui-nav-link-active-bg: #dbeafe;
  --ui-nav-link-active-fg: #0f172a;
  --ui-nav-control-bg: #ffffff;
  --ui-nav-control-border: #cbd5e1;
  --ui-nav-control-hover-bg: #f8fafc;
  --ui-nav-company-bg: #f1f5f9;
  --ui-nav-company-border: #e2e8f0;
  --ui-nav-company-fg: #334155;
  --ui-nav-toggle-border: #cbd5e1;
  --ui-nav-toggle-line: #334155;
}

/* Future dark mode hook: set data-theme="dark" on html/body. */
[data-theme="dark"] {
  --ui-nav-bg: #1f2937;
  --ui-nav-fg: #ffffff;
  --ui-nav-muted: #cbd5e1;
  --ui-nav-link-fg: rgba(255, 255, 255, 0.86);
  --ui-nav-link-hover-bg: rgba(255, 255, 255, 0.12);
  --ui-nav-link-hover-fg: #ffffff;
  --ui-nav-link-active-bg: rgba(255, 255, 255, 0.16);
  --ui-nav-link-active-fg: #ffffff;
  --ui-nav-control-bg: rgba(15, 23, 42, 0.22);
  --ui-nav-control-border: rgba(255, 255, 255, 0.25);
  --ui-nav-control-hover-bg: rgba(255, 255, 255, 0.12);
  --ui-nav-company-bg: rgba(255, 255, 255, 0.14);
  --ui-nav-company-border: rgba(255, 255, 255, 0.2);
  --ui-nav-company-fg: #ffffff;
  --ui-nav-toggle-border: rgba(255, 255, 255, 0.45);
  --ui-nav-toggle-line: #ffffff;
}

.app-root .navbar {
  background-color: var(--ui-nav-bg);
  color: var(--ui-nav-fg);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.app-root .navbar-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.app-root .navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 40px;
  min-width: 0;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .app-root .navbar-brand-wrap {
    flex: 1 1 auto;
  }

  .app-root .navbar-company-context {
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.app-root .navbar h1 {
  font-size: 1.5rem;
}
.app-root .navbar h1 a {
  color: var(--ui-nav-fg);
  text-decoration: none;
}
.app-root .navbar-company-context {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ui-nav-company-bg);
  color: var(--ui-nav-fg);
  border: 1px solid var(--ui-nav-company-border);
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-root .navbar-brand-wrap h1 {
  margin: 0;
}
.app-root .navbar-menu {
  list-style: none;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  min-width: 0;
  margin-left: auto;
}
.app-root .navbar-menu li {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
}

.app-root .navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: 0.55rem;
  min-width: 0;
}
.app-root .account-menu {
  align-self: center;
  margin-left: 0;
}
.app-root .navbar-menu > li > a:not(.app-nav-link) {
  color: var(--ui-nav-link-fg);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  transition:
    opacity 0.3s,
    background-color 0.2s;
  border-bottom: none;
}
.app-root .navbar-menu > li > a:not(.app-nav-link):hover {
  opacity: 1;
  background-color: var(--ui-nav-link-hover-bg);
  color: var(--ui-nav-link-hover-fg);
}
.app-root .navbar-menu-public {
  gap: 1rem;
}
.app-root .navbar-cta-link {
  background: #1d4ed8;
  color: #fff !important;
}
.app-root .navbar-cta-link:hover {
  background: #1e40af;
}
.app-root .navbar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ui-nav-toggle-border);
  border-radius: 6px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}
.app-root .navbar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ui-nav-toggle-line);
}

@media (max-width: 1540px) {
  .app-root .navbar-container {
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .app-root .navbar-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .app-root .navbar-menu {
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: var(--space-1);
    margin-top: 0.25rem;
  }

  .app-root .navbar-menu li {
    width: 100%;
    min-width: 0;
  }

  .app-root .navbar-menu a,
  .app-root .navbar-menu .app-nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .app-root .navbar-menu .app-nav-link.is-active,
  .app-root .navbar-menu > li > a:not(.app-nav-link).is-active {
    background: var(--ui-nav-link-active-bg);
    color: var(--ui-nav-link-active-fg);
    box-shadow: inset 3px 0 0
      color-mix(in srgb, var(--ui-nav-link-active-fg) 82%, transparent);
  }

  .app-root .navbar-container.menu-open .navbar-menu,
  .app-root .navbar-container.menu-open .navbar-menu-public {
    display: grid;
  }

  .app-root .navbar-controls {
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .app-root .navbar-container.menu-open .navbar-controls {
    display: grid;
  }

  .app-root .account-menu {
    width: 100%;
  }

  .app-root .locale-nav-item,
  .app-root .locale-nav {
    width: 100%;
    margin-left: 0;
  }

  .app-root .account-menu-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .app-root .account-dropdown {
    position: static;
    margin-top: 0.35rem;
    width: 100%;
    box-shadow: none;
  }

  .app-root .locale-nav {
    margin-left: 0;
  }
}
.app-root main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: calc(100vh - 200px);
}
.app-root main:has(> .app-page-shell--workspace) {
  max-width: 1480px;
}
.app-root main > .app-page-shell:first-child,
.app-root main > section.app-page-shell:first-child {
  margin-top: 0.25rem;
}
.app-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: var(--space-1);
  z-index: 2600;
  pointer-events: none;
}
.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}
.dashboard-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-1);
}
.dashboard-action-list {
  display: grid;
  gap: var(--space-1);
}
.dashboard-action-more {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-1);
}
.dashboard-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}
.customer-mobile-head {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2);
  border-bottom: 1px solid #e2e8f0;
  background: var(--ui-surface-bg-soft);
}
.customer-mobile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.customer-mobile-details-grid {
  display: grid;
  gap: var(--space-1);
  padding: 0 var(--space-2) var(--space-2);
}
.global-app-footer {
  margin: 1rem auto 1.4rem;
  max-width: 1240px;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-end;
}
.global-app-footer-public {
  max-width: 920px;
  padding: 0;
  margin-top: 1rem;
}
.quote-card-list {
  display: grid;
  gap: var(--space-1);
}
.quote-card-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.quote-card-meta {
  margin-top: var(--space-2);
  display: grid;
  gap: var(--space-1);
  justify-items: start;
}
.quote-card-diff {
  margin-top: var(--space-2);
  display: grid;
  flex-wrap: wrap;
  gap: var(--space-1);
  color: #475569;
  font-size: 0.92rem;
  justify-items: start;
} /* Details sections */
.customer-task-list {
  display: grid;
  gap: var(--space-1);
}
.customer-timeline-list {
  display: grid;
  gap: var(--space-1);
}
.customer-timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: var(--space-1);
  align-items: start;
}
.customer-timeline-more {
  display: grid;
  gap: var(--space-1);
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.quote-queue-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  gap: var(--space-1);
  align-items: center;
}
.quote-signal-strip {
  margin: 0.75rem 0 0.95rem;
  padding: 0.54rem 0.68rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.52rem;
}
.quote-signal-item {
  display: grid;
  gap: 0.12rem;
}
.quote-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.quote-engagement-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.7rem;
  margin-top: 0.28rem;
  padding: 0.5rem 0.6rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.quote-engagement-details-grid p {
  margin: 0;
  font-size: 0.85rem;
  color: #334155;
}
.quote-section-block {
  margin-top: 1rem;
  border-top: 1px solid #edf2f7;
  padding-top: 0.75rem;
}
.quote-section-block h3 {
  margin: 0 0 0.5rem 0;
}
.quote-section-block p {
  margin-bottom: 0.35rem;
}
.quote-edit-shell {
  display: grid;
  gap: 1rem;
}
.quote-edit-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0.7rem;
}
.quote-form-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.quote-form-section h3 {
  margin: 0 0 0.75rem 0;
}
.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.75rem;
}
.quote-form-grid-span-2 {
  grid-column: 1 / -1;
}
.quote-form-section-totals {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
} /* Actions section */
@media (max-width: 480px) {
  .app-root .navbar-menu {
    grid-template-columns: 1fr;
  }

  .customer-mobile-metrics {
    grid-template-columns: 1fr;
  }

  .customer-mobile-metric:nth-child(odd) {
    border-right: none;
  }
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2);
}
.template-card,
.template-editor-section,
.template-live-pane,
.template-form-footer,
.template-identity-row {
  border: 1px solid #dbe3ee;
  border-radius: var(--ui-radius-lg);
  background: #fff;
  box-shadow: var(--ui-shadow);
}
.template-card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.template-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.template-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}
.template-sub {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}
.template-default-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.6rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
}
.template-meta-compact {
  display: grid;
  gap: 0.2rem;
}
.template-meta {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
}
.template-color-dot {
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  margin: 0 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
}
.template-usage-row {
  display: flex;
  align-items: center;
}
.template-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.template-actions .button_to {
  margin: 0;
}
.template-preview-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.65rem;
}
.template-preview-card .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.template-preview-card .preview-table {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.82rem;
}
.template-preview-card .preview-total {
  margin-top: 0.55rem;
  text-align: right;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}
.template-identity-row {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.75rem;
}
.template-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 1rem;
  align-items: start;
}
.template-editor-sections {
  display: grid;
  gap: 1rem;
}
.template-editor-section {
  padding: 1rem;
}
.template-editor-section header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.02rem;
}
.template-editor-section header p {
  margin: 0.3rem 0 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}
.template-editor-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.template-editor-summary strong {
  color: #0f172a;
}
.template-editor-summary span {
  color: #64748b;
  font-size: 0.86rem;
}
.template-editor-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}
.template-editor-form input[type="text"],
.template-editor-form input[type="number"],
.template-editor-form input[type="color"],
.template-editor-form select,
.template-editor-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--ui-radius-md);
  background: #fff;
  color: #0f172a;
  font-size: 0.93rem;
}
.template-editor-form textarea {
  min-height: 86px;
}
.template-editor-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}
.template-toggle-grid label {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.48rem 0.6rem;
}
.template-live-pane {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.template-live-pane-header h3 {
  margin: 0;
}
.template-live-pane-header p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}
.template-live-pane-tools {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
}
.template-preview-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
}
.template-preview-status.is-dirty {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}
.template-preview-scenario {
  display: grid;
  gap: 0.35rem;
}
.template-preview-scenario label {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
}
.template-preview-scenario select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  background: #fff;
}
.template-preview-viewport-switch {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.template-preview-viewport-switch button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  min-height: 30px;
  padding: 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
}
.template-preview-viewport-switch button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.template-preview-large {
  position: relative;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.85rem;
  color: #0f172a;
  line-height: 1.35;
  overflow: hidden;
}
.template-preview-large.quote-watermarked::after {
  content: attr(data-watermark);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(15, 23, 42, var(--quote-watermark-opacity, 0.12));
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  transform: rotate(-18deg);
  z-index: 1;
}
.quote-watermark-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: var(--quote-watermark-opacity, 0.12);
  pointer-events: none;
  z-index: 1;
}
.template-preview-large > * {
  position: relative;
  z-index: 2;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.preview-header span {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}
.preview-header strong {
  color: var(--template-accent, #1f4e79);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.preview-header-left {
  justify-content: flex-start;
}
.preview-header-left strong {
  margin-left: auto;
}
.preview-header-center {
  flex-direction: column;
  align-items: center;
}
.preview-body-rich {
  min-height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.preview-density-compact {
  min-height: 24px;
}
.preview-density-standard {
  min-height: 34px;
}
.preview-density-spacious {
  min-height: 44px;
}
.preview-doc-meta {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.25rem;
}
.preview-doc-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.84rem;
}
.preview-doc-meta strong {
  color: #0f172a;
}
.preview-table-rich {
  margin-top: 0.6rem;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  overflow: hidden;
}
.preview-table-head,
.preview-table-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr) minmax(56px, 0.35fr) minmax(84px, 0.5fr)
    minmax(88px, 0.55fr);
  gap: 0.45rem;
  align-items: start;
}
.preview-table-head {
  padding: 0.42rem 0.5rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.preview-table-row {
  padding: 0.5rem;
  border-top: 1px solid #eef2f7;
  color: #1e293b;
  font-size: 0.82rem;
}
.preview-item-extra {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  margin-top: 0.2rem;
}
.preview-item-content {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.preview-item-media {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  background: var(--ui-surface-bg-muted);
}
.preview-summary {
  margin-top: 0.65rem;
  margin-left: auto;
  max-width: 240px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.45rem 0.55rem;
}
.preview-summary p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.82rem;
}
.preview-summary p + p {
  margin-top: 0.22rem;
}
.preview-summary .preview-total {
  padding-top: 0.3rem;
  border-top: 1px solid #dbe3ee;
  color: #0f172a;
  font-weight: 700;
}
.preview-meta,
.preview-terms {
  margin-top: 0.55rem;
}
.preview-meta p,
.preview-terms {
  color: #334155;
  font-size: 0.82rem;
}
.preview-meta p {
  margin: 0.15rem 0;
}
.preview-footer-note,
.preview-saas-footnote,
.template-preview-contrast-note {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}
.template-preview-contrast-note {
  color: #9a3412;
}
.template-preview-classic {
  border-left: 3px solid var(--template-accent, #1f4e79);
}
.template-preview-modern {
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
}
.template-preview-modern .preview-table-head {
  background: color-mix(in srgb, var(--template-accent, #1f4e79) 10%, white);
}
.template-preview-industry {
  border-width: 2px;
  border-color: color-mix(
    in srgb,
    var(--template-accent, #1f4e79) 45%,
    #cbd5e1
  );
  background: #ffffff;
}
.template-preview-industry .preview-table-head {
  background: color-mix(in srgb, var(--template-accent, #1f4e79) 18%, #f8fafc);
}
.template-preview-industry .preview-summary {
  border-width: 2px;
}
.template-preview-viewport-tablet {
  max-width: 640px;
}
.template-preview-viewport-mobile {
  max-width: 360px;
}
.template-preview-viewport-mobile .preview-table-head,
.template-preview-viewport-mobile .preview-table-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.template-preview-viewport-mobile .preview-table-head span:nth-child(3),
.template-preview-viewport-mobile .preview-table-head span:nth-child(4),
.template-preview-viewport-mobile .preview-table-row span:nth-child(3),
.template-preview-viewport-mobile .preview-table-row span:nth-child(4) {
  display: none;
}
.template-form-footer {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.template-form-footer .actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.template-span-2 {
  grid-column: 1 / -1;
}
.template-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: var(--space-1);
}
.template-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: var(--space-1);
}
.template-toggle-grid label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: 0;
}
.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}
@media (max-width: 768px) {
  .template-identity-row {
    grid-template-columns: 1fr;
  }

  .template-editor-layout {
    grid-template-columns: 1fr;
  }

  .template-live-pane {
    position: static;
  }

  .template-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .quote-template-picker {
    width: 100%;
  }

  .quote-template-picker select,
  .quote-template-picker input[type="submit"] {
    width: 100%;
  }
}
.quote-toolbar-export-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  z-index: 50;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  padding: 0.45rem;
  display: grid;
  gap: 0.35rem;
}
@media (max-width: 768px) {
  .quote-toolbar-left,
  .quote-toolbar-right,
  .quote-toolbar-right-secondary,
  .quote-toolbar-right-primary {
    width: 100%;
  }

  .quote-toolbar-right-secondary,
  .quote-toolbar-right-primary {
    justify-content: flex-start;
  }

  .quote-template-picker {
    width: 100%;
  }

  .quote-template-picker select {
    width: 100%;
  }

  .quote-btn,
  .quote-toolbar .button_to {
    width: 100%;
  }

  .share-link-group {
    width: 100%;
  }

  .share-link-panel {
    left: 0;
    right: 0;
    max-width: none;
  }

  .quote-signal-strip {
    grid-template-columns: 1fr;
  }
}
.public-quote-themed .quote-section-block h3 {
  color: var(--doc-accent, #1f4e79);
}
.public-layout-modern .quote-doc-table,
.public-layout-modern .quote-doc-table td,
.public-layout-modern .quote-doc-table th {
  border-color: #e5eaf0;
}
.public-layout-industry {
  border-width: 2px;
}
.public-layout-industry .quote-doc-table thead {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.public-layout-classic .quote-doc-header {
  border-bottom-width: 1px;
}
@media print {
  body.public-quote-body {
    background: #fff !important;
    color: #111827;
  }

  .public-quote-document {
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0.8rem;
  }

  .public-quote-document .quote-doc-table thead {
    background: #f3f4f6 !important;
    color: #111827 !important;
  }

  .public-quote-document .quote-meta-card,
  .public-quote-document .quote-total-box,
  .public-quote-document .quote-section-block {
    background: #fff !important;
    border: 1px solid #e5e7eb;
  }

  .public-quote-document .quote-total-grand {
    color: #111827 !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db;
  }
}
.demo-layout {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.75rem;
}
.product-gallery-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-1);
}
.product-gallery-item {
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem;
  display: grid;
  gap: 0.5rem;
}
.product-upload-preview {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-1);
  max-width: 520px;
}
.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.settings-section-title {
  grid-column: 1 / -1;
  margin-top: 0.7rem;
  margin-bottom: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.settings-grid-span-2 {
  grid-column: 1 / -1;
}
.company-logo-actions {
  display: grid;
  gap: var(--space-1);
}
.company-logo-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.company-logo-preview {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.company-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-logo-preview-trigger {
  cursor: pointer;
}
.company-logo-file-input {
  display: none;
}
.settings-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
}
.settings-checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}
.account-avatar-actions {
  display: grid;
  gap: 0.35rem;
}
.account-avatar-preview-trigger {
  cursor: pointer;
}
.account-avatar-file-input {
  display: none;
}
@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {
  .dashboard-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .team-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .dashboard-kpi-card {
    padding: 0.62rem 0.68rem;
  }

  .dashboard-kpi-card strong {
    font-size: 1.18rem;
  }

  .dashboard-kpi-head span {
    font-size: 0.78rem;
  }

  .dashboard-kpi-trend {
    font-size: 0.72rem;
  }

  .dashboard-recent-table {
    min-width: 0;
    border: none;
  }

  .dashboard-panel .table-responsive {
    overflow-x: visible;
  }

  .dashboard-panel .table-responsive table.dashboard-recent-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
  }

  .dashboard-recent-table thead {
    display: none;
  }

  .dashboard-recent-table,
  .dashboard-recent-table tbody,
  .dashboard-recent-table tr {
    display: block;
    width: 100%;
  }

  .dashboard-recent-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "quote total"
      "buyer status"
      "engage action";
    gap: 0.28rem 0.55rem;
    padding: 0.52rem 0.58rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.48rem;
    background: #fff;
  }

  .dashboard-recent-table td {
    border: none;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-recent-table td:nth-child(1) {
    grid-area: quote;
    font-weight: 700;
  }

  .dashboard-recent-table td:nth-child(2) {
    grid-area: buyer;
    color: #334155;
  }

  .dashboard-recent-table td:nth-child(3) {
    grid-area: status;
    justify-self: end;
  }

  .dashboard-recent-table td:nth-child(4) {
    grid-area: engage;
    justify-self: start;
  }

  .dashboard-recent-table td:nth-child(5) {
    grid-area: action;
    justify-self: end;
  }

  .dashboard-recent-table td:nth-child(6) {
    grid-area: total;
    justify-self: end;
    font-weight: 700;
    color: #0f172a;
  }

  .dashboard-recent-table tbody tr:nth-child(n + 5) {
    display: none;
  }

  .dashboard-panel {
    padding: 0.7rem 0.72rem;
  }

  .dashboard-overview-list li {
    padding: 0.52rem 0.06rem;
  }

  .dashboard-overview-value {
    font-size: 1rem;
    margin-top: 0.24rem;
  }

  .quote-document .quote-items-table,
  .public-quote-document .quote-items-table {
    min-width: 0;
  }

  .quote-item-image {
    width: 44px;
    height: 44px;
  }

  .sales-dashboard .app-ui-button,
  .sales-dashboard .dashboard-next-step-btn {
    max-width: 100%;
    white-space: normal;
    flex-wrap: wrap;
  }

  .sales-dashboard .app-ui-button kbd.app-shortcut-badge {
    white-space: nowrap;
  }
} /* Unified card baseline for core app containers */
.dashboard-panel,
.quote-document,
.team-members-panel,
.settings-header-card,
.quote-form-section,
.customer-task-board,
.customer-timeline {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
}
.dashboard-panel,
.quote-document,
.quote-form-section,
.team-members-panel,
.settings-header-card {
  border-radius: var(--ui-radius-lg);
  border-color: var(--ui-border);
}

/*
  Shared app component layer.
  Add new reusable buttons, cards, tables, badges, nav, and form patterns here.
  Do not duplicate these rules in legacy_ui.css or legacy_landing.css.
  If a component exists both here and in a legacy file, migrate callers here and remove the legacy rule.
*/

.account-menu {
  position: relative;
}
.app-root .account-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
  border: 1px solid var(--ui-nav-control-border);
  border-radius: 8px;
  background: var(--ui-nav-control-bg);
  color: var(--ui-nav-fg);
  font-size: 0.92rem;
  font-weight: 600;
  width: auto;
  min-width: 44px;
  max-width: 112px;
  padding: 0.34rem 0.56rem;
  cursor: pointer;
  flex-shrink: 1;
}
.app-root .account-menu-trigger > span:nth-child(2) {
  white-space: nowrap;
}
.app-root .account-menu-trigger:hover {
  background: var(--ui-nav-control-hover-bg);
}
.app-root .account-menu-trigger.is-active,
.app-root .account-menu.is-open .account-menu-trigger {
  background: var(--ui-nav-link-hover-bg);
  border-color: var(--ui-nav-control-border);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--ui-nav-control-border) 35%, transparent);
}
.account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 0.76rem;
  font-weight: 700;
  overflow: hidden;
}
.account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1500;
}

.app-dropdown-panel {
  min-width: 200px;
  padding: 0.35rem;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.app-dropdown-link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: #334155;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: none;
}

.app-dropdown-link:hover {
  background: #f1f5f9;
}

.app-dropdown-group-label {
  margin: 0.4rem 0.5rem 0.25rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.account-notice-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 5px;
}
.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--ui-nav-link-fg);
  text-decoration: none;
  border-bottom: none;
  font-weight: 600;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.app-nav-link:hover {
  background: var(--ui-nav-link-hover-bg);
  color: var(--ui-nav-link-hover-fg);
}
.app-nav-link.is-active {
  background: var(--ui-nav-link-active-bg);
  color: var(--ui-nav-link-active-fg);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--ui-nav-link-active-fg) 16%, transparent);
}
.app-root .app-nav-link-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.app-nav-link-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.app-nav-link-label {
  line-height: 1;
  white-space: nowrap;
}

.nav-group {
  position: relative;
}

.nav-group-details {
  position: relative;
}

.nav-group-trigger {
  cursor: pointer;
  list-style: none;
}

.nav-group-trigger::-webkit-details-marker {
  display: none;
}

.nav-group-caret {
  font-size: 0.72rem;
  opacity: 0.85;
  transition: transform 0.16s ease;
}

.nav-group-details[open] .nav-group-caret {
  transform: rotate(180deg);
}

.nav-group-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  z-index: 1500;
}

.nav-group-link {
  color: #334155;
}

.nav-group-link:hover {
  background: #f1f5f9;
}

.nav-group-link.is-active {
  background: #e2e8f0;
  color: #0f172a;
}

.app-breadcrumb {
  margin-bottom: 0.7rem;
}

.app-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.quote-engagement-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
}

.quote-engagement-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dbe3ee;
}

.quote-engagement-panel__title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.quote-engagement-panel__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  padding-top: 0.9rem;
}

.quote-engagement-panel__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-engagement-panel__label {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.quote-engagement-panel__value {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.app-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.app-breadcrumb-item + .app-breadcrumb-item::before {
  content: "/";
  margin-right: 0.38rem;
  color: #94a3b8;
}

.app-breadcrumb-link,
.app-breadcrumb-current {
  font-size: 0.82rem;
  font-weight: 600;
}

.app-breadcrumb-link {
  color: #475569;
  text-decoration: none;
}

.app-breadcrumb-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

.app-breadcrumb-current {
  color: #0f172a;
}
.app-root .locale-nav {
  margin-left: 0;
  padding-left: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 1200;
}
.app-root .locale-nav-item {
  display: flex;
  align-items: center;
  margin-left: 0;
}
.app-root .navbar-container > .locale-nav {
  margin-left: auto;
  padding-left: 0.4rem;
}

.locale-nav-dropdown {
  position: relative;
}
.app-root .locale-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  width: 82px;
  min-height: 34px;
  padding: 0.28rem 0.62rem 0.26rem;
  border: 1px solid var(--ui-nav-control-border);
  border-radius: 999px;
  background: var(--ui-nav-control-bg);
  color: var(--ui-nav-fg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.locale-nav-trigger::-webkit-details-marker {
  display: none;
}
.app-root .locale-nav-title {
  color: var(--ui-nav-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.locale-nav-current {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  min-width: 2.2em;
  text-align: center;
}

.locale-nav-meta {
  display: inline-grid;
  justify-items: center;
  gap: 0.08rem;
}

.locale-nav-caret {
  font-size: 0.74rem;
  opacity: 0.86;
  transition: transform 0.16s ease;
}

@media (max-width: 1520px) {
  .app-root .navbar-container {
    gap: 0.55rem;
  }
  .app-root .navbar-menu {
    gap: 0.25rem;
  }
  .app-root .navbar-menu .app-nav-link {
    padding: 0.44rem 0.56rem;
    font-size: 0.9rem;
  }
  .app-root .app-nav-link-icon {
    display: none;
  }
  .app-root .navbar-company-context {
    max-width: none;
  }
  .app-root .locale-nav {
    padding-left: 0.22rem;
  }
  .app-root .locale-nav-item {
    margin-left: 0.2rem;
  }
}

@media (max-width: 1380px) {
  .app-root .locale-nav-trigger {
    padding-inline: 0.52rem;
  }
  .app-root .account-menu-trigger {
    padding-inline: 0.48rem;
  }
}

@media (max-width: 1720px) and (min-width: 981px) {
  .app-root .locale-nav-title {
    display: none;
  }
  .app-root .locale-nav-trigger {
    padding-inline: 0.48rem;
  }
  .app-root .account-menu-trigger {
    padding-inline: 0.4rem;
    gap: 0.35rem;
  }
  .app-root .account-menu-trigger > span:nth-child(2) {
    display: none;
  }
}

.locale-nav-dropdown[open] .locale-nav-caret {
  transform: rotate(180deg);
}

.locale-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  max-width: min(280px, calc(100vw - 28px));
  max-height: 280px;
  overflow-y: auto;
  padding: 0.34rem;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
}

.locale-nav-link {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 0.68rem;
  border-radius: 8px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.locale-nav-menu .locale-nav-link {
  color: #334155;
}

.locale-nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.locale-nav-link.is-active {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 980px) {
  .app-root .locale-nav {
    margin-left: 0;
    margin-top: 0.35rem;
    width: 100%;
  }

  .locale-nav-dropdown,
  .app-root .locale-nav-trigger {
    width: 100%;
  }
  .app-root .locale-nav-trigger {
    justify-content: space-between;
  }

  .locale-nav-menu {
    left: 0;
    right: auto;
    width: 100%;
  }
}

@media (max-width: 1460px) {
  .nav-group,
  .nav-group-details {
    width: 100%;
  }

  .nav-group-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-group-menu {
    position: static;
    margin-top: 0.32rem;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.35);
    box-shadow: none;
  }

  .nav-group-link {
    color: rgba(255, 255, 255, 0.88);
  }

  .nav-group-link:hover,
  .nav-group-link.is-active {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
  }
}

/* ==========================================
   Notification Bell
   ========================================== */
.notification-bell-container {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-bell-dropdown {
  position: relative;
}

.notification-bell-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  list-style: none;
  font-size: 18px;
}

.notification-bell-trigger::-webkit-details-marker {
  display: none;
}
.notification-bell-trigger::marker {
  display: none;
}

.notification-bell-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

.notification-bell-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
}

.notification-bell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.notification-mark-all-btn {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.notification-mark-all-btn:hover {
  text-decoration: underline;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.is-unread {
  background: #eff6ff;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.notification-item-time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.notification-item-link {
  flex-shrink: 0;
  font-size: 14px;
  color: #6366f1;
  text-decoration: none;
}

.notification-item-link:hover {
  color: #4f46e5;
}

.notification-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 24px 14px;
  margin: 0;
}

/* ==========================================
   Engagement Score Badge
   ========================================== */
.engagement-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.engagement-badge.is-hot {
  background: #fef2f2;
  color: #dc2626;
}
.engagement-badge.is-warm {
  background: #fffbeb;
  color: #d97706;
}
.engagement-badge.is-cold {
  background: #f0f9ff;
  color: #0369a1;
}

/* Quote reminder verification modal */
.quote-reminder-verification,
.quote-reminder-form {
  display: contents;
}

.quote-turnstile-modal[hidden] {
  display: none;
}

.quote-turnstile-modal {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(15, 23, 42, 0.52);
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.quote-turnstile-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  border-radius: 22px;
  border: 1px solid #dbe4ef;
  background: var(--ui-surface-bg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 1.3rem 1.3rem 1.2rem;
}

.quote-turnstile-modal__dialog h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.quote-turnstile-modal__dialog p {
  margin: 0.4rem 0 0 0;
  color: #5b6b80;
  font-size: 0.9rem;
  line-height: 1.55;
}

.quote-turnstile-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.quote-turnstile-modal__loading,
.quote-turnstile-modal__widget,
.quote-turnstile-modal__success {
  margin-top: 1rem;
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
}

.quote-turnstile-modal__loading {
  color: #64748b;
  font-size: 0.9rem;
}

.quote-turnstile-modal__success {
  color: #0f766e;
  font-size: 0.92rem;
  font-weight: 600;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
}

.js-reason-options-open,
.quote-reason-option-add-btn,
.quote-reason-options-modal .js-reason-option-delete {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #cfd9e6 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #334155 !important;
  font-weight: 650;
  box-shadow: none !important;
}

.js-reason-options-open:hover,
.quote-reason-option-add-btn:hover,
.quote-reason-options-modal .js-reason-option-delete:hover {
  background: #ffffff !important;
  border-color: #aebfd4 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.quote-reason-options-grid {
  align-items: start;
}

.quote-reason-options-modal .sales-insight-dist-item {
  align-items: center;
  gap: 0.55rem;
}

.quote-reason-options-modal .quote-reason-field {
  margin-bottom: 0.55rem;
}

.quote-reason-options-modal .quote-reason-field input,
.quote-reason-options-modal .quote-reason-option-add-btn,
.quote-reason-options-modal .js-reason-option-delete {
  width: 100%;
}

@media (max-width: 900px) {
  .quote-reason-options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .quote-reason-options-modal .quote-reason-modal__dialog {
    width: min(100%, 620px);
    padding: 1.05rem 1rem 0.95rem;
  }
}

@media (max-width: 640px) {
  .quote-reason-options-modal {
    padding: 0.7rem;
    align-items: end;
  }

  .quote-reason-options-modal .quote-reason-modal__dialog {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 1rem 0.85rem 0.9rem;
  }

  .quote-reason-options-modal .sales-insight-dist-item {
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  .quote-reason-options-modal .sales-insight-dist-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .quote-reason-options-modal .js-reason-option-delete {
    justify-content: center;
  }
}

.app-empty-state {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: var(--ui-surface-bg-soft);
  padding: 1.35rem 1.4rem;
}
.app-empty-state-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.app-empty-state-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.app-empty-state-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}
.app-empty-state-body {
  margin: 0;
  max-width: 34rem;
  color: #64748b;
  line-height: 1.6;
}
.app-empty-state-action {
  min-height: 38px !important;
  padding: 0 0.95rem !important;
  border-radius: 999px !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  align-self: start;
}
.app-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: none;
  border-width: 1px;
  border-style: solid;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: none;
  font-weight: 650;
  font-size: 0.9rem;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
/* Canonical input control used via ui_input_classes helper */
.app-ui-input {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}
.app-ui-input::placeholder {
  color: #94a3b8;
}
.app-ui-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.app-ui-input[disabled],
.app-ui-input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

.app-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.app-filter-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.app-filter-pill.is-active {
  background: var(--brand-primary, #1f3650);
  border-color: var(--brand-primary, #1f3650);
  color: var(--brand-on-primary, #ffffff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(15, 23, 42, 0.12);
}

.app-filter-pill--kpi {
  min-width: 92px;
}

.page-primary-cta {
  min-height: 40px !important;
  padding: 0 1rem !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  letter-spacing: -0.01em;
}
.app-ui-button--primary {
  background: var(--brand-primary, #1f3650) !important;
  border-color: var(--brand-primary, #1f3650) !important;
  color: var(--brand-on-primary, #ffffff) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(15, 23, 42, 0.14);
}
.app-ui-button--primary:hover {
  filter: brightness(0.94);
  color: var(--brand-on-primary, #ffffff) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.16);
}
.app-ui-button--secondary {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #cfd9e6 !important;
  color: #334155 !important;
}
.app-ui-button--secondary:hover {
  background: #ffffff !important;
  border-color: #aebfd4 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.app-ui-button--secondary.app-ui-button--on-dark {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}
.app-ui-button--secondary.app-ui-button--on-dark:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}
.app-ui-button--ghost {
  color: #475569 !important;
}
.app-ui-button--danger {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #f3c1c1 !important;
  color: #c24141 !important;
}
.app-ui-button--danger:hover {
  background: #fff7f7 !important;
  border-color: #e89a9a !important;
  color: #991b1b !important;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.08);
}
input.app-ui-button {
  border-width: 1px;
  border-style: solid;
}
.app-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
}
.app-status-badge--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.app-status-badge--green {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}
.app-status-badge--amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.app-status-badge--red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.app-status-badge--indigo {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}
.app-status-badge--slate {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}
.app-page-header-meta .app-status-badge,
.quote-edit-summary-card .app-status-badge,
.customer-follow-up-callout .app-status-badge,
.customer-profile-card .app-status-badge {
  width: fit-content;
  align-self: flex-start;
}
.customer-profile-card-head,
.customer-follow-up-callout-actions,
.customer-quote-actions {
  align-items: center;
}
.customer-profile-card-head {
  flex-wrap: wrap;
}
.customer-profile-card-head .app-ui-button,
.customer-follow-up-callout-actions .app-ui-button,
.customer-quote-actions .app-ui-button {
  width: fit-content !important;
  flex: 0 0 auto;
}
.customer-edit-cta,
.customer-inline-cta,
.customer-new-quote-cta,
.customer-delete-cta {
  min-height: 40px;
  padding-inline: 1rem;
  border-radius: 12px;
}
.customer-edit-cta {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.customer-edit-cta:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}
.customer-inline-cta,
.customer-new-quote-cta {
  box-shadow: inherit;
}
.customer-delete-cta {
  box-shadow: none;
}
.customer-follow-up-callout-actions .button_to,
.customer-quote-actions .button_to {
  display: inline-flex;
  margin: 0;
  flex: 0 0 auto;
}
.customer-follow-up-callout-actions .button_to .app-ui-button,
.customer-quote-actions .button_to .app-ui-button {
  width: fit-content !important;
}

.customer-workspace-layout {
  align-items: start;
}
.customer-workspace-layout .app-page-split-side,
.customer-workspace-layout .app-page-split-main {
  gap: 1rem;
}
.customer-profile-card {
  margin-top: 0;
  border-radius: 20px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}
.customer-profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.customer-profile-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.customer-profile-identity strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}
.customer-profile-identity p {
  margin: 0.14rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
}
.customer-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.45rem;
}
.customer-profile-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 600;
}
.customer-profile-avatar {
  width: 42px;
  height: 42px;
}
.customer-details-collapsible {
  margin-top: 0;
  overflow: hidden;
  border-radius: 18px;
  border-color: #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}
.customer-details-collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.customer-details-collapsible > summary::-webkit-details-marker {
  display: none;
}
.customer-details-collapsible > summary::after {
  content: "Show";
  float: right;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}
.customer-details-collapsible[open] > summary::after {
  content: "Hide";
}
.customer-details-collapsible .customer-details {
  margin: 0;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
  box-shadow: none;
}
.customer-quote-workbench {
  gap: 0.95rem;
}
.customer-top-summary {
  margin: 0;
  grid-template-columns: 1fr;
}
.customer-top-summary .quote-edit-summary-card {
  margin: 0;
}
.customer-operating-signals {
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: var(--ui-surface-bg);
  padding: 0.95rem 1rem;
  box-shadow: var(--ui-shadow);
}
.customer-operating-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.customer-operating-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.8rem 0.85rem;
}
.customer-operating-card.is-good {
  background: var(--ui-surface-bg-good);
  border-color: #bbf7d0;
}
.customer-operating-card.is-watch {
  background: var(--ui-surface-bg-watch);
  border-color: #fde68a;
}
.customer-operating-card.is-danger {
  background: var(--ui-surface-bg-danger);
  border-color: #fecaca;
}
.customer-operating-card.is-neutral {
  background: var(--ui-surface-bg-neutral);
  border-color: #e2e8f0;
}
.customer-operating-label {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.customer-operating-card strong {
  display: block;
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.customer-operating-card p {
  margin: 0.32rem 0 0 0;
  color: #5b6b80;
  font-size: 0.82rem;
  line-height: 1.5;
}
.customer-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.customer-tag-cloud-hint {
  margin: 0 0 0.55rem;
}
.customer-tag-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  cursor: grab;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}
.customer-tag-chip.is-selected {
  cursor: grab;
}
.customer-tag-chip.is-selected.is-dragging {
  opacity: 0.85;
  cursor: grabbing;
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
  border-color: #93c5fd;
  transition: none;
}
.customer-tag-chip.is-drop-flash {
  animation: customerTagDropFlash 0.22s ease;
}
@keyframes customerTagDropFlash {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
.customer-tag-delete-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.customer-tag-delete-btn:hover {
  color: #475569;
}
.customer-tag-chip span {
  display: inline-flex;
  align-items: center;
}
.customer-tag-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}
.customer-tag-chip input:checked + span {
  background: #dbeafe;
  color: #1e40af;
  border-radius: 999px;
  padding: 0.15rem 0.1rem;
}
.customer-tag-custom {
  margin-top: 0.65rem;
}
.customer-tag-custom-list {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.customer-tag-chip-custom {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.customer-tag-priority {
  margin-bottom: 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: var(--ui-surface-bg-muted);
  padding: 0.85rem 0.9rem;
}
.customer-tag-priority-hidden {
  display: none;
}
.customer-tag-priority-hint {
  margin: 0 0 0.65rem;
}
.customer-tag-priority-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.customer-tag-priority-list {
  display: grid;
  gap: 0.5rem;
}
.customer-tag-priority-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.58rem 0.7rem;
  cursor: grab;
  user-select: none;
}
.customer-tag-priority-item.is-dragging {
  opacity: 0.6;
  cursor: grabbing;
}
.customer-tag-priority-name {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
}
.customer-tag-priority-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.customer-tag-priority-btn {
  min-height: 30px;
  height: 30px;
  padding: 0 0.62rem;
  font-size: 0.74rem;
}
.customer-list-tags {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.2;
  display: none;
}
.customer-list-tag-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.18rem;
}
.customer-list-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 0.44rem;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.customer-list-tag-chip.is-more {
  background: #ffffff;
  color: #94a3b8;
}
.quote-edit-summary-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.08rem;
  border-radius: 18px;
  border: 1px solid #e6edf5;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(252, 253, 255, 0.98) 100%
  );
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.028);
}
.quote-edit-summary-card strong {
  color: #0f172a;
  font-size: 1.26rem;
  line-height: 1.1;
}
.quote-edit-summary--workspace {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 0;
}
.quote-form-panel {
  border-radius: 22px !important;
  border-color: #e9eef6 !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(252, 253, 255, 0.98) 100%
  ) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03) !important;
  padding: 1.15rem 1.2rem !important;
}
.customer-quote-action-bar {
  margin: 0;
}
.customer-actions-title {
  display: block;
}
.customer-quote-actions {
  justify-content: flex-end;
}
.customer-quotes-header {
  align-items: end;
  margin: 0;
}
.customer-quote-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}
.customer-quote-summary-grid .summary-card {
  min-height: 122px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  justify-items: start;
  gap: 0.6rem;
  padding: 1rem 1.08rem;
  border-radius: 20px;
  border-width: 1px;
  border-style: solid;
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
  position: relative;
  overflow: hidden;
}
.customer-quote-summary-grid .summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #cbd5e1;
  border-radius: 20px 0 0 20px;
}
.customer-quote-summary-grid .summary-card strong {
  font-size: 1.04rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-top: auto;
  text-align: left;
}
.customer-quote-summary-grid .summary-currency-lines {
  display: grid;
  gap: 0.35rem;
  align-items: flex-start;
  width: 100%;
  justify-items: start;
  align-self: end;
}
.customer-quote-summary-grid .currency-lines-toggle {
  margin-top: 0.3rem;
  align-self: start;
}
.customer-quote-summary-grid .summary-label {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.customer-quote-summary-grid .summary-card.summary-normal {
  border-color: #d8e2ee;
  background: #ffffff;
}
.customer-quote-summary-grid .summary-card.summary-normal::before {
  background: #94a3b8;
}
.customer-quote-summary-grid .summary-card.summary-won {
  border-color: #d7ece0;
  background: #ffffff;
}
.customer-quote-summary-grid .summary-card.summary-won::before {
  background: #22c55e;
}
.customer-quote-summary-grid .summary-card.summary-lost {
  border-color: #f2d6d9;
  background: #ffffff;
}
.customer-quote-summary-grid .summary-card.summary-lost::before {
  background: #fb7185;
}
.customer-quote-summary-grid .summary-card.summary-upcoming {
  border-color: #efe0b8;
  background: #ffffff;
}
.customer-quote-summary-grid .summary-card.summary-upcoming::before {
  background: #f59e0b;
}
.follow-up-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.1rem;
}

.summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 72px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid #dde7f2;
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
  color: #0f172a;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    transform 0.12s ease;
}

.summary-card:hover {
  border-color: #cfdceb;
  background: var(--ui-surface-bg);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
  text-decoration: none;
  transform: translateY(-1px);
}

.summary-card strong {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.summary-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.summary-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.summary-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.summary-label {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.summary-card.summary-today {
  border-color: #d8e5f8;
}

.summary-card.summary-upcoming {
  border-color: #efe1bc;
}

.summary-card.summary-overdue {
  border-color: #f1cfd2;
}

.summary-card.summary-won {
  border-color: #ccebd8;
  background: var(--ui-surface-bg-good);
}

.summary-card.summary-lost {
  border-color: #f2d6d9;
  background: var(--ui-surface-bg-danger);
}

.summary-card.summary-normal {
  border-color: #dde4ee;
}

.summary-card.summary-today .summary-icon {
  color: #2563eb;
  background: #eff6ff;
  border-color: #dbeafe;
}

.summary-card.summary-upcoming .summary-icon {
  color: #d97706;
  background: #fff7ed;
  border-color: #fed7aa;
}

.summary-card.summary-overdue .summary-icon {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.summary-card.summary-normal .summary-icon {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.summary-card.active {
  border-color: #bfd3ea;
  background: var(--ui-surface-bg-info);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
}

.summary-card.active.summary-today {
  border-color: #93c5fd;
}

.summary-card.active.summary-upcoming {
  border-color: #fbbf24;
}

.summary-card.active.summary-overdue {
  border-color: #f87171;
}

.summary-card.active.summary-normal {
  border-color: #cbd5e1;
}

@media (max-width: 980px) {
  .follow-up-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .follow-up-summary {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 68px;
  }

  .summary-card strong {
    font-size: 1.45rem;
  }
}

.customer-task-board,
.customer-timeline {
  margin: 0;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
}
.quote-queue-toolbar {
  margin: 0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}
.quote-card {
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
}
.quote-card-action-callout {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}
.quote-card-callout-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #1e3a8a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.quote-card-action-callout div {
  display: grid;
  gap: 0.18rem;
}
.quote-card-action-callout strong {
  color: #0f172a;
  font-size: 0.9rem;
}
.quote-card-action-callout span:last-child {
  color: #475569;
  font-size: 0.82rem;
}
.quote-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}
.customer-back-link {
  width: fit-content;
}
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
}
.alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-danger {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.field_with_errors {
  display: block;
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea,
.settings-field-error input,
.settings-field-error select,
.settings-field-error textarea {
  border-color: #f87171 !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

.settings-field-error label {
  color: #b91c1c;
} /* Forms */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
}
.btn-primary,
input[type="submit"].btn {
  background-color: #1f3650;
  color: #ffffff;
}
.btn-primary:hover,
input[type="submit"].btn:hover {
  background-color: #17293d;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: #95a5a6;
  color: white;
}
.btn:hover {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}
.btn-secondary:hover {
  background-color: #7f8c8d;
}
.btn-success {
  background-color: #27ae60;
  color: white;
}
.btn-success:hover {
  background-color: #1e8449;
}
.btn-danger {
  background-color: #e74c3c;
  color: white;
}
.btn-danger:hover {
  background-color: #c0392b;
}
.btn-info {
  background-color: #3498db;
  color: white;
}
.btn-info:hover {
  background-color: #2980b9;
} /* Tables */
.customer-row.follow-up-overdue {
  background-color: #ffe6e6;
}
.customer-row.follow-up-overdue:hover {
  background-color: #ffcccc;
}
.customer-row.follow-up-upcoming {
  background-color: #fff9e6;
}
.customer-row.follow-up-upcoming:hover {
  background-color: #fff3cc;
}
.customer-row.follow-up-today {
  background-color: #e9f3ff;
}
.customer-row.follow-up-today:hover {
  background-color: #dbeafe;
}
.app-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.app-search-field {
  position: relative;
  width: 100%;
  max-width: 28rem;
}
.app-search-field-wide {
  max-width: 42rem;
}
.app-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}
.app-search-icon-svg {
  display: block;
  width: 1rem;
  height: 1rem;
}
.app-search-field .app-search-input {
  display: block;
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.25rem;
  padding: 0.55rem 0.75rem 0.55rem 2.75rem;
  outline: none;
  box-shadow: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.app-search-field .app-search-input::placeholder {
  color: #94a3b8;
}
.app-search-field .app-search-input:focus {
  border-color: var(--brand-primary, #1f4e79);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}
.app-search-clear {
  color: #64748b;
  font-size: 0.87rem;
  text-decoration: none;
}
.app-search-clear:hover {
  color: #334155;
  text-decoration: underline;
}
.search-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 0.84rem;
  font-weight: 600;
}
.customer-list-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.customer-list-name-cell-mobile {
  align-items: flex-start;
}
.customer-list-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.customer-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.customer-list-name-meta {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}
.next-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #f8fafc;
  white-space: nowrap;
}
.next-action-pill.is-danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}
.next-action-pill.is-today {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}
.next-action-pill.is-upcoming {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}
.next-action-pill.is-muted {
  border-color: #cbd5e1;
  color: #475569;
  background: #f8fafc;
}
.customer-list-next-action {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.24rem;
}
.customer-list-next-action small,
.customer-mobile-signal-reason {
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.35;
}
.customer-date-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.customer-date-cell .overdue-badge,
.customer-date-cell .today-badge,
.customer-date-cell .upcoming-badge {
  margin-left: 0.42rem;
  vertical-align: middle;
}
.mini-progress {
  margin-top: 0.38rem;
  margin-left: auto;
  width: 78px;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.mini-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}
.customer-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.customer-back-link:hover {
  color: #334155;
  text-decoration: underline;
}
.quote-history {
  margin-top: var(--space-2);
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 20px;
  border: 1px solid #dbe3ee;
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
}
.quote-history h3 {
  margin: 0 0 var(--space-1) 0;
  letter-spacing: -0.02em;
}
.quote-history-meta {
  margin: calc(var(--space-1) * -0.25) 0 var(--space-1) 0;
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.82rem;
}
.quote-history-tabs {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  margin-bottom: 0.95rem;
}
.history-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.history-tab:hover {
  background: #f8fafc;
  border-color: #bfd0e3;
  color: #0f172a;
}
.history-tab-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 700;
}
.history-tab-tag.history-tab-tag-current {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.history-tab.active .history-tab-tag {
  background: var(--ui-nav-link-active-bg);
  color: var(--brand-on-primary);
}
.history-tab.active .history-tab-tag.history-tab-tag-current {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.7);
}
.history-tab-tag.history-tab-tag-latest {
  background: #e8f8ef;
  color: #047857;
}
.history-tab.active .history-tab-tag.history-tab-tag-latest {
  background: #059669;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.dashboard-kpi-card {
  background: var(--ui-surface-bg);
  border: 1px solid #e5ebf3;
  border-radius: 20px;
  padding: 1.05rem 1.12rem 1rem;
  box-shadow: var(--ui-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.dashboard-kpi-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}
.dashboard-kpi-head {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.dashboard-kpi-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
  display: inline-flex;
}
.dashboard-kpi-icon svg {
  width: 100%;
  height: 100%;
}
.dashboard-kpi-head span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.dashboard-kpi-card strong {
  display: block;
  margin-top: 0.48rem;
  color: #0f172a;
  font-size: 1.95rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.dashboard-kpi-trend {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.dashboard-kpi-trend.is-up {
  color: #15803d;
}
.dashboard-kpi-trend.is-down {
  color: #b45309;
}
.dashboard-kpi-health {
  margin-top: var(--space-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.dashboard-kpi-health.is-good {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}
.dashboard-kpi-health.is-stable {
  border-color: #c7d2fe;
  background: #f8fafc;
  color: #334155;
}
.dashboard-kpi-health.is-watch {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}
.dashboard-kpi-health.is-risk {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}
.dashboard-kpi-health.is-attention {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.dashboard-kpi-health.is-neutral {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.dashboard-panel {
  border: 1px solid #e5ebf3;
  border-radius: 20px;
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
  padding: 1.05rem 1.1rem 1rem;
}
.dashboard-panel h2 {
  margin: 0 0 var(--space-1) 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.dashboard-panel--data {
  padding-bottom: 0.9rem;
}
.dashboard-panel--data .app-section-heading {
  margin-bottom: 0.7rem;
}
.dashboard-action-center {
  margin-bottom: var(--space-1);
}
.dashboard-action-summary {
  margin-bottom: var(--space-1);
}
.dashboard-action-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.dashboard-action-summary-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
}
.dashboard-action-summary-risk {
  margin-left: auto;
}
.dashboard-action-summary-note {
  margin: var(--space-1) 0 0 0;
  color: #64748b;
  font-size: 0.88rem;
}
.dashboard-decision-snapshot {
  display: grid;
  gap: 0.85rem;
}
.dashboard-decision-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 0.62rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}
.dashboard-decision-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: var(--ui-surface-bg);
}
.dashboard-decision-column {
  min-width: 0;
  padding-right: 0.45rem;
}
.dashboard-decision-column + .dashboard-decision-column {
  border-left: 1px solid #edf1f7;
  padding-left: 0.7rem;
}
.dashboard-decision-column h3 {
  margin: 0 0 0.45rem 0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.dashboard-decision-metrics {
  display: grid;
  gap: 0.35rem;
}
.dashboard-decision-metric {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.88rem;
}
.dashboard-decision-metric span {
  color: #475569;
}
.dashboard-decision-metric strong {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 700;
}
.dashboard-decision-metric strong.is-attention {
  color: #b45309;
}
.dashboard-decision-column-attention {
  background: #fcfdff;
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
}
.dashboard-decision-waiting p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dashboard-decision-waiting span {
  color: #475569;
  font-size: 0.86rem;
}
.dashboard-decision-waiting strong {
  color: #0f172a;
  font-size: 1.14rem;
  font-weight: 800;
}
.dashboard-decision-waiting small {
  margin-top: 0.4rem;
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}
.dashboard-action-item {
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: var(--ui-surface-bg-soft);
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.dashboard-action-item-primary {
  padding: 1rem 1.05rem;
}
.dashboard-action-primary-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.dashboard-action-item strong {
  color: #0f172a;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}
.dashboard-action-item p {
  margin: var(--space-1) 0 0 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.55;
}
.dashboard-action-item.is-urgent {
  border-color: #fecaca;
  background: #fef2f2;
}
.dashboard-action-item.is-today {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.dashboard-action-item.is-watch {
  border-color: #fde68a;
  background: #fffbeb;
}
.dashboard-action-item.is-normal {
  border-color: #dbe3ee;
  background: #f8fafc;
}
.dashboard-action-secondary-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.dashboard-action-link {
  min-height: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0 1rem;
}
.dashboard-action-more[hidden] {
  display: none;
}
.dashboard-action-toggle {
  margin-top: var(--space-1);
  cursor: pointer;
  user-select: none;
  justify-self: center;
  min-width: 170px;
}

.dashboard-onboarding-card,
.dashboard-quick-create {
  padding: 1rem 1.1rem;
}

.dashboard-onboarding-head,
.dashboard-quick-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-onboarding-subtitle,
.dashboard-quick-create-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.dashboard-onboarding-progress {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

.dashboard-onboarding-shortcuts {
  margin: 0.45rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  color: #64748b;
  font-size: 0.76rem;
}

.dashboard-onboarding-shortcut-item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.dashboard-onboarding-shortcut-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  padding: 0.14em 0.42em;
  font-size: 0.74rem;
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #334155;
}

.dashboard-onboarding-head .button_to {
  margin: 0;
}

.dashboard-onboarding-dismiss {
  min-height: 32px;
  padding: 0 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

.dashboard-onboarding-steps {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.dashboard-onboarding-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.7rem;
}

.dashboard-onboarding-step-main {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.dashboard-onboarding-step-main > div {
  min-width: 0;
}

.dashboard-onboarding-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid #cbd5e1;
  color: #64748b;
  background: #fff;
  flex: 0 0 auto;
}

.dashboard-onboarding-step-icon.is-done {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.dashboard-onboarding-step-label {
  margin: 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}

.dashboard-onboarding-step-label.is-done {
  color: #047857;
}

.dashboard-onboarding-step-detail {
  margin: 0.1rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.3;
}

.dashboard-onboarding-step-label,
.dashboard-onboarding-step-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dashboard-onboarding-step-action {
  min-height: 32px;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.dashboard-onboarding-step-state {
  color: #64748b;
  font-size: 0.76rem;
  white-space: nowrap;
}

.dashboard-onboarding-step-state.is-done {
  color: #047857;
  font-weight: 600;
}

.dashboard-quick-create-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.dashboard-quick-create-action {
  min-height: 38px;
  justify-content: center;
}

.quote-created-banner {
  margin-bottom: 1.25rem;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.quote-created-banner-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quote-created-banner-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: #166534;
  margin: 0 0 0.2rem;
}

.quote-created-banner-subtitle {
  font-size: 0.875rem;
  color: #15803d;
  margin: 0;
}

.quote-created-banner-btn {
  flex-shrink: 0;
}

@media (max-width: 840px) {
  .dashboard-onboarding-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-quick-create-actions {
    grid-template-columns: 1fr;
  }
}

.app-inline-notice {
  margin: 0.5rem 0 0.75rem;
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #92400e;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.83rem;
}

.app-inline-notice p {
  margin: 0;
}

.app-inline-notice p + p {
  margin-top: 0.35rem;
}

.app-inline-notice-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Keyboard shortcuts modal ─────────────────────────────────── */
.app-shortcuts-backdrop[hidden] {
  display: none;
}
.app-shortcuts-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(15, 23, 42, 0.52);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.app-shortcuts-dialog {
  position: relative;
  width: min(100%, 360px);
  border-radius: 22px;
  border: 1px solid #dbe4ef;
  background: var(--ui-surface-bg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.5rem 1.2rem;
}
.app-shortcuts-dialog--wide {
  width: min(100%, 460px);
}
.app-shortcuts-title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.app-shortcuts-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.app-shortcuts-list {
  margin: 0;
  padding: 0;
}
.app-shortcuts-groups {
  display: grid;
  gap: 0.8rem;
  max-height: min(72vh, 560px);
  overflow: auto;
  padding-right: 0.1rem;
}
.app-shortcuts-group {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.78);
  padding: 0.75rem 0.85rem;
}
.app-shortcuts-group-title {
  margin: 0 0 0.45rem;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-shortcuts-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.app-shortcuts-row:last-child {
  border-bottom: none;
}
.app-shortcuts-row dt {
  flex: none;
  min-width: 2rem;
}
.app-shortcuts-row dd {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
}
.app-shortcuts-row kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0.18em 0.45em;
  font-size: 0.78rem;
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #334155;
}
.app-shortcuts-subtitle {
  margin: -0.45rem 0 0.85rem;
  color: #64748b;
  font-size: 0.86rem;
}
.app-shortcuts-search {
  display: block;
  width: 100%;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.48rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
}
.app-shortcuts-search:focus {
  border-color: var(--brand-primary, #1f4e79);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}
.app-shortcuts-customer-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-height: 250px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.app-shortcuts-customer-option {
  width: 100%;
  border: none;
  background: #fff;
  color: #0f172a;
  padding: 0.62rem 0.75rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}
.app-shortcuts-customer-list li:last-child .app-shortcuts-customer-option {
  border-bottom: none;
}
.app-shortcuts-customer-option:hover,
.app-shortcuts-customer-option:focus-visible {
  background: #eff6ff;
  outline: none;
}
.app-shortcuts-empty {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.app-command-palette-results {
  margin-top: 0.75rem;
  max-height: min(52vh, 460px);
  overflow: auto;
}
.app-command-group {
  margin-top: 0.8rem;
}
.app-command-group:first-child {
  margin-top: 0.2rem;
}
.app-command-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-command-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.app-command-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-align: left;
  padding: 0.58rem 0.72rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.app-command-list li:last-child .app-command-item {
  border-bottom: none;
}
.app-command-item:hover,
.app-command-item.is-active,
.app-command-item:focus-visible {
  background: #eff6ff;
  outline: none;
}
.app-command-label {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.app-command-label-main {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-command-label-sub {
  color: #64748b;
  font-size: 0.78rem;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-command-meta {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34%;
}

/* ── Shortcut badge inside action buttons ─────────────────────── */
kbd.app-shortcut-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08em 0.38em;
  font-size: 0.72em;
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  color: inherit;
  opacity: 0.85;
  vertical-align: middle;
  line-height: 1.45;
}

.app-shortcuts-footnote {
  margin-left: 0.75rem;
  color: #64748b;
  font-size: 0.82rem;
}

.app-search-shortcut-hint {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.4rem;
  padding: 0.08rem 0.34rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-family: ui-monospace, "SF Mono", monospace;
  text-align: center;
  pointer-events: none;
}
.app-search-field .app-search-input {
  padding-right: 2.55rem;
}

/* ── Tooltip ──────────────────────────────────────────────────── */
.app-tooltip {
  position: absolute;
  z-index: 3000;
  max-width: 200px;
  padding: 0.32rem 0.6rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: 8px;
  pointer-events: none;
  white-space: pre-line;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.dashboard-inline-toggle {
  min-height: 34px !important;
  padding: 0 0.9rem !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  box-shadow: none !important;
}
.dashboard-recent-table {
  box-shadow: none;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.dashboard-recent-table thead {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #dbe3ee;
}
.dashboard-recent-table th {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dashboard-recent-table th,
.dashboard-recent-table td {
  padding: 0.72rem 0.82rem;
  font-size: 0.83rem;
  vertical-align: middle;
  white-space: nowrap;
}
.dashboard-panel-note {
  margin: 0 0 var(--space-1) 0;
  color: #64748b;
  font-size: 0.8rem;
}
.dashboard-recent-table tbody tr {
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  border-bottom: 1px solid #eef2f7;
}
.dashboard-recent-table tbody tr:last-child {
  border-bottom: none;
}
.dashboard-recent-table tbody tr:hover {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.dashboard-recent-table tbody tr:hover .dashboard-next-step-btn {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.dashboard-products-table {
  table-layout: fixed;
}
.dashboard-products-table td {
  overflow: hidden;
}
.dashboard-quote-title,
.dashboard-quote-title a,
.dashboard-cell-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  margin-top: 1.1rem;
}
.dashboard-overview-list li {
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  padding: 1.05rem 0;
}
.dashboard-overview-list li:last-child {
  border-bottom: none;
}
.dashboard-overview-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: 0.08rem;
}
.dashboard-overview-list span {
  display: block;
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dashboard-overview-label-row small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.dashboard-overview-list strong,
.dashboard-overview-value {
  display: block;
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.dashboard-overview-insight {
  margin-top: 0.36rem;
  color: #5b6b80;
  font-size: 0.83rem;
  line-height: 1.55;
}
.dashboard-health-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 0.1rem;
}
.dashboard-health-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.82rem 0.88rem;
}
.dashboard-health-card.is-good {
  background: var(--ui-surface-bg-good);
  border-color: #bbf7d0;
}
.dashboard-health-card.is-watch {
  background: var(--ui-surface-bg-watch);
  border-color: #fde68a;
}
.dashboard-health-card.is-danger {
  background: var(--ui-surface-bg-danger);
  border-color: #fecaca;
}
.dashboard-health-card.is-neutral {
  background: var(--ui-surface-bg-neutral);
  border-color: #e2e8f0;
}
.dashboard-health-label {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dashboard-health-card strong {
  display: block;
  margin-top: 0.28rem;
  color: #0f172a;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}
.dashboard-health-card p {
  margin: 0.3rem 0 0 0;
  color: #5b6b80;
  font-size: 0.8rem;
  line-height: 1.5;
}
.dashboard-panel.dashboard-overview-panel {
  align-self: start;
  height: auto;
}
.dashboard-reminder-table th:last-child,
.dashboard-reminder-table td:last-child {
  width: 1%;
  white-space: nowrap;
  padding-right: 1rem;
}
.dashboard-reminder-count-head,
.dashboard-reminder-count {
  text-align: center;
  min-width: 84px;
}
.dashboard-reminder-action-head {
  text-align: right;
  padding-right: 1rem;
}
.dashboard-products-table tbody tr[data-clickable-href] strong,
.dashboard-reminder-table tbody tr[data-clickable-href] strong {
  color: #0f172a;
}
.dashboard-next-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid #d4ddea;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0 0.7rem;
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
  line-height: 1;
}
.dashboard-next-step-btn:hover {
  background: #ffffff;
  border-color: #aebfd4;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.dashboard-next-step-btn.is-primary {
  border-color: #d4ddea;
  background: #ffffff;
  color: #334155;
}
.dashboard-next-step-btn.is-watch {
  border-color: #d4ddea;
  background: #ffffff;
  color: #334155;
}
.dashboard-next-step-btn.is-attention {
  border-color: #d4ddea;
  background: #ffffff;
  color: #334155;
}
.dashboard-engagement-pill {
  font-size: 0.76rem;
  font-weight: 500;
  color: #94a3b8;
}
.dashboard-engagement-pill.is-subtle {
  color: #cbd5e1;
}
.dashboard-next-step-btn.is-neutral {
  border-color: #cbd5e1;
  background: transparent;
  color: #475569;
}
.dashboard-next-step-btn.is-static {
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.dashboard-next-step-btn.is-static:hover {
  border-color: #cbd5e1;
  background: transparent;
  box-shadow: none;
}
.dashboard-recent-table .text-right {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.dashboard-recent-table.dashboard-products-table th:nth-child(4),
.dashboard-recent-table.dashboard-products-table td:nth-child(4) {
  min-width: 118px;
}
.dashboard-recent-table.dashboard-products-table th:nth-child(5),
.dashboard-recent-table.dashboard-products-table td:nth-child(5) {
  min-width: 140px;
  padding-right: 1rem;
}

.dashboard-quote-title,
.dashboard-cell-ellipsis {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}
.dashboard-recent-table td .dashboard-quote-id {
  display: block;
  margin-top: 0.18rem;
  line-height: 1.2;
}
.dashboard-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.88fr);
  gap: 1rem;
  align-items: start;
}
.dashboard-detail-grid > .dashboard-panel {
  height: auto;
}
.dashboard-action-required {
  min-height: 100%;
  margin-top: 0.1rem;
}
.dashboard-task-list {
  display: grid;
  gap: 0.85rem;
}
.dashboard-task-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: var(--ui-surface-bg);
}

.dashboard-task-item > div:first-child {
  min-width: 0;
}
.dashboard-task-item.is-urgent {
  border-color: #fed7aa;
  background: #fff8f1;
}
.dashboard-task-item.is-watch {
  border-color: #fde68a;
  background: var(--ui-surface-bg-watch);
}
.dashboard-task-item strong {
  display: block;
  color: #0f172a;
}
.dashboard-task-item p {
  margin: 0.28rem 0 0 0;
  color: #64748b;
  font-size: 0.84rem;
}

.dashboard-task-item strong,
.dashboard-task-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dashboard-task-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.dashboard-task-actions .button_to {
  margin: 0;
}
.dashboard-task-more[hidden] {
  display: none;
}
.dashboard-task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.1rem;
}
.dashboard-task-footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}
.dashboard-funnel-inline {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e2e8f0;
}
.dashboard-funnel-inline-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.dashboard-funnel-inline-head h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #1e293b;
}
.dashboard-funnel-inline-head span {
  color: #64748b;
  font-size: 0.78rem;
}
.dashboard-funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}
.dashboard-funnel-step {
  padding: 0.72rem 0.72rem 0.68rem;
  display: grid;
  gap: 0.34rem;
}
.dashboard-funnel-step span {
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dashboard-funnel-step-metric {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
}
.dashboard-funnel-step strong {
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1;
}
.dashboard-funnel-step small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
}
.dashboard-funnel-step + .dashboard-funnel-step {
  border-left: 1px solid #e2e8f0;
}
.sales-dashboard-content {
  gap: 1rem;
}
.dashboard-health-strip {
  align-items: stretch;
  padding-top: 0;
}
.dashboard-health-band {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.customer-sort-link {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
}
.customer-sort-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  line-height: 1;
}
.sort-indicator svg {
  display: block;
  width: 100%;
  height: 100%;
}
.customer-sort-link:hover {
  color: #dbeafe;
  text-decoration: underline;
}
.customers-empty-row {
  text-align: center;
  color: #4b5563;
  padding: 1.25rem;
}
.customers-table {
  border-radius: 12px;
  overflow: hidden;
}
.customers-table thead th {
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.customers-table tbody tr {
  transition: background-color 0.14s ease;
}
.customers-table
  tbody
  tr:nth-child(even):not(.follow-up-overdue):not(.follow-up-upcoming):not(
    .follow-up-today
  ) {
  background: #fbfdff;
}
.customers-table tbody tr:hover td {
  background: #f5f9ff;
}
.customer-row.risk-high td {
  background: #fff4f4;
}
.customer-row.risk-medium td {
  background: #fff9eb;
}

/* Lightweight SaaS table skin for customers/products list pages. */
.customers-table.saas-table {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.customers-table.saas-table thead {
  background: var(--ui-nav-bg);
  color: var(--ui-nav-fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.customers-table.saas-table thead th {
  color: var(--ui-nav-fg);
  font-weight: 600;
  background: var(--ui-nav-bg);
}
.customers-table.saas-table tbody td {
  border-top: 1px solid #eef2f7;
}
.customers-table.saas-table
  tbody
  tr:nth-child(even):not(.follow-up-overdue):not(.follow-up-upcoming):not(
    .follow-up-today
  ) {
  background: #ffffff;
}
.customers-table.saas-table tbody tr:hover td {
  background: #f8fafc;
}
.customers-table.saas-table .customer-sort-link {
  color: var(--ui-nav-fg);
}
.customers-table.saas-table .customer-sort-link:hover {
  color: #dbeafe;
}
.customers-table.saas-table .customer-sort-link-icon {
  color: rgba(255, 255, 255, 0.72);
}
.customers-table.saas-table .sort-indicator.is-neutral {
  color: rgba(255, 255, 255, 0.65);
}
.customers-table.saas-table .sort-indicator.is-asc,
.customers-table.saas-table .sort-indicator.is-desc {
  color: #ffffff;
}
.customers-table.saas-table.app-data-table thead th,
.customers-table.saas-table.app-data-table thead .customer-sort-link,
.customers-table.saas-table.app-data-table thead .customer-sort-link-icon {
  color: var(--ui-nav-fg) !important;
}
.customers-table.saas-table.app-data-table thead th {
  background: var(--ui-nav-bg) !important;
}
.customers-mobile-list {
  display: none;
}
.customer-mobile-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.customer-mobile-card.risk-high {
  border-color: #fecaca;
}
.customer-mobile-card.risk-medium {
  border-color: #fde68a;
}
.customer-mobile-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
}
.customer-mobile-next {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.customer-mobile-next-label {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}
.customer-mobile-metric {
  padding: var(--space-1) var(--space-2);
  border-top: 1px solid #e2e8f0;
}
.customer-mobile-metric:nth-child(odd) {
  border-right: 1px solid #e2e8f0;
}
.customer-mobile-metric span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}
.customer-mobile-metric strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 0.96rem;
}
.customer-mobile-details {
  border-top: 1px solid #e2e8f0;
  background: #fafcff;
}
.customer-mobile-details summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-1) var(--space-2);
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
}
.customer-mobile-details summary::-webkit-details-marker {
  display: none;
}
.customer-mobile-detail-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-1);
}
.customer-mobile-detail-item span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.customer-mobile-detail-item strong {
  font-size: 0.88rem;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.quote-card-list-scroll {
  max-height: 760px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.quote-card-list[hidden] {
  display: none;
}
.quote-pagination {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.quote-card {
  background: var(--ui-surface-bg);
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: var(--ui-shadow);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.quote-card-action-callout {
  margin-bottom: 0.8rem;
  border: 1px solid #d9e8fb;
  background: var(--ui-surface-bg-info);
  color: #1e3a8a;
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  font-size: 0.84rem;
}
.quote-card-action-callout.is-urgent {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.quote-card:hover {
  transform: translateY(-1px);
  border-color: #c3d4ea;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
.quote-card-main {
  flex: 1;
  min-width: 0;
}
.quote-card-side {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 150px;
}
.quote-card-main h4 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  color: #0f172a;
}
.quote-card-badges {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.quote-card-signal-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 0.35rem;
}
.quote-card-signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.56rem;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #475569;
  font-size: 0.73rem;
  font-weight: 700;
}
.quote-card-signal-pill.is-risk {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.quote-card-signal-pill.is-watch {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.quote-card-signal-pill.is-stable {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.quote-card-signal-detail {
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.4;
}
.quote-card-meta p {
  margin: 0;
  text-align: left;
  line-height: 1.5;
}
.quote-total-value {
  font-size: 1.12rem;
  color: #0f172a;
}
.quote-card-meta {
  display: grid;
  gap: 0.32rem;
}
.quote-card-diff {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.82rem;
}
.quote-card-diff .diff-value {
  font-weight: 700;
}
.quote-card-diff .diff-value.up {
  color: #b91c1c;
}
.quote-card-diff .diff-value.down {
  color: #15803d;
}
.quote-card-actions {
  margin-top: var(--space-2);
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.1rem;
}
.quote-card-actions .button_to {
  margin: 0;
  display: inline-flex;
}
.quote-card-actions .app-ui-button {
  margin: 0;
  min-height: 39px;
  padding-inline: 0.92rem;
  font-size: 0.83rem;
  border-radius: 12px;
}

.quote-card-secondary-action {
  background: #fbfcfe !important;
}

.dashboard-table-action {
  min-height: 30px !important;
  padding: 0 0.7rem !important;
  font-size: 0.78rem !important;
  border-radius: 999px !important;
}
.product-library-name-link {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 700;
}
.product-library-name-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.product-sku {
  letter-spacing: 0.01em;
}
.app-page-shell--products .app-page-header p {
  max-width: 42rem;
}
.products-table {
  overflow: visible;
}
.products-mobile-list {
  display: none;
}
.products-mobile-card {
  cursor: pointer;
}
.products-mobile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.1rem;
}
.products-mobile-media {
  flex: 0 0 auto;
}
.products-mobile-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #64748b;
}
.products-mobile-image--placeholder {
  font-weight: 700;
  font-size: 1rem;
}
.products-mobile-title-wrap {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}
.products-mobile-title-wrap strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}
.product-row-menu--mobile {
  align-self: start;
}
/* Allow action dropdown to escape table bounds */
.customers-table.products-table.saas-table {
  overflow: visible;
}
.customers-table.products-table.saas-table thead th:first-child {
  border-top-left-radius: 20px;
}
.customers-table.products-table.saas-table thead th:last-child {
  border-top-right-radius: 20px;
}
.product-row-actions {
  width: 72px;
  text-align: right;
}
.product-row-menu {
  position: relative;
}
.product-row-menu summary {
  list-style: none;
}
.product-row-menu summary::-webkit-details-marker {
  display: none;
}
.product-row-menu-trigger {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
  opacity: 0.62;
}
.products-table tbody tr:hover .product-row-menu-trigger,
.product-row-menu[open] .product-row-menu-trigger {
  opacity: 1;
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.product-row-menu-content {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 148px;
  padding: 0.35rem;
  display: grid;
  gap: 0.15rem;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  z-index: 30;
}
.product-row-menu-item {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  text-align: left;
}
.product-row-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}
.product-row-menu-item.is-danger {
  color: #b91c1c;
}
.product-row-menu-item.is-danger:hover {
  background: #fef2f2;
  color: #991b1b;
}
.product-configurator-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: var(--ui-surface-bg);
  padding: 0.85rem;
}
.product-configurator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product-preset-list {
  display: grid;
  gap: 0.55rem;
}
.product-preset-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.8rem;
}
.product-preset-option input {
  margin-top: 0.2rem;
}
.product-preset-option span {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  flex: 1 1 auto;
}
.product-preset-option small {
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.product-configurator-default {
  display: grid;
  gap: 0.35rem;
}
.product-configurator-default label {
  margin-bottom: 0;
}
.product-configurator-default select {
  width: 100%;
}
.quote-inline-select {
  width: 100%;
  min-height: 34px;
  margin-bottom: 0.45rem;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
}
.product-search {
  position: relative;
}
.product-search .js-product-name {
  width: 100%;
}
.product-search .js-product-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 45;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}
.product-search .js-product-dropdown.is-open {
  display: block;
}
.product-search .js-product-dropdown.open-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.product-option-empty {
  padding: 0.6rem 0.7rem;
  color: #64748b;
  font-size: 0.82rem;
}
.product-search .js-product-option {
  width: 100%;
  display: block;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.25;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}
.product-search .js-product-option:last-child {
  border-bottom: none;
}
.product-search .js-product-option:hover,
.product-search .js-product-option.is-active,
.product-search .js-product-option.is-hovered {
  background: #eff6ff;
  color: #0f172a;
}
.quote-kv-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.6rem;
  margin: 0.25rem 0 0.45rem;
}
.quote-kv-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-kv-summary-empty {
  color: #94a3b8;
  font-size: 0.78rem;
}
.quote-kv-open {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  min-height: 32px;
  padding: 0.4rem 0.6rem;
}
.quote-kv-open:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.quote-kv-editor {
  margin-top: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.58rem;
  display: none;
  gap: 0.5rem;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(560px, calc(100vw - 140px));
  z-index: 50;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}
.quote-kv-editor[hidden] {
  display: none !important;
}
.quote-kv-editor.is-open {
  display: grid;
}
.quote-kv-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.quote-kv-close {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  min-height: 28px;
  padding: 0.2rem 0.5rem;
}
.quote-kv-bulk {
  display: grid;
  gap: 0.35rem;
}
.quote-kv-bulk-input {
  width: 100%;
  min-height: 72px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
  line-height: 1.35;
}
.quote-kv-bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.quote-kv-parse {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
}
.quote-kv-bulk-check {
  font-size: 0.74rem;
  color: #64748b;
}
.quote-kv-bulk-check.is-ok {
  color: #047857;
}
.quote-kv-bulk-check.is-error {
  color: #b91c1c;
}
.quote-kv-rows {
  display: grid;
  gap: 0.35rem;
}
.quote-kv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
}
.quote-kv-row-addon {
  grid-template-columns: minmax(0, 1fr) 110px auto;
}
.quote-kv-row input {
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
}
.quote-kv-remove {
  width: 28px;
  height: 28px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quote-kv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}
.quote-kv-add {
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.quote-kv-clear {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quote-col-specs,
.quote-col-addons {
  position: relative;
}

@media (max-width: 1024px) {
  .quote-kv-editor {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
  }
}
.product-presets-hub {
  display: grid;
  gap: 1rem;
}
.product-presets-card {
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 1rem 1.1rem;
}
.product-presets-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-presets-card-head h2 {
  margin: 0 0 0.3rem 0;
}
.product-presets-card-head p {
  margin: 0;
  max-width: 42rem;
  color: #64748b;
}
.product-presets-card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.product-presets-chip-list {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.product-presets-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.55rem 0.7rem;
  min-width: 160px;
}
.product-presets-chip small {
  color: #64748b;
}
.app-page-shell {
  display: grid;
  gap: 1.15rem;
}
.app-page-shell--workspace {
  gap: 1.25rem;
}
.app-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-page-header-main {
  min-width: 0;
}
.app-page-header h1,
.app-page-header-main h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 1.62rem + 0.92vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.app-page-header p {
  margin: 0.4rem 0 0 0;
  max-width: 48rem;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.62;
}
.app-page-header-meta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.app-page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.app-toolbar-surface {
  display: grid;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
}
.app-toolbar-surface--compact {
  gap: 0.85rem;
}
.app-listing-shell {
  display: grid;
  gap: 0.85rem;
}
.app-page-shell--customers .app-toolbar-surface,
.app-page-shell--customers .app-listing-shell {
  max-width: none;
}
.app-page-shell--customers .app-page-header p {
  max-width: 54rem;
}
.app-page-shell--customers .app-toolbar-surface {
  padding: 1.15rem 1.2rem;
}
.app-page-shell--customers .follow-up-summary {
  gap: 0.82rem;
}
.app-page-shell--customers .summary-card {
  min-height: 78px;
}
.app-page-shell--customers .table-responsive {
  overflow: visible;
}
.app-page-shell--customers .customers-table-desktop {
  border-radius: 20px;
}
.app-page-shell--customers .customers-table.saas-table.app-data-table {
  table-layout: fixed;
  width: 100%;
}
.app-page-shell--customers .customers-table.saas-table.app-data-table thead th {
  padding: 0.82rem 0.7rem;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}
.app-page-shell--customers .customers-table.saas-table.app-data-table tbody td {
  padding: 0.88rem 0.7rem;
  font-size: 0.92rem;
  line-height: 1.42;
  vertical-align: middle;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(1),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(1) {
  width: 20%;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(2),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(2) {
  width: 20%;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(3),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(3) {
  width: 8%;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(4),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(4),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(5),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(5) {
  width: 10%;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(6),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(6) {
  width: 8%;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(7),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(7) {
  width: 10%;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  th:nth-child(8),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(8) {
  width: 14%;
}
.app-page-shell--customers .customer-list-name-cell {
  gap: 0.7rem;
}
.app-page-shell--customers .customer-list-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}
.app-page-shell--customers .customer-list-name-meta strong,
.app-page-shell--customers .customer-name-link {
  font-size: 1rem;
  line-height: 1.32;
}
.app-page-shell--customers .customer-list-tag-row {
  gap: 0.3rem;
}
.app-page-shell--customers .customer-list-tag-chip {
  min-height: 22px;
  padding: 0 0.42rem;
  font-size: 0.7rem;
}
.app-page-shell--customers .customer-money-cell strong,
.app-page-shell--customers .customer-money-cell {
  font-size: 1rem;
}
.app-page-shell--customers .mini-progress {
  width: 72px;
}
.app-page-shell--customers .customer-date-cell {
  font-size: 0.92rem;
  white-space: normal;
  line-height: 1.32;
  text-align: center;
}
.app-page-shell--customers .customer-date-cell .overdue-badge,
.app-page-shell--customers .customer-date-cell .today-badge,
.app-page-shell--customers .customer-date-cell .upcoming-badge {
  display: inline-flex;
  margin-left: 0;
  margin-top: 0.28rem;
  width: fit-content;
}
.app-page-shell--customers .customer-list-next-action {
  gap: 0.28rem;
  align-items: center;
  text-align: center;
}
.app-page-shell--customers .customer-list-next-action small {
  font-size: 0.76rem;
  line-height: 1.3;
}
.app-page-shell--customers .next-action-pill {
  padding: 0.2rem 0.58rem;
  font-size: 0.76rem;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(7),
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(8) {
  vertical-align: top;
}
.app-page-shell--customers
  .customers-table.saas-table.app-data-table
  td:nth-child(8) {
  text-align: center;
}
.app-surface {
  border-color: rgba(226, 232, 240, 0.92) !important;
  border-radius: 20px !important;
  background: var(--ui-surface-bg) !important;
  box-shadow: var(--ui-shadow) !important;
}
.app-table-surface {
  border-radius: 20px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  background: #ffffff !important;
  box-shadow: var(--ui-shadow) !important;
}
.app-table-surface table {
  background: transparent;
}
.app-section-caption {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}
.app-section-grid {
  display: grid;
  gap: 1.5rem;
}
.app-section-stack {
  display: grid;
  gap: 1.25rem;
}
.app-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.app-section-heading h2,
.app-section-heading h3 {
  margin: 0;
}
.app-subtle-note {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}
.app-form-section-head {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.9rem;
}
.app-form-section-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.app-form-section-note {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}
.app-panel-muted {
  background: var(--ui-surface-bg-soft);
}
.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.app-stat-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: var(--ui-surface-bg-soft);
  padding: 1rem 1.08rem;
  box-shadow: var(--ui-shadow);
}
.app-stat-label {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-stat-value {
  display: block;
  margin-top: 0.45rem;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
}
.app-stat-meta {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.82rem;
}
.app-data-table thead th {
  padding: 0.78rem 0.9rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-data-table tbody td {
  padding: 0.82rem 0.9rem;
  vertical-align: middle;
}
.app-data-table tbody tr {
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}
.app-data-table tbody tr:hover {
  background: #f8fafc;
}
.app-data-table tbody tr[data-clickable-href] {
  cursor: pointer;
}
.app-data-table tbody tr[data-clickable-href]:hover td {
  box-shadow:
    inset 0 1px 0 rgba(219, 234, 254, 0.92),
    inset 0 -1px 0 rgba(219, 234, 254, 0.92);
}
.app-data-table tbody tr[data-clickable-href].is-shortcut-active td {
  box-shadow:
    inset 0 1px 0 rgba(59, 130, 246, 0.28),
    inset 0 -1px 0 rgba(59, 130, 246, 0.28);
  background: #eff6ff;
}
.app-page-split {
  display: grid;
  gap: 1.5rem;
}
.marketing-root .marketing-content-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}
.public-marketing-main {
  min-height: 0 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}
.public-marketing-footer {
  margin-top: auto;
  border-top: 1px solid #dbe3ee;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -1px 2px rgba(15, 23, 42, 0.04);
  border-radius: 0;
}
.marketing-root .marketing-page-shell {
  gap: 2.9rem;
}
.marketing-root .marketing-hero-grid {
  display: grid;
  gap: 2.35rem;
}
.marketing-root .marketing-hero-copy {
  gap: 1.5rem;
  max-width: 38rem;
}
.marketing-root .marketing-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  margin: 0;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(191, 204, 220, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #3f5369;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marketing-root .marketing-hero-cta-group {
  display: grid;
  gap: 0.7rem;
}
.marketing-root .app-ui-button--primary {
  background: #16324a !important;
  border-color: #16324a !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.marketing-root .app-ui-button--primary:hover,
.marketing-root .app-ui-button--primary:focus-visible {
  filter: none;
  background: #10273b !important;
  border-color: #10273b !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}
.marketing-root .app-ui-button--secondary {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(191, 204, 220, 0.92) !important;
  color: #243547 !important;
}
.marketing-root .app-ui-button--secondary:hover,
.marketing-root .app-ui-button--secondary:focus-visible {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.95) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.marketing-root .app-ui-button--secondary.app-ui-button--on-dark,
.marketing-root .app-ui-button--secondary.app-ui-button--on-dark:hover,
.marketing-root .app-ui-button--secondary.app-ui-button--on-dark:focus-visible {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}
.marketing-root .app-ui-button--ghost {
  color: #506176 !important;
}
.marketing-root .app-filter-pill {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(198, 210, 223, 0.95);
  color: #304356;
  box-shadow: none;
}
.marketing-root .app-filter-pill:hover,
.marketing-root .app-filter-pill:focus-visible {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.95);
  color: #16283a;
}
.marketing-root .dashboard-alert-pill {
  min-height: 1.8rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.marketing-root .dashboard-alert-pill.is-good {
  border-color: rgba(167, 243, 208, 0.92);
  background: rgba(236, 253, 245, 0.9);
  color: #166534;
}
.marketing-root .dashboard-alert-pill.is-watch,
.marketing-root .dashboard-alert-pill.is-neutral {
  border-color: rgba(191, 219, 254, 0.92);
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
}
.marketing-root .marketing-hero-title {
  margin: 0;
  max-width: 13ch;
  color: #0f172a;
  font-size: clamp(3rem, 2.25rem + 2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.marketing-root .marketing-hero-body {
  margin: 0;
  max-width: 42rem;
  color: #526377;
  font-size: 1.05rem;
  line-height: 1.72;
}
.marketing-root .marketing-hero-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(221, 229, 238, 0.95) !important;
  background:
    radial-gradient(
      circle at top center,
      rgba(226, 236, 247, 0.62),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.84) !important;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}
.marketing-root .marketing-hero-card::after {
  content: none;
}
.marketing-root .marketing-section-card {
  padding: 1.5rem !important;
  border-color: rgba(221, 229, 238, 0.88) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05) !important;
}
.marketing-root .marketing-hero-shell {
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.4rem) !important;
  border-radius: 30px !important;
  border-color: rgba(218, 228, 238, 0.92) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(248, 251, 255, 0.9)
  ) !important;
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}
.marketing-root .marketing-hero-shell--crm,
.marketing-root .marketing-hero-shell--boundary {
  overflow: hidden;
}
.marketing-root .marketing-section-heading {
  display: grid;
  gap: 0.75rem;
}
.marketing-root .marketing-section-kicker {
  display: inline-block;
  margin: 0;
  color: #5b6f86;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.marketing-root .marketing-section-kicker--panel {
  position: relative;
  z-index: 1;
}
.marketing-root .marketing-section-title {
  margin: 0;
  max-width: 24ch;
  color: #0f172a;
  font-size: clamp(2rem, 1.7rem + 0.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.marketing-root .marketing-section-body {
  margin: 0;
  max-width: 44rem;
  color: #5f7084;
  font-size: 1rem;
  line-height: 1.72;
}
.marketing-root .marketing-section-title--supporting {
  max-width: 26ch;
  font-size: clamp(1.58rem, 1.4rem + 0.55vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.marketing-root .marketing-section-title--quiet {
  max-width: 28ch;
  font-size: clamp(1.38rem, 1.22rem + 0.4vw, 1.82rem);
  line-height: 1.16;
  letter-spacing: -0.028em;
}
.marketing-root .marketing-section-body--compact {
  max-width: 34rem;
  font-size: 0.96rem;
  line-height: 1.64;
}
.marketing-root .marketing-workflow-card {
  min-height: 100%;
  padding: 1.25rem !important;
  border-radius: 24px !important;
  border-color: rgba(221, 229, 238, 0.84) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04) !important;
}
.marketing-root .marketing-showcase-frame {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-showcase-frame--split {
  gap: 1.25rem;
}
.marketing-root .marketing-showcase-frame--version {
  align-items: start;
}
.marketing-root .marketing-showcase-frame__panel {
  min-width: 0;
}
.marketing-root .marketing-switcher__nav {
  display: grid;
  gap: 0.75rem;
}
.marketing-root .marketing-switcher__nav--story {
  gap: 0.7rem;
}
.marketing-root .marketing-switcher__nav--compact {
  gap: 0.6rem;
}
.marketing-root .marketing-switcher__nav--inline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.marketing-root .marketing-switcher__nav--subtle {
  gap: 0.45rem;
}
.marketing-root .marketing-switcher__nav--rail {
  align-content: start;
}
.marketing-root .marketing-switcher__nav--interactive .marketing-switcher__tab {
  cursor: pointer;
}
.marketing-root .marketing-switcher__tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(214, 223, 234, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
.marketing-root .marketing-switcher__tab:hover,
.marketing-root .marketing-switcher__tab:focus-visible {
  border-color: rgba(148, 163, 184, 0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  outline: none;
}
.marketing-root .marketing-switcher__tab.is-active {
  border-color: rgba(110, 138, 166, 0.58);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(246, 250, 255, 0.96)
  );
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.marketing-root .marketing-switcher__tab.is-inactive {
  opacity: 0.92;
}
.marketing-root .marketing-hero-copy .marketing-switcher__tab,
.marketing-root .marketing-switcher__nav--rail .marketing-switcher__tab {
  border-radius: 18px;
  box-shadow: none;
}
.marketing-root .marketing-hero-copy .marketing-switcher__tab:hover,
.marketing-root .marketing-hero-copy .marketing-switcher__tab:focus-visible,
.marketing-root .marketing-switcher__nav--rail .marketing-switcher__tab:hover,
.marketing-root
  .marketing-switcher__nav--rail
  .marketing-switcher__tab:focus-visible {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}
.marketing-root .marketing-switcher__tab--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}
.marketing-root .marketing-switcher__tab--inline {
  grid-template-columns: minmax(0, 1fr);
}
.marketing-root .marketing-switcher__tab--subtle {
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  border-color: rgba(221, 229, 238, 0.88);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.marketing-root .marketing-switcher__tab--subtle:hover,
.marketing-root .marketing-switcher__tab--subtle:focus-visible {
  border-color: rgba(178, 192, 208, 0.9);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}
.marketing-root .marketing-switcher__tab--subtle.is-active {
  border-color: rgba(152, 170, 190, 0.9);
  background: rgba(248, 251, 255, 0.95);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.marketing-root .marketing-switcher__tab--subtle .marketing-switcher__tab-step {
  min-height: 1.6rem;
  min-width: 2rem;
  padding: 0 0.5rem;
  background: rgba(226, 232, 240, 0.7);
  color: #526377;
  font-size: 0.68rem;
}
.marketing-root
  .marketing-switcher__tab--subtle
  .marketing-switcher__tab-copy
  strong {
  font-size: 0.92rem;
}
.marketing-root
  .marketing-switcher__tab--subtle
  .marketing-switcher__tab-copy
  span {
  font-size: 0.82rem;
}
.marketing-root .marketing-switcher__tab-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 1.8rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.marketing-root .marketing-switcher__tab-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.marketing-root .marketing-switcher__tab-copy strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
}
.marketing-root .marketing-switcher__tab-copy span {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}
.marketing-root .marketing-switcher__nav--story .marketing-switcher__tab {
  padding: 0.82rem 0.95rem;
}
.marketing-root
  .marketing-switcher__nav--story
  .marketing-switcher__tab-copy
  span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marketing-root .marketing-switcher__panel[hidden] {
  display: none !important;
}
.marketing-root .marketing-switcher__panel.is-active {
  animation: marketingPanelFade 220ms ease;
}
@keyframes marketingPanelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.marketing-root .marketing-workflow-card--focus {
  border-color: rgba(148, 163, 184, 0.82) !important;
  background: rgba(247, 250, 253, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}
.marketing-root .marketing-workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.marketing-root .marketing-dark-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.22),
      transparent 36%
    ),
    linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
  box-shadow:
    0 22px 48px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(148, 163, 184, 0.12) !important;
}
.marketing-root .marketing-dark-card .marketing-section-title {
  color: #f8fbff !important;
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.25);
}
.marketing-root .marketing-dark-card .marketing-section-kicker {
  color: #9fb1cb !important;
}
.marketing-root .marketing-dark-card .app-stat-label {
  color: #9eb3cf !important;
}
.marketing-root .marketing-dark-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}
.marketing-root .marketing-proof-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
.marketing-root [data-marketing-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 380ms ease,
    transform 380ms ease;
  transition-delay: var(--marketing-reveal-delay, 0ms);
}
.marketing-root [data-marketing-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.marketing-root .marketing-evidence-card {
  border-color: rgba(148, 163, 184, 0.38);
  background: #ffffff;
  min-height: 100%;
  padding: 1.2rem !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}
.marketing-root .marketing-product-canvas {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-hero-shell--record {
  overflow: hidden;
}
.marketing-root .marketing-record-mockup {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-record-mockup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.35rem;
}
.marketing-root .marketing-record-mockup__identity {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}
.marketing-root .marketing-record-mockup__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.75rem, 1.45rem + 0.9vw, 2.45rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.marketing-root .marketing-record-mockup__meta {
  display: block;
  margin-top: 0.15rem;
}
.marketing-root .marketing-record-mockup__meta-line {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.6;
}
.marketing-root .marketing-record-mockup__meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.92);
  color: #526377;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.marketing-root .marketing-record-mockup__main {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(219, 228, 238, 0.92);
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(246, 250, 255, 0.94)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(15, 23, 42, 0.04);
}
.marketing-root .marketing-record-mockup__main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.marketing-root .marketing-record-mockup__summary-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.marketing-root .marketing-record-mockup__summary-row {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(248, 250, 252, 0.82);
}
.marketing-root .marketing-record-mockup__summary-row.is-changed {
  border-color: rgba(226, 232, 240, 0.92);
  background: rgba(254, 249, 195, 0.32);
}
.marketing-root .marketing-record-mockup__summary-row strong {
  font-size: 1.08rem;
  line-height: 1.35;
}
.marketing-root .marketing-record-mockup__update {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.9);
}
.marketing-root .marketing-record-mockup__update-head,
.marketing-root .marketing-record-mockup__update-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.marketing-root .marketing-record-mockup__update-title {
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.38;
}
.marketing-root .marketing-record-mockup__update-body {
  margin: 0;
  color: #526377;
  line-height: 1.68;
}
.marketing-root .marketing-record-mockup__update-note {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(203, 213, 225, 0.7);
}
.marketing-root .marketing-record-mockup__update-note .app-subtle-note {
  margin: 0;
  font-size: 0.82rem;
}
.marketing-root .marketing-record-mockup__footer {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(203, 213, 225, 0.7);
}
.marketing-root .marketing-record-mockup__aux {
  min-width: 0;
  padding: 0.2rem 0;
  border-radius: 0;
  background: transparent;
}
.marketing-root .marketing-record-mockup__aux .app-stat-value {
  margin-top: 0.3rem;
  font-size: 1.1rem;
}
.marketing-root .marketing-record-mockup__aux .app-subtle-note {
  margin-top: 0.2rem;
  font-size: 0.82rem;
}
.marketing-root .marketing-story-header {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-story-header--wide .marketing-section-heading {
  max-width: 46rem;
}
.marketing-root .marketing-product-canvas__main,
.marketing-root .marketing-product-canvas__rail,
.marketing-root .marketing-version-canvas,
.marketing-root .marketing-overview-panel,
.marketing-root .marketing-static-timeline,
.marketing-root .marketing-boundary-panel {
  border: 1px solid rgba(219, 228, 238, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}
.marketing-root .marketing-product-canvas__main,
.marketing-root .marketing-version-canvas,
.marketing-root .marketing-overview-panel,
.marketing-root .marketing-static-timeline,
.marketing-root .marketing-boundary-panel {
  padding: 1.2rem;
}
.marketing-root .marketing-product-canvas__rail {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
}
.marketing-root .marketing-product-canvas__section {
  padding: 1rem;
  border-radius: 20px;
}
.marketing-root .marketing-timeline-row,
.marketing-root .marketing-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.92rem;
}
.marketing-root .marketing-timeline-row {
  display: block;
}
.marketing-root .marketing-timeline-row.is-emphasized {
  border-color: rgba(191, 219, 254, 0.96);
  background: rgba(239, 246, 255, 0.9);
}
.marketing-root .marketing-summary-row.is-changed {
  border-color: rgba(253, 230, 138, 0.96);
  background: rgba(254, 249, 195, 0.5);
}
.marketing-root .marketing-inline-metrics {
  display: grid;
  gap: 0.75rem;
}
.marketing-root .marketing-inline-metric {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(247, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.marketing-root .marketing-note-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid rgba(221, 229, 238, 0.84);
  border-bottom: 1px solid rgba(221, 229, 238, 0.84);
  background: rgba(221, 229, 238, 0.72);
}
.marketing-root .marketing-note-strip__item {
  padding: 1.2rem 0.2rem;
}
.marketing-root .marketing-note-strip--summary {
  gap: 1.2rem;
  overflow: visible;
  border: 0;
  background: transparent;
}
.marketing-root .marketing-note-strip--summary .marketing-note-strip__item {
  padding: 1.05rem 0 0.15rem;
  border-top: 1px solid rgba(221, 229, 238, 0.84);
  background: transparent;
}
.marketing-root
  .marketing-note-strip--summary
  .marketing-note-strip__item
  .app-section-caption {
  margin-top: 0.55rem;
  max-width: 34ch;
}
.marketing-root
  .marketing-note-strip--summary
  .marketing-note-strip__item--featured {
  padding-inline: 0.2rem;
}
.marketing-root
  .marketing-note-strip--summary
  .marketing-note-strip__item--featured
  h2 {
  color: #0f172a;
}
.marketing-root .marketing-editorial-section {
  display: grid;
  gap: 1.2rem;
}
.marketing-root .marketing-editorial-section--bridge {
  margin-top: 0.2rem;
}
.marketing-root .marketing-editorial-section--flow {
  padding-top: 0.2rem;
}
.marketing-root .marketing-editorial-section--light,
.marketing-root .marketing-editorial-section--faq {
  padding-top: 0.35rem;
}
.marketing-root .marketing-editorial-section--fit {
  padding-top: 0.15rem;
}
.marketing-root .marketing-editorial-section--faq-shell {
  padding-top: 0.5rem;
}
.marketing-root .marketing-compare-band {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(213, 224, 236, 0.9);
  border-radius: 30px;
  background: rgba(226, 234, 244, 0.55);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.marketing-root .marketing-compare-band__column {
  padding: 1.4rem 1.45rem;
  background: rgba(255, 255, 255, 0.92);
}
.marketing-root .marketing-compare-band__column.is-before {
  background: rgba(248, 250, 252, 0.96);
}
.marketing-root .marketing-compare-band__column.is-after {
  background: rgba(244, 248, 252, 0.96);
}
.marketing-root .marketing-fit-list {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.marketing-root .marketing-fit-list__item {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.25rem;
  border-top: 1px solid rgba(221, 229, 238, 0.86);
}
.marketing-root .marketing-fit-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.58rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #c0d3e8;
}
.marketing-root .marketing-faq-grid {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid rgba(218, 228, 238, 0.9);
}
.marketing-root .marketing-faq-item {
  align-self: start;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(218, 228, 238, 0.9);
}
.marketing-root .marketing-faq-item:first-child {
  border-top: 0;
}
.marketing-root .marketing-faq-item__summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.marketing-root .marketing-faq-item__summary::-webkit-details-marker {
  display: none;
}
.marketing-root .marketing-faq-item__icon {
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}
.marketing-root .marketing-faq-item[open] .marketing-faq-item__icon {
  transform: rotate(45deg);
}
.marketing-root .marketing-faq-item__body {
  margin: 0.85rem 0 0;
  max-width: 52rem;
  color: #526377;
  line-height: 1.72;
}
.marketing-root .marketing-overview-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: rgba(218, 228, 238, 0.78);
}
.marketing-root .marketing-section-card--perspective {
  padding-top: 1.35rem !important;
}
.marketing-root .marketing-overview-panel__row {
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
}
.marketing-root .marketing-perspective-stage {
  display: grid;
  gap: 1.35rem;
  min-height: 100%;
  padding: 1.3rem 1.35rem 1.4rem;
  border: 1px solid rgba(206, 219, 232, 0.95);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(233, 241, 250, 0.9),
    rgba(244, 248, 252, 0.92)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 28px rgba(15, 23, 42, 0.04);
}
.marketing-root .marketing-perspective-stage__header {
  display: grid;
  gap: 0.9rem;
}
.marketing-root .marketing-perspective-stage__header .app-section-caption {
  margin: 0;
  max-width: 33rem;
  color: #526377;
  line-height: 1.7;
}
.marketing-root .marketing-perspective-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.marketing-root .marketing-perspective-stage__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(193, 207, 223, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.marketing-root .marketing-flow-band,
.marketing-root .marketing-editorial-band {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-editorial-band--notes {
  gap: 0;
  border-top: 1px solid rgba(221, 229, 238, 0.82);
  border-bottom: 1px solid rgba(221, 229, 238, 0.82);
}
.marketing-root .marketing-annotation-block {
  padding: 1.2rem 0.2rem;
}
.marketing-root .marketing-annotation-block + .marketing-annotation-block {
  border-top: 1px solid rgba(221, 229, 238, 0.82);
}
.marketing-root .marketing-static-timeline__items {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.marketing-root .marketing-static-timeline--spotlight {
  gap: 0;
}
.marketing-root .marketing-static-timeline__lede {
  padding: 0.2rem 0 1.05rem;
  border-bottom: 1px solid rgba(221, 229, 238, 0.82);
}
.marketing-root .marketing-static-timeline__lead-copy {
  margin: 0;
  max-width: 34rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.72;
}
.marketing-root .marketing-static-timeline__item {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.35rem;
  border-left: 2px solid rgba(203, 213, 225, 0.95);
  background: rgba(248, 250, 252, 0.82);
  border-radius: 0 18px 18px 0;
}
.marketing-root .marketing-static-timeline__item::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 1.15rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #cbd5e1;
  border: 2px solid #ffffff;
}
.marketing-root .marketing-static-timeline__item.is-accented {
  border-left-color: rgba(52, 211, 153, 0.8);
  background: rgba(236, 253, 245, 0.9);
}
.marketing-root .marketing-static-timeline__item.is-accented::before {
  background: #34d399;
}
.marketing-root .marketing-boundary-panel {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-boundary-panel--spotlight {
  gap: 1.15rem;
}
.marketing-root .marketing-boundary-panel__summary {
  padding: 0.1rem 0 0.15rem;
  border-bottom: 1px solid rgba(221, 229, 238, 0.82);
}
.marketing-root .marketing-boundary-panel__columns {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(218, 228, 238, 0.78);
}
.marketing-root .marketing-boundary-panel__column,
.marketing-root .marketing-boundary-panel__note {
  padding: 1.3rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
}
.marketing-root .marketing-boundary-panel__note {
  border-top: 1px solid rgba(221, 229, 238, 0.85);
  background: rgba(247, 250, 252, 0.92);
}
.marketing-root .marketing-related-editorial {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(221, 229, 238, 0.82);
}
.marketing-root .marketing-related-editorial__grid {
  display: grid;
  gap: 0.9rem;
}
.marketing-root .marketing-related-editorial__intro {
  max-width: 30rem;
}
.marketing-root .marketing-related-editorial__body {
  display: grid;
  gap: 0.8rem;
}
.marketing-root .marketing-related-editorial__group {
  display: grid;
  gap: 0.5rem;
}
.marketing-root .marketing-related-editorial__label {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marketing-root .marketing-related-editorial__path {
  display: grid;
  gap: 0.15rem;
}
.marketing-root .marketing-related-editorial__path-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(232, 238, 245, 0.88);
  color: #0f172a;
  text-decoration: none;
}
.marketing-root .marketing-related-editorial__path-link:first-child {
  border-top: 0;
}
.marketing-root .marketing-related-editorial__path-index {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marketing-root .marketing-related-editorial__link-copy {
  min-width: 0;
}
.marketing-root .marketing-related-editorial__link {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.marketing-root .marketing-related-editorial__path-link:hover,
.marketing-root .marketing-related-editorial__path-link:focus-visible,
.marketing-root .marketing-related-editorial__link:hover,
.marketing-root .marketing-related-editorial__link:focus-visible {
  color: #1d4ed8;
}
.marketing-root .marketing-related-editorial__group--cta {
  align-content: start;
}
.marketing-root .marketing-related-editorial__cta {
  padding-top: 0.05rem;
}
.marketing-root .marketing-resource-grid {
  display: grid;
  gap: 1rem;
}
.marketing-root .marketing-resource-link {
  display: block;
  min-height: 100%;
  padding: 1.25rem;
  border-top: 1px solid rgba(221, 229, 238, 0.84);
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}
.marketing-root .marketing-resource-link:hover,
.marketing-root .marketing-resource-link:focus-visible {
  border-color: rgba(148, 163, 184, 0.95);
  background: rgba(255, 255, 255, 0.42);
  outline: none;
  transform: translateY(-1px);
}
.marketing-root .marketing-resource-link__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marketing-root .marketing-cta-band__content {
  align-items: end;
  padding: 0.2rem 0;
}
.marketing-root .marketing-cta-band {
  background:
    radial-gradient(
      circle at top right,
      rgba(73, 105, 148, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, #11253a, #132840) !important;
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.marketing-root .navbar-toggle {
  display: none;
}
.marketing-root .navbar-menu,
.marketing-root .navbar-controls {
  display: flex;
}
.marketing-root .marketing-mockup-emphasis-target {
  transition:
    border-color 240ms ease,
    background-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}
.marketing-root .marketing-mockup-emphasis-target.is-emphasized {
  border-color: rgba(59, 130, 246, 0.28);
  background-color: rgba(239, 246, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.16),
    0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.marketing-root .marketing-evidence-card .app-stat-label {
  color: #64748b;
  letter-spacing: 0.08em;
}
.marketing-root .marketing-evidence-card strong {
  max-width: 16ch;
}
.marketing-root .marketing-evidence-card .app-subtle-note {
  max-width: 30ch;
  line-height: 1.6;
}
.marketing-root .marketing-checklist {
  margin: 0;
  padding-left: 1.1rem;
  color: #5f7084;
  font-size: 0.95rem;
  line-height: 1.75;
}
.marketing-root .marketing-checklist li + li {
  margin-top: 0.22rem;
}
.marketing-content-shell.marketing-auth-shell {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}
.marketing-auth-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.marketing-auth-intro {
  max-width: 38rem;
}
.marketing-auth-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #0f172a;
}
.marketing-auth-body {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  color: #526377;
  font-size: 1.03rem;
  line-height: 1.75;
}
.marketing-auth-card {
  max-width: 42rem;
}
.marketing-auth-card-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.auth-submit-button {
  min-width: 9rem;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #334155;
}
.auth-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
.auth-remember label {
  margin: 0;
  font-weight: 600;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #526377;
}
.auth-links a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}
.auth-links a:hover,
.auth-links a:focus-visible {
  color: #1e40af;
  text-decoration: underline;
}
.marketing-auth-card .app-form-stack > div > small {
  display: block;
  margin: 0.35rem 0 0.55rem;
  color: #64748b;
  font-size: 0.82rem;
}
.auth-error-messages {
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff1f2;
  padding: 1rem 1rem 0.95rem;
  color: #9f1239;
}
.auth-error-messages h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #881337;
}
.auth-error-messages ul {
  margin: 0;
  padding-left: 1.05rem;
}
.auth-error-messages li + li {
  margin-top: 0.24rem;
}
@media (min-width: 1024px) {
  .marketing-root .marketing-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    align-items: center;
  }
  .marketing-root .marketing-showcase-frame--split {
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    align-items: start;
  }
  .marketing-root .marketing-showcase-frame--version {
    grid-template-columns: minmax(228px, 0.34fr) minmax(0, 1fr);
  }
  .marketing-root .marketing-product-canvas {
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.82fr);
    align-items: start;
  }
  .marketing-root .marketing-flow-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .marketing-root .marketing-editorial-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marketing-root .marketing-editorial-band--notes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    border-bottom: 0;
  }
  .marketing-root .marketing-editorial-band--notes .marketing-annotation-block,
  .marketing-root
    .marketing-editorial-band--notes
    .marketing-annotation-block
    + .marketing-annotation-block {
    border-top: 0;
  }
  .marketing-root .marketing-editorial-band--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .marketing-root .marketing-compare-band {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .marketing-root .marketing-boundary-panel__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marketing-root .marketing-note-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .marketing-root .marketing-note-strip--summary {
    gap: 1.8rem;
  }
  .marketing-root
    .marketing-note-strip--summary
    .marketing-note-strip__item
    + .marketing-note-strip__item {
    border-left: 1px solid rgba(221, 229, 238, 0.78);
    padding-left: 1.25rem;
  }
  .marketing-root .marketing-note-strip--summary .marketing-note-strip__item {
    min-height: 100%;
  }
  .marketing-root .marketing-related-editorial__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    align-items: start;
  }
  .marketing-root .marketing-related-editorial__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
  }
  .marketing-root .marketing-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
  }
  .marketing-root .marketing-fit-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.5rem;
  }
  .marketing-root .marketing-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.75rem;
  }
  .marketing-root .marketing-switcher__nav--story {
    gap: 0.65rem;
  }
  .marketing-root .marketing-resource-link:nth-child(-n + 3) {
    border-top: 0;
  }
  .marketing-auth-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.88fr);
  }
}
@media (max-width: 767px) {
  .marketing-root .navbar-toggle {
    display: inline-flex;
  }
  .marketing-root .navbar-menu,
  .marketing-root .navbar-controls {
    display: none;
  }
  .marketing-root .navbar-container.menu-open .navbar-menu,
  .marketing-root .navbar-container.menu-open .navbar-controls {
    display: grid;
  }
  .marketing-root .marketing-page-shell {
    gap: 2rem;
  }
  .marketing-root .marketing-content-shell {
    padding-inline: 1rem;
  }
  .marketing-root .marketing-hero-title {
    max-width: 11ch;
    font-size: clamp(2.4rem, 10vw, 3.3rem);
  }
  .marketing-root .marketing-switcher__tab {
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
  }

  .marketing-root .marketing-switcher__nav--inline {
    grid-template-columns: minmax(0, 1fr);
  }
  .marketing-root .marketing-record-mockup__header,
  .marketing-root .marketing-record-mockup__main-head {
    gap: 0.8rem;
  }
  .marketing-root .marketing-record-mockup__summary-grid,
  .marketing-root .marketing-record-mockup__footer {
    grid-template-columns: minmax(0, 1fr);
  }
  .marketing-root .marketing-record-mockup__main {
    padding: 1rem;
  }
  .marketing-root .marketing-record-mockup__aux {
    padding: 0.35rem 0;
  }
  .marketing-root .marketing-record-mockup__summary-row {
    padding: 0.82rem 0.92rem;
  }
  .marketing-root .marketing-section-card,
  .marketing-root .marketing-hero-shell {
    border-radius: 24px !important;
  }
  .marketing-root .marketing-perspective-stage {
    padding: 1.15rem 1.15rem 1.2rem;
    gap: 1rem;
  }
  .marketing-root .marketing-perspective-stage__chip {
    min-height: 2.7rem;
    padding: 0.62rem 0.9rem;
  }
  .marketing-root .marketing-compare-band__column,
  .marketing-root .marketing-version-canvas,
  .marketing-root .marketing-static-timeline,
  .marketing-root .marketing-boundary-panel,
  .marketing-root .marketing-product-canvas__main {
    padding: 1rem;
  }
  .marketing-root .marketing-annotation-block {
    padding-inline: 0;
  }
  .marketing-root .marketing-related-editorial__path-link {
    gap: 0.55rem;
  }
  .marketing-root .marketing-resource-link {
    padding-inline: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-root [data-marketing-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marketing-root .marketing-mockup-emphasis-target {
    transition: none;
  }

  .marketing-root .marketing-mockup-emphasis-target.is-emphasized {
    transform: none;
    box-shadow: none;
  }

  .marketing-root .marketing-switcher__tab,
  .marketing-root .marketing-switcher__panel.is-active {
    transition: none;
    animation: none;
    transform: none;
  }

  .marketing-root .marketing-faq-item__icon {
    transition: none;
  }

  .marketing-root .marketing-resource-link {
    transition: none;
    transform: none;
  }
}
.app-page-split-main,
.app-page-split-side {
  min-width: 0;
}
@media (min-width: 1100px) {
  .app-page-split {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
    align-items: start;
  }

  .customer-workspace-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  }
}

@media (min-width: 1480px) {
  .customer-workspace-layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.62fr);
  }

  .customer-top-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .customer-quote-summary-grid {
    grid-template-columns: 1fr;
  }
  .app-page-header-actions {
    width: 100%;
  }
  .app-page-header-actions > * {
    width: 100%;
  }
  .app-page-shell--products .page-primary-cta .app-shortcut-badge {
    display: none;
  }
  .app-page-shell--products .app-toolbar-surface,
  .app-page-shell--products .app-listing-shell {
    max-width: none;
  }
  .products-table-desktop {
    display: none;
  }
  .products-mobile-list {
    display: grid;
    gap: 0.75rem;
  }
  .products-mobile-card {
    padding: 0.9rem;
  }
  .products-mobile-head {
    margin-bottom: 0.2rem;
  }
  .products-mobile-title-wrap .product-sku {
    color: #64748b;
    font-size: 0.83rem;
  }
  .products-mobile-card .dashboard-mobile-row {
    grid-template-columns: 6.4rem minmax(0, 1fr);
  }
  .products-mobile-card .dashboard-mobile-row strong {
    justify-self: end;
    text-align: right;
  }
  .products-mobile-card .product-row-menu-trigger {
    width: 2rem;
    height: 2rem;
    opacity: 1;
  }
}
.status-potential {
  background-color: #d1ecf1;
  color: #0c5460;
}
.status-following {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.status-closed {
  background-color: #e2e3e5;
  color: #383d41;
}
.status-new {
  background-color: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}
.status-contacted {
  background-color: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.status-quoting {
  background-color: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.status-inactive {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}
.customer-details,
.quote-details {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.customer-details p,
.quote-details p {
  margin-bottom: 0.75rem;
}
.customer-next-follow-up-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  border-radius: 0;
  padding: 0;
  margin-left: 0;
}
.customer-next-follow-up-line strong {
  min-width: 0;
}
.customer-next-follow-up-line.follow-up-today {
  background: transparent;
}
.customer-next-follow-up-line.follow-up-overdue {
  background: transparent;
}
.customer-follow-up-callout {
  margin: -0.1rem 0 0.45rem 0;
  border: 1px solid #e2e8f0;
  background: var(--ui-surface-bg-muted);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  box-shadow: var(--ui-shadow);
}
.customer-follow-up-callout strong {
  display: block;
  color: #0f172a;
  margin-top: 0.15rem;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}
.customer-follow-up-meta {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: #475569;
  font-size: 0.82rem;
}
.customer-follow-up-callout.follow-up-overdue {
  border-color: #fecaca;
  background: var(--ui-surface-bg-danger);
}
.customer-follow-up-callout.follow-up-today {
  border-color: #c7d2fe;
  background: #f7faff;
}
.customer-follow-up-callout.follow-up-upcoming {
  border-color: #fde68a;
  background: var(--ui-surface-bg-watch);
}
.customer-follow-up-callout-actions {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.customer-task-board,
.customer-timeline {
  background: var(--ui-surface-bg);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.98rem 1.02rem;
  margin: 0 0 var(--space-2) 0;
  box-shadow: var(--ui-shadow);
}
.customer-task-board h3,
.customer-timeline h3 {
  margin: 0 0 var(--space-1) 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.customer-task-more[hidden] {
  display: none;
}
.customer-task-toggle {
  margin-top: var(--space-1);
}
.customer-task-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.88rem 0.94rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.customer-task-card.is-urgent {
  border-color: #fecaca;
  background: #fef2f2;
}
.customer-task-card.is-today {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.customer-task-card.is-upcoming {
  border-color: #fde68a;
  background: #fffbeb;
}
.customer-task-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  padding: 0 0.48rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.customer-task-meta h4 {
  margin: var(--space-1) 0 0 0;
  color: #0f172a;
  font-size: 0.97rem;
}
.customer-task-meta p {
  margin: var(--space-1) 0 0 0;
  color: #475569;
  font-size: 0.88rem;
}
.customer-task-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.customer-task-actions-note {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.customer-task-actions .button_to {
  margin: 0;
}

.customer-task-cta {
  min-height: 34px !important;
  padding: 0 0.8rem !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
}
.customer-engagement-badge.is-active {
  background: #ecfdf5;
  color: #166534;
}
.customer-engagement-badge.is-cooling {
  background: #fffbeb;
  color: #92400e;
}
.customer-engagement-badge.is-risk {
  background: #fef2f2;
  color: #991b1b;
}
.customer-timeline-list-scroll {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.customer-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: var(--space-1);
  background: #94a3b8;
  box-shadow: 0 0 0 3px #f1f5f9;
}
.customer-timeline-item.is-good .customer-timeline-dot {
  background: #16a34a;
}
.customer-timeline-item.is-urgent .customer-timeline-dot {
  background: #dc2626;
}
.customer-timeline-item.is-today .customer-timeline-dot {
  background: #2563eb;
}
.customer-timeline-content {
  border-left: 1px solid #e2e8f0;
  padding-left: var(--space-1);
  padding-bottom: var(--space-1);
}
.customer-timeline-time {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}
.customer-timeline-content h4 {
  margin: var(--space-1) 0 0 0;
  color: #0f172a;
  font-size: 0.95rem;
}
.customer-timeline-content p {
  margin: var(--space-1) 0 0 0;
  color: #475569;
  font-size: 0.88rem;
}
.customer-timeline-toggle {
  margin-top: var(--space-1);
}

.customer-inline-toggle {
  min-height: 34px !important;
  padding: 0 0.85rem !important;
  border-radius: 999px !important;
  font-size: 0.83rem !important;
  justify-self: start;
}
.customer-timeline-hint {
  margin: 0 0 var(--space-1) 0;
  color: #475569;
  font-size: 0.86rem;
}
.customer-timeline-subhead {
  margin: var(--space-1) 0;
  color: #334155;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.customer-timeline-system {
  margin-top: var(--space-1);
  border-top: 1px dashed #dbe3ee;
  padding-top: var(--space-1);
}
.customer-timeline-more[hidden] {
  display: none;
}
.quote-queue-toolbar {
  margin-top: 0.2rem;
  margin-bottom: 0.35rem;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 1rem;
}
.quote-action-primary {
  min-width: 156px;
  min-height: 40px !important;
  padding-inline: 1rem !important;
  border-radius: 12px !important;
}
.quote-expand-toggle {
  margin-top: 0.5rem;
  min-height: 36px !important;
  padding: 0 1rem !important;
  border-radius: 999px !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: none !important;
}
.quotes-mode-note {
  margin: -0.1rem 0 0.2rem 0;
  color: #475569;
  font-size: 0.84rem;
}
.quotes-structure-note {
  margin: 0 0 0.7rem 0;
  color: #64748b;
  font-size: 0.82rem;
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.quotes-structure-note strong {
  color: #0f172a;
}
.customer-quote-action-bar {
  margin-top: 0.1rem;
  margin-bottom: 0.3rem;
}
.customer-actions-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
}
.customer-quote-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.customer-quotes-header {
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  margin-top: 0;
  margin-bottom: 0.15rem;
}
.customer-quotes-header h3 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.customer-quotes-header .app-subtle-note {
  max-width: 32rem;
  justify-self: start;
}
.customer-quote-status-filters {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}
.customer-quote-view-filters {
  margin-top: 0;
  margin-bottom: 0.35rem;
}
.customer-quote-toolbar {
  margin-top: 0;
  margin-bottom: 0.45rem;
}
.customer-quote-toolbar .quote-queue-toolbar-grid {
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 0.6rem;
}
.customer-quote-toolbar .app-ui-button--secondary {
  min-width: 88px;
}
.customer-toolbar-apply {
  min-width: 96px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: #334155 !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}
.customer-toolbar-apply:hover {
  color: #1e293b !important;
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}
.quote-card-list {
  display: grid;
  gap: 0.65rem;
}
.quote-summary-grid {
  margin-bottom: 0.6rem;
}
.product-show-header {
  align-items: start;
  gap: 0.9rem;
}
.product-show-meta {
  margin: 0.1rem 0 0;
  color: #64748b;
  font-size: 0.94rem;
}
.product-show-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.product-show-header-actions .button_to {
  margin: 0;
  display: inline-flex;
}
.product-show-edit-cta,
.product-show-delete-cta {
  min-height: 40px;
  padding-inline: 0.95rem;
}
.product-show-delete-cta {
  box-shadow: none;
}
.product-show-content {
  margin-top: 0.45rem;
}
.product-show-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.86fr);
  gap: 1.1rem;
  align-items: start;
}

.product-show-top-grid > :only-child {
  grid-column: 1 / -1;
}
.product-show-hero {
  margin-top: -0.1rem;
  min-width: 0;
}
.product-show-hero-frame {
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  border: 1px solid #dbe3ee;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.92),
    rgba(238, 244, 251, 0.72) 34%,
    rgba(230, 238, 248, 0.88) 100%
  );
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  min-height: 100%;
}
.product-show-main-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.product-show-main-image {
  display: block;
  width: 100%;
  height: clamp(360px, 48vw, 520px);
  object-fit: cover;
}
.product-show-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
  padding: 1.25rem !important;
  border-radius: 24px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 251, 255, 0.98) 100%
  ) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06) !important;
  position: sticky;
  top: 1.1rem;
}
.product-show-rail-head {
  display: grid;
  gap: 0.7rem;
}
.product-show-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #dbe3ee;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-show-rail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}
.product-show-rail-label {
  width: 100%;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.product-show-rail-price strong {
  color: #0f172a;
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.product-show-rail-price span:last-child {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}
.product-show-rail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.product-show-rail-metric {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}
.product-show-rail-metric span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}
.product-show-rail-metric strong {
  color: #0f172a;
  font-size: 0.96rem;
}
.product-show-rail-config-grid {
  display: grid;
  gap: 0.9rem;
}
.product-show-rail-section {
  display: grid;
  gap: 0.55rem;
}
.product-show-rail-description {
  max-height: 13rem;
  overflow-y: auto;
  padding: 0.15rem 0.2rem 0 0;
}
.product-show-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.product-show-grid--workspace {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.32fr);
}
.product-show-grid h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.product-show-block {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.15rem 1.2rem !important;
  border-radius: 20px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(251, 253, 255, 0.98) 100%
  ) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05) !important;
}
.product-show-subtitle {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 0.92rem;
}
.product-show-config-block {
  display: grid;
  gap: 0.45rem;
}
.product-show-configurator {
  min-width: 0;
}
.product-show-preset-label {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
}
.product-show-pricing-list,
.product-show-pricing-rows {
  display: grid;
  gap: 0.8rem;
}
.product-show-label {
  color: #475569;
  font-size: 0.86rem;
  min-width: 120px;
  display: inline-flex;
}
.product-show-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.36rem;
  min-height: 1.4em;
}
.product-show-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin-top: 0.1rem;
}

.product-show-pricing .quote-form-hint {
  color: #64748b;
  font-size: 0.8rem;
}
.product-show-kv p {
  margin: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.product-show-kv p strong {
  color: #334155;
  font-size: 0.82rem;
}
.product-show-kv p span {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
}
.product-show-badges {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-stat-pill {
  min-height: 28px;
  padding-inline: 0.72rem;
}
.product-show-preset-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.15rem;
}
.product-show-preset-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.product-show-preset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-show-preset-name {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}
.product-show-preset-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}
.product-show-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.product-show-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.65rem;
  border: 1px solid #d6e0ec;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
}
.product-inline-badge {
  margin-top: 0.05rem;
}
.product-show-spec-list {
  margin: 0.12rem 0 0.2rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
  color: #334155;
}
.product-show-spec-list li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.45;
}
.product-show-spec-key {
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}
.product-show-spec-value {
  color: #1f2937;
  word-break: break-word;
}
.product-description-text {
  color: #334155;
  line-height: 1.65;
  font-size: 0.95rem;
  padding-top: 0.1rem;
  word-break: break-word;
}
.product-show-block .product-description-text p {
  margin: 0.28rem 0;
}
.product-show-pricing .product-show-kv {
  margin-top: 0.2rem;
}
.product-show-configurator
  .product-show-config-block
  + .product-show-config-block {
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
}
.product-show-gallery-grid {
  margin-top: 0.28rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 0.7rem;
  align-items: start;
}
.product-edit-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}
.product-edit-stack {
  display: grid;
  gap: 1rem;
}
.product-edit-media {
  position: sticky;
  top: 1.1rem;
}
.product-edit-panel {
  border-color: #e9eef6 !important;
  border-radius: 22px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(252, 253, 255, 0.98) 100%
  ) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03) !important;
}
.product-edit-panel--media {
  padding: 1.15rem 1.1rem !important;
}
.product-main-image-panel {
  margin-bottom: 1rem;
}
.product-main-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 340px;
  padding: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.product-edit-main-image {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  object-position: center;
}
.product-upload-panel {
  margin-bottom: 0.9rem;
}
.product-gallery-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.product-upload-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.product-upload-actions label.app-ui-button {
  cursor: pointer;
}
.product-upload-file-meta {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.3;
}
.product-edit-actions {
  margin-top: 0.15rem;
}
.product-gallery-editor {
  display: grid;
  gap: 0.55rem;
}
.product-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product-gallery-toolbar-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-ghost-btn {
  min-height: 34px;
  padding: 0.28rem 0.72rem;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}
.product-ghost-btn:hover {
  background: #f8fafc;
  border-color: #c3d0e0;
}
.product-ghost-btn.is-danger {
  color: #b91c1c;
  border-color: #f1c4c4;
}
.product-ghost-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.product-media-label {
  margin: 0 0 0.45rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}
.product-gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}
.product-gallery-thumb-wrap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.product-gallery-thumb-wrap:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.product-gallery-thumb-wrap.is-current {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.product-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-main-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.product-upload-preview-item {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  padding: 0.3rem;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.product-upload-preview-item.is-selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.product-upload-preview-item:hover {
  transform: translateY(-1px);
}
.product-lightbox[hidden] {
  display: none;
}
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
}
.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}
.product-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  margin: 4vh auto;
  padding: 1rem;
}
.product-lightbox-image {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  background: #0f172a;
}
.product-lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.quote-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 1rem 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.quote-items-responsive {
  overflow: visible;
}
.quote-items-table thead {
  background-color: #34495e;
  color: white;
}
.quote-items-table th {
  padding: 0.7rem 0.8rem;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.quote-items-table td {
  padding: 0.74rem;
  border-top: 1px solid #d8e1eb;
  border-bottom: 1px solid #d8e1eb;
  overflow: visible;
  position: relative;
  background: #fff;
  vertical-align: middle;
}
.quote-items-table td:first-child {
  border-left: 1px solid #d8e1eb;
  border-radius: 10px 0 0 10px;
}
.quote-items-table td:last-child {
  border-right: 1px solid #d8e1eb;
  border-radius: 0 10px 10px 0;
}
.quote-items-table tbody tr:hover td {
  background-color: #f8fbff;
}
.quote-col-product {
  width: 32%;
}
.quote-col-desc {
  width: 20%;
}
.quote-col-specs {
  width: 16%;
}
.quote-col-addons {
  width: 16%;
}
.quote-col-price {
  width: 8%;
}
.quote-col-qty {
  width: 8%;
}
.quote-col-remove {
  width: 10%;
}
.quote-col-remove .btn {
  width: 100%;
  min-width: 92px;
}
.quote-item-remove-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.quote-item-remove-icon:hover {
  background: #fee2e2;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.15);
}
.quote-item-remove-icon:active {
  transform: translateY(1px);
}
.quote-col-specs textarea,
.quote-col-addons textarea {
  min-width: 170px;
  min-height: 96px;
  resize: vertical;
  line-height: 1.35;
}
.quote-items-table th {
  white-space: nowrap;
}
.quote-item-row {
  position: relative;
}
.quote-item-row.is-dropdown-open {
  z-index: 40;
}
.quote-item-row.is-new {
  animation: quoteRowIn 220ms ease-out;
}
.quote-document {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.6rem;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}
.quote-document-shell {
  margin-top: 0;
  background: var(--ui-surface-bg);
  border-color: #dbe4ef;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}
.quote-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
.quote-signal-strip {
  margin: 0.82rem 0 1rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: var(--ui-surface-bg-muted);
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.75rem;
}
.quote-signal-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.1rem 0.05rem;
}
.quote-signal-strip.is-urgent {
  border-color: #fde68a;
  background: var(--ui-surface-bg-watch);
}
.quote-signal-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}
.quote-signal-item strong {
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.quote-doc-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.quote-doc-subtitle {
  margin: 0.2rem 0 0 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}
.quote-doc-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
}
.quote-doc-version {
  color: #475569;
  font-size: 1rem;
}
.quote-doc-subline {
  color: #64748b;
  margin-top: 0.2rem;
}
.quote-doc-logo-wrap {
  min-width: 150px;
  text-align: right;
}
.quote-doc-logo {
  max-height: 64px;
  max-width: 180px;
}
.quote-engagement-details {
  margin: 0.2rem 0 0.9rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfdff;
  padding: 0.2rem 0.3rem;
}
.quote-engagement-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}
.quote-engagement-details summary::before {
  content: "";
  width: 0.78rem;
  height: 0.78rem;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' stroke='%2394a3b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.12s ease;
}
.quote-engagement-details[open] summary::before {
  transform: rotate(90deg);
}
.quote-engagement-details summary::-webkit-details-marker {
  display: none;
}
.quote-engagement-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem 0.75rem;
  margin-top: 0.22rem;
  padding: 0.55rem 0.6rem 0.6rem;
  border-top: 1px solid #e2e8f0;
}
.quote-engagement-details-grid p {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.45;
}
.quote-revision-panel {
  margin: 0 0 1rem 0;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: var(--ui-surface-bg-muted);
  padding: 1rem;
}
.quote-revision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.quote-revision-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #0f172a;
}
.quote-revision-head p {
  margin: 0.18rem 0 0 0;
  color: #64748b;
  font-size: 0.84rem;
}
.quote-copy-summary-btn {
  white-space: nowrap;
}
.quote-revision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.quote-revision-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: #fff;
}
.quote-revision-card--commercial {
  background: #fffaf2;
  border-color: #fde7b7;
}
.quote-revision-card h4 {
  margin: 0 0 0.55rem 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.quote-revision-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.quote-revision-card li {
  display: grid;
  gap: 0.12rem;
}
.quote-revision-card li strong {
  color: #0f172a;
}
.quote-revision-card li span {
  color: #475569;
  font-size: 0.84rem;
}
.quote-revision-empty {
  margin: 0;
  color: #475569;
}
.quote-revision-total {
  margin: 0.95rem 0 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid #dbe3ee;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.quote-revision-total span {
  color: #64748b;
}
.quote-revision-total strong {
  color: #0f172a;
}
#quote-revision-diff {
  scroll-margin-top: 84px;
}
.quote-decision-review {
  margin: 0 0 1rem 0;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: var(--ui-surface-bg-muted);
  padding: 1rem;
}
.quote-decision-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.quote-decision-review-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.82rem 0.88rem;
}
.quote-decision-review-card.is-good {
  background: var(--ui-surface-bg-good);
  border-color: #bbf7d0;
}
.quote-decision-review-card.is-watch {
  background: var(--ui-surface-bg-watch);
  border-color: #fde68a;
}
.quote-decision-review-card.is-urgent {
  background: var(--ui-surface-bg-danger);
  border-color: #fecaca;
}
.quote-decision-review-card span,
.quote-decision-review-notes > span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quote-decision-review-card strong {
  display: block;
  margin-top: 0.24rem;
  color: #0f172a;
  font-size: 1rem;
}
.quote-decision-review-card p {
  margin: 0.3rem 0 0 0;
  color: #475569;
  font-size: 0.83rem;
  line-height: 1.45;
}
.quote-decision-review-notes {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
}
.quote-decision-review-notes ul {
  margin: 0.45rem 0 0 0;
  padding-left: 1rem;
  color: #475569;
  display: grid;
  gap: 0.28rem;
}
.quote-decision-timeline {
  margin: 0 0 1rem 0;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
  padding: 1rem;
}
.quote-decision-recap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.quote-decision-recap-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.78rem 0.85rem;
}
.quote-decision-recap-card span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quote-decision-recap-card strong {
  display: block;
  margin-top: 0.24rem;
  color: #0f172a;
  font-size: 1rem;
}
.quote-decision-recap-card p {
  margin: 0.3rem 0 0 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}
.quote-decision-list {
  position: relative;
  display: grid;
  gap: 0.85rem;
}
.quote-decision-list::before {
  content: "";
  position: absolute;
  left: 0.43rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
}
.quote-decision-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
}
.quote-decision-dot {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.18rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 0 0 4px #f8fafc;
}
.quote-decision-content {
  padding: 0.72rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}
.quote-decision-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
}
.quote-decision-topline strong {
  color: #0f172a;
}
.quote-decision-topline span {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}
.quote-decision-content p {
  margin: 0.28rem 0 0 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
}
.quote-decision-more {
  margin-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}
.quote-decision-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #ffffff;
  color: #29486c;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  list-style: none;
}
.quote-decision-more summary::-webkit-details-marker {
  display: none;
}
.quote-decision-more[open] summary {
  background: #f8fbff;
  border-color: #c7d5e6;
}
.quote-decision-more .quote-decision-list {
  margin-top: 0.85rem;
}
.quote-decision-list.is-secondary::before {
  top: 0;
}
.quote-decision-item.is-accepted .quote-decision-dot {
  border-color: #16a34a;
}
.quote-decision-item.is-viewed .quote-decision-dot,
.quote-decision-item.is-shared .quote-decision-dot,
.quote-decision-item.is-reshared .quote-decision-dot {
  border-color: #2563eb;
}
.quote-decision-item.is-revision .quote-decision-dot,
.quote-decision-item.is-reopened .quote-decision-dot {
  border-color: #f59e0b;
}
.quote-decision-item.is-expired .quote-decision-dot {
  border-color: #ef4444;
}
.quote-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.05rem;
}
.quote-meta-card {
  background: var(--ui-surface-bg-muted);
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
}
.quote-meta-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  color: #1e293b;
}
.quote-meta-card p {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.quote-doc-table thead {
  background-color: #1f3650;
}
.quote-item-image {
  width: 52px;
  height: 52px;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe1e8;
}
.quote-item-details {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
  text-align: left;
}
.quote-total-box {
  margin-top: 0.38rem;
  margin-left: auto;
  max-width: 360px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: #f8fbff;
}
.quote-total-box p {
  margin: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.quote-total-box p:not(.quote-total-grand) {
  color: #64748b;
}
.quote-total-grand {
  padding-top: 0.42rem;
  border-top: 1px solid #9fb4c8;
  font-size: 1.2rem;
  font-weight: 700;
}
.quote-total-grand span {
  color: #0f172a;
  font-weight: 500;
}
.quote-public-actions {
  margin-top: 1rem;
}
.quote-back-link {
  color: #475569;
  font-size: 0.95rem;
  text-decoration: none;
}
.quote-back-link:hover {
  color: #1e293b;
  text-decoration: underline;
}
.quote-back-link-inline {
  display: inline-block;
  margin-top: 0.45rem;
}
.quote-form-hint {
  margin-top: -8px;
  color: #6b7280;
  margin-bottom: 0.4rem;
}
.product-cost-price-hint {
  margin-top: 0.32rem;
}
.quote-form-hint-warning {
  margin-top: 0;
  color: #9a3412;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}
.quote-status-lock-field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding-top: 0.15rem;
}
.quote-conditional[data-show-when-status] {
  display: none;
}
.quote-live-totals {
  border: 1px solid #dce7f2;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: var(--ui-surface-bg-soft);
  position: sticky;
  top: 1.1rem;
}
.quote-live-totals h4 {
  margin: 0 0 0.55rem 0;
  color: #1f3650;
}
.quote-live-totals p {
  margin: 0.24rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.quote-live-totals .quote-live-grand {
  margin-top: 0.36rem;
  padding-top: 0.36rem;
  border-top: 1px dashed #9fb4c8;
}
.quote-live-totals .quote-live-grand strong {
  font-size: 1.08rem;
}
.quote-form-submit {
  margin-top: 0.35rem;
}
.quote-form-add-row {
  margin-top: 10px;
}
.quote-form-add-row .quote-add-item-btn {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border-color: #bfd2e8;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  color: #1b4f8a;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(17, 52, 90, 0.08);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.quote-form-add-row .quote-add-item-btn::before {
  content: "+";
  display: inline-block;
  margin-right: 0.38rem;
  font-weight: 800;
}
.quote-form-add-row .quote-add-item-btn:hover {
  border-color: #8db3dc;
  background: linear-gradient(180deg, #ffffff 0%, #e9f3ff 100%);
  box-shadow: 0 4px 12px rgba(17, 52, 90, 0.14);
  transform: translateY(-1px);
}
.quote-form-add-row .quote-add-item-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(17, 52, 90, 0.1);
}
@media (max-width: 640px) {
  .quote-form-add-row .quote-add-item-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quote-item-row.is-new,
  .product-search .js-product-dropdown.is-open {
    animation: none;
  }

  .product-search .js-product-name {
    transition: none;
  }
}
.quote-template-picker {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.quote-template-picker select {
  min-width: 180px;
}
.quote-toolbar {
  margin-top: var(--space-2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.quote-toolbar-surface {
  margin-top: 1rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(
    180deg,
    rgba(251, 252, 254, 0.94) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}
.quote-toolbar-left,
.quote-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.quote-toolbar-left {
  flex: 1 1 260px;
}
.quote-toolbar-right {
  flex: 1 1 520px;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: auto;
}
.quote-toolbar-right-secondary,
.quote-toolbar-right-primary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  width: 100%;
}
.quote-toolbar-right-primary {
  gap: 0.55rem;
}
.quote-toolbar .button_to {
  margin: 0;
  display: inline-flex;
}
.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    opacity 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease;
}
.quote-btn:hover {
  opacity: 0.94;
}
.quote-btn:active {
  transform: translateY(1px);
}
.quote-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
.quote-btn-primary {
  background: var(--brand-primary, #4f46e5);
  border-color: var(--brand-primary, #4f46e5);
  color: var(--brand-on-primary, #ffffff);
}
.quote-btn-primary:hover {
  filter: brightness(0.97);
}
.quote-btn-secondary {
  background: rgba(255, 255, 255, 0.98);
  border-color: #cbd5e1;
  color: #334155;
}
.quote-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.quote-btn-danger {
  background: rgba(255, 255, 255, 0.96);
  border-color: #f3c1c1;
  color: #c24141;
}
.quote-btn-danger:hover {
  background: #fff7f7;
  border-color: #e89a9a;
  color: #991b1b;
}
.quote-toolbar-export {
  position: relative;
}
.quote-toolbar-export > summary {
  list-style: none;
}
.quote-toolbar-export > summary::-webkit-details-marker {
  display: none;
}
.quote-toolbar-export-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  z-index: 50;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  padding: 0.45rem;
  display: grid;
  gap: 0.35rem;
}
.quote-toolbar-export-hint {
  margin: 0;
  padding: 0.3rem 0.45rem 0.2rem;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.4;
}
.quote-toolbar-op-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0;
}
.quote-toolbar-left > .quote-toolbar-op-group {
  margin-left: 0.4rem;
}
.quote-toolbar-op-group .button_to {
  margin: 0;
}
.quote-toolbar-op-btn {
  border-radius: 13px;
}
.quote-toolbar-more-status .quote-toolbar-export-menu {
  left: auto;
  right: 0;
}
.quote-toolbar-status-control .quote-toolbar-export-menu,
.quote-toolbar-more-actions .quote-toolbar-export-menu,
.quote-toolbar-export-menu--right {
  left: auto;
  right: 0;
}
.quote-toolbar-status-control > summary.quote-btn {
  min-width: 0;
  justify-content: center;
}
.quote-toolbar-export-menu form {
  margin: 0;
  width: 100%;
}
.quote-toolbar-export-menu .quote-btn {
  width: 100%;
  justify-content: center;
}
.quote-toolbar-export-menu .share-link-group {
  width: 100%;
}
.quote-toolbar-export-menu .share-link-group > .quote-btn {
  width: 100%;
}
.quote-toolbar-export:not([open]) .quote-toolbar-export-menu {
  display: none;
}
.quote-col-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.quote-template-picker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.quote-template-picker label {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
}
.quote-template-picker select {
  min-width: 190px;
  height: 40px;
  border-radius: 10px;
}
.quote-toolbar-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.quote-toolbar-inline-actions form {
  margin: 0;
}
.quote-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 180px;
  max-width: 320px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 1800;
}
.quote-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.quote-toast.is-error {
  background: #991b1b;
}
.public-quote-themed .quote-doc-header {
  border-bottom: 2px solid var(--doc-accent, #1f4e79);
}
.public-quote-themed .quote-doc-kicker {
  color: var(--doc-accent, #1f4e79);
}
.public-quote-themed .quote-meta-card {
  border-left: 3px solid var(--doc-accent, #1f4e79);
}
.public-quote-themed .quote-doc-table thead {
  background-color: var(--doc-accent, #1f4e79);
}
.public-quote-themed .quote-total-grand {
  margin-top: 0.2rem;
  padding: 0.55rem 0 0;
  background: transparent;
  color: #0f172a;
  border-top: 1px solid #9fb4c8;
  border-radius: 0;
}
.public-quote-themed .quote-public-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--doc-accent, #1f4e79);
  border-radius: 8px;
  background: #fff;
  color: var(--doc-accent, #1f4e79);
  font-weight: 600;
  cursor: pointer;
}
.public-quote-themed .quote-public-actions button:hover {
  background: #f8fafc;
}
.public-quote-document .quote-public-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.public-quote-document .quote-items-table {
  border-spacing: 0 6px;
}
.settings-header-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.settings-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.settings-header-top h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1.1;
}
.settings-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 30px;
  padding: 0 0.65rem;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
}
.settings-company-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.settings-header-meta {
  margin: 0.55rem 0 0;
  color: #475569;
}
.settings-nav {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.settings-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  border-bottom: none;
  font-size: 0.86rem;
  font-weight: 700;
}
.settings-nav-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.settings-nav-link.is-active {
  background: #1f3650;
  border-color: #1f3650;
  color: #fff;
}
.team-members-panel {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}
.team-members-panel h2 {
  margin: 0 0 var(--space-1) 0;
}
.team-invite-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
  gap: 0.7rem;
  align-items: end;
}
.team-invite-field {
  min-width: 0;
}
.team-invite-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}
.team-invite-submit {
  width: fit-content;
}
.team-members-panel .table-responsive {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  overflow: auto;
}
.team-members-panel table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.team-members-panel thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.7rem 0.75rem;
}
.team-members-panel tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}
.team-members-panel tbody tr:last-child td {
  border-bottom: none;
}
.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.team-overview-item {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
}
.team-overview-item span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}
.team-overview-item strong {
  display: block;
  margin-top: 0.2rem;
  color: #0f172a;
  font-size: 1rem;
}
.team-action-note {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}
.account-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.account-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  overflow: hidden;
}
.account-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-remove-avatar-btn {
  width: fit-content;
}
.account-remove-avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
}
.team-members-hint {
  margin: 0 0 0.7rem 0;
  color: #64748b;
  font-size: 0.92rem;
}
.app-form-stack {
  display: grid;
  gap: 0.75rem;
}
.app-form-stack > div {
  min-width: 0;
}
.app-form-stack > div > label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}
.team-members-panel
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not(
    [type="button"]
  ):not([type="hidden"]):not([type="file"]),
.team-members-panel select,
.team-members-panel textarea {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--ui-radius-md);
  background: #fff;
  color: #0f172a;
  font-size: 0.93rem;
  line-height: 1.35;
}
.team-members-panel textarea {
  min-height: 96px;
}
.team-members-panel input:focus,
.team-members-panel select:focus,
.team-members-panel textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.team-members-panel input[type="checkbox"],
.team-members-panel input[type="radio"] {
  width: 1rem;
  height: 1rem;
}

.template-page-shell .app-page-header,
.product-presets-page-shell .app-page-header {
  margin-bottom: 0.2rem;
}

.template-page-subtitle,
.product-presets-page-subtitle {
  margin-top: 0.3rem;
}

.template-index-actions {
  margin-top: 0;
}

.product-presets-card-actions .btn {
  min-width: 132px;
}
.inline-form .btn {
  margin-left: 0;
}
.team-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.team-actions .button_to {
  margin-left: 0.35rem;
}
.team-avatar-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-link {
  display: inline-flex;
  border-bottom: none;
}
.team-avatar-link:hover .team-avatar-thumb {
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}
.team-member-email-link {
  color: #1f2937;
  border-bottom: none;
  text-decoration: none;
}
.team-member-email-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.team-avatar-thumb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}
.team-avatar-fallback {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .settings-header-top {
    align-items: flex-start;
  }

  .team-invite-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .team-invite-submit,
  .team-invite-form .btn {
    width: 100%;
  }

  .inline-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .inline-form select,
  .inline-form .btn {
    width: 100%;
    margin-left: 0;
  }
}
.history-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}
.btn,
.quote-btn {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--ui-radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}
.btn-primary,
input[type="submit"].btn,
.quote-btn-primary {
  background: #1f3650;
  border-color: #1f3650;
  color: #fff;
}
.btn-secondary,
.quote-btn-secondary {
  background: transparent;
  border-color: #94a3b8;
  color: #334155;
}
.btn-danger,
.quote-btn-danger {
  background: transparent;
  border-color: #fca5a5;
  color: #b91c1c;
}
.btn-danger:hover,
.quote-btn-danger:hover {
  background: #fff5f5;
  border-color: #ef4444;
  color: #991b1b;
}
.quote-btn-danger-soft {
  background: #fff7f7;
  border-color: #f5b1b1;
  color: #b91c1c;
}
.quote-btn-danger-soft:hover {
  background: #fff1f1;
  border-color: #ef4444;
  color: #991b1b;
}
.quote-btn-danger-strong {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 6px 14px rgba(153, 27, 27, 0.16);
}
.quote-btn-danger-strong:hover {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
}
.quote-toolbar {
  gap: 0.75rem;
}
.quote-toolbar-left,
.quote-toolbar-right,
.quote-toolbar-right-secondary,
.quote-toolbar-right-primary {
  gap: 0.55rem;
}
.quote-toolbar-right-primary {
  gap: 0.55rem;
}
.quote-toolbar-export > summary.quote-btn {
  min-height: 40px;
  height: 40px;
}
@media (min-width: 1024px) {
  .quote-toolbar {
    flex-wrap: nowrap;
  }

  .quote-toolbar-left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

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

  .quote-toolbar-right-secondary,
  .quote-toolbar-right-primary {
    width: auto;
    flex-wrap: nowrap;
  }

  .quote-toolbar-op-btn {
    padding: 0 12px;
    font-size: 0.84rem;
  }
}
@media (max-width: 900px) {
  .dashboard-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-edit-layout,
  .product-show-top-grid,
  .product-show-grid {
    grid-template-columns: 1fr;
  }

  .quote-meta-grid,
  .quote-signal-strip,
  .quote-revision-grid,
  .dashboard-health-strip {
    grid-template-columns: 1fr;
  }

  .quote-engagement-details-grid {
    grid-template-columns: 1fr;
  }

  .quote-decision-review-grid,
  .quote-decision-recap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-decision-list::before {
    left: 0.38rem;
  }

  .quote-decision-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .quote-revision-head,
  .quote-revision-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-show-grid--workspace {
    grid-template-columns: 1fr;
  }

  .product-show-rail,
  .product-edit-media,
  .quote-live-totals {
    position: static;
  }

  .product-show-kv {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .quote-doc-header {
    gap: 0.6rem;
  }

  .quote-doc-header h1 {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }

  .quote-doc-version {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
  }

  .quote-decision-review-grid,
  .quote-decision-recap,
  .quote-revision-grid {
    grid-template-columns: 1fr;
  }

  .quote-items-responsive .quote-items-table {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .dashboard-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .dashboard-decision-flow {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .dashboard-decision-column {
    padding-right: 0;
  }

  .dashboard-decision-column + .dashboard-decision-column {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 0.5rem;
  }

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

  .dashboard-decision-column-attention,
  .dashboard-decision-waiting {
    justify-self: start;
    text-align: left;
  }

  .dashboard-decision-waiting p {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .dashboard-decision-column-attention {
    width: 100%;
    padding: 0.85rem 0.95rem;
  }

  .dashboard-decision-waiting {
    display: grid;
    gap: 0.65rem;
  }

  .dashboard-decision-waiting span {
    font-size: 0.84rem;
  }

  .dashboard-decision-waiting strong {
    font-size: 1.35rem;
  }

  .dashboard-decision-waiting small {
    margin-top: 0.1rem;
  }

  .dashboard-kpi-card {
    padding: 0.72rem 0.78rem;
  }

  .dashboard-kpi-card strong {
    font-size: 1.22rem;
  }

  .dashboard-kpi-head span {
    font-size: 0.78rem;
  }

  .dashboard-kpi-trend {
    font-size: 0.72rem;
  }

  .dashboard-recent-table {
    min-width: 0;
    border: none;
  }

  .dashboard-panel .table-responsive {
    overflow-x: auto;
  }

  .dashboard-panel .table-responsive table.dashboard-products-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
  }

  .dashboard-products-table thead {
    display: none;
  }

  .dashboard-products-table,
  .dashboard-products-table tbody,
  .dashboard-products-table tr {
    display: block;
    width: 100%;
  }

  .dashboard-products-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "quote total"
      "buyer status"
      "engage action";
    gap: 0.28rem 0.55rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: #fff;
  }

  .dashboard-products-table td {
    border: none;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-products-table td:nth-child(1) {
    grid-area: quote;
    font-weight: 700;
  }

  .dashboard-products-table td:nth-child(2) {
    grid-area: buyer;
    color: #334155;
  }

  .dashboard-products-table td:nth-child(3) {
    grid-area: status;
    justify-self: end;
  }

  .dashboard-products-table td:nth-child(4) {
    grid-area: engage;
    justify-self: start;
  }

  .dashboard-products-table td:nth-child(5) {
    grid-area: action;
    justify-self: end;
  }

  .dashboard-products-table td:nth-child(6) {
    grid-area: total;
    justify-self: end;
    font-weight: 700;
    color: #0f172a;
  }

  .dashboard-products-table tbody tr:nth-child(n + 5) {
    display: none;
  }

  .dashboard-panel {
    padding: 0.82rem 0.84rem;
  }

  .dashboard-overview-list li {
    padding: 0.52rem 0.06rem;
  }

  .dashboard-overview-value {
    font-size: 1rem;
    margin-top: 0.24rem;
  }

  .customer-quote-toolbar .quote-queue-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .quote-toolbar-left,
  .quote-toolbar-right,
  .quote-toolbar-right-secondary,
  .quote-toolbar-right-primary {
    width: 100%;
  }

  .quote-toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-toolbar-right-secondary,
  .quote-toolbar-right-primary {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .quote-toolbar-left > .quote-toolbar-op-group {
    margin-left: 0;
  }

  .quote-btn,
  .quote-toolbar .button_to {
    width: 100%;
  }

  .customer-toolbar-apply {
    width: 100%;
  }

  .customers-table-desktop {
    display: none;
  }

  .customers-mobile-list {
    display: grid;
    gap: 0.9rem;
  }

  .customer-mobile-card {
    display: block;
  }

  .customer-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-mobile-head {
    padding: 0.9rem 1rem 0.8rem;
    display: grid;
    gap: 0.75rem;
  }

  .customer-mobile-details[open] {
    padding-bottom: 0.7rem;
  }

  .customer-mobile-details-grid {
    display: grid;
    gap: 0.55rem;
    padding: 0 1rem 0.3rem;
  }

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

  .product-lightbox-dialog {
    width: min(96vw, 1100px);
    margin: 6vh auto;
    padding: 0.75rem;
  }
}

/* Late overrides to keep dashboard + quote reminder aligned with the current UI system */
.dashboard-health-band {
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin-top: -0.2rem;
}

.dashboard-health-band .dashboard-health-card {
  border: 1px solid rgba(224, 231, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.82rem 0.9rem;
  box-shadow: none;
}

.dashboard-health-band .dashboard-health-card.is-good {
  background: var(--ui-surface-bg-good);
  border-color: rgba(209, 239, 222, 0.95);
}

.dashboard-health-band .dashboard-health-card.is-watch {
  background: var(--ui-surface-bg-watch);
  border-color: rgba(245, 229, 172, 0.95);
}

.dashboard-health-band .dashboard-health-card.is-danger {
  background: var(--ui-surface-bg-danger);
  border-color: rgba(244, 214, 214, 0.95);
}

.dashboard-health-band .dashboard-health-card.is-neutral {
  background: var(--ui-surface-bg-neutral);
  border-color: rgba(232, 236, 244, 0.95);
}

.dashboard-panel.dashboard-overview-panel,
.dashboard-detail-grid > .dashboard-panel {
  height: auto;
}

.dashboard-detail-grid--overview {
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.68fr);
  align-items: stretch;
}

.dashboard-detail-grid--overview > .dashboard-panel {
  display: flex;
  flex-direction: column;
}

.dashboard-detail-grid--lists {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: start;
}

.dashboard-detail-grid--reports {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: start;
}

.dashboard-detail-grid--lists > .dashboard-panel {
  align-self: start;
}

.dashboard-report-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.dashboard-report-link:hover {
  text-decoration: underline;
}

.dashboard-report-list {
  gap: 0;
}

.dashboard-report-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: start;
}

.dashboard-report-main {
  min-width: 0;
}

.dashboard-report-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.dashboard-report-topline span,
.dashboard-report-topline small {
  min-width: 0;
}

.dashboard-report-topline span {
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dashboard-report-topline small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dashboard-report-row .dashboard-overview-value {
  margin-top: 0.22rem;
  font-size: 0.98rem;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-report-row .dashboard-overview-value span {
  display: inline;
  color: #94a3b8;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.dashboard-report-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-report-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-report-list + .dashboard-panel-note {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 0.76rem;
}

.dashboard-panel.dashboard-overview-panel .dashboard-overview-list {
  padding-bottom: 0;
}

.dashboard-panel.dashboard-overview-panel {
  padding: 1.2rem 1.25rem 1.25rem;
}

.dashboard-panel.dashboard-overview-panel
  .dashboard-overview-list
  li:last-child {
  padding-bottom: 0;
}

.dashboard-recent-table.dashboard-products-table th:nth-child(4),
.dashboard-recent-table.dashboard-products-table td:nth-child(4) {
  min-width: 104px;
  white-space: normal;
}

.dashboard-recent-table.dashboard-products-table th:nth-child(5),
.dashboard-recent-table.dashboard-products-table td:nth-child(5) {
  min-width: 108px;
}

.dashboard-recent-table.dashboard-products-table th:last-child,
.dashboard-recent-table.dashboard-products-table td:last-child {
  min-width: 132px;
  width: 132px;
  padding-right: 1.1rem;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.dashboard-reminder-count-head,
.dashboard-reminder-count {
  min-width: 76px;
  width: 76px;
  text-align: center;
}

.dashboard-reminder-table th:last-child,
.dashboard-reminder-table td:last-child {
  min-width: 76px;
  width: 76px;
  padding-right: 0.8rem;
  text-align: center;
}

.dashboard-health-strip {
  margin-bottom: 0;
}

.dashboard-health-strip + .dashboard-detail-grid {
  margin-top: -0.1rem;
}

.dashboard-summary-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.dashboard-detail-grid--overview .table-responsive,
.dashboard-detail-grid--lists .table-responsive {
  overflow-x: hidden;
}

.dashboard-detail-grid--overview .dashboard-products-table {
  min-width: 0;
  width: 100%;
}

.dashboard-detail-grid--lists
  .dashboard-summary-table:not(.dashboard-reminder-table) {
  min-width: 0;
}

.dashboard-detail-grid--lists .dashboard-reminder-table {
  min-width: 0;
}

.dashboard-detail-grid--overview .dashboard-products-table th,
.dashboard-detail-grid--overview .dashboard-products-table td,
.dashboard-detail-grid--lists .dashboard-summary-table th,
.dashboard-detail-grid--lists .dashboard-summary-table td {
  padding-left: 0.72rem;
  padding-right: 0.72rem;
}

.dashboard-detail-grid--lists .dashboard-summary-table th:nth-child(2),
.dashboard-detail-grid--lists .dashboard-summary-table td:nth-child(2),
.dashboard-detail-grid--lists .dashboard-summary-table th:nth-child(3),
.dashboard-detail-grid--lists .dashboard-summary-table td:nth-child(3) {
  text-align: center;
}

.dashboard-detail-grid--overview .dashboard-products-table th:first-child,
.dashboard-detail-grid--overview .dashboard-products-table td:first-child {
  width: 34%;
}

.dashboard-detail-grid--overview .dashboard-products-table th:nth-child(2),
.dashboard-detail-grid--overview .dashboard-products-table td:nth-child(2) {
  width: 14%;
  text-align: center;
}

.dashboard-detail-grid--overview .dashboard-products-table th:nth-child(3),
.dashboard-detail-grid--overview .dashboard-products-table td:nth-child(3) {
  width: 14%;
  text-align: center;
}

.dashboard-detail-grid--overview .dashboard-products-table th:nth-child(4),
.dashboard-detail-grid--overview .dashboard-products-table td:nth-child(4) {
  width: 16%;
}

.dashboard-detail-grid--overview .dashboard-products-table th:nth-child(5),
.dashboard-detail-grid--overview .dashboard-products-table td:nth-child(5) {
  width: 22%;
  text-align: center;
}

.dashboard-detail-grid--lists .dashboard-reminder-table th:nth-child(1),
.dashboard-detail-grid--lists .dashboard-reminder-table td:nth-child(1) {
  width: 30%;
}

.dashboard-detail-grid--lists .dashboard-reminder-table th:nth-child(2),
.dashboard-detail-grid--lists .dashboard-reminder-table td:nth-child(2) {
  width: 24%;
}

.dashboard-detail-grid--lists .dashboard-reminder-table th:nth-child(3),
.dashboard-detail-grid--lists .dashboard-reminder-table td:nth-child(3) {
  width: 28%;
}

.dashboard-detail-grid--lists .dashboard-reminder-table th:nth-child(4),
.dashboard-detail-grid--lists .dashboard-reminder-table td:nth-child(4) {
  width: 18%;
}

.dashboard-reminder-table td:nth-child(3) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-mobile-list {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-detail-grid--overview,
  .dashboard-detail-grid--lists,
  .dashboard-detail-grid--reports {
    grid-template-columns: 1fr;
  }

  .dashboard-health-band {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .dashboard-panel .table-responsive {
    display: none;
  }

  .dashboard-mobile-list {
    display: grid;
    gap: 0.75rem;
  }

  .dashboard-mobile-item {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 0.9rem;
  }

  .dashboard-mobile-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.45rem 0;
  }

  .dashboard-mobile-row + .dashboard-mobile-row {
    border-top: 1px solid #eef2f7;
  }

  .dashboard-mobile-row > span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .dashboard-mobile-row > strong,
  .dashboard-mobile-stack {
    min-width: 0;
    text-align: right;
  }

  .dashboard-mobile-row > strong {
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .dashboard-mobile-stack strong {
    display: block;
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .dashboard-mobile-stack .dashboard-quote-id {
    margin-top: 0.18rem;
    overflow-wrap: anywhere;
    word-break: break-all;
    text-align: right;
  }

  .dashboard-mobile-list--recent-quotes .dashboard-mobile-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .dashboard-mobile-list--recent-quotes .dashboard-mobile-row > strong,
  .dashboard-mobile-list--recent-quotes .dashboard-mobile-stack {
    text-align: left;
  }

  .dashboard-mobile-list--recent-quotes .dashboard-mobile-row > strong,
  .dashboard-mobile-list--recent-quotes .dashboard-mobile-stack strong {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .dashboard-mobile-list--recent-quotes .dashboard-next-step-btn {
    justify-content: flex-start;
    white-space: normal;
  }

  .dashboard-detail-grid--overview,
  .dashboard-detail-grid--lists,
  .dashboard-detail-grid--reports {
    grid-template-columns: 1fr;
  }

  .dashboard-task-item {
    flex-direction: column;
  }

  .dashboard-task-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-funnel-inline-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

.customer-money-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.form-page-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  border-bottom: none;
  text-decoration: none;
}

.form-page-back-link:hover {
  border-bottom-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.form-page-back-link--quote {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.62rem 0.86rem;
  border-radius: 12px;
  border: 1px solid #dbe4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease;
}

.form-page-back-link--quote:hover {
  border-color: #c3d2e4;
  background: #f8fbff;
  color: #0f172a;
  text-decoration: none;
  transform: translateY(-1px);
}

.quote-form-inline-error {
  margin: 0.8rem 0 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
  color: #991b1b;
}

.quote-form-inline-error strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #7f1d1d;
}

.quote-form-inline-error ul {
  margin: 0;
  padding-left: 1rem;
}

.quote-form-inline-error li + li {
  margin-top: 0.15rem;
}

.quote-edit-shell .error-messages {
  margin: 0.8rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f5c2c7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5f6 0%, #fff0f1 100%);
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.04);
  color: #8a1c2c;
}

.quote-edit-shell .error-messages h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #7f1d1d;
}

.quote-edit-shell .error-messages ul {
  margin: 0;
  padding-left: 1rem;
}

.quote-edit-shell .error-messages li + li {
  margin-top: 0.18rem;
}

.quote-edit-shell .quote-field-invalid {
  border-color: #f1aeb5 !important;
  background: linear-gradient(180deg, #fff8f8 0%, #fff2f3 100%) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.quote-edit-shell .quote-field-label-invalid {
  color: #9f1239;
}

@media (max-width: 768px) {
  .quote-items-responsive {
    overflow: visible !important;
  }

  .quote-items-responsive .quote-items-table,
  .quote-items-responsive .quote-items-table tbody,
  .quote-items-responsive .quote-items-table tr,
  .quote-items-responsive .quote-items-table td {
    display: block !important;
    width: 100% !important;
  }

  .quote-items-responsive .quote-items-table thead {
    display: none !important;
  }

  .quote-items-responsive .quote-items-table {
    border-spacing: 0 !important;
    margin-top: 0.8rem;
  }

  .quote-items-responsive .quote-items-table tr {
    margin-bottom: 0.85rem;
    padding: 0;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  .quote-items-responsive .quote-items-table td {
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    padding: 0.72rem 0.8rem !important;
  }

  .quote-items-responsive .quote-items-table td:last-child {
    border-bottom: 0 !important;
  }

  .quote-items-responsive .quote-items-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.38rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .quote-items-responsive .quote-items-table .quote-col-product,
  .quote-items-responsive .quote-items-table .quote-col-specs,
  .quote-items-responsive .quote-items-table .quote-col-addons,
  .quote-items-responsive .quote-items-table .quote-col-price,
  .quote-items-responsive .quote-items-table .quote-col-qty,
  .quote-items-responsive .quote-items-table .quote-col-remove {
    width: 100% !important;
  }

  .quote-items-responsive .quote-items-table input[type="text"],
  .quote-items-responsive .quote-items-table input[type="number"],
  .quote-items-responsive .quote-items-table select,
  .quote-items-responsive .quote-items-table textarea,
  .quote-items-responsive .quote-items-table .quote-inline-select,
  .quote-items-responsive .quote-items-table .quote-kv-open {
    width: 100%;
    max-width: 100%;
  }

  .quote-items-responsive .quote-kv-summary {
    max-width: 100%;
  }

  .quote-items-responsive .quote-kv-row,
  .quote-items-responsive .quote-kv-row-addon {
    grid-template-columns: 1fr;
  }

  .quote-items-responsive .quote-item-remove-icon {
    margin-left: auto;
  }
}

.quote-reminder-verification,
.quote-reminder-form {
  display: contents;
}

.quote-turnstile-modal[hidden] {
  display: none;
}

.quote-turnstile-modal {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(15, 23, 42, 0.52);
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.quote-turnstile-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  border-radius: 22px;
  border: 1px solid #dbe4ef;
  background: var(--ui-surface-bg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 1.3rem 1.3rem 1.2rem;
}

.quote-turnstile-modal__dialog h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.quote-turnstile-modal__dialog p {
  margin: 0.4rem 0 0 0;
  color: #5b6b80;
  font-size: 0.9rem;
  line-height: 1.55;
}

.quote-turnstile-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.quote-turnstile-modal__loading,
.quote-turnstile-modal__widget,
.quote-turnstile-modal__success {
  margin-top: 1rem;
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
}

.quote-turnstile-modal__loading {
  color: #64748b;
  font-size: 0.9rem;
}

.quote-turnstile-modal__success {
  color: #0f766e;
  font-size: 0.92rem;
  font-weight: 600;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
}

/* Migrated from legacy_core.css: share-link UI */
.share-link-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.share-link-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 288px;
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(72vh, 34rem);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.7rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
}

.share-link-panel-message {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.share-link-panel-editor {
  margin-top: 0.2rem;
  min-height: 0;
}

.share-link-panel-editor-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.25rem;
}

.share-link-panel-editor-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.45rem 0.55rem;
  resize: vertical;
  min-height: 5.1rem;
  max-height: min(30vh, 12rem);
  overflow-y: auto;
}

.share-link-panel-editor-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.14);
}

.share-link-panel-editor-hint {
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

.share-link-panel-actions {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #dbe5f1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, #f8fafc 38%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.share-link-panel-btn {
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.8rem;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
}

.share-link-panel-btn:hover {
  border-color: #475569;
  color: #0f172a;
}

.share-link-panel-btn.is-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-link-panel-btn.is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  cursor: not-allowed;
}

.customer-follow-up-assistant {
  margin: 0;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: var(--ui-surface-bg);
  box-shadow: var(--ui-shadow);
  display: grid;
  gap: 0.78rem;
}

.customer-follow-up-assistant .app-section-heading {
  margin-bottom: 0;
}

.customer-follow-up-assistant .app-section-heading h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.follow-up-assistant-form {
  display: grid;
  gap: 0.72rem;
}

.follow-up-assistant-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.82rem;
  color: #475569;
}

.follow-up-assistant-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.follow-up-assistant-input {
  width: 100%;
  min-height: 5.4rem;
  padding: 0.58rem 0.68rem;
  line-height: 1.5;
  font-size: 0.86rem;
}

.follow-up-assistant-hint {
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
}

.follow-up-assistant-missing-hints {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
}

.follow-up-assistant-missing-link {
  font-size: 0.74rem;
  color: #64748b;
  text-decoration: underline;
  white-space: nowrap;
}

.follow-up-assistant-missing-link:hover {
  color: #334155;
}

.follow-up-assistant-feedback {
  margin: 0;
  font-size: 0.74rem;
  color: #047857;
}

.follow-up-assistant-feedback.is-error {
  color: #b91c1c;
}

.follow-up-assistant-actions {
  margin-top: 0.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem;
}

.follow-up-assistant-actions .app-ui-button {
  width: 100%;
  min-height: 42px;
  height: auto;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.follow-up-assistant-actions .app-ui-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.customer-follow-up-assistant .quote-turnstile-modal__dialog {
  width: min(100%, 460px);
}

.customer-follow-up-assistant .quote-turnstile-modal__widget {
  width: 100%;
  overflow-x: auto;
}

.customer-follow-up-assistant .quote-turnstile-modal__widget > div {
  margin-inline: auto;
}

@media (max-width: 640px) {
  .share-link-panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    top: auto;
    bottom: 0.5rem;
    width: auto;
    max-height: 78vh;
    border-radius: 16px;
    padding: 0.72rem;
  }

  .share-link-panel-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .follow-up-assistant-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-follow-up-assistant .quote-turnstile-modal {
    padding: 0.7rem;
    align-items: end;
  }

  .customer-follow-up-assistant .quote-turnstile-modal__dialog {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 1rem 0.85rem 0.9rem;
  }

  .customer-follow-up-assistant .quote-turnstile-modal__close {
    width: 38px;
    height: 38px;
  }

  .quote-status-undo {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: space-between;
  }
}

.share-link-panel.is-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.share-link-panel.is-error .share-link-panel-message {
  color: #991b1b;
}

.quote-status-undo {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.56rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.32);
}

.quote-status-undo-text {
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
}

.quote-status-undo-btn {
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 30px;
  padding: 0.2rem 0.62rem;
  cursor: pointer;
}

.quote-status-undo-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.product-price-intelligence-panel {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  margin: 16px 0;
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.price-header h4,
.recent-quotes-section h5 {
  margin: 0;
  color: #1e293b;
}

.price-intel-count {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: #047857;
}

.recent-quotes-section {
  margin-top: 16px;
}

.price-intel-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.price-intel-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  color: #1e293b;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.price-intel-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.price-intel-card-main {
  min-width: 0;
}

.price-intel-card-title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.price-intel-card-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #64748b;
}

.price-intel-card-id {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    Liberation Mono,
    Courier New,
    monospace;
  font-size: 0.76rem;
  color: #475569;
}

.price-intel-card-dot {
  color: #cbd5e1;
}

.price-intel-card-stats {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: #475569;
  text-align: right;
  flex-shrink: 0;
}

.price-intel-card-stats strong {
  color: #0f172a;
}

@media (max-width: 640px) {
  .price-header,
  .price-intel-card {
    flex-direction: column;
  }

  .price-intel-card-stats {
    text-align: left;
  }
}

/* Migrated from legacy_ui.css (final compatibility slice) */
[data-clickable-href] {
  cursor: pointer;
}

[data-clickable-href]:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.customer-profile-form .error-messages {
  margin-bottom: 1rem;
}

.customer-profile-shell {
  display: grid;
  gap: 1rem;
}

.customer-profile-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  padding: 1rem 1.1rem;
}

.customer-profile-section-head h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: #0f172a;
}

.customer-identity-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(210px, 260px) 1fr;
}

.customer-avatar-panel {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.customer-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  font-size: 2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.customer-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-avatar-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.customer-profile-grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.customer-name-field {
  grid-column: span 2;
}

.customer-name-input {
  font-size: 1.06rem;
  font-weight: 600;
}

.customer-status-select-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.customer-field-hint {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.8rem;
}

.customer-form-submit {
  display: flex;
  justify-content: flex-end;
}

.customer-form-submit .btn {
  min-width: 180px;
}

@media (max-width: 920px) {
  .customer-identity-grid,
  .customer-profile-grid-2 {
    grid-template-columns: 1fr;
  }

  .customer-grid-span-2,
  .customer-name-field {
    grid-column: auto;
  }
}

.owner-picker {
  position: relative;
}

.owner-picker-trigger {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0.52rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  text-align: left;
}

.owner-picker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  flex-shrink: 0;
}

.owner-picker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-picker-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.owner-picker-meta strong,
.owner-picker-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-picker-meta strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.owner-picker-meta small {
  font-size: 0.75rem;
  color: #64748b;
}

.owner-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
}

.owner-picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.42rem 0.46rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.owner-picker-option:hover {
  background: #f1f5f9;
}

/* Sales insights tables: add readable labels in mobile layout */
@media (max-width: 768px) {
  .sales-insight-table-surface {
    overflow: visible;
  }

  .sales-insight-table-surface .dashboard-summary-table,
  .sales-insight-table-surface .dashboard-summary-table tbody,
  .sales-insight-table-surface .dashboard-summary-table tr,
  .sales-insight-table-surface .dashboard-summary-table td {
    display: block !important;
    width: 100% !important;
  }

  .sales-insight-table-surface .dashboard-summary-table thead {
    display: none !important;
  }

  .sales-insight-table-surface .dashboard-summary-table tr {
    margin-bottom: 0.75rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  }

  .sales-insight-table-surface .dashboard-summary-table td {
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding: 0.68rem 0.78rem !important;
    text-align: left !important;
  }

  .sales-insight-table-surface .dashboard-summary-table td:last-child {
    border-bottom: 0 !important;
  }

  .sales-insight-table-surface .dashboard-summary-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.36rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .sales-insight-table-surface .dashboard-summary-table .text-right {
    text-align: left !important;
  }
}
