:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #627082;
  --line: #d9e1e7;
  --paper: #ffffff;
  --soft: #f5f8fa;
  --wash: #eaf4f2;
  --brand: #0f766e;
  --brand-dark: #0a5f59;
  --accent: #b45309;
  --gold: #f4b23c;
  --coral: #d9514e;
  --leaf: #16a34a;
  --blue: #2457a6;
  --navy: #0b2f4f;
  --focus: #2563eb;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(24, 34, 47, 0.12);
  --blueprint-primary: #1a3c4d;
  --blueprint-accent: #e8540a;
  --blueprint-light: #a8c5d1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 22px;
}

body {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(244, 178, 60, 0.18) 0, rgba(15, 118, 110, 0.16) 32%, rgba(36, 87, 166, 0.12) 64%, rgba(255, 255, 255, 0.98) 100%),
    #ffffff;
}

body[data-page="pro"] {
  background:
    linear-gradient(135deg, rgba(11, 47, 79, 0.12), rgba(15, 118, 110, 0.16) 42%, rgba(244, 178, 60, 0.13)),
    #f7fbfd;
}

body[data-page="homeowner"],
body[data-page="quote-funnel"] {
  background: #f9fafb;
}

body[data-page="admin"] {
  background:
    linear-gradient(135deg, rgba(26, 60, 77, 0.08), rgba(232, 84, 10, 0.08)),
    #f9fafb;
}

body[data-page="admin"] .topbar {
  border-bottom-color: rgba(26, 60, 77, 0.18);
}

body[data-page="admin"] .pro-hero {
  color: #ffffff;
  border-color: rgba(168, 197, 209, 0.28);
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 84, 10, 0.3), transparent 30%),
    linear-gradient(135deg, #1a3c4d, #102b39);
}

body[data-page="admin"] .pro-hero .eyebrow,
body[data-page="admin"] .pro-hero h1,
body[data-page="admin"] .pro-hero h2 {
  color: #ffffff;
}

body[data-page="admin"] .pro-hero p,
body[data-page="admin"] .pro-summary-card p {
  color: #dcecf2;
}

body[data-page="admin"] .pro-summary-card {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

body[data-page="admin"] .app-sidebar {
  color: #ffffff;
  background: #1a3c4d;
}

body[data-page="admin"] .app-sidebar h2,
body[data-page="admin"] .app-sidebar .eyebrow {
  color: #ffffff;
}

body[data-page="admin"] .app-sidebar .app-nav {
  color: #dcecf2;
}

body[data-page="admin"] .app-sidebar .app-nav:hover,
body[data-page="admin"] .app-sidebar .app-nav.active {
  color: #ffffff;
  background: rgba(232, 84, 10, 0.24);
}

body[data-page="admin"] .primary {
  background: #e8540a;
  box-shadow: 0 14px 28px rgba(232, 84, 10, 0.2);
}

body[data-page="admin"] .secondary {
  color: #1a3c4d;
  border-color: rgba(26, 60, 77, 0.22);
  background: #eaf3f6;
}

body[data-page="admin"] .eyebrow {
  color: #e8540a;
}

.homeowner-nav {
  background: rgba(255, 255, 255, 0.96);
}

.orange-button {
  color: #ffffff;
  border-color: var(--blueprint-accent);
  background: var(--blueprint-accent);
  box-shadow: 0 14px 28px rgba(232, 84, 10, 0.22);
}

.orange-button:hover {
  background: #c94306;
}

.home-hero {
  display: grid;
  min-height: 720px;
  align-items: center;
  margin-top: 24px;
  border-radius: 8px;
  padding: clamp(44px, 7vw, 92px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(26, 60, 77, 0.96), rgba(26, 60, 77, 0.84)),
    radial-gradient(circle at 82% 18%, rgba(232, 84, 10, 0.36), transparent 34%),
    var(--blueprint-primary);
  box-shadow: 0 28px 80px rgba(26, 60, 77, 0.26);
}

.home-hero-copy {
  max-width: 900px;
}

.home-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 950;
  line-height: 0.95;
}

.home-hero p:not(.trust-pill) {
  max-width: 760px;
  color: #dcecf2;
  font-size: 1.3rem;
  line-height: 1.65;
}

.trust-pill,
.trust-badges span,
.urgent-cta span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(232, 84, 10, 0.95);
  font-weight: 850;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-badges span {
  color: #eaf6fa;
  background: rgba(255, 255, 255, 0.12);
}

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

.service-tile-grid a {
  display: grid;
  min-height: 140px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--blueprint-primary);
  background: #ffffff;
  font-size: 1.18rem;
  font-weight: 860;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.service-tile-grid a:hover {
  color: #ffffff;
  background: var(--blueprint-primary);
  transform: translateY(-3px);
}

.three-steps {
  grid-template-columns: repeat(3, 1fr);
}

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

.review-card-grid article {
  display: grid;
  gap: 14px;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

.review-card-grid strong {
  color: var(--blueprint-accent);
}

.urgent-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 34px;
  border-radius: 8px;
  padding: clamp(42px, 6vw, 82px);
  color: #ffffff;
  text-align: center;
  background: var(--blueprint-accent);
}

.urgent-cta h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.urgent-cta .orange-button {
  color: var(--blueprint-primary);
  background: #ffffff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  border-radius: 8px;
  padding: 22px;
  color: #ffffff;
  background: var(--blueprint-primary);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-height: 110px;
  align-content: center;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip strong {
  font-size: 1.65rem;
}

.trust-strip span {
  color: var(--blueprint-light);
}

.quote-wizard-shell {
  display: grid;
  gap: 18px;
  width: min(960px, 100%);
  margin: 34px auto 0;
}

.quote-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.quote-progress span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--muted);
  background: #e5edf1;
  font-weight: 900;
}

.quote-progress span.active {
  color: #ffffff;
  background: var(--blueprint-primary);
}

.quote-wizard-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 54px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quote-step {
  display: none;
}

.quote-step.active {
  display: grid;
  gap: 18px;
}

.signup-step {
  display: none;
  gap: 14px;
}

.signup-step.active {
  display: grid;
}

.compact-progress {
  justify-content: flex-start;
}

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

.quote-step h1,
.pro-onboarding-page h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

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

.service-option-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--blueprint-primary);
  background: #f8fafc;
  font-weight: 820;
}

.service-option-grid label:has(input:checked) {
  color: #ffffff;
  border-color: var(--blueprint-primary);
  background: var(--blueprint-primary);
}

.quote-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.setup-checklist {
  display: grid;
  gap: 14px;
}

.setup-checklist article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.setup-checklist article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blueprint-primary);
  font-weight: 900;
}

.setup-checklist .complete > span {
  background: var(--leaf);
}

.setup-checklist .highlight {
  border-color: var(--blueprint-accent);
  box-shadow: 0 16px 34px rgba(232, 84, 10, 0.12);
}

.setup-checklist h3,
.setup-checklist p {
  margin: 0;
}

.onboarding-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.onboarding-progress div {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #dfe8ed;
}

.onboarding-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blueprint-accent);
}

body[data-dashboard="true"] {
  min-height: 100dvh;
  overflow: auto;
  background: #f7f9fc;
}

body[data-page="customer"] {
  background:
    linear-gradient(135deg, rgba(244, 178, 60, 0.18), rgba(15, 118, 110, 0.11) 42%, rgba(217, 81, 78, 0.08)),
    #fffdf8;
}

body[data-page="customer"] main {
  display: flex;
  flex-direction: column;
}

body[data-page="customer"] .customer-site-app {
  order: -1;
  margin-top: clamp(20px, 4vw, 44px);
  border-color: rgba(180, 83, 9, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0 62%, rgba(255, 248, 232, 0.95) 62%),
    #ffffff;
  box-shadow: 0 24px 68px rgba(24, 34, 47, 0.12);
}

body[data-page="customer"] .customer-site-app .app-sidebar {
  color: #ffffff;
  border: 0;
  background:
    linear-gradient(180deg, rgba(11, 47, 79, 0.98), rgba(15, 118, 110, 0.96)),
    var(--navy);
}

body[data-page="customer"] .customer-site-app .app-sidebar h2,
body[data-page="customer"] .customer-site-app .app-sidebar .eyebrow {
  color: #ffffff;
}

body[data-page="customer"] .customer-site-app .app-nav {
  color: rgba(255, 255, 255, 0.86);
}

body[data-page="customer"] .customer-site-app .app-nav.active,
body[data-page="customer"] .customer-site-app .app-nav:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

body[data-page="customer"] .customer-site-app h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1;
}

body[data-page="customer"] .customer-site-app .section-heading p {
  font-size: 1.22rem;
}

body[data-page="customer"] .content-section {
  border-color: rgba(15, 118, 110, 0.2);
  background:
    linear-gradient(135deg, #ffffff, #effbf9 52%, #fff8e8);
}

body[data-page="customer"] .app-shell,
body[data-page="customer"] .app-main,
body[data-page="customer"] .app-panel {
  overflow: visible;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 94px;
  padding: 22px clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(217, 225, 231, 0.88);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}

.brand-logo {
  width: 64px;
  height: 64px;
  display: block;
}

.brand-wordmark {
  width: 260px;
  height: 68px;
}

.wordmark-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-nav,
.tabs,
.auth-row,
.actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-nav {
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.tab,
.primary,
.secondary,
.ghost,
.app-nav,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 16px 26px;
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
}

.tab,
.app-nav {
  color: var(--muted);
  background: transparent;
}

.tab.active,
.app-nav.active {
  color: var(--brand-dark);
  background: #dff3f0;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  color: var(--brand-dark);
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, #effbf9, #eef4ff);
}

.ghost {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}

main {
  width: min(1480px, calc(100% - 20px));
  margin: 0 auto;
  padding: 44px 0 96px;
}

.dashboard-main {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: auto;
  padding: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: 720px;
  padding: clamp(34px, 6vw, 78px);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,251,249,0.94) 52%, rgba(255,248,232,0.94)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(24, 34, 47, 0.12);
}

.auth-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.auth-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.65;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 760px;
  padding: clamp(28px, 6vw, 72px) 0 38px;
}

.pro-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: clamp(40px, 6vw, 78px);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.94) 0 52%, rgba(235, 247, 244, 0.92) 52% 100%),
    #ffffff;
  box-shadow: 0 28px 80px rgba(24, 34, 47, 0.12);
}

.pro-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, rgba(15, 118, 110, 0.24), rgba(36, 87, 166, 0.22), rgba(244, 178, 60, 0.2), rgba(15, 118, 110, 0.24));
  opacity: 0.8;
}

.pro-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.45rem);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow),
.split-section p,
.pricing-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.26rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preview-header,
.mini-match,
.metric-band,
.split-section,
.pricing-section,
.billing-layout,
.status-grid {
  display: grid;
  gap: 14px;
}

.preview-header {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.preview-header span,
.price-card span,
.status-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.preview-header strong {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 48px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dff3f0;
}

.lead-ticket {
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
}

.lead-ticket h2,
.section-heading h2,
.split-section h2,
.pricing-section h2,
.app-sidebar h2 {
  margin: 0;
}

dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-weight: 760;
}

dd {
  margin: 0;
  font-weight: 760;
}

.mini-match {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-match.strong {
  border-color: #8fd5cc;
  background: #effbf9;
}

.mini-match strong {
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.metric-band {
  grid-template-columns: repeat(4, 1fr);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric-band div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.metric-band strong {
  color: var(--brand-dark);
  font-size: 1.45rem;
}

.metric-band span,
.section-heading p,
.steps p,
.feature-list span,
.summary,
.notice,
.footer span {
  color: var(--muted);
}

.content-section,
.split-section,
.pricing-section,
.app-shell,
.tool-showcase {
  margin-top: 34px;
  padding: clamp(38px, 4vw, 68px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(24, 34, 47, 0.07);
}

.tool-showcase {
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  border-color: rgba(143, 213, 204, 0.36);
  background:
    linear-gradient(135deg, rgba(244, 178, 60, 0.2), transparent 28%),
    linear-gradient(135deg, #102033 0%, #0f766e 48%, #2457a6 100%);
  box-shadow: 0 28px 70px rgba(15, 32, 51, 0.24);
}

.tool-showcase .eyebrow,
.tool-showcase h2,
.tool-showcase h3 {
  color: #ffffff;
}

.tool-showcase .section-heading p,
.tool-showcase p {
  color: rgba(248, 250, 252, 0.82);
}

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

.tool-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 285px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(3, 7, 18, 0.14);
}

.tool-grid span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #0f766e;
  background: #ffffff;
  font-weight: 900;
}

.tool-grid h3 {
  margin: 18px 0 8px;
}

.tool-grid p {
  margin: 0;
  line-height: 1.55;
}

.onboarding-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(244, 178, 60, 0.12) 54%, rgba(36, 87, 166, 0.08)),
    #ffffff;
}

.onboarding-grid,
.contrast-grid,
.auth-onboarding {
  display: grid;
  gap: 14px;
}

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

.onboarding-grid article,
.contrast-card,
.auth-onboarding article {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(217, 225, 231, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.onboarding-grid article {
  min-height: 285px;
  padding: 26px;
}

.onboarding-grid span,
.auth-onboarding span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  font-weight: 900;
}

.onboarding-grid h3,
.contrast-card h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
}

.onboarding-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.customer-onboarding article:nth-child(2) span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.customer-onboarding article:nth-child(3) span {
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.customer-onboarding article:nth-child(4) span {
  background: linear-gradient(135deg, var(--leaf), var(--brand));
}

.software-contrast {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(11, 47, 79, 0.96), rgba(15, 118, 110, 0.92) 48%, rgba(180, 83, 9, 0.78)),
    var(--navy);
}

.software-contrast .eyebrow,
.software-contrast h2,
.software-contrast h3 {
  color: #ffffff;
}

.software-contrast .section-heading p {
  color: rgba(248, 250, 252, 0.82);
}

.contrast-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contrast-card {
  min-height: 390px;
  padding: 32px;
}

.contrast-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.95rem;
  font-weight: 860;
}

.contrast-card li {
  color: inherit;
}

.muted-card {
  color: rgba(248, 250, 252, 0.78);
  border-color: rgba(248, 250, 252, 0.18);
  background: rgba(15, 23, 42, 0.26);
}

.muted-card span {
  color: #fde68a;
  background: rgba(180, 83, 9, 0.28);
}

.winner-card {
  color: #122033;
  border-color: rgba(255, 255, 255, 0.6);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 249, 0.95)),
    #ffffff;
  box-shadow: 0 24px 58px rgba(3, 7, 18, 0.22);
}

.winner-card h3 {
  color: var(--brand-dark);
}

.winner-card span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--blue));
}

.ai-highlight-section {
  margin-top: 34px;
  border-radius: 8px;
  padding: clamp(38px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(135deg, #312e81, #4c1d95 46%, #1a3c4d),
    #312e81;
  box-shadow: 0 24px 70px rgba(49, 46, 129, 0.22);
}

.ai-highlight-section .eyebrow,
.ai-highlight-section h2,
.ai-highlight-section h3 {
  color: #ffffff;
}

.ai-highlight-section .section-heading p,
.ai-highlight-section p {
  color: rgba(238, 242, 255, 0.84);
}

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

.ai-feature-grid article {
  min-height: 235px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-onboarding {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin-top: 22px;
}

.auth-onboarding article {
  min-height: 150px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.auth-onboarding strong,
.auth-onboarding small {
  display: block;
}

.auth-onboarding small {
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading h2,
.split-section h2,
.pricing-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.steps article,
.role-cards article {
  min-height: 340px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.role-cards article {
  min-height: 360px;
  background: #fff;
}

.role-cards span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  border: 1px solid #8fd5cc;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: #effbf9;
  font-size: 0.95rem;
  font-weight: 820;
}

.role-cards h3,
.role-cards p {
  margin: 12px 0 0;
}

.role-cards p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 850;
}

.steps h3,
.feature-list strong,
.result-card h3 {
  margin: 14px 0 7px;
}

.split-section,
.pricing-section {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: center;
}

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

.feature-list div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr 1fr;
  gap: 14px;
}

.founder-grid article,
.founder-price-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.founder-price-card {
  border-color: #8fd5cc;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,251,249,0.94)),
    #effbf9;
}

.founder-price-card strong {
  color: var(--brand-dark);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.92;
}

.founder-price-card span {
  color: var(--muted);
  font-weight: 820;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.price-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #8fd5cc;
  border-radius: 8px;
  background: #effbf9;
}

.price-card strong {
  color: var(--brand-dark);
  font-size: 2.7rem;
  line-height: 1;
}

.price-card.inline {
  align-self: stretch;
}

.quote-confirmation {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, #effbf9 58%, #fff8e8);
  box-shadow: 0 22px 58px rgba(24, 34, 47, 0.11);
}

.quote-confirmation span {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.9rem;
  font-weight: 900;
}

.quote-confirmation h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.quote-confirmation p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  background: linear-gradient(135deg, #edf4f6, #fff8e8);
}

.pro-app {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  overflow: hidden;
}

.pro-app.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pro-app .app-sidebar {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  gap: 8px;
  padding: 22px 14px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, #0b2f4f 0, #0f766e 100%);
}

.app-sidebar h2 {
  font-size: 1.7rem;
}

.pro-app .app-sidebar h2,
.pro-app .app-sidebar .eyebrow {
  color: #ffffff;
}

.app-nav {
  justify-content: flex-start;
  width: 100%;
}

.pro-app .app-nav {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  overflow: hidden;
}

.pro-app .app-nav.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
}

.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 52px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-toggle-icon {
  display: grid;
  gap: 5px;
  width: 24px;
}

.sidebar-toggle-icon span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

.pro-app.sidebar-collapsed .sidebar-toggle-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.pro-app.sidebar-collapsed .sidebar-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.pro-app.sidebar-collapsed .sidebar-toggle-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.pro-app.sidebar-collapsed .app-sidebar {
  padding-inline: 10px;
}

.pro-app.sidebar-collapsed .app-sidebar h2,
.pro-app.sidebar-collapsed .app-sidebar .eyebrow {
  display: none;
}

.pro-app.sidebar-collapsed .app-nav {
  justify-content: center;
  min-height: 54px;
  padding-inline: 8px;
  font-size: 0;
}

.pro-app.sidebar-collapsed .app-nav::after {
  content: attr(data-short);
  font-size: 0.88rem;
}

.app-main {
  min-width: 0;
}

.pro-app .app-main {
  min-height: 0;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.view,
.app-panel {
  display: none;
}

.view.active,
.app-panel.active {
  display: block;
}

.app-panel {
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pro-app .app-panel {
  min-height: calc(100dvh - 101px);
  padding: 34px 34px 82px;
  border: 0;
  border-radius: 0;
  font-size: 0.96rem;
}

@media (display-mode: standalone) {
  body[data-dashboard="true"] {
    overflow: auto;
    background:
      linear-gradient(135deg, rgba(11, 47, 79, 0.12), rgba(15, 118, 110, 0.16) 42%, rgba(244, 178, 60, 0.13)),
      #f7fbfd;
  }

  body[data-dashboard="true"] .dashboard-main {
    width: min(100%, 1920px);
    min-height: auto;
    height: auto;
  }

  body[data-dashboard="true"] .pro-app {
    min-height: 760px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar {
    min-height: 760px;
    max-height: none;
    overflow: visible;
  }

  body[data-dashboard="true"] .pro-app .app-main {
    min-height: 760px;
    max-height: none;
    overflow: visible;
  }

  body[data-dashboard="true"] .pro-app .app-panel {
    min-height: 760px;
  }
}

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

label,
fieldset {
  display: grid;
  gap: 9px;
  color: #2d3742;
  font-size: 1.15rem;
  font-weight: 740;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

legend {
  padding: 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 70px;
  padding: 17px 21px;
  color: var(--ink);
  font-size: 1.08rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  border-color: var(--focus);
}

textarea {
  resize: vertical;
  min-height: 190px;
}

.wide {
  grid-column: 1 / -1;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  color: var(--muted);
  font-weight: 680;
}

.checks input {
  width: auto;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 1.08rem;
  line-height: 1.45;
}

.consent-row input {
  width: auto;
  margin-top: 4px;
}

.auth-row {
  margin-bottom: 16px;
}

.auth-row input {
  width: min(420px, 100%);
}

.image-upload {
  align-content: start;
}

.image-upload input[type="file"] {
  padding: 18px;
  background: var(--soft);
}

.image-preview {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

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

.notice {
  min-height: 28px;
  margin: 8px 0 18px;
}

.notice[data-tone="error"] {
  color: var(--danger);
}

.notice[data-tone="success"] {
  color: var(--brand-dark);
}

.locked {
  opacity: 0.58;
  pointer-events: none;
}

.actions {
  margin: 0 0 18px;
}

.results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.demo-results {
  margin-top: 14px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.result-card.revealed {
  border-color: #8fd5cc;
  background: #effbf9;
}

.result-card h3 {
  margin-top: 0;
}

.result-card p {
  margin: 0;
}

.score {
  display: grid;
  place-items: center;
  min-width: 78px;
  min-height: 58px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dff3f0;
  font-weight: 850;
  text-align: center;
}

.billing-layout {
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  align-items: start;
}

.pro-workspace {
  background: #f7f9fc;
}

.workspace-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #ffffff 0, #effbf9 58%, #fff8e8 100%);
}

.workspace-topline h2 {
  margin: 4px 0 0;
  font-size: 1.9rem;
}

.workspace-actions,
.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.command-metrics article {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.command-metrics span,
.command-metrics small,
.feed-row small {
  color: var(--muted);
  font-weight: 720;
}

.command-metrics strong {
  font-size: 1.9rem;
}

.insight-metrics {
  margin-top: -6px;
  margin-bottom: 22px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.workspace-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f9fbff);
}

.assistant-answer {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.assistant-message {
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.assistant-message strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.assistant-message p {
  margin: 0;
  color: var(--muted);
}

.install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  background: #effbf9;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  background: #0f172a;
}

.command-strip div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.command-strip span {
  color: #bdd7ff;
  font-weight: 760;
}

.command-strip strong {
  color: #ffffff;
}

.install-card h3,
.install-card p {
  margin: 4px 0 0;
}

.workspace-card h3,
.mini-header h3 {
  margin: 3px 0 0;
}

.mini-feed,
.pipeline-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feed-row,
.pipeline-list div {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
}

.feed-row strong,
.pipeline-list strong {
  font-size: 1.05rem;
}

.lead-opportunity[data-status="accepted"] {
  border-color: #86d4b2;
  background: #f0fbf6;
}

.lead-opportunity[data-status="did-not-get-it"] {
  border-color: #f2b8b5;
  background: #fff7f7;
}

.lead-record[data-status="accepted"] {
  border-color: #86d4b2;
  background: #f0fbf6;
}

.lead-record[data-status="did-not-get-it"] {
  border-color: #f2b8b5;
  background: #fff7f7;
}

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

.muted-copy {
  color: var(--muted);
  line-height: 1.55;
}

.status-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.status-grid div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none;
}

.swipe-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.phone-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #18222f;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d8f3ee;
  font-size: 0.9rem;
  font-weight: 760;
}

.swipe-card {
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.hero-card {
  transform: rotate(-2deg);
}

.active-card {
  width: min(440px, 100%);
  margin: 0 auto;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  transition: transform 160ms ease, border-color 160ms ease;
  user-select: none;
}

.active-card.dragging {
  transition: none;
}

.active-card[data-swipe="left"] {
  border-color: #f2a6a0;
}

.active-card[data-swipe="right"] {
  border-color: #8fd5cc;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 6px;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(36, 87, 166, 0.92)),
    var(--brand);
  font-size: 2.5rem;
  font-weight: 900;
}

.profile-photo {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(14, 42, 71, 0.12);
  background: #fff;
}

.profile-photo.small {
  width: 72px;
  height: 72px;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.swipe-card h2,
.swipe-card h3 {
  margin: 0;
  text-align: center;
  font-size: 1.7rem;
}

.swipe-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.swipe-card .owner {
  color: var(--ink);
  font-weight: 780;
}

.credential-line {
  color: var(--brand-dark) !important;
  font-weight: 820;
}

.specialty-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.specialty-row span {
  border: 1px solid #8fd5cc;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: #effbf9;
  font-size: 0.86rem;
  font-weight: 760;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

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

.zip-commitment {
  font-size: 1.1rem;
}

.zip-commitment input {
  min-height: 68px;
  font-size: 2rem;
  font-weight: 850;
  text-align: center;
}

.swipe-stack {
  display: grid;
  min-height: 460px;
  place-items: center;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.profile-view {
  display: grid;
  gap: 18px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.profile-header .logo-badge {
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 18px;
  font-size: 1.8rem;
}

.profile-header h3,
.profile-header p {
  margin: 0;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--muted);
  background: #fff;
  font-weight: 760;
}

.profile-tabs button.active {
  color: var(--brand-dark);
  border-color: #8fd5cc;
  background: #effbf9;
}

.profile-tab-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.profile-gallery:empty {
  display: none;
}

.profile-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-card,
.review-admin-list article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-card span,
.review-admin-list span {
  color: var(--muted);
}

.call-button {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.radius-control {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.radius-control input {
  padding: 0;
}

.review-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

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

.dispatch-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 16px 0;
}

.owner-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
  align-items: start;
}

.owner-pro-panel {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.owner-pro-panel h3 {
  margin: 0;
}

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

.lead-admin-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-admin-card p {
  margin: 8px 0;
}

.lead-admin-card span {
  display: block;
  color: var(--muted);
}

.estimate-workbox {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(220px, 1.4fr);
  gap: 12px;
  margin-top: 12px;
}

.estimate-workbox label {
  font-size: 1rem;
}

.estimate-workbox input,
.estimate-workbox textarea {
  min-height: 54px;
  padding: 12px 14px;
  font-size: 1rem;
}

.estimate-workbox textarea {
  min-height: 92px;
}

.lead-select {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lead-select input {
  width: auto;
}

.review-admin-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.review-admin-list article.owner-profile {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f2fbf8;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.switch input {
  width: auto;
}

.pro-hero {
  min-height: 460px;
}

.pro-summary-card,
.notice-card,
.setup-list {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pro-summary-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.mini-kpis,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-kpis div,
.stat-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.mini-kpis strong,
.stat-card strong {
  color: var(--brand-dark);
  font-size: 1.55rem;
}

.mini-kpis span,
.stat-card span,
.stat-card p,
.setup-list label,
.lead-opportunity p,
.profile-preview-card p,
.notice-card p {
  color: var(--muted);
}

.setup-list {
  margin-top: 18px;
  box-shadow: none;
}

.setup-list h3 {
  margin: 0;
}

.setup-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.setup-list input {
  width: auto;
}

.lead-board,
.lead-database,
.settings-list {
  display: grid;
  gap: 14px;
}

.lead-database {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.lead-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lead-record:last-child {
  border-bottom: 0;
}

.lead-record.available-lead {
  border-left: 8px solid var(--brand);
  background: linear-gradient(90deg, #effbf9, #ffffff);
}

.lead-record.verified-lead {
  border-left: 8px solid var(--leaf);
  background: linear-gradient(90deg, #ecfdf3, #ffffff);
}

.lead-record.unverified-lead {
  border-left: 8px solid var(--coral);
  background: linear-gradient(90deg, #fff1f1, #ffffff);
}

.lead-record.locked-lead {
  border-left: 8px solid #94a3b8;
  background: #f8fafc;
}

.lead-record-main {
  display: grid;
  gap: 10px;
}

.lead-record-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
}

.lead-record-title h3 {
  grid-column: 1 / -1;
  margin: 0;
}

.pro-lead-row {
  grid-template-columns: 1fr;
  gap: 0;
}

.lead-row-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.lead-open-hint {
  align-self: center;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dff3f0;
  font-size: 0.9rem;
}

.lead-details,
.lead-row-actions {
  display: none;
  margin-top: 14px;
}

.lead-open .lead-details,
.lead-open .lead-row-actions {
  display: grid;
}

.lead-open .lead-open-hint {
  color: #fff;
  background: var(--brand);
}

.lead-details {
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-details p {
  margin: 0;
  color: var(--muted);
}

.lead-reminder {
  width: fit-content;
  margin-top: 6px !important;
  padding: 7px 10px;
  border-radius: 8px;
  color: #7c2d12 !important;
  background: #ffedd5;
  font-weight: 800;
}

.lead-row-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lead-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.8rem;
  font-weight: 850;
}

.locked-lead .lead-status-pill {
  background: #64748b;
}

.blurred-contact {
  opacity: 0.78;
  filter: blur(2.2px);
  user-select: none;
}

.locked-actions {
  opacity: 0.72;
}

.message-preview {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.message-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.subtab {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  color: var(--muted);
  background: #fff;
  font-weight: 820;
}

.subtab.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.estimator-tab,
.invoice-tab {
  display: none;
}

.estimator-tab.active,
.invoice-tab.active {
  display: block;
}

.excel-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 8px;
}

.excel-form input,
.excel-form select {
  min-height: 52px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.excel-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.excel-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-card-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 251, 249, 0.98), rgba(238, 244, 255, 0.98)),
    #ffffff;
  text-align: center;
}

.mobile-card-preview h3,
.mobile-card-preview p {
  margin: 0;
}

.qr-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(15, 118, 110, 0.32);
  border-radius: 8px;
  background: #ffffff;
}

.qr-box img {
  width: min(260px, 100%);
  height: auto;
  border-radius: 8px;
}

.qr-box small {
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.excel-row span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.94), rgba(255, 251, 235, 0.78)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.funnel-row-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.funnel-row-main h3,
.funnel-row-main p {
  margin: 0;
}

.funnel-link {
  width: 100%;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.template-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f5fbff);
  color: var(--ink);
  text-align: left;
}

.template-card span,
.template-card small {
  color: var(--muted);
  font-weight: 760;
}

.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.photo-strip img,
.photo-strip span {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.photo-strip span {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.photo-job-card,
.invoice-card {
  align-items: start;
}

.quality-good {
  border-left: 6px solid var(--leaf) !important;
}

.quality-warn {
  border-left: 6px solid var(--coral) !important;
}

.lead-opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-opportunity.hot {
  border-color: #8fd5cc;
  background: #effbf9;
}

.lead-opportunity h3,
.lead-opportunity p {
  margin: 0 0 7px;
}

.job-card {
  margin-top: 12px;
}

.lead-actions {
  display: grid;
  gap: 8px;
  min-width: 110px;
}

.lead-actions button,
.lead-actions .link-button {
  width: 100%;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.modal.hidden {
  display: none;
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel h2,
.modal-panel p {
  margin: 0;
}

.modal-close {
  justify-self: end;
  min-height: 44px;
  padding: 10px 16px;
}

.profile-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 18px;
  align-items: start;
}

.profile-preview-card {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-preview-card h3 {
  margin: 0;
}

.settings-list {
  max-width: 680px;
}

.settings-list .switch {
  justify-content: space-between;
  min-height: 56px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.paywall-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff8e8;
}

.paywall-banner strong {
  color: #8a4b05;
}

.paywall-banner span {
  color: var(--muted);
}

.formation-hero {
  align-items: stretch;
}

.formation-account-card,
.addon-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.formation-account-card h2,
.addon-panel h2 {
  margin: 0;
}

.formation-account-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 760;
}

.formation-account-card input {
  width: 100%;
}

.addon-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 22px;
  background: #f7fbff;
}

.price-preview {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.price-preview strong {
  font-size: 1.15rem;
}

.price-preview span {
  color: var(--muted);
}

.link-button.disabled {
  opacity: 0.52;
  pointer-events: none;
}

.disabled-price-button,
button:disabled.disabled-price-button {
  cursor: not-allowed;
  opacity: 0.64;
  filter: saturate(0.7);
}

.locked-feature {
  position: relative;
  border-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.feature-lock {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #312e81;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.locked-feature-banner {
  margin-bottom: 18px;
  border-color: rgba(99, 102, 241, 0.22);
  background: #eef2ff;
}

.locked-action,
button:disabled.locked-action {
  border-color: rgba(100, 116, 139, 0.25);
  background: #e2e8f0;
  color: #475569;
  cursor: not-allowed;
}

body[data-page="formation"] .result-card {
  margin-top: 22px;
  grid-template-columns: 1fr;
}

.corp-field.hidden {
  display: none;
}

@media (max-width: 980px) {
  body[data-dashboard="true"] {
    overflow: auto;
  }

  body[data-dashboard="true"] .dashboard-main {
    min-height: auto;
    height: auto;
  }

  body[data-dashboard="true"] .pro-app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar {
    position: relative;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  body[data-dashboard="true"] .pro-app .app-main {
    max-height: none;
    overflow: visible;
  }

  body[data-dashboard="true"] .pro-app .app-panel {
    min-height: auto;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .hero,
  .metric-band,
  .steps,
  .role-cards,
  .tool-grid,
  .onboarding-grid,
  .contrast-grid,
  .auth-onboarding,
  .service-tile-grid,
  .review-card-grid,
  .trust-strip,
  .service-option-grid,
  .ai-feature-grid,
  .founder-grid,
  .split-section,
  .pricing-section,
  .app-shell,
  .billing-layout,
  .status-grid,
  .workspace-grid,
  .command-strip,
  .command-metrics,
  .dashboard-grid,
  .excel-form,
  .excel-row,
  .template-grid,
  .mini-kpis,
  .profile-builder,
  .lead-opportunity,
  .funnel-row,
  .lead-record,
  .lead-row-toggle,
  .lead-row-actions,
  .lead-record-title {
    grid-template-columns: 1fr;
  }

  .workspace-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .install-card {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
  }

  .swipe-hero {
    grid-template-columns: 1fr;
  }

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

  .app-sidebar div {
    grid-column: 1 / -1;
  }

  .home-hero {
    min-height: 0;
  }

  .setup-checklist article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 18px;
  }

  body {
    overflow-x: hidden;
  }

  main {
    width: min(100% - 16px, 1200px);
    padding-top: 14px;
  }

  .topbar {
    min-height: auto;
    gap: 12px;
    padding: 14px 12px;
  }

  .brand {
    white-space: normal;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-wordmark {
    width: 190px;
    height: auto;
  }

  .tab,
  .primary,
  .secondary,
  .ghost,
  .app-nav,
  .link-button {
    min-height: 48px;
    padding: 12px 16px;
  }

  body[data-page="customer"] .customer-site-app h1,
  .hero-copy h1,
  .auth-copy h1,
  .home-hero h1,
  .quote-step h1,
  .pro-onboarding-page h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .section-heading,
  .result-card,
  .form-grid,
  .quote-wizard-actions,
  .estimate-workbox,
  .owner-command-grid,
  .review-link-box,
  .review-admin-list article,
  .profile-header,
  .paywall-banner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .content-section,
  .split-section,
  .pricing-section,
  .app-panel {
    padding: 18px;
  }

  .app-shell {
    padding: 10px;
    overflow: visible;
  }

  .app-sidebar {
    grid-template-columns: 1fr;
  }

  .result-card .primary,
  .result-card .secondary,
  .tabs button,
  .hero-actions a,
  .swipe-actions {
    width: 100%;
  }

  .swipe-actions {
    grid-template-columns: 1fr;
  }

  .profile-preview-card {
    position: static;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  input,
  select,
  textarea {
    min-width: 0;
  }
}

/* Apex Leads Pro Tools command-center skin */
body[data-dashboard="true"] {
  --app-ink: #111827;
  --app-muted: #64748b;
  --app-line: rgba(148, 163, 184, 0.24);
  --app-bg: #eef3f8;
  --app-panel: rgba(255, 255, 255, 0.94);
  --app-dark: #08111f;
  --app-dark-2: #0f1d2e;
  --app-teal: #14b8a6;
  --app-orange: #f97316;
  --app-blue: #2563eb;
  --app-green: #16a34a;
  --app-violet: #7c3aed;
  --app-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
  min-height: 100dvh;
  color: var(--app-ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 46%, #e8eef6 100%);
}

body[data-dashboard="true"] main.dashboard-main {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body[data-dashboard="true"] .pro-app {
  grid-template-columns: 306px minmax(0, 1fr);
  min-height: 100dvh;
  height: 100dvh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 243, 248, 0.9)),
    var(--app-bg);
}

body[data-dashboard="true"] .pro-app.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

body[data-dashboard="true"] .pro-app .app-sidebar {
  gap: 6px;
  padding: 20px 14px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, #07111f 0%, #0b1625 46%, #102033 100%);
  box-shadow: 12px 0 34px rgba(15, 23, 42, 0.18);
}

body[data-dashboard="true"] .pro-app .app-sidebar > div:first-child {
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.14)),
    rgba(255, 255, 255, 0.04);
}

body[data-dashboard="true"] .pro-app .app-sidebar .eyebrow {
  color: #67e8f9;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

body[data-dashboard="true"] .pro-app .app-sidebar h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.1rem;
  line-height: 1.08;
}

body[data-dashboard="true"] .sidebar-toggle {
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 6px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

body[data-dashboard="true"] .pro-app .app-nav {
  position: relative;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 780;
}

body[data-dashboard="true"] .pro-app .app-nav:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body[data-dashboard="true"] .pro-app .app-nav.active {
  border-color: rgba(20, 184, 166, 0.26);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.26), rgba(37, 99, 235, 0.18)),
    rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #14b8a6;
}

body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav {
  min-height: 48px;
  border-radius: 8px;
}

body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav::after {
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 850;
}

body[data-dashboard="true"] .pro-workspace {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(235, 241, 248, 0.95)),
    var(--app-bg);
}

body[data-dashboard="true"] .pro-app .app-main {
  max-height: 100dvh;
  overflow-y: auto;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.34), transparent 22%),
    var(--app-bg);
}

body[data-dashboard="true"] .workspace-topline {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 92px;
  padding: 18px 30px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

body[data-dashboard="true"] .workspace-topline .eyebrow,
body[data-dashboard="true"] .app-panel .eyebrow {
  color: var(--app-teal);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  font-weight: 950;
}

body[data-dashboard="true"] .workspace-topline h2 {
  margin: 2px 0 0;
  color: var(--app-ink);
  font-size: 1.42rem;
  letter-spacing: 0;
}

body[data-dashboard="true"] .workspace-actions {
  gap: 10px;
}

body[data-dashboard="true"] .primary,
body[data-dashboard="true"] .secondary,
body[data-dashboard="true"] .ghost,
body[data-dashboard="true"] .link-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  font-weight: 850;
}

body[data-dashboard="true"] .primary {
  border-color: var(--app-orange);
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

body[data-dashboard="true"] .secondary {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

body[data-dashboard="true"] .secondary:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #f8fafc;
}

body[data-dashboard="true"] .pro-app .app-panel {
  min-height: calc(100dvh - 92px);
  padding: 28px 30px 72px;
  background: transparent;
}

body[data-dashboard="true"] .section-heading.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.78)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

body[data-dashboard="true"] .section-heading.compact h2 {
  margin: 4px 0 0;
  max-width: 980px;
  color: #0f172a;
  font-size: clamp(1.68rem, 2.6vw, 2.7rem);
  line-height: 1.02;
}

body[data-dashboard="true"] .section-heading.compact p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

body[data-dashboard="true"] .command-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

body[data-dashboard="true"] .command-metrics article {
  position: relative;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body[data-dashboard="true"] .command-metrics article::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--app-teal);
}

body[data-dashboard="true"] .command-metrics article:nth-child(2)::before {
  background: var(--app-blue);
}

body[data-dashboard="true"] .command-metrics article:nth-child(3)::before {
  background: var(--app-orange);
}

body[data-dashboard="true"] .command-metrics article:nth-child(4)::before {
  background: var(--app-violet);
}

body[data-dashboard="true"] .command-metrics span,
body[data-dashboard="true"] .command-metrics small {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body[data-dashboard="true"] .command-metrics strong {
  color: #0f172a;
  font-size: 2.2rem;
  line-height: 1;
}

body[data-dashboard="true"] .workspace-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  gap: 18px;
}

body[data-dashboard="true"] .workspace-card,
body[data-dashboard="true"] .lead-opportunity,
body[data-dashboard="true"] .lead-record,
body[data-dashboard="true"] .notice-card,
body[data-dashboard="true"] .paywall-banner {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

body[data-dashboard="true"] .workspace-card {
  padding: 22px;
}

body[data-dashboard="true"] .workspace-card h3,
body[data-dashboard="true"] .mini-header h3 {
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.15;
}

body[data-dashboard="true"] .mini-header {
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-dashboard="true"] .feed-row,
body[data-dashboard="true"] .pipeline-list div,
body[data-dashboard="true"] .status-grid div,
body[data-dashboard="true"] .excel-row,
body[data-dashboard="true"] .template-card,
body[data-dashboard="true"] .lead-admin-list article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

body[data-dashboard="true"] .command-strip {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border: 0;
  background:
    linear-gradient(135deg, #08111f 0%, #102033 58%, #14313f 100%);
  box-shadow: 0 24px 70px rgba(8, 17, 31, 0.2);
}

body[data-dashboard="true"] .command-strip div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

body[data-dashboard="true"] .form-grid {
  gap: 16px;
}

body[data-dashboard="true"] label,
body[data-dashboard="true"] fieldset {
  gap: 7px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

body[data-dashboard="true"] input,
body[data-dashboard="true"] select,
body[data-dashboard="true"] textarea {
  min-height: 48px;
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  padding: 12px 13px;
  color: #0f172a;
  font-size: 0.92rem;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

body[data-dashboard="true"] textarea {
  min-height: 116px;
}

body[data-dashboard="true"] input:focus,
body[data-dashboard="true"] select:focus,
body[data-dashboard="true"] textarea:focus {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

body[data-dashboard="true"] .notice {
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: var(--app-muted);
}

body[data-dashboard="true"] .assistant-message {
  border-color: rgba(20, 184, 166, 0.26);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
}

body[data-dashboard="true"] .locked-feature {
  border-color: rgba(124, 58, 237, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.92));
}

body[data-dashboard="true"] .feature-lock {
  min-height: 26px;
  background: linear-gradient(135deg, #6d28d9, #2563eb);
  font-size: 0.64rem;
}

body[data-dashboard="true"] .modal-panel {
  border-radius: 8px;
}

@media (min-width: 1400px) {
  body[data-dashboard="true"] .pro-app .app-panel {
    padding-inline: 42px;
  }

  body[data-dashboard="true"] .workspace-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(420px, 0.8fr);
  }
}

@media (max-width: 1100px) {
  body[data-dashboard="true"] .pro-app {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  body[data-dashboard="true"] .pro-app .app-sidebar {
    padding-inline: 10px;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar h2,
  body[data-dashboard="true"] .pro-app .app-sidebar .eyebrow {
    display: none;
  }

  body[data-dashboard="true"] .pro-app .app-nav {
    justify-content: center;
    padding-inline: 8px;
    font-size: 0;
  }

  body[data-dashboard="true"] .pro-app .app-nav::after {
    content: attr(data-short);
    font-size: 0.72rem;
  }
}

@media (max-width: 980px) {
  body[data-dashboard="true"] .pro-app {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 0;
    max-height: none;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar > div:first-child,
  body[data-dashboard="true"] .sidebar-toggle {
    display: none;
  }

  body[data-dashboard="true"] .pro-app .app-nav,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav::after {
    content: none;
  }

  body[data-dashboard="true"] .pro-app .app-main {
    max-height: none;
    overflow: visible;
  }

  body[data-dashboard="true"] .workspace-topline {
    position: static;
  }

  body[data-dashboard="true"] .section-heading.compact,
  body[data-dashboard="true"] .workspace-grid,
  body[data-dashboard="true"] .command-metrics,
  body[data-dashboard="true"] .command-strip,
  body[data-dashboard="true"] .billing-layout,
  body[data-dashboard="true"] .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-dashboard="true"] .pro-app .app-panel {
    padding: 18px 12px 48px;
  }

  body[data-dashboard="true"] .workspace-topline,
  body[data-dashboard="true"] .section-heading.compact,
  body[data-dashboard="true"] .workspace-card {
    padding: 16px;
  }

  body[data-dashboard="true"] .workspace-topline h2,
  body[data-dashboard="true"] .section-heading.compact h2 {
    font-size: 1.5rem;
  }
}

/* 2026 premium web-SaaS pass for A.L.P.T. */
body[data-dashboard="true"] .workspace-topline {
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) auto;
  align-items: center;
}

body[data-dashboard="true"] .workspace-brandmark {
  min-width: 0;
}

body[data-dashboard="true"] .workspace-brandmark .eyebrow {
  max-width: 170px;
  margin: 0;
}

body[data-dashboard="true"] .workspace-brandmark h2 {
  max-width: 180px;
  margin: 3px 0 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-dashboard="true"] .command-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(620px, 100%);
  min-height: 48px;
  justify-self: center;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 26px rgba(15, 23, 42, 0.05);
}

body[data-dashboard="true"] .workspace-topline .workspace-actions {
  justify-content: flex-end;
}

body[data-dashboard="true"] .command-search span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #0f172a;
  background: #e2e8f0;
  font-weight: 900;
}

body[data-dashboard="true"] .command-search input {
  min-height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.86rem;
}

body[data-dashboard="true"] .command-search input:focus {
  box-shadow: none;
}

body[data-dashboard="true"] .live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 999px;
  color: #166534;
  background: #ecfdf5;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

body[data-dashboard="true"] .live-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

body[data-dashboard="true"] .pro-app .app-nav::before {
  content: attr(data-short);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 30px;
  margin-right: 0;
  border-radius: 7px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.58rem;
  font-weight: 950;
}

body[data-dashboard="true"] .pro-app .app-nav {
  gap: 10px;
}

body[data-dashboard="true"] .pro-app .app-nav.active::before {
  color: #06111f;
  background: #67e8f9;
}

body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav::before {
  margin-right: 0;
}

body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav::after {
  content: none;
}

body[data-dashboard="true"] .command-metrics article::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -32px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.08);
}

body[data-dashboard="true"] .command-metrics article:nth-child(2)::after {
  background: rgba(37, 99, 235, 0.08);
}

body[data-dashboard="true"] .command-metrics article:nth-child(3)::after {
  background: rgba(249, 115, 22, 0.1);
}

body[data-dashboard="true"] .command-metrics article:nth-child(4)::after {
  background: rgba(124, 58, 237, 0.1);
}

body[data-dashboard="true"] .workspace-card:hover,
body[data-dashboard="true"] .lead-opportunity:hover,
body[data-dashboard="true"] .lead-record:hover {
  border-color: rgba(20, 184, 166, 0.34);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.11);
}

body[data-dashboard="true"] .paywall-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(16, 32, 51, 0.94));
}

body[data-dashboard="true"] .paywall-banner strong {
  color: #ffffff;
}

body[data-dashboard="true"] .paywall-banner span {
  color: #cbd5e1;
  font-size: 0.84rem;
}

body[data-dashboard="true"] .paywall-banner .secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

body[data-dashboard="true"] .locked-feature-banner {
  background:
    linear-gradient(135deg, rgba(49, 46, 129, 0.96), rgba(37, 99, 235, 0.88));
}

body[data-dashboard="true"] .compact-form,
body[data-dashboard="true"] .profile-builder,
body[data-dashboard="true"] .form-grid {
  align-items: start;
}

body[data-dashboard="true"] .lead-database {
  margin-top: 18px;
}

@media (max-width: 980px) {
  body[data-dashboard="true"] .workspace-topline {
    grid-template-columns: 1fr;
  }

  body[data-dashboard="true"] .command-search {
    justify-self: stretch;
    width: 100%;
  }

  body[data-dashboard="true"] .paywall-banner {
    grid-template-columns: 1fr;
  }

  body[data-dashboard="true"] .pro-app .app-nav::before {
    display: none;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 16px;
  }
}

/* A.L.P.T. launch theme: red/black pro SaaS */
body[data-page="pro"],
body[data-dashboard="true"] {
  --ink: #f8fafc;
  --muted: #a8b0bd;
  --line: rgba(255, 255, 255, 0.13);
  --paper: #101114;
  --soft: #17191f;
  --wash: #220b0f;
  --brand: #ef233c;
  --brand-dark: #b90f23;
  --accent: #ff4d5e;
  --danger: #ff3045;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 35, 60, 0.28), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(255, 77, 94, 0.16), transparent 28%),
    linear-gradient(145deg, #050507 0%, #101114 48%, #19070b 100%);
}

body[data-page="pro"] .topbar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 7, 0.84);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

body[data-page="pro"] .brand,
body[data-page="pro"] .site-nav a,
body[data-page="pro"] .auth-copy h1,
body[data-page="pro"] .auth-copy p,
body[data-page="pro"] .section-heading h2,
body[data-page="pro"] .tool-grid h3,
body[data-page="pro"] .role-cards h3,
body[data-page="pro"] .auth-card h2,
body[data-page="pro"] .auth-card label {
  color: #f8fafc;
}

body[data-page="pro"] .site-nav a:hover,
body[data-page="pro"] .eyebrow,
body[data-dashboard="true"] .eyebrow,
body[data-page="pro"] .trust-pill {
  color: #ff6b79;
}

body[data-page="pro"] .hero,
body[data-page="pro"] .pro-summary-card,
body[data-page="pro"] .content-section,
body[data-page="pro"] .tool-grid article,
body[data-page="pro"] .role-cards article,
body[data-page="pro"] .auth-card,
body[data-page="pro"] .auth-onboarding article,
body[data-page="pro"] .founder-price-card,
body[data-page="pro"] .contrast-card,
body[data-page="pro"] .ai-feature-grid article {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(12, 13, 17, 0.92);
  box-shadow: var(--shadow);
}

body[data-page="pro"] .hero p,
body[data-page="pro"] .content-section p,
body[data-page="pro"] .tool-grid p,
body[data-page="pro"] .role-cards p,
body[data-page="pro"] .auth-copy p,
body[data-page="pro"] .auth-card label,
body[data-page="pro"] .auth-onboarding small,
body[data-page="pro"] .clean-list li {
  color: #c9ced8;
}

body[data-page="pro"] input,
body[data-page="pro"] select,
body[data-page="pro"] textarea,
body[data-dashboard="true"] input,
body[data-dashboard="true"] select,
body[data-dashboard="true"] textarea {
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0c10;
}

body[data-page="pro"] input::placeholder,
body[data-page="pro"] textarea::placeholder,
body[data-dashboard="true"] input::placeholder,
body[data-dashboard="true"] textarea::placeholder {
  color: #7c8491;
}

body[data-page="pro"] .primary,
body[data-page="pro"] .orange-button,
body[data-dashboard="true"] .primary,
body[data-dashboard="true"] .orange-button {
  color: #ffffff;
  border-color: #ef233c;
  background: linear-gradient(135deg, #ff3045, #b90f23);
  box-shadow: 0 16px 32px rgba(239, 35, 60, 0.28);
}

body[data-page="pro"] .secondary,
body[data-dashboard="true"] .secondary {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

body[data-dashboard="true"] .pro-app {
  width: min(100%, 1760px);
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-dashboard="true"] .pro-app .app-sidebar {
  color: #f8fafc;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(239, 35, 60, 0.18), transparent 24%),
    #07080b;
}

body[data-dashboard="true"] .pro-app .app-nav {
  min-height: 48px;
  color: #dbe1ea;
  border: 1px solid transparent;
  touch-action: manipulation;
}

body[data-dashboard="true"] .pro-app .app-nav.active,
body[data-dashboard="true"] .pro-app .app-nav:hover {
  color: #ffffff;
  border-color: rgba(255, 48, 69, 0.5);
  background: linear-gradient(135deg, rgba(239, 35, 60, 0.3), rgba(255, 255, 255, 0.06));
}

body[data-dashboard="true"] .pro-app .app-panel,
body[data-dashboard="true"] .workspace-card,
body[data-dashboard="true"] .lead-opportunity,
body[data-dashboard="true"] .lead-record,
body[data-dashboard="true"] .paywall-banner,
body[data-dashboard="true"] .notice-card,
body[data-dashboard="true"] .workspace-topline {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(13, 15, 20, 0.94);
}

body[data-dashboard="true"] .workspace-actions .link-button[href*="stripe"],
body[data-dashboard="true"] .workspace-actions a.primary {
  display: none !important;
}

body[data-dashboard="true"] .form-grid button,
body[data-dashboard="true"] .lead-actions button,
body[data-dashboard="true"] .workspace-actions button,
body[data-dashboard="true"] .subtab,
body[data-dashboard="true"] .template-card {
  min-height: 46px;
  touch-action: manipulation;
}

@media (max-width: 980px) {
  body[data-dashboard="true"] .pro-app {
    grid-template-columns: 1fr;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 46vh;
    overflow: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body[data-dashboard="true"] .pro-app .app-sidebar > div:first-child,
  body[data-dashboard="true"] .sidebar-toggle {
    grid-column: 1 / -1;
  }

  body[data-dashboard="true"] .pro-app .app-nav,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav {
    justify-content: center;
    min-height: 52px;
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  body[data-dashboard="true"] .workspace-topline,
  body[data-page="pro"] .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 18px;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-dashboard="true"] .command-metrics,
  body[data-dashboard="true"] .workspace-grid,
  body[data-dashboard="true"] .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Final A.L.P.T. mobile/workspace polish: tool drawer + real command dashboard */
body[data-dashboard="true"] .mobile-nav-button,
body[data-dashboard="true"] .mobile-nav-backdrop {
  display: none;
}

body[data-dashboard="true"] .workspace-brandmark h2,
body[data-dashboard="true"] #workspace-company-name {
  max-width: none;
  overflow: visible;
  color: #ffffff;
  text-overflow: clip;
  white-space: normal;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 48, 69, 0.22);
}

body[data-dashboard="true"] .command-metrics .metric-action {
  position: relative;
  min-height: 148px;
  padding: 22px;
  text-align: left;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 48, 69, 0.25), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(13, 15, 20, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  touch-action: manipulation;
}

body[data-dashboard="true"] .command-metrics .metric-action:hover,
body[data-dashboard="true"] .command-metrics .metric-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 48, 69, 0.5);
  outline: none;
}

body[data-dashboard="true"] .command-metrics .metric-action::after {
  content: "Open";
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7b88;
}

body[data-dashboard="true"] .command-metrics .metric-action span,
body[data-dashboard="true"] .command-metrics .metric-action small {
  display: block;
  color: #aeb7c6;
}

body[data-dashboard="true"] .command-metrics .metric-action strong {
  display: block;
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
}

body[data-dashboard="true"] .dashboard-graph-card,
body[data-dashboard="true"] .dashboard-signal-card {
  min-height: 360px;
}

body[data-dashboard="true"] .dashboard-bars {
  display: grid;
  gap: 16px;
}

body[data-dashboard="true"] .dashboard-bars div {
  display: grid;
  grid-template-columns: minmax(92px, 0.4fr) 1fr auto;
  gap: 12px;
  align-items: center;
  color: #f8fafc;
}

body[data-dashboard="true"] .dashboard-bars div::before {
  content: "";
  grid-column: 2;
  width: var(--bar);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3045, #ffb703);
  box-shadow: 0 0 24px rgba(255, 48, 69, 0.26);
}

body[data-dashboard="true"] .dashboard-bars span {
  grid-column: 1;
  grid-row: 1;
  color: #dbe1ea;
  font-weight: 800;
}

body[data-dashboard="true"] .dashboard-bars strong {
  grid-column: 3;
  grid-row: 1;
  color: #ffffff;
}

body[data-dashboard="true"] .signal-list,
body[data-dashboard="true"] .shortcut-list {
  display: grid;
  gap: 12px;
}

body[data-dashboard="true"] .signal-list button,
body[data-dashboard="true"] .shortcut-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  width: 100%;
  padding: 16px;
  color: #f8fafc;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

body[data-dashboard="true"] .signal-list button:hover,
body[data-dashboard="true"] .shortcut-pill:hover {
  border-color: rgba(255, 48, 69, 0.45);
  background: rgba(255, 48, 69, 0.12);
}

body[data-dashboard="true"] .signal-list small,
body[data-dashboard="true"] .shortcut-pill small {
  grid-column: 2;
  color: #aeb7c6;
}

body[data-dashboard="true"] .signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffb703;
}

body[data-dashboard="true"] .signal-dot.danger {
  background: #ff3045;
}

body[data-dashboard="true"] .signal-dot.success {
  background: #28d17c;
}

@media (max-width: 980px) {
  body[data-dashboard="true"] {
    overflow-x: hidden;
  }

  body[data-dashboard="true"] .mobile-nav-button {
    display: inline-flex;
    width: fit-content;
  }

  body[data-dashboard="true"] .pro-app,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed {
    display: block;
    width: 100%;
    min-height: 100vh;
  }

  body[data-dashboard="true"] .pro-app .app-sidebar,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    display: flex;
    width: min(86vw, 360px);
    max-width: 360px;
    max-height: none;
    height: 100dvh;
    margin: 0;
    padding: 18px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body[data-dashboard="true"] .pro-app.mobile-nav-open .app-sidebar {
    transform: translateX(0);
  }

  body[data-dashboard="true"] .pro-app.mobile-nav-open .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
  }

  body[data-dashboard="true"] .pro-app .app-sidebar > div:first-child,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-sidebar > div:first-child,
  body[data-dashboard="true"] .sidebar-toggle {
    display: block;
  }

  body[data-dashboard="true"] .pro-app .app-nav,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-nav {
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 0.98rem;
  }

  body[data-dashboard="true"] .pro-app .app-main,
  body[data-dashboard="true"] .pro-app.sidebar-collapsed .app-main {
    min-width: 0;
    padding: 0;
  }

  body[data-dashboard="true"] .workspace-topline {
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 14px;
    border-radius: 0 0 22px 22px;
  }
}
