:root {
  --bg: oklch(0.968 0.006 230);
  --surface: oklch(1 0 0);
  --surface-soft: oklch(0.952 0.008 230);
  --surface-strong: oklch(0.91 0.012 230);
  --ink: oklch(0.18 0.018 236);
  --muted: oklch(0.43 0.018 236);
  --line: oklch(0.875 0.009 230);
  --primary: oklch(0.53 0.13 196);
  --primary-hover: oklch(0.47 0.14 196);
  --sidebar-ink: oklch(0.23 0.022 236);
  --sidebar-ink-strong: oklch(0.17 0.02 236);
  --accent: oklch(0.58 0.14 38);
  --success-bg: oklch(0.94 0.055 151);
  --success-fg: oklch(0.32 0.09 151);
  --warn-bg: oklch(0.95 0.075 88);
  --warn-fg: oklch(0.38 0.09 68);
  --bad-bg: oklch(0.94 0.06 24);
  --bad-fg: oklch(0.39 0.13 24);
  --radius: 8px;
  --rail: 64px;
  --sidebar: 304px;
  --z-modal-backdrop: 20;
  --z-modal: 30;
  --z-toast: 40;
  --brand-bg: oklch(0.975 0.018 190);
  --brand-surface: oklch(1 0 0);
  --brand-ink: oklch(0.105 0.004 250);
  --brand-muted: oklch(0.39 0.006 250);
  --brand-line: oklch(0.88 0.005 230);
  --brand-primary: oklch(0.43 0.045 195);
  --brand-primary-dark: oklch(0.13 0.004 250);
  --brand-accent: oklch(0.88 0.042 190);
  --brand-soft: oklch(0.955 0.02 190);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
}

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

a {
  color: var(--primary);
}

.marketing-site {
  background:
    linear-gradient(90deg, oklch(0.93 0.028 190 / 0.42) 1px, transparent 1px),
    linear-gradient(180deg, var(--brand-bg), oklch(0.99 0.006 190) 44%, oklch(0.97 0.014 190));
  background-size: 96px 96px, auto;
  color: var(--brand-ink);
  min-height: 100vh;
}

.marketing-nav {
  align-items: center;
  background: oklch(1 0 0 / 0.72);
  border: 1px solid oklch(0.88 0.005 230 / 0.8);
  border-radius: 12px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 14px auto 0;
  max-width: 1180px;
  padding: 10px 14px;
  position: sticky;
  top: 12px;
  z-index: 12;
}

.wordmark,
.desktop-nav,
.nav-actions,
.hero-actions,
.hero-notes,
.plan-tags,
.marketing-footer > div:last-child {
  align-items: center;
  display: flex;
}

.wordmark {
  color: var(--brand-ink);
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.wordmark-mark {
  background: var(--brand-ink);
  border-radius: 7px;
  color: white;
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

.desktop-nav {
  gap: 22px;
}

.desktop-nav a,
.marketing-footer a,
.footer-link {
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.desktop-nav a:hover,
.marketing-footer a:hover,
.footer-link:hover {
  color: var(--brand-ink);
}

.nav-actions {
  gap: 10px;
}

.link-action,
.footer-link {
  background: transparent;
  border: 0;
  color: var(--brand-muted);
  font-weight: 800;
  min-height: auto;
  padding: 0;
}

.soft-action,
.solid-action,
.text-link {
  border-radius: 7px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  text-decoration: none;
}

.soft-action {
  align-items: center;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
}

.solid-action {
  align-items: center;
  background: var(--brand-primary-dark);
  border: 1px solid var(--brand-primary-dark);
  color: white;
}

.solid-action:hover,
.soft-action:hover {
  transform: translateY(-1px);
}

.large {
  min-height: 48px;
  padding: 0 20px;
}

.hero-section {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  margin: 0 auto;
  max-width: 1180px;
  min-height: min(740px, calc(100vh - 74px));
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 34px) clamp(42px, 7vw, 82px);
}

.hero-copy {
  align-self: center;
}

.hero-kicker {
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 850;
  margin: 0 0 14px;
}

.hero-section h1,
.intro-band h2,
.steps-section h2,
.plan-section h2,
.signup-section h2 {
  color: var(--brand-ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.hero-section h1 {
  font-size: clamp(44px, 7vw, 76px);
  max-width: 880px;
}

.hero-lede {
  color: var(--brand-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 680px;
  text-wrap: pretty;
}

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

.hero-notes {
  color: var(--brand-muted);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-notes span,
.plan-tags span {
  background: oklch(1 0 0 / 0.84);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--brand-primary-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.product-preview {
  align-self: center;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 12px;
}

.preview-topline,
.preview-score,
.serp-card {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 14px;
}

.preview-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-topline span,
.preview-score span,
.serp-card span {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-score {
  background: linear-gradient(180deg, var(--brand-ink), oklch(0.18 0.004 250));
  color: white;
}

.preview-score strong {
  display: block;
  font-size: 72px;
  line-height: 0.9;
  margin-top: 6px;
}

.preview-score small {
  color: oklch(0.88 0.027 190);
  display: block;
  margin-top: 8px;
}

.preview-list {
  display: grid;
  gap: 8px;
}

.preview-list div {
  align-items: center;
  background: oklch(0.97 0.016 190);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  padding: 11px;
}

.preview-list em {
  color: var(--brand-muted);
  font-style: normal;
  font-weight: 750;
}

.dot {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.dot.ok,
.dot.warn,
.dot.info,
.dot.bad { background: var(--brand-ink); }

.serp-card strong {
  color: oklch(0.36 0.14 261);
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-top: 8px;
}

.serp-card p {
  color: var(--brand-muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.intro-band,
.solution-grid,
.steps-section,
.plan-section,
.signup-section,
.content-section,
.comparison-section,
.faq-section,
.page-hero,
.page-section,
.marketing-footer {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(18px, 4vw, 34px);
  padding-right: clamp(18px, 4vw, 34px);
}

.intro-band {
  align-items: end;
  border-top: 1px solid var(--brand-line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: clamp(42px, 7vw, 84px);
  padding-top: clamp(42px, 7vw, 84px);
}

.intro-band h2,
.steps-section h2,
.plan-section h2,
.signup-section h2 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 820px;
}

.intro-band p,
.section-lead p,
.plan-copy p,
.signup-section > div > p {
  color: var(--brand-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  text-wrap: pretty;
}

.text-link {
  align-items: center;
  color: var(--brand-primary-dark);
  min-height: auto;
  padding: 0;
}

.solution-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(48px, 8vw, 94px);
}

.solution-grid article,
.solution-grid a {
  background: oklch(1 0 0 / 0.88);
  border: 1px solid var(--brand-line);
  min-height: 220px;
  padding: clamp(20px, 3vw, 30px);
  text-decoration: none;
  color: var(--brand-ink);
}

.solution-grid h3,
.steps h3 {
  color: var(--brand-ink);
  font-size: 23px;
  line-height: 1.12;
  margin: 0;
}

.solution-grid p,
.steps p {
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.steps-section {
  padding-bottom: clamp(50px, 8vw, 100px);
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.steps article {
  background: linear-gradient(180deg, var(--brand-ink), oklch(0.17 0.004 250));
  border-radius: 8px;
  color: white;
  min-height: 250px;
  padding: 24px;
}

.steps span {
  background: white;
  border-radius: 999px;
  color: var(--brand-ink);
  display: grid;
  font-weight: 950;
  height: 34px;
  margin-bottom: 34px;
  place-items: center;
  width: 34px;
}

.steps h3 {
  color: white;
}

.steps p {
  color: oklch(0.88 0.025 190);
}

.plan-section,
.signup-section {
  align-items: center;
  border-top: 1px solid var(--brand-line);
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  padding-bottom: clamp(52px, 8vw, 100px);
  padding-top: clamp(52px, 8vw, 100px);
}

.plan-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.price-box {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 26px;
}

.price-box > span {
  color: var(--brand-muted);
  font-weight: 900;
}

.price-box strong {
  color: var(--brand-ink);
  font-size: clamp(48px, 6vw, 68px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.price-box small {
  color: var(--brand-muted);
  font-weight: 800;
}

.signup-form {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.signup-form label {
  color: var(--brand-ink);
}

.signup-form input {
  border-color: var(--brand-line);
  min-height: 44px;
}

.form-button {
  width: 100%;
}

.form-note {
  color: var(--brand-muted);
  line-height: 1.45;
  margin: 0;
}

.marketing-footer {
  align-items: center;
  border-top: 1px solid var(--brand-line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 34px;
  padding-top: 28px;
}

.marketing-footer p {
  color: var(--brand-muted);
  margin: 6px 0 0;
}

.marketing-footer > div:last-child {
  gap: 16px;
}

.platform-hidden {
  display: none !important;
}

.content-section,
.comparison-section,
.faq-section,
.page-section {
  border-top: 1px solid var(--brand-line);
  padding-bottom: clamp(48px, 8vw, 94px);
  padding-top: clamp(48px, 8vw, 94px);
}

.seo-link-grid,
.feature-list,
.article-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.seo-link-grid a,
.feature-list article,
.article-grid article {
  background: oklch(1 0 0 / 0.9);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
  min-height: 190px;
  padding: clamp(18px, 3vw, 28px);
  text-decoration: none;
}

.seo-link-grid strong,
.feature-list h3,
.article-grid h3 {
  display: block;
  font-size: 22px;
  line-height: 1.12;
  margin: 0;
}

.seo-link-grid span,
.feature-list p,
.article-grid p {
  color: var(--brand-muted);
  display: block;
  font-size: 16px;
  line-height: 1.55;
  margin-top: 12px;
}

.comparison-section {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.comparison-section h2,
.page-hero h1,
.page-section h2,
.faq-section h2 {
  color: var(--brand-ink);
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.comparison-section p,
.page-hero p,
.page-section > p {
  color: var(--brand-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 740px;
}

.comparison-table {
  border: 1px solid var(--brand-line);
  display: grid;
}

.comparison-table div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-table div + div {
  border-top: 1px solid var(--brand-line);
}

.comparison-table strong,
.comparison-table span {
  background: white;
  padding: 16px;
}

.comparison-table strong + strong,
.comparison-table span + span {
  border-left: 1px solid var(--brand-line);
}

.comparison-table strong {
  background: var(--brand-ink);
  color: white;
}

.comparison-table span {
  color: var(--brand-muted);
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  max-width: 900px;
}

.faq-list details {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 18px;
}

.faq-list summary {
  color: var(--brand-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

.page-hero {
  display: grid;
  gap: 22px;
  padding-bottom: clamp(42px, 7vw, 82px);
  padding-top: clamp(52px, 8vw, 104px);
}

.page-hero h1 {
  max-width: 940px;
}

.page-hero p {
  margin: 0;
}

.breadcrumbs {
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--brand-ink);
}

.page-cta {
  align-items: center;
  background: var(--brand-ink);
  color: white;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto clamp(48px, 8vw, 92px);
  max-width: 1112px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 12px;
}

.page-cta h2 {
  color: white;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}

.page-cta p {
  color: oklch(0.88 0.012 230);
  line-height: 1.55;
  margin: 8px 0 0;
}

.page-cta .solid-action {
  background: white;
  border-color: white;
  color: var(--brand-ink);
}

@media (max-width: 940px) {
  .desktop-nav {
    display: none;
  }

  .hero-section,
  .plan-section,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .product-preview,
  .price-box,
  .signup-form {
    max-width: 620px;
    width: 100%;
  }

  .intro-band {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .steps,
  .seo-link-grid,
  .feature-list,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-section,
  .page-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .soft-action,
  .nav-actions .solid-action {
    flex: 1;
  }

  .hero-section h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .solution-grid,
  .steps,
  .seo-link-grid,
  .feature-list,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid article,
  .steps article {
    min-height: auto;
  }

  .preview-list div {
    align-items: start;
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .preview-list em {
    grid-column: 2;
  }

  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .comparison-table div {
    grid-template-columns: 1fr;
  }

  .comparison-table strong + strong,
  .comparison-table span + span {
    border-left: 0;
    border-top: 1px solid var(--brand-line);
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail) var(--sidebar) minmax(0, 1fr);
  background: var(--bg);
}

.icon-rail {
  background: linear-gradient(180deg, var(--sidebar-ink-strong), var(--sidebar-ink));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
}

.rail-brand {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
}

.rail-button {
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: oklch(0.82 0.02 224);
  display: grid;
  place-items: center;
  padding: 0;
}

.rail-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.rail-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rail-button:hover,
.rail-button:focus-visible,
.rail-button.active {
  background: oklch(1 0 0 / 0.14);
  color: white;
  outline: none;
}

.rail-bottom {
  margin-top: auto;
}

.domain-sidebar {
  border-right: 1px solid var(--line);
  background: oklch(0.988 0.003 230);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.brand strong,
.brand span,
.plugin-download strong,
.plugin-download span {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand span,
.plugin-download span,
.crumb,
.label,
.section-heading p,
.field-help,
#saveState,
#auditState,
#inventoryState {
  color: var(--muted);
}

.plugin-download {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.download-button {
  min-height: 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  text-decoration: none;
  font-weight: 800;
}

.download-button:hover {
  background: oklch(0.25 0.03 224);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.crumb {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: 25px;
  font-weight: 820;
}

h2 {
  font-size: 16px;
}

.topbar-actions,
.form-actions,
.audit-actions,
.inventory-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  min-height: 36px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 12px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid oklch(0.53 0.13 196 / 0.24);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary-action {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 800;
}

.primary-action:hover:not(:disabled) {
  background: var(--primary-hover);
}

.full-width {
  width: 100%;
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 760;
}

.ghost-button:hover:not(:disabled) {
  background: var(--surface-soft);
}

.danger-button {
  background: var(--bad-bg);
  color: var(--bad-fg);
  border-color: oklch(0.86 0.05 24);
  font-weight: 800;
}

.site-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.site-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  display: block;
  height: auto;
  min-height: 56px;
  padding: 9px 10px;
}

.site-item:hover,
.site-item.active {
  background: var(--surface-soft);
  border-color: var(--line);
}

.site-item strong,
.site-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.view-section:not(.is-current),
.view-section[hidden],
[hidden] {
  display: none !important;
}

.dashboard-panel,
.connect-panel,
.audit-panel,
.inventory-panel,
.editor-panel,
.preview-panel,
.settings-panel .panel-block,
.empty-state,
.plugin-tools-panel,
.platform-health {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dashboard-panel {
  border: 0;
  background: transparent;
}

.seo-command-board {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr) minmax(220px, 0.8fr);
  margin-bottom: 14px;
}

.seo-score-card,
.seo-action-stack {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 16px;
}

.seo-score-card {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.panel-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.seo-score-card strong {
  color: var(--ink);
  display: block;
  font-size: 42px;
  line-height: 1;
  margin-top: 8px;
}

.seo-score-card small,
.seo-action-stack small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 6px;
}

.score-ring {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, var(--surface) 0 55%, transparent 56%),
    conic-gradient(var(--primary) 0 86%, var(--surface-strong) 86% 100%);
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  flex: 0 0 86px;
  font-size: 14px;
  font-weight: 900;
  place-items: center;
}

.seo-action-stack {
  display: grid;
  gap: 14px;
}

.seo-action-stack strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 8px;
}

.muted-panel {
  background: var(--surface-soft);
}

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  font-size: 26px;
  margin-top: 4px;
}

.dashboard-work-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  margin-bottom: 14px;
}

.priority-list {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.priority-list article {
  align-items: center;
  background: var(--surface);
  display: grid;
  gap: 12px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  padding: 12px;
}

.priority-list strong,
.priority-list small {
  display: block;
}

.priority-list small {
  color: var(--muted);
  line-height: 1.35;
  margin-top: 3px;
}

.priority-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  padding: 6px 8px;
}

.priority-badge.critical {
  background: var(--bad-bg);
  color: var(--bad-fg);
}

.priority-badge.warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.priority-badge.good {
  background: var(--success-bg);
  color: var(--success-fg);
}

.workflow-steps {
  counter-reset: workflow;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.workflow-steps li {
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 0 0 16px;
  position: relative;
}

.workflow-steps li + li {
  padding-top: 2px;
}

.workflow-steps li::after {
  background: var(--line);
  content: "";
  height: calc(100% - 26px);
  left: 11px;
  position: absolute;
  top: 24px;
  width: 2px;
}

.workflow-steps li:last-child::after {
  content: none;
}

.workflow-steps span {
  background: var(--surface-strong);
  border-radius: 999px;
  grid-row: 1 / span 2;
  height: 24px;
  position: relative;
  width: 24px;
  z-index: 1;
}

.workflow-steps .done span {
  background: var(--primary);
}

.workflow-steps strong {
  font-size: 13px;
}

.workflow-steps small {
  color: var(--muted);
}

.panel-block,
.connect-form,
.audit-panel,
.inventory-panel,
.editor-panel,
.preview-panel,
.empty-state,
.settings-panel .panel-block {
  padding: 16px;
}

.domain-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  margin-top: 12px;
}

.domain-row {
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(160px, 1fr) 110px 130px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.domain-row.header {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.domain-row strong,
.domain-row span,
.domain-row a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-row small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.connect-panel {
  max-width: 680px;
}

.connect-form,
.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.section-heading.compact {
  margin-bottom: 2px;
}

.section-heading p {
  margin: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.54 0.11 200 / 0.16);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 14px;
}

.status-strip > div {
  min-width: 0;
  background: var(--surface);
  padding: 12px;
}

.label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.status-strip strong,
.status-strip a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.platform-health {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px;
}

.platform-health small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.plugin-tools-panel {
  margin-bottom: 14px;
  padding: 16px;
}

.plugin-tools-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 12px;
}

.plugin-tool-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 12px;
  text-decoration: none;
}

.plugin-tool-card:hover,
.plugin-tool-card:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.54 0.11 200 / 0.12);
}

.plugin-tool-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.plugin-tool-card small {
  color: var(--muted);
  line-height: 1.35;
}

.status-ok-text {
  color: var(--success-fg);
}

.status-warn-text {
  color: var(--warn-fg);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 800;
}

.status-good {
  background: var(--success-bg);
  color: var(--success-fg);
}

.status-warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.status-bad,
.status-critical {
  background: var(--bad-bg);
  color: var(--bad-fg);
}

.status-opportunity {
  background: oklch(0.94 0.04 245);
  color: oklch(0.35 0.12 245);
}

.status-noindex {
  background: var(--surface-strong);
  color: var(--muted);
}

.audit-panel,
.daily-panel,
.inventory-panel {
  margin-bottom: 16px;
}

.audit-actions,
.inventory-actions {
  margin: 12px 0 14px;
}

.audit-grid,
.inventory-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.audit-card,
.inventory-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
  min-width: 0;
}

.audit-card.needs-action {
  border-color: oklch(0.72 0.12 78);
}

.audit-card.plugin-update-card {
  border-color: oklch(0.82 0.08 68);
  background: var(--warn-bg);
}

.inline-download {
  margin-top: 12px;
}

.audit-card strong,
.audit-card span,
.inventory-stat strong,
.inventory-stat span {
  display: block;
}

.audit-card span,
.audit-card li,
.inventory-stat span {
  color: var(--muted);
}

.audit-card ul,
.inventory-table ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

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

.gsc-intelligence {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.gsc-intelligence .audit-card a,
.gsc-intelligence .audit-card small {
  display: block;
}

.gsc-intelligence .audit-card a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.weekly-report {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.weekly-report-header,
.weekly-section,
.weekly-priorities {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.weekly-report-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.weekly-report-header span,
.weekly-section p,
.weekly-priorities span,
.weekly-priorities small {
  color: var(--muted);
}

.weekly-sections {
  display: grid;
  gap: 10px;
}

.weekly-section h3,
.weekly-priorities h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.weekly-section p {
  margin: 0;
}

.weekly-priorities ol {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.weekly-priorities a,
.weekly-priorities span,
.weekly-priorities small {
  display: block;
}

.weekly-priorities a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.recommendation-card {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.recommendation-card.status-critical {
  border-color: oklch(0.68 0.18 30);
}

.recommendation-card.status-warning {
  border-color: oklch(0.78 0.13 80);
}

.recommendation-card strong,
.recommendation-card span,
.recommendation-card a,
.recommendation-card small {
  display: block;
}

.recommendation-card span,
.recommendation-card p,
.recommendation-card small {
  color: var(--muted);
}

.recommendation-card a {
  color: var(--accent);
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.recommendation-card p {
  margin: 6px 0;
}

.recommendation-actions {
  white-space: nowrap;
}

.inventory-actions {
  align-items: end;
}

.inventory-actions label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  min-width: 150px;
}

.inventory-summary-grid {
  margin-bottom: 14px;
}

.inventory-stat strong {
  font-size: 24px;
}

.inventory-table-wrap {
  overflow-x: auto;
}

.inventory-table {
  background: var(--surface);
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.inventory-table th,
.inventory-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.inventory-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.inventory-table td a,
.inventory-table td small,
.inventory-table td span {
  display: block;
}

.inventory-table td a {
  color: var(--accent);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.inventory-table small {
  color: var(--muted);
  margin-top: 4px;
}

.inventory-row-actions {
  min-width: 130px;
}

.ghost-link,
.mini-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex !important;
  font-size: 12px;
  margin: 0 6px 6px 0;
  min-height: 30px;
  padding: 5px 9px;
  text-decoration: none;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

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

.field-help {
  min-height: 17px;
  font-weight: 700;
  font-size: 12px;
}

.serp-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.serp-title {
  color: oklch(0.38 0.17 265);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.serp-url {
  color: oklch(0.35 0.12 150);
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}

.serp-desc {
  color: var(--muted);
  line-height: 1.45;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.check-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.check-item:last-child {
  border-bottom: 0;
}

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

.settings-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0 0;
}

.settings-list div {
  background: var(--surface);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.settings-list dt {
  color: var(--muted);
  font-weight: 800;
}

.settings-list dd {
  margin: 0;
}

.empty-state {
  max-width: 680px;
  background: var(--surface);
}

.empty-state p {
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 11px 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: var(--z-toast);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  align-items: center;
  background: oklch(0.08 0 0 / 0.56);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: var(--z-modal-backdrop);
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  max-width: 680px;
  padding: 18px;
  width: min(680px, 100%);
  z-index: var(--z-modal);
}

.modal-actions {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .seo-command-board,
  .dashboard-work-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }

  .domain-sidebar {
    display: none;
  }

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

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

  .icon-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    overflow-x: auto;
  }

  .rail-bottom {
    margin-top: 0;
    margin-left: auto;
  }

  .workspace {
    padding: 14px;
  }

  .seo-score-card {
    align-items: start;
    flex-direction: column;
  }

  .score-ring {
    flex-basis: 74px;
    width: 74px;
  }

  .topbar,
  .field-grid,
  .editor-layout,
  .status-strip,
  .settings-list div,
  .domain-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-actions button,
  .form-actions button,
  .priority-list article button {
    width: 100%;
  }

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

  .priority-list article {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

.crm-shell {
  background: var(--bg);
  grid-template-columns: 292px minmax(0, 1fr);
}

.crm-sidebar {
  background: linear-gradient(180deg, oklch(0.145 0.026 244), oklch(0.195 0.022 236));
  color: white;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100vh;
  min-width: 0;
  overflow-y: auto;
  padding: 18px 14px;
}

.crm-brand {
  display: grid;
  gap: 4px;
  padding: 6px 6px 16px;
}

.crm-brand strong {
  color: white;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.crm-brand span,
.crm-client-switcher span,
.crm-client-switcher small,
.crm-menu p {
  color: oklch(0.78 0.021 236);
}

.crm-client-switcher {
  background: oklch(1 0 0 / 0.055);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.crm-client-switcher span,
.crm-menu p {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-client-switcher strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-menu {
  display: grid;
  gap: 4px;
}

.crm-menu p {
  margin: 14px 6px 4px;
}

.crm-nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: oklch(0.86 0.019 236);
  display: flex;
  font-weight: 780;
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.crm-nav-item:hover,
.crm-nav-item:focus-visible,
.crm-nav-item.active {
  background: oklch(1 0 0 / 0.09);
  color: white;
}

.crm-download {
  background: oklch(1 0 0 / 0.055);
  border-color: oklch(1 0 0 / 0.12);
  margin-top: auto;
}

.crm-download span {
  color: oklch(0.82 0.016 236);
}

.crm-download .download-button {
  background: white;
  color: var(--ink);
}

.crm-sidebar .site-list {
  max-height: 180px;
  overflow-y: auto;
}

.crm-sidebar .site-item {
  color: white;
}

.crm-sidebar .site-item span,
.crm-sidebar .field-help {
  color: oklch(0.78 0.021 236);
}

.crm-workspace {
  padding: 0;
}

.crm-client-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 132px;
  padding: 22px 34px;
}

.client-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-client-header h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
}

.client-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 0;
}

.dashboard-panel {
  padding: 26px 34px 34px;
}

.crm-tabs {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding: 8px;
}

.crm-data-mode {
  background: var(--warn-bg);
  border: 1px solid oklch(0.88 0.055 84);
  border-radius: 10px;
  color: var(--warn-fg);
  font-weight: 820;
  line-height: 1.4;
  margin-bottom: 14px;
  padding: 11px 14px;
}

.crm-data-mode.real {
  background: var(--success-bg);
  border-color: oklch(0.84 0.055 151);
  color: var(--success-fg);
}

.crm-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 850;
  min-height: 42px;
}

.crm-tab:hover,
.crm-tab:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
}

.crm-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.crm-tab-panel {
  display: none;
}

.crm-tab-panel.active {
  display: block;
}

.crm-summary-board {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(240px, 0.85fr);
}

.score-ring {
  background:
    radial-gradient(circle at center, var(--surface) 0 55%, transparent 56%),
    conic-gradient(var(--primary) 0 var(--score, 86%), var(--surface-strong) var(--score, 86%) 100%);
}

.metric-card small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 6px;
}

.crm-main-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  margin-bottom: 14px;
}

.crm-adn-card,
.crm-integrations-card,
.crm-recommendations-card,
.crm-tasks-card,
.crm-module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.crm-adn-card {
  display: grid;
  gap: 14px;
}

.adn-progress-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.adn-progress-row strong {
  font-size: 38px;
  line-height: 1;
}

.adn-progress-row span {
  color: var(--muted);
  font-weight: 800;
}

.crm-progress {
  background: var(--surface-strong);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.crm-progress span {
  background: var(--primary);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.integration-list,
.crm-recommendation-list,
.crm-task-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.integration-list div,
.crm-recommendation-list article {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 10px;
}

.crm-recommendation-list article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
}

.crm-recommendation-list small,
.crm-task-list small,
.crm-module-card p {
  color: var(--muted);
  line-height: 1.4;
}

.crm-task-list button {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-items: start;
  min-height: 58px;
  text-align: left;
}

.crm-task-list button span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  grid-row: 1 / span 2;
  height: 26px;
  place-items: center;
  width: 26px;
}

.crm-two-column,
.crm-module-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.crm-module-card {
  min-height: 170px;
  padding: 18px;
}

.crm-module-card .mini-button {
  margin-top: 14px;
}

.crm-module-card span,
.dark-insight-card span {
  color: var(--primary);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.crm-module-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.dark-insight-card {
  background: var(--ink);
  border-radius: 10px;
  color: white;
  padding: 20px;
}

.dark-insight-card h2 {
  color: white;
  font-size: 22px;
}

.dark-insight-card p {
  color: oklch(0.82 0.018 236);
  line-height: 1.55;
}

.crm-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.connect-panel {
  max-width: none;
  padding: 16px;
}

.services-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

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

.inventory-table .status-pill {
  display: inline-flex;
  width: auto;
}

.inventory-table a {
  color: var(--primary);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
}

.service-card > span {
  background: var(--warn-bg);
  border-radius: 999px;
  color: var(--warn-fg);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 5px 9px;
}

.service-card.connected > span {
  background: var(--success-bg);
  color: var(--success-fg);
}

.service-card.demo > span {
  background: var(--surface-strong);
  color: var(--muted);
}

.service-card strong {
  font-size: 19px;
}

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

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

  .crm-client-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .crm-summary-board,
  .crm-main-grid,
  .crm-two-column {
    grid-template-columns: 1fr;
  }
}

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

  .crm-sidebar {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 12;
  }

  .crm-menu {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .crm-menu p,
  .crm-download,
  .crm-sidebar .site-list {
    display: none;
  }

  .crm-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
  }

  .crm-client-header,
  .dashboard-panel {
    padding: 16px;
  }

  .crm-client-header h1 {
    font-size: 28px;
  }

  .crm-recommendation-list article {
    grid-template-columns: 1fr;
  }

  .crm-recommendation-list article button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
