@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4f7f2;
  --bg-alt: #edf3ee;
  --surface: #ffffff;
  --surface-soft: #f7faf7;
  --surface-muted: #eef4ef;
  --ink: #112016;
  --muted: #5f6f64;
  --line: rgba(20, 38, 26, 0.09);
  --line-strong: rgba(20, 38, 26, 0.16);
  --primary: #1f8a4c;
  --primary-strong: #13683a;
  --primary-soft: #ddf2e4;
  --dark: #0d1711;
  --dark-soft: #14231a;
  --warn: #c68e2a;
  --danger: #b35656;
  --shadow-sm: 0 12px 28px rgba(17, 32, 22, 0.06);
  --shadow-md: 0 20px 52px rgba(17, 32, 22, 0.1);
  --shadow-lg: 0 28px 80px rgba(7, 18, 11, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(44, 145, 84, 0.08), transparent 28%),
    linear-gradient(180deg, #f6f9f5 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.hero + .section {
  padding-top: 66px;
}

.alt-bg {
  background: linear-gradient(180deg, #eff4ee 0%, #eaf1ea 100%);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(71, 189, 112, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(41, 126, 77, 0.26), transparent 32%),
    linear-gradient(180deg, #101b14 0%, #0b130f 100%);
  color: #f2faf4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 242, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 32, 22, 0.06);
}

.light-header {
  background: rgba(246, 249, 245, 0.94);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #27a65b 0%, #166b3d 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.1em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(31, 138, 76, 0.28);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark.brand-image,
.brand-logo.brand-image {
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  letter-spacing: normal;
}

.brand-mark.brand-image::before,
.brand-mark.brand-image::after {
  display: none;
}

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

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

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.link-btn:hover {
  color: var(--ink);
}

.link-btn {
  color: var(--ink);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 16px;
  background: rgba(244, 247, 242, 0.98);
  border-bottom: 1px solid rgba(17, 32, 22, 0.06);
}

.mobile-menu.open {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-large {
  padding: 16px 26px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #28a85d 0%, #197843 100%);
  box-shadow: 0 18px 30px rgba(31, 138, 76, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 22px 34px rgba(31, 138, 76, 0.28);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(180deg, #95bf9f 0%, #7da788 100%);
  box-shadow: none;
  opacity: 0.78;
}

.btn-secondary {
  color: #edf7ef;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-secondary-light {
  color: #edf7ef;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.full {
  width: 100%;
}

.eyebrow,
.section-tag,
.panel-label,
.auth-badge,
.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow {
  color: #dff5e5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-tag,
.panel-label,
.auth-badge,
.card-chip {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid rgba(31, 138, 76, 0.12);
}

.section-tag-dark {
  color: #e4f7e8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero {
  padding: 42px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
  padding-top: 2px;
  max-width: 560px;
}

.hero .eyebrow {
  padding: 6px 11px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(242, 250, 244, 0.66);
  font-size: 12px;
  max-width: 540px;
}

.hero-brandline-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #6de19b 0%, #2ea864 100%);
  box-shadow: 0 0 0 6px rgba(109, 225, 155, 0.08);
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  max-width: 520px;
}

.hero-text {
  max-width: 470px;
  margin: 0 0 16px;
  color: rgba(242, 250, 244, 0.74);
  font-size: 14px;
  line-height: 1.56;
}

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

.hero-actions .btn-primary {
  min-width: 280px;
  box-shadow: 0 18px 30px rgba(31, 138, 76, 0.28);
}

.hero .btn-secondary {
  color: rgba(242, 250, 244, 0.72);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 14px 18px;
  font-weight: 700;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(242, 250, 244, 0.66);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-secondary-link::after {
  content: "→";
  font-size: 14px;
}

.hero-secondary-link:hover {
  color: rgba(242, 250, 244, 0.92);
}

.hero-cta-note {
  margin: 6px 0 0;
  max-width: 440px;
  color: rgba(242, 250, 244, 0.56);
  font-size: 11px;
  line-height: 1.5;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
  margin: 16px 0 0;
  max-width: 392px;
}

.hero-stat {
  padding: 11px 12px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.hero-stat strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  color: #fff;
}

.hero-stat span {
  display: block;
  color: rgba(242, 250, 244, 0.66);
  font-size: 11px;
  line-height: 1.45;
}

.glass-card,
.soft-card,
.dark-card,
.auth-card,
.legal-card,
.trust-panel {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  backdrop-filter: blur(18px);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-card {
  max-width: 468px;
  margin-left: auto;
  animation: none;
  box-shadow: 0 15px 34px rgba(3, 11, 7, 0.14);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(111, 229, 156, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mockup-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 8px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mockup-tab,
.mockup-sync {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.mockup-tab {
  color: rgba(242, 250, 244, 0.74);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-tab.active {
  color: #eef8f0;
  background: rgba(109, 225, 155, 0.14);
  border-color: rgba(109, 225, 155, 0.2);
}

.mockup-sync {
  margin-left: auto;
  color: rgba(242, 250, 244, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.mockup-top {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

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

.mockup-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.period-pill {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(242, 250, 244, 0.86);
  font-size: 10px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
}

.status.success {
  color: #a6efc2;
  background: rgba(56, 178, 102, 0.16);
}

.subtle-light {
  color: rgba(242, 250, 244, 0.62);
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 6px;
}

.kpi-card {
  min-height: 68px;
  padding: 9px 10px 8px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.045) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-card span,
.kpi-card small {
  display: block;
}

.kpi-card span {
  color: rgba(242, 250, 244, 0.72);
  font-size: 11px;
}

.kpi-card strong {
  display: block;
  margin: 2px 0 1px;
  font-size: 16px;
  color: #fff;
}

.kpi-card small {
  font-size: 9px;
  color: rgba(242, 250, 244, 0.66);
  line-height: 1.35;
}

.kpi-card small.up {
  color: #94efb9;
}

.kpi-card small.down {
  color: #f3b1b1;
}

.mockup-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 8px;
  align-items: start;
}

.chart-card,
.alert-card {
  padding: 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.055) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  align-self: start;
}

.chart-card {
  position: relative;
  overflow: hidden;
}

.chart-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 229, 156, 0.08), transparent 66%);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.chart-head strong {
  font-size: 12px;
}

.chart-head span {
  font-size: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 82px 1fr 48px;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  margin-bottom: 5px;
}

.bar-row div {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #37be6d 0%, #9be9ba 100%);
}

.mini-screen-table {
  margin-top: 6px;
  display: grid;
  gap: 3px;
}

.mini-screen-table.compact {
  margin-top: 8px;
}

.mini-screen-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.6fr;
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9px;
}

.mini-screen-row.head {
  padding: 0 2px 5px;
  color: rgba(242, 250, 244, 0.56);
  background: transparent;
  border-color: transparent;
}

.mini-screen-row.compact {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 9px;
}

.mini-screen-row.compact span {
  color: rgba(242, 250, 244, 0.66);
}

.mini-screen-row strong {
  color: #eef8f0;
}

.mini-screen-row em {
  color: #95efb8;
  font-style: normal;
  font-weight: 800;
}

.alert-card {
  display: grid;
  gap: 5px;
  align-content: start;
}

.alert-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 7px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.alert-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.alert-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

.alert-item strong,
.alert-item small {
  display: block;
}

.alert-item strong {
  margin-bottom: 1px;
  line-height: 1.3;
  font-size: 11px;
}

.alert-item small {
  color: rgba(242, 250, 244, 0.62);
  font-size: 9px;
  line-height: 1.34;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: auto;
  min-width: 72px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  white-space: normal;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-chip.bad {
  color: #ffd8d8;
  background: rgba(179, 86, 86, 0.14);
}

.status-chip.warn {
  color: #ffecb5;
  background: rgba(198, 142, 42, 0.14);
}

.status-chip.neutral {
  color: #d4e4d7;
  background: rgba(255, 255, 255, 0.08);
}

.mockup-actionline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(242, 250, 244, 0.62);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.32;
}

.mockup-actionline strong {
  color: #eef8f0;
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
  font-size: 9px;
}

.hero-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 250, 244, 0.6);
  font-size: 11px;
  line-height: 1.55;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.on-dark h2,
.on-dark p {
  color: #f2faf4;
}

.on-dark p {
  color: rgba(242, 250, 244, 0.74);
}

.problem-grid,
.preview-grid,
.trust-grid,
.steps-grid,
.pricing-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.footer-grid {
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.05fr;
}

.soft-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-card:hover,
.preview-card:hover,
.price-card:hover,
.step-card:hover,
.problem-card:hover {
  transform: translateY(-2px);
}

.problem-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffefb 0%, #f8fbf7 100%);
  height: 100%;
}

.problem-card h3,
.preview-card h3,
.step-card h3,
.price-card h3,
.dark-card h3 {
  margin: 14px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.problem-card p,
.preview-card p,
.step-card p,
.price-card li,
.price-note,
.dark-card p,
.problem-meta {
  color: var(--muted);
}

.problem-card p,
.preview-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
}

.problem-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.formula-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: 34px;
  align-items: start;
}

.formula-expression {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.formula-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.formula-benefit {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.formula-benefit strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.formula-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.formula-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.formula-list li {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  font-weight: 700;
}

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

.formula-card-top {
  display: grid;
  gap: 10px;
  padding-bottom: 4px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calc-row.total {
  padding-top: 8px;
  border-bottom: 0;
  color: var(--primary-strong);
}

.calc-row.total strong {
  font-size: 28px;
}

.calc-row.total-sub {
  border-bottom: 0;
  padding-top: 0;
}

.formula-note {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid rgba(31, 138, 76, 0.1);
}

.formula-note strong {
  display: block;
  margin-bottom: 8px;
}

.formula-note p {
  margin: 0;
  color: var(--muted);
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.preview-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(91, 205, 129, 0.12), transparent 28%),
    linear-gradient(180deg, #121f17 0%, #0e1711 100%);
  border: 1px solid rgba(17, 32, 22, 0.08);
  color: #eef8f0;
  min-height: 272px;
}

.preview-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.preview-shell > * {
  position: relative;
  z-index: 1;
}

.preview-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(238, 248, 240, 0.7);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.mini-tile {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-tile span,
.mini-tile strong {
  display: block;
}

.mini-tile span {
  color: rgba(238, 248, 240, 0.62);
  font-size: 12px;
}

.mini-tile strong {
  margin-top: 7px;
  font-size: 16px;
}

.mini-chart {
  position: relative;
  overflow: hidden;
  height: 124px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-chart::before {
  content: "";
  position: absolute;
  inset: 12px 12px 12px 12px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 32px;
  pointer-events: none;
}

.mini-chart i {
  display: block;
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #67d593 0%, #1f8a4c 100%);
  position: relative;
  z-index: 1;
}

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

.preview-actions {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.preview-action-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-action-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(109, 225, 155, 0.14);
  color: #b9f3ce;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.preview-action-row strong {
  color: #eef8f0;
  font-size: 12px;
  line-height: 1.45;
}

.table-row,
.campaign-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row {
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
}

.table-head {
  color: rgba(238, 248, 240, 0.62);
  font-size: 12px;
}

.table-row strong {
  font-size: 15px;
}

.table-row em,
.campaign-result {
  font-style: normal;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.table-good,
.campaign-result.good {
  color: #a6efc2;
  background: rgba(56, 178, 102, 0.16);
}

.table-bad,
.campaign-result.bad {
  color: #ffd3d3;
  background: rgba(179, 86, 86, 0.16);
}

.table-warn,
.campaign-result.neutral {
  color: #fce6ae;
  background: rgba(198, 142, 42, 0.16);
}

.campaign-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.campaign-row strong,
.campaign-row small {
  display: block;
}

.campaign-row small {
  color: rgba(238, 248, 240, 0.6);
  font-size: 12px;
}

.preview-footnote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 248, 240, 0.64);
  font-size: 11px;
  font-weight: 700;
}

.preview-footnote strong {
  color: #f0faf2;
  font-size: 11px;
}

.trust-section {
  background:
    radial-gradient(circle at top right, rgba(67, 185, 108, 0.18), transparent 22%),
    linear-gradient(180deg, #0d1711 0%, #121d16 100%);
  color: #f2faf4;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.dark-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dark-card p {
  color: rgba(242, 250, 244, 0.72);
}

.trust-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.trust-panel h3 {
  margin: 16px 0 14px;
  font-size: 28px;
  line-height: 1.12;
}

.trust-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.trust-panel-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 250, 244, 0.8);
}

.trust-panel-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 250, 244, 0.72);
}

.step-card {
  height: 100%;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.step-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 18px;
}

.step-time {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.center {
  text-align: center;
}

.cta-inline {
  margin-top: 30px;
}

.onboarding-note {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-for {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

.price-card.featured {
  border-color: rgba(31, 138, 76, 0.24);
  box-shadow: 0 24px 48px rgba(31, 138, 76, 0.14);
}

.price {
  margin: 14px 0 12px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price span {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0;
}

.price-card ul {
  padding-left: 20px;
  margin: 0 0 16px;
  min-height: 136px;
}

.price-note {
  margin: 0 0 20px;
  font-size: 14px;
}

.price-ladder {
  display: grid;
  gap: 10px;
  margin: 2px 0 16px;
}

.ladder-row {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 138, 76, 0.1);
}

.ladder-row strong {
  font-size: 14px;
}

.ladder-row span {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.ladder-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.faq-wrap {
  max-width: 920px;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0 22px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 22px 32px 22px 0;
  font-weight: 800;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-strong);
  font-size: 22px;
}

.faq-item[open] summary::after {
  content: "в€’";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 20px;
  color: var(--muted);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  padding: 42px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(88, 196, 122, 0.22), transparent 32%),
    linear-gradient(135deg, #122118 0%, #173025 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-side-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-side-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
}

.cta-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-side-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 32px 0 34px;
  background:
    radial-gradient(circle at top left, rgba(71, 189, 112, 0.12), transparent 18%),
    linear-gradient(180deg, #0f1913 0%, #0c1510 100%);
  color: #eef7ef;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand .brand-text small,
.site-footer a,
.footer-copy,
.footer-bottom {
  color: rgba(238, 247, 239, 0.7);
}

.footer-copy {
  margin: 16px 0 0;
  max-width: 320px;
  line-height: 1.72;
}

.footer-trust {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.footer-trust li {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 247, 239, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.footer-contact-card {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact-label {
  color: rgba(238, 247, 239, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contact-email {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  color: #f4fbf5;
  font-size: 16px;
  font-weight: 800;
}

.footer-contact-purpose {
  color: rgba(238, 247, 239, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.footer-contact-card small {
  color: rgba(238, 247, 239, 0.66);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.footer-note {
  max-width: 420px;
  text-align: center;
}

.auth-page {
  background:
    radial-gradient(circle at top left, rgba(44, 145, 84, 0.1), transparent 24%),
    linear-gradient(180deg, #f7faf6 0%, #edf3ee 100%);
}

.auth-main {
  padding: 40px 0 78px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 34px;
  align-items: start;
}

.auth-intro {
  padding: 26px 0;
}

.auth-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.auth-proof-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0 22px;
}

.auth-proof-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

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

.auth-proof-card span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.auth-showcase {
  margin-top: 8px;
}

.auth-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.auth-showcase-head span {
  color: var(--muted);
  font-size: 14px;
}

.auth-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.auth-kpi-row div {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.auth-kpi-row span,
.auth-kpi-row strong {
  display: block;
}

.auth-kpi-row span {
  color: var(--muted);
  font-size: 13px;
}

.auth-kpi-row strong {
  margin-top: 6px;
  font-size: 16px;
}

.auth-feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.auth-card-wrap {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 32, 22, 0.08);
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 22px 54px rgba(17, 32, 22, 0.1);
  backdrop-filter: blur(18px);
}

.auth-panel-top {
  margin-bottom: 16px;
}

.auth-panel-top p {
  margin: 12px 0 0;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 13px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  background: #f1f5f1;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab.active {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgba(31, 138, 76, 0.14);
}

.auth-card {
  display: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  padding: 28px;
}

.auth-card.active {
  display: block;
}

.auth-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field-control {
  display: block;
}

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

.form-grid label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.form-grid input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 32, 22, 0.1);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus {
  outline: 2px solid rgba(31, 138, 76, 0.14);
  border-color: rgba(31, 138, 76, 0.26);
  box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.05);
}

.field-helper,
.field-error,
.field-success {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
}

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

.field-error {
  color: var(--danger);
}

.field-success {
  color: var(--primary-strong);
}

.field-control.is-invalid input {
  border-color: rgba(179, 86, 86, 0.42);
  background: #fff9f9;
}

.field-control.is-valid input {
  border-color: rgba(31, 138, 76, 0.34);
  background: #fbfefc;
}

.field-control.is-invalid .field-helper,
.field-control.is-valid .field-helper {
  display: none;
}

.field-control.is-invalid .field-error {
  display: block;
}

.field-control.is-valid .field-success {
  display: block;
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.checkbox-row strong {
  font-weight: 800;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.inline-check span {
  margin-bottom: 0;
  font-weight: 700;
}

.form-link,
.checkbox-row a,
.consent-note a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-group-head {
  display: grid;
  gap: 6px;
  padding: 2px 2px 0;
}

.consent-group-head strong {
  font-size: 14px;
}

.consent-group-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.legal-check {
  padding: 14px 16px;
  border-radius: 18px;
}

.legal-check span {
  line-height: 1.58;
}

.required-box {
  background: linear-gradient(180deg, #f8fcf9 0%, #f4faf6 100%);
  border: 1px solid rgba(31, 138, 76, 0.18);
}

.optional-box {
  background: linear-gradient(180deg, #fcfefc 0%, #f9fcf9 100%);
  border: 1px solid var(--line);
}

.optional-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.checkbox-row.is-invalid {
  border-color: rgba(179, 86, 86, 0.26);
  background: #fff9f9;
}

.checkbox-row.is-valid {
  border-color: rgba(31, 138, 76, 0.2);
}

.form-feedback {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f7faf7 0%, #f4f8f5 100%);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-feedback.is-error {
  color: var(--danger);
  border-color: rgba(179, 86, 86, 0.22);
  background: #fff8f8;
}

.form-feedback.is-success {
  color: var(--primary-strong);
  border-color: rgba(31, 138, 76, 0.2);
  background: #f7fcf8;
}

.consent-note,
.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  min-height: 100vh;
  padding: 0 0 72px;
  background: linear-gradient(180deg, #f7faf6 0%, #eef4ef 100%);
}

.legal-card {
  padding: 40px 42px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.legal-card h1 {
  margin-top: 18px;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-hero {
  padding: 50px 0 22px;
}

.legal-hero-inner {
  max-width: 900px;
}

.legal-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.legal-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 6px;
  padding: 24px;
}

.legal-nav strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.legal-nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.legal-nav a:hover {
  color: var(--primary-strong);
  background: var(--surface-soft);
}

.legal-doc {
  max-width: none;
  line-height: 1.72;
}

.legal-section + .legal-section {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.legal-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.legal-list li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

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

.legal-grid div {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.app-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(44, 145, 84, 0.11), transparent 30%),
    linear-gradient(180deg, #f7faf6 0%, #eef4ef 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.22s ease;
}

.app-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 24px 18px 22px;
  background: rgba(248, 251, 247, 0.92);
  border-right: 1px solid rgba(17, 32, 22, 0.06);
  backdrop-filter: blur(20px);
  display: grid;
  gap: 18px;
  transition: width 0.22s ease, padding 0.22s ease, gap 0.22s ease;
}

.app-brand {
  padding: 6px 8px;
}

.sidebar-store,
.sidebar-note,
.summary-card,
.priority-card,
.dashboard-kpi,
.loss-card,
.growth-card,
.sku-card,
.ads-card,
.quick-questions-card,
.workspace-hero-side {
  box-shadow: var(--shadow-sm);
}

.sidebar-store,
.sidebar-note {
  padding: 18px;
}

.sidebar-store strong,
.sidebar-note strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.sidebar-store p,
.sidebar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.app-nav {
  display: grid;
  gap: 6px;
}

.app-nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav-item:hover {
  background: rgba(31, 138, 76, 0.08);
  color: var(--ink);
  transform: translateX(2px);
}

.app-nav-item.active {
  color: var(--primary-strong);
  background: linear-gradient(180deg, rgba(221, 242, 228, 0.95) 0%, rgba(233, 247, 237, 0.95) 100%);
  border: 1px solid rgba(31, 138, 76, 0.12);
}

.app-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(17, 32, 22, 0.04);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.app-nav-item.active .app-nav-icon {
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.sidebar-meta {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  background: rgba(247, 250, 246, 0.84);
  border-bottom: 1px solid rgba(17, 32, 22, 0.06);
  backdrop-filter: blur(18px);
}

.app-topbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-topbar-actions {
  justify-content: flex-end;
}

.app-sidebar-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(19, 33, 24, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-sidebar-toggle:hover {
  background: rgba(240, 247, 242, 0.96);
  border-color: rgba(31, 138, 76, 0.16);
}

.app-sidebar-toggle span {
  font-size: 18px;
  line-height: 1;
}

.app-sidebar-tools {
  margin-top: auto;
  display: grid;
}

.app-sidebar .app-sidebar-toggle {
  width: 100%;
  justify-content: center;
}

.app-shell-link {
  min-width: 0;
}

.app-shell-link-compact {
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 800;
}

.app-shell-link-compact small {
  display: none;
}

.dashboard-refresh-actions {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-refresh-status {
  min-height: 18px;
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-refresh-status.is-success {
  color: var(--primary-strong);
}

.dashboard-refresh-status.is-error {
  color: #a43d3d;
}

.app-filter {
  display: grid;
  gap: 6px;
}

.app-control,
.app-ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.app-control {
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 12px 15px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 10px 20px rgba(17, 32, 22, 0.04);
}

.app-control-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.app-control strong {
  font-size: 14px;
  line-height: 1.3;
}

.app-control small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.app-segmented {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 20px rgba(17, 32, 22, 0.04);
}

.app-segment {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.app-segment.active {
  background: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
}

.app-status {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-width: 230px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.app-status strong,
.app-status small {
  display: block;
}

.app-status strong {
  font-size: 12px;
  line-height: 1.3;
}

.app-status small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #38b266 0%, #1f8a4c 100%);
  box-shadow: 0 0 0 6px rgba(56, 178, 102, 0.08);
}

.app-ghost-btn {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.app-ai-entry {
  display: inline-grid;
  gap: 1px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
}

.app-ai-entry small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.app-workspace {
  padding: 22px 26px 26px;
  display: grid;
  gap: 18px;
}

.workspace-hero,
.split-section,
.content-grid {
  display: grid;
  gap: 18px;
}

.workspace-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
  margin-bottom: 2px;
}

.products-page .products-workspace,
.ads-page .products-workspace {
  gap: 10px;
  padding-top: 10px;
}

.products-page .products-topbar {
  padding-bottom: 10px;
}

.products-page .products-control-bar,
.ads-page .products-control-bar {
  padding: 18px 20px;
}

.products-page .products-main-surface .section-head h2 {
  margin-top: 6px;
}

.dashboard-page .app-topbar {
  padding-bottom: 8px;
}

.workspace-hero-copy h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 720px;
}

.workspace-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
}

.workspace-hero-side {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 251, 247, 0.96) 100%);
  border: 1px solid rgba(31, 138, 76, 0.09);
}

.workspace-hero-side strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.workspace-hero-side p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.54;
}

.workspace-section {
  display: grid;
  gap: 12px;
}

.workspace-section-tight {
  gap: 8px;
}

.compact-head {
  gap: 8px;
}

.compact-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.compact-head p {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.58;
}

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

.priority-card {
  display: grid;
  gap: 11px;
  min-height: 196px;
  padding: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 246, 0.98) 100%);
  border: 1px solid rgba(17, 32, 22, 0.07);
}

.priority-card.positive {
  background: linear-gradient(180deg, rgba(236, 248, 239, 0.98) 0%, rgba(248, 252, 249, 0.98) 100%);
  border-color: rgba(31, 138, 76, 0.14);
}

.priority-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.priority-level,
.priority-metric,
.decision-badge,
.table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.priority-level.danger,
.decision-badge.bad,
.table-badge.bad {
  color: #8f3d3d;
  background: rgba(179, 86, 86, 0.12);
}

.priority-level.warn,
.decision-badge.warn,
.table-badge.warn {
  color: #8e6318;
  background: rgba(198, 142, 42, 0.14);
}

.priority-level.good,
.decision-badge.good,
.table-badge.good {
  color: var(--primary-strong);
  background: rgba(31, 138, 76, 0.12);
}

.priority-metric {
  color: var(--muted);
  background: rgba(17, 32, 22, 0.05);
}

.priority-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.24;
}

.priority-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.54;
}

.priority-link {
  margin-top: auto;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 13px;
}

.summary-card {
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 241, 0.98) 100%);
  border: 1px solid rgba(31, 138, 76, 0.08);
}

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

.summary-period {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-head h3 {
  margin: 12px 0 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.summary-period-wrap {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.summary-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(198, 142, 42, 0.12);
  color: #8e6318;
  font-size: 11px;
  font-weight: 800;
}

.summary-card p {
  margin: 0;
  color: #203126;
  font-size: 16px;
  line-height: 1.8;
}

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

.summary-highlight {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 32, 22, 0.06);
}

.summary-highlight span,
.summary-highlight strong {
  display: block;
}

.summary-highlight span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.summary-highlight strong {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-workspace {
  gap: 22px;
}

.dashboard-context-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-context-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.07);
  background: rgba(248, 251, 249, 0.96);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

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

.dashboard-kpi {
  padding: 13px 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-kpi-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 247, 0.98) 100%);
}

.dashboard-kpi-secondary {
  background: rgba(250, 252, 250, 0.92);
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.dashboard-kpi span,
.dashboard-kpi strong,
.dashboard-kpi small,
.dashboard-kpi em {
  display: block;
}

.dashboard-kpi-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 7px;
  align-items: end;
}

.dashboard-kpi-copy {
  min-width: 0;
}

.dashboard-kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kpi-tone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.kpi-tone.good {
  color: var(--primary-strong);
  background: rgba(31, 138, 76, 0.12);
}

.kpi-tone.warn {
  color: #8e6318;
  background: rgba(198, 142, 42, 0.12);
}

.kpi-tone.bad {
  color: #8f3d3d;
  background: rgba(179, 86, 86, 0.12);
}

.dashboard-kpi strong {
  margin: 4px 0 2px;
  font-size: 21px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.dashboard-kpi small {
  font-size: 10px;
  font-weight: 800;
}

.dashboard-kpi small.up {
  color: var(--primary-strong);
}

.dashboard-kpi small.down {
  color: var(--danger);
}

.dashboard-kpi small.warn-text {
  color: var(--warn);
}

.dashboard-kpi em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.dashboard-kpi-sparkline {
  align-self: stretch;
  display: grid;
  align-items: end;
  min-height: 18px;
  opacity: 0.68;
}

.dashboard-kpi-sparkline-svg {
  width: 100%;
  height: 18px;
  overflow: visible;
}

.dashboard-kpi-sparkline-line {
  fill: none;
  stroke-width: 0.72;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
}

.dashboard-kpi-sparkline-area {
  opacity: 0.012;
}

.dashboard-kpi-sparkline-dot {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.4;
}

.dashboard-kpi-sparkline-svg.is-revenue .dashboard-kpi-sparkline-line,
.dashboard-kpi-sparkline-svg.is-revenue .dashboard-kpi-sparkline-dot {
  stroke: #1f8a4c;
  fill: #1f8a4c;
}

.dashboard-kpi-sparkline-svg.is-revenue .dashboard-kpi-sparkline-area {
  fill: rgba(31, 138, 76, 0.08);
}

.dashboard-kpi-sparkline-svg.is-profit .dashboard-kpi-sparkline-line,
.dashboard-kpi-sparkline-svg.is-profit .dashboard-kpi-sparkline-dot {
  stroke: #6f9d79;
  fill: #6f9d79;
}

.dashboard-kpi-sparkline-svg.is-profit .dashboard-kpi-sparkline-area {
  fill: rgba(111, 157, 121, 0.075);
}

.dashboard-kpi-sparkline-svg.is-drr .dashboard-kpi-sparkline-line,
.dashboard-kpi-sparkline-svg.is-drr .dashboard-kpi-sparkline-dot {
  stroke: #173025;
  fill: #173025;
}

.dashboard-kpi-sparkline-svg.is-drr .dashboard-kpi-sparkline-line {
  stroke-dasharray: 2.5 4;
  opacity: 0.36;
}

.dashboard-kpi-sparkline-svg.is-orders .dashboard-kpi-sparkline-line,
.dashboard-kpi-sparkline-svg.is-orders .dashboard-kpi-sparkline-dot {
  stroke: #4f7de8;
  fill: #4f7de8;
}

.dashboard-kpi-sparkline-svg.is-orders .dashboard-kpi-sparkline-area {
  fill: rgba(79, 125, 232, 0.18);
}

.dashboard-kpi-sparkline-empty {
  height: 18px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(248, 251, 249, 0.92) 100%),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 14px,
      rgba(17, 32, 22, 0.04) 14px,
      rgba(17, 32, 22, 0.04) 15px
    );
  border: 1px solid rgba(17, 32, 22, 0.05);
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
}

.dashboard-side-column {
  display: grid;
  gap: 20px;
}

.dashboard-preview-card,
.dashboard-side-card {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.dashboard-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-preview-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-preview-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 32, 22, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

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

.dashboard-signal-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 248, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(17, 32, 22, 0.05);
}

.dashboard-signal-card.tone-risk {
  background: linear-gradient(180deg, rgba(255, 251, 248, 0.98) 0%, rgba(255, 246, 239, 0.98) 100%);
}

.dashboard-signal-card.tone-growth {
  background: linear-gradient(180deg, rgba(248, 253, 250, 0.99) 0%, rgba(240, 248, 243, 0.98) 100%);
}

.dashboard-signal-card.tone-attention {
  background: linear-gradient(180deg, rgba(253, 252, 247, 0.99) 0%, rgba(250, 247, 238, 0.98) 100%);
}

.dashboard-signal-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.dashboard-signal-thumb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: linear-gradient(180deg, rgba(244, 248, 245, 0.92) 0%, rgba(250, 252, 250, 0.98) 100%);
}

.dashboard-signal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-signal-thumb span {
  color: var(--primary-strong);
  font-size: 16px;
  font-weight: 800;
}

.dashboard-signal-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dashboard-signal-main strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.36;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.dashboard-signal-main span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-signal-metric {
  display: grid;
  gap: 3px;
}

.dashboard-signal-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dashboard-signal-metric strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dashboard-signal-meta {
  display: grid;
  gap: 7px;
}

.dashboard-signal-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-signal-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.08);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-signal-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-signal-action.tone-risk {
  background: rgba(231, 133, 43, 0.12);
  color: #b56a1a;
}

.dashboard-signal-action.tone-growth {
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.dashboard-signal-action.tone-attention {
  background: rgba(201, 154, 55, 0.14);
  color: #9f7525;
}

.dashboard-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(132px, 0.7fr) minmax(0, 0.92fr);
  gap: 10px 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 248, 0.98) 100%);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.dashboard-preview-row:hover {
  border-color: rgba(31, 138, 76, 0.18);
  box-shadow: 0 12px 28px rgba(17, 32, 22, 0.08);
  transform: translateY(-1px);
}

.dashboard-preview-main,
.dashboard-preview-metric,
.dashboard-preview-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-preview-main strong,
.dashboard-preview-metric strong {
  font-size: 14px;
  color: var(--ink);
}

.dashboard-preview-main strong {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.34;
}

.dashboard-preview-main span,
.dashboard-preview-metric small,
.dashboard-preview-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-preview-sku {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-preview-metric-strong strong {
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dashboard-preview-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.09);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-preview-note {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-preview-meta {
  justify-items: start;
}

.dashboard-preview-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(17, 32, 22, 0.12);
  background: rgba(249, 251, 249, 0.94);
}

.dashboard-preview-empty strong {
  font-size: 16px;
  color: var(--ink);
}

.dashboard-preview-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.dashboard-ads-metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
  border: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-ads-metric span,
.dashboard-ads-metric small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-ads-metric strong {
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.dashboard-chart-surface {
  padding: 18px 20px 19px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(17, 32, 22, 0.07);
  box-shadow: var(--shadow-sm);
}

.dashboard-chart-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-chart-period-note {
  display: grid;
  gap: 3px;
  min-width: 198px;
  padding: 9px 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.98) 0%, rgba(246, 249, 247, 0.98) 100%);
  border: 1px solid rgba(17, 32, 22, 0.05);
}

.dashboard-chart-period-note strong {
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-chart-period-note small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
}

.dashboard-chart-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
}

.dashboard-chart-legend,
.dashboard-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-legend-item,
.dashboard-chart-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.05);
  background: rgba(250, 252, 250, 0.92);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-chart-summary strong {
  color: var(--ink);
  font-size: 11px;
}

.dashboard-chart-summary span {
  white-space: nowrap;
}

.dashboard-legend-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dashboard-legend-item.revenue::before {
  background: linear-gradient(180deg, #62cf8f 0%, #1f8a4c 100%);
}

.dashboard-legend-item.profit::before {
  background: linear-gradient(180deg, #d7eedf 0%, #5f8f6d 100%);
}

.dashboard-legend-item.drr::before {
  background: #173025;
}

.dashboard-mixed-chart {
  position: relative;
  min-height: 304px;
  padding: 12px 13px 10px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.055), transparent 28%),
    linear-gradient(180deg, #fcfdfc 0%, #f6f9f6 100%);
  border: 1px solid rgba(17, 32, 22, 0.05);
  overflow: hidden;
}

.dashboard-mixed-chart-grid {
  position: absolute;
  inset: 18px 18px 42px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.dashboard-mixed-chart-grid span {
  border-top: 1px solid rgba(17, 32, 22, 0.06);
}

.dashboard-mixed-chart-columns {
  position: relative;
  z-index: 1;
  min-height: 224px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 14px;
}

.dashboard-mixed-chart-group {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.dashboard-mixed-chart-bars {
  height: 208px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.dashboard-mixed-chart-bar {
  position: relative;
  width: 16px;
  min-height: 18px;
  border-radius: 999px 999px 10px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.dashboard-mixed-chart-bar small {
  position: absolute;
  bottom: calc(100% + 8px);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-mixed-chart-bar.revenue {
  background: linear-gradient(180deg, #67d593 0%, #1f8a4c 100%);
}

.dashboard-mixed-chart-bar.orders {
  background: linear-gradient(180deg, #d7eedf 0%, #7fae92 100%);
}

.dashboard-mixed-chart-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.dashboard-mixed-chart-line {
  position: absolute;
  inset: 32px 18px 34px;
  z-index: 2;
  width: calc(100% - 36px);
  height: calc(100% - 66px);
  overflow: visible;
  pointer-events: none;
}

.dashboard-mixed-chart-line polyline {
  fill: none;
  stroke: #173025;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-mixed-chart-line circle {
  fill: #173025;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.dashboard-mixed-chart-line text {
  fill: #173025;
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
}

.dashboard-line-chart-grid {
  position: absolute;
  inset: 18px 18px 44px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.dashboard-line-chart-grid span {
  border-top: 1px solid rgba(17, 32, 22, 0.032);
}

.dashboard-line-chart-shell {
  position: relative;
  display: grid;
  gap: 6px;
}

.dashboard-line-chart-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 228px;
  overflow: visible;
}

.dashboard-line-chart-area {
  fill: url(#dashboard-revenue-fill);
  opacity: 0.32;
}

.dashboard-line-chart-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 6px 10px rgba(17, 32, 22, 0.02));
}

.dashboard-line-chart-path.revenue {
  stroke: #1f8a4c;
  stroke-width: 2.1;
}

.dashboard-line-chart-path.profit {
  stroke: #6f9d79;
  stroke-width: 1.35;
  opacity: 0.56;
}

.dashboard-line-chart-path.drr {
  stroke: #173025;
  stroke-width: 1.15;
  stroke-dasharray: 4 5;
  opacity: 0.46;
}

.dashboard-line-chart-point {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1;
  opacity: 0.42;
}

.dashboard-line-chart-point.revenue {
  fill: #1f8a4c;
}

.dashboard-line-chart-point.profit {
  fill: #6f9d79;
}

.dashboard-line-chart-point.drr {
  fill: #173025;
}

.dashboard-line-chart-tick-label {
  fill: rgba(17, 32, 22, 0.28);
  font-size: 9px;
  font-weight: 700;
}

.dashboard-line-chart-tick-label.left {
  text-anchor: start;
}

.dashboard-line-chart-tick-label.right {
  text-anchor: end;
}

.dashboard-line-chart-axis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.dashboard-line-chart-axis span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-line-chart-axis span.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.dashboard-chart-hover-layer {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: grid;
  height: 232px;
}

.dashboard-chart-hit {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dashboard-chart-hit:focus-visible,
.dashboard-chart-hit.active {
  outline: none;
}

.dashboard-chart-hover-group {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(17, 32, 22, 0.08));
}

.dashboard-chart-hover-group.is-visible {
  opacity: 1;
}

.dashboard-chart-hover-line {
  stroke: rgba(17, 32, 22, 0.065);
  stroke-width: 1.15;
  stroke-dasharray: 4 5;
}

.dashboard-chart-hover-dot {
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.dashboard-chart-hover-dot.revenue {
  fill: #1f8a4c;
}

.dashboard-chart-hover-dot.profit {
  fill: #6f9d79;
}

.dashboard-chart-hover-dot.drr {
  fill: #173025;
}

.dashboard-chart-tooltip {
  position: absolute;
  z-index: 4;
  width: 192px;
  display: grid;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(255, 255, 255, 0.975);
  box-shadow: 0 14px 28px rgba(17, 32, 22, 0.095);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    left 0.2s ease,
    top 0.2s ease;
}

.dashboard-chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-chart-tooltip strong {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink);
}

.dashboard-chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-chart-tooltip-row b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-chart-tooltip-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-chart-tooltip-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dashboard-chart-tooltip-row .revenue::before {
  background: #1f8a4c;
}

.dashboard-chart-tooltip-row .profit::before {
  background: #6f9d79;
}

.dashboard-chart-tooltip-row .orders::before {
  background: #4f7de8;
}

.dashboard-chart-tooltip-row .drr::before {
  background: #173025;
}

.dashboard-chart-empty {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 184px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(247, 250, 247, 0.96);
  border: 1px dashed rgba(19, 33, 24, 0.12);
}

.dashboard-chart-empty strong {
  font-size: 16px;
  color: var(--ink);
}

.dashboard-chart-empty p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-chart-empty-grid {
  position: relative;
  min-height: 108px;
  border-radius: 20px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(244, 248, 245, 0.88) 0%, rgba(250, 252, 250, 0.92) 100%);
  overflow: hidden;
}

.dashboard-chart-empty-grid span {
  position: absolute;
  left: 16px;
  right: 16px;
  border-top: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-chart-empty-grid span:nth-child(1) {
  top: 20px;
}

.dashboard-chart-empty-grid span:nth-child(2) {
  top: 42px;
}

.dashboard-chart-empty-grid span:nth-child(3) {
  top: 64px;
}

.dashboard-chart-empty-grid span:nth-child(4) {
  top: 86px;
}

.dashboard-chart-empty-grid span:nth-child(5) {
  top: 108px;
}

.dashboard-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-chart-grid line {
  stroke: rgba(17, 32, 22, 0.08);
  stroke-width: 1;
}

.dashboard-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dashboard-chart-line.revenue {
  stroke: #1f8a4c;
}

.dashboard-chart-line.profit {
  stroke: #123d26;
}

.dashboard-chart-line.drr {
  stroke: #c68e2a;
}

.dashboard-chart-axis-point text {
  fill: rgba(17, 32, 22, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-chart-empty small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-chart-empty-compact {
  min-height: 176px;
  grid-template-columns: minmax(156px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.96) 0%, rgba(246, 250, 247, 0.96) 100%);
  border: 1px solid rgba(17, 32, 22, 0.05);
}

.dashboard-chart-empty-visual {
  min-height: 104px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 249, 0.92) 100%),
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.08), transparent 36%);
  position: relative;
  overflow: hidden;
}

.dashboard-chart-empty-visual span {
  position: absolute;
  left: 14px;
  right: 14px;
  border-top: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-chart-empty-visual span:nth-child(1) {
  top: 22px;
}

.dashboard-chart-empty-visual span:nth-child(2) {
  top: 46px;
}

.dashboard-chart-empty-visual span:nth-child(3) {
  top: 70px;
}

.dashboard-chart-empty-visual span:nth-child(4) {
  top: 94px;
}

.dashboard-chart-empty-copy {
  display: grid;
  gap: 6px;
}

.dashboard-chart-empty-copy strong {
  font-size: 17px;
}

.dashboard-chart-empty-copy p {
  max-width: 34ch;
  line-height: 1.5;
}

.dashboard-chart-empty .app-ghost-btn {
  width: fit-content;
}

.dashboard-page .app-topbar {
  padding: 10px 20px;
  gap: 8px;
}

.dashboard-page .app-topbar-group {
  gap: 7px;
}

.dashboard-page .app-status small {
  font-size: 10px;
}

.dashboard-page .store-switcher {
  padding: 8px 12px;
}

.dashboard-page .dashboard-period-filter {
  gap: 2px;
}

.dashboard-page .app-notice-bar {
  margin: 0 24px;
  padding: 12px 16px;
  gap: 14px;
}

.dashboard-page .app-notice-copy {
  gap: 2px;
}

.dashboard-page .app-notice-copy p {
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-page .dashboard-workspace {
  gap: 6px;
  padding: 4px 20px 18px;
}

.dashboard-page .workspace-section {
  gap: 2px;
}

.dashboard-page .dashboard-kpis {
  gap: 6px;
}

.dashboard-page .dashboard-kpi {
  padding: 10px 11px 9px;
}

.dashboard-page .dashboard-kpi-body {
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 6px;
}

.dashboard-page .dashboard-kpi strong {
  margin: 3px 0 1px;
  font-size: 19px;
}

.dashboard-page .dashboard-kpi-primary strong {
  font-size: 21px;
}

.dashboard-page .dashboard-kpi-secondary strong {
  font-size: 17px;
}

.dashboard-page .dashboard-kpi em {
  display: none;
}

.dashboard-page .dashboard-kpi-sparkline {
  min-height: 16px;
}

.dashboard-page .dashboard-kpi-sparkline-svg,
.dashboard-page .dashboard-kpi-sparkline-empty {
  height: 16px;
}

.dashboard-page .dashboard-chart-surface {
  padding: 11px 14px 14px;
  box-shadow: 0 20px 44px rgba(17, 32, 22, 0.1);
}

.dashboard-page .dashboard-chart-primary {
  border-color: rgba(17, 32, 22, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 249, 0.98) 100%);
  box-shadow: 0 24px 52px rgba(17, 32, 22, 0.12);
}

.dashboard-page .workspace-section-tight {
  padding-top: 6px;
  padding-bottom: 6px;
}

.dashboard-page .dashboard-chart-headline {
  gap: 6px;
}

.dashboard-page .dashboard-chart-headline h2 {
  font-size: clamp(1.34rem, 1.85vw, 1.68rem);
}

.dashboard-page .dashboard-chart-period-note {
  padding: 7px 10px;
  min-width: 150px;
}

.dashboard-page .dashboard-chart-topline {
  margin: 4px 0 6px;
}

.dashboard-page .dashboard-preview-card,
.dashboard-page .dashboard-side-card {
  padding: 16px 18px;
}

.dashboard-page .dashboard-mixed-chart {
  min-height: 300px;
  padding: 8px 10px 6px;
}

.dashboard-page .dashboard-line-chart-grid {
  inset: 10px 12px 38px;
}

.dashboard-page .dashboard-line-chart-svg {
  height: 220px;
}

.dashboard-page .dashboard-chart-hover-layer {
  height: 220px;
}

.dashboard-page .dashboard-line-chart-axis {
  margin-top: 4px;
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-area {
  opacity: 0.22;
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-path.revenue {
  stroke-width: 1.8;
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-path.profit {
  stroke-width: 1.15;
  opacity: 0.44;
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-path.drr {
  stroke-width: 1;
  opacity: 0.38;
  stroke-dasharray: 4 5;
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-point {
  opacity: 0.12;
  stroke-width: 0.9;
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-grid span {
  border-top-color: rgba(17, 32, 22, 0.022);
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-tick-label {
  fill: rgba(17, 32, 22, 0.24);
}

.dashboard-line-chart-shell.is-long-range .dashboard-line-chart-axis span {
  font-size: 8px;
  color: rgba(17, 32, 22, 0.42);
}

.dashboard-page .app-ai-entry {
  padding: 10px 14px;
}

.dashboard-page .app-ai-entry small {
  font-size: 10px;
}

.dashboard-page .app-ai-entry span {
  line-height: 1.05;
}

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

.app-shell.app-shell-sidebar-collapsed .app-sidebar {
  width: 108px;
  padding-left: 12px;
  padding-right: 12px;
  gap: 14px;
}

.app-shell.app-shell-sidebar-collapsed .brand {
  justify-content: center;
}

.app-shell.app-shell-sidebar-collapsed .brand-text,
.app-shell.app-shell-sidebar-collapsed .sidebar-store,
.app-shell.app-shell-sidebar-collapsed .sidebar-meta {
  display: none;
}

.app-shell.app-shell-sidebar-collapsed .app-sidebar-tools {
  margin-top: auto;
}

.app-shell.app-shell-sidebar-collapsed .app-nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

.app-shell.app-shell-sidebar-collapsed .app-nav-item > span:last-child {
  display: none;
}

.app-shell.app-shell-sidebar-collapsed .app-nav-icon {
  margin: 0;
}

.split-section {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.loss-card,
.growth-card,
.sku-card,
.ads-card,
.quick-questions-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 32, 22, 0.07);
}

.loss-list,
.growth-list,
.decision-group {
  display: grid;
  gap: 12px;
}

.loss-item,
.growth-item,
.decision-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(17, 32, 22, 0.06);
}

.loss-item strong,
.growth-item strong,
.decision-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.loss-item p,
.growth-item p,
.decision-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.loss-meta {
  text-align: right;
}

.loss-meta strong {
  margin: 0 0 4px;
  font-size: 18px;
}

.loss-meta span,
.growth-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.content-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
}

.app-table {
  display: grid;
  gap: 8px;
}

.app-table-row {
  display: grid;
  grid-template-columns: minmax(146px, 1.3fr) 0.74fr 0.56fr 0.56fr 0.72fr 0.95fr;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f4f8f4 100%);
  border: 1px solid rgba(17, 32, 22, 0.055);
  font-size: 13px;
}

.app-table-head {
  background: transparent;
  border: 0;
  padding: 0 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-product {
  min-width: 0;
}

.app-table-row span strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.app-table-row span em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.table-value {
  font-weight: 700;
  color: #223228;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.table-action-wrap {
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(17, 32, 22, 0.03);
}

.table-explain {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
  font-weight: 700;
}

.table-action.danger {
  color: #8f3d3d;
  background: rgba(179, 86, 86, 0.12);
}

.table-action.warn {
  color: #8e6318;
  background: rgba(198, 142, 42, 0.12);
}

.table-action.muted {
  color: #56675c;
  background: rgba(17, 32, 22, 0.06);
}

.decision-group {
  margin-top: 18px;
}

.decision-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.decision-group-head strong {
  font-size: 15px;
}

.decision-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.question-btn {
  display: grid;
  gap: 8px;
  padding: 16px 17px 15px;
  border-radius: 22px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: linear-gradient(180deg, #fcfefc 0%, #f0f7f1 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-btn-primary {
  position: relative;
  grid-column: 1 / -1;
  border-color: rgba(31, 138, 76, 0.18);
  background: linear-gradient(180deg, #fdfefd 0%, #ebf7ee 100%);
  box-shadow: 0 16px 28px rgba(19, 104, 58, 0.08);
}

.question-btn-primary::after {
  content: "Главный вопрос";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.products-ai-lead {
  display: grid;
  gap: 6px;
  margin: 2px 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfefb 0%, #f0f7f1 100%);
  border: 1px solid rgba(31, 138, 76, 0.1);
}

.products-ai-lead-label {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.products-ai-lead strong {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.question-btn strong,
.question-btn small,
.question-btn-tag {
  display: block;
}

.question-btn strong {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.question-btn small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  font-weight: 700;
}

.question-btn-tag {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.question-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 138, 76, 0.18);
  box-shadow: 0 16px 28px rgba(17, 32, 22, 0.06);
}

.products-workspace {
  gap: 14px;
}

.products-topbar {
  align-items: flex-start;
}

.products-topbar .app-topbar-group {
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: flex-start;
}

.products-topbar .app-topbar-actions {
  flex: 1 1 420px;
  justify-content: flex-end;
  gap: 10px;
}

.products-topbar .app-filter {
  min-width: 0;
}

.products-period-filter {
  position: relative;
  align-content: start;
}

.products-period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.products-period-trigger {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 20px rgba(17, 32, 22, 0.04);
}

.products-period-trigger strong {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.products-period-trigger[aria-expanded="true"] {
  border-color: rgba(31, 138, 76, 0.16);
  box-shadow: 0 14px 28px rgba(17, 32, 22, 0.08);
}

.products-period-segments {
  display: inline-flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.products-period-segments::-webkit-scrollbar {
  display: none;
}

.products-period-segments .app-segment {
  white-space: nowrap;
}

.products-custom-range-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 14;
  width: min(336px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: linear-gradient(180deg, #fbfdfb 0%, #f1f7f2 100%);
  box-shadow: 0 18px 36px rgba(17, 32, 22, 0.06);
}

.products-custom-range-panel[hidden] {
  display: none !important;
}

.products-custom-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.products-date-field {
  display: grid;
  gap: 6px;
}

.products-date-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.products-date-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.products-custom-range-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.products-custom-range-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.products-custom-range-status.is-success {
  color: var(--primary-strong);
}

.products-custom-range-status.is-error {
  color: #a63f3f;
}

.products-topbar .app-status {
  min-width: 0;
  max-width: 280px;
}

.dashboard-period-filter {
  min-width: 0;
}

.dashboard-period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashboard-period-trigger {
  min-width: 214px;
}

.dashboard-period-segments {
  max-width: min(100%, 520px);
}

.products-topbar .app-ghost-btn {
  flex: 0 0 auto;
}

.products-topbar .app-ai-entry {
  flex: 0 1 250px;
  gap: 4px;
  padding: 11px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(31, 138, 76, 0.16);
}

.products-topbar .app-ai-entry span {
  font-size: 14px;
}

.products-topbar .app-ai-entry small {
  max-width: 210px;
  font-size: 10px;
  line-height: 1.3;
}

.products-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 16px;
}

.products-control-bar,
.products-table-card,
.products-side-card,
.products-ai-card {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 32, 22, 0.07);
  box-shadow: var(--shadow-sm);
}

.products-main-surface {
  border-color: rgba(31, 138, 76, 0.11);
  box-shadow: 0 18px 40px rgba(17, 32, 22, 0.07);
}

.products-page .workspace-section-tight {
  padding-top: 10px;
  padding-bottom: 10px;
}

.products-table-action {
  width: 100%;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.products-table-action:hover {
  border-color: rgba(31, 138, 76, 0.18);
  box-shadow: 0 12px 26px rgba(17, 32, 22, 0.07);
  transform: translateY(-1px);
}

.products-table-action:focus-visible {
  outline: 0;
  border-color: rgba(31, 138, 76, 0.28);
  box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.14);
}

.products-table-action.is-active {
  background: linear-gradient(180deg, rgba(248, 252, 249, 0.98) 0%, rgba(237, 246, 239, 0.98) 100%);
  border-color: rgba(31, 138, 76, 0.18);
  box-shadow: 0 16px 32px rgba(17, 32, 22, 0.08);
}

.product-cell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.product-thumb {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(242, 247, 243, 0.98) 0%, rgba(234, 241, 236, 0.98) 100%);
  border: 1px solid rgba(17, 32, 22, 0.07);
  display: grid;
  place-items: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-placeholder,
.products-detail-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(17, 32, 22, 0.52);
  font-weight: 800;
  font-size: 17px;
}

.product-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.product-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.products-table-card .section-head {
  align-items: center;
  justify-content: space-between;
}

.products-table-card .section-head h2 {
  margin-bottom: 0;
}

.products-data-status {
  display: none;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.products-data-status.is-visible {
  display: inline-flex;
}

.products-data-status.is-loading {
  color: var(--muted);
  background: rgba(17, 32, 22, 0.05);
}

.products-data-status.is-live {
  color: var(--primary-strong);
  background: rgba(31, 138, 76, 0.1);
}

.products-data-status.is-success {
  color: var(--primary-strong);
  background: rgba(31, 138, 76, 0.1);
}

.products-data-status.is-fallback {
  color: #8e6318;
  background: rgba(198, 142, 42, 0.14);
}

.products-control-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: end;
}

.ads-inline-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 32, 22, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.ads-inline-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.ads-page .workspace-section-tight {
  padding-top: 10px;
  padding-bottom: 10px;
}

.ads-page,
.ads-page body,
.ads-page .app-shell,
.ads-page .app-main,
.ads-page .products-workspace,
.ads-page [data-ads-workspace="true"],
.ads-page #ads-live-state,
.ads-page .workspace-section {
  min-width: 0;
}

.ads-page .app-main,
.ads-page .products-workspace,
.ads-page #ads-live-state {
  overflow-x: hidden;
}

.ads-page .ads-inline-state {
  padding: 16px 18px;
  border-radius: 22px;
}

.ads-inline-copy {
  display: grid;
  gap: 8px;
}

.ads-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
}

.ads-page,
.ads-page body,
.ads-page .app-shell,
.ads-page .app-main,
.ads-page .app-workspace {
  overflow-x: clip;
}

.ads-page .app-workspace {
  gap: 10px;
}

.ads-page .workspace-section-tight {
  padding-top: 4px;
  padding-bottom: 4px;
}

.ads-trust-strip {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98) 0%, rgba(242, 247, 244, 0.98) 100%);
}

.ads-trust-strip strong {
  font-size: 14px;
  line-height: 1.3;
}

.ads-trust-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ads-campaigns-card {
  overflow: hidden;
}

.ads-campaigns-card .section-head {
  align-items: center;
  justify-content: space-between;
}

.ads-campaigns-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.ads-campaigns-table-inner {
  display: grid;
  gap: 8px;
  min-width: 1180px;
}

.ads-campaigns-head,
.ads-campaign-row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.45fr)
    104px
    96px
    90px
    90px
    94px
    126px
    110px
    112px
    118px
    110px
    minmax(148px, 1fr)
    64px;
}

.ads-campaign-rows {
  display: grid;
  gap: 8px;
}

.ads-campaign-row {
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ads-campaign-row:hover,
.ads-campaign-row:focus-visible,
.ads-campaign-row.is-active {
  border-color: rgba(31, 138, 76, 0.14);
  background: rgba(247, 251, 248, 0.98);
}

.ads-campaign-row:focus-visible {
  outline: 2px solid rgba(31, 138, 76, 0.18);
  outline-offset: 2px;
}

.ads-campaign-row span,
.ads-campaign-row small,
.ads-campaign-row em {
  line-height: 1.4;
}

.ads-campaign-row > span,
.ads-campaigns-head > span {
  min-width: 0;
}

.ads-campaign-row > span:not(:first-child),
.ads-campaigns-head > span {
  white-space: nowrap;
}

.ads-campaign-row > span:first-child {
  white-space: normal;
}

.ads-campaign-cell {
  min-width: 0;
}

.ads-campaign-primary {
  font-size: 13px;
  line-height: 1.35;
}

.ads-campaign-name-button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
}

.ads-campaign-name-button:hover {
  color: #176a3b;
}

.ads-row-affordance {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  color: var(--primary-strong);
  font-style: normal;
  font-weight: 800;
}

.ads-recommendation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(95, 158, 115, 0.12);
  color: #2f6a42;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  white-space: normal;
  text-align: left;
}

.ads-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.ads-status-chip.is-live {
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.ads-status-chip.is-muted {
  background: rgba(17, 32, 22, 0.06);
  color: var(--muted);
}

.ads-campaign-quick-cell {
  display: flex;
  justify-content: flex-end;
}

.ads-campaign-quick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: rgba(247, 250, 247, 0.95);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: not-allowed;
  opacity: 0.52;
}

.ads-detail-surface {
  padding: 0;
  overflow: hidden;
}

.ads-detail-screen-body {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.ads-detail-header-block {
  display: grid;
  gap: 14px;
}

.ads-detail-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ads-detail-title-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ads-detail-title-block {
  display: grid;
  gap: 8px;
}

.ads-detail-title-block h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.ads-detail-title-meta,
.ads-detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ads-detail-meta-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ads-detail-header-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ads-detail-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ads-detail-info-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98) 0%, rgba(241, 246, 243, 0.98) 100%);
  border: 1px solid rgba(31, 138, 76, 0.1);
}

.ads-detail-info-card strong {
  font-size: 14px;
}

.ads-detail-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ads-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.ads-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: rgba(247, 250, 247, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.ads-detail-tab.active {
  border-color: rgba(31, 138, 76, 0.18);
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.ads-detail-tab-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ads-detail-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.ads-detail-main-column,
.ads-detail-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ads-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 249, 0.98) 100%);
  border: 1px solid rgba(19, 33, 24, 0.07);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.ads-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ads-detail-card-head strong {
  font-size: 17px;
}

.ads-detail-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ads-chart-card {
  gap: 16px;
}

.ads-chart-shell {
  position: relative;
  min-height: 280px;
  padding: 16px 18px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f1f6f3 100%);
  border: 1px solid rgba(19, 33, 24, 0.07);
}

.ads-chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ads-chart-meta strong {
  font-size: 14px;
}

.ads-chart-meta span {
  color: var(--muted);
  font-size: 12px;
}

.ads-chart-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ads-chart-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ads-chart-switcher button.active {
  border-color: rgba(31, 138, 76, 0.18);
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.ads-chart-empty,
.ads-detail-empty-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
  border: 1px dashed rgba(19, 33, 24, 0.12);
}

.ads-chart-empty p,
.ads-detail-empty-card p {
  margin: 0;
  color: var(--muted);
}

.ads-insights-grid,
.ads-ai-grid {
  display: grid;
  gap: 12px;
}

.ads-insight-card,
.ads-ai-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(19, 33, 24, 0.07);
  background: rgba(248, 251, 248, 0.95);
}

.ads-insight-card strong,
.ads-ai-card strong {
  font-size: 14px;
}

.ads-insight-card p,
.ads-ai-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ads-history-table,
.ads-detail-products-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.ads-history-table-inner,
.ads-detail-products-head,
.ads-detail-products-row {
  display: grid;
  gap: 8px;
  min-width: 980px;
}

.ads-history-head,
.ads-history-row {
  display: grid;
  grid-template-columns:
    minmax(112px, 0.9fr)
    repeat(7, minmax(96px, 0.78fr));
}

.ads-detail-products-head,
.ads-detail-products-row {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.8fr)
    repeat(7, minmax(104px, 0.82fr));
}

.ads-history-head,
.ads-detail-products-head {
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ads-history-row,
.ads-detail-products-row {
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(19, 33, 24, 0.06);
  background: rgba(248, 251, 248, 0.9);
  font-size: 12px;
}

.ads-detail-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ads-detail-product-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(19, 33, 24, 0.05);
}

.ads-detail-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ads-detail-product-thumb span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.ads-detail-product-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ads-detail-product-copy strong,
.ads-detail-product-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-detail-product-copy small {
  color: var(--muted);
}

.products-detail-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.products-detail-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border-radius: 30px;
  background: rgba(252, 253, 252, 0.96);
  border: 1px solid rgba(17, 32, 22, 0.08);
  box-shadow: 0 32px 56px rgba(9, 20, 12, 0.18);
  overflow: hidden;
  transform: translateX(22px);
  opacity: 0;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
  backdrop-filter: blur(12px);
}

.products-detail-drawer.is-open .products-detail-shell {
  transform: translateX(0);
  opacity: 1;
}

.products-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(17, 32, 22, 0.07);
  background: linear-gradient(180deg, rgba(248, 251, 248, 0.98) 0%, rgba(252, 253, 252, 0.98) 100%);
}

.products-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: rgba(17, 32, 22, 0.04);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.products-detail-body {
  overflow: auto;
  padding: 16px;
}

.products-detail-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
  border: 1px dashed rgba(17, 32, 22, 0.12);
}

.products-detail-empty strong,
.products-detail-title strong,
.products-detail-metric strong,
.products-detail-note span {
  display: block;
}

.products-detail-empty p,
.products-detail-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.products-detail-card {
  display: grid;
  gap: 16px;
}

.products-detail-hero {
  padding: 6px 0 2px;
}

.products-detail-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
}

.products-detail-title {
  min-width: 0;
}

.products-detail-sku {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.products-detail-title strong {
  font-size: 18px;
  line-height: 1.25;
}

.products-detail-metrics {
  display: grid;
  gap: 10px;
}

.products-detail-metrics-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.products-detail-section {
  display: grid;
  gap: 10px;
}

.products-detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.products-detail-section-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.products-detail-section-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.products-detail-metric,
.products-detail-pill,
.products-detail-note {
  padding: 12px 13px;
  border-radius: 20px;
  background: rgba(246, 249, 246, 0.9);
  border: 1px solid rgba(17, 32, 22, 0.055);
}

.products-detail-metric span,
.products-detail-pill > span,
.products-detail-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.products-detail-metric.is-primary {
  background: linear-gradient(180deg, rgba(248, 252, 249, 0.96) 0%, rgba(242, 248, 244, 0.96) 100%);
}

.products-detail-metric.is-secondary {
  background: rgba(247, 249, 247, 0.84);
}

.products-detail-metric strong {
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.15;
}

.products-detail-metric.main {
  background: linear-gradient(180deg, rgba(248, 252, 249, 0.96) 0%, rgba(242, 248, 244, 0.96) 100%);
}

.products-detail-media {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(242, 247, 243, 0.98) 0%, rgba(234, 241, 236, 0.98) 100%);
  border: 1px solid rgba(17, 32, 22, 0.07);
  display: grid;
  place-items: center;
}

.products-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.ads-history-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(248, 251, 248, 0.88);
}

.ads-history-row strong {
  grid-column: 1 / -1;
  font-size: 13px;
}

.ads-history-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ads-campaign-primary {
  display: block;
}

.ads-row-affordance {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: var(--primary-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ads-detail-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.ads-detail-back {
  flex: 0 0 auto;
}

.ads-detail-title-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ads-detail-title-block strong {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ads-detail-title-block small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ads-detail-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ads-detail-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ads-detail-understanding-card {
  background: linear-gradient(180deg, rgba(246, 251, 247, 0.98) 0%, rgba(241, 247, 243, 0.98) 100%);
}

.ads-detail-section-head {
  align-items: start;
  gap: 10px;
}

.ads-detail-metric-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ads-detail-metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.08);
  background: rgba(248, 251, 248, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.ads-detail-metric-chip.active {
  border-color: rgba(31, 138, 76, 0.2);
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.ads-detail-chart-surface {
  display: grid;
  gap: 14px;
}

.ads-detail-chart-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.ads-detail-chart-meta strong {
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ads-detail-chart-meta small {
  color: var(--muted);
  font-size: 12px;
}

.ads-detail-chart-canvas {
  position: relative;
  overflow: hidden;
  padding: 10px 10px 26px;
  border-radius: 24px;
  border: 1px solid rgba(17, 32, 22, 0.05);
  background: linear-gradient(180deg, rgba(253, 254, 253, 0.98) 0%, rgba(247, 250, 247, 0.98) 100%);
}

.ads-detail-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ads-detail-chart-grid {
  stroke: rgba(17, 32, 22, 0.07);
  stroke-width: 1;
}

.ads-detail-chart-grid.axis {
  stroke: rgba(17, 32, 22, 0.11);
}

.ads-detail-chart-area {
  fill: url(#ads-detail-chart-fill);
}

.ads-detail-chart-line {
  fill: none;
  stroke: #1f8a4c;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ads-detail-chart-dot {
  fill: #ffffff;
  stroke: #1f8a4c;
  stroke-width: 2;
}

.ads-detail-chart-dot.is-latest {
  fill: #1f8a4c;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 3;
}

.ads-detail-chart-axis {
  position: absolute;
  inset: auto 0 8px;
  height: 16px;
}

.ads-detail-chart-axis-label {
  position: absolute;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.ads-detail-chart-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(17, 32, 22, 0.12);
  background: rgba(248, 251, 248, 0.82);
}

.ads-detail-chart-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ads-detail-insights-grid,
.ads-detail-recommendations {
  display: grid;
  gap: 10px;
}

.ads-detail-mini-table {
  display: grid;
  gap: 10px;
}

.ads-detail-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(248, 251, 248, 0.9);
}

.ads-detail-mini-row strong {
  font-size: 13px;
}

.ads-detail-mini-row span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.ads-detail-insight-card,
.ads-detail-recommendation-card {
  padding: 14px 15px;
  border-radius: 20px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(248, 251, 248, 0.9);
}

.ads-detail-insight-card strong,
.ads-detail-recommendation-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.ads-detail-insight-card p,
.ads-detail-recommendation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ads-detail-insight-card.is-positive {
  background: rgba(31, 138, 76, 0.08);
  border-color: rgba(31, 138, 76, 0.12);
}

.ads-detail-insight-card.is-warning {
  background: rgba(216, 134, 20, 0.08);
  border-color: rgba(216, 134, 20, 0.14);
}

.products-detail-statuses {
  display: grid;
  gap: 8px;
}

.products-detail-pill-value {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.products-detail-pill-value small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.products-detail-section-facts .products-detail-pill {
  background: rgba(248, 250, 248, 0.72);
}

.products-detail-note p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.table-action.success {
  color: var(--primary-strong);
  background: rgba(31, 138, 76, 0.12);
}

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

.products-side-list,
.products-growth-list {
  display: grid;
  gap: 12px;
}

.products-side-item,
.products-growth-item {
  padding: 15px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(17, 32, 22, 0.06);
}

.products-side-item strong,
.products-growth-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.products-side-cue {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-strong);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.products-side-item p,
.products-growth-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.56;
}

.products-growth-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-sidebar .app-nav-item.locked {
  opacity: 0.58;
  pointer-events: none;
  transform: none;
}

.onboarding-sidebar .app-nav-item.locked:hover {
  background: transparent;
  color: var(--muted);
}

.connect-topbar .app-topbar-group {
  align-items: stretch;
}

.connect-account-card {
  min-width: 240px;
}

.connect-step-note {
  min-width: 0;
}

.connect-status-pill {
  min-width: 280px;
}

.connect-workspace {
  gap: 20px;
}

.connect-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.connect-hero-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.connect-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.connect-form-card,
.connect-state-card {
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.connect-form-card {
  border: 1px solid rgba(17, 32, 22, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.98) 100%);
}

.connect-state-card {
  border: 1px solid rgba(31, 138, 76, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 245, 0.98) 100%);
}

.connect-store-form {
  gap: 18px;
}

.connect-store-form .field-control input {
  min-height: 56px;
}

.connect-optional-block {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 32, 22, 0.07);
  background: rgba(248, 251, 249, 0.92);
}

.connect-optional-head {
  display: grid;
  gap: 8px;
}

.connect-optional-head div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.connect-optional-head strong {
  font-size: 15px;
  line-height: 1.35;
}

.connect-optional-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  max-width: 620px;
}

.connect-optional-grid {
  align-items: start;
}

.connect-secure-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 138, 76, 0.1);
  background: rgba(243, 249, 245, 0.86);
}

.connect-secure-note strong {
  font-size: 14px;
}

.connect-secure-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.connect-feedback {
  margin-top: -2px;
}

.connect-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.connect-submit-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 320px;
}

.connect-progress {
  display: grid;
  gap: 10px;
}

.connect-progress-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 32, 22, 0.06);
}

.connect-progress-step:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.connect-progress-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  border: 1px solid rgba(17, 32, 22, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.connect-progress-step.active .connect-progress-dot {
  border-color: rgba(31, 138, 76, 0.22);
  background: rgba(221, 242, 228, 0.92);
}

.connect-progress-step.done .connect-progress-dot {
  border-color: rgba(31, 138, 76, 0.18);
  background: linear-gradient(180deg, rgba(56, 178, 102, 0.18) 0%, rgba(31, 138, 76, 0.18) 100%);
}

.connect-progress-step.error .connect-progress-dot {
  border-color: rgba(183, 55, 55, 0.18);
  background: rgba(255, 239, 239, 0.94);
}

.connect-progress-step.active .connect-progress-dot::after,
.connect-progress-step.done .connect-progress-dot::after,
.connect-progress-step.error .connect-progress-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
}

.connect-progress-step.active .connect-progress-dot::after,
.connect-progress-step.done .connect-progress-dot::after {
  background: var(--primary-strong);
}

.connect-progress-step.error .connect-progress-dot::after {
  background: #b73737;
}

.connect-progress-text {
  display: grid;
  gap: 3px;
}

.connect-progress-text strong {
  font-size: 14px;
  line-height: 1.35;
}

.connect-progress-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.connect-result {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.07);
  background: rgba(255, 255, 255, 0.88);
}

.connect-result strong {
  font-size: 15px;
  line-height: 1.35;
}

.connect-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.connect-result-summary {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.connect-result-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(255, 255, 255, 0.84);
}

.connect-result-item strong {
  font-size: 13px;
}

.connect-result-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.connect-result-item.is-success {
  border-color: rgba(31, 138, 76, 0.12);
  background: rgba(244, 250, 246, 0.98);
}

.connect-result-item.is-muted {
  border-color: rgba(17, 32, 22, 0.06);
  background: rgba(250, 251, 250, 0.98);
}

.connect-result.is-success {
  border-color: rgba(31, 138, 76, 0.14);
  background: rgba(244, 250, 246, 0.94);
}

.connect-result.is-error {
  border-color: rgba(183, 55, 55, 0.14);
  background: rgba(255, 244, 244, 0.94);
}

.connect-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1080px) {
  .hero-stats,
  .preview-metrics,
  .auth-kpi-row,
  .formula-benefits {
    grid-template-columns: 1fr;
  }

  .trust-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .summary-highlights {
    grid-template-columns: 1fr;
  }

  .products-summary-grid {
    grid-template-columns: 1fr;
  }

  .connect-main-grid,
  .connect-hero {
    grid-template-columns: 1fr;
  }

  .products-table-meta {
    margin-bottom: 14px;
  }

  .products-topbar .app-ai-entry {
    flex-basis: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .products-topbar .app-ai-entry small {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .formula-grid,
  .auth-layout,
  .legal-layout,
  .footer-grid,
  .mockup-panels {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .preview-grid,
  .steps-grid,
  .pricing-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .workspace-hero,
  .split-section,
  .content-grid,
  .products-control-top {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    min-height: auto;
  }

  .app-topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .app-topbar-group {
    flex-wrap: wrap;
  }

  .connect-topbar .app-topbar-actions {
    justify-content: flex-start;
  }

  .connect-status-pill {
    min-width: 0;
    width: 100%;
  }

  .summary-period-wrap {
    justify-items: start;
  }

  .hero {
    padding-top: 58px;
  }

  .legal-nav {
    position: static;
  }

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

  .priority-grid,
  .dashboard-kpis,
  .quick-question-grid {
    grid-template-columns: 1fr;
  }

  .products-table-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
  }

  .products-period-bar,
  .dashboard-period-bar,
  .cost-upload-head {
    flex-direction: column;
    align-items: stretch;
  }

  .products-period-filter,
  .dashboard-period-filter {
    width: 100%;
  }

  .products-period-segments,
  .dashboard-period-segments {
    flex-wrap: wrap;
  }

  .products-period-trigger strong,
  .dashboard-period-trigger strong {
    white-space: normal;
  }

  .products-custom-range-panel,
  .dashboard-custom-range-panel {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    width: auto;
    position: fixed;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(12, 20, 14, 0.18);
  }

  .products-custom-range-fields {
    grid-template-columns: 1fr;
  }

  .products-table-head {
    display: none;
  }

  .products-product {
    grid-column: 1 / -1;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(17, 32, 22, 0.06);
  }

  .products-product-open {
    align-self: center;
  }

  .table-value,
  .table-badge,
  .table-priority,
  .table-action-wrap {
    display: grid;
    gap: 4px;
    align-content: start;
  }

  .table-value::before,
  .table-badge::before,
  .table-priority::before,
  .table-action-wrap::before {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .table-value::before,
  .table-badge::before,
  .table-priority::before {
    content: attr(data-label);
  }

  .table-action-wrap::before {
    content: "Рекомендация";
  }

  .products-detail-drawer {
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(390px, calc(100vw - 28px));
  }

  .table-action-wrap {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 32, 22, 0.06);
  }

  .connect-submit-row,
  .connect-success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .products-custom-range-panel,
  .cost-upload-card {
    padding: 16px;
  }

  .dashboard-chart-headline,
  .dashboard-chart-topline {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-preview-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-kpi-body {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .dashboard-preview-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

  .dashboard-preview-main,
  .dashboard-preview-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 74px 0;
  }

  .hero h1,
  .auth-intro h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary {
    min-width: 0;
  }

  .hero-secondary-link {
    width: 100%;
    justify-content: center;
  }

  .btn,
  .btn-large {
    width: 100%;
  }

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

  .connect-form-card,
  .connect-state-card {
    padding: 20px;
  }

  .mockup-toolbar,
  .auth-showcase-head,
  .form-meta,
  .footer-bottom,
  .legal-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .table-row,
  .campaign-row,
  .mini-screen-row {
    grid-template-columns: 1fr;
  }

  .loss-item,
  .growth-item,
  .decision-row,
  .app-table-row {
    grid-template-columns: 1fr;
  }

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

  .status-chip {
    width: fit-content;
    max-width: 100%;
  }

  .mockup-actionline {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .mockup-actionline strong {
    margin-left: 0;
    white-space: normal;
  }

  .preview-footnote {
    flex-direction: column;
    align-items: flex-start;
  }

  .mockup-sync {
    margin-left: 0;
  }

  .glass-card,
  .soft-card,
  .auth-card-wrap,
  .auth-card,
  .final-cta,
  .legal-card,
  .trust-panel {
    padding: 20px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .app-workspace,
  .app-topbar,
  .app-sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workspace-hero-copy h1,
  .compact-head h2 {
    font-size: 30px;
  }

  .summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-kpi-top {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .dashboard-kpi-sparkline {
    min-height: 36px;
  }

  .dashboard-kpis,
  .dashboard-ads-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview-card,
  .dashboard-side-card {
    padding: 18px;
  }

  .dashboard-preview-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-chart-tooltip {
    width: min(186px, calc(100vw - 56px));
  }

  .dashboard-line-chart-axis {
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 6px;
  }

  .dashboard-line-chart-axis span {
    font-size: 10px;
  }

  .dashboard-chart-empty-compact {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-empty-visual {
    min-height: 88px;
  }

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

  .products-control-bar,
  .products-table-card,
  .products-side-card,
  .products-ai-card {
    padding: 18px;
  }

  .products-search-field {
    min-height: 48px;
    padding: 0 12px;
  }

  .products-table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .products-product {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .products-product-open {
    grid-column: auto;
    justify-self: end;
    margin-left: 0;
  }

  .products-thumb.is-table {
    width: 48px;
    height: 48px;
  }

  .table-value,
  .table-badge,
  .table-priority,
  .table-action-wrap {
    grid-column: 1 / -1;
  }

  .products-detail-drawer {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
  }

  .products-detail-shell {
    border-radius: 28px 28px 0 0;
    transform: translateY(24px);
  }

  .products-detail-drawer.is-open .products-detail-shell {
    transform: translateY(0);
  }

  .products-detail-body {
    padding: 16px 16px 96px;
  }

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

  .products-detail-section-head {
    align-items: start;
    flex-direction: column;
  }

  .question-btn-primary::after {
    position: static;
    width: fit-content;
    margin-top: -2px;
  }
}

:root {
  --bg: #f2f6f1;
  --bg-alt: #e9efe9;
  --surface: #ffffff;
  --surface-soft: #f8fbf8;
  --surface-muted: #eff4ef;
  --ink: #132118;
  --muted: #617165;
  --line: rgba(16, 34, 22, 0.08);
  --line-strong: rgba(16, 34, 22, 0.16);
  --primary: #1f8a4c;
  --primary-strong: #15683a;
  --primary-soft: #deefe2;
  --dark: #0f1712;
  --dark-soft: #16231b;
  --warn: #b88c31;
  --danger: #a85252;
  --shadow-sm: 0 18px 36px rgba(14, 25, 18, 0.06);
  --shadow-md: 0 30px 70px rgba(14, 25, 18, 0.1);
  --shadow-lg: 0 42px 100px rgba(9, 17, 12, 0.18);
}

body {
  background:
    radial-gradient(circle at top left, rgba(48, 142, 83, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(26, 108, 57, 0.06), transparent 26%),
    linear-gradient(180deg, #f8faf7 0%, var(--bg) 100%);
  color: var(--ink);
}

.site-header,
.app-topbar,
.app-sidebar {
  backdrop-filter: blur(24px);
}

.site-header {
  background: rgba(248, 250, 247, 0.86);
}

.light-header {
  background: rgba(249, 251, 248, 0.92);
}

.soft-card,
.auth-card-wrap,
.auth-card,
.pricing-card,
.trust-panel,
.glass-card,
.legal-card,
.final-cta {
  border: 1px solid rgba(19, 33, 24, 0.07);
  box-shadow: var(--shadow-sm);
}

.soft-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 250, 0.96) 100%);
}

.card-chip,
.status-chip,
.priority-level,
.pricing-label,
.auth-badge,
.section-tag {
  letter-spacing: 0.01em;
}

.app-page {
  background:
    radial-gradient(circle at top left, rgba(42, 139, 76, 0.08), transparent 30%),
    linear-gradient(180deg, #f7faf7 0%, #edf3ee 100%);
}

.app-shell {
  position: relative;
}

  .app-sidebar-backdrop,
  .app-mobile-toggle,
  .app-sidebar-toggle,
  .app-bottom-nav {
    display: none;
  }

.app-sidebar {
  width: 300px;
  padding: 28px 20px 24px;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(248, 251, 247, 0.96) 0%, rgba(243, 248, 244, 0.96) 100%);
  border-right: 1px solid rgba(19, 33, 24, 0.06);
}

.app-brand {
  padding: 4px 4px 10px;
}

.sidebar-store,
.sidebar-note {
  border-radius: 24px;
  padding: 20px;
}

.sidebar-store-live {
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.app-nav {
  gap: 8px;
}

.app-nav-item {
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 18px;
}

.app-nav-item:hover {
  border-color: rgba(31, 138, 76, 0.08);
  transform: translateX(0);
}

.app-nav-item.active {
  background: linear-gradient(180deg, rgba(224, 241, 229, 0.96) 0%, rgba(241, 248, 243, 0.96) 100%);
  border-color: rgba(31, 138, 76, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.app-nav-item.locked {
  opacity: 0.56;
}

.app-main {
  background: linear-gradient(180deg, rgba(248, 251, 247, 0.2) 0%, rgba(241, 246, 242, 0) 100%);
}

.app-topbar {
  top: 0;
  padding: 18px 28px;
  background: rgba(249, 251, 248, 0.82);
  border-bottom: 1px solid rgba(19, 33, 24, 0.05);
}

.app-control,
.app-ghost-btn {
  border-radius: 18px;
  border-color: rgba(19, 33, 24, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.app-control {
  min-width: 240px;
  padding: 13px 16px;
}

.app-status {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 33, 24, 0.07);
}

.status-dot {
  width: 10px;
  height: 10px;
}

.status-dot-muted {
  background: #b8c5bc;
  box-shadow: none;
}

.app-workspace {
  padding: 24px 28px 34px;
}

.app-notice-bar {
  margin: 0 28px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(31, 138, 76, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 248, 0.96) 100%);
  border: 1px solid rgba(31, 138, 76, 0.11);
  box-shadow: var(--shadow-sm);
}

.app-notice-bar-muted {
  border-color: rgba(19, 33, 24, 0.08);
}

.app-notice-copy {
  display: grid;
  gap: 4px;
}

.app-notice-copy strong {
  font-size: 17px;
  line-height: 1.35;
}

.app-notice-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-notice-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(18, 104, 58, 0.08);
  color: var(--primary-strong);
  font-weight: 800;
  border: 1px solid rgba(31, 138, 76, 0.12);
}

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

.workspace-hero,
.connect-hero {
  gap: 20px;
}

.workspace-hero-copy,
.workspace-hero-side {
  min-width: 0;
}

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

.workspace-hero-copy p {
  max-width: 62ch;
}

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

.hero-inline-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(19, 33, 24, 0.06);
}

.hero-inline-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.hero-inline-metric span {
  color: var(--muted);
  font-size: 12px;
}

.hero-side-callout {
  display: grid;
  gap: 16px;
}

.hero-side-callout p,
.hero-side-callout ul {
  margin: 0;
}

.hero-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.setup-state-card,
.elevated-card {
  padding: 22px;
  border-radius: 26px;
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  border-color: rgba(31, 138, 76, 0.12);
}

.inline-cta-link,
.priority-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--primary-strong);
  font-weight: 800;
}

.connect-main-grid {
  align-items: start;
}

.connect-form-card,
.connect-state-card,
.products-main-surface,
.products-side-card,
.products-ai-card,
.summary-card,
.priority-card,
.dashboard-kpi,
.pricing-card {
  border-radius: 28px;
}

.connect-side-checklist,
.status-story-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.connect-side-item,
.status-story-item,
.settings-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 250, 247, 0.9);
  border: 1px solid rgba(19, 33, 24, 0.06);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-row span,
.status-story-item p,
.connect-side-item p {
  color: var(--muted);
}

.status-story-item p,
.connect-side-item p,
.settings-row span {
  margin: 4px 0 0;
  font-size: 13px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.action-link-card {
  display: grid;
  gap: 5px;
  min-height: 124px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(248, 251, 248, 0.92);
  border: 1px solid rgba(19, 33, 24, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.action-link-card strong {
  font-size: 15px;
}

.action-link-card span {
  color: var(--muted);
  font-size: 13px;
}

.static-card {
  pointer-events: none;
}

.connection-state-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 250, 247, 0.9);
  border: 1px solid rgba(19, 33, 24, 0.06);
}

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

.products-topbar .app-ai-entry {
  min-width: 220px;
}

.products-control-bar {
  border-radius: 28px;
}

.products-data-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}

.products-data-status.is-loading {
  background: rgba(19, 33, 24, 0.05);
  color: var(--muted);
}

.products-data-status.is-live {
  background: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
}

.products-data-status.is-fallback {
  background: rgba(184, 140, 49, 0.12);
  color: #8a6920;
}

.products-table-row {
  border-radius: 20px;
}

.products-empty-state {
  padding: 26px;
  border-radius: 22px;
  background: rgba(247, 250, 247, 0.96);
  border: 1px dashed rgba(19, 33, 24, 0.12);
}

.products-empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.products-empty-state p {
  margin: 0;
  color: var(--muted);
}

.pricing-card {
  min-height: 100%;
}

.premium-pricing-grid {
  align-items: stretch;
}

.current-plan-card {
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}

.featured-pricing-card {
  background:
    radial-gradient(circle at top left, rgba(31, 138, 76, 0.1), transparent 34%),
    linear-gradient(180deg, #f7fbf8 0%, #edf8f0 100%);
  border-color: rgba(31, 138, 76, 0.14);
}

.cost-foundation-card {
  background:
    radial-gradient(circle at top left, rgba(31, 138, 76, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.cost-upload-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 138, 76, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.cost-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cost-upload-copy {
  display: grid;
  gap: 6px;
}

.cost-upload-copy p {
  margin: 0;
  color: var(--muted);
}

.cost-upload-dropzone {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(31, 138, 76, 0.24);
  background: linear-gradient(180deg, #fbfdfb 0%, #f2f7f3 100%);
  cursor: pointer;
}

.cost-upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cost-upload-dropzone-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.cost-upload-dropzone small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cost-upload-file-state,
.cost-upload-feedback {
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 32, 22, 0.07);
  background: rgba(248, 251, 248, 0.92);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.cost-upload-file-state.is-selected,
.cost-upload-feedback.is-success {
  color: var(--primary-strong);
  border-color: rgba(31, 138, 76, 0.14);
  background: rgba(31, 138, 76, 0.08);
}

.cost-upload-feedback.is-pending {
  color: var(--ink);
  background: rgba(19, 33, 24, 0.05);
}

.cost-upload-feedback.is-error {
  color: #a63f3f;
  border-color: rgba(166, 63, 63, 0.14);
  background: rgba(166, 63, 63, 0.07);
}

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

.faq-stack .faq-item {
  margin: 0;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(19, 33, 24, 0.08);
  background: rgba(248, 251, 248, 0.92);
}

.faq-stack .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
}

.faq-stack .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-stack .faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
}

.app-topbar .app-mobile-toggle {
  flex-shrink: 0;
}

.app-mobile-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(19, 33, 24, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.app-mobile-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

@media (max-width: 980px) {
  .ads-inline-state {
    flex-direction: column;
    align-items: flex-start;
  }

  .ads-inline-actions {
    width: 100%;
  }

  .ads-inline-actions .btn {
    width: 100%;
  }

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

  .ads-detail-kpi-strip {
    grid-template-columns: 1fr;
  }

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

  .ads-detail-breadcrumb {
    flex-direction: column;
    align-items: flex-start;
  }

  .ads-detail-chart-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1280px) {
  .ads-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ads-detail-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

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

@media (max-width: 1180px) {
  .hero-inline-metrics,
}

@media (max-width: 1080px) {
  .page-grid-two,
  .action-link-grid {
    grid-template-columns: 1fr;
  }

  .app-notice-bar {
    margin-left: 20px;
    margin-right: 20px;
  }

  .app-workspace {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(11, 18, 13, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: min(320px, 88vw);
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 0 30px 80px rgba(11, 19, 13, 0.22);
  }

  .app-shell.app-shell-nav-open .app-sidebar {
    transform: translateX(0);
  }

  .app-shell.app-shell-nav-open .app-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-mobile-toggle,
  .app-bottom-nav {
    display: flex;
  }

  .app-sidebar-toggle {
    display: none;
  }

  .app-topbar {
    position: sticky;
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .app-topbar-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .app-topbar-actions {
    justify-content: stretch;
  }

  .app-topbar-actions > * {
    width: 100%;
  }

  .app-control,
  .store-switcher,
  .app-status,
  .connect-status-pill {
    min-width: 0;
    width: 100%;
  }

  .app-notice-bar {
    margin: 12px 16px 0;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .app-workspace {
    padding: 18px 16px 104px;
  }

  .workspace-hero-copy h1,
  .compact-head h2 {
    font-size: 32px;
  }

  .hero-side-actions,
  .settings-actions {
    flex-direction: column;
  }

  .hero-side-actions > *,
  .settings-actions > * {
    width: 100%;
  }

  .app-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 42;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(250, 252, 249, 0.94);
    border: 1px solid rgba(19, 33, 24, 0.08);
    box-shadow: 0 18px 36px rgba(12, 20, 14, 0.12);
    backdrop-filter: blur(24px);
  }

  .app-bottom-nav-item {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 54px;
    padding: 8px 4px;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
  }

  .app-bottom-nav-item span {
    font-size: 12px;
  }

  .app-bottom-nav-item small {
    font-size: 10px;
    color: inherit;
  }

  .app-bottom-nav-item.active {
    color: var(--primary-strong);
    background: rgba(31, 138, 76, 0.1);
  }
}

@media (max-width: 640px) {
  .app-notice-copy strong {
    font-size: 15px;
  }

  .hero-inline-metric,
  .setup-state-card,
  .elevated-card,
  .action-link-card {
    padding: 16px;
  }

  .workspace-hero-copy h1,
  .compact-head h2,
  .section-head h2 {
    font-size: 28px;
  }

  .connection-state-head,
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 6px;
    padding: 8px;
  }

  .app-bottom-nav-item {
    min-height: 52px;
    padding: 8px 2px;
  }
}

.products-workspace {
  gap: 8px;
}

.products-page .workspace-section-tight {
  padding-top: 4px;
  padding-bottom: 4px;
}

.products-topbar {
  padding-bottom: 8px;
}

.products-control-bar {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 24px;
}

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

.products-workspace-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.products-workspace-copy h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.products-workspace-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.products-filter-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(247, 250, 247, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.products-filter-shortcut:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(31, 138, 76, 0.14);
  box-shadow: 0 10px 22px rgba(17, 32, 22, 0.05);
  transform: translateY(-1px);
}

.products-filter-shortcut:focus-visible {
  outline: 0;
  border-color: rgba(31, 138, 76, 0.24);
  box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.12);
}

.products-control-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: 10px;
  align-items: center;
}

.products-search,
.products-period-note {
  gap: 5px;
}

.products-search-field {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: linear-gradient(180deg, #fcfdfc 0%, #f4f8f4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(17, 32, 22, 0.03);
}

.products-period-note {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: linear-gradient(180deg, #fcfdfc 0%, #f4f8f4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.products-period-note strong {
  font-size: 13px;
}

.products-period-note small {
  font-size: 11px;
  line-height: 1.4;
}

.products-view-tabs,
.products-filter-chips {
  gap: 8px;
}

.products-view-tabs {
  width: fit-content;
  margin-top: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(247, 250, 247, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.products-view-tabs .app-segment {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(19, 33, 24, 0.62);
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.products-view-tabs .app-segment:hover {
  color: var(--ink);
}

.products-view-tabs .app-segment.active {
  color: var(--primary-strong);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 32, 22, 0.06);
}

.products-filter-chips {
  margin-top: 0;
}

.products-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 22, 0.05);
  background: rgba(247, 250, 247, 0.96);
  color: rgba(19, 33, 24, 0.68);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.products-filter-chip:hover {
  border-color: rgba(31, 138, 76, 0.12);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
}

.products-filter-chip.active {
  color: var(--primary-strong);
  border-color: rgba(31, 138, 76, 0.12);
  background: rgba(31, 138, 76, 0.11);
  box-shadow: none;
}

.products-table-meta {
  margin: 8px 0 12px;
}

/* Emergency table layout restore: products */
.products-page .products-table-card {
  overflow: hidden;
}

.products-page .products-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.products-page #products-table-rows {
  display: grid;
  gap: 8px;
}

.products-page .products-table-head,
.products-page .products-table-row {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.8fr)
    minmax(82px, 0.65fr)
    minmax(96px, 0.75fr)
    minmax(78px, 0.6fr)
    minmax(54px, 0.45fr)
    minmax(62px, 0.5fr)
    minmax(86px, 0.65fr)
    minmax(105px, 0.75fr)
    minmax(115px, 0.85fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.products-page .products-table-head {
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.products-page .products-table-row {
  padding: 12px 14px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  border-radius: 18px;
  background: rgba(248, 251, 248, 0.92);
  font-size: 13px;
}

.products-page .products-table-row > span,
.products-page .products-table-row > div,
.products-page .products-table-head > span {
  min-width: 0;
  overflow: hidden;
}

.products-page .products-table-row > span:not(:first-child),
.products-page .products-table-row > div:not(:first-child),
.products-page .products-table-head > span:not(:first-child) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.products-page .products-table-row > span:first-child {
  white-space: normal;
}

.products-page .product-cell {
  min-width: 0;
}

.products-page .product-main,
.products-page .product-title,
.products-page .product-sku {
  min-width: 0;
}

.products-page .product-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.products-page .product-copy {
  min-width: 0;
}

.products-page .product-copy small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-page .product-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-page,
.products-page .app-shell,
.products-page .app-main,
.products-page .app-workspace {
  overflow-x: clip;
}

@media (max-width: 900px) {
  .products-page .products-table {
    overflow-x: auto;
  }

  .products-page .products-table-head,
  .products-page .products-table-row {
    min-width: 980px;
  }
}

/* Emergency table layout restore: ads */
.ads-page .ads-campaigns-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.ads-page .ads-campaigns-table-inner {
  width: 100%;
  min-width: 0;
}

.ads-page .ads-campaigns-head,
.ads-page .ads-campaign-row {
  display: grid;
  grid-template-columns:
    minmax(160px, 1.45fr)
    minmax(78px, 0.72fr)
    minmax(84px, 0.76fr)
    minmax(74px, 0.68fr)
    minmax(66px, 0.58fr)
    minmax(102px, 0.9fr)
    minmax(112px, 0.96fr)
    minmax(92px, 0.82fr)
    minmax(82px, 0.7fr)
    minmax(118px, 1.02fr)
    48px
  ;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.ads-page .ads-campaigns-head {
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ads-page .ads-campaign-row {
  padding: 10px 14px;
  font-size: 13px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.ads-page .ads-campaign-rows {
  display: grid;
  gap: 8px;
}

.ads-page .ads-campaign-cell,
.ads-page .ads-campaigns-head > span {
  min-width: 0;
}

.ads-page .ads-campaign-cell:not(:first-child),
.ads-page .ads-campaigns-head > span:not(:first-child) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ads-page .ads-campaign-cell:nth-child(9),
.ads-page .ads-campaign-cell:nth-child(10),
.ads-page .ads-campaigns-head > span:nth-child(9),
.ads-page .ads-campaigns-head > span:nth-child(10) {
  display: none;
}

.ads-page .ads-campaign-cell:nth-child(10),
.ads-page .ads-campaigns-head > span:nth-child(10) {
  white-space: normal;
}

.ads-page .ads-campaign-cell:first-child {
  white-space: normal;
}

.ads-page .ads-campaign-name-button {
  display: -webkit-box;
  max-width: 100%;
  width: 100%;
  color: var(--primary-strong);
  text-decoration: none;
}

.ads-page .ads-campaign-name-button:hover {
  color: #176a3b;
}

.ads-page .ads-campaign-primary,
.ads-page .ads-campaign-name-button {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1480px) {
  .ads-page .ads-campaigns-table {
    overflow-x: auto;
  }

  .ads-page .ads-campaigns-table-inner {
    width: max-content;
    min-width: 1280px;
  }

  .ads-page .ads-campaigns-head,
  .ads-page .ads-campaign-row {
    min-width: 1280px;
  }
}

.ads-page .ads-campaigns-card {
  overflow: hidden;
}

.ads-page,
.ads-page .app-main,
.ads-page .app-workspace {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 980px) {
  .products-workspace-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-filter-shortcut {
    min-height: 36px;
  }
}

@media (max-width: 640px) {
  .products-control-bar {
    padding: 14px;
    gap: 10px;
  }

  .products-workspace-copy h1 {
    font-size: 24px;
  }

  .products-workspace-copy p {
    font-size: 12px;
  }

  .products-view-tabs {
    width: 100%;
  }

  .products-view-tabs .app-segment {
    flex: 1 1 auto;
  }
}

/* Premium detail UX polish: ads + products */
.ads-page .ads-campaigns-card {
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(13, 22, 15, 0.06);
}

.ads-page .ads-campaigns-table {
  padding-bottom: 10px;
}

.ads-page .ads-campaign-row {
  position: relative;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.ads-page .ads-campaign-row:hover,
.ads-page .ads-campaign-row:focus-visible {
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98) 0%, rgba(242, 249, 244, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 138, 76, 0.1), 0 12px 28px rgba(18, 31, 21, 0.06);
  transform: translateY(-1px);
}

.ads-page .ads-campaign-row.is-active,
.ads-page .ads-campaign-row.is-selected {
  background: linear-gradient(180deg, rgba(244, 251, 246, 1) 0%, rgba(238, 248, 241, 1) 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 138, 76, 0.16), 0 18px 34px rgba(20, 34, 23, 0.08);
}

.ads-page .ads-campaign-row.is-active::before,
.ads-page .ads-campaign-row.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 138, 76, 0.95) 0%, rgba(64, 181, 110, 0.95) 100%);
}

.ads-page .ads-campaign-cell {
  min-width: 0;
  line-height: 1.35;
}

.ads-page .ads-campaign-name-button {
  position: relative;
  color: var(--primary-strong);
  font-weight: 800;
  transition: color 0.18s ease;
}

.ads-page .ads-campaign-name-button:hover,
.ads-page .ads-campaign-name-button:focus-visible {
  color: #146336;
}

.ads-page .ads-campaign-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.ads-page .ads-row-affordance {
  display: inline-flex;
  margin-top: 6px;
  color: rgba(20, 99, 54, 0.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ads-page .ads-campaign-quick-button {
  opacity: 0.56;
  filter: saturate(0.8);
}

.ads-page .ads-detail-screen-body {
  gap: 24px;
  padding: 32px;
}

.ads-page .ads-detail-surface {
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 248, 0.99) 100%);
  border: 1px solid rgba(20, 34, 23, 0.08);
  box-shadow: 0 28px 64px rgba(14, 24, 17, 0.08);
}

.ads-page .ads-detail-breadcrumb {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 18px;
  margin: -4px -4px 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.ads-page .ads-detail-back-button {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  border-color: rgba(31, 138, 76, 0.12);
  background: rgba(247, 251, 248, 0.92);
  color: var(--primary-strong);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 26, 18, 0.06);
}

.ads-page .ads-detail-hero {
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(242, 249, 244, 0.96) 0%, rgba(255, 255, 255, 0.98) 45%, rgba(246, 251, 247, 0.96) 100%);
  border: 1px solid rgba(31, 138, 76, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 18px 38px rgba(17, 28, 19, 0.05);
}

.ads-page .ads-detail-title-block p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.ads-page .ads-detail-tabs {
  padding: 6px;
  border-radius: 999px;
  background: rgba(244, 248, 245, 0.94);
  border: 1px solid rgba(17, 32, 22, 0.06);
  width: fit-content;
  max-width: 100%;
}

.ads-page .ads-detail-tab {
  min-height: 40px;
  padding: 0 16px;
}

.ads-page .ads-detail-tab-panel {
  gap: 20px;
}

.ads-page .ads-detail-metric,
.ads-page .ads-detail-summary-strip .products-detail-metric {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ads-page .ads-detail-history,
.ads-page .ads-detail-products {
  min-width: 0;
}

.ads-page .ads-empty-state,
.ads-page .ads-detail-chart-empty {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(251, 253, 251, 0.98) 0%, rgba(243, 247, 244, 0.98) 100%);
  border: 1px dashed rgba(19, 33, 24, 0.14);
}

.products-page .products-detail-drawer {
  backdrop-filter: blur(4px);
}

.products-page #products-detail-backdrop,
.products-page .products-drawer-backdrop {
  background: rgba(11, 18, 13, 0.34);
  backdrop-filter: blur(10px);
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease,
    backdrop-filter 0.24s ease;
}

.products-page .products-detail-drawer.is-open {
  filter: drop-shadow(0 22px 44px rgba(10, 18, 12, 0.12));
}

.products-page .products-detail-shell {
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(31, 138, 76, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(247, 251, 248, 0.985) 100%);
  border: 1px solid rgba(18, 31, 21, 0.08);
  box-shadow: 0 34px 72px rgba(10, 19, 13, 0.22);
  transform: translateX(30px) scale(0.992);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    box-shadow 0.24s ease;
  backdrop-filter: blur(18px);
}

.products-page .products-detail-drawer.is-open .products-detail-shell {
  transform: translateX(0) scale(1);
}

.products-page .products-detail-head {
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(248, 251, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.products-page .products-detail-body {
  padding: 18px 18px 24px;
}

/* Ads v15 page scaffold */
.ads-v15-page {
  background:
    radial-gradient(circle at 78% 8%, rgba(210, 238, 219, 0.62), transparent 30%),
    linear-gradient(135deg, #f7faf5 0%, #eef5ef 100%);
  font-family: "Inter", "Manrope", sans-serif;
}

.ads-v15-main {
  background: transparent;
}

.ads-v15-topbar {
  min-height: 104px;
  align-items: center;
  border-bottom: 1px solid rgba(22, 48, 32, 0.07);
  background: rgba(248, 251, 247, 0.86);
  backdrop-filter: blur(18px);
}

.ads-v15-workspace {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.ads-v15-status-line {
  display: flex;
  justify-content: flex-end;
}

.ads-v15-overview,
.ads-v15-campaign-card,
.ads-v15-detail-shell,
.ads-v15-info-strip article {
  border: 1px solid rgba(25, 54, 34, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(18, 38, 25, 0.09);
}

.ads-v15-overview {
  padding: 22px;
}

.ads-v15-page-head,
.ads-v15-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ads-v15-page-head h1,
.ads-v15-card-head h2 {
  margin: 4px 0 6px;
  color: #132018;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ads-v15-card-head h2 {
  font-size: 25px;
}

.ads-v15-page-head p,
.ads-v15-card-head p,
.ads-v15-head-note span {
  margin: 0;
  color: #607066;
  font-size: 14px;
  line-height: 1.45;
}

.ads-v15-head-note {
  max-width: 310px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 138, 76, 0.14);
  border-radius: 20px;
  background: rgba(237, 248, 241, 0.78);
}

.ads-v15-head-note strong {
  display: block;
  margin-bottom: 5px;
  color: #176b43;
}

.ads-v15-layer-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.ads-v15-layer-title span {
  color: #14241a;
  font-size: 16px;
  font-weight: 800;
}

.ads-v15-layer-title small {
  color: #718178;
  font-size: 12px;
}

.ads-v15-kpi-grid,
.ads-v15-marketing-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ads-v15-kpi,
.ads-v15-marketing-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(19, 48, 31, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 248, 0.9));
  box-shadow: 0 12px 30px rgba(22, 48, 32, 0.06);
}

.ads-v15-kpi.main {
  background: linear-gradient(135deg, #1f8a4c, #176b43);
  color: #fff;
}

.ads-v15-kpi span,
.ads-v15-marketing-grid span {
  display: block;
  color: #66766d;
  font-size: 12px;
  font-weight: 750;
}

.ads-v15-kpi.main span,
.ads-v15-kpi.main small {
  color: rgba(255, 255, 255, 0.78);
}

.ads-v15-kpi strong,
.ads-v15-marketing-grid strong {
  display: block;
  margin-top: 10px;
  color: #111d16;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.ads-v15-kpi.main strong {
  color: #fff;
}

.ads-v15-kpi small {
  display: block;
  margin-top: 9px;
  color: #7c8b82;
  font-size: 12px;
}

.ads-v15-info-strip article {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(237, 248, 241, 0.9), rgba(255, 250, 239, 0.78));
}

.ads-v15-info-strip strong {
  display: block;
  margin-bottom: 5px;
  color: #173622;
}

.ads-v15-info-strip p {
  margin: 0;
  color: #607066;
}

.ads-v15-campaign-card {
  padding: 20px;
}

.ads-v15-table-meta {
  margin-bottom: 12px;
  color: #65766d;
  font-size: 13px;
}

.ads-v15-campaign-table {
  overflow-x: auto;
  border-radius: 22px;
  background: #fff;
}

.ads-v15-campaign-table .ads-campaigns-table-inner {
  min-width: 1500px;
}

.ads-v15-campaign-table .ads-campaigns-head,
.ads-v15-campaign-table .ads-campaign-row {
  grid-template-columns: 2.1fr repeat(14, minmax(92px, 1fr));
}

.ads-v15-campaign-table .ads-campaign-row {
  border-radius: 16px;
}

.ads-v15-detail-screen {
  display: block;
}

.ads-v15-detail-screen[hidden] {
  display: none !important;
}

.ads-v15-detail-section {
  margin: 0;
}

.ads-v15-detail-shell {
  padding: 22px;
}

.ads-v15-detail-body .ads-detail-breadcrumb {
  margin-bottom: 14px;
}

.ads-v15-detail-body .ads-detail-hero {
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(244, 250, 245, 0.95), rgba(255, 255, 255, 0.9));
}

.ads-v15-detail-body .ads-detail-kpi-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ads-v15-detail-body .ads-detail-overview-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}

@media (max-width: 1500px) {
  .ads-v15-kpi-grid,
  .ads-v15-marketing-grid,
  .ads-v15-detail-body .ads-detail-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .ads-v15-page-head,
  .ads-v15-card-head {
    flex-direction: column;
  }

  .ads-v15-detail-body .ads-detail-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ads-v15-kpi-grid,
  .ads-v15-marketing-grid,
  .ads-v15-detail-body .ads-detail-kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* Ads v15 live detail layer */
.ads-page .ads-detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ads-page .card-chip.is-warning {
  background: #fff3d6;
  color: #9b5b08;
}

.ads-page .ads-detail-summary-strip,
.ads-page .ads-detail-marketing-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ads-page .ads-detail-marketing-strip {
  margin-top: 12px;
}

.ads-page .products-detail-metric {
  position: relative;
  min-width: 0;
}

.ads-page .metric-info {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(31, 138, 76, 0.22);
  border-radius: 999px;
  background: rgba(239, 248, 241, 0.92);
  color: #1f8a4c;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  cursor: help;
}

.ads-page .metric-info::after {
  position: absolute;
  right: -4px;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(21, 36, 28, 0.14);
  color: #26362d;
  content: attr(data-tip);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ads-page .metric-info:hover::after,
.ads-page .metric-info:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.ads-page .ads-history-table {
  min-width: 1120px;
}

.ads-page .ads-history-head,
.ads-page .ads-history-row {
  grid-template-columns: 1.35fr repeat(12, minmax(92px, 1fr));
}

.ads-page .ads-history-row em {
  display: inline-flex;
  margin-left: 5px;
  color: #a06a14;
  font-size: 11px;
  font-style: normal;
}

.ads-page .ads-detail-products-table {
  min-width: 1280px;
}

.ads-page .ads-detail-products-head,
.ads-page .ads-detail-products-row {
  grid-template-columns: 2fr repeat(15, minmax(86px, 1fr));
}

.ads-page button.ads-detail-products-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.ads-page .ads-detail-products-row.is-selected {
  background: rgba(31, 138, 76, 0.08);
  box-shadow: inset 3px 0 0 #1f8a4c;
}

@media (max-width: 1500px) {
  .ads-page .ads-detail-summary-strip,
  .ads-page .ads-detail-marketing-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ads-page .ads-detail-summary-strip,
  .ads-page .ads-detail-marketing-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-page {
  background:
    radial-gradient(circle at 76% 5%, rgba(31, 138, 76, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
}

.dashboard-page .app-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 249, 245, 0.58) 100%),
    radial-gradient(circle at 92% 12%, rgba(31, 138, 76, 0.07), transparent 26%);
}

.dashboard-page .app-topbar {
  align-items: stretch;
  gap: 18px;
  padding: 20px 28px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(17, 32, 22, 0.06);
  backdrop-filter: blur(20px);
}

.dashboard-page .app-control,
.dashboard-page .dashboard-period-trigger,
.dashboard-page .dashboard-period-segments,
.dashboard-page .app-shell-link {
  border-color: rgba(17, 32, 22, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-period-bar {
  gap: 14px;
}

.dashboard-page .dashboard-period-trigger {
  min-width: 282px;
  border-radius: 24px;
}

.dashboard-page .dashboard-period-segments {
  min-height: 58px;
  padding: 7px;
  border-radius: 22px;
}

.dashboard-page .app-segment {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 15px;
  font-weight: 800;
}

.dashboard-page .app-segment.active {
  background: linear-gradient(180deg, rgba(226, 243, 233, 0.98) 0%, rgba(205, 231, 216, 0.98) 100%);
  color: var(--primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 22px rgba(31, 138, 76, 0.12);
}

.dashboard-page .dashboard-refresh-actions .app-shell-link[href="products.html"] {
  background: linear-gradient(180deg, #1f9b58 0%, #11723d 100%);
  color: #fff;
  border-color: rgba(17, 114, 61, 0.24);
  box-shadow: 0 16px 32px rgba(17, 114, 61, 0.22);
}

.dashboard-page .dashboard-workspace {
  gap: 18px;
  padding: 22px 28px 32px;
}

.dashboard-page .workspace-section {
  margin: 0;
}

.dashboard-page .dashboard-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-page .dashboard-kpi {
  position: relative;
  min-height: 138px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 80%, rgba(31, 138, 76, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.98) 100%);
  border: 1px solid rgba(17, 32, 22, 0.075);
  box-shadow: 0 20px 42px rgba(17, 32, 22, 0.07);
  overflow: hidden;
}

.dashboard-page .dashboard-kpi::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(225, 242, 232, 0.98), rgba(202, 229, 213, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-page .dashboard-kpi-top {
  padding-left: 44px;
}

.dashboard-page .dashboard-kpi span {
  font-size: 12px;
  color: rgba(17, 32, 22, 0.62);
}

.dashboard-page .dashboard-kpi strong {
  margin-top: 16px;
  font-size: clamp(23px, 1.55vw, 30px);
}

.dashboard-page .dashboard-kpi small {
  font-size: 11px;
}

.dashboard-page .dashboard-kpi em {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.36;
}

.dashboard-page .dashboard-kpi-body {
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
}

.dashboard-page .dashboard-kpi-sparkline,
.dashboard-page .dashboard-kpi-sparkline-svg {
  min-height: 28px;
  height: 28px;
}

.dashboard-page .dashboard-kpi-sparkline-line {
  stroke-width: 1.5;
  opacity: 0.86;
}

.dashboard-page .dashboard-kpi-sparkline-svg.is-margin .dashboard-kpi-sparkline-line,
.dashboard-page .dashboard-kpi-sparkline-svg.is-margin .dashboard-kpi-sparkline-dot {
  stroke: #f08a24;
  fill: #f08a24;
}

.dashboard-page .dashboard-kpi-sparkline-svg.is-ads .dashboard-kpi-sparkline-line,
.dashboard-page .dashboard-kpi-sparkline-svg.is-ads .dashboard-kpi-sparkline-dot {
  stroke: #1f8a4c;
  fill: #1f8a4c;
}

.dashboard-page .dashboard-kpi-sparkline-svg.is-ads .dashboard-kpi-sparkline-area {
  fill: rgba(31, 138, 76, 0.14);
}

.dashboard-page .dashboard-chart-surface {
  padding: 22px 24px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 32, 22, 0.075);
  box-shadow: 0 24px 54px rgba(17, 32, 22, 0.08);
}

.dashboard-page .dashboard-chart-headline {
  align-items: center;
}

.dashboard-page .dashboard-chart-headline h2 {
  margin: 3px 0 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.dashboard-page .dashboard-chart-period-note {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.98), rgba(242, 248, 244, 0.98));
}

.dashboard-page .dashboard-chart-topline {
  margin: 14px 0 12px;
  align-items: stretch;
}

.dashboard-page .dashboard-legend-item,
.dashboard-page .dashboard-chart-summary span {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 32, 22, 0.08);
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.04);
}

.dashboard-page .dashboard-chart-summary {
  justify-content: flex-end;
}

.dashboard-page .dashboard-mixed-chart {
  min-height: 334px;
  padding: 14px 16px 12px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 247, 0.94)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 62px, rgba(17, 32, 22, 0.045) 63px);
  border: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-page .dashboard-line-chart-svg {
  height: 258px;
}

.dashboard-page .dashboard-line-chart-grid span {
  border-color: rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-line-chart-path.revenue {
  stroke-width: 2.65;
}

.dashboard-page .dashboard-line-chart-path.profit {
  stroke-width: 2.05;
  opacity: 0.78;
}

.dashboard-page .dashboard-line-chart-path.drr {
  stroke-width: 1.55;
  opacity: 0.62;
}

.dashboard-page .dashboard-line-chart-point {
  opacity: 0.68;
  stroke-width: 1.4;
}

.dashboard-page .dashboard-chart-tooltip {
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(17, 32, 22, 0.16);
}

.dashboard-page .dashboard-cost-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(17, 32, 22, 0.07);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.dashboard-page .dashboard-cost-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-page .dashboard-cost-item:last-child {
  border-right: 0;
}

.dashboard-page .dashboard-cost-item span,
.dashboard-page .dashboard-cost-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .dashboard-cost-item strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dashboard-page .dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 18px;
}

.dashboard-page .dashboard-preview-card,
.dashboard-page .dashboard-side-card {
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 32, 22, 0.075);
  box-shadow: 0 22px 48px rgba(17, 32, 22, 0.075);
}

.dashboard-page .dashboard-signals-grid {
  gap: 14px;
}

.dashboard-page .dashboard-signal-card {
  min-height: 214px;
  padding: 16px;
  border-radius: 24px;
}

.dashboard-page .dashboard-signal-thumb {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.dashboard-page .dashboard-signal-metric strong {
  font-size: 28px;
}

.dashboard-page .dashboard-signal-action {
  min-height: 38px;
  padding-inline: 14px;
}

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

.dashboard-page .dashboard-ads-metric {
  min-height: 116px;
  padding: 17px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 84%, rgba(31, 138, 76, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f5faf6 100%);
}

.dashboard-page .dashboard-ads-metric strong {
  font-size: 28px;
}

@media (max-width: 1380px) {
  .dashboard-page .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .dashboard-page .app-topbar,
  .dashboard-page .dashboard-workspace {
    padding-inline: 16px;
  }

  .dashboard-page .dashboard-kpis,
  .dashboard-page .dashboard-cost-strip,
  .dashboard-page .dashboard-ads-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-cost-item {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 32, 22, 0.07);
  }

  .dashboard-page .dashboard-cost-item:last-child {
    border-bottom: 0;
  }
}

/* Dashboard reference-match rebuild */
.dashboard-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(98, 207, 143, 0.12), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(31, 138, 76, 0.09), transparent 24%),
    linear-gradient(180deg, #f8fbf7 0%, #f2f7f2 100%);
}

.dashboard-page .app-shell {
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
  background: transparent;
}

.dashboard-page .app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 24px 22px 28px;
  background: rgba(251, 253, 250, 0.94);
  border-right: 1px solid rgba(17, 32, 22, 0.06);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.7),
    24px 0 56px rgba(20, 38, 26, 0.045);
}

.dashboard-page .dashboard-sidebar-top {
  display: grid;
  gap: 28px;
}

.dashboard-page .dashboard-sidebar-stack {
  margin-top: auto;
  display: grid;
  gap: 16px;
}

.dashboard-page .dashboard-brand {
  align-items: flex-start;
  gap: 14px;
}

.dashboard-page .dashboard-brand .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 18px;
  letter-spacing: -0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 32px rgba(31, 138, 76, 0.22);
}

.dashboard-page .dashboard-brand .brand-text {
  gap: 6px;
}

.dashboard-page .dashboard-brand .brand-text strong {
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.dashboard-page .dashboard-brand .brand-text small {
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-page .app-nav-item {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 18px;
  color: rgba(17, 32, 22, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-page .app-nav-item:hover {
  transform: none;
  background: rgba(31, 138, 76, 0.065);
}

.dashboard-page .app-nav-item.active {
  background: linear-gradient(180deg, rgba(223, 242, 228, 0.95) 0%, rgba(235, 247, 239, 0.95) 100%);
  border-color: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dashboard-page .app-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(17, 32, 22, 0.04);
  color: rgba(17, 32, 22, 0.62);
}

.dashboard-page .app-nav-item.active .app-nav-icon {
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.dashboard-page .app-nav-icon svg {
  width: 19px;
  height: 19px;
}

.dashboard-page .dashboard-sidebar-status {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 247, 0.96) 100%);
  border: 1px solid rgba(17, 32, 22, 0.06);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-sidebar-status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-page .dashboard-sidebar-status small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .dashboard-sidebar-status-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(224, 243, 230, 0.98), rgba(209, 235, 218, 0.92));
  color: var(--primary-strong);
}

.dashboard-page .dashboard-sidebar-status-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-page .app-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 138, 76, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(245, 249, 245, 0.4) 100%);
}

.dashboard-page .app-topbar {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px 10px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.dashboard-page .dashboard-topbar-primary {
  flex: 1;
  min-width: 0;
  gap: 14px;
  align-items: flex-start;
}

.dashboard-page .dashboard-period-filter {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.dashboard-page .dashboard-period-bar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.dashboard-page .dashboard-store-card,
.dashboard-page .dashboard-period-card {
  min-height: 86px;
  min-width: 0;
  padding: 14px 16px;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 32, 22, 0.06);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-store-card {
  width: 218px;
  flex: 0 0 218px;
}

.dashboard-page .dashboard-period-card {
  width: 286px;
  flex: 0 0 286px;
}

.dashboard-page .dashboard-control-icon,
.dashboard-page .dashboard-button-icon {
  display: grid;
  place-items: center;
}

.dashboard-page .dashboard-control-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(235, 246, 238, 0.98), rgba(224, 241, 230, 0.94));
  color: var(--primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dashboard-page .dashboard-control-icon svg,
.dashboard-page .dashboard-control-caret svg,
.dashboard-page .dashboard-button-icon svg {
  width: 19px;
  height: 19px;
}

.dashboard-page .dashboard-control-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-page .dashboard-control-copy strong {
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .dashboard-control-copy small {
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-page .dashboard-control-caret {
  color: rgba(17, 32, 22, 0.52);
}

.dashboard-page .dashboard-period-segments {
  flex: 1;
  min-width: 0;
  min-height: 86px;
  padding: 6px;
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}

.dashboard-page .dashboard-period-segments::-webkit-scrollbar {
  display: none;
}

.dashboard-page .dashboard-period-segments .app-segment {
  flex: 0 0 auto;
  min-height: 72px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-page .dashboard-period-segments .app-segment.active {
  background: linear-gradient(180deg, rgba(224, 243, 229, 0.98) 0%, rgba(213, 237, 220, 0.96) 100%);
  color: var(--primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dashboard-page .dashboard-custom-range-panel {
  max-width: 660px;
  margin-top: 2px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(17, 32, 22, 0.08);
}

.dashboard-page .dashboard-refresh-actions {
  width: 210px;
  flex: 0 0 210px;
  display: grid;
  gap: 10px;
}

.dashboard-page .dashboard-action-button {
  min-height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-action-button-primary {
  background: linear-gradient(180deg, #27a15c 0%, #177a43 100%);
  color: #fff;
  border-color: rgba(23, 122, 67, 0.22);
  box-shadow: 0 16px 30px rgba(23, 122, 67, 0.24);
}

.dashboard-page .dashboard-action-button-primary:hover {
  color: #fff;
}

.dashboard-page .dashboard-action-button .dashboard-button-icon {
  width: 18px;
  height: 18px;
}

.dashboard-page .dashboard-refresh-status {
  min-height: 18px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.dashboard-page .dashboard-workspace {
  gap: 16px;
  padding: 10px 26px 26px;
}

.dashboard-page .workspace-section,
.dashboard-page .workspace-section-tight {
  padding: 0;
}

.dashboard-page .dashboard-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .dashboard-kpi {
  min-height: 120px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  border: 1px solid rgba(17, 32, 22, 0.055);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-kpi-top {
  margin-bottom: 10px;
}

.dashboard-page .dashboard-kpi-top > span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(17, 32, 22, 0.82);
}

.dashboard-page .kpi-tone {
  padding: 6px 10px;
  font-size: 10px;
}

.dashboard-page .dashboard-kpi-body {
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: end;
}

.dashboard-page .dashboard-kpi strong {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.dashboard-page .dashboard-kpi small {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.dashboard-page .dashboard-kpi em {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(95, 111, 100, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .dashboard-kpi-sparkline {
  min-height: 28px;
}

.dashboard-page .dashboard-kpi-sparkline-svg,
.dashboard-page .dashboard-kpi-sparkline-empty {
  height: 28px;
}

.dashboard-kpi-sparkline-svg.is-margin .dashboard-kpi-sparkline-line,
.dashboard-kpi-sparkline-svg.is-margin .dashboard-kpi-sparkline-dot {
  stroke: #ff8f3b;
  fill: #ff8f3b;
}

.dashboard-kpi-sparkline-svg.is-margin .dashboard-kpi-sparkline-area {
  fill: rgba(255, 143, 59, 0.14);
}

.dashboard-kpi-sparkline-svg.is-roi .dashboard-kpi-sparkline-line,
.dashboard-kpi-sparkline-svg.is-roi .dashboard-kpi-sparkline-dot {
  stroke: #2b9d67;
  fill: #2b9d67;
}

.dashboard-kpi-sparkline-svg.is-roi .dashboard-kpi-sparkline-area {
  fill: rgba(43, 157, 103, 0.12);
}

.dashboard-page .dashboard-chart-surface {
  padding: 20px 20px 18px;
  border-radius: 28px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 249, 0.98) 100%);
  box-shadow: 0 20px 48px rgba(17, 32, 22, 0.075);
}

.dashboard-page .dashboard-chart-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.dashboard-page .dashboard-chart-titleblock {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.dashboard-page .dashboard-chart-titlecopy {
  display: grid;
  gap: 5px;
}

.dashboard-page .dashboard-section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  color: rgba(17, 32, 22, 0.5);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-page .dashboard-chart-titlecopy h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.dashboard-page .dashboard-chart-period-meta {
  display: grid;
  gap: 2px;
}

.dashboard-page .dashboard-chart-period-meta strong {
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-page .dashboard-chart-period-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .dashboard-chart-legend {
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.dashboard-page .dashboard-chart-legend::-webkit-scrollbar {
  display: none;
}

.dashboard-page .dashboard-legend-item {
  position: relative;
  min-height: 34px;
  padding: 7px 14px 7px 36px;
  border-radius: 14px;
  background: rgba(249, 251, 249, 0.95);
  border-color: rgba(17, 32, 22, 0.06);
  color: rgba(17, 32, 22, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-page .dashboard-legend-item::before {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.dashboard-page .dashboard-legend-item.revenue::before {
  background: linear-gradient(180deg, #5fca8a 0%, #228b51 100%);
}

.dashboard-page .dashboard-legend-item.profit::before {
  background: linear-gradient(180deg, #d7eedf 0%, #7aac89 100%);
}

.dashboard-page .dashboard-legend-item.drr::before {
  background: linear-gradient(180deg, #9ec4ff 0%, #5e95f6 100%);
}

.dashboard-page .dashboard-chart-summary {
  min-width: 560px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(17, 32, 22, 0.045);
}

.dashboard-page .dashboard-chart-summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-right: 1px solid rgba(17, 32, 22, 0.06);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}

.dashboard-page .dashboard-chart-summary span:first-child {
  display: none;
}

.dashboard-page .dashboard-chart-summary span:last-child {
  border-right: 0;
}

.dashboard-page .dashboard-chart-summary strong {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dashboard-page .dashboard-mixed-chart {
  min-height: 340px;
  margin-top: 16px;
  padding: 14px 16px 12px;
  border-radius: 26px;
  border: 1px solid rgba(17, 32, 22, 0.05);
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 138, 76, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(252, 253, 252, 1) 0%, rgba(246, 250, 247, 1) 100%);
}

.dashboard-page .dashboard-line-chart-shell {
  gap: 8px;
}

.dashboard-page .dashboard-line-chart-grid {
  inset: 18px 12px 52px;
}

.dashboard-page .dashboard-line-chart-grid span {
  border-top-color: rgba(17, 32, 22, 0.045);
}

.dashboard-page .dashboard-line-chart-svg {
  height: 286px;
}

.dashboard-page .dashboard-line-chart-area {
  opacity: 0.42;
}

.dashboard-page .dashboard-line-chart-path.revenue {
  stroke-width: 2.45;
}

.dashboard-page .dashboard-line-chart-path.profit {
  stroke: #8bc098;
  stroke-width: 1.95;
  opacity: 0.9;
}

.dashboard-page .dashboard-line-chart-path.drr {
  stroke: #5e95f6;
  stroke-width: 2;
  stroke-dasharray: none;
  opacity: 0.95;
}

.dashboard-page .dashboard-line-chart-point {
  opacity: 0.9;
  stroke-width: 1.8;
}

.dashboard-page .dashboard-line-chart-point.profit {
  fill: #8bc098;
}

.dashboard-page .dashboard-line-chart-point.drr {
  fill: #5e95f6;
}

.dashboard-page .dashboard-line-chart-tick-label {
  fill: rgba(17, 32, 22, 0.36);
  font-size: 10px;
}

.dashboard-page .dashboard-line-chart-axis {
  gap: 8px;
  margin-top: 8px;
}

.dashboard-page .dashboard-line-chart-axis span {
  font-size: 10px;
}

.dashboard-page .dashboard-chart-hover-layer {
  height: 286px;
}

.dashboard-page .dashboard-chart-hover-line {
  stroke: rgba(17, 32, 22, 0.08);
}

.dashboard-page .dashboard-chart-hover-dot.profit {
  fill: #8bc098;
}

.dashboard-page .dashboard-chart-hover-dot.drr {
  fill: #5e95f6;
}

.dashboard-page .dashboard-chart-tooltip {
  width: 206px;
  padding: 13px 14px;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(17, 32, 22, 0.09);
}

.dashboard-page .dashboard-chart-tooltip-row .drr::before {
  background: #5e95f6;
}

.dashboard-page .dashboard-cost-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dashboard-page .dashboard-cost-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  border-radius: 22px;
  background: rgba(250, 252, 250, 0.96);
  box-shadow: 0 14px 28px rgba(17, 32, 22, 0.04);
}

.dashboard-page .dashboard-cost-item::before,
.dashboard-page .dashboard-cost-item::after {
  content: none;
}

.dashboard-page .dashboard-cost-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(224, 243, 230, 0.98), rgba(209, 235, 218, 0.92));
  color: var(--primary-strong);
}

.dashboard-page .dashboard-cost-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-page .dashboard-cost-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-page .dashboard-cost-copy span,
.dashboard-page .dashboard-cost-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .dashboard-cost-copy strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.dashboard-page .dashboard-cost-trace {
  height: 24px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(31, 138, 76, 0.16), rgba(31, 138, 76, 0.02)),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 16px,
      rgba(31, 138, 76, 0.18) 16px,
      rgba(31, 138, 76, 0.18) 17px
    );
  opacity: 0.9;
}

.dashboard-page .dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page .dashboard-preview-card,
.dashboard-page .dashboard-side-card {
  padding: 20px;
  border-radius: 28px;
  gap: 16px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.98) 100%);
  box-shadow: 0 20px 42px rgba(17, 32, 22, 0.065);
}

.dashboard-page .dashboard-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-page .dashboard-block-copy {
  display: grid;
  gap: 8px;
}

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

.dashboard-page .dashboard-block-title-row h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dashboard-page .dashboard-block-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(31, 138, 76, 0.08);
  color: var(--primary-strong);
}

.dashboard-page .dashboard-block-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-page .dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(221, 242, 228, 0.95);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-page .dashboard-preview-copy {
  margin: 0;
  max-width: 56ch;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-page .dashboard-inline-link {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

.dashboard-page .dashboard-inline-link:hover {
  color: var(--primary-strong);
}

.dashboard-page .dashboard-preview-status {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(221, 242, 228, 0.66);
  color: rgba(19, 44, 28, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .dashboard-preview-table {
  gap: 12px;
}

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

.dashboard-page .dashboard-signal-card {
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  box-shadow: none;
}

.dashboard-page .dashboard-signal-head {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
}

.dashboard-page .dashboard-signal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.dashboard-page .dashboard-signal-main strong {
  font-size: 15px;
  line-height: 1.35;
}

.dashboard-page .dashboard-signal-main span {
  font-size: 11px;
}

.dashboard-page .dashboard-signal-metric span {
  font-size: 11px;
}

.dashboard-page .dashboard-signal-metric strong {
  font-size: 21px;
}

.dashboard-page .dashboard-signal-meta small {
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .dashboard-signal-action {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
}

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

.dashboard-page .dashboard-ads-metric {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(17, 32, 22, 0.06);
  background: rgba(250, 252, 250, 0.96);
  box-shadow: 0 12px 24px rgba(17, 32, 22, 0.04);
  overflow: hidden;
}

.dashboard-page .dashboard-ads-metric::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 74px;
  height: 20px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(31, 138, 76, 0.18), rgba(31, 138, 76, 0.02)),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 14px,
      rgba(31, 138, 76, 0.16) 14px,
      rgba(31, 138, 76, 0.16) 15px
    );
}

.dashboard-page .dashboard-ads-metric span,
.dashboard-page .dashboard-ads-metric small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .dashboard-ads-metric strong {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

@media (max-width: 1460px) {
  .dashboard-page .dashboard-chart-summary {
    min-width: 480px;
  }
}

@media (max-width: 1320px) {
  .dashboard-page .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .dashboard-page .dashboard-topbar-primary {
    flex-wrap: wrap;
  }

  .dashboard-page .dashboard-period-filter {
    width: 100%;
  }

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

  .dashboard-page .dashboard-chart-header {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-chart-summary {
    min-width: 0;
    width: 100%;
  }

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

@media (max-width: 1100px) {
  .dashboard-page .app-topbar {
    flex-direction: column;
  }

  .dashboard-page .dashboard-refresh-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .dashboard-refresh-status {
    grid-column: 1 / -1;
  }

  .dashboard-page .dashboard-period-bar {
    flex-direction: column;
  }

  .dashboard-page .dashboard-store-card,
  .dashboard-page .dashboard-period-card {
    width: 100%;
    flex-basis: auto;
  }

  .dashboard-page .dashboard-chart-summary span {
    padding: 12px 14px;
  }
}

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

  .dashboard-page .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 300px);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    z-index: 80;
  }

  .dashboard-page .dashboard-topbar-primary {
    width: 100%;
  }

  .dashboard-page .app-mobile-toggle {
    display: inline-flex;
  }

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

  .dashboard-page .dashboard-cost-strip,
  .dashboard-page .dashboard-signals-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .dashboard-page .app-topbar,
  .dashboard-page .dashboard-workspace {
    padding-inline: 16px;
  }

  .dashboard-page .dashboard-refresh-actions,
  .dashboard-page .dashboard-ads-grid,
  .dashboard-page .dashboard-kpis,
  .dashboard-page .dashboard-cost-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-chart-summary {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-page .dashboard-chart-summary span {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 32, 22, 0.06);
  }

  .dashboard-page .dashboard-chart-summary span:last-child,
  .dashboard-page .dashboard-chart-summary span:nth-last-child(2) {
    border-bottom: 0;
  }

  .dashboard-page .dashboard-kpi {
    min-height: 110px;
  }

  .dashboard-page .dashboard-line-chart-svg,
  .dashboard-page .dashboard-chart-hover-layer {
    height: 252px;
  }

  .dashboard-page .dashboard-cost-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .dashboard-page .dashboard-cost-trace {
    grid-column: 1 / -1;
    margin-left: 60px;
  }
}

/* Final dashboard reference lock: this block intentionally wins over older dashboard overrides. */
.dashboard-page .app-sidebar {
  width: 304px;
  padding: 34px 24px 26px;
  background: linear-gradient(180deg, rgba(248, 253, 249, 0.96) 0%, rgba(240, 248, 243, 0.96) 100%);
  border-right: 1px solid rgba(30, 45, 36, 0.08);
}

.dashboard-page .app-nav {
  margin-top: 78px;
  gap: 16px;
}

.dashboard-page .app-nav-item {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  gap: 16px;
}

.dashboard-page .app-nav-item.active {
  background: linear-gradient(90deg, rgba(205, 232, 216, 0.96), rgba(225, 242, 232, 0.86));
  color: var(--primary-strong);
}

.dashboard-page .dashboard-sidebar-status {
  margin-top: auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 45, 36, 0.08);
  box-shadow: 0 10px 28px rgba(30, 45, 36, 0.055);
}

.dashboard-page .app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
  min-height: 126px;
  padding: 22px 32px 18px;
}

.dashboard-page .app-topbar-group:first-child,
.dashboard-page .dashboard-period-bar {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}

.dashboard-page .store-switcher,
.dashboard-page .dashboard-period-trigger {
  width: 250px;
  min-width: 250px;
  min-height: 78px;
  padding: 16px 20px;
  border-radius: 22px;
}

.dashboard-page .dashboard-period-segments {
  flex: 1;
  min-width: 520px;
  max-width: 640px;
  min-height: 58px;
  padding: 6px;
  border-radius: 18px;
}

.dashboard-page .dashboard-refresh-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.dashboard-page .dashboard-refresh-actions .app-shell-link {
  min-height: 46px;
  justify-content: center;
  border-radius: 14px;
}

.dashboard-page .dashboard-workspace {
  max-width: 1540px;
  margin: 0 auto;
  padding: 26px 32px 34px;
  gap: 18px;
}

.dashboard-page .dashboard-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-page .dashboard-kpi-revenue { order: 1; }
.dashboard-page .dashboard-kpi-profit { order: 2; }
.dashboard-page .dashboard-kpi-drr { order: 3; }
.dashboard-page .dashboard-kpi-margin { order: 4; }
.dashboard-page .dashboard-kpi-roi { order: 5; }
.dashboard-page .dashboard-kpi-orders { order: 6; }

.dashboard-page .dashboard-kpi {
  min-height: 142px;
  padding: 18px 18px 14px;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(30, 45, 36, 0.075);
}

.dashboard-page .dashboard-kpi-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.dashboard-page .dashboard-kpi strong {
  margin-top: 14px;
  font-size: clamp(24px, 1.55vw, 31px);
}

.dashboard-page .dashboard-kpi em {
  display: none;
}

.dashboard-page .dashboard-kpi-sparkline {
  justify-self: end;
  width: 92px;
  min-height: 24px;
}

.dashboard-page .dashboard-chart-surface,
.dashboard-page .dashboard-preview-card,
.dashboard-page .dashboard-side-card {
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(30, 45, 36, 0.075);
}

.dashboard-page .dashboard-chart-topline {
  display: grid;
  grid-template-columns: minmax(360px, auto) minmax(520px, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 12px;
}

.dashboard-page .dashboard-chart-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 45, 36, 0.08);
  border-radius: 18px;
}

.dashboard-page .dashboard-chart-summary span {
  min-height: 56px;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(30, 45, 36, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.dashboard-page .dashboard-mixed-chart {
  min-height: 286px;
  padding: 8px 16px;
  border: 0;
}

.dashboard-page .dashboard-line-chart-svg {
  height: 238px;
}

.dashboard-page .dashboard-cost-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border-radius: 18px;
}

.dashboard-page .dashboard-cost-item {
  grid-template-columns: 44px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 18px;
}

.dashboard-page .dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(520px, 0.82fr);
  gap: 18px;
}

.dashboard-page .dashboard-preview-copy,
.dashboard-page .dashboard-preview-status {
  display: none;
}

.dashboard-page .dashboard-signals-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-page .dashboard-signal-card {
  min-height: 238px;
  padding: 16px;
  border-radius: 18px;
}

.dashboard-page .dashboard-ads-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Dashboard reference-match pass: scoped to dashboard only. */
.dashboard-page {
  --dash-bg: #f7faf7;
  --dash-card: rgba(255, 255, 255, 0.94);
  --dash-line: rgba(30, 45, 36, 0.08);
  --dash-shadow: 0 18px 44px rgba(30, 45, 36, 0.075);
  --dash-shadow-soft: 0 10px 28px rgba(30, 45, 36, 0.055);
  background: var(--dash-bg);
}

.dashboard-page .app-shell {
  background:
    radial-gradient(circle at 78% 5%, rgba(31, 138, 76, 0.06), transparent 30%),
    linear-gradient(180deg, #fbfdfb 0%, #f4f8f5 100%);
}

.dashboard-page .app-sidebar {
  width: 304px;
  padding: 34px 24px 26px;
  background: linear-gradient(180deg, rgba(248, 253, 249, 0.96) 0%, rgba(240, 248, 243, 0.96) 100%);
  border-right: 1px solid rgba(30, 45, 36, 0.08);
  box-shadow: 18px 0 42px rgba(30, 45, 36, 0.035);
}

.dashboard-page .app-brand {
  align-items: flex-start;
  gap: 16px;
}

.dashboard-page .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 18px;
  box-shadow: 0 16px 28px rgba(17, 114, 61, 0.22);
}

.dashboard-page .brand-text strong {
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.dashboard-page .brand-text small {
  margin-top: 7px;
  max-width: 140px;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .app-nav {
  margin-top: 78px;
  gap: 16px;
}

.dashboard-page .app-nav-item {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  gap: 16px;
  color: #26362d;
  font-size: 15px;
  font-weight: 700;
}

.dashboard-page .app-nav-item.active {
  background: linear-gradient(90deg, rgba(205, 232, 216, 0.96), rgba(225, 242, 232, 0.86));
  color: var(--primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px rgba(31, 138, 76, 0.08);
}

.dashboard-page .app-nav-icon {
  width: 24px;
  color: currentColor;
  font-size: 20px;
  font-weight: 700;
  opacity: 0.88;
}

.dashboard-page .dashboard-sidebar-status {
  margin-top: auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 45, 36, 0.08);
  box-shadow: var(--dash-shadow-soft);
}

.dashboard-page .dashboard-sidebar-status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--primary-strong);
  background: linear-gradient(180deg, rgba(225, 242, 232, 0.98), rgba(205, 231, 216, 0.9));
}

.dashboard-page .dashboard-sidebar-status strong,
.dashboard-page .dashboard-sidebar-status small {
  display: block;
}

.dashboard-page .dashboard-sidebar-status strong {
  color: var(--ink);
  font-size: 13px;
}

.dashboard-page .dashboard-sidebar-status small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-page .app-sidebar-tools {
  display: none;
}

.dashboard-page .app-main {
  min-width: 0;
  background:
    radial-gradient(circle at 98% 0%, rgba(31, 138, 76, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, #f5f9f6 100%);
}

.dashboard-page .app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
  min-height: 126px;
  padding: 22px 32px 18px;
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(30, 45, 36, 0.07);
}

.dashboard-page .app-topbar-group:first-child {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}

.dashboard-page .store-switcher,
.dashboard-page .dashboard-period-trigger {
  width: 250px;
  min-width: 250px;
  min-height: 78px;
  padding: 16px 20px;
  border-radius: 22px;
}

.dashboard-page .store-switcher::before,
.dashboard-page .dashboard-period-trigger::before {
  content: "";
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(225, 242, 232, 0.98), rgba(206, 232, 216, 0.9));
}

.dashboard-page .store-switcher,
.dashboard-page .dashboard-period-trigger {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.dashboard-page .store-switcher .app-control-label,
.dashboard-page .dashboard-period-trigger .app-control-label {
  grid-column: 2;
  font-size: 12px;
}

.dashboard-page .store-switcher strong,
.dashboard-page .store-switcher small,
.dashboard-page .dashboard-period-trigger strong {
  grid-column: 2;
}

.dashboard-page .store-switcher strong,
.dashboard-page .dashboard-period-trigger strong {
  font-size: 15px;
}

.dashboard-page .dashboard-period-filter {
  flex: 1;
  min-width: 0;
}

.dashboard-page .dashboard-period-bar {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.dashboard-page .dashboard-period-segments {
  flex: 1;
  min-width: 520px;
  max-width: 640px;
  min-height: 58px;
  align-self: center;
  padding: 6px;
  border-radius: 18px;
}

.dashboard-page .app-segment {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 14px;
}

.dashboard-page .dashboard-refresh-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.dashboard-page .dashboard-refresh-actions .app-shell-link {
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-page .dashboard-refresh-status {
  display: none;
}

.dashboard-page .dashboard-workspace {
  max-width: 1540px;
  margin: 0 auto;
  padding: 26px 32px 34px;
  gap: 18px;
}

.dashboard-page .dashboard-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-page .dashboard-kpi-revenue { order: 1; }
.dashboard-page .dashboard-kpi-profit { order: 2; }
.dashboard-page .dashboard-kpi-drr { order: 3; }
.dashboard-page .dashboard-kpi-margin { order: 4; }
.dashboard-page .dashboard-kpi-roi { order: 5; }
.dashboard-page .dashboard-kpi-orders { order: 6; }

.dashboard-page .dashboard-kpi {
  min-height: 142px;
  padding: 18px 18px 14px;
  border-radius: 20px;
  box-shadow: var(--dash-shadow);
}

.dashboard-page .dashboard-kpi::before {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.dashboard-page .dashboard-kpi-top {
  padding-left: 0;
}

.dashboard-page .dashboard-kpi-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.dashboard-page .dashboard-kpi-copy {
  min-height: 74px;
}

.dashboard-page .dashboard-kpi span {
  font-size: 13px;
}

.dashboard-page .dashboard-kpi strong {
  margin-top: 14px;
  font-size: clamp(24px, 1.55vw, 31px);
}

.dashboard-page .dashboard-kpi small {
  font-size: 12px;
}

.dashboard-page .dashboard-kpi em {
  display: none;
}

.dashboard-page .kpi-tone {
  padding: 6px 10px;
  font-size: 11px;
}

.dashboard-page .dashboard-kpi-sparkline {
  justify-self: end;
  width: 92px;
  min-height: 24px;
}

.dashboard-page .dashboard-kpi-sparkline-svg {
  height: 24px;
}

.dashboard-page .dashboard-chart-surface {
  padding: 22px;
  border-radius: 24px;
}

.dashboard-page .dashboard-chart-headline {
  margin-bottom: 10px;
}

.dashboard-page .dashboard-chart-period-note {
  display: none;
}

.dashboard-page .dashboard-chart-topline {
  display: grid;
  grid-template-columns: minmax(360px, auto) minmax(520px, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 12px;
}

.dashboard-page .dashboard-chart-legend {
  justify-content: flex-start;
}

.dashboard-page .dashboard-legend-item {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink);
}

.dashboard-page .dashboard-chart-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 0;
  justify-content: stretch;
  overflow: hidden;
  border: 1px solid rgba(30, 45, 36, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-page .dashboard-chart-summary span {
  min-height: 56px;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(30, 45, 36, 0.08);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.dashboard-page .dashboard-chart-summary span:last-child {
  border-right: 0;
}

.dashboard-page .dashboard-chart-summary strong {
  display: block;
  font-size: 14px;
}

.dashboard-page .dashboard-mixed-chart {
  min-height: 286px;
  padding: 8px 16px 8px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 249, 0.92)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 47px, rgba(30, 45, 36, 0.055) 48px);
}

.dashboard-page .dashboard-line-chart-svg {
  height: 238px;
}

.dashboard-page .dashboard-line-chart-axis {
  margin-top: 2px;
}

.dashboard-page .dashboard-line-chart-axis span {
  font-size: 10px;
}

.dashboard-page .dashboard-cost-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border-radius: 18px;
}

.dashboard-page .dashboard-cost-item {
  grid-template-columns: 44px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 18px;
}

.dashboard-page .dashboard-cost-item::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(225, 242, 232, 0.98), rgba(205, 231, 216, 0.9));
}

.dashboard-page .dashboard-cost-item span,
.dashboard-page .dashboard-cost-item strong,
.dashboard-page .dashboard-cost-item small {
  grid-column: 2;
}

.dashboard-page .dashboard-cost-item strong {
  font-size: 22px;
}

.dashboard-page .dashboard-cost-item::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 3;
  height: 24px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 0 10%, rgba(31, 138, 76, 0.6) 10% 16%, transparent 16% 28%, rgba(31, 138, 76, 0.45) 28% 34%, transparent 34%),
    linear-gradient(180deg, rgba(31, 138, 76, 0.06), rgba(31, 138, 76, 0.02));
}

.dashboard-page .dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(520px, 0.82fr);
  gap: 18px;
}

.dashboard-page .dashboard-preview-card,
.dashboard-page .dashboard-side-card {
  padding: 22px;
  border-radius: 24px;
}

.dashboard-page .dashboard-preview-copy,
.dashboard-page .dashboard-preview-status {
  display: none;
}

.dashboard-page .dashboard-preview-head h2 {
  font-size: 22px;
}

.dashboard-page .dashboard-signals-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-page .dashboard-signal-card {
  min-height: 238px;
  padding: 16px;
  border-radius: 18px;
}

.dashboard-page .dashboard-signal-head {
  grid-template-columns: 70px minmax(0, 1fr);
}

.dashboard-page .dashboard-signal-thumb {
  width: 70px;
  height: 70px;
  border-radius: 18px;
}

.dashboard-page .dashboard-signal-main strong {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

.dashboard-page .dashboard-signal-metric span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.1);
  color: var(--primary-strong);
  font-size: 11px;
}

.dashboard-page .dashboard-signal-metric strong {
  font-size: 27px;
}

.dashboard-page .dashboard-signal-action {
  min-height: 38px;
  border-radius: 12px;
}

.dashboard-page .dashboard-ads-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-page .dashboard-ads-metric {
  min-height: 118px;
  border-radius: 18px;
}

.dashboard-page .dashboard-ads-metric strong {
  font-size: 28px;
}

@media (max-width: 1440px) {
  .dashboard-page .app-sidebar {
    width: 280px;
  }

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

  .dashboard-page .dashboard-chart-topline,
  .dashboard-page .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}

.products-page .products-table-action {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.products-page .products-table-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(16, 29, 19, 0.08);
}

.products-page .products-table-action.is-active {
  box-shadow: 0 22px 38px rgba(19, 34, 24, 0.12);
  border-color: rgba(31, 138, 76, 0.24);
}

.products-page .products-detail-card {
  display: grid;
  gap: 12px;
}

.products-page .products-detail-hero {
  padding: 10px 12px;
  border-radius: 24px;
  border: 1px solid rgba(19, 34, 24, 0.08);
  background:
    radial-gradient(circle at 94% 10%, rgba(31, 138, 76, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(252, 254, 252, 0.98) 0%, rgba(245, 250, 247, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.products-page .products-detail-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.products-page .products-detail-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.products-page .products-detail-badge-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.products-page .products-detail-badge-row::-webkit-scrollbar {
  display: none;
}

.products-page .products-detail-sku {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(19, 34, 24, 0.05);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.products-page .products-detail-title strong {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-height: calc(1.12em * 2);
}

.products-page .products-detail-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.products-page .products-detail-pill {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 16px;
}

.products-page .products-detail-pill > span,
.products-page .products-detail-metric span {
  font-size: 10px;
  letter-spacing: 0.03em;
}

.products-page .products-detail-pill strong {
  font-size: 13px;
  line-height: 1.2;
}

.products-page .products-detail-pill.is-muted,
.products-page .products-detail-metric.is-muted,
.products-page .products-detail-fact-card.is-muted {
  background: rgba(248, 249, 248, 0.88);
}

.products-page .products-detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.products-page .products-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.products-page .products-detail-main-column,
.products-page .products-detail-side-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.products-page .products-detail-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.products-page .products-detail-fact-grid.is-economics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-page .products-detail-metric {
  min-height: 84px;
  padding: 10px 11px;
  border-radius: 18px;
}

.products-page .products-detail-metric strong {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.12;
}

.products-page .products-detail-fact-card,
.products-page .products-detail-inline-card,
.products-page .products-detail-assistant-card,
.products-page .products-detail-empty-state {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(18, 32, 22, 0.07);
  background: rgba(249, 251, 249, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.products-page .products-detail-fact-card span,
.products-page .products-detail-inline-card span,
.products-page .products-detail-assistant-card span,
.products-page .products-detail-empty-state p {
  color: var(--muted);
  font-size: 12px;
}

.products-page .products-detail-fact-card strong,
.products-page .products-detail-inline-card strong,
.products-page .products-detail-assistant-card strong,
.products-page .products-detail-empty-state strong {
  font-size: 14px;
  line-height: 1.35;
}

.products-page .products-detail-media {
  width: 92px;
  height: 92px;
  border-radius: 22px;
}

.products-page .products-detail-chart-placeholder {
  display: grid;
  gap: 8px;
}

.products-page .products-history-chart-card {
  display: grid;
  gap: 10px;
}

.products-page .products-history-chart-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.products-page .products-history-chart-meta {
  display: grid;
  gap: 4px;
}

.products-page .products-history-chart-meta strong {
  font-size: 15px;
  line-height: 1.2;
}

.products-page .products-history-chart-meta small,
.products-page .products-history-current small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.products-page .products-history-metric-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.products-page .products-history-metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(18, 32, 22, 0.08);
  background: rgba(248, 251, 248, 0.92);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.products-page .products-history-metric-pill.is-active {
  background: rgba(31, 138, 76, 0.12);
  border-color: rgba(31, 138, 76, 0.24);
  color: var(--primary-strong);
}

.products-page .products-history-chart-wrap {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 28px;
  border-radius: 22px;
  border: 1px solid rgba(18, 32, 22, 0.06);
  background: linear-gradient(180deg, rgba(252, 254, 252, 0.98) 0%, rgba(246, 250, 247, 0.98) 100%);
}

.products-page .products-history-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.products-page .products-history-grid line {
  stroke: rgba(19, 34, 24, 0.08);
  stroke-width: 1;
}

.products-page .products-history-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.products-page .products-history-axis {
  position: absolute;
  inset: auto 0 8px;
  height: 16px;
}

.products-page .products-history-axis-label {
  position: absolute;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.products-page .products-history-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.products-page .products-history-current strong {
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.products-page .products-history-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.products-page .products-history-summary-card {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 18px;
  border: 1px solid rgba(18, 32, 22, 0.06);
  background: rgba(249, 251, 249, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.products-page .products-history-summary-card span {
  color: var(--muted);
  font-size: 11px;
}

.products-page .products-history-summary-card strong {
  font-size: 13px;
  line-height: 1.3;
}

.products-page .products-history-empty {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(18, 32, 22, 0.12);
  background: rgba(248, 251, 248, 0.9);
}

.products-page .products-history-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.products-page .products-detail-chart-stage {
  min-height: 144px;
  border-radius: 22px;
  border: 1px dashed rgba(20, 36, 24, 0.12);
  background:
    linear-gradient(180deg, rgba(247, 251, 248, 0.98) 0%, rgba(242, 247, 244, 0.98) 100%),
    repeating-linear-gradient(
      to top,
      transparent 0 30px,
      rgba(31, 138, 76, 0.05) 30px 31px
    );
  position: relative;
  overflow: hidden;
}

.products-page .products-detail-chart-stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(31, 138, 76, 0.08), rgba(31, 138, 76, 0.015)),
    linear-gradient(90deg, transparent 0%, rgba(31, 138, 76, 0.035) 50%, transparent 100%);
  mask:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.products-page .products-detail-inline-notes,
.products-page .products-detail-assistant-list {
  display: grid;
  gap: 8px;
}

.products-page .products-detail-actions-list {
  display: grid;
  gap: 7px;
}

.products-page .products-detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(18, 32, 22, 0.07);
  background: rgba(250, 252, 250, 0.98);
  color: var(--ink);
  font: inherit;
  text-align: left;
  opacity: 0.9;
  min-height: 48px;
}

.products-page .products-detail-action::after {
  content: "→";
  color: var(--muted);
}

.products-page .products-detail-next-step p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.products-page .products-detail-future-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.products-page .products-detail-future-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(241, 247, 243, 0.95);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.products-page .products-detail-dynamics-card .products-detail-empty-state {
  min-height: 88px;
  align-content: center;
}

@media (min-width: 1080px) {
  .products-page .products-detail-drawer {
    padding: 24px 32px;
  }

  .products-page .products-detail-shell {
    width: min(1500px, calc(100vw - 64px));
    max-height: calc(100vh - 48px);
    border-radius: 38px;
  }

  .products-page .products-detail-body {
    padding: 16px 18px 20px;
  }
}

@media (max-width: 1180px) {
  .products-page .products-detail-layout,
  .products-page .products-detail-fact-grid {
    grid-template-columns: 1fr;
  }

  .products-page .products-detail-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-page .products-detail-title strong {
    max-width: none;
    font-size: 24px;
  }

  .products-page .products-detail-badge-row {
    flex-wrap: wrap;
    overflow: visible;
  }

  .products-page .products-history-chart-toolbar {
    align-items: start;
  }
}

@media (max-width: 900px) {
  .products-page .products-detail-layout,
  .products-page .products-detail-kpi-grid,
  .products-page .products-detail-fact-grid,
  .products-page .products-detail-fact-grid.is-economics {
    grid-template-columns: 1fr;
  }

  .products-page .products-detail-shell {
    width: min(100%, 100vw - 24px);
    max-height: 92vh;
    border-radius: 30px;
  }

  .products-page .products-detail-media {
    width: 96px;
    height: 96px;
  }

  .products-page .products-history-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.products-detail-open {
  overflow: hidden;
}

.products-page .products-drawer-backdrop,
.products-page #products-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  border: 0;
}

.products-page .products-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
  background: transparent;
}

.products-page .products-detail-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  filter: none;
}

.products-page .products-detail-shell {
  width: min(1500px, calc(100vw - 64px));
  max-width: 100%;
  max-height: calc(100vh - 48px);
  height: auto;
  transform: translateY(18px) scale(0.99);
}

.products-page .products-detail-drawer.is-open .products-detail-shell {
  transform: translateY(0) scale(1);
}

.products-page .products-detail-head {
  padding: 14px 18px 10px;
}

.products-page .products-detail-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 18px;
}

.dashboard-page {
  background:
    radial-gradient(circle at 76% 5%, rgba(31, 138, 76, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
}

.dashboard-page .app-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 249, 245, 0.58) 100%),
    radial-gradient(circle at 92% 12%, rgba(31, 138, 76, 0.07), transparent 26%);
}

.dashboard-page .app-topbar {
  align-items: stretch;
  gap: 18px;
  padding: 20px 28px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(17, 32, 22, 0.06);
  backdrop-filter: blur(20px);
}

.dashboard-page .app-control,
.dashboard-page .dashboard-period-trigger,
.dashboard-page .dashboard-period-segments,
.dashboard-page .app-shell-link {
  border-color: rgba(17, 32, 22, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-period-bar {
  gap: 14px;
}

.dashboard-page .dashboard-period-trigger {
  min-width: 282px;
  border-radius: 24px;
}

.dashboard-page .dashboard-period-segments {
  min-height: 58px;
  padding: 7px;
  border-radius: 22px;
}

.dashboard-page .app-segment {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 15px;
  font-weight: 800;
}

.dashboard-page .app-segment.active {
  background: linear-gradient(180deg, rgba(226, 243, 233, 0.98) 0%, rgba(205, 231, 216, 0.98) 100%);
  color: var(--primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 22px rgba(31, 138, 76, 0.12);
}

.dashboard-page .dashboard-refresh-actions .app-shell-link[href="products.html"] {
  background: linear-gradient(180deg, #1f9b58 0%, #11723d 100%);
  color: #fff;
  border-color: rgba(17, 114, 61, 0.24);
  box-shadow: 0 16px 32px rgba(17, 114, 61, 0.22);
}

.dashboard-page .dashboard-workspace {
  gap: 18px;
  padding: 22px 28px 32px;
}

.dashboard-page .workspace-section {
  margin: 0;
}

.dashboard-page .dashboard-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-page .dashboard-kpi {
  position: relative;
  min-height: 138px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 80%, rgba(31, 138, 76, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.98) 100%);
  border: 1px solid rgba(17, 32, 22, 0.075);
  box-shadow: 0 20px 42px rgba(17, 32, 22, 0.07);
  overflow: hidden;
}

.dashboard-page .dashboard-kpi::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(225, 242, 232, 0.98), rgba(202, 229, 213, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-page .dashboard-kpi-top {
  padding-left: 44px;
}

.dashboard-page .dashboard-kpi span {
  font-size: 12px;
  color: rgba(17, 32, 22, 0.62);
}

.dashboard-page .dashboard-kpi strong {
  margin-top: 16px;
  font-size: clamp(23px, 1.55vw, 30px);
}

.dashboard-page .dashboard-kpi-body {
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
}

.dashboard-page .dashboard-kpi-sparkline,
.dashboard-page .dashboard-kpi-sparkline-svg {
  min-height: 28px;
  height: 28px;
}

.dashboard-page .dashboard-kpi-sparkline-line {
  stroke-width: 1.5;
  opacity: 0.86;
}

.dashboard-page .dashboard-chart-surface {
  padding: 22px 24px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 32, 22, 0.075);
  box-shadow: 0 24px 54px rgba(17, 32, 22, 0.08);
}

.dashboard-page .dashboard-chart-headline {
  align-items: center;
}

.dashboard-page .dashboard-chart-headline h2 {
  margin: 3px 0 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.dashboard-page .dashboard-chart-period-note {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 20px;
}

.dashboard-page .dashboard-chart-topline {
  margin: 14px 0 12px;
  align-items: stretch;
}

.dashboard-page .dashboard-legend-item,
.dashboard-page .dashboard-chart-summary span {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 32, 22, 0.08);
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.04);
}

.dashboard-page .dashboard-chart-summary {
  justify-content: flex-end;
}

.dashboard-page .dashboard-mixed-chart {
  min-height: 334px;
  padding: 14px 16px 12px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 247, 0.94)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 62px, rgba(17, 32, 22, 0.045) 63px);
  border: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-page .dashboard-line-chart-svg {
  height: 258px;
}

.dashboard-page .dashboard-line-chart-grid span {
  border-color: rgba(17, 32, 22, 0.055);
}

.dashboard-page .dashboard-line-chart-path.revenue {
  stroke-width: 2.65;
}

.dashboard-page .dashboard-line-chart-path.profit {
  stroke-width: 2.05;
  opacity: 0.78;
}

.dashboard-page .dashboard-line-chart-path.drr {
  stroke-width: 1.55;
  opacity: 0.62;
}

.dashboard-page .dashboard-line-chart-point {
  opacity: 0.68;
  stroke-width: 1.4;
}

.dashboard-page .dashboard-cost-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(17, 32, 22, 0.07);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.dashboard-page .dashboard-cost-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid rgba(17, 32, 22, 0.07);
}

.dashboard-page .dashboard-cost-item:last-child {
  border-right: 0;
}

.dashboard-page .dashboard-cost-item span,
.dashboard-page .dashboard-cost-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .dashboard-cost-item strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dashboard-page .dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 18px;
}

.dashboard-page .dashboard-preview-card,
.dashboard-page .dashboard-side-card {
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 32, 22, 0.075);
  box-shadow: 0 22px 48px rgba(17, 32, 22, 0.075);
}

.dashboard-page .dashboard-signals-grid {
  gap: 14px;
}

.dashboard-page .dashboard-signal-card {
  min-height: 214px;
  padding: 16px;
  border-radius: 24px;
}

.dashboard-page .dashboard-signal-thumb {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.dashboard-page .dashboard-signal-metric strong {
  font-size: 28px;
}

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

.dashboard-page .dashboard-ads-metric {
  min-height: 116px;
  padding: 17px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 84%, rgba(31, 138, 76, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f5faf6 100%);
}

.dashboard-page .dashboard-ads-metric strong {
  font-size: 28px;
}

@media (max-width: 1380px) {
  .dashboard-page .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .dashboard-page .app-topbar,
  .dashboard-page .dashboard-workspace {
    padding-inline: 16px;
  }

  .dashboard-page .dashboard-kpis,
  .dashboard-page .dashboard-cost-strip,
  .dashboard-page .dashboard-ads-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-cost-item {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 32, 22, 0.07);
  }

  .dashboard-page .dashboard-cost-item:last-child {
    border-bottom: 0;
  }
}



/* Ads reference v16 golden rebuild */
body.ads-reference-page 450;500;550;600;650;700&display=swap");

    :root {
      --bg: #f7faf8;
      --panel: rgba(255,255,255,.92);
      --white: #fff;
      --text: #18231d;
      --muted: #6f7d74;
      --soft: #98a49c;
      --line: rgba(32,48,38,.08);
      --line2: rgba(32,48,38,.055);
      --green: #159052;
      --green-dark: #08713d;
      --green-soft: #e4f4ea;
      --blue: #176af2;
      --blue-soft: #eaf2ff;
      --purple: #8b61ff;
      --purple-soft: #f0ebff;
      --orange: #f58b2b;
      --orange-soft: #fff1df;
      --red: #f0524b;
      --red-soft: #ffefee;
      --shadow: 0 14px 36px rgba(17, 32, 22, .045);
      --shadow2: 0 8px 22px rgba(17, 32, 22, .035);
      --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }body.ads-reference-page * { box-sizing: border-box; }html body.ads-reference-page, body.ads-reference-page { margin: 0; min-height: 100%; }body.ads-reference-page {
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(circle at 42% 0%, rgba(21,144,82,.055), transparent 25%),
        radial-gradient(circle at 80% 38%, rgba(21,144,82,.045), transparent 28%),
        linear-gradient(180deg, #fbfdfb 0%, var(--bg) 100%);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      font-weight: 400;
    }body.ads-reference-page button, body.ads-reference-page input, body.ads-reference-page label { font: inherit; }body.ads-reference-page button { border: 0; cursor: pointer; }body.ads-reference-page a { color: inherit; text-decoration: none; }body.ads-reference-page .mode { position: fixed; opacity: 0; pointer-events: none; }body.ads-reference-page .app {
      width: min(1260px, calc(100vw - 28px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 188px minmax(0, 1fr);
      gap: 18px;
      min-height: 100vh;
      padding: 4px 0 18px;
    }body.ads-reference-page .sidebar {
      position: sticky;
      top: 4px;
      height: calc(100vh - 8px);
      border-radius: 0 0 22px 22px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.86);
      box-shadow: var(--shadow2);
      padding: 22px 13px 16px;
      display: flex;
      flex-direction: column;
    }body.ads-reference-page .brand {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 0 4px;
    }body.ads-reference-page .logo {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      background: linear-gradient(145deg, #2ab763, #0f8048);
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.12em;
      box-shadow: 0 10px 20px rgba(21,144,82,.22), inset 0 1px 0 rgba(255,255,255,.25);
      flex: 0 0 auto;
    }body.ads-reference-page .brand-title {
      margin-top: 2px;
      font-size: 15px;
      line-height: 1.04;
      letter-spacing: -0.035em;
      font-weight: 650;
    }body.ads-reference-page .nav {
      margin-top: 52px;
      display: grid;
      gap: 10px;
    }body.ads-reference-page .nav-item {
      height: 44px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 8px;
      color: #536159;
      font-size: 12.5px;
      font-weight: 450;
    }body.ads-reference-page .nav-ico {
      width: 31px;
      height: 31px;
      border-radius: 11px;
      display: grid;
      place-items: center;
      color: #6b788f;
      font-size: 14px;
      background: rgba(255,255,255,.65);
      flex: 0 0 auto;
    }body.ads-reference-page .nav-item.active {
      color: var(--green-dark);
      background: linear-gradient(90deg, rgba(213,240,223,.95), rgba(213,240,223,.45));
      font-weight: 550;
    }body.ads-reference-page .nav-item.active .nav-ico {
      color: var(--green-dark);
    }body.ads-reference-page .sidebar-bottom {
      margin-top: auto;
      display: grid;
      gap: 14px;
    }body.ads-reference-page .side-card {
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.92);
      box-shadow: var(--shadow2);
      padding: 13px;
    }body.ads-reference-page .tariff-card { display: grid; gap: 9px; min-height: 118px; }body.ads-reference-page .side-label { color: var(--muted); font-size: 10.5px; font-weight: 400; }body.ads-reference-page .plan { display: block; margin-top: 5px; color: var(--green-dark); font-size: 17px; line-height: 1; font-weight: 600; }body.ads-reference-page .side-note { color: var(--muted); font-size: 10.5px; font-weight: 400; }body.ads-reference-page .side-btn {
      height: 34px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--green-dark);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
      font-size: 10.5px;
      font-weight: 550;
      box-shadow: var(--shadow2);
    }body.ads-reference-page .support-card {
      min-height: 125px;
      position: relative;
      display: grid;
      align-content: space-between;
      overflow: hidden;
    }body.ads-reference-page .support-title {
      max-width: 116px;
      font-size: 12px;
      line-height: 1.28;
      font-weight: 600;
    }body.ads-reference-page .bubble {
      position: absolute;
      right: 18px;
      top: 42px;
      width: 35px;
      height: 35px;
      border-radius: 17px 17px 17px 5px;
      background: linear-gradient(145deg, #42c879, #109052);
      box-shadow: 0 11px 20px rgba(21,144,82,.2);
    }body.ads-reference-page .bubble::before {
      content: "";
      position: absolute;
      left: -12px;
      top: 22px;
      width: 22px;
      height: 22px;
      border-radius: 13px 13px 4px 13px;
      background: #ffb445;
    }body.ads-reference-page .bubble::after {
      content: "•••";
      position: absolute;
      left: 7px;
      top: 6px;
      color: #fff;
      font-size: 11px;
      letter-spacing: 1px;
    }body.ads-reference-page .main {
      min-width: 0;
      padding: 19px 0 0;
    }body.ads-reference-page .top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 12px;
    }body.ads-reference-page .crumbs {
      display: flex;
      align-items: center;
      gap: 7px;
      color: #6b788f;
      font-size: 11px;
      line-height: 1;
      font-weight: 400;
      margin-bottom: 10px;
    }body.ads-reference-page .crumbs span:not(:last-child)::after {
      content: "/";
      margin-left: 7px;
      color: #a0aaa4;
    }body.ads-reference-page h1 {
      margin: 0;
      font-size: 23px;
      line-height: 1.05;
      letter-spacing: -0.035em;
      font-weight: 650;
    }body.ads-reference-page .chips {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-top: 11px;
      flex-wrap: wrap;
    }body.ads-reference-page .chip {
      height: 24px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      color: #4f5d54;
      padding: 0 10px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 9.5px;
      line-height: 1;
      font-weight: 500;
    }body.ads-reference-page .chip.good { color: var(--green-dark); background: var(--green-soft); }body.ads-reference-page .chip.warn { color: #b56d16; background: #fff7ee; border-color: rgba(245,139,43,.18); }body.ads-reference-page .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }body.ads-reference-page .tools {
      display: grid;
      grid-template-columns: 116px 228px 176px;
      gap: 9px;
      align-items: center;
    }body.ads-reference-page .control {
      height: 43px;
      border-radius: 13px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow2);
      color: #26352d;
      padding: 0 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11.5px;
      line-height: 1;
      font-weight: 450;
    }body.ads-reference-page .settings {
      height: 43px;
      border-radius: 13px;
      background: linear-gradient(180deg, #1aa25b, #0c7d44);
      color: #fff;
      box-shadow: 0 14px 24px rgba(21,144,82,.22);
      font-size: 11.5px;
      font-weight: 550;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }body.ads-reference-page .subtools {
      margin-top: 11px;
      display: flex;
      justify-content: flex-end;
      gap: 9px;
    }body.ads-reference-page .seg {
      height: 37px;
      padding: 4px;
      border-radius: 13px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow2);
      display: flex;
      gap: 3px;
    }body.ads-reference-page .seg button {
      min-width: 60px;
      border-radius: 10px;
      color: #546359;
      background: transparent;
      padding: 0 12px;
      font-size: 11px;
      font-weight: 450;
    }body.ads-reference-page .seg .active {
      background: var(--green-soft);
      color: var(--green-dark);
      font-weight: 550;
    }body.ads-reference-page .csv {
      height: 37px;
      min-width: 62px;
      border-radius: 13px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow2);
      color: #526159;
      font-size: 11px;
      font-weight: 500;
    }body.ads-reference-page .layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 346px;
      gap: 16px;
      align-items: start;
    }body.ads-reference-page .kpis {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 10px;
    }body.ads-reference-page .kpi {
      min-height: 96px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--panel);
      box-shadow: var(--shadow2);
      padding: 13px 12px 11px;
      overflow: hidden;
    }body.ads-reference-page .kpi-label {
      min-height: 27px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #6c7b72;
      font-size: 10.5px;
      line-height: 1.14;
      font-weight: 430;
    }body.ads-reference-page .kpi-ico {
      width: 27px;
      height: 27px;
      border-radius: 11px;
      display: grid;
      place-items: center;
      color: var(--green-dark);
      background: var(--green-soft);
      font-size: 13px;
      flex: 0 0 auto;
    }body.ads-reference-page .kpi-ico.blue { color: #236fe0; background: var(--blue-soft); }body.ads-reference-page .kpi-ico.purple { color: #7455e8; background: var(--purple-soft); }body.ads-reference-page .kpi-ico.orange { color: #d87310; background: var(--orange-soft); }body.ads-reference-page .kpi strong {
      display: block;
      margin-top: 11px;
      font-size: 20px;
      line-height: 1;
      letter-spacing: -0.035em;
      font-weight: 560;
    }body.ads-reference-page .kpi small {
      display: block;
      margin-top: 8px;
      color: #707f76;
      font-size: 10px;
      line-height: 1.22;
      font-weight: 400;
    }body.ads-reference-page .green { color: var(--green-dark) !important; }body.ads-reference-page .orange { color: #d87310 !important; }body.ads-reference-page .red { color: #c43731 !important; }body.ads-reference-page .info {
      min-height: 39px;
      border-radius: 15px;
      border: 1px solid rgba(21,144,82,.1);
      background: linear-gradient(90deg, rgba(228,245,235,.88), rgba(255,255,255,.78));
      color: #3c5145;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 13px;
      font-size: 11.5px;
      line-height: 1.34;
      font-weight: 400;
      margin-bottom: 10px;
    }body.ads-reference-page .info-i {
      width: 23px;
      height: 23px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #fff;
      color: var(--green-dark);
      border: 1px solid rgba(21,144,82,.16);
      font-size: 12px;
      font-weight: 600;
      flex: 0 0 auto;
    }body.ads-reference-page .card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: var(--panel);
      box-shadow: var(--shadow2);
    }body.ads-reference-page .chart-card {
      padding: 16px 16px 10px;
      margin-bottom: 10px;
    }body.ads-reference-page .chart-title {
      margin: 0;
      font-size: 16.5px;
      line-height: 1.16;
      letter-spacing: -0.025em;
      font-weight: 600;
    }body.ads-reference-page .chart-sub {
      margin: 10px 0 0;
      font-size: 13px;
      line-height: 1.2;
      letter-spacing: -0.01em;
      font-weight: 500;
    }body.ads-reference-page .legend {
      display: flex;
      align-items: center;
      gap: 17px;
      flex-wrap: wrap;
      color: #65736a;
      font-size: 9.5px;
      line-height: 1;
      font-weight: 400;
      margin: 15px 0 8px;
    }body.ads-reference-page .legend span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }body.ads-reference-page .mark {
      width: 15px;
      height: 3px;
      border-radius: 99px;
      background: var(--green);
    }body.ads-reference-page .mark.blue { background: var(--blue); }body.ads-reference-page .mark.dark { background: #0a7e44; }body.ads-reference-page .mark.purple { background: var(--purple); }body.ads-reference-page .chart {
      position: relative;
      height: 210px;
      border-radius: 17px;
      overflow: hidden;
      background:
        linear-gradient(to bottom, transparent 0 23%, rgba(18,32,24,.066) 24%, transparent 24% 48%, rgba(18,32,24,.066) 49%, transparent 49% 73%, rgba(18,32,24,.066) 74%, transparent 74%),
        linear-gradient(180deg, rgba(255,255,255,.34), rgba(247,251,248,.35));
    }body.ads-reference-page .chart svg {
      width: 100%;
      height: 100%;
      display: block;
    }body.ads-reference-page .axis {
      fill: #65736a;
      font-size: 9.7px;
      font-weight: 400;
    }body.ads-reference-page .mini-table {
      margin-top: 8px;
      overflow: hidden;
      border-radius: 15px;
      border: 1px solid var(--line);
      background: #fff;
    }body.ads-reference-page table { width: 100%; border-collapse: collapse; }body.ads-reference-page th {
      padding: 8px 9px;
      border-bottom: 1px solid var(--line2);
      color: #6f7d74;
      font-size: 9.5px;
      line-height: 1.15;
      font-weight: 450;
      text-align: left;
      white-space: nowrap;
    }body.ads-reference-page td {
      padding: 7.5px 9px;
      border-bottom: 1px solid var(--line2);
      color: #1f2e25;
      font-size: 10.5px;
      line-height: 1.2;
      font-weight: 500;
      white-space: nowrap;
    }body.ads-reference-page tr:last-child td { border-bottom: 0; }body.ads-reference-page .products-card {
      padding: 14px;
    }body.ads-reference-page .products-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }body.ads-reference-page .products-title {
      margin: 0;
      display: inline;
      font-size: 16px;
      line-height: 1;
      letter-spacing: -0.025em;
      font-weight: 600;
    }body.ads-reference-page .hint {
      margin-left: 10px;
      color: #6f7d74;
      font-size: 10.5px;
      line-height: 1.35;
      font-weight: 400;
    }body.ads-reference-page .search {
      width: 230px;
      height: 34px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: #9ba79f;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 11px;
      font-size: 10.5px;
      font-weight: 400;
    }body.ads-reference-page .products-table {
      border-radius: 17px;
      border: 1px solid var(--line);
      background: #fff;
      overflow: hidden;
    }body.ads-reference-page .row {
      width: 100%;
      min-height: 54px;
      padding: 7px 9px;
      display: grid;
      grid-template-columns: 44px minmax(160px, 1.35fr) 92px 82px 88px 92px 72px 72px 106px 20px;
      gap: 8px;
      align-items: center;
      border-bottom: 1px solid var(--line2);
      background: #fff;
      color: #1f2e25;
      text-align: left;
      font-size: 10px;
      line-height: 1.18;
      font-weight: 500;
      transition: background .16s ease, box-shadow .16s ease;
    }body.ads-reference-page .row.header {
      min-height: 32px;
      color: #6f7d74;
      font-size: 9px;
      font-weight: 450;
      pointer-events: none;
    }body.ads-reference-page .row:not(.header):hover { background: rgba(228,245,235,.42); }body.ads-reference-page #sku:checked ~ .app .row.selected {
      background: linear-gradient(90deg, rgba(213,240,223,.86), rgba(255,255,255,.78));
      box-shadow: inset 3px 0 0 var(--green);
    }body.ads-reference-page #overview:checked ~ .app .row.selected { background: #fff; box-shadow: none; }body.ads-reference-page .thumb {
      width: 34px;
      height: 34px;
      border-radius: 11px;
      overflow: hidden;
      border: 1px solid rgba(18,32,24,.08);
      display: grid;
      place-items: center;
      font-size: 18px;
      background: linear-gradient(145deg, #eadbb8, #987146);
    }body.ads-reference-page .thumb.black { background: linear-gradient(145deg, #21201c, #b98844); }body.ads-reference-page .thumb.green-bg { background: linear-gradient(145deg, #d9f3c5, #6ba94d); }body.ads-reference-page .thumb.tea { background: linear-gradient(145deg, #e9dfc7, #799457); }body.ads-reference-page .thumb.light { background: linear-gradient(145deg, #f4ecd2, #d3b681); }body.ads-reference-page .product-title {
      font-size: 10.2px;
      line-height: 1.22;
      font-weight: 520;
      letter-spacing: -0.01em;
      white-space: normal;
    }body.ads-reference-page .sku-text { color: #52665b; font-weight: 430; }body.ads-reference-page .stock {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #30463a;
      font-weight: 500;
    }body.ads-reference-page .stock::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 99px;
      background: var(--green);
      flex: 0 0 auto;
    }body.ads-reference-page .stock.low::before { background: var(--orange); }body.ads-reference-page .pill {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: fit-content;
      min-height: 25px;
      padding: 5px 9px;
      border-radius: 9px;
      font-size: 9px;
      line-height: 1.1;
      font-weight: 500;
      text-align: center;
    }body.ads-reference-page .pill.good { color: var(--green-dark); background: var(--green-soft); }body.ads-reference-page .pill.warn { color: #b86511; background: var(--orange-soft); }body.ads-reference-page .pill.bad { color: #c43731; background: var(--red-soft); }body.ads-reference-page .chev { text-align: right; color: #52655a; font-size: 17px; font-weight: 400; }body.ads-reference-page .table-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 11px 2px 0;
      color: #6f7d74;
      font-size: 10.5px;
      font-weight: 400;
    }body.ads-reference-page .pages { display: flex; gap: 7px; align-items: center; }body.ads-reference-page .page-btn {
      width: 30px;
      height: 30px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      color: #55665d;
      display: grid;
      place-items: center;
      font-size: 11px;
      font-weight: 500;
    }body.ads-reference-page .page-btn.active {
      color: var(--green-dark);
      background: var(--green-soft);
      border-color: rgba(21,144,82,.32);
    }body.ads-reference-page .right {
      position: sticky;
      top: 18px;
      padding: 15px;
      min-height: calc(100vh - 36px);
      max-height: calc(100vh - 36px);
      overflow: hidden;
    }body.ads-reference-page .right-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }body.ads-reference-page .spark {
      width: 27px;
      height: 27px;
      border-radius: 12px;
      background: var(--green-soft);
      color: var(--green-dark);
      display: grid;
      place-items: center;
      font-size: 14px;
      flex: 0 0 auto;
    }body.ads-reference-page .right-title {
      margin: 0;
      font-size: 16.5px;
      line-height: 1;
      letter-spacing: -0.025em;
      font-weight: 600;
    }body.ads-reference-page .right-note {
      margin-left: auto;
      color: #6f7d74;
      font-size: 9.5px;
      font-weight: 400;
      white-space: nowrap;
    }body.ads-reference-page .sku-card {
      padding: 10px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: var(--shadow2);
      margin-bottom: 9px;
    }body.ads-reference-page .sku-top {
      display: grid;
      grid-template-columns: 58px minmax(0,1fr);
      gap: 12px;
      align-items: center;
      margin-bottom: 10px;
    }body.ads-reference-page .sku-top .thumb {
      width: 58px;
      height: 58px;
      border-radius: 17px;
      font-size: 24px;
    }body.ads-reference-page .sku-name {
      margin: 0 0 6px;
      font-size: 12px;
      line-height: 1.24;
      letter-spacing: -0.01em;
      font-weight: 550;
    }body.ads-reference-page .sku-meta {
      display: flex;
      align-items: center;
      gap: 9px;
      color: #6f7d74;
      font-size: 9.5px;
      line-height: 1;
      font-weight: 400;
      flex-wrap: wrap;
    }body.ads-reference-page .chosen {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--green-dark);
      font-weight: 500;
    }body.ads-reference-page .chosen::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 99px;
      background: var(--green);
    }body.ads-reference-page .sku-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--line2);
      border-left: 1px solid var(--line2);
      border-radius: 14px;
      overflow: hidden;
    }body.ads-reference-page .sku-metric {
      min-height: 49px;
      padding: 8px;
      border-right: 1px solid var(--line2);
      border-bottom: 1px solid var(--line2);
      background: rgba(247,251,248,.55);
    }body.ads-reference-page .sku-metric span {
      display: block;
      color: #6f7d74;
      font-size: 9.5px;
      line-height: 1.1;
      font-weight: 400;
    }body.ads-reference-page .sku-metric strong {
      display: block;
      margin-top: 5px;
      color: #1f2e25;
      font-size: 12px;
      line-height: 1;
      letter-spacing: -0.015em;
      font-weight: 560;
    }body.ads-reference-page .rules { display: grid; gap: 8px; }body.ads-reference-page .rule {
      min-height: 64px;
      padding: 10px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: var(--shadow2);
      display: grid;
      grid-template-columns: 36px minmax(0,1fr) 12px;
      gap: 10px;
      align-items: center;
    }body.ads-reference-page .rule.primary {
      min-height: 78px;
      border-color: rgba(239,82,74,.26);
      background: linear-gradient(90deg, #fff1f0, #fffafa);
      box-shadow: 0 12px 24px rgba(239,82,74,.06);
    }body.ads-reference-page .rule-ico {
      width: 36px;
      height: 36px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      background: var(--green-soft);
      color: var(--green-dark);
      font-size: 17px;
      font-weight: 600;
      flex: 0 0 auto;
    }body.ads-reference-page .rule-ico.red { color: #c43731; background: var(--red-soft); }body.ads-reference-page .rule-ico.orange { color: #b86511; background: var(--orange-soft); }body.ads-reference-page .rule-ico.blue { color: #236fe0; background: var(--blue-soft); }body.ads-reference-page .rule-ico.purple { color: #7354e7; background: var(--purple-soft); }body.ads-reference-page .rule-kicker {
      display: block;
      margin-bottom: 3px;
      color: #c43731;
      font-size: 9px;
      line-height: 1;
      font-weight: 560;
    }body.ads-reference-page .rule strong {
      display: block;
      color: #1f2e25;
      font-size: 11px;
      line-height: 1.24;
      letter-spacing: -0.005em;
      font-weight: 560;
    }body.ads-reference-page .rule small {
      display: block;
      margin-top: 4px;
      color: #6f7d74;
      font-size: 10px;
      line-height: 1.22;
      font-weight: 400;
    }body.ads-reference-page .rule-arrow {
      color: #52655a;
      font-size: 17px;
      line-height: 1;
      font-weight: 400;
    }body.ads-reference-page .cta {
      width: 100%;
      height: 48px;
      margin-top: 10px;
      border-radius: 15px;
      color: #fff;
      background: linear-gradient(180deg, #1fa45d, #0f7d45);
      box-shadow: 0 15px 24px rgba(21,144,82,.18);
      font-size: 12.5px;
      font-weight: 550;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }body.ads-reference-page #overview:checked ~ .app .sku-only { display: none; }body.ads-reference-page #sku:checked ~ .app .overview-only { display: none; }body.ads-reference-page #overview:checked ~ .app .selected-title { display: none; }body.ads-reference-page #sku:checked ~ .app .overview-title { display: none; }body.ads-reference-page .switcher {
      position: fixed;
      right: 22px;
      bottom: 20px;
      z-index: 50;
      padding: 5px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.86);
      backdrop-filter: blur(14px);
      box-shadow: var(--shadow);
      display: flex;
      gap: 4px;
    }body.ads-reference-page .switcher label {
      height: 34px;
      padding: 0 13px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 500;
      cursor: pointer;
    }body.ads-reference-page #overview:checked ~ .switcher label[for="overview"], body.ads-reference-page #sku:checked ~ .switcher label[for="sku"] {
      color: var(--green-dark);
      background: var(--green-soft);
      font-weight: 550;
    }@media (max-width: 1320px) {
body.ads-reference-page .app { width: min(1180px, calc(100vw - 24px)); grid-template-columns: 188px minmax(0, 1fr); }body.ads-reference-page .layout { grid-template-columns: minmax(0, 1fr); }body.ads-reference-page .right { position: static; min-height: auto; max-height: none; }body.ads-reference-page .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    
}body.ads-reference-page /* V8 — v5 base + dashboard sidebar/topbar + KPI nowrap fixes */
    .app {
      width: 100% !important;
      max-width: none !important;
      margin: 0 !important;
      padding: 0 !important;
      min-height: 100vh !important;
      display: grid !important;
      grid-template-columns: 270px minmax(0, 1fr) !important;
      gap: 0 !important;
    }body.ads-reference-page .main {
      min-width: 0 !important;
      padding: 28px 28px 32px !important;
    }body.ads-reference-page /* dashboard sidebar */
    .sidebar {
      position: sticky !important;
      top: 0 !important;
      height: 100vh !important;
      padding: 28px 20px 24px !important;
      border-radius: 0 !important;
      border: 0 !important;
      border-right: 1px solid var(--line) !important;
      background: linear-gradient(180deg, #f7fbf8 0%, #f2f8f4 100%) !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column !important;
    }body.ads-reference-page .brand {
      display: flex !important;
      align-items: flex-start !important;
      gap: 14px !important;
      padding: 0 !important;
    }body.ads-reference-page .brand-mark {
      width: 52px;
      height: 52px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 760;
      font-size: 17px;
      background: linear-gradient(145deg, #2bb465 0%, #12713f 100%);
      box-shadow: 0 14px 24px rgba(22, 131, 74, 0.27), inset 0 1px 0 rgba(255,255,255,0.26);
      flex: 0 0 auto;
    }body.ads-reference-page .brand-title {
      margin-top: 3px !important;
      font-size: 18px !important;
      line-height: 0.98 !important;
      letter-spacing: -0.035em !important;
      font-weight: 700 !important;
    }body.ads-reference-page .brand-subtitle {
      margin-top: 9px;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.35;
      font-weight: 400;
    }body.ads-reference-page .nav {
      margin-top: 62px !important;
      display: grid !important;
      gap: 12px !important;
    }body.ads-reference-page .nav-item {
      height: 48px !important;
      border: 0 !important;
      border-radius: 16px !important;
      background: transparent !important;
      color: #26362c !important;
      display: flex !important;
      align-items: center !important;
      gap: 13px !important;
      padding: 0 15px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      letter-spacing: -0.012em !important;
      cursor: default !important;
    }body.ads-reference-page .nav-icon {
      width: 34px;
      height: 34px;
      border-radius: 13px;
      background: rgba(255,255,255,0.7);
      color: #405349;
      display: grid;
      place-items: center;
      padding: 8px;
      box-shadow: inset 0 0 0 1px rgba(20,38,26,0.035);
      flex: 0 0 auto;
      font-weight: 500;
    }body.ads-reference-page .nav-item.active {
      color: var(--green-dark) !important;
      background: linear-gradient(90deg, #dff2e6 0%, rgba(223, 242, 230, 0.42) 100%) !important;
      box-shadow: 0 12px 34px rgba(31, 138, 76, 0.08) !important;
    }body.ads-reference-page .nav-item.active .nav-icon {
      color: var(--green-dark);
      background: rgba(255,255,255,0.58);
    }body.ads-reference-page .tariff-card {
      margin-top: auto !important;
      height: 82px !important;
      padding: 14px !important;
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      border-radius: 22px !important;
      background: rgba(255,255,255,0.9) !important;
      border: 1px solid var(--line) !important;
      box-shadow: var(--shadow) !important;
      min-height: 0 !important;
    }body.ads-reference-page .tariff-icon {
      width: 42px;
      height: 42px;
      border-radius: 15px;
      background: var(--green-soft);
      color: var(--green-dark);
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }body.ads-reference-page .tariff-card strong {
      display: block;
      font-size: 13px;
      line-height: 1.15;
      font-weight: 800;
    }body.ads-reference-page .tariff-card span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
      font-weight: 500;
    }body.ads-reference-page .tariff-arrow {
      margin-left: auto;
      color: var(--muted);
      font-weight: 500;
    }body.ads-reference-page /* dashboard topbar */
    .dashboard-like-top {
      display: block !important;
      margin-bottom: 12px !important;
    }body.ads-reference-page .topbar {
      display: grid;
      grid-template-columns: 220px 300px minmax(390px, 1fr) 210px;
      gap: 14px;
      align-items: center;
    }body.ads-reference-page .control-card {
      height: 70px;
      border-radius: 18px;
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      padding: 13px 15px;
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }body.ads-reference-page .store-display-card .chev {
      display: none !important;
    }body.ads-reference-page .control-icon {
      width: 36px;
      height: 36px;
      border-radius: 13px;
      background: var(--green-soft);
      color: var(--green-dark);
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }body.ads-reference-page .control-copy {
      min-width: 0;
      flex: 1;
    }body.ads-reference-page .control-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 620;
      line-height: 1;
      margin-bottom: 7px;
    }body.ads-reference-page .control-value {
      font-size: 13.5px;
      font-weight: 720;
      line-height: 1.12;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }body.ads-reference-page .control-subtitle {
      margin-top: 3px;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }body.ads-reference-page .period-tabs {
      height: 52px;
      align-self: center;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.94);
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      overflow: hidden;
      min-width: 0;
    }body.ads-reference-page .period-tab {
      border: 0;
      background: transparent;
      color: #1f2e25;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: -0.015em;
      display: grid;
      place-items: center;
      padding: 0 12px;
      border-right: 1px solid rgba(20,38,26,0.06);
      white-space: nowrap;
    }body.ads-reference-page .period-tab:last-child { border-right: 0; }body.ads-reference-page .period-tab.active span {
      padding: 9px 15px;
      border-radius: 13px;
      background: var(--green-soft);
      color: var(--green-dark);
    }body.ads-reference-page .actions {
      display: grid;
      gap: 10px;
    }body.ads-reference-page .action-btn {
      height: 50px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.96);
      color: var(--text);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: -0.015em;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: var(--shadow);
    }body.ads-reference-page .action-btn.primary {
      height: 56px;
      color: #fff;
      border-color: transparent;
      background: linear-gradient(180deg, #1fa15a 0%, #0e703c 100%);
      box-shadow: 0 20px 46px rgba(22,131,74,0.26);
      font-weight: 650;
    }body.ads-reference-page .campaign-title-line {
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 18px;
    }body.ads-reference-page .compact-subtools {
      margin-top: 0 !important;
      padding-top: 2px;
      align-items: center;
    }body.ads-reference-page .demo-state {
      height: 37px;
      padding: 4px;
      border-radius: 13px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow2);
      display: flex;
      gap: 3px;
    }body.ads-reference-page .demo-state label {
      min-width: 62px;
      height: 29px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      color: #546359;
      font-size: 10.5px;
      font-weight: 500;
      cursor: pointer;
      white-space: nowrap;
    }body.ads-reference-page #overview:checked ~ .app .demo-state label[for="overview"], body.ads-reference-page #sku:checked ~ .app .demo-state label[for="sku"] {
      background: var(--green-soft);
      color: var(--green-dark);
      font-weight: 560;
    }body.ads-reference-page /* KPI fix: keep v5 look, body.ads-reference-page but prevent bad wrapping */
    .layout {
      grid-template-columns: minmax(0, 1fr) 346px !important;
      gap: 16px !important;
    }body.ads-reference-page .kpis {
      display: grid !important;
      grid-template-columns: repeat(7, minmax(118px, 1fr)) !important;
      gap: 10px !important;
      margin-bottom: 10px !important;
    }body.ads-reference-page .kpi {
      min-width: 0 !important;
      padding: 13px 10px 11px !important;
    }body.ads-reference-page .kpi-label {
      font-size: 10px !important;
      gap: 7px !important;
      min-width: 0 !important;
    }body.ads-reference-page .kpi-label > span:last-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }body.ads-reference-page .kpi-ico {
      flex: 0 0 27px !important;
    }body.ads-reference-page .kpi strong, body.ads-reference-page .kpi .kpi-main {
      display: block !important;
      margin-top: 11px !important;
      font-size: 19px !important;
      line-height: 1 !important;
      letter-spacing: -0.035em !important;
      font-weight: 560 !important;
      white-space: nowrap !important;
      word-break: keep-all !important;
      overflow-wrap: normal !important;
    }body.ads-reference-page .kpi.kpi-fact-revenue .kpi-main {
      font-size: 18px !important;
    }body.ads-reference-page .kpi small {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }body.ads-reference-page .kpi.kpi-wide {
      min-width: 140px !important;
    }body.ads-reference-page /* no fixed visual overlays */
    .switcher {
      display: none !important;
    }@media (max-width: 1420px) {
body.ads-reference-page .topbar {
        grid-template-columns: 200px 280px minmax(360px, 1fr) 190px;
      }body.ads-reference-page .layout {
        grid-template-columns: minmax(0, 1fr) 330px !important;
      }body.ads-reference-page .kpis {
        grid-template-columns: repeat(7, minmax(108px, 1fr)) !important;
      }body.ads-reference-page .kpi strong, body.ads-reference-page .kpi .kpi-main {
        font-size: 18px !important;
      }
    
}@media (max-width: 1260px) {
body.ads-reference-page .layout {
        grid-template-columns: minmax(0, 1fr) !important;
      }body.ads-reference-page .right {
        position: static !important;
        min-height: auto !important;
        max-height: none !important;
      }body.ads-reference-page .topbar {
        grid-template-columns: 1fr 1fr;
      }body.ads-reference-page .period-tabs, body.ads-reference-page .actions {
        grid-column: 1 / -1;
      }body.ads-reference-page .actions {
        grid-template-columns: 1fr 1fr;
      }body.ads-reference-page .kpis {
        grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
      }
    
}body.ads-reference-page /* V9 FINAL FIX PASS — based on v8:
       - right panel is static, body.ads-reference-page not sticky;
       - remove day/week/month from campaign area;
       - force overview/SKU visibility so KPI values do not duplicate;
       - make KPI cards visually even and readable.
    */

    .compact-subtools {
      margin-top: 0 !important;
      padding-top: 2px !important;
      align-items: center !important;
    }body.ads-reference-page .compact-subtools .seg {
      display: none !important;
    }body.ads-reference-page .demo-state {
      height: 37px !important;
      padding: 4px !important;
      border-radius: 13px !important;
      border: 1px solid var(--line) !important;
      background: rgba(255,255,255,.9) !important;
      box-shadow: var(--shadow2) !important;
      display: flex !important;
      gap: 3px !important;
    }body.ads-reference-page .demo-state label {
      min-width: 72px !important;
      height: 29px !important;
      border-radius: 10px !important;
      display: grid !important;
      place-items: center !important;
      color: #546359 !important;
      font-size: 10.5px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      white-space: nowrap !important;
    }body.ads-reference-page #overview:checked ~ .app .demo-state label[for="overview"], body.ads-reference-page #sku:checked ~ .app .demo-state label[for="sku"] {
      background: var(--green-soft) !important;
      color: var(--green-dark) !important;
      font-weight: 560 !important;
    }body.ads-reference-page .right {
      position: static !important;
      top: auto !important;
      align-self: start !important;
      min-height: auto !important;
      max-height: none !important;
      overflow: visible !important;
    }body.ads-reference-page .layout {
      align-items: start !important;
      grid-template-columns: minmax(0, 1fr) 346px !important;
    }body.ads-reference-page .kpis {
      grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
      gap: 10px !important;
      align-items: stretch !important;
    }body.ads-reference-page .kpi {
      min-height: 98px !important;
      height: 98px !important;
      padding: 12px 11px 10px !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
      overflow: hidden !important;
    }body.ads-reference-page .kpi-label {
      min-height: 30px !important;
      display: grid !important;
      grid-template-columns: 27px minmax(0, 1fr) !important;
      align-items: center !important;
      gap: 7px !important;
      color: #6c7b72 !important;
      font-size: 10px !important;
      line-height: 1.12 !important;
      font-weight: 430 !important;
    }body.ads-reference-page .kpi-label > span:last-child {
      display: block !important;
      min-width: 0 !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: normal !important;
      max-height: 24px !important;
    }body.ads-reference-page .kpi-ico {
      width: 27px !important;
      height: 27px !important;
      flex: 0 0 27px !important;
    }body.ads-reference-page .kpi .kpi-main, body.ads-reference-page .kpi strong {
      display: block !important;
      margin-top: 10px !important;
      font-size: 19px !important;
      line-height: 1 !important;
      letter-spacing: -0.035em !important;
      font-weight: 560 !important;
      white-space: nowrap !important;
      word-break: keep-all !important;
      overflow-wrap: normal !important;
      overflow: visible !important;
    }body.ads-reference-page .kpi small {
      display: block !important;
      margin-top: 8px !important;
      color: #707f76 !important;
      font-size: 9.8px !important;
      line-height: 1.18 !important;
      font-weight: 400 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }body.ads-reference-page .kpi.kpi-fact-revenue .kpi-main {
      font-size: 18px !important;
      letter-spacing: -0.035em !important;
    }body.ads-reference-page .kpi .green, body.ads-reference-page .kpi .orange, body.ads-reference-page .kpi .red {
      font-weight: 560 !important;
    }body.ads-reference-page /* This must be the last visibility rule, body.ads-reference-page because KPI styles above use display:block. */
    #overview:checked ~ .app .sku-only {
      display: none !important;
    }body.ads-reference-page #sku:checked ~ .app .overview-only {
      display: none !important;
    }body.ads-reference-page #overview:checked ~ .app .selected-title {
      display: none !important;
    }body.ads-reference-page #sku:checked ~ .app .overview-title {
      display: none !important;
    }body.ads-reference-page /* V10 FIT PASS — fixes from screenshots:
       - KPI cards no longer eat subtitles;
       - KPI grid is no longer squeezed into 7 tiny cards on laptop width;
       - products table no longer cuts the "Рекомендация" column;
       - right panel stays static and visually separate.
    */

    .layout {
      grid-template-columns: minmax(0, 1fr) 330px !important;
      gap: 18px !important;
      align-items: start !important;
    }body.ads-reference-page .right {
      position: static !important;
      top: auto !important;
      align-self: start !important;
      min-height: auto !important;
      max-height: none !important;
      overflow: visible !important;
    }body.ads-reference-page .kpis {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      gap: 12px !important;
      align-items: stretch !important;
    }body.ads-reference-page .kpi {
      height: 112px !important;
      min-height: 112px !important;
      padding: 14px 14px 12px !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
    }body.ads-reference-page .kpi-label {
      min-height: 28px !important;
      display: grid !important;
      grid-template-columns: 28px minmax(0, 1fr) !important;
      align-items: center !important;
      gap: 8px !important;
      color: #6c7b72 !important;
      font-size: 10.8px !important;
      line-height: 1.15 !important;
      font-weight: 430 !important;
    }body.ads-reference-page .kpi-label > span:last-child {
      display: block !important;
      min-width: 0 !important;
      max-height: none !important;
      overflow: visible !important;
      text-overflow: clip !important;
      white-space: normal !important;
    }body.ads-reference-page .kpi-ico {
      width: 28px !important;
      height: 28px !important;
      flex: 0 0 28px !important;
    }body.ads-reference-page .kpi .kpi-main, body.ads-reference-page .kpi strong {
      display: block !important;
      margin-top: 12px !important;
      font-size: 22px !important;
      line-height: 1 !important;
      letter-spacing: -0.04em !important;
      font-weight: 560 !important;
      white-space: nowrap !important;
      word-break: keep-all !important;
      overflow-wrap: normal !important;
      overflow: visible !important;
    }body.ads-reference-page .kpi.kpi-fact-revenue .kpi-main {
      font-size: 22px !important;
    }body.ads-reference-page .kpi small {
      display: block !important;
      margin-top: 9px !important;
      color: #707f76 !important;
      font-size: 10.2px !important;
      line-height: 1.2 !important;
      font-weight: 400 !important;
      white-space: nowrap !important;
      overflow: visible !important;
      text-overflow: clip !important;
    }body.ads-reference-page .products-card {
      overflow: hidden !important;
    }body.ads-reference-page .products-head {
      gap: 10px !important;
    }body.ads-reference-page .search {
      width: 250px !important;
      flex: 0 0 250px !important;
    }body.ads-reference-page .products-table {
      overflow: hidden !important;
    }body.ads-reference-page .row {
      grid-template-columns:
        38px
        minmax(142px, 1.1fr)
        76px
        74px
        82px
        82px
        68px
        64px
        92px
        14px !important;
      gap: 6px !important;
      padding: 7px 8px !important;
      font-size: 9.6px !important;
      min-height: 54px !important;
    }body.ads-reference-page .row.header {
      font-size: 8.8px !important;
    }body.ads-reference-page .thumb {
      width: 32px !important;
      height: 32px !important;
      border-radius: 10px !important;
      font-size: 17px !important;
    }body.ads-reference-page .product-title {
      font-size: 9.8px !important;
      line-height: 1.18 !important;
    }body.ads-reference-page .pill {
      max-width: 88px !important;
      min-height: 24px !important;
      padding: 5px 7px !important;
      font-size: 8.6px !important;
      line-height: 1.08 !important;
      white-space: normal !important;
    }body.ads-reference-page .chev {
      font-size: 15px !important;
    }body.ads-reference-page .table-footer {
      padding-right: 4px !important;
    }body.ads-reference-page /* last visibility guard */
    #overview:checked ~ .app .sku-only {
      display: none !important;
    }body.ads-reference-page #sku:checked ~ .app .overview-only {
      display: none !important;
    }body.ads-reference-page #overview:checked ~ .app .selected-title {
      display: none !important;
    }body.ads-reference-page #sku:checked ~ .app .overview-title {
      display: none !important;
    }body.ads-reference-page /* V11 CHART COLOR PASS — only chart/legend colors changed */
    .legend .mark {
      background: #f59e0b !important; /* Расход */
    }body.ads-reference-page .legend .mark.blue {
      background: #2563eb !important; /* Факт. выручка */
    }body.ads-reference-page .legend .mark.dark {
      background: #16a34a !important; /* Чистая прибыль */
    }body.ads-reference-page .legend .mark.purple {
      background: #8b5cf6 !important; /* Real DRR */
    }body.ads-reference-page /* V12 PREMIUM CHART PASS — only chart visual style changed */
    .chart {
      height: 232px !important;
      border-radius: 18px !important;
      overflow: hidden !important;
      background:
        radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.045), transparent 30%),
        radial-gradient(circle at 82% 4%, rgba(139, 92, 246, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,251,249,.78) 100%) !important;
      border: 1px solid rgba(32,48,38,.055) !important;
    }body.ads-reference-page .chart svg {
      width: 100% !important;
      height: 100% !important;
      display: block !important;
    }body.ads-reference-page .axis {
      fill: #7a867e !important;
      font-size: 9.2px !important;
      font-weight: 400 !important;
      letter-spacing: -0.01em !important;
    }body.ads-reference-page .chart-grid-line {
      stroke: rgba(24,35,29,.075);
      stroke-width: 1;
      vector-effect: non-scaling-stroke;
    }body.ads-reference-page .chart-zero-line {
      stroke: rgba(24,35,29,.14);
      stroke-width: 1.1;
      vector-effect: non-scaling-stroke;
    }body.ads-reference-page .chart-bar {
      filter: drop-shadow(0 7px 10px rgba(17,32,22,.075));
    }body.ads-reference-page .chart-line-shadow {
      filter: drop-shadow(0 5px 7px rgba(139,92,246,.18));
    }body.ads-reference-page .legend {
      gap: 15px !important;
      margin: 14px 0 9px !important;
    }body.ads-reference-page .legend .mark {
      width: 18px !important;
      height: 4px !important;
      border-radius: 999px !important;
      background: #f59e0b !important;
    }body.ads-reference-page .legend .mark.blue {
      background: #2563eb !important;
    }body.ads-reference-page .legend .mark.dark {
      background: #16a34a !important;
    }body.ads-reference-page .legend .mark.purple {
      background: #8b5cf6 !important;
    }body.ads-reference-page /* V13 KPI TOOLTIP PASS — only KPI names/tooltips/copy, body.ads-reference-page no layout changes */
    .metric-name {
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
      min-width: 0 !important;
    }body.ads-reference-page .metric-name > span:first-child {
      min-width: 0 !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }body.ads-reference-page .metric-info {
      position: relative;
      width: 15px;
      height: 15px;
      border-radius: 999px;
      border: 1px solid rgba(32,48,38,.12);
      background: rgba(255,255,255,.92);
      color: #7a867e;
      display: inline-grid;
      place-items: center;
      font-size: 9px;
      line-height: 1;
      font-weight: 650;
      flex: 0 0 15px;
      cursor: help;
      z-index: 5;
    }body.ads-reference-page .metric-info::after {
      content: attr(data-tip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 9px);
      transform: translateX(-50%) translateY(4px);
      width: max-content;
      max-width: 245px;
      padding: 9px 10px;
      border-radius: 12px;
      background: rgba(24,35,29,.96);
      color: #fff;
      box-shadow: 0 14px 32px rgba(17,32,22,.18);
      font-size: 10.5px;
      line-height: 1.35;
      font-weight: 450;
      letter-spacing: -0.01em;
      white-space: normal;
      opacity: 0;
      pointer-events: none;
      transition: opacity .14s ease, transform .14s ease;
    }body.ads-reference-page .metric-info::before {
      content: "";
      position: absolute;
      left: 50%;
      bottom: calc(100% + 3px);
      transform: translateX(-50%) translateY(4px);
      border: 6px solid transparent;
      border-top-color: rgba(24,35,29,.96);
      opacity: 0;
      pointer-events: none;
      transition: opacity .14s ease, transform .14s ease;
    }body.ads-reference-page .metric-info:hover::after, body.ads-reference-page .metric-info:hover::before {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }body.ads-reference-page .kpi:nth-child(1) .metric-info::after, body.ads-reference-page .kpi:nth-child(2) .metric-info::after, body.ads-reference-page .kpi:nth-child(3) .metric-info::after {
      left: 0;
      transform: translateX(0) translateY(4px);
    }body.ads-reference-page .kpi:nth-child(1) .metric-info::before, body.ads-reference-page .kpi:nth-child(2) .metric-info::before, body.ads-reference-page .kpi:nth-child(3) .metric-info::before {
      left: 10px;
      transform: translateX(0) translateY(4px);
    }body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info::after {
      left: auto;
      right: 0;
      transform: translateX(0) translateY(4px);
    }body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info::before {
      left: auto;
      right: 10px;
      transform: translateX(0) translateY(4px);
    }body.ads-reference-page .kpi:nth-child(1) .metric-info:hover::after, body.ads-reference-page .kpi:nth-child(2) .metric-info:hover::after, body.ads-reference-page .kpi:nth-child(3) .metric-info:hover::after, body.ads-reference-page .kpi:nth-child(1) .metric-info:hover::before, body.ads-reference-page .kpi:nth-child(2) .metric-info:hover::before, body.ads-reference-page .kpi:nth-child(3) .metric-info:hover::before, body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info:hover::after, body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info:hover::before {
      transform: translateX(0) translateY(0);
    }body.ads-reference-page .kpi-label {
      overflow: visible !important;
    }body.ads-reference-page .kpi {
      overflow: visible !important;
    }body.ads-reference-page .kpis {
      overflow: visible !important;
      position: relative;
      z-index: 4;
    }body.ads-reference-page .info {
      position: relative;
      z-index: 1;
    }body.ads-reference-page /* V14 TOOLTIP POSITION FIX — only move the info icon to the top-right corner of KPI cards */
    .kpi {
      position: relative !important;
      overflow: visible !important;
    }body.ads-reference-page .kpi-label {
      position: relative !important;
      padding-right: 24px !important;
      align-items: flex-start !important;
    }body.ads-reference-page .metric-name {
      display: block !important;
      min-width: 0 !important;
    }body.ads-reference-page .metric-name > span:first-child {
      display: block !important;
      min-width: 0 !important;
      overflow: visible !important;
      text-overflow: clip !important;
    }body.ads-reference-page .metric-info {
      position: absolute !important;
      top: 10px !important;
      right: 10px !important;
      left: auto !important;
      width: 16px !important;
      height: 16px !important;
      border-radius: 999px !important;
      border: 1px solid rgba(32,48,38,.10) !important;
      background: rgba(255,255,255,.96) !important;
      color: #7a867e !important;
      display: inline-grid !important;
      place-items: center !important;
      font-size: 9px !important;
      line-height: 1 !important;
      font-weight: 650 !important;
      flex: 0 0 16px !important;
      cursor: help !important;
      z-index: 20 !important;
      box-shadow: 0 6px 12px rgba(17,32,22,.06) !important;
    }body.ads-reference-page .metric-info::after {
      left: auto !important;
      right: 0 !important;
      bottom: calc(100% + 10px) !important;
      transform: translateY(4px) !important;
      max-width: 245px !important;
    }body.ads-reference-page .metric-info::before {
      left: auto !important;
      right: 4px !important;
      bottom: calc(100% + 4px) !important;
      transform: translateY(4px) !important;
    }body.ads-reference-page .metric-info:hover::after, body.ads-reference-page .metric-info:hover::before {
      transform: translateY(0) !important;
    }body.ads-reference-page /* cancel old special positioning rules */
    .kpi:nth-child(1) .metric-info::after, body.ads-reference-page .kpi:nth-child(2) .metric-info::after, body.ads-reference-page .kpi:nth-child(3) .metric-info::after, body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info::after {
      left: auto !important;
      right: 0 !important;
      transform: translateY(4px) !important;
    }body.ads-reference-page .kpi:nth-child(1) .metric-info::before, body.ads-reference-page .kpi:nth-child(2) .metric-info::before, body.ads-reference-page .kpi:nth-child(3) .metric-info::before, body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info::before {
      left: auto !important;
      right: 4px !important;
      transform: translateY(4px) !important;
    }body.ads-reference-page .kpi:nth-child(1) .metric-info:hover::after, body.ads-reference-page .kpi:nth-child(2) .metric-info:hover::after, body.ads-reference-page .kpi:nth-child(3) .metric-info:hover::after, body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info:hover::after, body.ads-reference-page .kpi:nth-child(1) .metric-info:hover::before, body.ads-reference-page .kpi:nth-child(2) .metric-info:hover::before, body.ads-reference-page .kpi:nth-child(3) .metric-info:hover::before, body.ads-reference-page .kpi:nth-last-child(-n+2) .metric-info:hover::before {
      transform: translateY(0) !important;
    }body.ads-reference-page /* V15 TOOLTIP CORNER FIX — only KPI info icon placement */
    .kpi {
      position: relative !important;
      overflow: visible !important;
    }body.ads-reference-page .kpi-label {
      position: static !important;
      padding-right: 34px !important;
    }body.ads-reference-page .metric-name {
      position: static !important;
      display: block !important;
      min-width: 0 !important;
    }body.ads-reference-page .metric-info {
      position: absolute !important;
      top: 14px !important;
      right: 14px !important;
      left: auto !important;
      bottom: auto !important;
      width: 15px !important;
      height: 15px !important;
      border-radius: 999px !important;
      border: 1px solid rgba(32,48,38,.10) !important;
      background: rgba(255,255,255,.96) !important;
      color: #8b968f !important;
      display: inline-grid !important;
      place-items: center !important;
      font-size: 8.5px !important;
      line-height: 1 !important;
      font-weight: 650 !important;
      cursor: help !important;
      z-index: 30 !important;
      box-shadow: 0 5px 11px rgba(17,32,22,.055) !important;
      opacity: .86 !important;
    }body.ads-reference-page .metric-info:hover {
      opacity: 1 !important;
      color: #5f6d65 !important;
      border-color: rgba(32,48,38,.16) !important;
      box-shadow: 0 7px 14px rgba(17,32,22,.075) !important;
    }body.ads-reference-page .metric-info::after {
      left: auto !important;
      right: 0 !important;
      bottom: calc(100% + 10px) !important;
      transform: translateY(4px) !important;
      max-width: 245px !important;
    }body.ads-reference-page .metric-info::before {
      left: auto !important;
      right: 4px !important;
      bottom: calc(100% + 4px) !important;
      transform: translateY(4px) !important;
    }body.ads-reference-page .metric-info:hover::after, body.ads-reference-page .metric-info:hover::before {
      transform: translateY(0) !important;
    }body.ads-reference-page /* V16 MARKETING DYNAMICS TABLE — only weekly dynamics table was expanded */
    .marketing-dynamics-table {
      overflow: hidden !important;
    }body.ads-reference-page .mini-table-caption {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px 8px;
      border-bottom: 1px solid var(--line2);
      background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,249,.92));
    }body.ads-reference-page .mini-table-caption strong {
      color: #1f2e25;
      font-size: 11.5px;
      line-height: 1;
      letter-spacing: -0.01em;
      font-weight: 600;
      white-space: nowrap;
    }body.ads-reference-page .mini-table-caption span {
      color: #6f7d74;
      font-size: 9.8px;
      line-height: 1.25;
      font-weight: 400;
      text-align: right;
    }body.ads-reference-page .mini-table-scroll {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(32,48,38,.22) transparent;
    }body.ads-reference-page .mini-table-scroll::-webkit-scrollbar {
      height: 7px;
    }body.ads-reference-page .mini-table-scroll::-webkit-scrollbar-track {
      background: rgba(32,48,38,.035);
    }body.ads-reference-page .mini-table-scroll::-webkit-scrollbar-thumb {
      background: rgba(32,48,38,.18);
      border-radius: 999px;
    }body.ads-reference-page .marketing-dynamics-table table {
      min-width: 1280px;
      table-layout: auto;
    }body.ads-reference-page .marketing-dynamics-table th, body.ads-reference-page .marketing-dynamics-table td {
      padding: 7px 8px !important;
      font-size: 9.3px !important;
      line-height: 1.16 !important;
      vertical-align: middle;
    }body.ads-reference-page .marketing-dynamics-table th:first-child, body.ads-reference-page .marketing-dynamics-table td:first-child {
      position: sticky;
      left: 0;
      z-index: 3;
      background: #fff;
      box-shadow: 1px 0 0 var(--line2);
      min-width: 118px;
    }body.ads-reference-page .marketing-dynamics-table th:first-child {
      z-index: 4;
      background: #fbfdfb;
    }body.ads-reference-page .marketing-dynamics-table td:first-child {
      color: #1f2e25;
      font-weight: 600;
    }body.ads-reference-page .stock-cell {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 22px;
      padding: 4px 7px;
      border-radius: 999px;
      font-size: 8.8px;
      line-height: 1;
      font-weight: 550;
      white-space: nowrap;
    }body.ads-reference-page .stock-cell::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 999px;
      background: currentColor;
      flex: 0 0 auto;
    }body.ads-reference-page .stock-cell.warn {
      color: #b86511;
      background: var(--orange-soft);
    }body.ads-reference-page .stock-cell.critical {
      color: #c43731;
      background: var(--red-soft);
    }


body.ads-reference-page [hidden] { display: none !important; }
body.ads-reference-page a.nav-item { text-decoration: none; color: inherit; }
body.ads-reference-page .ads-campaign-rows { display: contents; }
body.ads-reference-page .products-table .ads-campaign-row { display: grid; grid-template-columns: 2fr repeat(14, minmax(86px, 1fr)); align-items: center; gap: 0; }
body.ads-reference-page .products-table .ads-campaign-row > span { padding: 0 10px; }
body.ads-reference-page .ads-campaign-name-button { border: 0; background: transparent; padding: 0; color: inherit; font: inherit; font-weight: 650; cursor: pointer; text-align: left; }
body.ads-reference-page .ads-row-affordance { display: block; margin-top: 4px; color: var(--green); font-size: 12px; font-style: normal; }
body.ads-reference-page .search input { width: 190px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
body.ads-reference-page button.row { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
body.ads-reference-page .ads-detail-metric-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
body.ads-reference-page .ads-detail-metric-chip { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 12px; color: var(--muted); cursor: pointer; }
body.ads-reference-page .ads-detail-metric-chip.active { background: var(--green-soft); color: var(--green-dark); border-color: rgba(21,144,82,.22); }


/* Premium refresh feedback: calm loading state for heavy recalculation. */
#dashboard-refresh-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}

#dashboard-refresh-button .refresh-button-spinner,
#dashboard-refresh-button .refresh-button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

#dashboard-refresh-button .refresh-button-spinner {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 0.98);
  animation: mvkRefreshSpin 0.9s linear infinite;
}

#dashboard-refresh-button .refresh-button-icon {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

#dashboard-refresh-button .refresh-button-label {
  position: relative;
  z-index: 1;
}

#dashboard-refresh-button.is-refresh-loading,
#dashboard-refresh-button.is-refresh-success,
#dashboard-refresh-button.is-refresh-locked,
#dashboard-refresh-button.is-refresh-error {
  opacity: 1;
  transform: none;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 36px rgba(17, 32, 22, 0.12);
}

#dashboard-refresh-button.is-refresh-loading {
  background:
    linear-gradient(135deg, rgba(39, 166, 91, 0.98) 0%, rgba(24, 119, 67, 0.98) 100%);
}

#dashboard-refresh-button.is-refresh-success {
  background:
    linear-gradient(135deg, rgba(31, 138, 76, 0.98) 0%, rgba(19, 104, 58, 0.98) 100%);
}

#dashboard-refresh-button.is-refresh-locked {
  background:
    linear-gradient(135deg, rgba(95, 111, 100, 0.96) 0%, rgba(67, 83, 72, 0.96) 100%);
}

#dashboard-refresh-button.is-refresh-error {
  background:
    linear-gradient(135deg, rgba(179, 86, 86, 0.98) 0%, rgba(132, 62, 62, 0.98) 100%);
}

#dashboard-refresh-button.is-refresh-loading::after,
#dashboard-refresh-button.is-refresh-success::after,
#dashboard-refresh-button.is-refresh-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 42%, transparent 74%);
  transform: translateX(-120%);
  animation: mvkRefreshSheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

.dashboard-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  width: fit-content;
  max-width: min(440px, 100%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.04);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-refresh-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(95, 111, 100, 0.34);
  box-shadow: 0 0 0 4px rgba(95, 111, 100, 0.07);
}

.dashboard-refresh-status.is-loading {
  color: var(--primary-strong);
  background: rgba(221, 242, 228, 0.68);
  border-color: rgba(31, 138, 76, 0.12);
}

.dashboard-refresh-status.is-loading::before {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(31, 138, 76, 0.1);
  animation: mvkRefreshPulse 1.45s ease-in-out infinite;
}

.dashboard-refresh-status.is-success {
  color: var(--primary-strong);
  background: rgba(221, 242, 228, 0.78);
  border-color: rgba(31, 138, 76, 0.12);
}

.dashboard-refresh-status.is-success::before {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(31, 138, 76, 0.1);
}

.dashboard-refresh-status.is-locked {
  color: #58685e;
  background: rgba(238, 244, 239, 0.84);
  border-color: rgba(17, 32, 22, 0.08);
}

.dashboard-refresh-status.is-locked::before {
  background: rgba(95, 111, 100, 0.72);
  box-shadow: 0 0 0 5px rgba(95, 111, 100, 0.08);
}

.dashboard-refresh-status.is-error {
  color: #a43d3d;
  background: rgba(179, 86, 86, 0.08);
  border-color: rgba(179, 86, 86, 0.16);
}

.dashboard-refresh-status.is-error::before {
  background: #b35656;
  box-shadow: 0 0 0 5px rgba(179, 86, 86, 0.1);
}

@keyframes mvkRefreshSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mvkRefreshSheen {
  0% {
    transform: translateX(-130%);
  }
  48%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes mvkRefreshPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(31, 138, 76, 0.1);
  }
  50% {
    transform: scale(0.84);
    box-shadow: 0 0 0 9px rgba(31, 138, 76, 0.04);
  }
}

/* Premium refresh lock v2: unmistakable non-clickable background sync state. */
body.dashboard-page #dashboard-refresh-button[disabled],
body.dashboard-page #dashboard-refresh-button[aria-disabled="true"],
body.dashboard-page #dashboard-refresh-button.is-refresh-loading,
body.dashboard-page #dashboard-refresh-button.is-refresh-locked,
body.dashboard-page #dashboard-refresh-button.is-refresh-success,
body.dashboard-page #dashboard-refresh-button.is-refresh-error {
  pointer-events: none;
  cursor: wait;
  user-select: none;
  opacity: 1;
  transform: none !important;
}

body.dashboard-page #dashboard-refresh-button.is-refresh-loading,
body.dashboard-page #dashboard-refresh-button.is-refresh-locked {
  min-height: 54px;
  color: #f7fff9;
  border: 1px solid rgba(21, 96, 53, 0.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(34, 142, 79, 0.94) 0%, rgba(20, 95, 56, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 34px rgba(18, 95, 54, 0.2),
    0 0 0 5px rgba(31, 138, 76, 0.06);
}

body.dashboard-page #dashboard-refresh-button.is-refresh-locked {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(91, 113, 99, 0.98) 0%, rgba(55, 76, 63, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 30px rgba(17, 32, 22, 0.13),
    0 0 0 5px rgba(95, 111, 100, 0.07);
}

body.dashboard-page #dashboard-refresh-button.is-refresh-success {
  min-height: 54px;
  color: #f7fff9;
  border-color: rgba(21, 96, 53, 0.18);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(31, 138, 76, 0.98) 0%, rgba(16, 100, 55, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 34px rgba(18, 95, 54, 0.2),
    0 0 0 5px rgba(31, 138, 76, 0.06);
}

body.dashboard-page #dashboard-refresh-button.is-refresh-error {
  min-height: 54px;
  color: #fff8f8;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(179, 86, 86, 0.98) 0%, rgba(125, 57, 57, 0.98) 100%);
}

body.dashboard-page #dashboard-refresh-button .refresh-button-spinner-soft {
  border-color: rgba(255, 255, 255, 0.26);
  border-top-color: rgba(255, 255, 255, 0.92);
  animation-duration: 1.18s;
}

body.dashboard-page #dashboard-refresh-button .refresh-button-label {
  letter-spacing: -0.01em;
}

body.dashboard-page .dashboard-refresh-status {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

body.dashboard-page .dashboard-refresh-status.is-loading,
body.dashboard-page .dashboard-refresh-status.is-locked {
  color: #385345;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.74), transparent 35%),
    linear-gradient(180deg, rgba(242, 248, 244, 0.98) 0%, rgba(229, 240, 233, 0.98) 100%);
  border-color: rgba(31, 138, 76, 0.1);
  box-shadow: 0 14px 28px rgba(17, 32, 22, 0.065);
}

body.dashboard-page .dashboard-refresh-status.is-refresh-done,
body.dashboard-page .dashboard-refresh-status.is-success {
  color: var(--primary-strong);
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(180deg, rgba(224, 244, 230, 0.98) 0%, rgba(207, 234, 216, 0.98) 100%);
  border-color: rgba(31, 138, 76, 0.14);
  box-shadow: 0 14px 28px rgba(31, 138, 76, 0.08);
}

body.dashboard-page .dashboard-refresh-status.is-refresh-done::before,
body.dashboard-page .dashboard-refresh-status.is-success::before {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(31, 138, 76, 0.11);
}

.dashboard-refresh-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 138, 76, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(180deg, rgba(248, 252, 249, 0.98) 0%, rgba(235, 245, 238, 0.98) 100%);
  box-shadow:
    0 24px 60px rgba(11, 24, 15, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  animation: mvkRefreshToastIn 0.28s ease both;
}

.dashboard-refresh-toast.is-hiding {
  animation: mvkRefreshToastOut 0.26s ease both;
}

.dashboard-refresh-toast-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #2aa65e 0%, #16733f 100%);
  box-shadow: 0 12px 22px rgba(31, 138, 76, 0.22);
  font-weight: 900;
}

.dashboard-refresh-toast.is-error .dashboard-refresh-toast-icon {
  background: linear-gradient(180deg, #bd6767 0%, #8a3d3d 100%);
  box-shadow: 0 12px 22px rgba(179, 86, 86, 0.2);
}

.dashboard-refresh-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-refresh-toast-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-refresh-toast-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@keyframes mvkRefreshToastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mvkRefreshToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 760px) {
  .dashboard-refresh-toast {
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}


/* Premium refresh lock v3: explicit blocked button with visible spinner. */
html body #dashboard-refresh-button.is-refresh-loading,
html body #dashboard-refresh-button.is-refresh-locked,
html body #dashboard-refresh-button[data-refresh-state="loading"],
html body #dashboard-refresh-button[data-refresh-state="locked"] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 12px 18px !important;
  border-radius: 18px !important;
  color: #f8fff9 !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, #1f8a4c 0%, #13683a 100%) !important;
  border: 1px solid rgba(19, 104, 58, .26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 18px 34px rgba(19, 104, 58, .24),
    0 0 0 5px rgba(31, 138, 76, .075) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: none !important;
}

html body #dashboard-refresh-button.is-refresh-locked,
html body #dashboard-refresh-button[data-refresh-state="locked"] {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.20), transparent 31%),
    linear-gradient(135deg, #506356 0%, #32443a 100%) !important;
  border-color: rgba(50, 68, 58, .28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 16px 30px rgba(17, 32, 22, .15),
    0 0 0 5px rgba(80, 99, 86, .08) !important;
}

html body #dashboard-refresh-button.is-refresh-loading::before,
html body #dashboard-refresh-button.is-refresh-locked::before,
html body #dashboard-refresh-button[data-refresh-state="loading"]::before,
html body #dashboard-refresh-button[data-refresh-state="locked"]::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,.32) !important;
  border-top-color: #ffffff !important;
  border-right-color: rgba(255,255,255,.78) !important;
  animation: mvkRefreshSpin .85s linear infinite !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08) !important;
}

html body #dashboard-refresh-button.is-refresh-loading::after,
html body #dashboard-refresh-button.is-refresh-locked::after,
html body #dashboard-refresh-button[data-refresh-state="loading"]::after,
html body #dashboard-refresh-button[data-refresh-state="locked"]::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 42%, transparent 74%) !important;
  transform: translateX(-130%) !important;
  animation: mvkRefreshSheen 2.1s ease-in-out infinite !important;
}

html body #dashboard-refresh-button .refresh-button-label {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

html body #dashboard-refresh-button[disabled],
html body #dashboard-refresh-button[aria-disabled="true"] {
  pointer-events: none !important;
  cursor: not-allowed !important;
}

html body .dashboard-refresh-status,
html body.dashboard-page .dashboard-refresh-status {
  display: flex !important;
  width: 100% !important;
  max-width: 260px !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 10px 13px !important;
  border-radius: 18px !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
  color: #3f574a !important;
  background:
    radial-gradient(circle at 14% 50%, rgba(255,255,255,.8), transparent 34%),
    linear-gradient(180deg, rgba(244,249,245,.98) 0%, rgba(229,240,233,.98) 100%) !important;
  border: 1px solid rgba(31, 138, 76, .10) !important;
  box-shadow: 0 14px 30px rgba(17, 32, 22, .065) !important;
  backdrop-filter: blur(14px) !important;
}

html body .dashboard-refresh-status.is-loading::before,
html body .dashboard-refresh-status.is-locked::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  box-shadow: 0 0 0 6px rgba(31, 138, 76, .11) !important;
  animation: mvkRefreshPulse 1.35s ease-in-out infinite !important;
}

html body .dashboard-refresh-status.is-refresh-done,
html body .dashboard-refresh-status.is-success {
  color: var(--primary-strong) !important;
  background:
    radial-gradient(circle at 14% 50%, rgba(255,255,255,.82), transparent 34%),
    linear-gradient(180deg, rgba(226,245,232,.98) 0%, rgba(209,235,218,.98) 100%) !important;
  border-color: rgba(31, 138, 76, .16) !important;
}

html body .dashboard-refresh-toast {
  top: 96px !important;
  right: 28px !important;
  bottom: auto !important;
  z-index: 9999 !important;
  border-radius: 24px !important;
  box-shadow:
    0 28px 70px rgba(11, 24, 15, .18),
    inset 0 1px 0 rgba(255,255,255,.72) !important;
}


/* Premium refresh lock v4: real DOM loader, not a pseudo-element. */
html body #dashboard-refresh-button .refresh-button-spinner-inline {
  position: relative !important;
  z-index: 2 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
  display: inline-block !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255, 255, 255, 0.32) !important;
  border-top-color: #ffffff !important;
  border-right-color: rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 255, 255, 0.18) !important;
  animation: mvkRefreshSpin 0.82s linear infinite !important;
}

html body #dashboard-refresh-button .refresh-button-sheen {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  pointer-events: none !important;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 74%) !important;
  transform: translateX(-130%) !important;
  animation: mvkRefreshSheen 2.1s ease-in-out infinite !important;
}

html body #dashboard-refresh-button.is-refresh-loading::before,
html body #dashboard-refresh-button.is-refresh-locked::before,
html body #dashboard-refresh-button[data-refresh-state="loading"]::before,
html body #dashboard-refresh-button[data-refresh-state="locked"]::before,
html body #dashboard-refresh-button.is-refresh-loading::after,
html body #dashboard-refresh-button.is-refresh-locked::after,
html body #dashboard-refresh-button[data-refresh-state="loading"]::after,
html body #dashboard-refresh-button[data-refresh-state="locked"]::after {
  content: none !important;
  display: none !important;
}

html body #dashboard-refresh-button.is-refresh-loading .refresh-button-label,
html body #dashboard-refresh-button.is-refresh-locked .refresh-button-label,
html body #dashboard-refresh-button[data-refresh-state="loading"] .refresh-button-label,
html body #dashboard-refresh-button[data-refresh-state="locked"] .refresh-button-label {
  position: relative !important;
  z-index: 2 !important;
  color: #f8fff9 !important;
  font-weight: 850 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.01em !important;
}

html body #dashboard-refresh-button.is-refresh-loading,
html body #dashboard-refresh-button.is-refresh-locked,
html body #dashboard-refresh-button[data-refresh-state="loading"],
html body #dashboard-refresh-button[data-refresh-state="locked"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}


/* Premium refresh lock v5: visible guaranteed spinner + subtle live progress. */
@keyframes mvkRefreshSpinHard {
  to { transform: rotate(360deg); }
}

@keyframes mvkRefreshProgressSweep {
  0% { transform: translateX(-72%); opacity: .38; }
  42% { opacity: .95; }
  100% { transform: translateX(72%); opacity: .38; }
}

@keyframes mvkRefreshButtonBreath {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 18px 38px rgba(17,32,22,.18), 0 0 0 5px rgba(80,99,86,.08); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 22px 48px rgba(17,32,22,.23), 0 0 0 7px rgba(31,138,76,.10); }
}

html body #dashboard-refresh-button.is-refresh-loading,
html body #dashboard-refresh-button.is-refresh-locked,
html body #dashboard-refresh-button[data-refresh-state="loading"],
html body #dashboard-refresh-button[data-refresh-state="locked"] {
  overflow: hidden !important;
  gap: 11px !important;
  animation: mvkRefreshButtonBreath 1.9s ease-in-out infinite !important;
}

html body #dashboard-refresh-button .refresh-button-spinner-wrap {
  position: relative !important;
  z-index: 3 !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  border-radius: 999px !important;
}

html body #dashboard-refresh-button .mvk-refresh-spinner-svg {
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  animation: mvkRefreshSpinHard .82s linear infinite !important;
  transform-origin: 50% 50% !important;
}

html body #dashboard-refresh-button.is-refresh-loading::before,
html body #dashboard-refresh-button.is-refresh-locked::before,
html body #dashboard-refresh-button[data-refresh-state="loading"]::before,
html body #dashboard-refresh-button[data-refresh-state="locked"]::before {
  content: "" !important;
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 999px !important;
  border: 3px solid rgba(255,255,255,.24) !important;
  border-top-color: #ffffff !important;
  border-right-color: rgba(255,255,255,.82) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 18px rgba(255,255,255,.20) !important;
  animation: mvkRefreshSpinHard .82s linear infinite !important;
}

html body #dashboard-refresh-button:has(.mvk-refresh-spinner-svg)::before {
  content: none !important;
  display: none !important;
}

html body #dashboard-refresh-button .refresh-button-sheen,
html body #dashboard-refresh-button.is-refresh-loading::after,
html body #dashboard-refresh-button.is-refresh-locked::after,
html body #dashboard-refresh-button[data-refresh-state="loading"]::after,
html body #dashboard-refresh-button[data-refresh-state="locked"]::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.20) 42%, transparent 72%) !important;
  transform: translateX(-130%) !important;
  animation: mvkRefreshSheen 2.1s ease-in-out infinite !important;
}

html body #dashboard-refresh-button .refresh-button-label {
  z-index: 3 !important;
}

html body .dashboard-refresh-status.is-loading,
html body .dashboard-refresh-status.is-locked,
html body.dashboard-page .dashboard-refresh-status.is-loading,
html body.dashboard-page .dashboard-refresh-status.is-locked {
  position: relative !important;
  overflow: hidden !important;
  padding-bottom: 16px !important;
}

html body .dashboard-refresh-status.is-loading::after,
html body .dashboard-refresh-status.is-locked::after {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 8px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(31,138,76,.10), rgba(31,138,76,.68), rgba(31,138,76,.10)) !important;
  animation: mvkRefreshProgressSweep 1.45s ease-in-out infinite !important;
}


/* Premium refresh cooldown v6: one manual refresh per hour, visible disabled state. */
html body #dashboard-refresh-button.is-refresh-cooldown,
html body #dashboard-refresh-button[data-refresh-state="cooldown"] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 58px !important;
  padding: 12px 18px !important;
  border-radius: 18px !important;
  color: #f8fff9 !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.24), transparent 31%),
    linear-gradient(135deg, #41584b 0%, #283a31 100%) !important;
  border: 1px solid rgba(40, 58, 49, .30) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 15px 28px rgba(17, 32, 22, .14),
    0 0 0 5px rgba(65, 88, 75, .08) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: none !important;
  overflow: hidden !important;
}

html body #dashboard-refresh-button.is-refresh-cooldown::after,
html body #dashboard-refresh-button[data-refresh-state="cooldown"]::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.16) 42%, transparent 72%) !important;
  transform: translateX(-130%) !important;
  animation: mvkRefreshSheen 3.2s ease-in-out infinite !important;
}

html body #dashboard-refresh-button.is-refresh-cooldown .refresh-button-icon,
html body #dashboard-refresh-button[data-refresh-state="cooldown"] .refresh-button-icon {
  position: relative !important;
  z-index: 3 !important;
  display: inline-flex !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: #f8fff9 !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06) !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

html body #dashboard-refresh-button.is-refresh-cooldown .refresh-button-label,
html body #dashboard-refresh-button[data-refresh-state="cooldown"] .refresh-button-label {
  position: relative !important;
  z-index: 3 !important;
  color: #f8fff9 !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

html body .dashboard-refresh-status.is-cooldown,
html body.dashboard-page .dashboard-refresh-status.is-cooldown {
  position: relative !important;
  overflow: hidden !important;
  color: #405348 !important;
  background:
    radial-gradient(circle at 14% 50%, rgba(255,255,255,.84), transparent 34%),
    linear-gradient(180deg, rgba(241,248,244,.98) 0%, rgba(225,237,229,.98) 100%) !important;
  border-color: rgba(65, 88, 75, .16) !important;
  box-shadow: 0 14px 30px rgba(17, 32, 22, .07) !important;
}

html body .dashboard-refresh-status.is-cooldown::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
  border-radius: 50% !important;
  background: #64786b !important;
  box-shadow: 0 0 0 6px rgba(65, 88, 75, .10) !important;
}

/* Центр решений: UI shell for future /webhook/mvk-decisions-api integration. */
.app-nav-item-feature {
  color: var(--primary-strong);
  background: linear-gradient(180deg, rgba(229, 246, 235, 0.82) 0%, rgba(255, 255, 255, 0.72) 100%);
  border-color: rgba(31, 138, 76, 0.12);
  box-shadow: inset 4px 0 0 rgba(31, 138, 76, 0.24);
}

.app-nav-item-feature .app-nav-icon {
  background: rgba(31, 138, 76, 0.12);
  color: var(--primary-strong);
}

.decisions-page {
  font-family: "Inter", "Manrope", "Segoe UI", sans-serif;
}

.decisions-topbar {
  align-items: center;
}

.decisions-title-block {
  display: grid;
  gap: 4px;
}

.decisions-title-block h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.decisions-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.decisions-actions {
  flex-wrap: wrap;
}

.decisions-ai-top-btn {
  min-height: 48px;
  padding: 0 18px;
}

.decisions-workspace {
  display: grid;
  gap: 18px;
}

.decisions-ai-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: stretch;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(31, 138, 76, 0.15);
  background:
    radial-gradient(circle at top left, rgba(58, 174, 101, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 243, 0.98) 100%);
  box-shadow: 0 22px 56px rgba(17, 32, 22, 0.08);
}

.decisions-ai-card.is-ai-demo-done {
  border-color: rgba(31, 138, 76, 0.24);
  box-shadow: 0 24px 64px rgba(31, 138, 76, 0.1);
}

.decisions-ai-copy,
.decisions-ai-result {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.decisions-card-kicker,
.decisions-task-meta,
.decisions-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.decisions-card-kicker > span:first-child {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.decisions-ai-copy p {
  max-width: 760px;
  margin: 0;
  color: #26382c;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.decisions-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.decisions-trust-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.decisions-ai-result {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(31, 138, 76, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.decisions-ai-result h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

.decisions-summary-grid div {
  min-height: 86px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(237, 248, 241, 0.9);
  border: 1px solid rgba(31, 138, 76, 0.1);
}

.decisions-summary-grid strong {
  display: block;
  color: var(--primary-strong);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.decisions-summary-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}

.decisions-ai-result ul,
.decisions-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decisions-ai-result li,
.decisions-checklist li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.decisions-ai-result li::before,
.decisions-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.08);
}

.decisions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.decisions-toolbar .store-switcher {
  min-width: 220px;
}

.decisions-periods,
.decisions-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(17, 32, 22, 0.035);
}

.decisions-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.decisions-chip.active,
.decisions-chip:hover {
  color: var(--primary-strong);
  background: rgba(221, 242, 228, 0.82);
  border-color: rgba(31, 138, 76, 0.12);
}

.decisions-layout {
  display: grid;
  grid-template-columns: 220px minmax(380px, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.decisions-filter-card,
.decisions-task-card,
.decisions-detail-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.decisions-filter-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.decisions-filter-group {
  display: grid;
  gap: 8px;
}

.decisions-filter-group h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.decisions-filter-group button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.decisions-filter-group button.active,
.decisions-filter-group button:hover {
  color: var(--primary-strong);
  background: rgba(31, 138, 76, 0.08);
  border-color: rgba(31, 138, 76, 0.09);
}

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

.decisions-task-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.decisions-task-card:hover,
.decisions-task-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(31, 138, 76, 0.22);
  box-shadow: 0 18px 42px rgba(17, 32, 22, 0.08);
}

.decisions-task-card.is-done {
  opacity: 0.62;
  background: rgba(248, 250, 248, 0.86);
}

.decisions-task-check {
  display: grid;
  place-items: start center;
  padding-top: 2px;
  cursor: pointer;
}

.decisions-task-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.decisions-task-check span {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(31, 138, 76, 0.24);
  border-radius: 9px;
  background: #fff;
}

.decisions-task-check input:checked + span {
  display: grid;
  place-items: center;
  background: rgba(31, 138, 76, 0.14);
}

.decisions-task-check input:checked + span::before {
  content: "✓";
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 900;
}

.decisions-task-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.decisions-task-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.decisions-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.decisions-badge-recommended,
.decisions-badge-source,
.decisions-badge-growth {
  color: var(--primary-strong);
  background: rgba(221, 242, 228, 0.95);
}

.decisions-badge-critical {
  color: #8c3535;
  background: rgba(179, 86, 86, 0.12);
}

.decisions-badge-warning {
  color: #8b641f;
  background: rgba(198, 142, 42, 0.15);
}

.decisions-badge-done {
  color: #66726a;
  background: rgba(17, 32, 22, 0.08);
}

.decisions-task-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.decisions-task-card.is-done h3 {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(17, 32, 22, 0.32);
}

.decisions-task-body p,
.decisions-detail-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.decisions-task-metrics,
.decisions-detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decisions-task-metrics span,
.decisions-detail-metrics span {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(244, 248, 245, 0.95);
  border: 1px solid rgba(17, 32, 22, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.decisions-task-action {
  justify-self: start;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(31, 138, 76, 0.13);
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.08);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.decisions-detail-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.decisions-detail-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.decisions-detail-panel section {
  display: grid;
  gap: 8px;
}

.decisions-detail-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.decisions-detail-head > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.decisions-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.decisions-detail-empty {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1240px) {
  .decisions-ai-card,
  .decisions-layout {
    grid-template-columns: 1fr;
  }

  .decisions-filter-card,
  .decisions-detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .decisions-topbar {
    align-items: flex-start;
  }

  .decisions-actions,
  .decisions-actions .app-ghost-btn,
  .decisions-actions .btn {
    width: 100%;
  }

  .decisions-workspace {
    padding: 18px 16px 96px;
  }

  .decisions-ai-card {
    padding: 18px;
    border-radius: 24px;
  }

  .decisions-summary-grid {
    grid-template-columns: 1fr;
  }

  .decisions-toolbar .app-control,
  .decisions-periods,
  .decisions-scope-tabs {
    width: 100%;
  }

  .decisions-task-card {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 15px;
  }
}

/* Центр решений: page now reuses the current Dashboard / Products / Ads shell. */
.decisions-page {
  min-height: 100vh;
  font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #132018;
  background:
    radial-gradient(circle at 42% 4%, rgba(31, 138, 76, 0.07), transparent 24%),
    radial-gradient(circle at 76% 34%, rgba(31, 138, 76, 0.055), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, #f5f8f5 100%);
  overflow-x: hidden;
}

.decisions-page .page {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.decisions-page .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px 24px;
  background: linear-gradient(180deg, #f7fbf8 0%, #f2f8f4 100%);
  border-right: 1px solid rgba(20, 38, 26, 0.09);
  display: flex;
  flex-direction: column;
}

.decisions-page .brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.decisions-page .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  flex: 0 0 auto;
}

.decisions-page .brand-title {
  margin-top: 3px;
  font-size: 18px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.decisions-page .brand-subtitle {
  margin-top: 9px;
  color: #657369;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 400;
}

.decisions-page .nav {
  margin-top: 62px;
  display: grid;
  gap: 12px;
}

.decisions-page .nav-item {
  height: 48px;
  border-radius: 16px;
  background: transparent;
  color: #26362c;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 15px;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: -0.012em;
  text-decoration: none;
}

.decisions-page .nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  color: #405349;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(20, 38, 26, 0.035);
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
}

.decisions-page .nav-item.active {
  color: #0f6b3a;
  background: linear-gradient(90deg, #dff2e6 0%, rgba(223, 242, 230, 0.42) 100%);
  box-shadow: 0 12px 34px rgba(31, 138, 76, 0.08);
}

.decisions-page .nav-item.active .nav-icon {
  color: #0f6b3a;
  background: rgba(255, 255, 255, 0.58);
}

.decisions-page .tariff-card {
  margin-top: auto;
  min-height: 82px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 38, 26, 0.09);
  box-shadow: 0 12px 32px rgba(17, 32, 22, 0.045);
  color: inherit;
  text-decoration: none;
}

.decisions-page .tariff-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #e4f4eb;
  color: #0f6b3a;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.decisions-page .tariff-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
}

.decisions-page .tariff-card span {
  display: block;
  margin-top: 3px;
  color: #657369;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
}

.decisions-page .tariff-arrow {
  margin-left: auto;
  color: #657369;
  font-weight: 500;
}

.decisions-page .main {
  min-width: 0;
  padding: 28px 28px 32px;
}

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

.decisions-page .decisions-title-block h1 {
  font-size: clamp(30px, 3vw, 42px);
}

.decisions-page .decisions-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.decisions-page .app-ghost-btn,
.decisions-page .decisions-ai-top-btn {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
}

.decisions-page .decisions-workspace {
  gap: 14px;
}

.decisions-page .decisions-toolbar {
  padding: 14px;
  border-radius: 24px;
}

.decisions-page .decisions-toolbar .store-switcher {
  min-width: 245px;
}

.decisions-page .decisions-ai-card {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(17, 32, 22, 0.055);
}

.decisions-page .decisions-ai-copy p {
  max-width: 760px;
  font-size: 13.5px;
}

.decisions-page .decisions-ai-result {
  align-self: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.decisions-page .decisions-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.decisions-page .decisions-summary-grid div {
  min-height: 86px;
  padding: 13px 10px;
}

.decisions-page .decisions-summary-grid strong {
  font-size: 24px;
}

.decisions-page .decisions-layout {
  grid-template-columns: 210px minmax(360px, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
}

.decisions-page .decisions-filter-card,
.decisions-page .decisions-detail-panel {
  top: 28px;
}

.decisions-page .decisions-filter-card {
  padding: 16px;
  gap: 14px;
}

.decisions-page .decisions-task-card {
  padding: 15px;
  border-radius: 22px;
}

.decisions-page .decisions-task-body {
  gap: 8px;
}

.decisions-page .decisions-task-body h3 {
  font-size: 17px;
}

.decisions-page .decisions-detail-panel {
  padding: 18px;
  border-radius: 24px;
}

.decisions-page .decisions-detail-panel h2 {
  font-size: 20px;
}

@media (max-width: 1240px) {
  .decisions-page .decisions-ai-card,
  .decisions-page .decisions-layout {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-filter-card,
  .decisions-page .decisions-detail-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .decisions-page .page {
    grid-template-columns: 1fr;
  }

  .decisions-page .sidebar {
    position: static;
    height: auto;
  }

  .decisions-page .main {
    padding: 20px 16px 28px;
  }

  .decisions-page .decisions-topbar,
  .decisions-page .decisions-actions,
  .decisions-page .decisions-actions .app-ghost-btn,
  .decisions-page .decisions-actions .btn,
  .decisions-page .decisions-toolbar .app-control,
  .decisions-page .decisions-periods {
    width: 100%;
  }

  .decisions-page .decisions-topbar,
  .decisions-page .decisions-actions {
    flex-direction: column;
  }
}

.decisions-page .decisions-detail-actions .btn-secondary-light {
  color: #0f6b3a;
  background: rgba(31, 138, 76, 0.08);
  border-color: rgba(31, 138, 76, 0.13);
  box-shadow: none;
}

/* Decisions reference polish: compact green task center. */
.decisions-page {
  background:
    radial-gradient(circle at 36% 0%, rgba(31, 138, 76, 0.08), transparent 26%),
    linear-gradient(180deg, #f7faf7 0%, #f2f7f3 100%);
}

.decisions-page .main {
  padding: 32px 32px 34px;
}

.decisions-page .decisions-topbar {
  align-items: flex-start;
  margin-bottom: 14px;
}

.decisions-page .decisions-title-block {
  gap: 7px;
}

.decisions-page .decisions-title-block h1 {
  font-size: clamp(34px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.decisions-page .decisions-title-block p {
  color: #6a756d;
  font-size: 15px;
  line-height: 1.35;
}

.decisions-page .decisions-actions .app-ghost-btn,
.decisions-page .decisions-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.decisions-page .decisions-workspace {
  gap: 14px;
}

.decisions-page .decisions-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.decisions-control-card {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(20, 38, 26, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(17, 32, 22, 0.035);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #14261a;
  cursor: pointer;
}

.decisions-control-card strong {
  font-size: 13.5px;
  font-weight: 780;
  white-space: nowrap;
}

.decisions-control-icon {
  width: 25px;
  height: 25px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #0f7f3d;
  background: #eaf6ee;
  font-size: 12px;
  font-weight: 900;
}

.decisions-control-arrow {
  margin-left: 8px;
  color: #6a756d;
  font-size: 15px;
  line-height: 1;
}

.decisions-page .decisions-periods,
.decisions-page .decisions-scope-tabs {
  min-height: 46px;
  padding: 5px;
  border-radius: 15px;
  border-color: rgba(20, 38, 26, 0.09);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(17, 32, 22, 0.035);
  gap: 4px;
}

.decisions-page .decisions-chip {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
}

.decisions-page .decisions-chip.active,
.decisions-page .decisions-chip:hover {
  color: #0f7f3d;
  background: #eaf6ee;
  border-color: rgba(15, 127, 61, 0.11);
}

.decisions-insight-strip {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 127, 61, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 10%, rgba(20, 148, 71, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 246, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(17, 32, 22, 0.055);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: center;
}

.decisions-insight-copy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.decisions-sparkle {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0f7f3d;
  background: #eaf6ee;
  box-shadow: inset 0 0 0 1px rgba(15, 127, 61, 0.09);
}

.decisions-insight-copy p,
.decisions-insight-copy small {
  margin: 0;
  color: #6a756d;
  font-size: 13px;
  line-height: 1.35;
}

.decisions-insight-copy strong {
  display: block;
  margin: 2px 0 5px;
  color: #14261a;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.decisions-page .decisions-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.decisions-page .decisions-summary-grid div {
  min-height: 62px;
  padding: 10px 11px;
  border-radius: 15px;
  background: #eef8f1;
  border-color: rgba(15, 127, 61, 0.1);
}

.decisions-page .decisions-summary-grid strong {
  color: #0f7f3d;
  font-size: 25px;
  font-weight: 800;
}

.decisions-page .decisions-summary-grid span {
  margin-top: 4px;
  color: #6a756d;
  font-size: 12px;
  font-weight: 800;
}

.decisions-page .decisions-ai-card {
  min-height: 78px;
  padding: 15px 17px;
  border-radius: 19px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98) 0%, rgba(239, 248, 242, 0.98) 100%);
  border-color: rgba(15, 127, 61, 0.11);
  box-shadow: 0 12px 26px rgba(17, 32, 22, 0.045);
}

.decisions-page .decisions-ai-copy {
  gap: 7px;
}

.decisions-page .decisions-card-kicker > span:first-child {
  color: #14261a;
  font-size: 13px;
  font-weight: 850;
  text-transform: none;
  letter-spacing: -0.01em;
}

.decisions-page .decisions-ai-copy p {
  color: #6a756d;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.decisions-page .decisions-ai-actions {
  justify-content: flex-end;
  gap: 10px;
}

.decisions-page .decisions-ai-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.decisions-page .decisions-trust-line {
  flex-basis: 100%;
  text-align: right;
  font-size: 11.5px;
}

.decisions-page .decisions-layout {
  grid-template-columns: 260px minmax(520px, 1fr) 390px;
  gap: 16px;
}

.decisions-page .decisions-filter-card,
.decisions-page .decisions-task-card,
.decisions-page .decisions-detail-panel {
  border-radius: 18px;
  border-color: rgba(20, 38, 26, 0.09);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(17, 32, 22, 0.05);
}

.decisions-page .decisions-filter-card {
  top: 28px;
  padding: 16px;
  gap: 16px;
}

.decisions-page .decisions-filter-group {
  gap: 7px;
}

.decisions-page .decisions-filter-group h2 {
  margin-bottom: 4px;
  color: #6a756d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.decisions-page .decisions-filter-group button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #516057;
  font-size: 13px;
  font-weight: 750;
}

.decisions-page .decisions-filter-group button em {
  color: #7b887f;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.decisions-page .decisions-filter-group button.active,
.decisions-page .decisions-filter-group button:hover {
  color: #0f7f3d;
  background: #eaf6ee;
  border-color: rgba(15, 127, 61, 0.09);
}

.decisions-page .decisions-task-list {
  gap: 12px;
}

.decisions-page .decisions-task-card {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.04);
}

.decisions-page .decisions-task-card.is-active.decisions-priority-critical {
  border-color: rgba(231, 76, 60, 0.34);
  background: linear-gradient(180deg, #fffafa 0%, #fff0ef 100%);
  box-shadow: 0 16px 34px rgba(155, 50, 42, 0.08);
}

.decisions-page .decisions-task-card.is-done {
  opacity: 0.68;
  background: #f7f9f7;
}

.decisions-page .decisions-task-check span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

.decisions-task-topline,
.decisions-task-footer,
.decisions-detail-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.decisions-page .decisions-task-body {
  gap: 8px;
}

.decisions-page .decisions-task-meta {
  gap: 6px;
}

.decisions-page .decisions-badge,
.decisions-type-badge,
.decisions-checklist-badge,
.decisions-detail-badges time {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.decisions-type-badge,
.decisions-detail-badges time {
  display: inline-flex;
  align-items: center;
  color: #607069;
  background: #f2f6f3;
  border: 1px solid rgba(20, 38, 26, 0.06);
}

.decisions-page .decisions-badge-critical {
  color: #b33f35;
  background: #fff0ef;
}

.decisions-page .decisions-badge-warning {
  color: #a06409;
  background: #fff7e6;
}

.decisions-page .decisions-badge-growth {
  color: #149447;
  background: #eaf7ee;
}

.decisions-page .decisions-task-time {
  color: #7a877f;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.decisions-page .decisions-task-body h3 {
  font-size: 16.5px;
  line-height: 1.22;
  font-weight: 780;
}

.decisions-page .decisions-task-body p,
.decisions-page .decisions-detail-panel p {
  color: #6a756d;
  font-size: 13px;
  line-height: 1.42;
}

.decisions-page .decisions-task-metrics {
  gap: 6px;
}

.decisions-page .decisions-task-metrics span {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 10px;
  color: #26362c;
  font-size: 12px;
  font-weight: 750;
  background: #f5f8f5;
}

.decisions-page .decisions-task-action {
  min-height: 31px;
  padding: 0 11px;
  flex: 0 0 auto;
  border-radius: 11px;
  font-size: 12px;
}

.decisions-page .decisions-detail-panel {
  top: 28px;
  padding: 18px;
  gap: 14px;
  border-radius: 20px;
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.decisions-page .decisions-detail-head {
  flex-wrap: nowrap;
  justify-content: space-between;
}

.decisions-page .decisions-detail-head > span:first-child {
  color: #14261a;
  font-size: 18px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
}

.decisions-detail-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 10px;
  background: #f5f8f5;
  color: #6a756d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.decisions-page .decisions-detail-badges {
  justify-content: flex-start;
  gap: 7px;
}

.decisions-page .decisions-detail-panel h2 {
  font-size: 19px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.decisions-page .decisions-detail-panel section {
  gap: 7px;
}

.decisions-page .decisions-detail-panel h3 {
  color: #14261a;
  font-size: 13px;
  font-weight: 850;
}

.decisions-page .decisions-checklist {
  gap: 7px;
  padding: 0;
  list-style: none;
}

.decisions-page .decisions-checklist li {
  min-height: 38px;
  padding: 9px 10px 9px 12px;
  border-radius: 13px;
  background: #f7faf7;
  border: 1px solid rgba(20, 38, 26, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #26362c;
  font-size: 13px;
  font-weight: 680;
}

.decisions-page .decisions-checklist li::before {
  display: none;
}

.decisions-page .decisions-checklist li i {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid rgba(15, 127, 61, 0.24);
  background: #ffffff;
  flex: 0 0 auto;
}

.decisions-page .decisions-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.decisions-page .decisions-detail-metrics span {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  color: #14261a;
  font-size: 13px;
  font-weight: 800;
  background: #f5f9f6;
}

.decisions-manager-comment {
  padding: 12px 13px;
  border-radius: 14px;
  color: #255638 !important;
  background: #eaf6ee;
  border: 1px solid rgba(15, 127, 61, 0.11);
  font-weight: 650;
}

.decisions-status-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 13px;
  background: #f2f6f3;
  border: 1px solid rgba(20, 38, 26, 0.07);
}

.decisions-status-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6a756d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.decisions-status-tabs button.active,
.decisions-status-tabs button:hover {
  color: #0f7f3d;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 32, 22, 0.045);
}

.decisions-page .decisions-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 9px;
  margin-top: 2px;
}

.decisions-page .decisions-detail-actions .btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 850;
}

@media (max-width: 1380px) {
  .decisions-page .decisions-layout {
    grid-template-columns: 240px minmax(480px, 1fr) 360px;
  }
}

@media (max-width: 1240px) {
  .decisions-insight-strip,
  .decisions-page .decisions-ai-card,
  .decisions-page .decisions-layout {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-ai-actions,
  .decisions-page .decisions-trust-line {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .decisions-page .decisions-toolbar,
  .decisions-page .decisions-periods,
  .decisions-page .decisions-scope-tabs,
  .decisions-control-card,
  .decisions-page .decisions-task-footer,
  .decisions-page .decisions-detail-actions {
    width: 100%;
  }

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

/* Decisions page: final reference-matched polish, scoped to Центр решений only. */
.decisions-page {
  color: #17231b;
  background:
    radial-gradient(circle at 52% -8%, rgba(28, 145, 72, 0.075), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, #f5faf6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.decisions-page .main {
  padding: 31px 28px 30px;
}

.decisions-page .decisions-topbar {
  margin-bottom: 16px;
  align-items: flex-start;
}

.decisions-page .decisions-title-block h1 {
  font-size: clamp(33px, 2.7vw, 38px);
  font-weight: 770;
  letter-spacing: -0.05em;
}

.decisions-page .decisions-title-block p {
  color: #737d78;
  font-size: 15px;
  font-weight: 450;
}

.decisions-page .decisions-actions {
  gap: 10px;
}

.decisions-page .decisions-actions .app-ghost-btn,
.decisions-page .decisions-actions .btn {
  min-height: 41px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 8px 20px rgba(22, 34, 27, 0.035);
}

.decisions-page .decisions-actions .app-ghost-btn::before {
  content: "↻";
  margin-right: 8px;
  color: #101a14;
  font-size: 18px;
  line-height: 1;
}

.decisions-page .decisions-ai-top-btn {
  color: #117b39;
  background: #ffffff;
  border: 1px solid rgba(20, 151, 70, 0.28);
}

.decisions-page .decisions-ai-top-btn::before,
.decisions-page .decisions-ai-strip-btn::before {
  content: "✦";
  margin-right: 8px;
}

.decisions-page .decisions-workspace {
  gap: 12px;
}

.decisions-page .decisions-toolbar {
  gap: 9px;
}

.decisions-page .decisions-control-card {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  border-color: rgba(20, 38, 26, 0.08);
  box-shadow: 0 9px 22px rgba(17, 32, 22, 0.035);
}

.decisions-page .decisions-toolbar .store-switcher {
  min-width: 175px;
}

.decisions-page .decisions-control-icon {
  width: 22px;
  height: 22px;
  color: #111b14;
  background: transparent;
  box-shadow: none;
}

.decisions-page .decisions-control-card strong {
  font-size: 13px;
  font-weight: 740;
}

.decisions-page .decisions-periods,
.decisions-page .decisions-scope-tabs {
  min-height: 44px;
  padding: 5px;
  border-radius: 11px;
  gap: 2px;
}

.decisions-page .decisions-chip {
  min-width: 78px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  color: #59635d;
  font-size: 12px;
  font-weight: 680;
}

.decisions-page .decisions-chip.active,
.decisions-page .decisions-chip:hover {
  color: #0f7f3d;
  background: #eaf6ee;
}

.decisions-page .decisions-insight-strip {
  min-height: 84px;
  padding: 14px 17px;
  grid-template-columns: minmax(420px, 1fr) minmax(610px, auto);
  gap: 17px;
  border-radius: 14px;
  border-color: rgba(20, 38, 26, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 32, 22, 0.045);
}

.decisions-page .decisions-sparkle {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  color: #0f9b46;
  background: #eef8f1;
  font-size: 17px;
}

.decisions-page .decisions-insight-copy {
  gap: 12px;
}

.decisions-page .decisions-insight-copy p,
.decisions-page .decisions-insight-copy small {
  color: #68736c;
  font-size: 12.7px;
  font-weight: 440;
}

.decisions-page .decisions-insight-copy strong {
  margin: 1px 0 5px;
  color: #18231c;
  font-size: 14.2px;
  font-weight: 720;
  letter-spacing: -0.012em;
}

.decisions-page .decisions-insight-actions {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.decisions-page .decisions-summary-grid {
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 7px;
}

.decisions-page .decisions-summary-grid div {
  min-width: 0;
  min-height: 56px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 26, 0.075);
  box-shadow: 0 8px 18px rgba(17, 32, 22, 0.028);
}

.decisions-page .decisions-summary-grid strong {
  color: #111a14;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 760;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.decisions-page .decisions-summary-grid span {
  color: #5e6962;
  font-size: 11.5px;
  font-weight: 620;
}

.decisions-page .decisions-checklist-strip-btn,
.decisions-page .decisions-ai-strip-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 760;
  white-space: nowrap;
}

.decisions-page .decisions-checklist-strip-btn {
  color: #117b39;
  background: #ffffff;
  border-color: rgba(15, 127, 61, 0.28);
  box-shadow: 0 8px 18px rgba(17, 32, 22, 0.035);
}

.decisions-page .decisions-checklist-strip-btn::before {
  content: "☑";
  margin-right: 8px;
}

.decisions-page .decisions-checklist-strip-btn:hover {
  border-color: rgba(15, 127, 61, 0.44);
  box-shadow: 0 12px 22px rgba(15, 127, 61, 0.10);
}

.decisions-page .decisions-trust-line {
  grid-column: 1 / -1;
  color: #69746d;
  font-size: 11.7px;
  line-height: 1.25;
  text-align: right;
}

.decisions-page .decisions-layout {
  grid-template-columns: 250px minmax(530px, 1fr) 390px;
  gap: 14px;
  align-items: start;
}

.decisions-page .decisions-filter-card,
.decisions-page .decisions-task-card,
.decisions-page .decisions-detail-panel {
  border-radius: 14px;
  border-color: rgba(20, 38, 26, 0.085);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(17, 32, 22, 0.045);
}

.decisions-page .decisions-filter-card {
  top: 26px;
  padding: 14px;
  gap: 17px;
}

.decisions-page .decisions-filter-group {
  gap: 6px;
}

.decisions-page .decisions-filter-group h2 {
  margin-bottom: 5px;
  color: #17231b;
  font-size: 13px;
  font-weight: 760;
  text-transform: none;
  letter-spacing: -0.01em;
}

.decisions-page .decisions-filter-group button {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  color: #333f38;
  font-size: 12.6px;
  font-weight: 600;
}

.decisions-page .decisions-filter-group button span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.decisions-page .decisions-filter-group button span::before {
  content: "◇";
  color: #8a968f;
  font-size: 12px;
  line-height: 1;
}

.decisions-page .decisions-filter-group button.active span::before,
.decisions-page .decisions-filter-group button:hover span::before {
  content: "◈";
  color: #139246;
}

.decisions-page .decisions-filter-group button em {
  color: #5f6b63;
  font-size: 12px;
  font-weight: 620;
}

.decisions-page .decisions-filter-group button.active,
.decisions-page .decisions-filter-group button:hover {
  color: #0f7f3d;
  background: linear-gradient(90deg, #eef8f1 0%, rgba(238, 248, 241, 0.45) 100%);
}

.decisions-page .decisions-task-list {
  gap: 10px;
}

.decisions-page .decisions-task-card {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  min-height: 124px;
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(17, 32, 22, 0.038);
}

.decisions-page .decisions-task-card:hover,
.decisions-page .decisions-task-card.is-active {
  transform: none;
  box-shadow: 0 14px 34px rgba(17, 32, 22, 0.058);
}

.decisions-page .decisions-task-card.is-active.decisions-priority-critical {
  border-color: rgba(238, 76, 67, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fff7f6 100%);
  box-shadow: 0 13px 32px rgba(196, 65, 56, 0.08);
}

.decisions-page .decisions-task-card.is-done {
  opacity: 0.62;
  background: #f7f8f7;
}

.decisions-page .decisions-task-check {
  padding-top: 5px;
}

.decisions-page .decisions-task-check span {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border-color: rgba(15, 127, 61, 0.22);
}

.decisions-page .decisions-task-check input:checked + span {
  background: #a0a7a2;
  border-color: #a0a7a2;
}

.decisions-page .decisions-task-check input:checked + span::before {
  color: #ffffff;
  font-size: 13px;
}

.decisions-page .decisions-task-body {
  gap: 7px;
}

.decisions-page .decisions-task-topline {
  align-items: flex-start;
}

.decisions-page .decisions-task-meta {
  gap: 6px;
}

.decisions-page .decisions-badge,
.decisions-type-badge,
.decisions-checklist-badge,
.decisions-detail-badges time {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.decisions-page .decisions-badge-critical {
  color: #e0342f;
  background: #fff0ef;
}

.decisions-page .decisions-badge-warning {
  color: #e28000;
  background: #fff5e4;
}

.decisions-page .decisions-badge-growth {
  color: #109152;
  background: #dff5eb;
}

.decisions-page .decisions-badge-done {
  color: #69736d;
  background: #ecefee;
}

.decisions-type-badge,
.decisions-detail-badges time {
  color: #3e4742;
  background: #f3f5f4;
}

.decisions-checklist-badge {
  color: #117b39;
  background: #eaf6ee;
  border: 1px solid rgba(15, 127, 61, 0.12);
  display: inline-flex;
  align-items: center;
}

.decisions-checklist-badge.is-cadence {
  color: #3e4742;
  background: #ffffff;
  border-color: rgba(20, 38, 26, 0.09);
}

.decisions-page .decisions-task-time {
  color: #6f7a73;
  font-size: 11.5px;
  font-weight: 560;
}

.decisions-page .decisions-task-body h3 {
  color: #17231b;
  font-size: 15.6px;
  line-height: 1.22;
  font-weight: 730;
  letter-spacing: -0.024em;
}

.decisions-page .decisions-task-body p,
.decisions-page .decisions-detail-panel p {
  color: #606b64;
  font-size: 12.7px;
  line-height: 1.38;
  font-weight: 430;
}

.decisions-page .decisions-task-footer {
  align-items: end;
  gap: 10px;
  margin-top: 2px;
}

.decisions-page .decisions-task-metrics {
  gap: 6px;
}

.decisions-page .decisions-task-metrics .decisions-metric-chip {
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 7px;
  color: #1d2a21;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 26, 0.075);
  box-shadow: 0 6px 14px rgba(17, 32, 22, 0.025);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 540;
}

.decisions-page .decisions-metric-chip small {
  color: #66716a;
  font-size: 11.2px;
  font-weight: 500;
}

.decisions-page .decisions-metric-chip b {
  color: #152019;
  font-size: 12px;
  font-weight: 780;
}

.decisions-page .decisions-metric-chip.is-negative b,
.decisions-page .decisions-detail-metric.is-negative b {
  color: #e0342f;
}

.decisions-page .decisions-metric-chip.is-positive,
.decisions-page .decisions-detail-metric.is-positive {
  background: #eef8f1;
  border-color: rgba(15, 127, 61, 0.1);
}

.decisions-page .decisions-task-action {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  color: #0f7f3d;
  background: #ffffff;
  border-color: rgba(15, 127, 61, 0.36);
  font-size: 12px;
  font-weight: 720;
}

.decisions-page .decisions-detail-panel {
  top: 26px;
  gap: 13px;
  padding: 16px;
  border-radius: 14px;
  max-height: calc(100vh - 52px);
}

.decisions-page .decisions-detail-head > span:first-child {
  color: #17231b;
  font-size: 18px;
  font-weight: 760;
}

.decisions-page .decisions-detail-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f7f8f7;
  color: #606b64;
  font-size: 22px;
  font-weight: 300;
}

.decisions-page .decisions-detail-badges {
  gap: 6px;
}

.decisions-page .decisions-checklist-detail-meta {
  margin: -4px 0 0;
  color: #117b39;
  font-size: 12px;
  font-weight: 700;
}

.decisions-page .decisions-suggested-action {
  width: fit-content;
  padding: 9px 11px;
  border-radius: 9px;
  color: #0f7f3d !important;
  background: #eef8f1;
  border: 1px solid rgba(15, 127, 61, 0.12);
  font-weight: 720 !important;
}

.decisions-page .decisions-detail-panel h2 {
  color: #17231b;
  font-size: 17.2px;
  line-height: 1.2;
  font-weight: 740;
  letter-spacing: -0.024em;
}

.decisions-page .decisions-detail-panel section {
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 38, 26, 0.075);
}

.decisions-page .decisions-detail-panel h3 {
  color: #17231b;
  font-size: 13px;
  font-weight: 760;
}

.decisions-page .decisions-checklist {
  gap: 8px;
}

.decisions-page .decisions-checklist li {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #36413a;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  font-size: 12.6px;
  font-weight: 500;
}

.decisions-page .decisions-check-index {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #109152;
  background: #e7f6ec;
  border: 1px solid rgba(15, 127, 61, 0.18);
  font-size: 11px;
  font-weight: 700;
}

.decisions-page .decisions-checklist li i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border-color: rgba(20, 38, 26, 0.18);
}

.decisions-page .decisions-detail-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.decisions-page .decisions-detail-metrics .decisions-detail-metric {
  min-height: 65px;
  padding: 11px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 26, 0.08);
  display: grid;
  align-content: center;
  gap: 7px;
}

.decisions-page .decisions-detail-metric small {
  color: #68736c;
  font-size: 11.2px;
  font-weight: 500;
}

.decisions-page .decisions-detail-metric b {
  color: #142019;
  font-size: 13px;
  font-weight: 770;
}

.decisions-page .decisions-manager-comment {
  padding: 13px 14px;
  border-radius: 8px;
  color: #1f5535 !important;
  background: #dff3e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 540;
}

.decisions-page .decisions-manager-comment i {
  color: #0f8a3c;
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
}

.decisions-page .decisions-status-tabs {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.decisions-page .decisions-status-tabs button {
  min-height: 34px;
  border: 1px solid rgba(20, 38, 26, 0.085);
  border-radius: 8px;
  background: #ffffff;
  color: #3f4943;
  font-size: 12px;
  font-weight: 610;
}

.decisions-page .decisions-status-tabs button.active,
.decisions-page .decisions-status-tabs button:hover {
  color: #0f7f3d;
  border-color: rgba(15, 127, 61, 0.42);
  box-shadow: none;
}

.decisions-page .decisions-detail-actions {
  gap: 10px;
  margin-top: 0;
}

.decisions-page .decisions-detail-actions .btn {
  min-height: 41px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 750;
}

.decisions-page .decisions-detail-actions .btn-secondary-light {
  color: #0f7f3d;
  background: #ffffff;
  border-color: rgba(15, 127, 61, 0.36);
}

.decisions-page .decisions-detail-actions.is-archive {
  grid-template-columns: minmax(0, 1fr);
}

.decisions-page .decisions-detail-actions.is-archive .btn-secondary-light {
  background: rgba(31, 138, 76, 0.08);
  border-color: rgba(15, 127, 61, 0.32);
}

@media (max-width: 1480px) {
  .decisions-page .decisions-layout {
    grid-template-columns: 230px minmax(480px, 1fr) 360px;
  }

  .decisions-page .decisions-insight-strip {
    grid-template-columns: minmax(360px, 1fr) minmax(590px, auto);
  }
}

@media (max-width: 1240px) {
  .decisions-page .decisions-insight-strip,
  .decisions-page .decisions-layout {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-insight-actions {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-checklist-strip-btn,
  .decisions-page .decisions-ai-strip-btn {
    width: 100%;
  }

  .decisions-page .decisions-trust-line {
    text-align: left;
  }
}

/* Decisions local/demo interactions */
.decisions-page .decisions-store-card {
  min-height: 48px;
  min-width: 190px;
  padding: 7px 11px 7px 12px;
  border: 1px solid rgba(15, 127, 61, 0.16);
  border-radius: 13px;
  background: linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.045);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17231b;
  cursor: pointer;
}

.decisions-page .decisions-store-card:hover,
.decisions-page .decisions-store-card:focus-visible {
  border-color: rgba(15, 127, 61, 0.34);
  box-shadow: 0 12px 28px rgba(15, 127, 61, 0.10);
  outline: none;
}

.decisions-page .decisions-store-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e8f6ed;
  color: #0f7f3d;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.decisions-page .decisions-store-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.decisions-page .decisions-store-copy strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #152019;
  font-size: 13.4px;
  line-height: 1.12;
  font-weight: 780;
  white-space: nowrap;
}

.decisions-page .decisions-store-copy small {
  color: #69746d;
  font-size: 11.2px;
  font-weight: 570;
}

.decisions-page .decisions-store-chevron {
  margin-left: auto;
  color: #0f7f3d;
  font-size: 15px;
  font-weight: 800;
}

.decisions-page .decisions-add-task-top-btn {
  color: #0f7f3d;
  border-color: rgba(15, 127, 61, 0.24);
  background: #f4fbf6;
}

.decisions-page .decisions-status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #536057;
  background: #f0f3f1;
  font-size: 10.8px;
  line-height: 1;
  font-weight: 720;
  white-space: nowrap;
}

.decisions-page .decisions-status-history {
  margin-top: 8px;
  color: #6b756e;
  font-size: 12px;
}

.decisions-page .decisions-empty-state {
  min-height: 180px;
  padding: 28px;
  border: 1px dashed rgba(15, 127, 61, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
  color: #5f6a63;
}

.decisions-page .decisions-empty-state strong {
  color: #17231b;
  font-size: 16px;
  font-weight: 760;
}

.decisions-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(15, 127, 61, 0.18);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 32, 22, 0.14);
  color: #25402e;
  font-size: 12.8px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.decisions-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.decisions-modal[hidden],
.decisions-toast[hidden] {
  display: none;
}

.decisions-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  justify-items: end;
}

.decisions-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 18, 0.28);
  backdrop-filter: blur(3px);
}

.decisions-task-form {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 24px));
  height: fit-content;
  max-height: calc(100vh - 24px);
  margin: 12px;
  padding: 17px;
  border: 1px solid rgba(20, 38, 26, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(17, 32, 22, 0.22);
  display: grid;
  gap: 12px;
  overflow: auto;
}

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

.decisions-form-head span {
  color: #0f7f3d;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.decisions-form-head h2 {
  margin-top: 3px;
  color: #152019;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.decisions-form-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f4f7f5;
  color: #66716a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

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

.decisions-field {
  display: grid;
  gap: 6px;
  color: #2c3831;
  font-size: 12px;
  font-weight: 720;
}

.decisions-field span small {
  color: #8a948e;
  font-weight: 560;
}

.decisions-field input,
.decisions-field select,
.decisions-field textarea {
  width: 100%;
  border: 1px solid rgba(20, 38, 26, 0.11);
  border-radius: 11px;
  background: #fbfcfb;
  color: #17231b;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  outline: none;
}

.decisions-field input,
.decisions-field select {
  height: 42px;
  padding: 0 12px;
}

.decisions-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0f7f3d 50%), linear-gradient(135deg, #0f7f3d 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.decisions-field textarea {
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
}

.decisions-field input:focus,
.decisions-field select:focus,
.decisions-field textarea:focus {
  border-color: rgba(15, 127, 61, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 127, 61, 0.08);
  background: #ffffff;
}

.decisions-form-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0ef;
  color: #c12d28;
  font-size: 12px;
  font-weight: 700;
}

.decisions-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 2px;
}

.decisions-form-actions .btn {
  min-height: 40px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 760;
}

.decisions-form-actions .btn-secondary-light {
  color: #0f7f3d;
  background: #ffffff;
  border-color: rgba(15, 127, 61, 0.28);
}

body.decisions-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .decisions-page .decisions-store-card {
    width: 100%;
  }

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

  .decisions-form-actions {
    display: grid;
  }
}

/* Decisions Center: shared store selector and read-only period affordance */
.decisions-page .decisions-store-card.store-switcher {
  position: relative;
}

.decisions-page .decisions-store-card .mvk-store-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(20, 38, 26, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 32, 22, 0.14);
  display: none;
}

.decisions-page .decisions-store-card.store-switcher.is-open .mvk-store-menu,
.decisions-page .decisions-store-card.store-switcher[aria-expanded="true"] .mvk-store-menu {
  display: grid;
  gap: 4px;
}

.decisions-page .decisions-store-card .mvk-store-option,
.decisions-page .decisions-store-card .mvk-store-connect {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #243228;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.decisions-page .decisions-store-card .mvk-store-option:hover,
.decisions-page .decisions-store-card .mvk-store-option.is-current,
.decisions-page .decisions-store-card .mvk-store-connect:hover {
  background: #eaf6ee;
  color: #0f7f3d;
}

.decisions-page .decisions-store-card .mvk-store-option small {
  display: block;
  margin-top: 2px;
  color: #69746d;
  font-size: 11px;
  font-weight: 570;
}

.decisions-page .decisions-store-card .mvk-store-check {
  color: #0f7f3d;
  font-weight: 900;
}

.decisions-page .decisions-control-card-readonly {
  cursor: default;
}

.decisions-page .decisions-control-card-readonly:hover,
.decisions-page .decisions-control-card-readonly:focus-visible {
  border-color: rgba(20, 38, 26, 0.09);
  box-shadow: 0 10px 22px rgba(17, 32, 22, 0.035);
}

.decisions-page .decisions-control-copy {
  display: grid;
  gap: 1px;
}

.decisions-page .decisions-control-copy small {
  color: #69746d;
  font-size: 11px;
  font-weight: 650;
}

/* Decisions Center overflow hardening after checklist task badges/actions. */
.decisions-page .decisions-layout,
.decisions-page .decisions-task-list,
.decisions-page .decisions-task-card,
.decisions-page .decisions-task-body,
.decisions-page .decisions-task-topline,
.decisions-page .decisions-task-meta,
.decisions-page .decisions-task-footer,
.decisions-page .decisions-task-metrics,
.decisions-page .decisions-detail-panel,
.decisions-page .decisions-detail-head,
.decisions-page .decisions-detail-badges,
.decisions-page .decisions-detail-panel section,
.decisions-page .decisions-detail-metrics,
.decisions-page .decisions-detail-actions,
.decisions-page .decisions-manager-comment,
.decisions-page .decisions-checklist li {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.decisions-page .decisions-detail-panel {
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.decisions-page .decisions-detail-panel h2,
.decisions-page .decisions-detail-panel h3,
.decisions-page .decisions-detail-panel p,
.decisions-page .decisions-detail-panel span,
.decisions-page .decisions-detail-panel small,
.decisions-page .decisions-detail-panel b,
.decisions-page .decisions-detail-panel button,
.decisions-page .decisions-checklist li > span,
.decisions-page .decisions-manager-comment span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.decisions-page .decisions-detail-head,
.decisions-page .decisions-detail-badges,
.decisions-page .decisions-task-meta,
.decisions-page .decisions-task-metrics {
  flex-wrap: wrap;
}

.decisions-page .decisions-detail-head {
  align-items: flex-start;
}

.decisions-page .decisions-detail-head > span:first-child {
  flex: 1 1 auto;
}

.decisions-page .decisions-detail-close {
  flex: 0 0 auto;
}

.decisions-page .decisions-detail-badges > *,
.decisions-page .decisions-task-meta > *,
.decisions-page .decisions-task-time {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.decisions-page .decisions-task-topline {
  align-items: flex-start;
}

.decisions-page .decisions-task-body h3,
.decisions-page .decisions-task-body p,
.decisions-page .decisions-task-latest-comment {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.decisions-page .decisions-task-footer {
  align-items: flex-start;
}

.decisions-page .decisions-task-metrics {
  flex: 1 1 auto;
}

.decisions-page .decisions-task-metrics .decisions-metric-chip {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.decisions-page .decisions-task-metrics .decisions-metric-chip small,
.decisions-page .decisions-task-metrics .decisions-metric-chip b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.decisions-page .decisions-task-action {
  flex: 0 1 min(100%, 220px);
  max-width: 220px;
  height: auto;
  min-height: 34px;
  padding: 7px 12px;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.decisions-page .decisions-suggested-action {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.decisions-page .decisions-detail-metrics .decisions-detail-metric {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.decisions-page .decisions-detail-metric small,
.decisions-page .decisions-detail-metric b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.decisions-page .decisions-detail-actions .btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  padding-top: 8px;
  padding-bottom: 8px;
}

.decisions-page .decisions-task-card.is-active {
  position: relative;
  border-color: rgba(15, 127, 61, 0.52);
  background: linear-gradient(90deg, rgba(232, 247, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 44%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 16px 38px rgba(15, 127, 61, 0.12);
}

.decisions-page .decisions-task-card.is-active::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #0f9b46;
}

.decisions-page .decisions-task-card.is-active.decisions-priority-critical {
  border-color: rgba(238, 76, 67, 0.62);
  background: linear-gradient(90deg, rgba(255, 239, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 44%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 16px 38px rgba(196, 65, 56, 0.12);
}

.decisions-page .decisions-task-card.is-active.decisions-priority-critical::before {
  background: #e0342f;
}

.decisions-page .decisions-insight-strip.is-ai-context-done {
  border-color: rgba(31, 138, 76, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 252, 248, 0.96) 100%);
}

.decisions-page .decisions-insight-strip.is-ai-context-done .decisions-sparkle {
  color: #ffffff;
  background: linear-gradient(180deg, #29a95e 0%, #16713f 100%);
}

.decisions-page .decisions-insight-strip.is-ai-context-done .decisions-trust-line {
  color: #237345;
}

.decisions-page .decisions-insight-actions .decisions-summary-grid {
  grid-template-columns: repeat(4, minmax(112px, 1fr));
}

@media (max-width: 1240px) {
  .decisions-page .decisions-insight-actions .decisions-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }
}

.decisions-page .decisions-manager-summary {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(31, 138, 76, 0.08), transparent 30%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.decisions-page .decisions-manager-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.decisions-page .decisions-manager-summary-head p,
.decisions-page .decisions-manager-summary-head h2,
.decisions-page .decisions-manager-summary-head span,
.decisions-page .decisions-manager-conclusion {
  margin: 0;
}

.decisions-page .decisions-manager-summary-head p {
  color: #138143;
  font-size: 12px;
  font-weight: 800;
}

.decisions-page .decisions-manager-summary-head h2 {
  margin-top: 2px;
  color: #14231a;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.decisions-page .decisions-manager-summary-head span {
  display: block;
  margin-top: 5px;
  color: #68736c;
  font-size: 13px;
  line-height: 1.4;
}

.decisions-page .decisions-manager-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 330px);
}

.decisions-page .decisions-manager-quick-actions button,
.decisions-page .decisions-manager-quick-actions span {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(15, 127, 61, 0.16);
  border-radius: 999px;
  color: #16713f;
  background: #f4fbf6;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.decisions-page .decisions-manager-quick-actions button {
  cursor: pointer;
}

.decisions-page .decisions-manager-quick-actions button:hover {
  border-color: rgba(15, 127, 61, 0.32);
  background: #eaf6ee;
}

.decisions-page .decisions-manager-conclusion {
  padding: 12px 14px;
  border-radius: 13px;
  color: #132018;
  background: #f2f8f4;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 740;
}

.decisions-page .decisions-manager-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 12px;
}

.decisions-page .decisions-manager-columns section {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.decisions-page .decisions-manager-columns h3 {
  margin: 0 0 9px;
  color: #14231a;
  font-size: 14px;
  line-height: 1.2;
}

.decisions-page .decisions-manager-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #3d4942;
  font-size: 13px;
  line-height: 1.45;
}

.decisions-page .decisions-manager-columns li + li {
  margin-top: 6px;
}

.decisions-page .decisions-action-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.decisions-page .decisions-action-plan strong {
  display: block;
  margin-bottom: 6px;
  color: #16713f;
  font-size: 12.5px;
}


.decisions-page .decisions-ai-section {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.decisions-page .decisions-ai-section h3,
.decisions-page .decisions-ai-horizon h3,
.decisions-page .decisions-ai-action-card h4 {
  margin: 0;
  color: #14231a;
}

.decisions-page .decisions-ai-section h3,
.decisions-page .decisions-ai-horizon h3 {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.decisions-page .decisions-ai-section p,
.decisions-page .decisions-ai-section li,
.decisions-page .decisions-ai-action-card p,
.decisions-page .decisions-ai-action-card strong {
  color: #3d4942;
  font-size: 13px;
  line-height: 1.45;
}

.decisions-page .decisions-ai-section ul,
.decisions-page .decisions-ai-columns ul {
  margin: 0;
  padding-left: 18px;
}

.decisions-page .decisions-ai-section li + li,
.decisions-page .decisions-ai-columns li + li {
  margin-top: 6px;
}

.decisions-page .decisions-ai-horizons,
.decisions-page .decisions-ai-horizon,
.decisions-page .decisions-ai-action-list {
  display: grid;
  gap: 10px;
}

.decisions-page .decisions-ai-horizon + .decisions-ai-horizon {
  margin-top: 4px;
}

.decisions-page .decisions-ai-action-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.decisions-page .decisions-ai-action-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 14px;
  background: #f8fbf8;
}

.decisions-page .decisions-ai-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.decisions-page .decisions-ai-action-head small {
  color: #6a756d;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.decisions-page .decisions-ai-action-card h4 {
  font-size: 14.5px;
  line-height: 1.25;
  font-weight: 800;
}

.decisions-page .decisions-ai-action-card p,
.decisions-page .decisions-ai-action-card strong {
  display: block;
  margin: 7px 0 0;
}

.decisions-page .decisions-ai-action-card strong {
  color: #175c34;
  font-weight: 780;
}

.decisions-page .decisions-ai-priority-critical {
  border-color: rgba(224, 52, 47, 0.18);
  background: #fff8f7;
}

.decisions-page .decisions-ai-priority-warning {
  border-color: rgba(160, 100, 9, 0.16);
  background: #fffaf0;
}

.decisions-page .decisions-ai-priority-growth {
  border-color: rgba(20, 148, 71, 0.16);
  background: #f5fbf6;
}

.decisions-page .decisions-badge-info {
  color: #365f78;
  background: #eef6fb;
}

.decisions-page .decisions-ai-empty,
.decisions-page .decisions-ai-muted {
  margin: 0;
  color: #69746d !important;
  font-size: 12.5px !important;
  font-weight: 520;
}

.decisions-page .decisions-ai-quality {
  background: #fbfaf5;
}

.decisions-page .decisions-ai-seller-message {
  background: #f5faf7;
}

.decisions-page .decisions-ai-trust {
  background: #f6f8f7;
}

@media (max-width: 1240px) {
  .decisions-page .decisions-manager-summary-head,
  .decisions-page .decisions-manager-columns,
  .decisions-page .decisions-action-plan {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-manager-summary-head {
    display: grid;
  }

  .decisions-page .decisions-manager-quick-actions {
    justify-content: flex-start;
  }
}

.decisions-page .decisions-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.decisions-page .decisions-summary-grid div {
  min-width: 0;
}

.decisions-page .decisions-summary-grid strong {
  max-width: 100%;
  overflow: hidden;
  color: #0f7f3d;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decisions-page .decisions-ai-audit-head {
  margin-bottom: 10px;
}

.decisions-page .decisions-ai-summary-section,
.decisions-page .decisions-ai-workarea {
  background: rgba(255, 255, 255, 0.9);
}

.decisions-page .decisions-ai-top-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.decisions-page .decisions-ai-action-card.is-compact {
  padding: 11px;
}

.decisions-page .decisions-ai-action-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #50705b;
  background: rgba(20, 148, 71, 0.08);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}


.decisions-page .decisions-ai-selected-plan {
  border-color: rgba(31, 138, 76, 0.24);
  background:
    linear-gradient(180deg, rgba(31, 138, 76, 0.095), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(31, 138, 76, 0.1);
}

.decisions-page .decisions-ai-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.decisions-page .decisions-ai-plan-head div {
  display: grid;
  gap: 4px;
}

.decisions-page .decisions-ai-plan-head h3,
.decisions-page .decisions-ai-plan-head p {
  margin: 0;
}

.decisions-page .decisions-ai-plan-head h3 {
  color: #113f24;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
}

.decisions-page .decisions-ai-plan-head p {
  color: #4f5d54;
  font-size: 12.5px;
  line-height: 1.35;
}

.decisions-page .decisions-ai-plan-head span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #17643a;
  background: rgba(31, 138, 76, 0.1);
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}

.decisions-page .decisions-ai-plan-empty {
  padding: 12px;
  border: 1px dashed rgba(20, 38, 26, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 720px) {
  .decisions-page .decisions-ai-plan-head {
    display: grid;
  }

  .decisions-page .decisions-ai-plan-head span {
    width: fit-content;
  }
}

.decisions-page .decisions-ai-task-button {
  margin-top: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(20, 38, 26, 0.1);
  border-radius: 999px;
  color: #6f7a73;
  background: #eef3ef;
  font-size: 12px;
  font-weight: 800;
  cursor: not-allowed;
  opacity: 0.72;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

.decisions-page .decisions-ai-task-button:not(:disabled) {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgba(31, 138, 76, 0.22);
  box-shadow: 0 6px 16px rgba(31, 138, 76, 0.08);
  cursor: pointer;
  opacity: 1;
}

.decisions-page .decisions-ai-task-button:not(:disabled):hover {
  transform: translateY(-1px);
  background: #d4eddc;
  border-color: rgba(31, 138, 76, 0.34);
  box-shadow: 0 8px 18px rgba(31, 138, 76, 0.12);
}

.decisions-page .decisions-ai-task-button:not(:disabled):focus-visible {
  outline: 3px solid rgba(31, 138, 76, 0.22);
  outline-offset: 2px;
}

.decisions-page .decisions-ai-task-button:disabled {
  cursor: not-allowed;
}

.decisions-page .decisions-ai-task-button[aria-busy="true"] {
  color: #6f7a73;
  background: #eef3ef;
  border-color: rgba(20, 38, 26, 0.1);
  box-shadow: none;
  cursor: wait;
  opacity: 0.78;
}

.decisions-page .decisions-ai-task-button[aria-busy="true"]:hover {
  transform: none;
}

.decisions-page .decisions-ai-details-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.decisions-page .decisions-ai-details {
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.decisions-page .decisions-ai-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: #14231a;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
  cursor: pointer;
}

.decisions-page .decisions-ai-details summary::-webkit-details-marker {
  display: none;
}

.decisions-page .decisions-ai-details summary::after {
  content: "⌄";
  color: #68736c;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.decisions-page .decisions-ai-details[open] summary::after {
  transform: rotate(180deg);
}

.decisions-page .decisions-ai-details-body {
  display: grid;
  gap: 8px;
  padding: 0 13px 13px;
  color: #3d4942;
  font-size: 13px;
  line-height: 1.45;
}

.decisions-page .decisions-ai-details-body p,
.decisions-page .decisions-ai-details-body ul {
  margin: 0;
}

.decisions-page .decisions-ai-details-body ul {
  padding-left: 18px;
}

/* Decisions Center: routine checks are secondary to the main manager feed. */
.decisions-page .decisions-routine-card {
  padding: 14px 16px;
  border: 1px solid rgba(20, 38, 26, 0.085);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 9px 24px rgba(17, 32, 22, 0.035);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.decisions-page .decisions-routine-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.decisions-page .decisions-routine-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #117b39;
  background: #eef8f1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
}

.decisions-page .decisions-routine-copy h2 {
  margin: 0 0 4px;
  color: #17231b;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -0.018em;
}

.decisions-page .decisions-routine-copy p,
.decisions-page .decisions-routine-copy small,
.decisions-page .decisions-filter-note {
  margin: 0;
  color: #68736c;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 430;
}

.decisions-page .decisions-routine-copy small {
  display: block;
  margin-top: 5px;
}

.decisions-page .decisions-routine-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.decisions-page .decisions-routine-counters,
.decisions-page .decisions-routine-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.decisions-page .decisions-routine-counters span {
  min-width: 74px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 32, 22, 0.025);
}

.decisions-page .decisions-routine-counters strong,
.decisions-page .decisions-routine-counters small {
  display: block;
}

.decisions-page .decisions-routine-counters strong {
  color: #17231b;
  font-size: 18px;
  line-height: 1;
  font-weight: 760;
}

.decisions-page .decisions-routine-counters small {
  margin-top: 5px;
  color: #68736c;
  font-size: 11.3px;
  line-height: 1.1;
  font-weight: 560;
}

.decisions-page .decisions-routine-buttons .btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 740;
  white-space: nowrap;
}

.decisions-page [data-decisions-show-checklists].is-active {
  color: #ffffff;
  background: #117b39;
  border-color: #117b39;
}

.decisions-page .decisions-filter-note {
  padding: 7px 9px 0;
  color: #7a847e;
  font-size: 11.5px;
}

.decisions-page .decisions-feed-head {
  padding: 13px 14px;
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(17, 32, 22, 0.032);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.decisions-page .decisions-feed-head strong,
.decisions-page .decisions-feed-head span,
.decisions-page .decisions-feed-head em {
  display: block;
}

.decisions-page .decisions-feed-head strong {
  color: #17231b;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.decisions-page .decisions-feed-head span {
  margin-top: 4px;
  color: #68736c;
  font-size: 12.4px;
  line-height: 1.35;
}

.decisions-page .decisions-feed-head em {
  min-width: 38px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #117b39;
  background: #eef8f1;
  text-align: center;
  font-style: normal;
  font-size: 15px;
  line-height: 20px;
  font-weight: 780;
}

@media (max-width: 1240px) {
  .decisions-page .decisions-routine-card,
  .decisions-page .decisions-routine-actions {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-routine-card,
  .decisions-page .decisions-routine-actions,
  .decisions-page .decisions-routine-counters,
  .decisions-page .decisions-routine-buttons {
    align-items: stretch;
  }

  .decisions-page .decisions-routine-actions,
  .decisions-page .decisions-routine-counters,
  .decisions-page .decisions-routine-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Decisions Center: make the routine checklist toggle visibly clickable while keeping it secondary. */
.decisions-page [data-decisions-show-checklists] {
  color: #166b3d;
  background: #ffffff;
  border-color: rgba(22, 107, 61, 0.34);
  box-shadow: 0 7px 16px rgba(17, 32, 22, 0.045);
  opacity: 1;
}

.decisions-page [data-decisions-show-checklists]:hover,
.decisions-page [data-decisions-show-checklists]:focus-visible {
  color: #0f5f33;
  background: #f3fbf5;
  border-color: rgba(22, 107, 61, 0.58);
  box-shadow: 0 10px 22px rgba(22, 107, 61, 0.11);
}

.decisions-page [data-decisions-show-checklists].is-active {
  color: #0f5f33;
  background: #e9f7ee;
  border-color: rgba(22, 107, 61, 0.62);
  box-shadow: inset 0 0 0 1px rgba(22, 107, 61, 0.08), 0 8px 18px rgba(22, 107, 61, 0.09);
  opacity: 1;
}

.decisions-page .decisions-work-plan {
  padding: 18px;
  border: 1px solid rgba(15, 127, 61, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(31, 138, 76, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 249, 0.96) 100%);
  box-shadow: 0 16px 38px rgba(17, 32, 22, 0.06);
  display: grid;
  gap: 16px;
}

.decisions-page .decisions-work-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.decisions-page .decisions-work-plan-head strong {
  display: block;
  color: #14231a;
  font-size: 19px;
  line-height: 1.14;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.decisions-page .decisions-work-plan-head span {
  display: block;
  max-width: 560px;
  margin-top: 5px;
  color: #66716a;
  font-size: 12.8px;
  line-height: 1.35;
}

.decisions-page .decisions-work-plan-tabs {
  padding: 4px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 999px;
  background: rgba(241, 247, 243, 0.92);
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}

.decisions-page .decisions-work-plan-tab {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #66716a;
  background: transparent;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 780;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.decisions-page .decisions-work-plan-tab:hover,
.decisions-page .decisions-work-plan-tab:focus-visible {
  color: #0f5f33;
  outline: none;
}

.decisions-page .decisions-work-plan-tab.is-active {
  color: #ffffff;
  background: #147a3e;
  box-shadow: 0 8px 16px rgba(20, 122, 62, 0.18);
}

.decisions-page .decisions-work-plan-body,
.decisions-page .decisions-work-plan-section {
  display: grid;
  gap: 13px;
}

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

.decisions-page .decisions-work-plan-section-head strong {
  color: #17231b;
  font-size: 15.4px;
  line-height: 1.2;
  font-weight: 800;
}

.decisions-page .decisions-work-plan-section-head span {
  min-width: 32px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #117b39;
  background: #eaf6ee;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  font-weight: 820;
}

.decisions-page .decisions-work-plan-list,
.decisions-page .decisions-work-plan-groups {
  display: grid;
  gap: 10px;
}

.decisions-page .decisions-work-plan-groups {
  grid-template-columns: 1fr;
}

.decisions-page .decisions-work-plan-group {
  padding: 11px;
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 8px;
}

.decisions-page .decisions-work-plan-group h3 {
  margin: 0;
  color: #26342a;
  font-size: 12.8px;
  line-height: 1.2;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.decisions-page .decisions-work-plan-group h3 span {
  min-width: 24px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #627069;
  background: #f1f4f2;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  font-weight: 780;
}

.decisions-page .decisions-work-plan-card {
  cursor: pointer;
  padding: 12px;
  border: 1px solid rgba(20, 38, 26, 0.085);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 9px 20px rgba(17, 32, 22, 0.04);
  display: grid;
  gap: 7px;
  outline: none;
}

.decisions-page .decisions-work-plan-card:hover,
.decisions-page .decisions-work-plan-card:focus-visible,
.decisions-page .decisions-work-plan-card.is-active {
  border-color: rgba(15, 127, 61, 0.28);
  box-shadow: 0 13px 28px rgba(17, 32, 22, 0.08);
}

.decisions-page .decisions-work-plan-card-meta,
.decisions-page .decisions-work-plan-card-foot {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.decisions-page .decisions-work-plan-card strong {
  color: #14231a;
  font-size: 14px;
  line-height: 1.26;
  font-weight: 800;
}

.decisions-page .decisions-work-plan-card p {
  margin: 0;
  color: #5f6e65;
  font-size: 12.3px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.decisions-page .decisions-work-plan-card-foot span,
.decisions-page .decisions-work-plan-more,
.decisions-page .decisions-work-plan-hint {
  color: #69746d;
  font-size: 11.6px;
  line-height: 1.35;
  font-weight: 650;
}

.decisions-page .decisions-work-plan-ai,
.decisions-page .decisions-work-plan-soft-label {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 10.8px;
  line-height: 1;
  font-weight: 800;
}

.decisions-page .decisions-work-plan-ai {
  color: #0f7f3d;
  background: #eaf6ee;
  border: 1px solid rgba(15, 127, 61, 0.14);
}

.decisions-page .decisions-work-plan-soft-label {
  color: #6e6a43;
  background: #fbf4d8;
  border: 1px solid rgba(198, 142, 42, 0.18);
}

.decisions-page .decisions-work-plan-more,
.decisions-page .decisions-work-plan-hint {
  margin: 0;
  padding-left: 2px;
}

.decisions-page .decisions-work-plan-checklist {
  margin-top: 2px;
  padding: 11px 12px;
  border: 1px dashed rgba(20, 38, 26, 0.14);
  border-radius: 15px;
  color: #68736c;
  background: rgba(247, 250, 247, 0.82);
  display: grid;
  gap: 8px;
}

.decisions-page .decisions-work-plan-checklist strong {
  color: #314039;
  font-size: 12.8px;
  line-height: 1.2;
  font-weight: 800;
}

.decisions-page .decisions-work-plan-checklist span {
  font-size: 12px;
  line-height: 1.3;
}

.decisions-page .decisions-work-plan-checklist div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.decisions-page .decisions-work-plan-checklist span[role="button"] {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 999px;
  color: #526059;
  background: #ffffff;
  font-size: 11.7px;
  line-height: 1.1;
  font-weight: 700;
  cursor: pointer;
}

.decisions-page .decisions-work-plan-checklist span[role="button"]:hover,
.decisions-page .decisions-work-plan-checklist span[role="button"]:focus-visible {
  color: #0f5f33;
  border-color: rgba(22, 107, 61, 0.28);
  outline: none;
}

.decisions-page .decisions-work-plan-empty {
  padding: 17px;
  border: 1px dashed rgba(15, 127, 61, 0.2);
  border-radius: 15px;
  color: #66716a;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
  font-size: 12.6px;
  line-height: 1.35;
}

.decisions-page .decisions-work-plan-empty.is-compact {
  padding: 10px;
  font-size: 11.8px;
}

@media (max-width: 760px) {
  .decisions-page .decisions-work-plan,
  .decisions-page .decisions-work-plan-group {
    padding: 12px;
    border-radius: 17px;
  }

  .decisions-page .decisions-work-plan-head {
    display: grid;
  }

  .decisions-page .decisions-work-plan-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .decisions-page .decisions-work-plan-tab {
    flex: 1 1 0;
  }
}

/* Decisions Center: put the manager work plan above secondary AI reports and lists. */
.decisions-page .decisions-work-plan-mount {
  display: block;
}

.decisions-page .decisions-manager-summary {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.decisions-page .decisions-ai-report-shell {
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.035);
  overflow: hidden;
}

.decisions-page .decisions-ai-report-shell > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: #14231a;
  cursor: pointer;
  list-style: none;
}

.decisions-page .decisions-ai-report-shell > summary::-webkit-details-marker {
  display: none;
}

.decisions-page .decisions-ai-report-shell > summary::after {
  content: "⌄";
  flex: 0 0 auto;
  color: #68736c;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.decisions-page .decisions-ai-report-shell[open] > summary::after {
  transform: rotate(180deg);
}

.decisions-page .decisions-ai-report-shell > summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.decisions-page .decisions-ai-report-shell > summary strong {
  color: #14231a;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 820;
}

.decisions-page .decisions-ai-report-shell > summary small,
.decisions-page .decisions-ai-report-shell > summary em {
  color: #68736c;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 560;
  font-style: normal;
}

.decisions-page .decisions-ai-report-shell > summary em {
  flex: 0 1 auto;
  text-align: right;
}

.decisions-page .decisions-ai-report-body {
  padding: 0 16px 16px;
}

.decisions-page .decisions-ai-report-body .decisions-ai-details-list {
  margin-top: 0;
}

.decisions-page .decisions-ai-report-body .decisions-manager-summary-head {
  margin-bottom: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 14px;
  background: #f7fbf8;
}

.decisions-page .decisions-ai-report-body .decisions-manager-summary-head h2 {
  font-size: 18px;
}

@media (max-width: 720px) {
  .decisions-page .decisions-ai-report-shell > summary {
    display: grid;
  }

  .decisions-page .decisions-ai-report-shell > summary em {
    text-align: left;
  }
}

/* Decisions Center: avoid duplicate today/week/month controls above the hero work plan. */
.decisions-page .decisions-toolbar .decisions-periods {
  display: none;
}

/* Decisions Center: keep full task management secondary until the manager asks for it. */
.decisions-page .decisions-full-list-toggle-mount {
  display: block;
}

.decisions-page .decisions-full-list-toggle {
  padding: 13px 15px;
  border: 1px solid rgba(20, 38, 26, 0.085);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.decisions-page .decisions-full-list-toggle strong,
.decisions-page .decisions-routine-details > summary strong {
  display: block;
  color: #17231b;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.decisions-page .decisions-full-list-toggle span,
.decisions-page .decisions-routine-details > summary small {
  display: block;
  margin-top: 3px;
  color: #68736c;
  font-size: 12.3px;
  line-height: 1.35;
  font-weight: 520;
}

.decisions-page .decisions-layout[hidden],
.decisions-page .decisions-layout.is-collapsed {
  display: none !important;
}

.decisions-page .decisions-routine-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.decisions-page .decisions-routine-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.decisions-page .decisions-routine-details > summary::-webkit-details-marker {
  display: none;
}

.decisions-page .decisions-routine-details > summary::after {
  content: "⌄";
  flex: 0 0 auto;
  color: #68736c;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.decisions-page .decisions-routine-details[open] > summary::after {
  transform: rotate(180deg);
}

.decisions-page .decisions-routine-details-body {
  padding: 0 15px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

@media (max-width: 760px) {
  .decisions-page .decisions-full-list-toggle,
  .decisions-page .decisions-routine-details-body {
    display: grid;
  }
}

/* Decisions Center v6 hierarchy: compact manager desktop. */
.decisions-page .decisions-topbar {
  align-items: center;
  gap: 18px;
}

.decisions-page .decisions-title-block p {
  max-width: 620px;
}

.decisions-page .decisions-actions {
  align-items: center;
  flex-wrap: wrap;
}

.decisions-page .decisions-actions .decisions-store-card {
  min-height: 44px;
  min-width: 210px;
  box-shadow: none;
}

.decisions-page .decisions-insight-strip {
  padding: 12px 14px;
  border-color: rgba(15, 127, 61, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 32, 22, 0.055);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(300px, auto) auto;
  align-items: center;
  gap: 12px;
}

.decisions-page .decisions-ai-period-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(15, 127, 61, 0.14);
  border-radius: 999px;
  background: #f4faf6;
}

.decisions-page .decisions-ai-period-switch button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #66726b;
  background: transparent;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.decisions-page .decisions-ai-period-switch button.is-active {
  color: #0f6f38;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(17, 32, 22, 0.08);
}

.decisions-page .decisions-insight-strip .decisions-insight-copy {
  min-width: 0;
}

.decisions-page .decisions-insight-strip .decisions-sparkle {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 16px;
}

.decisions-page .decisions-insight-strip .decisions-insight-copy p {
  margin-bottom: 1px;
  font-size: 10.5px;
}

.decisions-page .decisions-insight-strip .decisions-insight-copy strong {
  font-size: 14.5px;
  line-height: 1.18;
}

.decisions-page .decisions-insight-strip .decisions-insight-copy small {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.25;
}

.decisions-page .decisions-insight-strip .decisions-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 7px;
  min-width: 300px;
}

.decisions-page .decisions-insight-strip .decisions-summary-grid div {
  min-height: 48px;
  padding: 8px 9px;
  border-radius: 13px;
  background: #f7fbf8;
  box-shadow: none;
}

.decisions-page .decisions-insight-strip .decisions-summary-grid strong {
  font-size: 17px;
}

.decisions-page .decisions-insight-strip .decisions-summary-grid span {
  font-size: 10.5px;
}

.decisions-page .decisions-insight-strip .decisions-insight-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.decisions-page .decisions-insight-strip .decisions-trust-line {
  display: none;
}

.decisions-page .decisions-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: start;
  gap: 18px;
}

.decisions-page .decisions-primary-grid .decisions-detail-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
}

.decisions-page .decisions-work-plan {
  min-height: 0;
}

.decisions-page .decisions-week-day-selector {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  overflow: visible;
}

.decisions-page .decisions-week-day {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 14px;
  color: #5f6a63;
  background: #ffffff;
  display: grid;
  justify-items: center;
  gap: 2px;
  cursor: pointer;
}

.decisions-page .decisions-week-day strong {
  color: #18241c;
  font-size: 13px;
  font-weight: 820;
}

.decisions-page .decisions-week-day span,
.decisions-page .decisions-week-day em {
  font-size: 10.5px;
  line-height: 1.1;
  font-style: normal;
}

.decisions-page .decisions-week-day em {
  min-width: 18px;
  padding: 3px 5px;
  border-radius: 999px;
  background: #eef5f0;
  color: #0f6f38;
  font-weight: 760;
}

.decisions-page .decisions-week-day.is-active {
  border-color: rgba(15, 127, 61, 0.28);
  background: #ecf8f0;
  box-shadow: inset 0 0 0 1px rgba(15, 127, 61, 0.08);
}

.decisions-page .decisions-work-plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.decisions-page .decisions-work-plan-action,
.decisions-page .decisions-work-plan-add {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(20, 38, 26, 0.09);
  border-radius: 999px;
  color: #36423b;
  background: #ffffff;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.decisions-page .decisions-work-plan-action.is-green,
.decisions-page .decisions-work-plan-add {
  color: #0f6f38;
  border-color: rgba(15, 127, 61, 0.22);
  background: #f2fbf5;
}

.decisions-page .decisions-work-plan-add {
  justify-self: start;
}

.decisions-page .decisions-routine-card {
  border: 1px solid rgba(20, 38, 26, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(17, 32, 22, 0.03);
}

.decisions-page .decisions-full-list-toggle-mount {
  display: flex;
  justify-content: flex-start;
}

.decisions-page .decisions-full-list-toggle {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.decisions-page .decisions-full-list-toggle > div {
  display: none;
}

.decisions-page .decisions-full-list-toggle .btn {
  min-height: 30px;
  padding: 0 10px;
  color: #68736c;
  background: transparent;
}

.decisions-page .decisions-manager-summary[hidden] {
  display: none !important;
}

@media (max-width: 1320px) {
  .decisions-page .decisions-insight-strip {
    grid-template-columns: auto minmax(260px, 1fr) minmax(260px, auto);
  }

  .decisions-page .decisions-insight-strip .decisions-insight-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .decisions-page .decisions-primary-grid,
  .decisions-page .decisions-insight-strip {
    grid-template-columns: 1fr;
  }

  .decisions-page .decisions-primary-grid .decisions-detail-panel {
    position: static;
    max-height: none;
  }

  .decisions-page .decisions-insight-strip .decisions-summary-grid {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .decisions-page .decisions-week-day-selector,
  .decisions-page .decisions-insight-strip .decisions-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Decisions Center: active AI report controls, top checklist and modal report. */
.decisions-page .decisions-open-report-btn,
.decisions-page .decisions-pdf-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 127, 61, 0.24);
  color: #0f6f38;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 32, 22, 0.06);
  opacity: 1;
}

.decisions-page .decisions-open-report-btn:hover,
.decisions-page .decisions-pdf-btn:hover {
  color: #0b5f2f;
  border-color: rgba(15, 127, 61, 0.38);
  background: #f2fbf5;
  box-shadow: 0 10px 22px rgba(17, 32, 22, 0.09);
}

.decisions-page .decisions-routine-card {
  padding: 0;
  border: 1px solid rgba(15, 127, 61, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 32, 22, 0.045);
}

.decisions-page .decisions-routine-details > summary {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.decisions-page .decisions-routine-details > summary::-webkit-details-marker {
  display: none;
}

.decisions-page .decisions-routine-details > summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.decisions-page .decisions-routine-details > summary strong {
  color: #14231a;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 820;
}

.decisions-page .decisions-routine-details > summary small {
  color: #68736c;
  font-size: 12.3px;
  line-height: 1.35;
  font-weight: 560;
}

.decisions-page .decisions-routine-details > summary em {
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f6f38;
  background: #eef8f1;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.decisions-page .decisions-routine-details-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(20, 38, 26, 0.06);
  display: grid;
  gap: 12px;
}

.decisions-page .decisions-routine-panel-head {
  padding-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.decisions-page .decisions-routine-panel-head h2,
.decisions-page .decisions-routine-panel-head p {
  margin: 0;
}

.decisions-page .decisions-routine-panel-head h2 {
  color: #14231a;
  font-size: 15px;
  line-height: 1.2;
}

.decisions-page .decisions-routine-panel-head p {
  margin-top: 4px;
  color: #68736c;
  font-size: 12.5px;
  line-height: 1.35;
}

.decisions-page .decisions-checklist-items {
  display: grid;
  gap: 8px;
}

.decisions-page .decisions-checklist-item {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 12px;
  background: #f8fbf9;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #27352c;
  font-size: 13px;
  font-weight: 650;
}

.decisions-page .decisions-checklist-item.is-placeholder {
  grid-template-columns: auto minmax(0, 1fr);
}

.decisions-page .decisions-checklist-item.is-done span {
  color: #78837c;
  text-decoration: line-through;
}

.decisions-page .decisions-checklist-item input {
  width: 18px;
  height: 18px;
  accent-color: #0f7f3d;
}

.decisions-page .decisions-checklist-item button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #0f6f38;
  background: #eef8f1;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.decisions-page .decisions-routine-buttons {
  justify-content: flex-start;
}

.decisions-page .decisions-routine-buttons .btn-secondary-light {
  color: #0f6f38;
  background: #ffffff;
  border-color: rgba(15, 127, 61, 0.24);
}

.decisions-page .decisions-report-modal {
  justify-items: center;
  align-items: center;
  padding: 18px;
}

.decisions-page .decisions-report-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  border: 1px solid rgba(20, 38, 26, 0.10);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(17, 32, 22, 0.24);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.decisions-page .decisions-report-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(20, 38, 26, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.decisions-page .decisions-report-head span {
  color: #0f7f3d;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.decisions-page .decisions-report-head h2,
.decisions-page .decisions-report-head p {
  margin: 0;
}

.decisions-page .decisions-report-head h2 {
  margin-top: 4px;
  color: #14231a;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.decisions-page .decisions-report-head p {
  margin-top: 6px;
  color: #68736c;
  font-size: 13px;
  line-height: 1.4;
}

.decisions-page .decisions-report-body {
  padding: 18px 20px 20px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.decisions-page .decisions-report-section,
.decisions-page .decisions-report-grid .decisions-ai-details {
  border: 1px solid rgba(20, 38, 26, 0.08);
  border-radius: 16px;
  background: #fbfdfb;
  box-shadow: 0 8px 20px rgba(17, 32, 22, 0.025);
}

.decisions-page .decisions-report-section {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.decisions-page .decisions-report-section h3 {
  margin: 0;
  color: #14231a;
  font-size: 15px;
  line-height: 1.2;
}

.decisions-page .decisions-report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 9px;
}

.decisions-page .decisions-report-metrics div {
  min-height: 70px;
  padding: 12px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 26, 0.07);
}

.decisions-page .decisions-report-metrics strong,
.decisions-page .decisions-report-metrics span {
  display: block;
}

.decisions-page .decisions-report-metrics strong {
  color: #14231a;
  font-size: 19px;
  line-height: 1.1;
}

.decisions-page .decisions-report-metrics span {
  margin-top: 6px;
  color: #68736c;
  font-size: 12px;
}

.decisions-page .decisions-report-chart-placeholder {
  min-height: 132px;
  border: 1px dashed rgba(15, 127, 61, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
  color: #68736c;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-size: 13px;
  font-weight: 650;
}

.decisions-page .decisions-report-bars {
  display: grid;
  gap: 9px;
}

.decisions-page .decisions-report-bar-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.7fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #3d4942;
  font-size: 12px;
}

.decisions-page .decisions-report-bar-row i {
  height: 10px;
  border-radius: 999px;
  background: #eaf3ed;
  overflow: hidden;
}

.decisions-page .decisions-report-bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #29a95e 0%, #0f7f3d 100%);
}

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

@media (max-width: 780px) {
  .decisions-page .decisions-routine-panel-head,
  .decisions-page .decisions-report-head {
    display: grid;
  }

  .decisions-page .decisions-report-grid,
  .decisions-page .decisions-report-bar-row {
    grid-template-columns: 1fr;
  }
}
